:root {
    --bg: #0b1220;
    --bg-alt: #111827;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.12);
    --text: #e6e8ec;
    --text-muted: #9aa2bf;
    --accent: #9146ff;
    --accent-strong: #7c3aed;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #38bdf8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(145, 70, 255, 0.22), transparent 25%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.16), transparent 18%),
                linear-gradient(180deg, #070b16 0%, #101827 100%);
}

body.light {
    background: #f4f6fb;
    color: #111827;
}

/* Light mode overrides for key components */
body.light .page-header {
    background: #ffffff;
    border: 1px solid #e6e9ef;
    box-shadow: 0 8px 20px rgba(16,24,40,0.06);
}
body.light .page-header p { color: #374151; }
body.light .login-option { color: #111827; background: #f8fafc; border-color: #eef2ff; }
body.light .shop-header h1 { color: #111827; }
body.light .product-card { background: #ffffff; border: 1px solid #e6e9ef; box-shadow: 0 12px 30px rgba(16,24,40,0.04); }
body.light .product-description, body.light .result-info, body.light .page-header p, body.light .info-muted { color: #475569; }
body.light .sitewide-ad-bar { background: #f8fafc; color: #0f172a; border-bottom: 1px solid #eef2ff; }
body.light .donate-button { background: linear-gradient(90deg,#ff7a86,#ff6b6b); color: #fff; }

/* Ensure form controls are readable in light mode */
body.light input, body.light textarea, body.light select { background: #fff; color: #0f172a; border: 1px solid #e6e9ef; }


.page-container {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.page-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 30px 28px;
    margin-bottom: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.page-header h1,
.page-header h2,
.page-header h3 {
    margin: 0;
    line-height: 1.1;
}

.page-header p {
    color: var(--text-muted);
    margin-top: 10px;
    max-width: 760px;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.language-switcher {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    padding: 8px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
}

.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: white;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
}

.language-switcher a.active {
    background: rgba(255,255,255,0.24);
    border-color: rgba(255,255,255,0.22);
}

.language-switcher a:hover {
    background: rgba(255,255,255,0.18);
}

.hero-section {
    padding: 72px 0 36px;
    background: linear-gradient(180deg, rgba(20,24,44,0.96) 0%, rgba(15,23,42,0.96) 100%);
}

.hero-banner {
    background: linear-gradient(135deg, rgba(245,159,11,0.18), rgba(183,83,9,0.10));
    border: 1px solid rgba(245,159,11,0.24);
    border-radius: 32px;
    padding: 40px 34px;
    box-shadow: 0 36px 70px rgba(183,83,9,0.18);
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-content p {
    color: rgba(255,255,255,0.88);
    max-width: 760px;
    line-height: 1.8;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.hero-buttons .btn { border-radius: 999px; }

.login-promo {
    padding: 48px 0;
}

.login-promo-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    backdrop-filter: blur(14px);
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.login-promo-card h2 {
    margin-top: 0;
    color: #f8e96c;
}

.login-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.login-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.login-option:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.12);
}

.login-option .login-icon {
    font-size: 1.8rem;
}

.login-option h3 { margin: 0; font-size: 1rem; }

.login-option p { margin: 4px 0 0; color: rgba(255,255,255,0.78); font-size: 0.95rem; }

.login-option.twitch { border-color: rgba(145,70,255,0.32); }
.login-option.discord { border-color: rgba(88,101,242,0.32); }
.login-option.youtube { border-color: rgba(255,0,0,0.28); }
.login-option.dashboard { border-color: rgba(245,159,11,0.32); }

.shop-page-container,
.shop-product-page {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.shop-header,
.shop-product-card,
.shop-payment-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.16);
}

.shop-header {
    text-align: center;
}

.shop-header .eyebrow {
    display: inline-flex;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #fcd34d;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.shop-header h1 {
    color: #ffffff;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    margin: 0;
    line-height: 1.05;
}

.shop-header p {
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 760px;
    margin: 18px auto 0;
}

.shop-highlight-grid,
.shop-product-grid {
    display: grid;
    gap: 24px;
}

.shop-highlight-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 32px;
}

.shop-highlight-card {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}

.shop-highlight-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    color: #fbbf24;
}

.shop-highlight-card p {
    margin: 0;
    color: rgba(255,255,255,0.76);
    line-height: 1.75;
}

.search-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.search-panel input,
.search-panel select,
.shop-product-form input,
.shop-product-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: white;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.search-panel input:focus,
.search-panel select:focus,
.shop-product-form input:focus,
.shop-product-form select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
}

.search-panel button,
.shop-product-form button {
    min-width: 140px;
}

.result-info {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.24);
    transition: transform 0.3s ease, border-color 0.2s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.product-card:hover {
    transform: translateY(-6px);
}

.product-card.member-only {
    border-color: #f59e0b;
}

.product-card .badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78em;
    font-weight: 700;
}

.product-image {
    width: 100%;
    height: 220px;
    background: #131a2f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 1.35em;
    font-weight: 800;
    color: #fbbf24;
    margin-bottom: 12px;
}

.product-description {
    color: #cbd5e1;
    margin-bottom: 16px;
    line-height: 1.7;
    min-height: 72px;
}

.product-price {
    font-size: 1.6em;
    font-weight: 800;
    color: #f59e0b;
    margin-bottom: 14px;
}

.product-price small {
    display: block;
    color: #fcd34d;
    font-size: 0.78em;
    margin-top: 6px;
}

.product-category {
    display: inline-block;
    background: rgba(245,158,11,0.14);
    color: #fde68a;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.shop-actions {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:center;
    margin-top:18px;
}

.shop-empty-state {
    text-align:center;
    margin-top:60px;
    color:#cbd5e1;
}

.shop-empty-state h2 {
    margin-bottom: 12px;
}

.flash {
    margin: 20px 0;
    padding: 18px;
    border-radius: 12px;
    text-align: center;
}

.flash.success { background: #1f422d; color: #a7f3d0; }
.flash.error { background: #4c1d24; color: #fda4af; }

@media (max-width: 900px) {
    .search-panel { justify-content: stretch; }
}

.site-footer {
    padding: 36px 0 14px;
    color: rgba(255,255,255,0.85);
}

.site-footer .footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a { color: rgba(255,255,255,0.82); text-decoration: none; }

.site-footer a:hover { color: #fde68a; }

.footer-copy { margin-top: 22px; color: rgba(255,255,255,0.6); font-size: 0.95rem; }

@media (max-width: 980px) {
    .login-options { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .hero-buttons { justify-content: center; }
    .language-switcher { justify-content: center; margin-top: 18px; width: 100%; }
}

@media (max-width: 720px) {
    .hero-banner { padding: 28px 20px; }
    .feature-grid { grid-template-columns: 1fr; }
    .login-options { grid-template-columns: 1fr; }
    .page-container { padding: 24px 16px 40px; }
}

.button-primary,
.button-secondary,
.button-tertiary,
.btn-primary,
.btn-secondary,
.btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    padding: 12px 20px;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.button-primary,
.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.button-primary:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent-strong);
}

.button-secondary,
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    border-color: rgba(255, 255, 255, 0.12);
}

.button-secondary:hover,
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.button-tertiary,
.btn-tertiary {
    background: transparent;
    color: inherit;
    border-color: rgba(255, 255, 255, 0.16);
}

.button-tertiary:hover,
.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.card-grid,
.metric-grid,
.feature-grid,
.profile-actions,
.button-grid {
    display: grid;
    gap: 18px;
}

.metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-bottom: 24px;
}

.feature-grid,
.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.metric-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 24px;
    min-height: 150px;
}

.metric-card h5,
.metric-card p {
    margin: 0;
}

.metric-card h5 {
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--text-muted);
}

.metric-card .metric-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.details-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 20px;
}

.details-card summary {
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 16px;
    list-style: none;
}

.details-card summary::-webkit-details-marker {
    display: none;
}

.details-card[open] {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.gold-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(183, 83, 9, 0.12));
    border: 1px solid rgba(245, 158, 11, 0.22);
    box-shadow: 0 18px 40px rgba(183, 83, 9, 0.14);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 22px;
    align-items: center;
    border-radius: 28px;
    margin-bottom: 30px;
}

.gold-header .eyebrow {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #f59e0b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
}

.gold-header h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.03;
    color: #ffffff;
}

.gold-header p {
    margin: 0;
    color: rgba(255,255,255,0.88);
    max-width: 720px;
    line-height: 1.75;
}

.panel-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 20px 40px rgba(255, 159, 18, 0.12);
}

.panel-box h2 {
    margin-top: 0;
    font-size: 1.65rem;
    color: #ffffff;
}

.panel-box p {
    margin: 16px 0 0;
    color: rgba(255,255,255,0.84);
    line-height: 1.75;
}

.panel-box .badge {
    display: inline-flex;
    margin-top: 20px;
    background: rgba(255,255,255,0.16);
    color: #f8d12f;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.subscription-plan-card,
.plan-card,
.product-card {
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
    padding: 26px;
}

    .product-card .discount-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background: linear-gradient(45deg, #10b981, #059669);
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 0.8em;
        font-weight: 700;
    }

    .shop-product-page,
    .shop-member-page {
        width: min(1180px, 100%);
        margin: 0 auto;
        padding: 32px 24px 48px;
    }

    .member-benefits {
        background: rgba(245,158,11,0.1);
        border: 1px solid rgba(245,158,11,0.25);
        border-radius: 24px;
        padding: 24px;
        margin-bottom: 30px;
        color: #fff;
    }

    .member-benefits h3 {
        color: #f59e0b;
        margin-bottom: 10px;
    }

    .member-benefits ul {
        list-style: none;
        padding: 0;
        margin: 0;
        color: #cbd5e1;
    }

    .member-benefits li {
        margin: 7px 0;
    }

    .member-benefits li:before {
        content: "⭐ ";
        color: #f59e0b;
    }

    .tabs {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }

    .tab {
        padding: 12px 24px;
        border-radius: 14px;
        background: rgba(255,255,255,0.06);
        color: #cbd5e1;
        border: 1px solid rgba(255,255,255,0.12);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .tab:hover {
        background: rgba(255,255,255,0.1);
    }

    .tab.active {
        background: linear-gradient(45deg, #7c3aed, #a855f7);
        color: #fff;
        border-color: transparent;
    }

    .orders-list {
        display: grid;
        gap: 20px;
    }

    .order-card {
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 22px;
        padding: 24px;
    }

    .order-info {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
        align-items: center;
    }

    .order-info small {
        color: rgba(255,255,255,0.7);
    }

    .order-actions {
        margin-top: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .payment-box {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 22px;
        padding: 24px;
        margin-top: 24px;
    }

    .payment-box h2 {
        margin-top: 0;
    }

    .order-details {
        display: grid;
        gap: 16px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 22px;
        padding: 24px;
        margin-top: 24px;
    }

    .order-row {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .order-row strong {
        color: #ffffff;
    }

    .order-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        border-radius: 999px;
        text-transform: capitalize;
        font-weight: 700;
        letter-spacing: 0.02em;
    }

    .order-status.status-pending {
        background: rgba(245,158,11,0.18);
        color: #fbbf24;
    }

    .order-status.status-completed {
        background: rgba(34,197,94,0.18);
        color: #86efac;
    }

    .order-status.status-cancelled {
        background: rgba(239,68,68,0.18);
        color: #fecaca;
    }

    @media (max-width: 720px) {
        .order-info {
            flex-direction: column;
            align-items: flex-start;
        }
    }

.subscription-plan-card p,
.plan-card p {
    color: rgba(255,255,255,0.82);
    line-height: 1.75;
}

.subscription-plan-card ul,
.plan-card ul {
    margin: 18px 0 0;
    padding-left: 20px;
    color: rgba(255,255,255,0.82);
}

.subscription-plan-card li,
.plan-card li {
    margin-bottom: 10px;
}

.subscription-plan-card .btn,
.plan-card .btn {
    margin-top: 20px;
}

.subscription-card {
    border-radius: 24px;
    padding: 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 34px rgba(0,0,0,0.16);
}

.subscription-card h3 {
    margin-top: 0;
}

.subscription-card .platform {
    color: #f59e0b;
    font-weight: 700;
}

.subscription-card .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

@media (max-width: 900px) {
    .gold-header {
        grid-template-columns: 1fr;
    }
}

.section-block {
    margin-top: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(2rem, 2.4vw, 2.8rem);
    line-height: 1.05;
    color: #fff;
}

.section-header p {
    margin: 0;
    color: rgba(255,255,255,0.75);
    max-width: 720px;
}

.section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.info-panel,
.stats-panel,
.partner-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.info-panel ul,
.stats-panel ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.info-panel li {
    padding-left: 24px;
    position: relative;
    color: rgba(255,255,255,0.83);
    line-height: 1.65;
}

.info-panel li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: #fcd34d;
    font-weight: 800;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.partner-card h4 {
    margin: 0 0 12px;
    color: #fbbf24;
    font-size: 1.2rem;
}

.partner-card p {
    margin: 0;
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
}

.highlight-pill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245,159,11,0.16);
    color: #fcd34d;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.subscription-plan-card.plan-highlight {
    border-color: rgba(245,159,11,0.35);
    background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.subscription-card .actions .button-primary,
.subscription-card .actions .btn {
    min-width: 160px;
}

@media (max-width: 900px) {
    .section-header {
        align-items: flex-start;
    }
}

.form-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
}

.mail-header {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 28px 30px;
    margin-bottom: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.mail-header h1,
.mail-header h2,
.mail-header h3 {
    margin: 0;
    line-height: 1.05;
}

.mail-header p {
    margin-top: 12px;
    color: var(--text-muted);
    max-width: 760px;
}

.mail-search {
    position: relative;
    margin-bottom: 22px;
}

.mail-search input,
.form-control,
textarea.form-control,
select.form-control,
input.form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mail-search input:focus,
.form-control:focus,
textarea.form-control:focus,
select.form-control:focus,
input.form-control:focus {
    outline: none;
    border-color: rgba(124, 58, 237, 0.75);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.mail-search::before {
    content: '🔍';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
}

.mail-list {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
}

.mail-item,
.message-item {
    padding: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mail-item:last-child,
.message-item:last-child {
    border-bottom: none;
}

.mail-item:hover,
.message-item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

.mail-item.unread {
    background: rgba(124, 58, 237, 0.1);
    border-left: 4px solid rgba(124, 58, 237, 0.7);
}

.mail-item-header,
.message-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.mail-item-from,
.mail-item-subject,
.message-item-title {
    font-weight: 700;
    color: var(--text);
}

.mail-item-date,
.mail-item-preview,
.mail-meta-value,
.message-item-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.mail-item-subject {
    margin: 0;
    font-size: 1rem;
}

.mail-item-preview {
    margin-top: 10px;
    line-height: 1.6;
}

.mail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.15);
    color: #ede9fe;
    font-size: 0.8rem;
    font-weight: 700;
}

.mail-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.mail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mail-btn,
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mail-btn-primary,
.button-primary {
    background: var(--accent);
    color: white;
}

.mail-btn-primary:hover,
.button-primary:hover {
    background: var(--accent-strong);
    transform: translateY(-2px);
}

.mail-btn-secondary,
.button-secondary {
    background: rgba(255,255,255,0.08);
    color: inherit;
    border-color: rgba(255,255,255,0.12);
}

.mail-btn-secondary:hover,
.button-secondary:hover {
    background: rgba(255,255,255,0.14);
}

.mail-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mail-card:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 24px 50px rgba(0,0,0,0.12);
}

.mail-card-accent {
    background: linear-gradient(135deg, #7c3aed 0%, #4338ca 100%);
    color: white;
    border-color: transparent;
}

.mail-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mail-card-description {
    color: var(--text-muted);
    line-height: 1.7;
}

.mail-meta,
.mail-body,
.status-panel {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 20px;
}

.mail-meta-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mail-meta-row:last-child {
    border-bottom: none;
}

.mail-meta-label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.82rem;
    font-weight: 700;
}

.mail-meta-value {
    color: var(--text);
    font-weight: 600;
}

.mail-body h4 {
    margin: 0 0 16px;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.mail-body-content {
    color: var(--text);
    line-height: 1.8;
    white-space: pre-wrap;
}

.attachment-item {
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text);
    font-size: 0.95rem;
}

.form-grid .form-group {
    margin-bottom: 18px;
}

.status-panel {
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    margin-bottom: 24px;
}

.status-panel.status-ok {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.08);
}

.status-panel.status-error {
    border-color: rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
}

.status-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.status-title {
    margin-bottom: 14px;
    font-weight: 700;
}

.mail-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.mail-toolbar button {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.08);
    color: inherit;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
}

.mail-toolbar button:hover {
    background: rgba(255,255,255,0.14);
}

.mail-search input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: inherit;
}

.mail-list {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
}

.mail-item {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s ease;
}

.mail-item:last-child {
    border-bottom: none;
}

.mail-item:hover {
    background: rgba(255,255,255,0.06);
}

.mail-item.unread {
    background: rgba(124, 58, 237, 0.08);
}

.mail-item-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.mail-item-from,
.mail-item-subject,
.mail-item-preview,
.mail-item-date {
    color: inherit;
}

.mail-item-subject {
    margin: 0 0 8px;
    font-weight: 700;
}

.mail-item-preview {
    color: var(--text-muted);
    margin: 0;
}

.attachment-item {
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    font-size: 0.93rem;
}

.alert-danger,
.alert-info,
.alert-success,
.alert-warning,
.alert {
    padding: 18px 20px;
    border-radius: 18px;
    margin-bottom: 20px;
}

.alert-danger { background: rgba(239,68,68,0.12); color: #fee2e2; }
.alert-success { background: rgba(34,197,94,0.12); color: #d1fae5; }
.alert-info { background: rgba(56,189,248,0.12); color: #dbeafe; }
.alert-warning { background: rgba(245,158,11,0.12); color: #fef3c7; }

@media (max-width: 900px) {
    .page-container { padding: 24px 18px 36px; }
    .page-actions,
    .form-grid,
    .metric-grid,
    .feature-grid,
    .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .page-header { padding: 24px; }
    .button-primary,
    .button-secondary,
    .button-tertiary { width: 100%; }
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

button,
input[type=submit],
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    padding: 12px 18px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--accent);
    color: #ffffff;
}

button:hover,
input[type=submit]:hover,
.button:hover {
    transform: translateY(-1px);
    background: var(--accent-strong);
}

input,
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    font: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(145, 70, 255, 0.56);
    box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.16);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

img {
    max-width: 100%;
    height: auto;
}

.container,
.page {
    width: min(1160px, 100%);
    margin: 0 auto;
    padding: 24px;
}

.navbar {
    background: rgba(8, 11, 23, 0.96);
    padding: 18px 24px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(145, 70, 255, 0.18);
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.navbar .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.navbar .site-logo-image {
    max-height: 40px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1001;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.dropdown-content a {
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 8px;
    margin: 4px;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(145, 70, 255, 0.2);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    background: none;
    border: none;
    color: inherit;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
}

.navbar .nav-links,
.navbar .nav-actions,
.actions,
.grid,
.friends-grid,
.stat-grid,
.backup-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.navbar a,
.navbar button,
.actions a,
.actions button {
    color: inherit;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.dashboard-card {
    display: block;
    padding: 20px 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
}

.team-quick-links {
    margin: 24px 0;
}

.team-quick-links .section-title {
    margin-bottom: 20px;
}

.nav {
    margin-bottom: 20px;
}

.nav a {
    text-decoration: none;
    color: var(--accent);
    margin-right: 12px;
}

.nav a:hover {
    text-decoration: underline;
}

.login-container {
    background: rgba(15, 23, 42, 0.95);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
    max-width: 450px;
    width: 100%;
    margin: 40px auto;
}

.login-form {
    text-align: left;
    margin-top: 20px;
}

.auth-buttons {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.auth-button {
    display: inline-flex;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(51, 65, 85, 0.95);
}

.auth-button:hover {
    background: rgba(71, 85, 105, 0.95);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.button.small {
    padding: 10px 14px;
    font-size: 0.85rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.stat-card {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    border-radius: 18px;
    padding: 18px;
}

.ad-banner {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin: 24px 0;
}

.ad-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ad-content h2 {
    margin: 0 0 8px;
}

.form-card {
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
}

.form-card textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}

.table th {
    font-weight: 700;
}

/* Footer Styles */
footer.footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(145, 70, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
}

.social-link:hover {
    background: rgba(145, 70, 255, 0.4);
}

.qr-code {
    text-align: center;
}

.qr-image {
    max-width: 150px;
    border-radius: 12px;
    border: 2px solid var(--accent);
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    font-size: 14px;
}

.site-logo-image {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
}

.info {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

..card h1,
.card h2,
.card h3,
.card h4 {
    margin-top: 0;
    color: inherit;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.card-header h5 {
    margin: 0;
}

.info-muted {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: inherit;
}

.flash {
    border-radius: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.flash.success {
    background: rgba(34, 197, 94, 0.1);
    color: #d1fae5;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.flash.error {
    background: rgba(239, 68, 68, 0.12);
    color: #fee2e2;
    border: 1px solid rgba(239, 68, 68, 0.28);
}

.status,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 0.95rem;
}

.status.open {
    background: rgba(14, 165, 233, 0.14);
    color: #bae6fd;
}

.status.closed {
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
}

.status.pending {
    background: rgba(245, 158, 11, 0.14);
    color: #fde68a;
}

.badge.role {
    background: rgba(145, 70, 255, 0.14);
    border-color: rgba(145, 70, 255, 0.22);
}

.badge.platform {
    color: #ffffff;
}

.ticket-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
}

.user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flex-grow-220 {
    flex: 1 1 220px;
}

.summary,
.info,
.note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 10px;
}

.inline-form {
    display: inline-flex;
    gap: 0;
    margin: 0;
}

.logo-preview,
.qr-image,
.profile-avatar {
    border-radius: 18px;
    max-width: 100%;
    display: block;
}

.profile-header {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.profile-title {
    margin: 0;
    font-size: 2rem;
}

.profile-meta,
.profile-bio {
    margin: 8px 0;
    color: var(--text-muted);
}

.section-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.friends-grid,
.stat-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.friend-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    justify-content: center;
    align-items: center;
    z-index: 50;
}

.modal-backdrop.visible {
    display: flex;
}

.modal {
    width: min(620px, 100%);
    background: rgba(8, 10, 21, 0.98);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    color: inherit;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 1.15rem;
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 18px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.backup-codes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.backup-code {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    font-family: monospace;
}

.light .card {
    background: #ffffff;
    color: #111827;
}

.light input,
.light textarea,
.light select {
    background: #ffffff;
    color: #111827;
    border-color: #d1d5db;
}

.light .navbar {
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
}

.light .flash.success {
    background: #d1fae5;
    color: #134e4a;
}

.site-header {
    background: rgba(8, 11, 23, 0.95);
    border-bottom: 1px solid rgba(145, 70, 255, 0.16);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Old navbar style */
.navbar-old {
    background: linear-gradient(135deg, rgba(12, 18, 36, 0.98), rgba(20, 28, 55, 0.98));
    padding: 18px 24px;
    border-bottom: 1px solid rgba(145, 70, 255, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    box-shadow: inset 0 -1px 0 rgba(145, 70, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.18);
}

.navbar-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.navbar-modern {
    background: rgba(8, 11, 23, 0.96);
    padding: 18px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(145, 70, 255, 0.16);
    backdrop-filter: blur(18px);
}

.navbar-modern .navbar-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.navbar-modern .nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-modern .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.navbar-modern .logo {
    font-weight: 900;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-modern .logo-subtitle {
    color: #fcd34d;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 2px;
}

.navbar-modern .mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.98rem;
}

.navbar-modern .brand-pill {
    display: inline-flex;
    padding: 9px 14px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    margin-left: 8px;
}

.navbar-modern nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

@media (max-width: 1080px) {
    .navbar-modern nav {
        display: none;
    }
    .navbar-modern .mobile-menu-toggle {
        display: inline-flex;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-old .logo,
.navbar-old .logo-text {
    display: block;
    line-height: 1.1;
}

.navbar-old .nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 30px;
}

.navbar-old .logo {
    font-weight: 900;
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.navbar-old .logo-subtitle {
    color: #a7b4ff;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.navbar-old .site-logo-image,
.navbar-old .logo-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(145, 70, 255, 0.14);
}

.navbar-old .site-logo-image {
    object-fit: contain;
}

.navbar-old nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.navbar-old nav a,
.navbar-old .dropdown > a {
    color: #d0d8ff;
    text-decoration: none;
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.navbar-old nav a:hover,
.navbar-old .dropdown > a:hover {
    color: #ffffff;
    background: rgba(145, 70, 255, 0.18);
}

.navbar-old .cta-button {
    color: #ffffff;
    background: linear-gradient(135deg, #9146ff, #6a5cff);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
}

.navbar-old .cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(145, 70, 255, 0.2);
}

.navbar-old .auth-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.navbar-old .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(145, 70, 255, 0.15);
}

.navbar-old .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9146ff, #6a5cff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: white;
}

.navbar-old .username-display {
    color: #e7eafa;
    font-size: 0.9rem;
    font-weight: 600;
}

.navbar-old .logout-link {
    color: #ff7f8e;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px !important;
}

.navbar-old .login-panel {
    position: relative;
}

.navbar-old .login-toggle {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.22), rgba(145, 70, 255, 0.08));
    border: 1px solid rgba(145, 70, 255, 0.35);
    color: #e7eafa;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.navbar-old .login-toggle:hover {
    background: linear-gradient(135deg, rgba(145, 70, 255, 0.35), rgba(145, 70, 255, 0.15));
    border-color: rgba(145, 70, 255, 0.5);
}

.navbar-old .login-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: rgba(9, 14, 28, 0.98);
    border: 1px solid rgba(145, 70, 255, 0.25);
    border-radius: 12px;
    padding: 18px;
    width: 320px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    z-index: 1002;
    backdrop-filter: blur(14px);
}

.navbar-old .login-popup.active {
    display: block;
}

.navbar-old .login-popup h3 {
    margin: 0 0 14px 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
}

.navbar-old .login-popup .form-group {
    margin-bottom: 12px;
}

.navbar-old .login-popup label {
    display: block;
    color: #d0d8ff;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.navbar-old .login-popup input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(145, 70, 255, 0.2);
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.navbar-old .login-popup input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(145, 70, 255, 0.5);
}

.navbar-old .login-popup input::placeholder {
    color: rgba(208, 216, 255, 0.5);
}

.navbar-old .login-popup .login-button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #9146ff, #6a5cff);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 14px;
}

.navbar-old .login-popup .login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(145, 70, 255, 0.25);
}

.navbar-old .login-popup .social-login {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(145, 70, 255, 0.15);
}

.navbar-old .login-popup .social-login p {
    color: #a7b4ff;
    font-size: 0.78rem;
    margin-bottom: 8px;
    text-align: center;
}

.navbar-old .login-popup .social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.navbar-old .login-popup .discord-btn,
.navbar-old .login-popup .youtube-btn,
.navbar-old .login-popup .twitch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.25s ease;
    flex-direction: column;
}

.navbar-old .login-popup .discord-btn {
    background: linear-gradient(135deg, #5865f2, #4752c4);
}

.navbar-old .login-popup .discord-btn:hover {
    background: linear-gradient(135deg, #7289da, #6278d8);
    transform: translateY(-2px);
}

.navbar-old .login-popup .youtube-btn {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.navbar-old .login-popup .youtube-btn:hover {
    background: linear-gradient(135deg, #ff3333, #dd0000);
    transform: translateY(-2px);
}

.navbar-old .login-popup .twitch-btn {
    background: linear-gradient(135deg, #9146ff, #7c2ae8);
}

.navbar-old .login-popup .twitch-btn:hover {
    background: linear-gradient(135deg, #a855f7, #8b5cf6);
    transform: translateY(-2px);
}

.navbar-old .login-popup .social-buttons button {
    font-size: 1.2rem;
}

.navbar-old .login-popup .social-buttons .btn-label {
    font-size: 0.7rem;
    margin-top: 2px;
}

.navbar-old .login-popup .login-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(145, 70, 255, 0.15);
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}

.navbar-old .login-popup .login-footer a {
    color: #ffffff;
    text-decoration: underline;
}

.hub-section {
    padding: 56px 0 30px;
}

.hub-section .feature-card {
    min-height: 240px;
}

.navbar-old .dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: rgba(9, 14, 28, 0.98);
    min-width: 220px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
    z-index: 1001;
    border: 1px solid rgba(145, 70, 255, 0.22);
    border-radius: 12px;
    top: 100%;
    left: 0;
    padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    color: #d2d9ff;
    padding: 10px 18px;
    text-decoration: none;
    display: block;
    font-size: 0.92rem;
}

.dropdown-menu a:hover {
    background: rgba(145, 70, 255, 0.18);
    color: #ffffff;
}

@media (max-width: 980px) {
    .navbar-content {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar-old nav {
        justify-content: center;
    }
}

.newsfeed-section {
    background: rgba(15, 23, 42, 0.5);
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 10px;
    border: 1px solid rgba(145, 70, 255, 0.1);
}

.newsfeed-container {
    max-width: 900px;
    margin: 0 auto;
}

.newsfeed-container h2 {
    color: #9146ff;
    margin-bottom: 30px;
    text-align: center;
}

.newsfeed-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #9146ff;
}

.newsfeed-item.private {
    border-left-color: #ff6b6b;
}

.newsfeed-item.public {
    border-left-color: #22c55e;
}

.newsfeed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.newsfeed-title {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

.newsfeed-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(145, 70, 255, 0.3);
    color: #9146ff;
}

.newsfeed-badge.private {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.newsfeed-content {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.newsfeed-meta {
    font-size: 0.8rem;
    color: #999;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
}

.brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--accent);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease;
}

.main-nav a:hover {
    background: rgba(145, 70, 255, 0.16);
    color: #9146ff;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-section {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 0%, rgba(8, 11, 23, 0.93) 100%);
}

.hero-banner {
    position: relative;
    border-radius: 30px;
    background: linear-gradient(180deg, #181c4f 0%, #121329 55%, #0b1220 100%);
    padding: 80px 24px;
    overflow: hidden;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(145, 70, 255, 0.14), transparent 25%),
                radial-gradient(circle at bottom right, rgba(56, 189, 248, 0.14), transparent 18%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    line-height: 1.02;
    margin: 0 0 22px;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.05rem;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(45deg, #9146ff, #5865f2);
    color: #ffffff;
}

.btn-secondary {
    background: linear-gradient(45deg, #5865f2, #ff6b6b);
    color: #ffffff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(145, 70, 255, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.features-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.section-title h2 {
    font-size: 2.3rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.section-title p {
    color: rgba(226, 232, 240, 0.84);
    line-height: 1.8;
}

.login-promo {
    padding: 60px 0 80px;
}

.login-promo-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 36px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.20);
    text-align: center;
}

.login-promo-card h2 {
    margin-bottom: 12px;
    color: #ffffff;
}

.login-promo-card p {
    margin-bottom: 30px;
    color: rgba(226, 232, 240, 0.8);
}

.login-options {
    display: grid;
    gap: 18px;
}

.login-option {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.login-option:hover {
    transform: translateY(-2px);
    border-color: rgba(145, 70, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.login-icon {
    font-size: 2.2rem;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.login-text h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #ffffff;
}

.login-text p {
    margin: 0;
    color: rgba(226, 232, 240, 0.82);
}

.login-option.twitch:hover {
    border-color: #9146ff;
}

.login-option.discord:hover {
    border-color: #5865f2;
}

.login-option.dashboard:hover {
    border-color: #ff6b6b;
}

.site-footer {
    padding: 40px 0 20px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.footer-links a {
    color: var(--text);
}

.footer-copy {
    margin-top: 24px;
    color: rgba(226, 232, 240, 0.6);
    text-align: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.visible {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
}

.modal-close:hover {
    color: #ff6b6b;
}

.modal-content h2 {
    text-align: center;
    margin: 20px 0 30px;
    color: #9146ff;
    font-size: 2em;
}

.modal-login-options {
    padding: 0 30px 30px;
}

@media (max-width: 980px) {
    .main-nav {
        justify-content: center;
    }
    .hero-buttons,
    .login-options {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .main-nav {
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.4rem;
    }
}

.light .flash.error {
    background: #fee2e2;
    color: #991b1b;
}

.text-accent {
    color: var(--accent);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.no-margin {
    margin: 0;
}

.font-bold {
    font-weight: 700;
}

.section-divider {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mt-16 {
    margin-top: 16px;
}

.hidden {
    display: none;
}

@media (max-width: 900px) {
    .navbar .container,
    .profile-header,
    .user-row,
    .actions,
    .grid,
    .friends-grid,
    .stat-grid {
        flex-direction: column;
    }
}
