/* ===================================================================
   BetaTradex-style redesign for crypto_hyip template
   Accurate brand palette: lime var(--bt-accent) / amber #FFBA16 / near-black #0B0B0B
   Self-contained, namespaced with .bt- to avoid clashing with main.css
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bt-bg: #070b14;
    --bt-bg-2: #0b1120;
    --bt-card: #0f1626;
    --bt-card-2: #131c30;
    --bt-line: #1e293f;
    /* Accent colors — overridden at runtime from admin base/secondary color */
    --bt-accent: #2f8fff;
    --bt-accent-rgb: 47, 143, 255;
    --bt-accent-d: #1f6fe0;
    --bt-on-accent: #ffffff;
    --bt-accent-2: #ffba16;
    --bt-accent-2-rgb: 255, 186, 22;
    --bt-accent-grad: linear-gradient(135deg, var(--bt-accent) 0%, var(--bt-accent-d) 100%);
    --bt-gold-grad: linear-gradient(135deg, var(--bt-accent-2) 0%, var(--bt-accent-2) 100%);
    --bt-text: #eaf0f7;
    --bt-muted: #93a0b5;
    --bt-radius: 18px;
    --bt-shadow: 0 30px 70px -24px rgba(0, 0, 0, .7);
    --bt-glow: 0 14px 40px -12px rgba(var(--bt-accent-rgb), .45);
    --bt-font: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bt-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Base ---------- */
body {
    background: var(--bt-bg);
    color: var(--bt-text);
}

.bt-wrap {
    font-family: var(--bt-font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.bt-wrap h1, .bt-wrap h2, .bt-wrap h3, .bt-wrap h4, .bt-wrap h5, .bt-wrap h6,
.bt-title, .bt-hero h1, .bt-plan__price, .bt-stat .v {
    font-family: var(--bt-font);
    letter-spacing: -0.02em;
}

.bt-wrap section {
    position: relative;
}

.bt-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-inline: 20px;
}

.bt-accent-text { color: var(--bt-accent); }
.bt-gold-text { color: var(--bt-accent-2); }

.bt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--bt-accent);
    margin-bottom: 16px;
}
.bt-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--bt-accent);
}

.bt-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #fff;
}

.bt-desc {
    color: var(--bt-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.bt-section-head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.bt-section { padding: 100px 0; }

/* ---------- Buttons ---------- */
.bt-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.bt-btn:hover { transform: translateY(-3px); }
.bt-btn--primary {
    background: var(--bt-accent-grad);
    color: var(--bt-on-accent);
    box-shadow: var(--bt-glow);
}
.bt-btn--primary:hover { color: var(--bt-on-accent); box-shadow: 0 20px 48px -10px rgba(var(--bt-accent-rgb), .6); }
.bt-btn--gold {
    background: var(--bt-gold-grad);
    color: #1a1500;
}
.bt-btn--gold:hover { color: #1a1500; }
.bt-btn--ghost {
    background: transparent;
    color: var(--bt-text);
    border: 1.5px solid var(--bt-line);
}
.bt-btn--ghost:hover { color: #fff; border-color: var(--bt-accent); }

/* ---------- Hero ---------- */
.bt-hero {
    padding: 150px 0 110px;
    background:
        radial-gradient(900px 520px at 82% -10%, rgba(var(--bt-accent-rgb), .16), transparent 60%),
        radial-gradient(700px 500px at 0% 35%, rgba(var(--bt-accent-2-rgb), .07), transparent 55%),
        var(--bt-bg);
    overflow: hidden;
}
.bt-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 50px;
    align-items: center;
}
.bt-hero h1 {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    margin: 0 0 22px;
}
.bt-hero h1 span { color: var(--bt-accent); }
.bt-hero p {
    color: var(--bt-muted);
    font-size: 17px;
    line-height: 1.75;
    max-width: 540px;
    margin: 0 0 32px;
}
.bt-hero__btns { display: flex; flex-wrap: wrap; gap: 16px; }
.bt-hero__trust {
    margin-top: 36px;
    display: flex;
    gap: 34px;
    flex-wrap: wrap;
}
.bt-hero__trust-item .num {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.bt-hero__trust-item .lbl {
    color: var(--bt-muted);
    font-size: 13px;
    margin-top: 6px;
}
.bt-hero__visual {
    position: relative;
}
.bt-hero__visual img.main {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--bt-line);
    box-shadow: var(--bt-shadow);
}
.bt-float-card {
    position: absolute;
    background: rgba(18, 26, 44, .92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--bt-line);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--bt-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
}
.bt-float-card .ic {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: grid; place-items: center;
    font-size: 18px;
}
.bt-float-card .ic.up { background: rgba(22,199,132,.15); color: var(--bt-accent); }
.bt-float-card .ic.gold { background: rgba(240,185,11,.15); color: var(--bt-accent-2); }
.bt-float-card .t { font-weight: 700; color: #fff; font-size: 14px; }
.bt-float-card .s { color: var(--bt-muted); font-size: 12px; }
.bt-float-card--1 { top: 26px; left: -22px; animation: btFloat 4s ease-in-out infinite; }
.bt-float-card--2 { bottom: 30px; right: -18px; animation: btFloat 5s ease-in-out infinite; }
@keyframes btFloat { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }

/* ---------- Stat strip ---------- */
.bt-statbar {
    background: var(--bt-bg-2);
    border-block: 1px solid var(--bt-line);
}
.bt-statbar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 44px 0;
}
.bt-stat { text-align: center; }
.bt-stat .v {
    font-size: 38px; font-weight: 800;
    background: var(--bt-accent-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bt-stat .l { color: var(--bt-muted); margin-top: 6px; font-size: 14px; }

/* ---------- Feature / Why cards ---------- */
.bt-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bt-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: center; }

.bt-feature {
    background: var(--bt-card);
    border: 1px solid var(--bt-line);
    border-radius: var(--bt-radius);
    padding: 32px 28px;
    transition: transform .3s ease, border-color .3s ease;
    height: 100%;
}
.bt-feature:hover { transform: translateY(-6px); border-color: var(--bt-accent); }
.bt-feature__ic {
    width: 58px; height: 58px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 24px;
    color: var(--bt-accent);
    background: rgba(22, 199, 132, .12);
    margin-bottom: 20px;
}
.bt-feature h4 { font-size: 19px; font-weight: 700; color: #fff; margin: 0 0 10px; }
.bt-feature p { color: var(--bt-muted); font-size: 15px; line-height: 1.65; margin: 0; }

/* ---------- Asset cards ---------- */
.bt-assets { background: var(--bt-bg-2); }
.bt-asset {
    background: var(--bt-card);
    border: 1px solid var(--bt-line);
    border-radius: var(--bt-radius);
    padding: 28px 24px;
    text-align: center;
    transition: transform .3s ease, border-color .3s ease, background .3s ease;
    height: 100%;
}
.bt-asset:hover { transform: translateY(-6px); border-color: var(--bt-accent-2); }
.bt-asset__ic {
    width: 66px; height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 26px;
    color: var(--bt-accent-2);
    background: rgba(240, 185, 11, .12);
}
.bt-asset h4 { font-size: 18px; color: #fff; margin: 0 0 8px; }
.bt-asset p { color: var(--bt-muted); font-size: 14px; margin: 0; line-height: 1.6; }

/* ---------- Split image sections ---------- */
.bt-media img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--bt-line);
    box-shadow: var(--bt-shadow);
}
.bt-check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.bt-check-list li { display: flex; gap: 14px; align-items: flex-start; }
.bt-check-list .ic {
    flex: 0 0 auto;
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center;
    background: rgba(22,199,132,.12); color: var(--bt-accent);
    font-size: 17px;
}
.bt-check-list h5 { color: #fff; font-size: 16px; margin: 0 0 4px; }
.bt-check-list p { color: var(--bt-muted); font-size: 14px; margin: 0; line-height: 1.6; }

/* ---------- Platform mini-features ---------- */
.bt-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 26px; }
.bt-mini {
    display: flex; gap: 14px; align-items: center;
    background: var(--bt-card); border: 1px solid var(--bt-line);
    border-radius: 12px; padding: 16px 18px;
}
.bt-mini .ic { color: var(--bt-accent-2); font-size: 22px; }
.bt-mini b { color: #fff; font-size: 15px; }

/* ---------- Plans / account tiers ---------- */
.bt-plans { background: var(--bt-bg-2); }
.bt-plan {
    background: var(--bt-card);
    border: 1px solid var(--bt-line);
    border-radius: 20px;
    padding: 36px 30px;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform .3s ease, border-color .3s ease;
    position: relative;
}
.bt-plan:hover { transform: translateY(-8px); }
.bt-plan--featured { border-color: var(--bt-accent); box-shadow: var(--bt-glow); }
.bt-plan__badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--bt-accent-grad); color: var(--bt-on-accent);
    font-size: 12px; font-weight: 800; letter-spacing: 1px;
    padding: 6px 16px; border-radius: 50px; text-transform: uppercase;    box-shadow: 0 8px 20px -6px rgba(var(--bt-accent-rgb), .6);}
.bt-plan__name { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--bt-accent); }
.bt-plan__price { font-size: 40px; font-weight: 800; color: #fff; margin: 12px 0 4px; }
.bt-plan__price small { font-size: 15px; color: var(--bt-muted); font-weight: 500; }
.bt-plan__sub { color: var(--bt-muted); font-size: 14px; margin-bottom: 22px; }
.bt-plan__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 13px; }
.bt-plan__list li { display: flex; gap: 10px; color: var(--bt-text); font-size: 14.5px; align-items: center; }
.bt-plan__list li i { color: var(--bt-accent); font-size: 14px; }
.bt-plan .bt-btn { margin-top: auto; justify-content: center; }

/* ---------- Testimonials ---------- */
.bt-testi {
    background: var(--bt-card);
    border: 1px solid var(--bt-line);
    border-radius: var(--bt-radius);
    padding: 30px 28px;
    height: 100%;
}
.bt-testi__stars { color: var(--bt-accent-2); margin-bottom: 14px; font-size: 14px; }
.bt-testi__text { color: var(--bt-text); font-size: 15px; line-height: 1.7; margin: 0 0 22px; }
.bt-testi__person { display: flex; align-items: center; gap: 14px; }
.bt-testi__person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bt-accent); }
.bt-testi__person h6 { margin: 0; color: #fff; font-size: 15px; }
.bt-testi__person span { color: var(--bt-muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.bt-faq { background: var(--bt-bg-2); }
.bt-faq__item {
    background: var(--bt-card);
    border: 1px solid var(--bt-line);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}
.bt-faq__q {
    width: 100%; text-align: left;
    background: transparent; border: none;
    color: #fff; font-size: 17px; font-weight: 600;
    padding: 22px 24px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
}
.bt-faq__q i { transition: transform .3s ease; color: var(--bt-accent); }
.bt-faq__item.open .bt-faq__q i { transform: rotate(45deg); }
.bt-faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.bt-faq__a p { color: var(--bt-muted); padding: 0 24px 22px; margin: 0; line-height: 1.7; font-size: 15px; }
.bt-faq__item.open .bt-faq__a { max-height: 320px; }

/* ---------- CTA ---------- */
.bt-cta {
    position: relative;
    padding: 110px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}
.bt-cta::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,11,22,.82), rgba(7,11,22,.92));
}
.bt-cta__inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.bt-cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff; margin: 0 0 16px; }
.bt-cta p { color: var(--bt-muted); font-size: 17px; margin: 0 0 30px; }
.bt-cta__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Public mobile menu / footer chrome ---------- */
@media (min-width: 1200px) {
    .header .offcanvas,
    .header .offcanvas-header,
    .header .offcanvas-body,
    .header .nav-menu {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}

@media (max-width: 1199px) {
    .header .offcanvas {
        background: var(--bt-bg) !important;
        color: var(--bt-text);
    }
    .header .offcanvas-header {
        border-bottom: 1px solid var(--bt-line);
    }
    .header .offcanvas-body {
        background: var(--bt-bg);
    }
    .header .offcanvas .nav-item .nav-link {
        color: var(--bt-text);
    }
    .header .offcanvas .nav-item.active .nav-link,
    .header .offcanvas .nav-item .nav-link:hover {
        color: var(--bt-accent);
    }
    .header .offcanvas .auth-btn {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }
    .header .offcanvas .auth-btn-link {
        color: var(--bt-text);
    }
}
body.bt-menu-open .header > .container > .navbar > .navbar-brand.logo,
body.bt-menu-open .header > .container > .navbar > .navbar-toggler.header-button {
    opacity: 0;
    pointer-events: none;
}

.footer-area {
    margin-top: 0;
    padding-top: 96px;
    background: var(--bt-bg-2);
    color: var(--bt-text);
    -webkit-mask-image: none;
    mask-image: none;
}
.footer-area__thumb,
.footer-area__coin {
    display: none;
}
.footer-area__gradient {
    opacity: .2;
}
.footer-logo {
    margin-bottom: 46px;
}
.footer-item__title {
    color: var(--bt-text);
    font-family: var(--bt-font);
}
.footer-item__title::before {
    background: var(--bt-accent-grad);
}
.footer-item__desc,
.footer-menu__link,
.footer-contact__info .text,
.bottom-footer-text {
    color: var(--bt-muted);
}
.footer-menu__item::before {
    background: var(--bt-accent);
}
.footer-menu__link:hover,
.footer-contact__info .icon {
    color: var(--bt-accent);
}
.bottom-footer {
    background: var(--bt-bg);
    border-top: 1px solid var(--bt-line);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .bt-hero__grid, .bt-grid-2 { grid-template-columns: 1fr; }
    .bt-hero__visual { order: -1; }
    .bt-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .bt-statbar__grid { grid-template-columns: repeat(2, 1fr); }
    .bt-section { padding: 70px 0; }
    .bt-hero { padding: 120px 0 80px; }
}
@media (max-width: 575px) {
    .bt-grid-3, .bt-mini-grid { grid-template-columns: 1fr; }
    .bt-float-card { display: none; }
    .bt-hero__trust { gap: 22px; }
}

/* ===================================================================
   CRYPTO TICKER (top bar)
   =================================================================== */
.bt-ticker {
    position: relative;
    z-index: 30;
    background: #060807;
    border-bottom: 1px solid var(--bt-line);
    overflow: hidden;
    height: 44px;
    display: flex;
    align-items: center;
    font-family: var(--bt-font-body);
}
.bt-ticker__label {
    flex: 0 0 auto;
    display: flex; align-items: center; gap: 8px;
    background: var(--bt-accent-grad);
    color: var(--bt-on-accent);
    font-weight: 800; font-size: 12px; letter-spacing: .5px;
    height: 100%;
    padding: 0 18px;
    text-transform: uppercase;
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.bt-ticker__viewport { flex: 1; overflow: hidden; height: 100%; position: relative; }
.bt-ticker__track {
    display: flex; align-items: center; gap: 34px;
    height: 100%;
    white-space: nowrap;
    width: max-content;
    animation: btTicker 48s linear infinite;
}
.bt-ticker:hover .bt-ticker__track { animation-play-state: paused; }
@keyframes btTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.bt-tick {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 13px; color: var(--bt-text);
}
.bt-tick__sym { font-weight: 700; color: #fff; }
.bt-tick__ico { color: var(--bt-accent-2); font-size: 14px; }
.bt-tick__price { color: var(--bt-muted); }
.bt-tick__chg { font-weight: 600; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.bt-tick__chg.up { color: var(--bt-accent); background: rgba(var(--bt-accent-rgb), .12); }
.bt-tick__chg.down { color: #ff6b6b; background: rgba(255,107,107,.12); }

/* Offset the fixed site header below the ticker when not scrolled */
.header:not(.fixed-header) { top: 44px !important; }
@media (max-width: 575px) {
    .header:not(.fixed-header) { top: 44px !important; }
}

/* ===================================================================
   LOGO IMAGE (NexaTradex)
   =================================================================== */
.bt-logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.bt-logo__img {
    width: 194px;
    max-width: 100%;
    height: auto;
    display: block;
}
.navbar-brand.logo .bt-logo__img {
    width: 174px;
    max-width: none;
}
.footer-logo .bt-logo,
.sidebar-logo .bt-logo,
.bt-auth__logo .bt-logo {
    width: 194px;
    max-width: 100%;
}
.footer-logo .bt-logo__img,
.sidebar-logo .bt-logo__img,
.bt-auth__logo .bt-logo__img {
    width: 100%;
}
@media (max-width: 991px) {
    .navbar-brand.logo .bt-logo__img { width: 160px; }
}

/* ===================================================================
   FOREX / MARKETS
   =================================================================== */
.bt-market-tabs {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center; margin-bottom: 34px;
}
.bt-market-tab {
    background: var(--bt-card); border: 1px solid var(--bt-line);
    color: var(--bt-muted); border-radius: 50px;
    padding: 9px 20px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s ease;
}
.bt-market-tab:hover { color: #fff; border-color: var(--bt-accent); }
.bt-market-tab.active { background: var(--bt-accent-grad); color: var(--bt-on-accent); border-color: transparent; }

.bt-market-table-wrap {
    background: var(--bt-card);
    border: 1px solid var(--bt-line);
    border-radius: var(--bt-radius);
    overflow: hidden;
}
.bt-market-table { width: 100%; border-collapse: collapse; }
.bt-market-table th {
    color: var(--bt-muted); font-size: 12px; text-transform: uppercase;
    letter-spacing: .5px; padding: 16px 20px; text-align: left;
    border-bottom: 1px solid var(--bt-line); background: var(--bt-bg-2);
}
.bt-market-table td { padding: 16px 20px; border-bottom: 1px solid var(--bt-line); font-size: 14.5px; color: var(--bt-text); vertical-align: middle; }
.bt-market-table tr:last-child td { border-bottom: none; }
.bt-market-table tr.bt-market-row { transition: background .2s ease; }
.bt-market-table tr.bt-market-row:hover { background: var(--bt-card-2); }
.bt-market-sym { display: flex; align-items: center; gap: 12px; }
.bt-market-sym__ic {
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center; font-size: 17px;
    background: rgba(var(--bt-accent-rgb), .12); color: var(--bt-accent); flex: 0 0 auto;
}
.bt-market-sym__logo {
    width: 40px; height: 40px; border-radius: 10px;
    display: grid; place-items: center;
    background: #fff; flex: 0 0 auto; overflow: hidden;
    padding: 7px;
}
.bt-market-sym__logo .ic {
    width: 100%; height: 100%;
    background-color: #0b0f17;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
}
.bt-market-sym__name { font-weight: 700; color: #fff; }
.bt-market-sym__cat { color: var(--bt-muted); font-size: 12px; }
.bt-chg { font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 7px; }
.bt-chg.up { color: var(--bt-accent); background: rgba(var(--bt-accent-rgb), .12); }
.bt-chg.down { color: #ff6b6b; background: rgba(255,107,107,.12); }
.bt-mini-spark { width: 84px; height: 30px; }

/* ---------- Trading terminal (user) ---------- */
.bt-terminal { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.bt-panel {
    background: var(--bt-card); border: 1px solid var(--bt-line);
    border-radius: var(--bt-radius); overflow: hidden;
}
.bt-panel__head {
    padding: 16px 20px; border-bottom: 1px solid var(--bt-line);
    display: flex; align-items: center; justify-content: space-between;
}
.bt-panel__head h5 { margin: 0; color: #fff; font-family: var(--bt-font); font-size: 16px; }
.bt-ticket { padding: 20px; position: sticky; top: 90px; }
.bt-ticket__pair {
    display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
    padding-bottom: 18px; border-bottom: 1px solid var(--bt-line);
}
.bt-ticket__price { margin-left: auto; text-align: right; }
.bt-ticket__price .v { font-family: var(--bt-font); font-weight: 800; color: #fff; font-size: 18px; }
.bt-ticket .form-control, .bt-ticket .form-select {
    background: var(--bt-bg-2); border: 1px solid var(--bt-line);
    color: #fff; border-radius: 10px; padding: 11px 14px; width: 100%;
}
.bt-ticket .form-control:focus, .bt-ticket .form-select:focus {
    border-color: var(--bt-accent); box-shadow: 0 0 0 3px rgba(var(--bt-accent-rgb), .12); outline: none;
}
.bt-ticket label { color: var(--bt-muted); font-size: 13px; font-weight: 600; margin-bottom: 7px; display: block; }
.bt-side-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.bt-side-btn {
    padding: 12px; border-radius: 10px; font-weight: 700; font-size: 14px;
    border: 1.5px solid var(--bt-line); background: var(--bt-bg-2);
    color: var(--bt-muted); cursor: pointer; text-align: center; transition: all .2s ease;
}
.bt-side-btn.buy.active { background: rgba(var(--bt-accent-rgb), .15); border-color: var(--bt-accent); color: var(--bt-accent); }
.bt-side-btn.sell.active { background: rgba(255,107,107,.15); border-color: #ff6b6b; color: #ff6b6b; }
.bt-trade-btn {
    width: 100%; border: none; border-radius: 50px; padding: 14px;
    font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 6px;
    background: var(--bt-accent-grad); color: var(--bt-on-accent);
    box-shadow: var(--bt-glow); transition: transform .2s ease;
}
.bt-trade-btn:hover { transform: translateY(-2px); color: var(--bt-on-accent); }
.bt-pos-table { width: 100%; border-collapse: collapse; }
.bt-pos-table th { color: var(--bt-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--bt-line); }
.bt-pos-table td { padding: 14px 16px; border-bottom: 1px solid var(--bt-line); color: var(--bt-text); font-size: 13.5px; }
.bt-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 50px; }
.bt-pill.buy { color: var(--bt-accent); background: rgba(var(--bt-accent-rgb), .12); }
.bt-pill.sell { color: #ff6b6b; background: rgba(255,107,107,.12); }
.bt-close-btn { background: transparent; border: 1px solid var(--bt-line); color: var(--bt-text); border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer; }
.bt-close-btn:hover { border-color: #ff6b6b; color: #ff6b6b; }
@media (max-width: 991px) {
    .bt-terminal { grid-template-columns: 1fr; }
    .bt-ticket { position: static; }
}

/* ---------- Market / terminal responsive ---------- */
.bt-market-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bt-market-table, .bt-pos-table { min-width: 520px; }
.bt-panel .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* Allow grid items to shrink below their content's intrinsic width so the
   min-width tables scroll inside .table-responsive on mobile instead of
   overflowing and being clipped by .bt-panel's overflow:hidden */
.bt-terminal { min-width: 0; }
.bt-terminal > * { min-width: 0; }

@media (max-width: 767px) {
    .bt-market-table th, .bt-market-table td { padding: 13px 14px; font-size: 13.5px; }
    .bt-market-sym__ic { width: 34px; height: 34px; font-size: 14px; }
    .bt-market-sym { gap: 9px; }
    .bt-market-sym__cat { display: none; }
    .bt-market-table, .bt-pos-table { min-width: 460px; }
    .bt-market-tabs { gap: 7px; }
    .bt-market-tab { padding: 7px 14px; font-size: 13px; }
    .bt-page { padding: 50px 0 70px; }
    .bt-page-head { margin-bottom: 34px; }
    .bt-trader-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .bt-market-table .bt-btn { padding: 7px 14px !important; font-size: 12px !important; }
    .bt-market-table, .bt-pos-table { min-width: 400px; }
}

/* ---------- Misc polish ---------- */
.bt-wrap ::selection { background: var(--bt-accent); color: var(--bt-on-accent); }
.bt-eyebrow.center { justify-content: center; }
.bt-divider-glow {
    height: 1px; width: 100%;
    background: linear-gradient(90deg, transparent, var(--bt-accent), transparent);
    opacity: .35;
}
@media (max-width: 575px) {
    .bt-ticker__label span.txt { display: none; }
}

/* ===================================================================
   COPY TRADING
   =================================================================== */
.bt-page {
    padding: 70px 0 100px;
    background:
        radial-gradient(800px 500px at 85% -5%, rgba(var(--bt-accent-rgb), .12), transparent 60%),
        var(--bt-bg);
    min-height: 60vh;
}
.bt-page-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.bt-trader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 26px;
}
.bt-trader {
    background: linear-gradient(180deg, var(--bt-card) 0%, var(--bt-bg-2) 100%);
    border: 1px solid var(--bt-line);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    display: flex; flex-direction: column;
}
.bt-trader:hover { transform: translateY(-7px); border-color: var(--bt-accent); box-shadow: var(--bt-glow); }
.bt-trader__top {
    display: flex; align-items: center; gap: 14px;
    padding: 22px 22px 16px;
    position: relative;
}
.bt-trader__avatar {
    width: 58px; height: 58px; border-radius: 50%;
    object-fit: cover; border: 2px solid var(--bt-accent);
    background: var(--bt-card-2);
    display: grid; place-items: center;
    font-weight: 800; color: var(--bt-accent); font-size: 22px;
    font-family: var(--bt-font);
}
.bt-trader__name { font-weight: 700; color: #fff; font-size: 17px; margin: 0; font-family: var(--bt-font); }
.bt-trader__handle { color: var(--bt-muted); font-size: 13px; }
.bt-trader__feat {
    position: absolute; top: 16px; right: 16px;
    background: var(--bt-gold-grad); color: #1a1500;
    font-size: 10px; font-weight: 800; letter-spacing: .5px;
    padding: 4px 9px; border-radius: 50px; text-transform: uppercase;
}
.bt-trader__bio {
    color: var(--bt-muted); font-size: 13.5px; line-height: 1.6;
    padding: 0 22px 16px; margin: 0; min-height: 60px;
}
.bt-trader__stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--bt-line);
    border-bottom: 1px solid var(--bt-line);
}
.bt-trader__stat { padding: 14px 8px; text-align: center; border-right: 1px solid var(--bt-line); }
.bt-trader__stat:last-child { border-right: none; }
.bt-trader__stat .v { font-weight: 800; color: var(--bt-accent); font-size: 17px; font-family: var(--bt-font); }
.bt-trader__stat .v.gold { color: var(--bt-accent-2); }
.bt-trader__stat .l { color: var(--bt-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }
.bt-trader__foot { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.bt-trader__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--bt-muted); }
.bt-risk { font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 50px; }
.bt-risk.low { color: var(--bt-accent); background: rgba(var(--bt-accent-rgb), .12); }
.bt-risk.medium { color: var(--bt-accent-2); background: rgba(var(--bt-accent-2-rgb), .12); }
.bt-risk.high { color: #ff6b6b; background: rgba(255,107,107,.12); }
.bt-trader__foot .bt-btn { justify-content: center; width: 100%; }

.bt-copy-form .form-control,
.bt-copy-form .form-select {
    background: var(--bt-bg-2);
    border: 1px solid var(--bt-line);
    color: var(--bt-text);
    border-radius: 10px;
    padding: 11px 14px;
}
.bt-copy-form .form-control:focus { border-color: var(--bt-accent); box-shadow: none; background: var(--bt-bg-2); color:#fff; }
.bt-mycopies-table { width: 100%; border-collapse: collapse; }
.bt-mycopies-table th { color: var(--bt-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--bt-line); }
.bt-mycopies-table td { padding: 14px; border-bottom: 1px solid var(--bt-line); color: var(--bt-text); font-size: 14px; }

/* ===================================================================
   CRYPTO INVESTMENT (coin cards)
   =================================================================== */
.bt-coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 26px;
}
.bt-coin {
    position: relative;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bt-card) 0%, var(--bt-bg-2) 100%);
    border: 1px solid var(--bt-line);
    border-radius: 20px;
    padding: 26px 24px;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.bt-coin:hover { transform: translateY(-7px); border-color: var(--bt-accent); box-shadow: var(--bt-glow); }
.bt-coin__feat {
    position: absolute; top: 16px; right: 16px;
    background: var(--bt-gold-grad); color: #1a1500;
    font-size: 10px; font-weight: 800; letter-spacing: .5px;
    padding: 4px 9px; border-radius: 50px; text-transform: uppercase;
}
.bt-coin__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bt-coin__logo {
    width: 46px; height: 46px; border-radius: 12px;
    background: #fff; display: grid; place-items: center;
    overflow: hidden; padding: 9px; flex: 0 0 auto;
}
.bt-coin__logo .ic {
    width: 100%; height: 100%;
    background-color: #0b0f17;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: center; mask-position: center;
    -webkit-mask-size: contain; mask-size: contain;
}
.bt-coin__sym { font-weight: 800; color: var(--bt-text); font-size: 17px; font-family: var(--bt-font); line-height: 1.1; }
.bt-coin__name { color: var(--bt-muted); font-size: 13px; }
.bt-coin__roi {
    display: flex; align-items: baseline; gap: 10px;
    padding: 14px 0; margin-bottom: 6px;
    border-top: 1px solid var(--bt-line);
    border-bottom: 1px solid var(--bt-line);
}
.bt-coin__roi .v { font-family: var(--bt-font); font-weight: 800; font-size: 30px; color: var(--bt-accent); line-height: 1; }
.bt-coin__roi .l { color: var(--bt-muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; }
.bt-coin__meta { display: grid; gap: 10px; margin: 16px 0 22px; }
.bt-coin__meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.bt-coin__meta-row .k { color: var(--bt-muted); }
.bt-coin__meta-row .vv { color: var(--bt-text); font-weight: 600; }
.bt-coin .bt-btn { justify-content: center; width: 100%; margin-top: auto; }

/* ===================================================================
   AUTH (simplified centered card — login / register)
   =================================================================== */
.bt-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background:
        radial-gradient(820px 520px at 80% -5%, rgba(var(--bt-accent-rgb), .14), transparent 60%),
        radial-gradient(640px 480px at 10% 110%, rgba(var(--bt-accent-2-rgb), .07), transparent 55%),
        var(--bt-bg);
}
.bt-auth__card {
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, var(--bt-card) 0%, var(--bt-bg-2) 100%);
    border: 1px solid var(--bt-line);
    border-radius: 22px;
    box-shadow: var(--bt-shadow);
    padding: 40px 38px;
}
.bt-auth__card.wide { max-width: 560px; }
.bt-auth__logo { display: flex; justify-content: center; margin-bottom: 26px; }
.bt-auth__head { text-align: center; margin-bottom: 28px; }
.bt-auth__head h2 {
    font-family: var(--bt-font);
    font-size: 27px; font-weight: 800; color: #fff;
    margin: 0 0 8px; letter-spacing: -.02em;
}
.bt-auth__head p { color: var(--bt-muted); font-size: 14.5px; margin: 0; }
.bt-auth__head p a { color: var(--bt-accent); font-weight: 600; text-decoration: none; }

.bt-auth .form-group { margin-bottom: 18px; }
.bt-auth .form--label {
    display: block; color: var(--bt-text); font-size: 13.5px;
    font-weight: 600; margin-bottom: 8px;
}
.bt-auth .form--control,
.bt-auth input[type="text"],
.bt-auth input[type="email"],
.bt-auth input[type="password"] {
    width: 100%;
    background: var(--bt-bg-2);
    border: 1px solid var(--bt-line);
    border-radius: 12px;
    color: #fff;
    padding: 13px 16px;
    font-size: 14.5px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bt-auth .form--control::placeholder { color: #5f6b60; }
.bt-auth .form--control:focus {
    outline: none;
    border-color: var(--bt-accent);
    box-shadow: 0 0 0 3px rgba(var(--bt-accent-rgb), .12);
    background: var(--bt-bg-2);
    color: #fff;
}
.bt-auth .input-group-text,
.bt-auth .password-show-hide {
    color: var(--bt-muted);
}
.bt-auth .password-show-hide {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    cursor: pointer;
}
.bt-auth .form-check-label { color: var(--bt-muted); font-size: 13.5px; }
.bt-auth .form-check-input { background-color: var(--bt-bg-2); border-color: var(--bt-line); }
.bt-auth .form-check-input:checked { background-color: var(--bt-accent); border-color: var(--bt-accent); }
.bt-auth a.text--base, .bt-auth .text--base { color: var(--bt-accent) !important; }
.bt-auth .btn--gr,
.bt-auth .bt-auth__submit {
    width: 100%;
    background: var(--bt-accent-grad);
    color: var(--bt-on-accent);
    border: none;
    border-radius: 50px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: var(--bt-glow);
    transition: transform .2s ease, box-shadow .2s ease;
    margin-top: 6px;
}
/* neutralise the template's gold ::after overlay on the auth button */
.bt-auth .btn--gr::after {
    background: var(--bt-accent-grad) !important;
    top: 0; right: 0; width: 100%; height: 100%;
}
.bt-auth .btn--gr:hover::after,
.bt-auth .btn--gr:focus::after,
.bt-auth .btn--gr:focus-visible::after {
    background: var(--bt-accent-grad) !important;
}
.bt-auth .btn--gr:hover, .bt-auth .bt-auth__submit:hover {
    transform: translateY(-2px);
    color: var(--bt-on-accent);
    box-shadow: 0 18px 44px -10px rgba(var(--bt-accent-rgb), .6);
}
.bt-auth__foot { text-align: center; color: var(--bt-muted); font-size: 14px; margin: 22px 0 0; }
.bt-auth__foot a { color: var(--bt-accent); font-weight: 600; text-decoration: none; }
.bt-auth .flex-between { display: flex; justify-content: space-between; align-items: center; }
.bt-auth .position-relative { position: relative; }
@media (max-width: 480px) {
    .bt-auth__card { padding: 32px 24px; }
}
.bt-auth-body { background: var(--bt-bg); }

/* ===================================================================
   HEADER NAV � prevent wrapping now that there are more menu items
   =================================================================== */
@media (min-width: 1200px) {
    .header .nav-menu { gap: 0 !important; }
    .header .nav-menu .nav-item { margin: 0 !important; }
    .header .nav-menu .nav-item .nav-link {
        white-space: nowrap;
        font-size: 0.95rem !important;
        padding: 6px 10px !important;
    }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    .header .nav-menu .nav-item .nav-link {
        font-size: 0.875rem !important;
        padding: 6px 7px !important;
    }
}
.header .nav-menu .nav-link { white-space: nowrap; }

/* Keep the right-side auth area from collapsing / wrapping when the
   nav is wide. Without this the Login/Register text wraps vertically. */
@media (min-width: 1200px) {
    .header-right { flex-shrink: 0; padding-left: 8px; }
    .header-right .auth-btn { --gap: 12px; flex-shrink: 0; }
    .header-right .auth-btn-link { white-space: nowrap; flex-shrink: 0; }
    .header-right .lang-box { flex-shrink: 0; margin-right: 0; }
}

/* ===================================================================
   LIGHT / DARK THEME  (light = default)
   Theme is toggled via the [data-bt-theme] attribute on <html> and
   persisted in localStorage. The dark palette lives in :root above;
   the rules below recolour the UI when light mode is active.
   =================================================================== */

/* ---------- Theme toggle button ---------- */
.bt-theme-toggle {
    --size: 38px;
    width: var(--size); height: var(--size);
    border-radius: 50%;
    border: 1.5px solid var(--bt-line);
    background: transparent;
    color: var(--bt-text);
    display: inline-grid; place-items: center;
    font-size: 15px; line-height: 1; cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
    flex: 0 0 auto;
}
/* header-right already provides spacing via its gap; drop the extra margin */
.header-right .bt-theme-toggle { margin-right: 0 !important; }
.bt-theme-toggle:hover { border-color: var(--bt-accent); color: var(--bt-accent); transform: translateY(-1px); }
.bt-theme-toggle .bt-theme-toggle__sun { display: none; }
.bt-theme-toggle .bt-theme-toggle__moon { display: inline-block; }
html[data-bt-theme="dark"] .bt-theme-toggle .bt-theme-toggle__sun { display: inline-block; }
html[data-bt-theme="dark"] .bt-theme-toggle .bt-theme-toggle__moon { display: none; }

/* ---------- Light palette ---------- */
html[data-bt-theme="light"] {
    /* BetaTradex component tokens */
    --bt-bg: #ffffff;
    --bt-bg-2: #f3f6fb;
    --bt-card: #ffffff;
    --bt-card-2: #f3f6fb;
    --bt-line: #e3e9f2;
    --bt-text: #16202f;
    --bt-muted: #5a677c;
    --bt-shadow: 0 24px 60px -30px rgba(20, 33, 56, .25);
    --bt-glow: 0 14px 40px -16px rgba(var(--bt-accent-rgb), .32);

    /* main.css surface / text tokens (HSL components) */
    --body-color: 215 18% 30%;
    --text-color: 215 14% 42%;
    --heading-color: 218 41% 14%;
    --section-bg: 210 33% 98%;
    --border-color: 214 25% 90%;
    --background-color: #ffffff;
    --bg-color: 210 33% 96%;
    --dark: 210 33% 96%;
}

/* Hardcoded white text inside BetaTradex components -> dark in light mode */
html[data-bt-theme="light"] .bt-title,
html[data-bt-theme="light"] .bt-hero h1,
html[data-bt-theme="light"] .bt-hero__trust-item .num,
html[data-bt-theme="light"] .bt-float-card .t,
html[data-bt-theme="light"] .bt-feature h4,
html[data-bt-theme="light"] .bt-asset h4,
html[data-bt-theme="light"] .bt-check-list h5,
html[data-bt-theme="light"] .bt-mini b,
html[data-bt-theme="light"] .bt-plan__price,
html[data-bt-theme="light"] .bt-testi__person h6,
html[data-bt-theme="light"] .bt-faq__q,
html[data-bt-theme="light"] .bt-market-sym__name,
html[data-bt-theme="light"] .bt-panel__head h5,
html[data-bt-theme="light"] .bt-ticket__price .v,
html[data-bt-theme="light"] .bt-trader__name,
html[data-bt-theme="light"] .bt-auth__head h2 { color: var(--bt-text); }

/* Form fields with hardcoded white text */
html[data-bt-theme="light"] .bt-ticket .form-control,
html[data-bt-theme="light"] .bt-ticket .form-select,
html[data-bt-theme="light"] .bt-copy-form .form-control,
html[data-bt-theme="light"] .bt-copy-form .form-control:focus,
html[data-bt-theme="light"] .bt-auth .form--control,
html[data-bt-theme="light"] .bt-auth input[type="text"],
html[data-bt-theme="light"] .bt-auth input[type="email"],
html[data-bt-theme="light"] .bt-auth input[type="password"] { color: var(--bt-text); }

/* Lighten the floating hero cards so they read on a white hero */
html[data-bt-theme="light"] .bt-float-card { background: rgba(255, 255, 255, .92); }

/* Keep intentionally-dark surfaces (ticker, CTA overlay) legible */
html[data-bt-theme="light"] .bt-tick { color: #d7deea; }
html[data-bt-theme="light"] .bt-tick__price { color: #9aa6b8; }
html[data-bt-theme="light"] .bt-cta p { color: #c9d3e0; }

/* ---------- Shared chrome (main.css) in light mode ---------- */
/* Header navigation */
html[data-bt-theme="light"] .header .nav-menu .nav-item .nav-link,
html[data-bt-theme="light"] .header .nav-item .nav-link { color: #16202f !important; }
html[data-bt-theme="light"] .header .nav-menu .nav-item.active .nav-link,
html[data-bt-theme="light"] .header .nav-menu .nav-item:hover .nav-link { color: var(--bt-accent) !important; }
html[data-bt-theme="light"] .auth-btn-link { color: #16202f; }
html[data-bt-theme="light"] .auth-btn-link.login-btn::before { background-color: rgba(0, 0, 0, .2); }
html[data-bt-theme="light"] .header .navbar-toggler.header-button { color: #16202f; }
html[data-bt-theme="light"] .header .offcanvas-header .btn-close { color: #16202f; }

/* Footer */
html[data-bt-theme="light"] .footer-item__desc { color: hsl(var(--text-color)); }

/* Breadcrumb banner */
html[data-bt-theme="light"] .breadcrumb { background-color: hsl(var(--section-bg)); }
html[data-bt-theme="light"] .breadcrumb__title,
html[data-bt-theme="light"] .breadcrumb__item,
html[data-bt-theme="light"] .breadcrumb__item-text { color: hsl(var(--heading-color)); }
html[data-bt-theme="light"] .breadcrumb__link { color: var(--bt-accent); }

/* Contact cards — value text was hardcoded white */
html[data-bt-theme="light"] .contact-card__desc,
html[data-bt-theme="light"] .contact-card__desc a { color: hsl(var(--text-color)); }

/* Template form fields (contact form, etc.) — were white text designed for dark bg */
html[data-bt-theme="light"] .form--label { color: hsl(var(--heading-color)); }
html[data-bt-theme="light"] .form--control,
html[data-bt-theme="light"] select.form--control,
html[data-bt-theme="light"] textarea.form--control,
html[data-bt-theme="light"] .form-control,
html[data-bt-theme="light"] .form-select {
    color: hsl(var(--heading-color));
    background-color: #ffffff;
    border-color: hsl(var(--border-color));
}
html[data-bt-theme="light"] .form--control::placeholder,
html[data-bt-theme="light"] .form-control::placeholder { color: hsl(var(--text-color) / .55); }
html[data-bt-theme="light"] .form--control:focus,
html[data-bt-theme="light"] .form-control:focus,
html[data-bt-theme="light"] .form-select:focus {
    background-color: #ffffff;
    color: hsl(var(--heading-color));
    border-color: var(--bt-accent);
}

/* ===================================================================
   DASHBOARD (logged-in area)
   =================================================================== */
.dashboard {
    min-height: 100vh;
    background:
        radial-gradient(760px 460px at 88% -8%, rgba(var(--bt-accent-rgb), .14), transparent 62%),
        radial-gradient(620px 420px at -8% 105%, rgba(var(--bt-accent-2-rgb), .06), transparent 58%),
        var(--bt-bg);
    color: var(--bt-text);
    font-family: var(--bt-font-body);
    overflow-x: hidden;
}

.dashboard-header-title,
.dashboard-widget-amount,
.dashboard h4,
.dashboard h5 {
    color: var(--bt-text);
    font-family: var(--bt-font);
    letter-spacing: 0;
}

.dashboard .sidebar-menu {
    background: linear-gradient(180deg, var(--bt-card) 0%, var(--bt-bg-2) 100%);
    border-right: 1px solid var(--bt-line);
    box-shadow: 22px 0 60px -44px rgba(0, 0, 0, .7);
    padding: 30px 20px;
}

.dashboard .sidebar-logo {
    margin-bottom: 26px;
}

.dashboard .sidebar-menu__close {
    color: var(--bt-muted);
    cursor: pointer;
}

.dashboard .sidebar-menu__close:hover,
.dashboard .sidebar-menu__close:focus {
    color: var(--bt-text);
}

.dashboard .account-balance {
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid var(--bt-line);
    border-radius: 16px;
    background: rgba(var(--bt-accent-rgb), .07);
}

.dashboard .account-balance__title {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 700;
}

.dashboard .account-balance-item {
    border: 1px solid var(--bt-line);
    border-radius: 12px;
    background: var(--bt-card);
    padding: 12px 14px;
}

.dashboard .account-balance-item .title,
.dashboard-widget-title,
.user-info-content .phone {
    color: var(--bt-muted);
}

.dashboard .account-balance-item .amount {
    margin: 0;
    color: var(--bt-text);
    font-weight: 800;
}

.dashboard .btn--gr {
    background: var(--bt-accent-grad) !important;
    border: 0;
    border-radius: 12px;
    color: var(--bt-on-accent) !important;
    box-shadow: var(--bt-glow);
}

.dashboard .btn--gr::after {
    background: var(--bt-accent-grad) !important;
}

.dashboard .btn--light {
    background: var(--bt-card);
    border: 1px solid var(--bt-line);
    border-radius: 12px;
    color: var(--bt-text) !important;
}

.dashboard .btn--light:hover {
    border-color: var(--bt-accent);
    color: var(--bt-accent);
}

.dashboard .sidebar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}

.dashboard .sidebar-actions .btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    overflow: hidden;
    isolation: isolate;
    line-height: 1;
}

.dashboard .sidebar-actions .btn::after {
    display: none !important;
}

.dashboard .sidebar-menu-list__item:not(:last-of-type) {
    margin-bottom: 8px;
}

.dashboard .sidebar-menu-list__link {
    min-height: 46px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--bt-muted);
    line-height: 1.2;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.dashboard .sidebar-menu-list__link:hover,
.dashboard .sidebar-menu-list__item.active > a,
.dashboard .sidebar-menu-list__item.has-dropdown.active > a {
    background: rgba(var(--bt-accent-rgb), .12);
    border-color: rgba(var(--bt-accent-rgb), .24);
    color: var(--bt-text);
}

.dashboard .sidebar-menu-list__item.has-dropdown > a::after {
    color: var(--bt-muted);
}

.dashboard .sidebar-menu-list__item.has-dropdown.active > a::after {
    color: var(--bt-text);
}

.dashboard .sidebar-submenu-list {
    padding: 8px 0 4px;
}

.dashboard .sidebar-submenu-list__link {
    margin-left: 20px;
    color: var(--bt-muted);
    border-radius: 10px;
}

.dashboard .sidebar-submenu-list__item.active > a,
.dashboard .sidebar-submenu-list__link:hover {
    background: rgba(var(--bt-accent-rgb), .1);
    color: var(--bt-accent);
}

.dashboard-header {
    top: 12px;
    margin: 20px var(--area-p) 0;
    padding-block: 14px;
    border: 1px solid var(--bt-line);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(var(--bt-accent-rgb), .16), transparent 46%),
        linear-gradient(180deg, var(--bt-card) 0%, var(--bt-bg-2) 100%);
    box-shadow: var(--bt-shadow);
}

.dashboard-header-wrapper {
    gap: 16px;
}

.dashboard-header-left {
    min-width: 0;
}

.dashboard-header-title {
    margin: 0;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
}

.dashboard-header-left .navigation-bar {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(var(--bt-accent-rgb), .14);
    color: var(--bt-accent);
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-theme-toggle {
    background: var(--bt-card);
}

.dashboard .lang-box-btn {
    padding: 0;
    border: 0;
    background: transparent;
}

.dashboard .user-info {
    min-width: 0;
    padding: 0;
    border: 0;
    width: auto;
}

.dashboard .user-info-wrapper {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--bt-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    overflow: hidden;
}

.dashboard-header .lang-box-btn,
.dashboard-header .user-info-wrapper {
    max-width: min(360px, 42vw);
}

.dashboard .user-info-thumb {
    flex: 0 0 40px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    color: var(--bt-accent);
    background: rgba(var(--bt-accent-rgb), .12);
}

.dashboard .user-info-thumb i {
    font-size: 40px;
    line-height: 1;
}

.dashboard .user-info-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.dashboard .user-info-content .name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--bt-text);
    font-family: var(--bt-font);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard .user-info-content .phone {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard .user-dropdown .dropdown-menu {
    border: 1px solid var(--bt-line);
    border-radius: 14px;
    background: var(--bt-card);
    box-shadow: var(--bt-shadow);
}

.dashboard .user-dropdown-link {
    color: var(--bt-muted);
}

.dashboard .user-dropdown-link:hover {
    color: var(--bt-text);
    background: rgba(var(--bt-accent-rgb), .1);
}

.dashboard-body {
    padding-top: 24px;
}

.dashboard-widget-wrapper {
    margin-bottom: 48px;
}

.dashboard-widget {
    min-height: 160px;
    border: 1px solid var(--bt-line);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--bt-card) 0%, var(--bt-bg-2) 100%);
    box-shadow: 0 22px 60px -42px rgba(0, 0, 0, .65);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dashboard-widget:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--bt-accent-rgb), .36);
    box-shadow: var(--bt-glow);
}

.dashboard-widget-icon {
    border-radius: 14px;
    background: rgba(var(--bt-accent-rgb), .14);
    color: var(--bt-accent);
}

.dashboard-widget-title {
    line-height: 1.45;
}

.dashboard-widget-amount {
    margin: 0;
    font-weight: 800;
}

.dashboard-widget-btn {
    color: var(--bt-accent);
    border: 1px solid rgba(var(--bt-accent-rgb), .36);
    background: transparent;
    box-shadow: none;
}

.dashboard-widget-btn::after {
    display: none;
}

.dashboard-widget-btn:hover {
    color: var(--bt-on-accent);
    background: var(--bt-accent-grad);
    border-color: transparent;
}

.dashboard-table-wrapper {
    overflow: hidden;
    border: 1px solid var(--bt-line);
    border-radius: 18px;
    background: var(--bt-card);
    box-shadow: 0 22px 60px -44px rgba(0, 0, 0, .7);
}

.dashboard .table thead tr th {
    background: var(--bt-bg-2);
    color: var(--bt-muted);
    border-bottom: 1px solid var(--bt-line);
    font-size: 13px;
    text-transform: uppercase;
}

.dashboard .table tbody {
    background: var(--bt-card);
}

.dashboard .table tbody tr td {
    background: var(--bt-card);
    color: var(--bt-text);
    border-bottom: 1px solid var(--bt-line);
}

.dashboard .table tbody tr td::before {
    color: var(--bt-muted);
}

@media (max-width: 1199px) {
    .dashboard .sidebar-menu {
        width: min(340px, calc(100vw - 32px));
        padding: 24px 18px;
        box-shadow: 24px 0 70px -28px rgba(0, 0, 0, .75);
    }

    .dashboard .sidebar-logo {
        padding-right: 52px;
    }

    .dashboard .sidebar-menu__close {
        top: 18px;
        right: 18px;
        width: 38px;
        height: 38px;
        display: grid !important;
        place-items: center;
        border: 1px solid var(--bt-line);
        border-radius: 12px;
        background: var(--bt-card);
        box-shadow: 0 12px 34px -24px rgba(0, 0, 0, .55);
        line-height: 1;
    }

    .dashboard .sidebar-menu .lang-box-btn,
    .dashboard .sidebar-menu .user-info {
        width: 100%;
    }

    .dashboard .sidebar-menu .user-info-wrapper {
        padding: 10px;
    }

    .dashboard .sidebar-menu .user-info-thumb {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .dashboard .sidebar-menu .user-info-thumb i {
        font-size: 38px;
    }

    .dashboard-header-left {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .dashboard {
        --area-p: 16px;
    }

    .dashboard .sidebar-menu {
        width: min(326px, calc(100vw - 26px));
        padding: 24px 16px;
    }

    .dashboard-header {
        top: 8px;
        margin-top: 10px;
        border-radius: 14px;
    }

    .dashboard-header-title {
        font-size: 20px;
    }

    .dashboard-widget {
        min-height: 142px;
    }
}

html[data-bt-theme="light"] .dashboard .user-info-wrapper {
    background: rgba(var(--bt-accent-rgb), .04);
}

html[data-bt-theme="light"] .dashboard .sidebar-menu {
    box-shadow: 18px 0 60px -48px rgba(20, 33, 56, .35);
}
