 body {
            box-sizing: border-box;
        }

        * {
            box-sizing: inherit;
            margin: 0;
            padding: 0;
        }

        html,
        body {
            width: 100%;
            height: 100%;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: #001326;
            color: #FBFBF6;
        }

        .app-wrapper {
            width: 100%;
            min-height: 100%;
            display: flex;
            flex-direction: column;
        }

        .main-content {
            flex: 1;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px 24px 32px;
        }

        .content-inner {
            width: 100%;
            max-width: 900px;
            display: flex;
            flex-direction: column;
            gap: 64px;
        }

        header.app-header {
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        .brand-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .logo-mark {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            /* ← makes the container perfectly circular */
            border: 2px solid #D4AF37;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #091E3D 0%, #020814 100%);
            box-shadow: 0 0 16px rgba(212, 175, 55, 0.4);
            flex-shrink: 0;
        }

        .logo-icon span {
            font-size: 18px;
            font-weight: 600;
            color: #D4AF37;
        }

        .logo-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .logo-title {
            font-size: 20px;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: #FBFBF6;
        }

        .logo-subtitle {
            font-size: 14px;
            color: #C0C0C0;
        }

        nav.main-nav {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
        }

        .nav-pill {
            padding: 8px 14px;
            border-radius: 999px;
            border: 1px solid rgba(192, 192, 192, 0.35);
            font-size: 14px;
            color: #FBFBF6;
            background: rgba(2, 8, 20, 0.4);
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
        }

        .nav-pill:hover,
        .nav-pill:focus-visible {
            background: rgba(212, 175, 55, 0.12);
            border-color: #D4AF37;
            outline: none;
            transform: translateY(-1px);
        }

        .nav-pill:focus-visible {
            box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.6);
        }

        .hero {
            display: grid;
            grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
            gap: 48px;
            align-items: stretch;
        }

        @media (max-width: 768px) {
            .hero {
                grid-template-columns: 1fr;
            }
        }

        .hero-left {
            display: flex;
            flex-direction: column;
            gap: 28px;
        }

        h1#main-title {
            font-size: 24px;
            line-height: 1.2;
            font-weight: 600;
            color: #FBFBF6;
        }

        .hero-subtitle {
            font-size: 16px;
            color: #C0C0C0;
            max-width: 640px;
        }

        .hero-badge-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
        }

        .glow-pill {
            padding: 6px 14px;
            border-radius: 999px;
            background: linear-gradient(
                90deg,
                rgba(212, 175, 55, 0.3),
                rgba(192, 192, 192, 0.25)
            );
            border: 1px solid rgba(212, 175, 55, 0.7);
            color: #FBFBF6;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
        }

        .glow-dot {
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: radial-gradient(circle, #D4AF37 0%, #020814 110%);
        }

        .hero-tagline {
            font-size: 14px;
            color: #9fb0cc;
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            align-items: center;
        }

        .btn-primary {
            appearance: none;
            border: none;
            padding: 10px 18px;
            border-radius: 999px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            color: #020814;
            background: linear-gradient(135deg, #D4AF37, #C0C0C0);
            box-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
        }

        .btn-primary:hover,
        .btn-primary:focus-visible {
            filter: brightness(1.05);
            transform: translateY(-1px);
            box-shadow: 0 0 22px rgba(212, 175, 55, 0.75);
            outline: none;
        }

        .btn-primary:focus-visible {
            box-shadow:
                0 0 0 2px rgba(2, 8, 20, 0.9),
                0 0 22px rgba(212, 175, 55, 0.8);
        }

        .btn-secondary {
            appearance: none;
            border-radius: 999px;
            padding: 9px 16px;
            border: 1px solid rgba(192, 192, 192, 0.45);
            background: rgba(2, 8, 20, 0.4);
            color: #FBFBF6;
            font-size: 14px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
        }

        .btn-secondary:hover,
        .btn-secondary:focus-visible {
            background: rgba(9, 30, 61, 0.8);
            border-color: #C0C0C0;
            transform: translateY(-1px);
            outline: none;
        }

        .btn-secondary:focus-visible {
            box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.6);
        }

        .btn-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            border-radius: 999px;
            border: 1px solid rgba(2, 8, 20, 0.7);
            background: rgba(2, 8, 20, 0.9);
            color: #D4AF37;
            font-size: 11px;
        }

        .hero-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            font-size: 14px;
            color: #9fb0cc;
        }

        .dot-separator {
            width: 3px;
            height: 3px;
            border-radius: 999px;
            background: #9fb0cc;
        }

        .hero-right {
            border-radius: 18px;
            padding: 32px;
            background: rgba(2,8,20,0.85) !important;
            border: 1px solid rgba(192, 192, 192, 0.22);
            box-shadow:
                0 16px 40px rgba(0, 0, 0, 0.8),
                0 0 24px rgba(23, 52, 86, 0.8);
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .search-row {
            display: flex;
            gap: 8px;
            align-items: stretch;
        }

        .search-field {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 999px;
            border: 1px solid rgba(159, 176, 204, 0.5);
            background: rgba(2, 8, 20, 0.8);
        }

        .search-field svg {
            width: 16px;
            height: 16px;
            fill: #9fb0cc;
            flex-shrink: 0;
        }

        .search-input {
            flex: 1;
            border: none;
            outline: none;
            background: transparent;
            color: #FBFBF6;
            font-size: 14px;
            font-family: inherit;
        }

        .search-input::placeholder {
            color: #9fb0cc;
        }

        .filters-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .filter-chip {
            border-radius: 999px;
            padding: 6px 10px;
            font-size: 13px;
            border: 1px solid rgba(192, 192, 192, 0.28);
            background: rgba(2, 8, 20, 0.7);
            color: #FBFBF6;
            cursor: pointer;
            transition: background 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
        }

        .filter-chip.active {
            background: linear-gradient(
                135deg,
                rgba(212, 175, 55, 0.8),
                rgba(192, 192, 192, 0.85)
            );
            color: #020814;
            border-color: transparent;
        }

        .filter-chip:hover,
        .filter-chip:focus-visible {
            transform: translateY(-1px);
            border-color: #D4AF37;
            outline: none;
        }

        .filter-chip:focus-visible {
            box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.6);
        }

        .stats-row {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 12px;
            background: rgba(2, 8, 20, 0.7);
            border: 1px dashed rgba(159, 176, 204, 0.5);
            font-size: 13px;
            color: #9fb0cc;
        }

        .stats-highlight {
            color: #D4AF37;
            font-weight: 500;
        }

        main {
            display: flex;
            flex-direction: column;
            gap: 80px;
        }

        section {
            display: flex;
            flex-direction: column;
            gap: 36px;
        }

        h2.section-title {
            font-size: 18px;
            font-weight: 500;
            color: #FBFBF6;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-accent {
            width: 20px;
            height: 2px;
            border-radius: 999px;
            background: linear-gradient(90deg, #D4AF37, transparent);
        }

        .featured-layout {
            display: grid;
            grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
            gap: 40px;
        }

        @media (max-width: 900px) {
            .featured-layout {
                grid-template-columns: 1fr;
            }
        }

        .featured-main-card {
            position: relative;
            border-radius: 18px;
            padding: 36px;
            background: radial-gradient(
                circle at top left,
                rgba(212, 175, 55, 0.14),
                rgba(2, 8, 20, 0.96)
            );
            border: 1px solid rgba(212, 175, 55, 0.46);
            box-shadow:
                0 18px 40px rgba(0, 0, 0, 0.85),
                0 0 18px rgba(212, 175, 55, 0.4);
            display: flex;
            flex-direction: column;
            gap: 20px;
            overflow: hidden;
        }

        .featured-ribbon {
            position: absolute;
            top: 14px;
            right: 14px;
            padding: 4px 10px;
            border-radius: 999px;
            background: rgba(2, 8, 20, 0.9);
            border: 1px solid rgba(192, 192, 192, 0.6);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            display: flex;
            align-items: center;
            gap: 6px;
            color: #FBFBF6;
        }

        .featured-ribbon-dot {
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background: radial-gradient(circle, #D4AF37 0%, #020814 110%);
        }

        .featured-chip-row {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
            font-size: 13px;
            color: #C0C0C0;
        }

        .pill-small {
            border-radius: 999px;
            padding: 3px 8px;
            border: 1px solid rgba(192, 192, 192, 0.6);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #C0C0C0;
        }

        .featured-title {
            font-size: 18px;
            font-weight: 500;
            color: #FBFBF6;
        }

        .featured-meta {
            font-size: 13px;
            color: #9fb0cc;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .featured-body {
            font-size: 14px;
            color: #C0C0C0;
        }

        .card-footer-row {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            align-items: center;
            gap: 8px;
            margin-top: 4px;
        }

        .avatar-group {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            color: #FBFBF6;
        }

        .avatar-badge {
            width: 20px;
            height: 20px;
            border-radius: 999px;
            border: 1px solid rgba(212, 175, 55, 0.7);
            background: radial-gradient(circle at 30% 30%, #D4AF37 0%, #020814 80%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            color: #020814;
            font-weight: 600;
        }

        .avatar-role {
            font-size: 12px;
            color: #9fb0cc;
        }

        .btn-text {
            appearance: none;
            border: none;
            background: transparent;
            color: #D4AF37;
            font-size: 13px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 999px;
            transition: background 0.15s ease, transform 0.08s ease;
        }

        .btn-text:hover,
        .btn-text:focus-visible {
            background: rgba(212, 175, 55, 0.18);
            transform: translateY(-1px);
            outline: none;
        }

        .btn-text:focus-visible {
            box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.7);
        }

        .featured-side-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .mini-card {
            border-radius: 12px;
            padding: 20px 22px;
            background: rgba(2, 8, 20, 0.85);
            border: 1px solid rgba(192, 192, 192, 0.24);
            display: flex;
            flex-direction: column;
            gap: 10px;
            cursor: pointer;
            transition: background 0.18s ease, border-color 0.18s ease, transform 0.08s ease;
        }

        .mini-card:hover,
        .mini-card:focus-visible {
            background: rgba(9, 30, 61, 0.9);
            border-color: #D4AF37;
            transform: translateY(-1px);
            outline: none;
        }

        .mini-title {
            font-size: 14px;
            color: #FBFBF6;
        }

        .mini-meta {
            font-size: 12px;
            color: #9fb0cc;
        }

        .mini-tag-row {
            font-size: 11px;
            color: #C0C0C0;
        }

        .latest-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 32px;
        }

        @media (max-width: 900px) {
            .latest-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 640px) {
            .latest-grid {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        .blog-card {
            border-radius: 14px;
            padding: 28px;
            background: rgba(2, 8, 20, 0.82);
            border: 1px solid rgba(159, 176, 204, 0.5);
            display: flex;
            flex-direction: column;
            gap: 16px;
            transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
        }

        .blog-card:hover {
            transform: translateY(-3px);
            border-color: #D4AF37;
            box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8);
        }

        .blog-title {
            font-size: 14px;
            font-weight: 500;
            color: #FBFBF6;
        }

        .blog-snippet {
            font-size: 13px;
            color: #C0C0C0;
        }

        .blog-meta-row {
            font-size: 12px;
            color: #9fb0cc;
            display: flex;
            justify-content: space-between;
            gap: 6px;
            margin-top: 4px;
        }

        .pill-tiny {
            font-size: 11px;
            border-radius: 999px;
            padding: 2px 8px;
            border: 1px solid rgba(159, 176, 204, 0.7);
            color: #C0C0C0;
        }

        footer.app-footer {
            width: 100%;
            border-top: 1px solid rgba(23, 52, 86, 0.7);
            padding: 12px 16px 16px;
            display: flex;
            justify-content: center;
        }

        .footer-inner {
            width: 100%;
            max-width: 1000px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: #9fb0cc;
        }

        .footer-secondary {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .footer-dot {
            width: 2px;
            height: 2px;
            border-radius: 999px;
            background: #9fb0cc;
        }

        .badge-status {
            font-size: 11px;
            border-radius: 999px;
            padding: 3px 8px;
            border: 1px solid rgba(159, 176, 204, 0.7);
            color: #C0C0C0;
        }

        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        .toast {
            position: fixed;
            right: 16px;
            bottom: 24px;
            max-width: 260px;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(2, 8, 20, 0.96);
            border: 1px solid rgba(212, 175, 55, 0.7);
            color: #FBFBF6;
            font-size: 13px;
            display: none;
            z-index: 30;
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
        }

        .toast-show {
            display: block;
        }

        .toast-title {
            font-weight: 500;
            margin-bottom: 4px;
            color: #D4AF37;
        }

        .toast-close {
            position: absolute;
            top: 6px;
            right: 8px;
            border-radius: 999px;
            width: 18px;
            height: 18px;
            border: 1px solid rgba(159, 176, 204, 0.7);
            background: transparent;
            color: #C0C0C0;
            font-size: 11px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .toast-close:hover,
        .toast-close:focus-visible {
            background: rgba(9, 30, 61, 0.9);
            outline: none;
        }

        .modal-backdrop {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            background: rgba(2, 8, 20, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 40;
        }

        .modal-backdrop.show {
            display: flex;
        }

        .modal-dialog {
            width: 100%;
            max-width: 420px;
            border-radius: 18px;
            background: radial-gradient(
                circle at top,
                rgba(212, 175, 55, 0.1),
                #020814 70%
            );
            border: 1px solid rgba(192, 192, 192, 0.4);
            padding: 16px 18px 14px;
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
            display: flex;
            flex-direction: column;
            gap: 10px;
            color: #FBFBF6;
        }

        .modal-header-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

        .modal-title {
            font-size: 16px;
            font-weight: 500;
        }

        .modal-body {
            font-size: 14px;
            color: #C0C0C0;
        }

        .modal-meta {
            font-size: 12px;
            color: #9fb0cc;
        }

        .modal-footer-row {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 6px;
        }

        .modal-close-btn {
            appearance: none;
            border-radius: 999px;
            padding: 6px 10px;
            border: 1px solid rgba(159, 176, 204, 0.6);
            background: rgba(2, 8, 20, 0.8);
            color: #FBFBF6;
            font-size: 13px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .modal-close-btn:hover,
        .modal-close-btn:focus-visible {
            background: rgba(9, 30, 61, 0.95);
            outline: none;
        }

        /* ================================================
           EXPAND PAGE WIDTH — MAXIMIZE LEFT/RIGHT SPACE
           (Safe: does NOT modify your existing structure)
        ================================================= */

        /* Make the entire content container wider */
        .content-inner {
            max-width: 1250px !important; /* was 900px */
            width: 100%;
        }

        /* Make main-content padding smaller on left/right */
        .main-content {
            padding-left: 40px !important;
            padding-right: 40px !important;
        }

        /* (Removed broken .hero override line here to keep CSS valid) */
        @view-transition {
            navigation: auto;
}
/* =========================================================
   REMOVE GOLD FROM REAL-TIME BADGE
========================================================= */
.glow-pill {
    background: rgba(2, 8, 20, 0.75) !important;
    border: 1px solid rgba(159, 176, 204, 0.4) !important;
    color: #FBFBF6 !important;
    box-shadow: none !important;
}

.glow-dot {
    background: #9fb0cc !important;
}


/* =========================================================
   RANDOM TRADING INSIGHT BUTTON - REMOVE GOLD
========================================================= */
.btn-primary {
    background: rgba(2, 8, 20, 0.85) !important;
    border: 1px solid rgba(159, 176, 204, 0.4) !important;
    color: #FBFBF6 !important;
    box-shadow: none !important;
}

.btn-primary:hover {
    background: rgba(9, 30, 61, 0.95) !important;
    transform: translateY(-1px);
}


/* =========================================================
   EXPLORE FEATURED ANALYSIS -> MODAL BUTTON STYLE
========================================================= */
#btn-scroll-featured {
    background: rgba(2, 8, 20, 0.75) !important;
    border: 1px solid rgba(159,176,204,0.5) !important;
    color: #FBFBF6 !important;
    box-shadow: none !important;
    padding: 10px 18px;
}

#btn-scroll-featured:hover {
    background: rgba(9,30,61,0.9) !important;
    border-color: rgba(192,192,192,0.5);
}


/* =========================================================
   FEATURED PILL "Analysis • Trading"
   MATCH MINI-CARD STYLE
========================================================= */

#featured-pill {
    background: rgba(2,8,20,0.85) !important;
    border: 1px solid rgba(192,192,192,0.24) !important;
    color: #C0C0C0 !important;
    text-transform: none !important;
    font-size: 13px !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
/* REMOVE GOLD GRADIENT from Featured Analysis section */
.featured-main-card {
    background: rgba(2, 8, 20, 0.92) !important;
    border: 1px solid rgba(192, 192, 192, 0.24) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,0.7) !important;
}
/* White background shadow behind Featured Analysis section */
.featured-main-card {
    position: relative;
    background: rgba(2, 8, 20, 0.92) !important;
    border: 1px solid rgba(192, 192, 192, 0.24) !important;
    box-shadow:
        0 0 25px rgba(255,255,255,0.10),
        0 8px 30px rgba(0,0,0,0.65) !important;
}

/* Soft white glow like the search section container */
.featured-main-card::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    background: rgba(255,255,255,0.10);
    filter: blur(18px);
    z-index: -1;
}
.blg-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background: linear-gradient(90deg, #f5D97a, #D4AF37, #FFD700);
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #000;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.2s;
}

.blg-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212,175,55,0.4);
}

@media (max-width: 768px) {
    .blg-back-btn {
        top: 12px;
        left: 12px;
        padding: 6px 10px;
        font-size: 12px;
    }
}
