/* =====================================================
   Mega888.today – DedeCMS/DedeBiz Theme
   Color palette: Dark Navy + Royal Blue + Gold
   ===================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; object-fit: contain; display: block; }

:root {
    --bg-body:      #080E28;
    --bg-header:    #050C22;
    --primary:      #1565C0;
    --primary-h:    #0D47A1;
    --gold:         #D4AF37;
    --gold-h:       #B8960C;
    --nav-bg:       linear-gradient(to right, #051238, #1565C0);
    --footer-bg:    linear-gradient(135deg, #060C20 0%, #0A1530 100%);
    --text:         #FFFFFF;
    --text-muted:   #CCCCCC;
    --border:       rgba(255,255,255,0.08);
    --card-bg:      rgba(255,255,255,0.04);
    --shadow:       0 4px 12px rgba(0,0,0,0.5);
    --radius-sm:    6px;
    --radius-md:    10px;
    --radius-lg:    14px;
    --transition:   0.3s ease;
    --container:    1200px;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg-body);
    color: var(--text);
    font-family: 'Segoe UI', 'Microsoft JhengHei', Arial, sans-serif;
    line-height: 1.65;
    font-size: 15px;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }

h1, h2, h3, h4, h5, h6 { color: var(--text); line-height: 1.3; }

ul, ol { padding-left: 1.4em; }

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080E28; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

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

/* ---------- Header ---------- */
.header {
    background: var(--bg-header);
    box-shadow: 0 2px 8px rgba(0,0,0,0.7);
    position: relative;
    z-index: 100;
    border-bottom: 2px solid var(--primary);
}

.header-content { display: flex; flex-direction: column; align-items: center; }

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
}

.logo { max-width: 160px; display: flex; align-items: center; }
.logo img { width: 100%; }

.auth-buttons { display: flex; gap: 12px; }

.auth-button {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 22px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: all var(--transition);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.register-button { background: var(--gold); color: #111; }
.register-button:hover {
    background: var(--gold-h);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212,175,55,0.4);
}

.login-button { background: var(--primary); color: #fff; }
.login-button:hover {
    background: var(--primary-h);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(21,101,192,0.4);
}

/* ---------- Navigation ---------- */
.main-menu-container { width: 100%; background: var(--nav-bg); padding: 0; }

.main-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    padding: 0; margin: 0;
    flex-wrap: wrap;
}
.main-menu li { margin: 0; }
.main-menu a {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 11px 18px;
    transition: all var(--transition);
}
.main-menu a:hover { background: rgba(255,255,255,0.1); color: var(--gold); }

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--text);
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
}

/* ---------- Side Nav ---------- */
.side-nav {
    position: fixed;
    top: 0; left: -300px;
    width: 280px; height: 100%;
    background: linear-gradient(180deg, #050C22 0%, #0A1530 100%);
    z-index: 1000;
    transition: left var(--transition);
    overflow-y: auto;
    padding: 20px;
    border-right: 2px solid var(--primary);
}
.side-nav.active { left: 0; }

.side-nav-close { position: absolute; top: 12px; right: 14px; font-size: 22px; color: #fff; cursor: pointer; }
.side-nav-close:hover { color: var(--gold); }

.side-nav-logo { text-align: center; margin: 40px 0 24px; }
.side-nav-logo img { max-width: 140px; }

.side-nav-menu { list-style: none; margin-bottom: 24px; padding: 0; }
.side-nav-menu li { border-bottom: 1px solid var(--border); }
.side-nav-menu a {
    display: block; color: #fff;
    font-size: 15px; font-weight: 600;
    padding: 12px 4px;
    transition: color var(--transition), padding-left var(--transition);
}
.side-nav-menu a:hover { color: var(--gold); padding-left: 10px; }

.side-nav-auth { margin-top: 24px; }
.side-nav-auth .auth-buttons { flex-direction: column; gap: 10px; }
.side-nav-auth .auth-button { text-align: center; }

.overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 999; }
.overlay.active { display: block; }

/* ---------- Banner ---------- */
.banner-container { position: relative; overflow: hidden; background: #000; }
.banner-slider { display: flex; transition: transform 0.5s ease; }
.banner-slide { flex: 0 0 100%; display: flex; justify-content: center; align-items: center; }
.banner-slide img { width: 70%; height: auto; object-fit: contain; display: block; }
@media (max-width: 768px) {
    .banner-slide img { width: 95%; }
}

.banner-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(21,101,192,0.75);
    color: #fff; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; cursor: pointer; font-size: 16px; font-weight: 700;
    z-index: 10; transition: background var(--transition);
}
.banner-nav:hover { background: var(--gold); color: #111; }
.banner-prev { left: 12px; }
.banner-next { right: 12px; }

.banner-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.banner-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background var(--transition), transform var(--transition); }
.banner-dot.active { background: var(--gold); transform: scale(1.3); }

/* ---------- Payment Methods Bar ---------- */
.payment-methods-bar {
    background: #050C22;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex; justify-content: center; gap: 32px;
    flex-wrap: wrap; align-items: center;
}
.payment-section { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.payment-title span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 8px; border-radius: 4px; }
.local-payment { background: var(--primary); color: #fff; }
.crypto-payment { background: var(--gold); color: #111; }
.payment-methods-list { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.payment-method-item img { height: 28px; width: auto; object-fit: contain; border-radius: 4px; opacity: 0.85; transition: opacity var(--transition); }
.payment-method-item img:hover { opacity: 1; }

/* ---------- Promo Cards ---------- */
.promo-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; padding: 20px 16px;
    max-width: var(--container); margin: 0 auto;
}
.promo-card {
    background: linear-gradient(135deg, #0A1530 0%, #0D1F45 100%);
    border: 1px solid rgba(21,101,192,0.3);
    border-radius: var(--radius-md);
    padding: 18px; position: relative; overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(21,101,192,0.25); }
.promo-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); }

.promo-card-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.8px; padding: 2px 8px; border-radius: 3px; margin-bottom: 10px; }
.promo-card-tag.new { background: var(--gold); color: #111; }
.promo-card-tag.hot { background: var(--primary); color: #fff; }
.promo-card-tag.limited { background: #0A2060; color: var(--gold); border: 1px solid var(--gold); }

.promo-card-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.promo-card-description { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Main Content ---------- */
.main-content-container { padding: 24px 16px; max-width: var(--container); margin: 0 auto; }

/* ---------- Site Intro ---------- */
.site-intro { margin-bottom: 32px; }
.site-intro h1 { font-size: 26px; font-weight: 800; color: #fff; margin: 24px 0 16px; border-left: 4px solid var(--primary); padding-left: 12px; }
.site-intro h2 { font-size: 21px; font-weight: 700; color: var(--gold); margin: 28px 0 12px; border-left: 3px solid var(--gold); padding-left: 10px; }
.site-intro h3 { font-size: 17px; font-weight: 600; color: #eee; margin: 20px 0 10px; }
.site-intro p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.site-intro ul, .site-intro ol { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.site-intro li { margin-bottom: 6px; }
.site-intro strong { color: #fff; }
.site-intro a { color: var(--gold); }
.site-intro a:hover { color: #fff; text-decoration: underline; }
.site-intro em { color: #aaa; font-style: italic; }

.site-intro table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 14px; }
.site-intro table th, .site-intro table td { padding: 10px 12px; border: 1px solid #0A1A3E; text-align: left; vertical-align: top; }
.site-intro table th { background: #0A1A3E; color: var(--gold); font-weight: 700; border-bottom: 2px solid var(--primary); }
.site-intro table td { color: var(--text-muted); }
.site-intro table tr:nth-child(even) td { background: #090F25; }
.site-intro table tr:hover td { background: #0C1635; }
.table-wrap { overflow-x: auto; margin-bottom: 20px; }

/* ---------- Article Grid ---------- */
.features-title { font-size: 20px; font-weight: 700; color: #fff; margin: 32px 0 16px; padding-left: 12px; border-left: 4px solid var(--primary); }
.features-grid-container { overflow: hidden; }
.article-grid,
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-bottom: 24px; }

.grid-item,
.feature-card {
    background: #0D1A3A;
    border: 1px solid rgba(21,101,192,0.25);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.grid-item:hover, .feature-card:hover { box-shadow: 0 6px 20px rgba(21,101,192,0.25); transform: translateY(-3px); }
.grid-item-image img, .feature-image img { width: 100%; height: 160px; object-fit: cover; display: block; }
.grid-item-content, .feature-content { padding: 14px; }
.grid-item-title, .feature-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.grid-item-title a, .feature-title a { color: #fff; }
.grid-item-title a:hover, .feature-title a:hover { color: var(--gold); }
.grid-item-meta { font-size: 12px; color: #888; margin-bottom: 8px; display: flex; gap: 10px; }
.grid-item-excerpt, .feature-description { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ---------- CTA ---------- */
.cta-wrap { text-align: center; margin: 28px 0; }
.cta-btn {
    display: inline-block;
    background: var(--gold); color: #111;
    font-weight: 800; font-size: 15px;
    padding: 14px 36px; border-radius: 28px;
    transition: all var(--transition);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.cta-btn:hover { background: var(--gold-h); color: #111; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(212,175,55,0.35); }

/* ---------- Statistics ---------- */
.live-statistics-section { background: #050C22; padding: 40px 16px; margin: 32px -16px; }
.section-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 28px; color: var(--gold); }
.statistics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat-card {
    background: #0A1530;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-icon i { font-size: 28px; color: var(--gold); margin-bottom: 10px; }
.stat-number { font-size: 22px; font-weight: 800; color: var(--gold); margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-section { background: #060C20; padding: 48px 16px; margin-top: 32px; }
.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #0D1A3A; border: 1px solid rgba(21,101,192,0.25); border-radius: var(--radius-md); padding: 18px 20px; }
.faq-question { font-size: 16px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.faq-answer { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ---------- User Reviews ---------- */
.user-reviews-section { background: #060C20; padding: 48px 16px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.review-card { background: #0D1A3A; border: 1px solid rgba(21,101,192,0.2); border-radius: var(--radius-md); padding: 18px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviewer-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); }
.reviewer-name { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.rating { color: var(--gold); font-size: 14px; }
.review-text { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 12px; }
.review-footer { display: flex; justify-content: space-between; font-size: 12px; }
.review-date { color: #666; }
.verified-user { color: var(--gold); font-weight: 600; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 14px 0; font-size: 13px; color: #888; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.breadcrumb a { color: var(--gold); }

/* ---------- Page Title ---------- */
.page-title { margin-bottom: 24px; }
.page-title h1 { font-size: 22px; font-weight: 700; color: #fff; padding-left: 12px; border-left: 4px solid var(--primary); }

/* ---------- Article List ---------- */
.article-list-container { padding: 16px 0; }
.list-container { display: grid; grid-template-columns: 1fr 280px; gap: 28px; }
.article-list { display: flex; flex-direction: column; gap: 18px; }

.article-card {
    display: grid; grid-template-columns: 180px 1fr; gap: 16px;
    background: #0D1A3A; border: 1px solid rgba(21,101,192,0.2);
    border-radius: var(--radius-md); overflow: hidden;
    transition: box-shadow var(--transition);
}
.article-card:hover { box-shadow: 0 4px 16px rgba(21,101,192,0.2); }
.article-image img { width: 100%; height: 120px; object-fit: cover; }
.article-content { padding: 14px 14px 14px 0; }
.article-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.article-title a { color: #fff; }
.article-title a:hover { color: var(--gold); }
.article-description { font-size: 13px; color: var(--text-muted); line-height: 1.55; margin-bottom: 10px; }
.article-link {
    display: inline-block; font-size: 13px; font-weight: 600; color: var(--gold);
    border: 1px solid var(--gold); padding: 4px 12px; border-radius: 4px;
    transition: all var(--transition);
}
.article-link:hover { background: var(--gold); color: #111; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 24px 0; }
.pagination a, .pagination span {
    display: inline-block; padding: 6px 14px;
    border-radius: 4px; background: #0D1A3A;
    border: 1px solid rgba(21,101,192,0.3);
    color: var(--text-muted); font-size: 13px; transition: all var(--transition);
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Sidebar ---------- */
.sidebar-title { font-size: 16px; font-weight: 700; color: var(--gold); padding: 10px 12px; background: #0D1A3A; border-radius: var(--radius-sm); margin-bottom: 14px; border-left: 3px solid var(--primary); }
.recent-posts-list { display: flex; flex-direction: column; gap: 12px; }
.recent-post-item { display: flex; gap: 10px; align-items: flex-start; }
.recent-post-image img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.recent-post-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.recent-post-title a { color: var(--text-muted); }
.recent-post-title a:hover { color: var(--gold); }
.recent-post-date { font-size: 11px; color: #666; }

/* ---------- Article Content ---------- */
.article-container { display: grid; grid-template-columns: 1fr 260px; gap: 28px; }
.article-meta { font-size: 13px; color: #888; margin-bottom: 10px; }
.article-content-box { background: #060C20; border: 1px solid rgba(21,101,192,0.15); border-radius: var(--radius-md); padding: 24px; }
.article-content h2 { color: var(--gold); margin: 20px 0 10px; font-size: 20px; }
.article-content h3 { color: #eee; margin: 16px 0 8px; font-size: 17px; }
.article-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.article-content ul, .article-content ol { color: var(--text-muted); margin-bottom: 14px; }
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--gold); }
.article-content strong { color: #fff; }
.article-content img { border-radius: var(--radius-sm); margin: 16px auto; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 14px; }
.article-content table th { background: #0D1A3A; color: var(--gold); padding: 10px; border: 1px solid #0A1530; }
.article-content table td { padding: 9px 10px; border: 1px solid #090F25; color: var(--text-muted); }
.article-sidebar { }
.sidebar-section { background: #0D1A3A; border-radius: var(--radius-md); padding: 16px; margin-bottom: 20px; }
.recommended-posts { display: flex; flex-direction: column; gap: 8px; }
.recommended-posts a { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.recommended-posts a:hover { color: var(--gold); }
.article-navigation { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
.article-navigation a { font-size: 13px; color: var(--text-muted); }
.article-navigation a:hover { color: var(--gold); }
.article-tags { margin: 24px 0 16px; }
.article-tags h4 { font-size: 13px; font-weight: 600; color: #888; margin-bottom: 8px; }
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-link { background: #0D1A3A; border: 1px solid rgba(21,101,192,0.4); border-radius: 4px; color: var(--gold); font-size: 12px; padding: 3px 10px; }
.tag-link:hover { background: var(--primary); color: #fff; }
.social-share { display: flex; gap: 10px; margin: 20px 0; }
.social-share a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; text-decoration: none; font-size: 13px; }
.social-share a.facebook { background: #1877f2; }
.social-share a.twitter  { background: #1da1f2; }
.toc-container { background: #0D1A3A; border: 1px solid rgba(21,101,192,0.25); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px; }
.toc-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: var(--gold); }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin: 5px 0; }
.toc-list a { color: var(--text-muted); font-size: 13px; }
.toc-list a:hover { color: var(--gold); text-decoration: underline; }
.toc-h3 { padding-left: 12px; font-size: 12px; }

/* ---------- Mobile Footer Buttons ---------- */
.mobile-footer-buttons { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #050C22; border-top: 1px solid var(--primary); z-index: 500; padding: 10px 16px; gap: 10px; }
.mobile-footer-buttons .auth-button { flex: 1; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--footer-bg); padding-top: 48px; border-top: 2px solid var(--primary); }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-col h3.footer-title { font-size: 16px; font-weight: 700; color: var(--gold); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(212,175,55,0.2); }
.footer-col p, .footer-col address { font-size: 13px; color: var(--text-muted); line-height: 1.9; font-style: normal; }
.footer-col a { color: var(--text-muted); font-size: 13px; transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-payments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer-payments img { height: 24px; width: auto; opacity: 0.75; border-radius: 3px; }
.footer-payments img:hover { opacity: 1; }

.footer-friendlinks { padding: 16px; border-top: 1px solid var(--border); }
.friendlinks-title { font-size: 14px; color: #888; margin-bottom: 10px; }
.friendlinks-title i { margin-right: 6px; color: var(--gold); }
.friendlinks-list { display: flex; flex-wrap: wrap; gap: 10px; }
.friendlinks-list a { font-size: 12px; color: #666; padding: 3px 8px; border: 1px solid #1a1a2a; border-radius: 3px; }
.friendlinks-list a:hover { color: var(--gold); border-color: var(--gold); }

.footer-bottom { background: rgba(0,0,0,0.4); padding: 16px 0; border-top: 1px solid var(--border); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.copyright { font-size: 13px; color: #555; }
.footer-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-meta a { font-size: 12px; color: #555; }
.footer-meta a:hover { color: var(--gold); }
.back-to-top { background: var(--primary); color: #fff !important; padding: 4px 12px; border-radius: 4px; }
.back-to-top:hover { background: var(--gold) !important; color: #111 !important; }
.divider { color: #333; margin: 0 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .promo-cards-container { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .list-container { grid-template-columns: 1fr; }
    .article-container { grid-template-columns: 1fr; }
    .article-card { grid-template-columns: 140px 1fr; }
}

@media (max-width: 640px) {
    .promo-cards-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-top .auth-buttons { display: none; }
    .main-menu-container { display: none; }
    .menu-toggle { display: block; }
    .mobile-footer-buttons { display: flex; }
    body { padding-bottom: 60px; }
    .header-top { position: relative; justify-content: center; }
    .article-card { grid-template-columns: 1fr; }
    .article-image img { height: 180px; }
    .site-intro h1 { font-size: 20px; }
    .site-intro h2 { font-size: 17px; }
    .statistics-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
}

.header.fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 999; box-shadow: 0 4px 16px rgba(0,0,0,0.8); }
body.header-fixed { padding-top: 120px; }

.back-to-top-btn { position: fixed; bottom: 70px; right: 20px; background: var(--primary); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; opacity: 0; transition: opacity var(--transition), background var(--transition); z-index: 498; }
.back-to-top-btn.visible { opacity: 1; }
.back-to-top-btn:hover { background: var(--gold); color: #111; }

.responsible-notice { background: #0A1530; border: 1px solid rgba(21,101,192,0.3); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 12px; color: #888; text-align: center; margin: 24px 0; line-height: 1.6; }
