/* =============================================
   Bubble Doge Rewards Hub — Main Stylesheet
   Light / Day Mode · Clean & Elegant
   ============================================= */

/* --- Variables --- */
:root {
    --color-primary:     #F5A623;
    --color-primary-dark:#D4891A;
    --color-primary-light:#FEF3DC;
    --color-secondary:   #1A1A2E;
    --color-accent:      #E8F4FD;
    --color-text:        #1A1A2E;
    --color-text-muted:  #6B7280;
    --color-text-light:  #9CA3AF;
    --color-bg:          #FFFFFF;
    --color-bg-soft:     #F9FAFB;
    --color-bg-card:     #FFFFFF;
    --color-border:      #E5E7EB;
    --color-border-light:#F3F4F6;
    --color-success:     #10B981;
    --color-warning:     #F59E0B;
    --color-danger:      #EF4444;
    --color-info:        #3B82F6;

    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display:'Space Grotesk', var(--font-sans);

    --radius-sm:   6px;
    --radius:      10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    --shadow-xs:   0 1px 2px rgba(0,0,0,.05);
    --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
    --shadow:      0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:   0 8px 32px rgba(0,0,0,.10);
    --shadow-xl:   0 16px 48px rgba(0,0,0,.12);

    --transition:  0.2s ease;
    --container:   1200px;
    --header-h:    68px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* --- Container --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--color-text); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-full);
    font-size: 14px; font-weight: 600; line-height: 1;
    transition: all var(--transition); white-space: nowrap; cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,166,35,.35); }
.btn-ghost {
    background: transparent; color: var(--color-text); border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline {
    background: transparent; color: var(--color-primary); border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* --- Header --- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h); background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.logo-text { font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--color-text); }
.logo-text strong { color: var(--color-primary); }
.primary-nav { flex: 1; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
    display: block; padding: 8px 14px; border-radius: var(--radius-full);
    font-size: 14px; font-weight: 500; color: var(--color-text-muted);
    transition: all var(--transition);
}
.primary-nav a:hover, .primary-nav a.active { color: var(--color-primary); background: var(--color-primary-light); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* User Menu */
.user-menu { position: relative; }
.user-menu-trigger {
    display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
    border-radius: var(--radius-full); border: 1px solid var(--color-border);
    background: var(--color-bg-soft); transition: all var(--transition);
}
.user-menu-trigger:hover { border-color: var(--color-primary); }
.user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.user-name { font-size: 13px; font-weight: 600; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px;
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 6px; display: none; z-index: 200;
}
.user-dropdown.open { display: block; animation: fadeInDown .15s ease; }
.user-dropdown a {
    display: block; padding: 9px 14px; border-radius: var(--radius-sm);
    font-size: 14px; color: var(--color-text); transition: all var(--transition);
}
.user-dropdown a:hover { background: var(--color-bg-soft); color: var(--color-primary); }
.dropdown-divider { height: 1px; background: var(--color-border); margin: 4px 0; }
.logout-link { color: var(--color-danger) !important; }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: all var(--transition); }

/* --- Flash Messages --- */
.flash-container { position: fixed; top: calc(var(--header-h) + 12px); right: 20px; z-index: 500; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.flash {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    font-size: 14px; font-weight: 500; animation: slideInRight .3s ease;
}
.flash-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.flash-warning { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.flash-info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.flash-close   { font-size: 18px; line-height: 1; opacity: .6; padding: 0 4px; }
.flash-close:hover { opacity: 1; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--color-text); }
.form-label .required { color: var(--color-danger); margin-left: 2px; }
.form-control {
    display: block; width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--color-border); border-radius: var(--radius);
    background: var(--color-bg); color: var(--color-text);
    font-size: 14px; transition: all var(--transition);
}
.form-control:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.form-control::placeholder { color: var(--color-text-light); }
.form-control.is-invalid { border-color: var(--color-danger); }
.form-error { font-size: 12px; color: var(--color-danger); margin-top: 4px; }
.form-hint  { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* --- Cards --- */
.card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 20px; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--color-text-muted); margin-bottom: 10px; }
.card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.card-title a:hover { color: var(--color-primary); }
.card-text { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--color-border-light); display: flex; align-items: center; justify-content: space-between; }

/* --- Badges --- */
.badge {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: var(--radius-full); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
}
.badge-primary { background: var(--color-primary-light); color: var(--color-primary-dark); }
.badge-success { background: #ECFDF5; color: #065F46; }
.badge-danger  { background: #FEF2F2; color: #991B1B; }
.badge-info    { background: #EFF6FF; color: #1E40AF; }

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header .eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-primary); margin-bottom: 12px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { font-size: 17px; color: var(--color-text-muted); max-width: 560px; margin: 0 auto; }

/* --- Grid Layouts --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #FFFDF7 0%, #FEF9EE 50%, #F0F9FF 100%);
    padding: 80px 0 60px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(245,166,35,.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { max-width: 640px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--color-primary-light); border-radius: var(--radius-full); font-size: 13px; font-weight: 600; color: var(--color-primary-dark); margin-bottom: 24px; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-title .highlight { color: var(--color-primary); }
.hero-desc { font-size: 18px; color: var(--color-text-muted); margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--color-text); }
.hero-stat-label { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }

/* --- Rewards Grid --- */
.reward-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
    display: flex; flex-direction: column;
}
.reward-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.reward-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.reward-card-img-placeholder {
    width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, var(--color-primary-light), #FEF9EE);
    display: flex; align-items: center; justify-content: center; font-size: 48px;
}
.reward-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.reward-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.reward-card-desc { font-size: 14px; color: var(--color-text-muted); flex: 1; margin-bottom: 16px; line-height: 1.6; }
.reward-card-footer { padding: 14px 20px; border-top: 1px solid var(--color-border-light); }

/* --- Blog --- */
.article-card { display: flex; flex-direction: column; }
.article-card-img-wrap { border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 16/9; }
.article-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-card-img-wrap img { transform: scale(1.04); }

/* --- Article Detail --- */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.article-content { font-size: 16px; line-height: 1.8; }
.article-content h2,h3,h4 { margin: 2rem 0 1rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content ul li { list-style: disc; margin-bottom: .4rem; }
.article-content ol li { list-style: decimal; margin-bottom: .4rem; }
.article-content blockquote { border-left: 4px solid var(--color-primary); padding: 12px 20px; background: var(--color-primary-light); border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; font-style: italic; }
.article-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }

/* --- Auth Pages --- */
.auth-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--color-bg-soft); }
.auth-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 44px 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 12px; }
.auth-title { font-size: 1.6rem; font-weight: 800; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--color-text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-divider { text-align: center; position: relative; margin: 20px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--color-border); }
.auth-divider span { position: relative; background: var(--color-bg-card); padding: 0 12px; font-size: 13px; color: var(--color-text-muted); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--color-text-muted); }
.auth-footer a { color: var(--color-primary); font-weight: 600; }

/* --- Pagination --- */
.pagination-nav { display: flex; justify-content: center; margin-top: 48px; }
.pagination { display: flex; align-items: center; gap: 6px; }
.pagination li a, .pagination li.active a {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: var(--radius);
    font-size: 14px; font-weight: 500; border: 1.5px solid var(--color-border);
    color: var(--color-text); transition: all var(--transition);
}
.pagination li a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination li.active a { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination li.dots { padding: 0 4px; color: var(--color-text-muted); }

/* --- Sidebar Widgets --- */
.widget { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.widget-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--color-primary); display: inline-block; }

/* --- Ad Slots --- */
.ad-slot { text-align: center; margin: 24px 0; }
.ad-slot-label { font-size: 11px; color: var(--color-text-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.ad-slot img { max-width: 100%; border-radius: var(--radius); }

/* --- Bookmark Button --- */
.bookmark-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: var(--radius-full);
    border: 1.5px solid var(--color-border); font-size: 13px; font-weight: 600;
    color: var(--color-text-muted); transition: all var(--transition);
}
.bookmark-btn:hover, .bookmark-btn.active { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.bookmark-btn svg { transition: fill var(--transition); }
.bookmark-btn.active svg { fill: var(--color-primary); }

/* --- Stats Cards (Admin) --- */
.stat-card {
    background: var(--color-bg-card); border: 1px solid var(--color-border);
    border-radius: var(--radius-lg); padding: 24px; position: relative; overflow: hidden;
}
.stat-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--color-primary); border-radius: 4px 0 0 4px;
}
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--color-primary-light); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--color-text-muted); font-weight: 500; }
.stat-change { font-size: 12px; font-weight: 600; margin-top: 8px; }
.stat-change.up { color: var(--color-success); }
.stat-change.down { color: var(--color-danger); }

/* --- Tables --- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--color-text-muted); background: var(--color-bg-soft); border-bottom: 1px solid var(--color-border); white-space: nowrap; }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--color-border-light); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--color-bg-soft); }

/* --- Tabs --- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--color-border); margin-bottom: 28px; }
.tab-btn {
    padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--color-text-muted);
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition);
}
.tab-btn:hover { color: var(--color-primary); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* --- Search Bar --- */
.search-bar { display: flex; gap: 10px; align-items: center; }
.search-bar .form-control { flex: 1; }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state-icon { font-size: 56px; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; }
.empty-state p { color: var(--color-text-muted); font-size: 14px; }

/* --- Footer --- */
.site-footer { background: var(--color-secondary); color: #E5E7EB; padding: 60px 0 0; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.logo-img-sm { width: 30px; height: 30px; border-radius: 6px; }
.footer-brand p { font-size: 14px; color: #9CA3AF; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.08); color: #E5E7EB;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.social-link:hover { background: var(--color-primary); color: #fff; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: #9CA3AF; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 13px; color: #6B7280; }
.footer-tagline { font-style: italic; }

/* --- Page Header --- */
.page-header { background: var(--color-bg-soft); padding: 48px 0 40px; border-bottom: 1px solid var(--color-border); margin-bottom: 48px; }
.page-header h1 { margin-bottom: 10px; }
.page-header p { color: var(--color-text-muted); font-size: 17px; max-width: 560px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--color-primary); }
.breadcrumb-sep { opacity: .4; }

/* --- Loading Spinner --- */
.spinner { width: 20px; height: 20px; border: 2px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.py-5 { padding-top: 48px; padding-bottom: 48px; }
.py-6 { padding-top: 64px; padding-bottom: 64px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Animations --- */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}
@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    .primary-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: 16px 24px; z-index: 99; box-shadow: var(--shadow-lg); }
    .primary-nav.open { display: block; animation: fadeInDown .2s ease; }
    .primary-nav ul { flex-direction: column; gap: 4px; }
    .mobile-menu-btn { display: flex; }
    .hero { padding: 48px 0 40px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .auth-card { padding: 32px 24px; }
    .header-actions .btn { display: none; }
    .header-actions .btn:last-of-type { display: inline-flex; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* =============================================
   Language Switcher
   ============================================= */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.lang-btn {
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: var(--color-primary); }
.lang-btn.active {
    color: var(--color-primary);
    background: var(--color-primary-light);
}
.lang-sep { color: var(--color-border); }
@media (max-width: 768px) {
    .lang-switcher { margin-right: 4px; }
}
