/* ========================================
   HIFI BOT - Modern Unified CSS
   ======================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --danger: #dc2626;
    --dark: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1180px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === CONTAINER === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    /* overflow: visible by default — không set overflow để không clip dropdown */
}

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    border-bottom: 1px solid var(--gray-200);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
    overflow: visible;
}
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    overflow: visible;
}
.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    white-space: nowrap;
}
.logo:hover { color: var(--primary); }
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: visible;
}
.main-nav a {
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.main-nav a:hover {
    background: var(--gray-100);
    color: var(--primary);
}
.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--gray-200);
    margin: 0 8px;
}
.nav-btn {
    padding: 8px 16px !important;
    border-radius: var(--radius-xs) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
}
.nav-btn-primary {
    background: var(--primary) !important;
    color: var(--white) !important;
}
.nav-btn-primary:hover {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xs);
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray-700);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
    z-index: 1100;
}
.user-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xs);
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-700);
    font-family: inherit;
    line-height: 1.4;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.user-dropdown-toggle:hover,
.user-dropdown.is-open .user-dropdown-toggle {
    background: var(--white);
    border-color: var(--gray-300);
}
.user-dropdown-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.user-dropdown-caret {
    font-size: 0.7rem;
    color: var(--gray-500);
    transition: transform var(--transition);
}
.user-dropdown.is-open .user-dropdown-caret {
    transform: rotate(180deg);
}
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 6px;
    z-index: 1200;
    /* Không dùng visibility:hidden để JS style.display hoạt động đúng */
}
.user-dropdown-menu.show,
.user-dropdown-menu.active {
    display: block;
    animation: dropdownFadeIn 0.15s ease both;
}
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dropdown-label {
    display: block;
    padding: 8px 14px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
}
.dropdown-divider {
    height: 1px;
    background: var(--gray-100);
    margin: 6px 8px;
}
.dropdown-item {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    color: var(--gray-700);
    font-size: 0.88rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}
.dropdown-logout { color: var(--danger); }
.dropdown-logout:hover { color: #b91c1c; background: #fef2f2; }
.dropdown-admin { color: var(--primary); font-weight: 600; }

/* === MAIN === */
.site-main {
    min-height: calc(100vh - 64px - 200px);
}

/* === PAGE HERO === */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: var(--white);
    padding: 48px 0 42px;
    text-align: center;
}
.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.page-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* === PAGE SECTION === */
.page-section {
    padding: 48px 0;
}

/* === SECTION HEADER === */
.section-header {
    text-align: center;
    margin-bottom: 36px;
}
.section-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.section-header p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* === CONTENT LAYOUT (main + sidebar) === */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}
.content-main { min-width: 0; }
.content-sidebar { position: sticky; top: 80px; }

/* === MODERN GRID === */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* === MODERN CARD === */
.modern-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.modern-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.modern-card .card-img {
    height: 180px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modern-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modern-card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.modern-card .card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.modern-card .card-body h3 a { color: var(--gray-900); }
.modern-card .card-body h3 a:hover { color: var(--primary); }
.modern-card .card-body p {
    font-size: 0.9rem;
    color: var(--gray-500);
    flex: 1;
    margin-bottom: 12px;
}
.modern-card .card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    flex-wrap: wrap;
}
.modern-card .card-meta {
    display: flex;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

/* === CONTENT CARD === */
.content-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

/* === SIDEBAR CARD === */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    margin-bottom: 20px;
}
.sidebar-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}
.sidebar-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-50);
}
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item a {
    color: var(--gray-700);
    font-size: 0.88rem;
}
.sidebar-item a:hover { color: var(--primary); }
.sidebar-item small { display: block; margin-top: 3px; }

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px dashed var(--gray-300);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.empty-state p { color: var(--gray-500); font-size: 0.9rem; }

/* === BADGES === */
.badge-free {
    display: inline-block;
    background: var(--success-light);
    color: var(--success);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.badge-pro {
    display: inline-block;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* === CARD PRICE === */
.card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 8px 0 12px;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    background: var(--primary);
    color: var(--white);
    line-height: 1.4;
}
.btn:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-large { padding: 14px 28px; font-size: 1rem; }
.btn-success { background: var(--success); }
.btn-success:hover { background: #15803d; color: var(--white); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-white {
    background: var(--white);
    color: var(--primary);
}
.btn-white:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}
.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

/* === HERO SECTION (index) === */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: var(--white);
    padding: 72px 0 64px;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    margin-bottom: 18px;
}
.hero-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.7;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.hero-trust {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    opacity: 0.8;
    flex-wrap: wrap;
}

/* Hero Preview Window */
.hero-preview { perspective: 1000px; }
.preview-window {
    background: var(--gray-900);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.preview-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }
.preview-title {
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--gray-400);
}
.preview-body { padding: 16px; }
.preview-item {
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--gray-300);
    background: rgba(255,255,255,0.05);
    border-left: 3px solid transparent;
}
.preview-item.active {
    background: rgba(37,99,235,0.15);
    color: #93c5fd;
    border-left-color: var(--primary);
}
.preview-item.success {
    background: rgba(22,163,74,0.15);
    color: #86efac;
    border-left-color: var(--success);
}
.hero-image-display {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* === STATS === */
.stats-section {
    padding: 40px 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-item {}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.stat-label {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* === SECTIONS === */
.section {
    padding: 60px 0;
}
.features-section { background: var(--gray-50); }
.products-section { background: var(--white); }
.blog-section { background: var(--gray-50); }

/* === FEATURES GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
    display: block;
    line-height: 1;
}
.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* === CARD GRID (products/blog on index) === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.card .card-img {
    height: 180px;
    overflow: hidden;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder {
    font-size: 3rem;
    color: var(--gray-300);
}
.card .card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card .card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.card .card-body h3 a { color: var(--gray-900); }
.card .card-body h3 a:hover { color: var(--primary); }
.card .card-body p {
    font-size: 0.88rem;
    color: var(--gray-500);
    flex: 1;
    margin-bottom: 12px;
}
.card .card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.text-muted { color: var(--gray-400); font-size: 0.85rem; }

/* === CTA SECTION === */
.cta-section {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: var(--white);
}
.cta-block {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.cta-block h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.cta-block p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 28px;
}
.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === SOFTWARE CATEGORY === */
.software-category {
    padding: 48px 0;
}
.software-free { background: var(--gray-50); }
.software-premium { background: var(--white); }
.category-header {
    margin-bottom: 28px;
}
.category-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.category-header p {
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* === DOWNLOAD CARD === */
.download-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: transform var(--transition);
}
.download-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.download-info h3 {
    font-size: 1.05rem;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.download-info p {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 10px;
}
.download-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--gray-400);
}

/* === BLOG POST DETAIL === */
.post-detail {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}
.post-detail h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
    line-height: 1.3;
}
.post-meta {
    display: flex;
    gap: 16px;
    color: var(--gray-400);
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-100);
}
.post-image {
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    width: 100%;
}
.post-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-700);
}
.post-content p { margin-bottom: 16px; }
.post-nav { margin-top: 28px; }
.sidebar-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    margin-bottom: 20px;
}
.sidebar-box h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-100);
}

/* === CHECKOUT === */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}
.checkout-form { min-width: 0; }
.checkout-summary { position: sticky; top: 80px; }

/* === FORM === */
.form-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    margin-bottom: 20px;
}
.form-box h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    font-family: var(--font);
    transition: border-color var(--transition);
    background: var(--white);
    color: var(--gray-800);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group input.input-readonly,
.form-group input[readonly] {
    background: #f1f5f9;
    color: #475569;
    cursor: default;
}
.checkout-auth-box .auth-form {
    margin-top: 0;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.88rem;
}
.payment-option:hover { border-color: var(--primary); background: var(--primary-light); }
.payment-option input[type="radio"] { accent-color: var(--primary); }
.payment-option input[type="radio"]:checked ~ span { color: var(--primary); font-weight: 600; }

/* Order Summary */
.order-product {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 16px;
}
.order-product-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xs);
    object-fit: cover;
}
.order-product-info strong {
    font-size: 0.95rem;
    color: var(--gray-900);
}
.order-product-info p {
    font-size: 0.82rem;
    margin-top: 4px;
}
.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    padding-top: 12px;
}
.order-total strong {
    color: var(--primary);
    font-size: 1.3rem;
}

/* === COMMUNITY CHAT === */
.community-chat-page {
    padding: 32px 0;
}
.community-chat-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 24px;
    align-items: start;
}
.community-chat-box {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
}
.community-chat-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: var(--white);
}
.community-chat-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
}
.community-chat-messages {
    height: 480px;
    overflow-y: auto;
    padding: 20px;
    background: var(--gray-50);
}
.community-message {
    margin-bottom: 14px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    max-width: 80%;
}
.community-message.mine {
    margin-left: auto;
    background: var(--primary-light);
}
.community-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.community-username {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--primary);
}
.community-time {
    font-size: 0.75rem;
    color: var(--gray-400);
}
.community-message-text {
    font-size: 0.9rem;
    color: var(--gray-700);
    word-break: break-word;
}
.community-chat-form {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}
.community-chat-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-xs);
    font-size: 0.9rem;
    outline: none;
    font-family: var(--font);
}
.community-chat-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.community-chat-banned {
    padding: 16px 20px;
    background: #fef2f2;
    color: var(--danger);
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--gray-200);
}
.community-online-box {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    position: sticky;
    top: 80px;
}
.community-online-header {
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-100);
}
.community-online-list {
    padding: 12px 18px;
    max-height: 460px;
    overflow-y: auto;
}
.community-online-user {
    padding: 7px 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    border-bottom: 1px solid var(--gray-50);
}
.community-online-user:last-child { border-bottom: none; }
.login-required-box {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 480px;
    margin: 40px auto;
}
.login-required-box h2 {
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}

/* === CONTACT === */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.contact-info-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 18px;
    border: 1px solid var(--gray-100);
}
.contact-info-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--gray-900);
    margin-bottom: 6px;
}
.contact-info-item p {
    font-size: 0.88rem;
    color: var(--gray-500);
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    padding: 20px 0;
}
.page-link, .page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    font-weight: 500;
}
.page-link {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}
.page-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.page-current {
    background: var(--primary);
    color: var(--white);
}

/* === ALERTS === */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.alert-success { background: var(--success-light); color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: var(--primary-light); color: #1e40af; border: 1px solid #bfdbfe; }

/* === PAYMENT RESULT PAGES === */
.payment-success-page {
    padding: 48px 0;
}
.payment-success-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}
.success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.payment-success-card h1 { font-size: 1.5rem; color: var(--gray-900); margin-bottom: 12px; }
.payment-success-card p { color: var(--gray-500); margin-bottom: 8px; }
.payment-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.payment-result {
    max-width: 600px;
    margin: 48px auto;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius);
    padding: 48px 36px;
    box-shadow: var(--shadow);
}
.payment-result .result-icon { font-size: 3.5rem; margin-bottom: 16px; }
.payment-result h1 { font-size: 1.5rem; color: var(--gray-900); margin-bottom: 12px; }
.payment-result p { color: var(--gray-500); margin-bottom: 8px; }
.payment-result .btn { margin-top: 24px; }

/* Bank Transfer Info */
.bank-info-box {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin: 24px 0;
    text-align: left;
}
.bank-info-box h3 {
    font-size: 1.05rem;
    color: var(--gray-900);
    margin-bottom: 16px;
    text-align: center;
}
.bank-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.92rem;
}
.bank-row:last-child { border-bottom: none; }
.bank-row span:first-child { color: var(--gray-500); }
.bank-row strong { color: var(--gray-900); }
.bank-row.highlight { background: #fffbeb; margin: 0 -12px; padding: 12px; border-radius: var(--radius-xs); }
.bank-row.highlight strong { color: var(--danger); }
.text-danger { color: var(--danger); }
.bank-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.92rem;
}
.bank-detail-row:last-child { border-bottom: none; }
.bank-detail-row span:first-child { color: var(--gray-500); }
.bank-detail-row span:last-child { font-weight: 600; color: var(--gray-900); }

/* === ADSENSE SLOTS === */
.adsense-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
}
.adsense-box {
    width: 100%;
    max-width: var(--max-width);
    margin: 20px auto;
    text-align: center;
}
.adsense-box ins {
    display: block;
    margin: 0 auto;
}
.ad-slot {
    max-width: var(--max-width);
    margin: 24px auto;
    padding: 10px;
    text-align: center;
}
.ad-slot ins {
    display: block;
    margin: 0 auto;
}
.ad-placeholder {
    background: var(--white);
    border: 1px dashed var(--gray-300);
    color: var(--gray-400);
    border-radius: var(--radius-sm);
    padding: 18px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    text-align: center;
}

@media (max-width: 768px) {
    .adsense-wrapper {
        padding: 0 16px;
    }
    .adsense-box {
        margin: 14px auto;
    }
}

/* === FOOTER === */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 48px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}
.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.footer-col p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--gray-400);
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul a {
    color: var(--gray-400);
    font-size: 0.88rem;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
    margin-top: 36px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.83rem;
    color: var(--gray-500);
}

/* === PAGE WRAP & TWO-COLUMN LAYOUT === */
.page-wrap {
    padding: 60px 0 80px;
    background: #f4f7fb;
}
.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}
.main-content-card {
    background: #fff;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
}
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}
.right-sidebar .sidebar-card {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    border: 1px solid #e8edf5;
    margin-bottom: 0;
}
.right-sidebar .sidebar-card h3 {
    font-size: 17px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
    color: #1f2937;
}
.sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.sidebar-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
    color: #334155;
    font-weight: 600;
    font-size: 0.9rem;
}
.sidebar-list a:last-child { border-bottom: none; }
.sidebar-list a:hover { color: #1e90ff; }
.sidebar-support-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-support-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #334155;
}

/* === DETAIL PAGE STYLES === */
.detail-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 24px;
    background: #eef6ff;
}
.product-gallery { margin-bottom: 24px; }
.product-gallery-main .detail-image { margin-bottom: 12px; }
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.product-gallery-thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    border-color: #1e90ff;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15);
}
.detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #172033;
    line-height: 1.3;
}
.detail-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ef4444;
    margin: 12px 0 20px;
}
.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.detail-description {
    border-top: 1px solid #edf2f7;
    padding-top: 24px;
    line-height: 1.85;
    color: #334155;
    font-size: 1rem;
}

/* === DOWNLOAD LIST (new layout) === */
.download-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.download-item {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    border: 1px solid #e8edf5;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.download-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}
.download-item h3 {
    font-size: 1.05rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.download-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 10px;
}

/* === BLOG GRID MODERN === */
.blog-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.blog-card-modern {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #e8edf5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.blog-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
.blog-card-image {
    height: 200px;
    background: #eaf6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    overflow: hidden;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-900);
}
.blog-card-body h3 a { color: var(--gray-900); }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.9rem;
    flex: 1;
}
.blog-meta {
    display: flex;
    gap: 15px;
    color: #94a3b8;
    font-size: 0.82rem;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0f2f5;
}

/* === ADSENSE IN SIDEBAR === */
.right-sidebar .ad-slot,
.sidebar-card .ad-slot {
    margin: 0;
    max-width: 100%;
    padding: 0;
}

/* === FADE IN ANIMATION === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-preview { display: none; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .content-layout { grid-template-columns: 1fr; }
    .content-sidebar { position: static; }
    .two-column-layout { grid-template-columns: 1fr; }
    .right-sidebar { position: static; }
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .community-chat-layout { grid-template-columns: 1fr; }
    .community-online-box { position: static; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-md);
    }
    .main-nav.active { display: flex; }
    .nav-divider { display: none; }
    .main-nav a { padding: 12px 16px; width: 100%; }

    .user-dropdown {
        width: 100%;
    }
    .user-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
    }
    .user-dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 4px;
        box-shadow: none;
        border: 1px solid var(--gray-200);
    }

    .hero { padding: 48px 0 40px; }
    .hero-content h1 { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .modern-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .payment-methods { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .download-card { flex-direction: column; text-align: center; }
    .page-title { font-size: 1.6rem; }

    .community-chat-messages { height: 360px; }
    .community-message { max-width: 95%; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content h1 { font-size: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-buttons { flex-direction: column; }
    .cta-buttons { flex-direction: column; }
}

/* =============================================
   ADMIN BADGE - Premium Red Style
   Áp dụng cho: Navbar, Chat, Comment, Profile
   ============================================= */

/* ---- Admin Badge pill (nhỏ, nằm trong button) ---- */
.admin-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.22);
    color: #fff !important;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.5;
    pointer-events: none;
}

/* ---- Dropdown toggle button khi là admin ----
   Dùng #userDropdown prefix để specificity (1,1,0) > (0,1,0) base rule */
#userDropdown .user-dropdown-toggle.admin-toggle {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 55%, #ef4444 100%);
    color: #fff;
    border: 1px solid #b91c1c;
    box-shadow: 0 2px 12px rgba(220, 38, 38, 0.4), 0 0 0 0 rgba(220,38,38,0);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
#userDropdown .user-dropdown-toggle.admin-toggle:hover {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
    border-color: #991b1b;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.55), 0 0 14px rgba(220, 38, 38, 0.3);
    color: #fff;
    transform: translateY(-1px);
}
/* Giữ màu đỏ cả khi đang mở - override rule is-open base */
#userDropdown.is-open .user-dropdown-toggle.admin-toggle {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
    border-color: #991b1b;
    color: #fff;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.55);
}
#userDropdown .user-dropdown-toggle.admin-toggle .user-dropdown-caret {
    color: rgba(255, 255, 255, 0.85);
}
/* Text bên trong button */
#userDropdown .user-dropdown-toggle.admin-toggle span {
    color: #fff;
}

/* ---- Dropdown menu admin ---- */
#userDropdownMenu.admin-menu {
    border-top: 3px solid #dc2626;
}
#userDropdownMenu.admin-menu .dropdown-label {
    color: #dc2626;
    font-weight: 800;
}

/* ---- Username admin màu đỏ (dùng ngoài button) ---- */
.username-admin {
    color: #dc2626 !important;
    font-weight: 700 !important;
}

/* ---- Community chat - admin message ---- */
.community-username.admin-name {
    color: #dc2626 !important;
    font-weight: 700;
}
.community-message.admin-message {
    border-left: 3px solid #dc2626;
    background: linear-gradient(to right, #fef2f2, #fff);
}

/* ---- Chat admin username pill ---- */
.chat-admin-user {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7a0000 0%, #dc2626 60%, #ff4444 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 0 14px rgba(220, 38, 38, 0.3), 0 2px 6px rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    letter-spacing: 0.01em;
    line-height: 1.4;
    white-space: nowrap;
}
.chat-admin-user * {
    color: #fff !important;
}

/* Badge "ADMIN" nhỏ bên trong pill */
.chat-admin-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1px 5px;
    color: #fff !important;
    line-height: 1.6;
}

/* ---- Admin chat badge (yêu cầu mới) ---- */
.admin-chat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7a0000, #ff2d2d) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 0 14px rgba(255, 0, 0, .25);
    font-size: 0.82rem;
    white-space: nowrap;
}
.admin-chat-badge * {
    color: #fff !important;
}

/* Message bubble admin */
.community-message.admin-message {
    border-left: 3px solid #dc2626;
    background: linear-gradient(100deg, #fff5f5 0%, #fff 100%);
}

/* Online list - admin user */
.community-online-user .chat-admin-user {
    font-size: 0.8rem;
    padding: 2px 8px 2px 6px;
}

/* ---- Profile / sidebar admin tag ---- */
.profile-admin-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-xs);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.4);
    letter-spacing: 0.04em;
}

/* ---- Ad placeholder đẹp ---- */
.adsense-wrapper .ad-placeholder,
.adsense-box.ad-placeholder {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    color: #94a3b8;
    font-size: 0.8rem;
    font-style: italic;
    padding: 20px;
    min-height: 60px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Widget Blocks (Frontend) ---- */
.widget-block {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
    margin-bottom: 20px;
    overflow: hidden;
}
.widget-block-title {
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}
.widget-block-content {
    padding: 18px 20px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray-700);
    word-break: break-word;
}
.widget-block-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-xs);
}
.widget-block-content iframe {
    max-width: 100%;
    border-radius: var(--radius-xs);
}
