:root {
    --primary: #0d9488;
    --primary-dark: #0f4c45;
    --accent: #5eead4;
    --gold: #c9a227;
    --ink: #0b1217;
    --muted: #5c6b73;
    --bg: #f4f8f7;
    --soft: #e8f5f2;
    --card: #ffffff;
    --border: rgba(13, 148, 136, .14);
    --shadow: 0 24px 70px rgba(11, 18, 23, .09);
    --radius: 26px;
    --header-height: 84px;
    --sidebar-width: 280px;
}

* { box-sizing: border-box; }
body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, rgba(153, 246, 228, .36), transparent 34%), var(--bg);
}

.site-main { padding-top: 84px; min-height: 70vh; }
.fw-black { font-weight: 900; }
.text-gradient {
    background: linear-gradient(120deg, #08a88a, #0f766e, #111827);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-nav {
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 118, 110, .09);
    transition: box-shadow .25s ease, background .25s ease;
}
.glass-nav.nav-scrolled {
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 32px rgba(11,18,23,.08);
}
.brand-logo { max-height: 42px; width: auto; }
.footer-logo { max-height: 46px; width: auto; }
.brand-text { font-size: 1.05rem; letter-spacing: -.02em; }
.nav-link { font-weight: 700; color: rgba(16,32,29,.76); }
.nav-link:hover, .nav-link.active { color: var(--primary-dark); }
.dropdown-menu { padding: 10px; }
.dropdown-item { border-radius: 12px; font-weight: 600; padding: 10px 14px; }
.dropdown-item:hover { background: var(--soft); color: var(--primary-dark); }
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    box-shadow: 0 14px 30px rgba(8,168,138,.24);
}
.btn-outline-primary {
    --bs-btn-color: var(--primary-dark);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 88px 0 64px;
}
.hero-section:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 8%, rgba(8,168,138,.23), transparent 28%);
    pointer-events: none;
}
.hero-card, .premium-card, .dashboard-card, .auth-card, .admin-card {
    background: rgba(255,255,255,.86);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-visual {
    min-height: 430px;
    border-radius: 36px;
    background: linear-gradient(145deg, #082f2a, #0f766e 52%, #99f6e4);
    position: relative;
    overflow: hidden;
    box-shadow: 0 36px 90px rgba(8, 47, 42, .28);
}
.hero-visual:before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    top: -80px;
    right: -80px;
}
.car-shape {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 88px;
    height: 125px;
    border-radius: 70px 85px 30px 30px;
    background: linear-gradient(135deg, #ffffff, #dffdf6);
    box-shadow: 0 25px 70px rgba(0,0,0,.28);
}
.car-shape:before {
    content: "";
    position: absolute;
    width: 38%;
    height: 70px;
    left: 28%;
    top: -48px;
    border-radius: 75px 75px 10px 10px;
    background: linear-gradient(135deg, #dffdf6, #ffffff);
}
.wheel {
    position: absolute;
    width: 62px;
    height: 62px;
    bottom: -25px;
    border-radius: 50%;
    background: #10201d;
    border: 10px solid #dffdf6;
}
.wheel.left { left: 15%; }
.wheel.right { right: 15%; }
.float-stat {
    position: absolute;
    background: rgba(255,255,255,.92);
    border-radius: 22px;
    padding: 16px 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.16);
    border: 1px solid rgba(255,255,255,.6);
}
.float-stat.one { top: 36px; left: 28px; }
.float-stat.two { right: 28px; bottom: 34px; }
.float-stat.three { left: 38px; bottom: 34px; }

.section-padding { padding: 76px 0; }
.section-title { font-weight: 900; letter-spacing: -.04em; }
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(8,168,138,.10);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: .82rem;
}
.feature-icon, .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--primary-dark);
    background: var(--soft);
    font-size: 1.35rem;
}
.premium-card {
    padding: 28px;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
}
.premium-card:hover { transform: translateY(-6px); box-shadow: 0 30px 85px rgba(12,38,33,.14); }
.plan-card.popular { border: 2px solid rgba(8,168,138,.45); position: relative; }
.popular-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    border-radius: 999px;
    background: #10201d;
    color: #fff;
    padding: 7px 12px;
    font-size: .75rem;
    font-weight: 800;
}

body.app-area .site-main {
    padding-top: var(--header-height);
    min-height: 100vh;
}
@media (max-width: 991.98px) {
    body.app-area .site-main {
        padding-top: calc(var(--header-height) + 52px);
    }
}
.dashboard-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-height: calc(100vh - var(--header-height));
}
.dashboard-layout > .sidebar {
    grid-column: 1;
    position: sticky;
    top: var(--header-height);
    align-self: start;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    background: #10201d;
    color: #fff;
    padding: 24px 16px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1020;
}
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: rgba(11, 18, 23, .5);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.sidebar-mobile-top-hint {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 1015;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 10px 14px;
    background: linear-gradient(135deg, #e9fbf5, #d1fae5);
    border-bottom: 1px solid var(--border);
    color: var(--primary-dark);
    font-size: .82rem;
    line-height: 1.4;
}
.sidebar-mobile-top-hint i {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}
body.sidebar-open .sidebar-mobile-top-hint {
    display: none;
}
.sidebar-mobile-fab {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 16px;
    z-index: 1055;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: min(240px, 78vw);
    pointer-events: none;
}
.sidebar-mobile-fab > * {
    pointer-events: auto;
}
.sidebar-mobile-fab-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff;
    color: var(--primary-dark);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    box-shadow: 0 10px 28px rgba(11, 18, 23, .16);
    border: 1px solid var(--border);
}
.sidebar-mobile-fab-hint i {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.sidebar-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 12px 32px rgba(11, 18, 23, .28);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
body.app-area .content-area {
    padding-bottom: 88px;
}
body.sidebar-open .sidebar-mobile-fab-hint {
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.sidebar a {
    color: rgba(255,255,255,.76);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.sidebar a.active, .sidebar a:hover { background: rgba(255,255,255,.10); color: #fff; }
.content-area {
    grid-column: 2;
    margin-left: 0;
    width: 100%;
    max-width: 100%;
    padding: 28px;
    min-width: 0;
}
.dashboard-card, .admin-card { padding: 24px; }
.metric-card {
    border-radius: 24px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, #10201d, #0f766e);
    box-shadow: 0 24px 65px rgba(12,38,33,.18);
    height: 100%;
}
.metric-card.light {
    background: linear-gradient(135deg, #ffffff, #e9fbf5);
    color: var(--ink);
    border: 1px solid var(--border);
}
.table-responsive { border-radius: 20px; }
.table thead th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.badge-soft-success { background: rgba(16,185,129,.12); color: #047857; }
.badge-soft-warning { background: rgba(245,158,11,.14); color: #92400e; }
.badge-soft-danger { background: rgba(239,68,68,.12); color: #b91c1c; }
.badge-soft-dark { background: rgba(15,23,42,.10); color: #111827; }
.form-control, .form-select { border-radius: 16px; padding: 12px 14px; border-color: rgba(15,118,110,.16); }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 .2rem rgba(8,168,138,.14); border-color: var(--primary); }
.auth-section { min-height: 88vh; display: grid; place-items: center; padding: 48px 0; }
.auth-card { padding: 32px; width: 100%; max-width: 520px; }
.footer-section { background: #fff; border-top: 1px solid var(--border); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 10px 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary-dark); }
.social-pill { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--soft); color: var(--primary-dark); text-decoration: none; }
.newsletter-card { border-radius: 22px; background: var(--soft); padding: 18px; }
.empty-state { border: 1px dashed rgba(15,118,110,.22); border-radius: 22px; padding: 34px; text-align: center; background: rgba(255,255,255,.55); }

/* Media & ad slots */
.media-slot, .ad-slot { width: 100%; margin-bottom: 1rem; }
.media-slot-inner {
    border-radius: 20px;
    overflow: hidden;
    border: 1px dashed rgba(13, 148, 136, .28);
    background: rgba(255,255,255,.7);
}
.media-placeholder, .ad-slot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.25rem;
    min-height: 140px;
    color: var(--muted);
    gap: 8px;
}
.media-placeholder i, .ad-slot-placeholder i { font-size: 2rem; color: var(--primary); opacity: .7; }
.media-slot-label { font-weight: 800; color: var(--ink); }
.media-slot-image, .ad-slot-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-slot-video { width: 100%; display: block; max-height: 360px; }
.media-ratio-wide .media-slot-inner, .media-ratio-wide.has-media { aspect-ratio: 16/9; min-height: 180px; }
.media-ratio-banner .media-slot-inner { aspect-ratio: 21/9; min-height: 120px; }
.media-ratio-tall .media-slot-inner { aspect-ratio: 4/5; min-height: 220px; }
.media-ratio-square .media-slot-inner { aspect-ratio: 1; }
.hero-media-stack { display: flex; flex-direction: column; gap: 16px; }
.ad-slot-link { display: block; border-radius: 18px; overflow: hidden; }
.payment-instructions {
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    font-size: .92rem;
}
.payment-instructions .crypto-address {
    font-family: ui-monospace, monospace;
    word-break: break-all;
    background: #fff;
    padding: 10px 12px;
    border-radius: 12px;
    margin-top: 8px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .dashboard-layout > .sidebar {
        position: fixed;
        top: var(--header-height);
        left: 0;
        bottom: 0;
        width: min(var(--sidebar-width), 86vw);
        height: auto;
        max-height: none;
        transform: translate3d(-100%, 0, 0);
        transition: transform .25s ease;
        box-shadow: 8px 0 32px rgba(0, 0, 0, .25);
        z-index: 1050;
    }
    body.sidebar-open .dashboard-layout > .sidebar {
        transform: translate3d(0, 0, 0);
    }
    .sidebar-backdrop {
        display: block;
    }
    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.sidebar-open {
        overflow: hidden;
        touch-action: none;
    }
    .sidebar-mobile-fab {
        display: flex;
    }
    body.app-area .content-area {
        padding-bottom: 128px;
    }
    .content-area {
        grid-column: 1;
        padding: 16px;
        padding-bottom: 128px;
    }
}
@media (min-width: 992px) {
    .sidebar-close {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .hero-section { padding: 56px 0 40px; }
    .hero-section .display-3 { font-size: clamp(1.85rem, 7vw, 2.6rem); }
    .hero-section .display-5 { font-size: clamp(1.6rem, 5vw, 2.1rem); }
    .section-padding { padding: 48px 0; }
    .section-title.display-6 { font-size: clamp(1.35rem, 4.5vw, 1.85rem); }
    .navbar .navbar-collapse {
        background: rgba(255,255,255,.98);
        border-radius: 20px;
        padding: 12px;
        margin-top: 10px;
        box-shadow: var(--shadow);
        max-height: 70vh;
        overflow-y: auto;
    }
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin: 4px 0 8px;
        box-shadow: none !important;
        background: var(--soft);
        border-radius: 14px !important;
    }
    .navbar-nav .nav-link.dropdown-toggle::after {
        margin-left: auto;
    }
    .navbar-nav .nav-item.dropdown {
        width: 100%;
    }
    .navbar-nav .nav-item.dropdown > .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .sidebar-close {
        display: inline-flex !important;
    }
    .filter-pills { justify-content: flex-start !important; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .filter-pill { flex: 0 0 auto; white-space: nowrap; }
}

@media (max-width: 767px) {
    .table-mobile-cards thead { display: none; }
    .table-mobile-cards tbody tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 14px;
        margin-bottom: 12px;
        background: #fff;
    }
    .table-mobile-cards tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border: none;
        text-align: right;
    }
    .table-mobile-cards tbody td:before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--muted);
        text-align: left;
        flex: 0 0 40%;
    }
    .table-mobile-cards tbody td[data-label=""]:before { display: none; }
    .payment-methods-table thead { display: none; }
    .payment-methods-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 12px;
    }
    .payment-methods-table td { display: block; padding: 6px 0; }
}

.hero-luxury { padding-bottom: 48px; }
.hero-points { list-style: none; padding: 0; margin: 0; }
.hero-points li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--muted); font-weight: 600; }
.hero-points i { color: var(--primary); font-size: 1.1rem; }
.hero-visual-grid {
    min-height: 420px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(145deg, #0b1217, #0f4c45 45%, #0d9488);
    border-radius: 36px;
    box-shadow: 0 36px 90px rgba(8, 47, 42, .28);
}
.hero-tile {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    backdrop-filter: blur(8px);
}
.hero-tile i { font-size: 2rem; opacity: .9; }
.hero-compact { padding: 72px 0 48px; }
.aerospace-hero { background: linear-gradient(135deg, #0b1217, #1e3a5f); }
.aerospace-hero:before { display: none; }
.page-lead { max-width: 720px; }
.stat-pill {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: 100%;
}
.stock-tile {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 40px rgba(11,18,23,.06);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.stock-tile-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.stock-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(11,18,23,.1); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pill {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    font-size: .9rem;
}
.filter-pill.active, .filter-pill:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}
.vehicle-tag, .news-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--primary-dark);
    background: var(--soft);
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.invest-list li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--muted); font-weight: 600; }
.invest-list i { color: var(--primary); }
.vision-banner {
    background: linear-gradient(135deg, #0b1217, #0f4c45 50%, #0d9488);
    color: #fff;
}
.trade-estimate { background: var(--soft); border: 1px solid var(--border); }
.badge-soft-danger { background: rgba(239,68,68,.12); color: #b91c1c; }
.news-card { position: relative; }
.legal-content h5 { margin-top: 1rem; }
.qr-code-img { border-radius: 12px; border: 1px solid var(--border); }
html[data-theme="dark"] {
    --ink: #e8eef2;
    --muted: #94a3b8;
    --bg: #0b1217;
    --soft: #152028;
    --card: #111a22;
    --border: rgba(94, 234, 212, .12);
}
html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
html[data-theme="dark"] .glass-nav,
html[data-theme="dark"] .premium-card,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .stock-tile,
html[data-theme="dark"] .auth-card { background: rgba(17, 26, 34, .92); }
html[data-theme="dark"] .footer-section { background: #0b1217; }
html[data-theme="dark"] .sidebar-mobile-fab-hint,
html[data-theme="dark"] .sidebar-mobile-top-hint {
    background: var(--soft);
    color: var(--ink);
}
.stock-live-chart { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; }
.stock-chart-header { background: var(--soft); }

@media (max-width: 575px) {
    .display-3 { font-size: 2rem; }
    .premium-card, .dashboard-card, .admin-card, .auth-card { padding: 18px; border-radius: 20px; }
    .brand-text { display: none !important; }
    .hero-points li { font-size: .9rem; }
    .metric-card { padding: 18px; }
    .stat-pill { padding: 18px; }
    .content-area { padding: 12px; padding-bottom: 96px; }
    .sidebar-mobile-fab { bottom: 16px; right: 12px; }
    .sidebar-mobile-fab-hint { font-size: .75rem; padding: 8px 12px; }
    .btn-lg { font-size: 1rem; padding: .65rem 1.25rem; }
}
