/* ═══════════════════════════════════════════════
   SIGNALS DESK  —  Minimal Black Theme
   Pure black · Inter · Green accent #22c55e
═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ══ OVERRIDE main.css light theme — must come first ══ */
html, body {
    background: #000 !important;
    color: #fff !important;
    font-family: 'Nunito', system-ui, sans-serif !important;
}
h1, h2, h3, h4, h5, h6 {
    color: #fff !important;
    font-family: 'Nunito', system-ui, sans-serif !important;
    font-weight: 700;
    margin: 0;
}
p { margin: 0; padding: 0; color: rgba(255,255,255,.55); }
a, a:hover, a:focus, a:visited { color: inherit; text-decoration: none; }
span, sub, sup { display: inline; }
section, div, article, aside, main, header, footer, nav { background: transparent; }
/* Fix Bootstrap container inside header — let our nav control width */
.sd-header .container {
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}
/* Kill swap template body classes that apply light bg */
body.swap { background: #000 !important; }

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Nunito', system-ui, sans-serif;
    background: #000 !important;
    color: #fff !important;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* overflow-x removed — clips position:fixed right panel */
}
html { overflow-x: hidden; } /* clip overflow on html, doesn't affect fixed children */
body.lightmode { background: #000 !important; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

/* ── Design Tokens ── */
:root {
    --bg:      #000;
    --bg-1:    #0a0a0a;
    --bg-2:    #111;
    --border:  rgba(255,255,255,.08);
    --border-2:rgba(255,255,255,.12);
    --text:    #fff;
    --text-2:  rgba(255,255,255,.55);
    --text-3:  rgba(255,255,255,.32);
    --green:   #22c55e;
    --green-d: #16a34a;
    --green-bg:rgba(34,197,94,.08);
    --green-bd:rgba(34,197,94,.18);
    --red:     #ef4444;
    --pad:     clamp(20px, 5.5vw, 96px);
    --nav-h:   68px;
    --ease:    cubic-bezier(.165,.84,.44,1);
    --radius:  12px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }

/* ══════════════════════════════════════════════
   NAV
══════════════════════════════════════════════ */
.sd-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
    height: var(--nav-h);
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background .3s;
}
.sd-header.scrolled { background: rgba(0,0,0,.97); }

.sd-nav {
    display: flex; align-items: center; height: var(--nav-h);
    padding: 0 var(--pad); gap: 24px;
    max-width: 1320px; margin: 0 auto;
}
.sd-logo img { height: 54px; width: auto; }
.sd-menu {
    display: flex; list-style: none;
    margin: 0 auto; padding: 0; gap: 2px;
}
.sd-menu li a {
    color: var(--text-2); font-size: 13px; font-weight: 500;
    padding: 6px 14px; border-radius: 8px;
    text-decoration: none; transition: color .2s, background .2s;
    white-space: nowrap; letter-spacing: -.1px;
}
.sd-menu li a:hover, .sd-menu li a.active {
    color: var(--text);
    background: rgba(255,255,255,.06);
}
.sd-auth-btns { display: flex; gap: 8px; flex-shrink: 0; }
.sd-burger {
    display: none; flex-direction: column; gap: 5px;
    padding: 6px; margin-left: auto;
}
.sd-burger span {
    display: block; width: 20px; height: 1.5px;
    background: var(--text); border-radius: 2px; transition: all .3s;
}

/* ══════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════ */
.sd-ticker-bar {
    height: 44px; overflow: hidden;
    background: #000;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════════════════════
   HERO
══════════════════════════════════════════════ */
.sd-hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    background: #000;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Subtle radial glow — barely there */
.sd-hero::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,.07) 0%, transparent 70%);
    top: -100px; right: 10%;
    pointer-events: none; z-index: 0;
    animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    from { transform: scale(1) translate(0,0); }
    to   { transform: scale(1.2) translate(-40px, 40px); }
}

.sd-hero-inner {
    position: relative; z-index: 1;
    max-width: 1320px; margin: 0 auto; width: 100%;
    padding: 100px var(--pad) 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Left */
.sd-hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--green-bd);
    background: var(--green-bg);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--green);
    margin-bottom: 28px;
}
.sd-hero-tag-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); flex-shrink: 0;
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(.75); }
}

.sd-hero-h1 {
    font-size: clamp(42px, 6vw, 86px);
    font-weight: 900;
    letter-spacing: -3.5px;
    line-height: .95;
    color: #fff;
    margin-bottom: 24px;
}
.sd-hero-h1-em { color: var(--green); font-style: italic; }

.sd-hero-sub {
    font-size: clamp(15px, 1.5vw, 17px);
    color: var(--text-2);
    line-height: 1.75;
    max-width: 440px;
    margin-bottom: 40px;
    letter-spacing: -.1px;
}

.sd-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.sd-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green); color: #000;
    font-size: 14px; font-weight: 700;
    padding: 13px 28px; border-radius: 10px;
    transition: background .2s, transform .15s;
    white-space: nowrap; letter-spacing: -.1px;
    text-decoration: none;
}
.sd-btn-primary:hover { background: var(--green-d); color: #000; transform: translateY(-2px); }

.sd-btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent;
    border: 1px solid var(--border-2);
    color: var(--text-2);
    font-size: 14px; font-weight: 600;
    padding: 12px 24px; border-radius: 10px;
    transition: border-color .2s, color .2s;
    white-space: nowrap;
    text-decoration: none;
}
.sd-btn-secondary:hover { border-color: rgba(255,255,255,.28); color: var(--text); }

.sd-hero-trust {
    display: flex; align-items: center; gap: 12px;
    font-size: 12px; color: var(--text-3); letter-spacing: .2px;
}
.sd-hero-trust-line { flex: 1; height: 1px; background: var(--border); }

/* Right — image */
.sd-hero-visual {
    position: relative;
}
.sd-hero-img-wrap {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-2);
    box-shadow: 0 40px 100px rgba(0,0,0,.6);
    background: #0a0a0a;
    position: relative;
}
.sd-hero-img-wrap img {
    width: 100%; height: auto;
    display: block;
}
/* Subtle green bottom border glow */
.sd-hero-img-wrap::after {
    content: '';
    position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34,197,94,.5), transparent);
}

/* Floating stats on the image */
.sd-hero-badge {
    position: absolute;
    background: rgba(0,0,0,.88);
    border: 1px solid var(--border-2);
    border-radius: 12px;
    padding: 10px 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.sd-hero-badge--a { top: -14px; right: -14px; }
.sd-hero-badge--b { bottom: 24px; left: -14px; }
.sd-hero-badge__val {
    font-size: 1.1rem; font-weight: 800; color: var(--green);
    letter-spacing: -.5px; line-height: 1;
}
.sd-hero-badge__lbl {
    font-size: 10px; font-weight: 500; color: var(--text-3);
    margin-top: 3px; white-space: nowrap; letter-spacing: .3px;
}
.sd-hero-live {
    position: absolute; top: 14px; left: 14px;
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,.75);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 10px; font-weight: 700;
    color: var(--green); letter-spacing: 1px; text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.sd-hero-live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    animation: pulse 1.5s ease infinite;
}

/* ══════════════════════════════════════════════
   STATS BAND
══════════════════════════════════════════════ */
.sd-stats-band {
    border-bottom: 1px solid var(--border);
    padding: 64px var(--pad);
    background: #000;
}
.sd-stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 960px; margin: 0 auto;
    text-align: center;
}
.sd-stat-item {
    padding: 0 24px;
    border-right: 1px solid var(--border);
}
.sd-stat-item:last-child { border-right: none; }
.sd-counter-val {
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 900; letter-spacing: -2.5px; line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.sd-counter-label {
    font-size: 11px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-3);
    margin-top: 8px;
}

/* ══════════════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════════════ */
.sd-section {
    padding: 100px var(--pad);
    border-bottom: 1px solid var(--border);
}
.sd-section--dim { background: var(--bg-1); }

.sd-sec-label {
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--green); margin-bottom: 14px;
    display: block;
}
.sd-sec-h2 {
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 900; letter-spacing: -2px; line-height: 1.06;
    color: var(--text); margin-bottom: 16px;
}
.sd-sec-sub {
    font-size: clamp(14px, 1.4vw, 16px);
    color: var(--text-2); line-height: 1.75;
    max-width: 520px;
}
.sd-sec-header { margin-bottom: 56px; }
.sd-sec-header--center { text-align: center; }
.sd-sec-header--center .sd-sec-sub { margin: 0 auto; }

/* ══════════════════════════════════════════════
   SERVICES GRID
══════════════════════════════════════════════ */
.sd-svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.sd-svc-item {
    padding: 32px 28px;
    background: var(--bg-1);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background .25s;
}
.sd-svc-item:hover { background: var(--bg-2); }
.sd-svc-item:nth-child(3n) { border-right: none; }
.sd-svc-item:nth-last-child(-n+3) { border-bottom: none; }
.sd-svc-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--green-bg); border: 1px solid var(--green-bd);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--green);
    margin-bottom: 18px; transition: all .25s;
}
.sd-svc-item:hover .sd-svc-icon {
    background: var(--green); color: #000;
    border-color: var(--green);
    box-shadow: 0 0 24px rgba(34,197,94,.3);
}
.sd-svc-title {
    font-size: 15px; font-weight: 700;
    letter-spacing: -.3px; margin-bottom: 8px;
}
.sd-svc-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

/* ══════════════════════════════════════════════
   COPY TRADING SPLIT
══════════════════════════════════════════════ */
.sd-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}
.sd-steps { list-style: none; margin-top: 36px; }
.sd-step {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.sd-step:last-child { border-bottom: none; }
.sd-step-num {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    background: var(--green-bg); border: 1px solid var(--green-bd);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: var(--green);
}
.sd-step-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.2px; }
.sd-step-desc  { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* Traders visual panel */
.sd-traders-panel {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.sd-traders-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-3);
    display: flex; align-items: center; gap: 8px;
}
.sd-traders-head-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    animation: pulse 1.6s ease infinite;
}
.sd-trader-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: background .2s;
}
.sd-trader-row:last-child { border-bottom: none; }
.sd-trader-row:hover { background: rgba(255,255,255,.03); }
.sd-trader-info { display: flex; align-items: center; gap: 12px; }
.sd-trader-av {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--green), var(--green-d));
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800; color: #000;
}
.sd-trader-name { font-size: 13.5px; font-weight: 700; letter-spacing: -.1px; }
.sd-trader-fol  { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.sd-trader-ret  { font-size: 14px; font-weight: 800; color: var(--green); letter-spacing: -.3px; }

/* ══════════════════════════════════════════════
   EDUCATION
══════════════════════════════════════════════ */
.sd-edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.sd-edu-item {
    background: var(--bg-1);
    padding: 28px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background .25s;
    display: flex; flex-direction: column;
}
.sd-edu-item:hover { background: var(--bg-2); }
.sd-edu-item:nth-child(3n) { border-right: none; }
.sd-edu-item:nth-last-child(-n+3) { border-bottom: none; }
.sd-edu-badge {
    display: inline-block; font-size: 9px; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 3px 9px; border-radius: 999px;
    margin-bottom: 14px; align-self: flex-start;
}
.sd-edu-badge--free { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-bd); }
.sd-edu-badge--pro  { background: rgba(239,68,68,.08); color: var(--red); border: 1px solid rgba(239,68,68,.18); }
.sd-edu-title { font-size: 14.5px; font-weight: 700; letter-spacing: -.2px; margin-bottom: 8px; }
.sd-edu-desc  { font-size: 13px; color: var(--text-2); line-height: 1.65; flex: 1; }
.sd-edu-link  {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; color: var(--green);
    margin-top: 16px; transition: gap .2s;
}
.sd-edu-link:hover { gap: 8px; }

/* ══════════════════════════════════════════════
   PACKAGES
══════════════════════════════════════════════ */
.sd-pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.sd-pkg-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: border-color .25s, transform .25s;
    position: relative; overflow: hidden;
}
.sd-pkg-card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.sd-pkg-card--featured {
    border-color: rgba(34,197,94,.3);
    background: linear-gradient(160deg, rgba(34,197,94,.04), var(--bg-1));
}
.sd-pkg-card--featured::before {
    content: 'Popular';
    position: absolute; top: 18px; right: -26px;
    background: var(--green); color: #000;
    font-size: 9px; font-weight: 800; padding: 4px 32px;
    transform: rotate(45deg); letter-spacing: 1px;
}
.sd-pkg-name  { font-size: 13px; font-weight: 700; letter-spacing: -.1px; color: var(--text-2); margin-bottom: 16px; }
.sd-pkg-price {
    font-size: clamp(36px, 4vw, 52px); font-weight: 900;
    color: var(--text); line-height: 1; letter-spacing: -2px;
    margin-bottom: 6px;
}
.sd-pkg-price sup { font-size: 1.4rem; vertical-align: top; margin-top: 8px; display: inline-block; font-weight: 700; }
.sd-pkg-period { font-size: 11px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 28px; }
.sd-pkg-features { list-style: none; margin: 0 0 28px; }
.sd-pkg-features li {
    padding: 9px 0; border-bottom: 1px solid var(--border);
    font-size: 13.5px; color: var(--text-2);
    display: flex; gap: 10px; align-items: center;
}
.sd-pkg-features li:last-child { border-bottom: none; }
.sd-pkg-features li::before { content: '✓'; color: var(--green); font-weight: 800; font-size: .85rem; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════ */
.sd-testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.sd-testi-item {
    background: var(--bg-1);
    padding: 28px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background .2s;
}
.sd-testi-item:hover { background: var(--bg-2); }
.sd-testi-item:nth-child(3n) { border-right: none; }
.sd-testi-item:nth-last-child(-n+3) { border-bottom: none; }
.sd-testi-stars { color: #f59e0b; font-size: 13px; margin-bottom: 14px; letter-spacing: 2px; }
.sd-testi-text  { font-size: 13.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 20px; }
.sd-testi-author { display: flex; align-items: center; gap: 10px; }
.sd-testi-av {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--green), var(--green-d));
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: #000;
}
.sd-testi-name { font-size: 13px; font-weight: 700; letter-spacing: -.1px; }
.sd-testi-role { font-size: 11px; color: var(--text-3); }

/* ══════════════════════════════════════════════
   CTA
══════════════════════════════════════════════ */
.sd-cta {
    padding: 100px var(--pad);
    text-align: center;
    background: #000;
    border-bottom: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.sd-cta::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,.06) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    pointer-events: none;
}
.sd-cta > * { position: relative; z-index: 1; }
.sd-cta-h2 {
    font-size: clamp(28px, 4vw, 56px); font-weight: 900;
    letter-spacing: -2.5px; line-height: 1.02;
    margin-bottom: 16px;
}
.sd-cta-sub { font-size: 16px; color: var(--text-2); margin-bottom: 36px; }
.sd-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.sd-footer {
    background: #000;
    border-top: 1px solid var(--border);
    padding: 64px var(--pad) 32px;
}
.sd-footer-inner {
    max-width: 1320px; margin: 0 auto;
}
.sd-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
}
.sd-footer-brand p { font-size: 13.5px; color: var(--text-2); line-height: 1.75; margin: 14px 0 20px; }
.sd-footer-logo { height: 38px; width: auto; }
.sd-social { display: flex; gap: 8px; }
.sd-social a {
    width: 34px; height: 34px; border-radius: 8px;
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-3); font-size: 14px; transition: all .2s;
}
.sd-social a:hover { border-color: var(--green); color: var(--green); }
.sd-footer-col h5 {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-3); margin-bottom: 18px;
}
.sd-footer-links { list-style: none; }
.sd-footer-links li { margin-bottom: 10px; }
.sd-footer-links a { font-size: 13.5px; color: var(--text-3); transition: color .2s; }
.sd-footer-links a:hover { color: var(--text); }
.sd-footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.sd-footer-copy { font-size: 12px; color: var(--text-3); }
.sd-footer-legal { display: flex; gap: 20px; }
.sd-footer-legal a { font-size: 12px; color: var(--text-3); transition: color .2s; }
.sd-footer-legal a:hover { color: var(--text); }

/* ══════════════════════════════════════════════
   SHARED INNER CONTAINER
══════════════════════════════════════════════ */
.sd-inner {
    max-width: 1320px; margin: 0 auto;
    padding: 0 var(--pad);
}

/* ══════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════ */
.sd-page-hero {
    background: #000;
    border-bottom: 1px solid var(--border);
    padding: 72px var(--pad) 64px;
    position: relative; overflow: hidden;
}
.sd-page-hero::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,.07) 0%, transparent 70%);
    top: -100px; right: 5%;
    pointer-events: none;
}
.sd-page-hero-inner {
    max-width: 1320px; margin: 0 auto;
    padding: 0 var(--pad);
    position: relative; z-index: 1;
}
.sd-page-h1 {
    font-size: clamp(36px,5vw,72px);
    font-weight: 900; letter-spacing: -3px;
    line-height: 1; color: #fff;
    margin-bottom: 16px;
}
.sd-page-sub {
    font-size: clamp(14px,1.4vw,16px);
    color: var(--text-2); max-width: 540px;
}

/* Breadcrumb */
.sd-breadcrumb { padding: 14px var(--pad); background: #000; border-bottom: 1px solid var(--border); }
.sd-breadcrumb-inner { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.sd-breadcrumb a { font-size: 12.5px; color: var(--green); }
.sd-breadcrumb-sep { color: var(--text-3); font-size: 12px; }
.sd-breadcrumb-cur { font-size: 12.5px; color: var(--text-2); }

/* ══════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════ */
.sd-contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: start;
}
.sd-contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.sd-contact-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 20px;
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.sd-contact-item-icon {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: var(--green-bg); border: 1px solid var(--green-bd);
    display: flex; align-items: center; justify-content: center;
    color: var(--green); font-size: 16px;
}
.sd-contact-item-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); margin-bottom: 4px; }
.sd-contact-item-val { font-size: 14px; font-weight: 600; color: var(--text); }
.sd-contact-hours {
    background: var(--green-bg); border: 1px solid var(--green-bd);
    border-radius: var(--radius); padding: 18px 20px;
}
.sd-contact-hours-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin-bottom: 4px; }
.sd-contact-hours-val { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }

/* Form components */
.sd-form { display: flex; flex-direction: column; gap: 18px; }
.sd-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sd-form-group { display: flex; flex-direction: column; gap: 7px; }
.sd-form-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: .2px; }
.sd-form-control {
    background: var(--bg-1) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    color: var(--text) !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
    font-family: 'Inter', sans-serif !important;
    transition: border-color .2s !important;
    width: 100%;
}
.sd-form-control:focus {
    outline: none !important;
    border-color: var(--green) !important;
    background: var(--bg-1) !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,.08) !important;
}
.sd-form-control::placeholder { color: var(--text-3) !important; }
.sd-contact-form-wrap {
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px;
}

/* ══════════════════════════════════════════════
   BLOGS
══════════════════════════════════════════════ */
.sd-blog-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    margin-bottom: 48px;
}
.sd-blog-card {
    display: flex; flex-direction: column;
    background: var(--bg-1);
    border-right: 1px solid var(--border);
    text-decoration: none; color: inherit;
    transition: background .2s;
}
.sd-blog-card:hover { background: var(--bg-2); }
.sd-blog-card:nth-child(3n) { border-right: none; }
.sd-blog-thumb { overflow: hidden; aspect-ratio: 16/9; }
.sd-blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); display: block; }
.sd-blog-card:hover .sd-blog-thumb img { transform: scale(1.04); }
.sd-blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.sd-blog-date { font-size: 11.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.sd-blog-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.3px; line-height: 1.4; margin-bottom: 10px; color: var(--text); flex: 1; }
.sd-blog-excerpt { font-size: 13px; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; }
.sd-blog-read { font-size: 12.5px; font-weight: 600; color: var(--green); }
.sd-pagination { display: flex; justify-content: center; }
.sd-empty { text-align: center; padding: 80px 0; }

/* ══════════════════════════════════════════════
   BLOG DETAIL
══════════════════════════════════════════════ */
.sd-article-layout {
    display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: start;
}
.sd-article-thumb { border-radius: 16px; overflow: hidden; margin-bottom: 32px; border: 1px solid var(--border); }
.sd-article-thumb img { width: 100%; height: auto; display: block; }
.sd-article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.sd-article-date { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.sd-article-tag {
    font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 3px 10px; border-radius: 999px;
    background: var(--green-bg); border: 1px solid var(--green-bd); color: var(--green);
}
.sd-article-title { font-size: clamp(22px,3vw,40px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 28px; color: var(--text); }
.sd-article-body { font-size: 15px; line-height: 1.85; color: var(--text-2); }
.sd-article-body h1,.sd-article-body h2,.sd-article-body h3,.sd-article-body h4 { color: var(--text) !important; margin: 28px 0 12px; font-family: 'Inter',sans-serif !important; }
.sd-article-body p { margin-bottom: 16px; }
.sd-article-body a { color: var(--green); }
.sd-article-body img { border-radius: 12px; margin: 20px 0; border: 1px solid var(--border); }
.sd-article-share { display: flex; align-items: center; gap: 10px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.sd-share-btn {
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--bg-1); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--text-2); transition: all .2s;
}
.sd-share-btn:hover { border-color: var(--green); color: var(--green); }
.sd-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.sd-sidebar-widget { background: var(--bg-1); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.sd-sidebar-title { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); }
.sd-sidebar-post { display: flex; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background .2s; }
.sd-sidebar-post:last-child { border-bottom: none; }
.sd-sidebar-post:hover { background: rgba(255,255,255,.03); }
.sd-sidebar-post-thumb { width: 60px; height: 46px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.sd-sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sd-sidebar-post-title { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.45; }
.sd-sidebar-post-date { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.sd-sidebar-widget > .sd-btn-primary { margin: 0; border-radius: 0; padding: 16px 20px; border-top: 1px solid var(--border); }

/* ══════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════ */
.sd-about-img-wrap { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.sd-about-img-wrap img { width: 100%; height: auto; }
.sd-about-placeholder {
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: 20px; padding: 48px;
}
.sd-about-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sd-about-stat { text-align: center; padding: 28px; background: #000; border: 1px solid var(--border); border-radius: 14px; }
.sd-about-stat-val { font-size: 2.4rem; font-weight: 900; letter-spacing: -1.5px; color: var(--green); }
.sd-about-stat-lbl { font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }
.sd-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sd-why-item { background: var(--bg-1); padding: 28px 24px; border-right: 1px solid var(--border); transition: background .2s; }
.sd-why-item:last-child { border-right: none; }
.sd-why-item:hover { background: var(--bg-2); }
.sd-why-icon { font-size: 22px; color: var(--green); margin-bottom: 14px; }
.sd-why-title { font-size: 14px; font-weight: 700; letter-spacing: -.2px; margin-bottom: 8px; }
.sd-why-text { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ══════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════ */
.sd-faq-list { max-width: 800px; margin: 0 auto; }
.sd-faq-item { border-bottom: 1px solid var(--border); }
.sd-faq-item:first-child { border-top: 1px solid var(--border); }
.sd-faq-q {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    gap: 16px; padding: 22px 0; text-align: left;
    font-size: 15px; font-weight: 600; color: var(--text);
    background: none; border: none; cursor: pointer;
    transition: color .2s;
}
.sd-faq-q:hover { color: var(--green); }
.sd-faq-icon { color: var(--text-3); flex-shrink: 0; transition: transform .25s; }
.sd-faq-icon.rotate { transform: rotate(180deg); }
.sd-faq-a { padding: 0 0 20px; }
.sd-faq-a p { font-size: 14px; color: var(--text-2); line-height: 1.75; }

/* ══════════════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════════════ */
.sd-feature-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.sd-feature-item {
    background: var(--bg-1); padding: 28px 24px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background .2s;
}
.sd-feature-item:hover { background: var(--bg-2); }
.sd-feature-item:nth-child(4n) { border-right: none; }
.sd-feature-item:nth-last-child(-n+4) { border-bottom: none; }
.sd-feature-num { font-size: 11px; font-weight: 800; color: var(--green); letter-spacing: 1px; margin-bottom: 10px; }
.sd-feature-text { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.5; }

/* ══════════════════════════════════════════════
   SUBSCRIBE BAND
══════════════════════════════════════════════ */
.sd-subscribe-band {
    background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 72px var(--pad);
}
.sd-subscribe-inner {
    max-width: 1320px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.sd-subscribe-form { display: flex; gap: 10px; }
.sd-subscribe-input {
    flex: 1; background: #000 !important; border: 1px solid var(--border) !important;
    border-radius: 10px; color: var(--text) !important;
    font-size: 14px; padding: 13px 18px; font-family: 'Inter',sans-serif;
}
.sd-subscribe-input:focus { outline: none; border-color: var(--green) !important; }
.sd-subscribe-input::placeholder { color: var(--text-3) !important; }

/* ══════════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════════ */
.sd-auth-page {
    min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
    background: #000;
}
.sd-auth-brand {
    background: var(--bg-1); border-right: 1px solid var(--border);
    padding: 60px 56px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.sd-auth-brand-quote {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    max-width: 400px;
}
.sd-auth-brand-quote blockquote {
    font-size: 18px; font-weight: 500; color: var(--text);
    line-height: 1.7; letter-spacing: -.2px;
    border-left: 3px solid var(--green); padding-left: 20px;
    margin-bottom: 16px;
    font-style: italic;
}
.sd-auth-brand-quote cite { font-size: 13px; color: var(--text-3); font-style: normal; }
.sd-auth-brand-stats { display: flex; gap: 32px; }
.sd-auth-brand-stats div { display: flex; flex-direction: column; gap: 2px; }
.sd-auth-brand-stats strong { font-size: 20px; font-weight: 900; color: var(--green); letter-spacing: -1px; }
.sd-auth-brand-stats span { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .5px; }
.sd-auth-form-col {
    display: flex; align-items: center; justify-content: center;
    padding: 48px 56px;
}
.sd-auth-box { width: 100%; max-width: 440px; }
.sd-auth-box-header { margin-bottom: 32px; }
.sd-auth-h1 { font-size: 28px; font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.sd-auth-sub { font-size: 14px; color: var(--text-2); }
.sd-auth-switch { margin-top: 24px; font-size: 13.5px; color: var(--text-3); text-align: center; }
.sd-auth-switch a { color: var(--green); font-weight: 600; }

/* ══════════════════════════════════════════════
   FEATURE-ABOUT SPLIT LIST
══════════════════════════════════════════════ */
.sd-split-visual { width: 100%; }
.sd-split-content { display: flex; flex-direction: column; justify-content: center; }
.sd-feature-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.sd-feature-list-item { display: flex; align-items: flex-start; gap: 14px; }
.sd-feature-list-icon {
    width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
    background: var(--green-bg); border: 1px solid var(--green-bd);
    display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════
   PROSE (policy/cookie pages)
══════════════════════════════════════════════ */
.sd-prose { color: var(--text-2); font-size: 15px; line-height: 1.85; }
.sd-prose h1,.sd-prose h2,.sd-prose h3,.sd-prose h4 { color: var(--text) !important; margin: 32px 0 12px; font-family: 'Inter',sans-serif !important; font-weight: 700; }
.sd-prose p { margin-bottom: 16px; }
.sd-prose a { color: var(--green); }
.sd-prose ul,.sd-prose ol { padding-left: 20px; margin-bottom: 16px; }
.sd-prose li { margin-bottom: 8px; }
.sd-prose strong { color: var(--text); }
.sd-page-hero-title {
    font-size: clamp(36px,5vw,72px); font-weight: 900;
    letter-spacing: -3px; line-height: 1; color: #fff; margin: 0;
}

/* Blog section link */
.sd-blog-link { font-size: 12.5px; font-weight: 600; color: var(--green); margin-top: auto; }

/* ══════════════════════════════════════════════
   LEGACY COMPAT (non-home pages, auth, etc.)
══════════════════════════════════════════════ */
.sd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s; white-space: nowrap; cursor: pointer; border: none; letter-spacing: -.1px; }
.sd-btn--primary { background: var(--green); color: #000 !important; }
.sd-btn--primary:hover { background: var(--green-d); color: #000 !important; transform: translateY(-2px); }
.sd-btn--ghost { background: rgba(255,255,255,.06); border: 1px solid var(--border-2); color: var(--text-2) !important; }
.sd-btn--ghost:hover { background: rgba(255,255,255,.1); color: var(--text) !important; }
.sd-btn--outline { background: transparent; border: 1px solid var(--border-2); color: var(--text-2) !important; }
.sd-btn--outline:hover { border-color: rgba(255,255,255,.28); color: var(--text) !important; }
.sd-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green); margin-bottom: 14px; }
.sd-label-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s ease infinite; }
.sd-section-title { font-size: clamp(26px,3.5vw,50px); font-weight: 900; letter-spacing: -2px; line-height: 1.06; color: var(--text); margin-bottom: 14px; }
.sd-section-sub { font-size: 15px; color: var(--text-2); max-width: 500px; margin: 0 auto 48px; line-height: 1.7; }

.sd-breadcrumb { padding: 18px var(--pad); background: #000; border-bottom: 1px solid var(--border); }
.sd-breadcrumb a { color: var(--green); font-size: 13px; }
.sd-breadcrumb span { color: var(--text-3); font-size: 13px; }
.registration-section { background: #000; }
.registration-wrapper.section--bg { background: var(--bg-1) !important; border: 1px solid var(--border); border-radius: 16px; }
.form--control { background: rgba(255,255,255,.04) !important; border-color: var(--border) !important; color: var(--text) !important; }
.form--control:focus { border-color: var(--green) !important; }
.btn--base { background: var(--green) !important; color: #000 !important; font-weight: 700 !important; }
.btn--base:hover { background: var(--green-d) !important; }

/* Framework overrides */
.main-wrapper { padding-top: var(--nav-h); background: #000 !important; }
.footer { display: none !important; }
.header { display: none !important; }
.preloader { background: #000 !important; }
.preloader__sitename { color: var(--green) !important; }
/* Kill any white section/card backgrounds from main.css */
.section--bg, .card, .card-body { background: var(--bg-1) !important; border-color: var(--border) !important; color: var(--text) !important; }
.card-header { background: var(--bg-2) !important; border-color: var(--border) !important; color: var(--text) !important; }
/* Package section container fix */
.sd-section .container { max-width: 1320px; padding: 0 var(--pad); }
/* Scrollbar icon fix */
.scrollToTop { background: var(--green) !important; color: #000 !important; }
/* Cookie banner */
.cookies-card { background: var(--bg-2) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
/* Overlay */
.overlay { background: rgba(0,0,0,.7) !important; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .sd-menu {
        display: none; position: fixed;
        top: var(--nav-h); left: 0; right: 0;
        background: rgba(0,0,0,.98); flex-direction: column;
        padding: 20px var(--pad); gap: 2px;
        border-bottom: 1px solid var(--border);
        max-height: 80vh; overflow-y: auto; z-index: 999;
    }
    .sd-menu.open { display: flex; }
    .sd-auth-btns { display: none; }
    .sd-burger { display: flex; }
}
@media (max-width: 960px) {
    .sd-hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .sd-hero-h1 { letter-spacing: -2.5px; }
    .sd-hero-badge--a, .sd-hero-badge--b { display: none; }
    .sd-split { grid-template-columns: 1fr; gap: 48px; }
    .sd-svc-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-svc-item:nth-child(3n) { border-right: 1px solid var(--border); }
    .sd-svc-item:nth-child(2n) { border-right: none; }
    .sd-edu-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-edu-item:nth-child(3n) { border-right: 1px solid var(--border); }
    .sd-edu-item:nth-child(2n) { border-right: none; }
    .sd-testi-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-testi-item:nth-child(3n) { border-right: 1px solid var(--border); }
    .sd-testi-item:nth-child(2n) { border-right: none; }
    .sd-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .sd-stat-item:nth-child(2) { border-right: none; }
    .sd-stat-item:nth-child(3) { border-top: 1px solid var(--border); }
    .sd-stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
    .sd-footer-grid { grid-template-columns: 1fr 1fr; }
    .sd-contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .sd-article-layout { grid-template-columns: 1fr; }
    .sd-sidebar { position: static; }
    .sd-blog-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-blog-card:nth-child(3n) { border-right: 1px solid var(--border); }
    .sd-blog-card:nth-child(2n) { border-right: none; }
    .sd-why-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-why-item:nth-child(4n) { border-right: 1px solid var(--border); }
    .sd-why-item:nth-child(2n) { border-right: none; }
    .sd-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-feature-item:nth-child(4n) { border-right: 1px solid var(--border); }
    .sd-feature-item:nth-child(2n) { border-right: none; }
    .sd-subscribe-inner { grid-template-columns: 1fr; gap: 32px; }
    .sd-auth-page { grid-template-columns: 1fr; }
    .sd-auth-brand { display: none; }
    .sd-auth-form-col { padding: 48px 24px; }
    .sd-about-stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .sd-hero-inner { padding: 80px var(--pad) 60px; }
    .sd-hero-h1 { letter-spacing: -1.5px; }
    .sd-hero-actions { flex-direction: column; align-items: flex-start; }
    .sd-svc-grid { grid-template-columns: 1fr; }
    .sd-svc-item { border-right: none !important; }
    .sd-edu-grid { grid-template-columns: 1fr; }
    .sd-edu-item { border-right: none !important; }
    .sd-testi-grid { grid-template-columns: 1fr; }
    .sd-testi-item { border-right: none !important; }
    .sd-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .sd-footer-grid { grid-template-columns: 1fr; }
    .sd-pkg-grid { grid-template-columns: 1fr; }
    .sd-section { padding: 64px var(--pad); }
    .sd-blog-grid { grid-template-columns: 1fr; }
    .sd-blog-card { border-right: none !important; }
    .sd-why-grid { grid-template-columns: 1fr; }
    .sd-why-item { border-right: none !important; }
    .sd-feature-grid { grid-template-columns: 1fr 1fr; }
    .sd-subscribe-form { flex-direction: column; }
    .sd-contact-form-wrap { padding: 24px; }
    .sd-form-row { grid-template-columns: 1fr; }
    .sd-page-h1 { letter-spacing: -1.5px; }
}

/* ══════════════════════════════════════════════
   AUTH TABS (login / register tab switcher)
══════════════════════════════════════════════ */
.sd-auth-tabs {
    display: flex; gap: 4px;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: 12px; padding: 4px;
    margin-bottom: 28px;
}
.sd-auth-tab {
    flex: 1; padding: 9px 12px;
    background: none; border: none; border-radius: 9px;
    font-size: 13px; font-weight: 600; color: var(--text-3);
    cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.sd-auth-tab.active {
    background: #000; color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.sd-auth-tab:hover:not(.active) { color: var(--text-2); }
.sd-auth-tab-panel { display: none; }
.sd-auth-tab-panel.active { display: block; }

/* Admin login cards */
.sd-admin-login-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: 14px; padding: 20px;
}
.sd-admin-login-icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    background: var(--green-bg); border: 1px solid var(--green-bd);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}

/* ══════════════════════════════════════════════
   AUTH CENTER (forgot/reset/verify pages)
══════════════════════════════════════════════ */
.sd-auth-center {
    min-height: 100vh; background: #000;
    display: flex; align-items: center; justify-content: center;
    padding: 48px var(--pad);
}
.sd-auth-center-box {
    width: 100%; max-width: 440px;
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: 20px; padding: 40px;
}

/* ══════════════════════════════════════════════
   SUBMENU (user dashboard nav)
══════════════════════════════════════════════ */
.sd-menu li { position: relative; }
.sd-submenu {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0;
    min-width: 180px;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 6px 0;
    z-index: 200;
    list-style: none;
}
.sd-menu li:hover > .sd-submenu { display: block; }
.sd-submenu li a {
    display: block; padding: 9px 16px;
    font-size: 13px; color: var(--text-2);
    transition: color .15s, background .15s;
}
.sd-submenu li a:hover { color: var(--text); background: rgba(255,255,255,.04); }

/* ══════════════════════════════════════════════
   DASHBOARD (user area)
══════════════════════════════════════════════ */
.dashboard-section { background: #000 !important; min-height: 70vh; padding: 48px 0; }
.dashboard-widget {
    background: var(--bg-1) !important; border: 1px solid var(--border) !important;
    border-radius: 14px !important; padding: 24px 20px !important;
    position: relative; transition: border-color .2s;
}
.dashboard-widget:hover { border-color: var(--border-2) !important; }
.dashboard-widget.has--link .item--link { position: absolute; inset: 0; z-index: 1; }
.dashboard-widget__icon {
    font-size: 24px; color: var(--green) !important;
    margin-bottom: 12px;
}
.dashboard-widget__content p { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3) !important; margin-bottom: 6px; }
.dashboard-widget__content h4 { font-size: 22px; font-weight: 900; letter-spacing: -1px; color: var(--text) !important; margin: 0; }
/* Tables in dashboard */
.table { color: var(--text) !important; border-color: var(--border) !important; }
.table th { color: var(--text-3) !important; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-color: var(--border) !important; background: var(--bg-1) !important; }
.table td { border-color: var(--border) !important; color: var(--text-2) !important; font-size: 13.5px; vertical-align: middle; }
.table tbody tr:hover td { background: rgba(255,255,255,.02) !important; }
.bg--base { background: var(--green) !important; }
.bg--base th { color: #000 !important; }
.table--responsive--lg { width: 100%; border-collapse: collapse; }
/* Badges */
.badge { font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.text--success { color: var(--green) !important; }
.text--danger  { color: var(--red) !important; }
.text--base    { color: var(--green) !important; }
/* Input group (referral) */
.input-group-text.bg--base { background: var(--green) !important; color: #000 !important; border: none; cursor: pointer; }
/* Form controls in user area */
.form--control, .form-control {
    background: var(--bg-1) !important; border: 1px solid var(--border) !important;
    color: var(--text) !important; border-radius: 8px !important;
    font-size: 14px !important; padding: 10px 14px !important;
}
.form--control:focus, .form-control:focus {
    border-color: var(--green) !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,.08) !important;
    background: var(--bg-1) !important;
}
.form-label { font-size: 12px; font-weight: 600; color: var(--text-2) !important; margin-bottom: 6px; }
.form-select { background: var(--bg-1) !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
/* Pagination */
.pagination .page-link { background: var(--bg-1) !important; border-color: var(--border) !important; color: var(--text-2) !important; }
.pagination .page-link:hover { background: var(--bg-2) !important; color: var(--text) !important; }
.pagination .page-item.active .page-link { background: var(--green) !important; border-color: var(--green) !important; color: #000 !important; }
/* Cards in user area */
.custom--card { background: var(--bg-1) !important; border: 1px solid var(--border) !important; border-radius: 14px !important; }
.custom--card .card-header { background: var(--bg-2) !important; border-color: var(--border) !important; }
/* Alert */
.alert-success { background: var(--green-bg) !important; border-color: var(--green-bd) !important; color: var(--green) !important; }
.alert-danger  { background: rgba(239,68,68,.08) !important; border-color: rgba(239,68,68,.18) !important; color: var(--red) !important; }
/* Verification code boxes */
.verification-code-wrapper { width: 100%; }
.verification-area { background: transparent !important; border: none !important; }
.verification-area h5 { color: var(--text) !important; border-color: var(--border) !important; }
.verification-text { font-size: 13.5px; color: var(--text-2) !important; }
.withdraw--verification-code .form--control,
.verification-code input {
    background: var(--bg-1) !important; border: 1px solid var(--border) !important;
    color: var(--text) !important; border-radius: 10px !important;
    font-size: 20px !important; text-align: center !important;
    font-weight: 900 !important;
}
.verification-code input:focus { border-color: var(--green) !important; }
/* Notices */
.notice .alert { border-radius: 10px; }
/* Section title headings */
h5.mb-4 { color: var(--text) !important; font-size: 16px !important; font-weight: 700 !important; }

@media (max-width: 960px) {
    .sd-auth-center-box { padding: 28px 24px; }
    .sd-submenu { position: static; display: none; background: transparent; border: none; padding: 4px 0 4px 16px; }
    .sd-menu li:hover > .sd-submenu { display: block; }
    .sd-submenu li a { font-size: 13px; padding: 7px 0; color: var(--text-3); }
}

/* ══════════════════════════════════════════════
   USER INNER PAGES — BULK DARK OVERRIDES
   (signals, transactions, referrals, profile,
    password, deposit history, support tickets)
══════════════════════════════════════════════ */
.bg-light { background: #000 !important; }
.bg-white { background: var(--bg-1) !important; }
.pt-100  { padding-top: 56px !important; }
.pb-100  { padding-bottom: 80px !important; }
.pt-50   { padding-top: 32px !important; }
.pb-50   { padding-bottom: 32px !important; }
.pb-60   { padding-bottom: 48px !important; }

/* Transparent form (search bars) */
.transparent-form .form--control,
.transparent-form .form-control { background: var(--bg-1) !important; }

/* Buttons in user pages */
.btn--sm  { padding: 6px 14px !important; font-size: 12px !important; border-radius: 8px !important; }
.btn--base, .btn.btn--base { background: var(--green) !important; color: #000 !important; border: none !important; font-weight: 700 !important; border-radius: 8px !important; }
.btn--base:hover { background: var(--green-d) !important; }
.btn-dark { background: var(--bg-2) !important; color: var(--text) !important; border: 1px solid var(--border) !important; border-radius: 8px !important; }

/* Modals */
.modal-content { background: var(--bg-2) !important; border: 1px solid var(--border) !important; color: var(--text) !important; border-radius: 16px !important; }
.modal-header  { border-color: var(--border) !important; }
.modal-footer  { border-color: var(--border) !important; }
.modal-title   { color: var(--text) !important; font-weight: 700 !important; }
.btn-close     { filter: invert(1) !important; opacity: .5 !important; }

/* Cards used in profile / support */
.custom--card  { background: var(--bg-1) !important; border: 1px solid var(--border) !important; border-radius: 16px !important; overflow: hidden; }
.custom--card .card-header { background: var(--bg-2) !important; border-color: var(--border) !important; padding: 16px 24px !important; }
.custom--card .card-header h5,
.custom--card .card-header h6 { color: var(--text) !important; font-weight: 700 !important; margin: 0 !important; }
.custom--card .card-body { padding: 24px !important; }

/* Profile image upload */
.profile-thumb { border: 2px solid var(--border) !important; border-radius: 50% !important; }

/* Referral table + stat cards */
.referral-stat { background: var(--bg-1) !important; border: 1px solid var(--border) !important; border-radius: 12px !important; }

/* Input groups throughout user area */
.input-group-text { background: var(--bg-2) !important; border-color: var(--border) !important; color: var(--text-2) !important; }
.input-group-text.bg--base { background: var(--green) !important; color: #000 !important; border-color: var(--green) !important; cursor: pointer; }

/* Support ticket message bubble */
.ticket-reply-box { background: var(--bg-1) !important; border: 1px solid var(--border) !important; border-radius: 12px !important; padding: 20px !important; }
.admin-reply   { background: var(--bg-2) !important; border-left: 3px solid var(--green) !important; border-radius: 10px !important; padding: 16px !important; margin-bottom: 12px !important; }
.user-reply    { background: var(--bg-1) !important; border: 1px solid var(--border) !important; border-radius: 10px !important; padding: 16px !important; margin-bottom: 12px !important; }
.admin-reply p, .user-reply p { color: var(--text-2) !important; font-size: 14px !important; line-height: 1.7 !important; }
.reply-name    { font-weight: 700 !important; color: var(--text) !important; font-size: 13px !important; }
.reply-date    { font-size: 11px !important; color: var(--text-3) !important; }

/* Deposit page */
.gateway-wrapper { background: var(--bg-1) !important; border: 1px solid var(--border) !important; border-radius: 14px !important; padding: 20px !important; cursor: pointer; transition: border-color .2s; }
.gateway-wrapper:hover { border-color: var(--green) !important; }
.gateway-wrapper img { max-height: 48px !important; filter: brightness(1.2); }

/* Status badges */
.badge.badge--success, .badge-success { background: var(--green-bg) !important; color: var(--green) !important; border: 1px solid var(--green-bd) !important; border-radius: 999px !important; font-size: 10px !important; font-weight: 700 !important; padding: 3px 10px !important; }
.badge.badge--warning, .badge-warning { background: rgba(234,179,8,.08) !important; color: #ca8a04 !important; border: 1px solid rgba(234,179,8,.2) !important; border-radius: 999px !important; font-size: 10px !important; font-weight: 700 !important; padding: 3px 10px !important; }
.badge.badge--danger,  .badge-danger  { background: rgba(239,68,68,.08) !important; color: var(--red) !important; border: 1px solid rgba(239,68,68,.18) !important; border-radius: 999px !important; font-size: 10px !important; font-weight: 700 !important; padding: 3px 10px !important; }
.badge.badge--info,    .badge-info    { background: rgba(59,130,246,.08) !important; color: #3b82f6 !important; border: 1px solid rgba(59,130,246,.18) !important; border-radius: 999px !important; font-size: 10px !important; font-weight: 700 !important; padding: 3px 10px !important; }

/* Select2 / chosen dropdowns if used */
.select2-container--default .select2-selection--single {
    background: var(--bg-1) !important; border-color: var(--border) !important;
    color: var(--text) !important; height: 42px !important; line-height: 42px !important;
    border-radius: 8px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text) !important; line-height: 42px !important; padding-left: 14px !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px !important; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--text-3) transparent transparent transparent !important; }
.select2-dropdown { background: var(--bg-2) !important; border-color: var(--border) !important; border-radius: 8px !important; }
.select2-search--dropdown .select2-search__field { background: var(--bg-1) !important; border-color: var(--border) !important; color: var(--text) !important; border-radius: 6px !important; }
.select2-container--default .select2-results__option { color: var(--text-2) !important; padding: 9px 14px !important; font-size: 13px !important; }
.select2-container--default .select2-results__option--highlighted { background: var(--green) !important; color: #000 !important; }
.select2-container--default .select2-results__option[aria-selected=true] { background: rgba(34,197,94,.08) !important; color: var(--green) !important; }

/* Misc light-theme remnants */
.text-muted  { color: var(--text-3) !important; }
.text-dark   { color: var(--text) !important; }
.text-white  { color: var(--text) !important; }
.text-success, .text-success b { color: var(--green) !important; }
.text-danger  { color: var(--red) !important; }
.border-top  { border-color: var(--border) !important; }
.border-bottom { border-color: var(--border) !important; }
.border-right { border-color: var(--border) !important; }
hr { border-color: var(--border) !important; opacity: 1; }
.fw-bold { color: inherit; }
small, .small { color: var(--text-3) !important; }

/* ══════════════════════════════════════════════
   CARD HEADER BG (crypto, support, payment)
══════════════════════════════════════════════ */
.card-header-bg,
.card-header {
    background: var(--bg-2) !important;
    border-color: var(--border) !important;
    padding: 16px 24px !important;
}
.card-header h5, .card-header h3 { color: var(--text) !important; font-weight: 700 !important; margin: 0 !important; }
.card-body-deposit { background: var(--bg-1) !important; }
.card, .card.custom--card { background: var(--bg-1) !important; border: 1px solid var(--border) !important; }

/* ══════════════════════════════════════════════
   SUPPORT TICKET THREAD BUBBLES
══════════════════════════════════════════════ */
.support-answer-wrapper {
    background: var(--bg-1) !important;
    border-color: var(--border) !important;
    border-radius: 12px !important;
    margin: 12px 0 !important;
}
.support-answer-wrapper-admin {
    background: var(--bg-2) !important;
    border-color: var(--border) !important;
    border-left: 3px solid var(--green) !important;
    border-radius: 12px !important;
}
.support-answer-wrapper h5 { color: var(--text) !important; font-size: 13px !important; font-weight: 700 !important; }
.support-answer-wrapper p  { color: var(--text-2) !important; font-size: 13.5px !important; line-height: 1.7 !important; }
.support-answer-wrapper .lead { color: var(--text-3) !important; font-size: 11px !important; }
.support-answer-wrapper a  { color: var(--green) !important; font-size: 13px !important; }
section.pt-100 { background: #000 !important; }

/* ══════════════════════════════════════════════
   LIST GROUP (modals, referral trees)
══════════════════════════════════════════════ */
.list-group-item, .list-group li {
    background: var(--bg-2) !important;
    border-color: var(--border) !important;
    color: var(--text-2) !important;
    font-size: 13.5px !important;
}
.list-group-item + .list-group-item { border-top: 1px solid var(--border) !important; }
.list-group-flush .list-group-item { border-left: none !important; border-right: none !important; background: transparent !important; }

/* ══════════════════════════════════════════════
   TREEVIEW (referral tree)
══════════════════════════════════════════════ */
.treeview-container { background: var(--bg-1) !important; border: 1px solid var(--border) !important; border-radius: 12px !important; padding: 20px !important; }
.treeview li { color: var(--text-2) !important; font-size: 13.5px !important; }
.treeview li::before, .treeview li::after { border-color: var(--border) !important; }
.treeview .items-expanded > span,
.treeview .items-collapsed > span { color: var(--text) !important; font-weight: 600 !important; }

/* ══════════════════════════════════════════════
   SD DEPOSIT LAYOUT
══════════════════════════════════════════════ */
.sd-deposit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 760px) { .sd-deposit-grid { grid-template-columns: 1fr; } }
.sd-dep-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.sd-dep-row:last-child { border-bottom: none; }
.sd-dep-label { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; }
.sd-dep-val   { font-size: 13px; color: var(--text-2); font-weight: 600; }

/* ══════════════════════════════════════════════
   DEPOSIT / PAYMENT GATEWAY PAGE
══════════════════════════════════════════════ */
.gateway-card { background: transparent !important; }
.payment-system-list {
    background: var(--bg-2) !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    overflow: hidden;
}
.payment-system-list.is-scrollable { max-height: 360px; overflow-y: auto; }
.payment-system-list.is-scrollable::-webkit-scrollbar { width: 4px; }
.payment-system-list.is-scrollable::-webkit-scrollbar-track { background: transparent; }
.payment-system-list.is-scrollable::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

.payment-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border) !important;
    cursor: pointer;
    transition: background .15s;
}
.payment-item:last-of-type { border-bottom: none !important; }
.payment-item:hover, .payment-item:has(.gateway-input:checked) { background: rgba(34,197,94,.06) !important; }
.payment-item__info { display: flex; align-items: center; gap: 10px; }
.payment-item__check {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--border-2) !important;
    flex-shrink: 0;
    transition: border-color .15s, background .15s;
}
.payment-item:has(.gateway-input:checked) .payment-item__check {
    border-color: var(--green) !important;
    background: var(--green) !important;
    box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.payment-item__name { font-size: 13.5px !important; color: var(--text) !important; font-weight: 500 !important; }
.payment-item__thumb { flex-shrink: 0; }
.payment-item__thumb-img { height: 32px !important; width: auto !important; max-width: 80px !important; object-fit: contain; filter: brightness(1.15); }
.payment-item__btn {
    width: 100%; background: none; border: none;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; cursor: pointer; color: var(--green) !important;
    font-size: 13px; font-weight: 600;
}
.payment-item__btn:hover { background: rgba(34,197,94,.06) !important; }

/* Deposit info panel (right column) */
.deposit-info {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px !important;
}
.deposit-info .text { font-size: 13px !important; color: var(--text-2) !important; margin: 0 !important; }
.deposit-info.total-amount .text { font-size: 15px !important; font-weight: 700 !important; color: var(--text) !important; }
.deposit-info__title .text.has-icon { display: flex; align-items: center; gap: 6px; }
.proccessing-fee-info { color: var(--text-3) !important; cursor: default; }
.gateway-limit, .processing-fee, .final-amount, .in-currency { color: var(--text) !important; font-weight: 600 !important; }
.crypto-message { font-size: 12px !important; color: var(--text-3) !important; background: var(--bg-2) !important; border: 1px solid var(--border) !important; border-radius: 8px !important; padding: 10px 14px !important; }
.info-text .text { font-size: 12px !important; color: var(--text-3) !important; text-align: center; }

/* ══════════════════════════════════════════════
   SUPPORT TICKET MESSAGES (SD style)
══════════════════════════════════════════════ */
.sd-ticket-msg {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.sd-ticket-msg--user { background: var(--bg-1); }
.sd-ticket-msg--admin {
    background: var(--bg-2);
    border-left: 3px solid var(--green);
}
.sd-ticket-msg-meta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}
.sd-ticket-msg-name { font-size: 13px; font-weight: 700; color: var(--text); }
.sd-ticket-msg-date { font-size: 11px; color: var(--text-3); margin-left: auto; }
.sd-ticket-msg-badge {
    font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    background: var(--green-bg); color: var(--green);
    border: 1px solid var(--green-bd);
    border-radius: 999px; padding: 2px 8px;
}
.sd-ticket-msg-body { padding: 16px 18px; }
.sd-ticket-msg-body p { font-size: 13.5px; color: var(--text-2); line-height: 1.75; margin: 0; }
.sd-ticket-attachments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sd-ticket-attachment {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; color: var(--green);
    background: var(--green-bg); border: 1px solid var(--green-bd);
    border-radius: 6px; padding: 4px 10px;
    text-decoration: none;
    transition: background .15s;
}
.sd-ticket-attachment:hover { background: rgba(34,197,94,.15); color: var(--green); }

/* ══════════════════════════════════════════════
   SIGNALS PAGE
══════════════════════════════════════════════ */
.signalBtn { cursor: pointer !important; }

/* ══════════════════════════════════════════════
   PROFILE PAGE extras
══════════════════════════════════════════════ */
.profile-thumb { border: 2px solid var(--border) !important; border-radius: 50% !important; }
.profile-image-preview { border: 1px solid var(--border) !important; border-radius: 10px !important; }
.custom-icon-field { position: relative; }
.input-popup {
    background: var(--bg-2) !important; border: 1px solid var(--border) !important;
    border-radius: 8px !important; padding: 10px 14px !important;
    font-size: 12px !important; margin-top: 6px !important;
}
.input-popup p { color: var(--text-3) !important; margin: 3px 0 !important; }
.input-popup p.error.valid { color: var(--green) !important; }

/* ══════════════════════════════════════════════
   SD USER PAGE LAYOUT (inner dashboard pages)
══════════════════════════════════════════════ */
.sd-user-page {
    background: #000;
    min-height: 70vh;
    padding: 40px 0 80px;
}
.sd-user-page .sd-inner { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }

/* Filter form (transactions) */
.sd-filter-form { margin-bottom: 24px; }
.sd-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .sd-filter-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sd-filter-grid { grid-template-columns: 1fr; } }

/* Transaction amount badges */
.sd-trx-amount { font-weight: 700; font-size: 14px; }
.sd-trx-amount.credit { color: var(--green) !important; }
.sd-trx-amount.debit  { color: var(--red) !important; }

/* Search form */
.sd-user-search-form { margin-bottom: 24px; }
.sd-user-search-group {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-1); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 16px;
    max-width: 560px;
}
.sd-user-search-group i { color: var(--text-3); font-size: 16px; flex-shrink: 0; }
.sd-user-search-input {
    flex: 1; background: none; border: none; outline: none;
    color: var(--text); font-size: 13.5px;
}
.sd-user-search-input::placeholder { color: var(--text-3); }

/* Table card */
.sd-table-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.sd-table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.sd-table-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.sd-table-wrap { overflow-x: auto; }
.sd-table {
    width: 100%;
    border-collapse: collapse;
}
.sd-table th {
    padding: 12px 20px;
    background: var(--bg-2);
    color: var(--text-3);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.sd-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.sd-table tbody tr:last-child td { border-bottom: none; }
.sd-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.sd-table-empty {
    text-align: center;
    padding: 60px 20px !important;
    color: var(--text-3) !important;
    font-size: 14px !important;
}

/* Detail list in modals */
.sd-detail-list { list-style: none; padding: 0; margin: 0; }
.sd-detail-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}
.sd-detail-item:last-child { border-bottom: none; }
.sd-detail-name { color: var(--text-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.sd-detail-val  { color: var(--text); font-weight: 600; }

/* ══════════════════════════════════════════════
   PHONE FIELD (dial code + number)
══════════════════════════════════════════════ */
.sd-phone-field {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-1);
    transition: border-color .2s;
}
.sd-phone-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.08); }
.sd-phone-field input.sd-form-control { border: none !important; box-shadow: none !important; border-radius: 0 !important; background: transparent !important; }
.sd-dial-select {
    background: var(--bg-2) !important;
    border: none !important;
    border-right: 1px solid var(--border) !important;
    color: var(--text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 0 10px !important;
    outline: none !important;
    cursor: pointer;
    min-width: 90px;
    max-width: 130px;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    padding-right: 24px !important;
}
.sd-dial-select:focus { outline: none !important; }
.sd-dial-select option { background: var(--bg-2); color: var(--text); }

/* ══════════════════════════════════════════════
   PRICING SECTION
══════════════════════════════════════════════ */
.sd-period-btn { outline: none; }
.sd-period-btn:focus { outline: none; }
.sd-pricing-card { transition: transform .2s, box-shadow .2s; }
.sd-pricing-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* ══════════════════════════════════════════════
   GLOBAL DARK BODY ENSURE
══════════════════════════════════════════════ */
body { background: #000 !important; }
.container { position: relative; }
h4.text-center { color: var(--text) !important; }
h4.text-white { color: var(--text) !important; }
b, strong { color: inherit; }


/* ══════════════════════════════════════════════
   DUAL TICKER BARS (news + prices, fixed below nav)
══════════════════════════════════════════════ */
:root { --ticker-h: 36px; --tickers-total: 36px; }

.sd-ticker-wrap {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 1029;
    display: flex;
    flex-direction: column;
}

/* Both bars share the same structure */
.sd-ticker-row {
    display: flex;
    align-items: center;
    height: var(--ticker-h);
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: #000;
}
.sd-ticker-row--price  { background: rgba(0,0,0,.97); }
.sd-ticker-row--news   { background: rgba(5,5,5,.97);  border-bottom: 1px solid rgba(255,255,255,.05); }

.sd-ticker-label {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    gap: 5px;
    z-index: 2;
}
.sd-ticker-label--price { background: #22c55e; color: #000; }
.sd-ticker-label--news  { background: rgba(34,197,94,.15); color: #22c55e; border-right: 1px solid rgba(34,197,94,.3); }

.sd-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    mask-image: linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%);
}

.sd-ticker-track {
    display: flex;
    white-space: nowrap;
    height: 100%;
    align-items: center;
    will-change: transform;
    animation: sdTickerScroll linear infinite;
    animation-duration: 80s; /* overridden by JS */
}
.sd-ticker-track:hover { animation-play-state: paused; }

@keyframes sdTickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Price items — single line: SYMBOL  PRICE  CHG% */
.sd-tick-price {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 20px 0 0;
    border-right: 1px solid rgba(255,255,255,.06);
    margin-right: 20px;
    font-size: 12px;
    line-height: 1;
}
.sd-tick-sym  { font-weight: 800; color: #e2e8f0; font-size: 11.5px; }
.sd-tick-px   { color: #94a3b8; font-variant-numeric: tabular-nums; font-family: 'Courier New', monospace; font-size: 11.5px; }
.sd-tick-chg  { font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.sd-tick-chg.up   { color: #22c55e; background: rgba(34,197,94,.12); }
.sd-tick-chg.down { color: #f87171; background: rgba(239,68,68,.12); }
.sd-tick-chg.flat { color: #94a3b8; }

/* News items — same single line */
.sd-tick-news {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0 28px;
    border-right: 1px solid rgba(255,255,255,.05);
    font-size: 12px;
    color: rgba(255,255,255,.65);
    line-height: 1;
}
.sd-tick-news a { color: inherit; text-decoration: none; }
.sd-tick-news a:hover { color: #22c55e; }
.sd-tick-news-src { color: #22c55e; font-size: 9px; font-weight: 800; text-transform: uppercase; margin-right: 7px; }

/* Spacer to push page content below both fixed tickers */
.sd-tickers-spacer { height: var(--tickers-total); display: block; }

/* Remove old single ticker bar */
.sd-ticker-bar { display: none !important; }

/* ══════════════════════════════════════════════
   PAGE LAYOUT — flex row: content + sticky right panel
══════════════════════════════════════════════ */
.sd-page-layout {
    display: flex;
    align-items: flex-start;
}
.sd-page-content {
    flex: 1;
    min-width: 0; /* prevent flex overflow */
}

/* ══════════════════════════════════════════════
   RIGHT PANEL — sticky in-flow sidebar, stacked cards
══════════════════════════════════════════════ */
:root { --rp-w: 300px; }

/* Sticky sidebar — part of page flow, never overlays content */
#sdRpWrapper {
    width: var(--rp-w);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-h) + var(--tickers-total));
    height: calc(100vh - var(--nav-h) - var(--tickers-total));
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 8px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #070707;
    border-left: 1px solid rgba(255,255,255,.08);
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
    align-self: flex-start;
}
/* When no ticker (user dashboard pages), stick just below nav */
.sd-page-layout:not(.sd-has-ticker) #sdRpWrapper {
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
}
#sdRpWrapper::-webkit-scrollbar { width: 3px; }
#sdRpWrapper::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

/* Rounded cards — light theme on dark panel */
.sd-rp-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.sd-rp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.sd-rp-card-title {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sd-rp-card-badge {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: #94a3b8;
}
.sd-rp-card-badge.live {
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 4px;
}
.sd-rp-card-badge.live::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #22c55e;
    animation: liveBlip 1.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes liveBlip { 0%,100%{opacity:1} 50%{opacity:.2} }

/* Markets card — responsive height: more items on larger screens */
.sd-rp-card--markets .sd-rp-card-body {
    max-height: clamp(160px, 28vh, 320px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.sd-rp-card--markets .sd-rp-card-body::-webkit-scrollbar { width: 3px; }
.sd-rp-card--markets .sd-rp-card-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* News card — responsive height */
.sd-rp-card--news .sd-rp-card-body {
    max-height: clamp(140px, 24vh, 280px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.sd-rp-card--news .sd-rp-card-body::-webkit-scrollbar { width: 3px; }
.sd-rp-card--news .sd-rp-card-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Calendar card — dark card, fills remaining height responsively */
.sd-rp-card--cal {
    background: #1a1a2e !important;
    border-color: rgba(255,255,255,.1) !important;
}
.sd-rp-card--cal .sd-rp-card-head {
    background: #16213e !important;
    border-bottom-color: rgba(255,255,255,.08) !important;
}
.sd-rp-card--cal .sd-rp-card-title { color: #22c55e !important; }
.sd-rp-card--cal .sd-rp-card-body {
    height: clamp(200px, 28vh, 340px);
    overflow: hidden;
}
.sd-rp-card--cal .tradingview-widget-container,
.sd-rp-card--cal .tradingview-widget-container__widget { height: 100% !important; width: 100% !important; }

/* Watchlist rows — light theme */
.sd-mw-section-head {
    padding: 5px 13px 4px;
    font-size: 9px; font-weight: 800; letter-spacing: 1.5px;
    text-transform: uppercase; color: #94a3b8;
    background: #f1f5f9; border-bottom: 1px solid #e2e8f0;
    position: sticky; top: 0; z-index: 1;
}
.sd-mw-row {
    display: grid; grid-template-columns: 1fr auto auto;
    align-items: center; gap: 6px;
    padding: 7px 13px;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s;
    background: #fff;
}
.sd-mw-row:hover { background: #f8fafc; }
.sd-mw-sym  { font-size: 12px; font-weight: 700; color: #0f172a; }
.sd-mw-name { font-size: 10px; color: #94a3b8; margin-top: 1px; }
.sd-mw-price { font-size: 12px; font-weight: 700; color: #0f172a; text-align: right; font-family: 'Courier New', monospace; font-variant-numeric: tabular-nums; }
.sd-mw-chg  { font-size: 10px; font-weight: 700; text-align: right; padding: 2px 5px; border-radius: 4px; min-width: 52px; }
.sd-mw-chg.up   { color: #16a34a; background: rgba(34,197,94,.12); }
.sd-mw-chg.down { color: #dc2626; background: rgba(239,68,68,.1); }
.sd-mw-pulse { animation: mwPulse .3s ease; }
@keyframes mwPulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* News items in panel — light theme */
.sd-rp-news-item { padding: 9px 13px; border-bottom: 1px solid #e2e8f0; transition: background .15s; background: #fff; }
.sd-rp-news-item:hover { background: #f1f5f9; }
.sd-rp-news-headline { font-size: 12px; font-weight: 600; color: #0f172a; line-height: 1.5; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sd-rp-news-headline a { color: #0f172a; text-decoration: none; }
.sd-rp-news-headline a:hover { color: #16a34a; }
.sd-rp-news-meta { font-size: 10px; color: #64748b; display: flex; align-items: center; gap: 8px; }
.sd-rp-news-src  { color: #15803d; font-weight: 800; font-size: 9px; letter-spacing: .5px; text-transform: uppercase; }

/* Homepage price ticker strip (in-flow, not fixed) */
.sd-price-strip {
    display: flex;
    align-items: center;
    height: 36px;
    background: rgba(0,0,0,.97);
    border-bottom: 1px solid rgba(255,255,255,.07);
    overflow: hidden;
}
.sd-price-strip-label {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    gap: 5px;
    background: #22c55e;
    color: #000;
    z-index: 2;
}
.sd-price-strip-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    mask-image: linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 2%, #000 98%, transparent 100%);
}
.sd-price-strip-track {
    display: flex;
    white-space: nowrap;
    height: 100%;
    align-items: center;
    will-change: transform;
    animation: sdTickerScroll linear infinite;
    animation-duration: 80s;
}
.sd-price-strip-track:hover { animation-play-state: paused; }

/* ── Responsive — hide panel on small/medium screens ── */
@media (max-width: 1200px) {
    :root { --rp-w: 0px; }
    #sdRpWrapper { display: none !important; }
    .sd-page-layout { display: block; }
}

/* ══════════════════════════════════════════════
   MARKETS PAGE (/markets)
══════════════════════════════════════════════ */

/* Hero */
.sd-mkt-hero {
    background: linear-gradient(135deg, #000 0%, #0a1628 50%, #000 100%);
    padding: 80px var(--pad) 64px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-align: center;
}
.sd-mkt-hero-inner { max-width: 760px; margin: 0 auto; }
.sd-mkt-hero-h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    letter-spacing: -2px;
    color: #fff;
    line-height: 1.1;
    margin: 12px 0 18px;
}
.sd-mkt-hero-sub {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.sd-mkt-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Section wrapper */
.sd-mkt-section {
    padding: 64px var(--pad);
    background: #000;
}
.sd-mkt-section--alt { background: #070707; }

.sd-mkt-section-hd {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
.sd-mkt-section-h2 {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
}
.sd-mkt-section-h2 i { color: #22c55e; }
.sd-mkt-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #22c55e;
    padding: 5px 12px;
    background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.2);
    border-radius: 999px;
}
.sd-mkt-live-badge span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: liveBlip 1.4s ease-in-out infinite;
}

/* Prices grid — 3 tables side by side */
.sd-mkt-prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}
.sd-mkt-tbl-wrap {
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    overflow: hidden;
}
.sd-mkt-tbl-title {
    padding: 12px 18px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #22c55e;
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.sd-mkt-tbl {
    width: 100%;
    border-collapse: collapse;
}
.sd-mkt-tbl thead tr { background: #0d0d0d; }
.sd-mkt-tbl th {
    padding: 8px 14px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #475569;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.sd-mkt-tbl th:not(:first-child) { text-align: right; }
.sd-mkt-tbl td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,.03);
    font-size: 13px;
    vertical-align: middle;
}
.sd-mkt-tbl td:not(:first-child) { text-align: right; }
.sd-mkt-tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.sd-mkt-tbl tbody tr:last-child td { border-bottom: none; }
.sd-mkt-sym { font-weight: 700; color: #e2e8f0; display: block; font-size: 13px; }
.sd-mkt-name { font-size: 10px; color: #475569; }
.sd-mkt-px { font-weight: 700; color: #e2e8f0; font-family: 'Courier New', monospace; font-variant-numeric: tabular-nums; }
.sd-mkt-chg { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.sd-mkt-chg.up   { color: #22c55e; background: rgba(34,197,94,.1); }
.sd-mkt-chg.down { color: #f87171; background: rgba(239,68,68,.1); }
.sd-mkt-chg.flat { color: #475569; }
.sd-mkt-pulse { animation: mwPulse .35s ease; }
.sd-mkt-src-note {
    text-align: center;
    font-size: 11px;
    color: #334155;
    margin-top: 20px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* News grid */
.sd-mkt-news-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.sd-mkt-filter-btn {
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all .2s;
}
.sd-mkt-filter-btn.active,
.sd-mkt-filter-btn:hover { background: #22c55e; color: #000; border-color: #22c55e; }
.sd-mkt-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}
.sd-mkt-news-loading {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
    color: #475569;
    font-size: 14px;
}
.sd-mkt-news-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    background: #0f0f0f;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    text-decoration: none;
    transition: all .2s;
}
.sd-mkt-news-card:hover { border-color: rgba(34,197,94,.3); background: #111; transform: translateY(-2px); }
.sd-mkt-news-card-src {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #22c55e;
}
.sd-mkt-news-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.5;
    flex: 1;
}
.sd-mkt-news-card:hover .sd-mkt-news-card-title { color: #fff; }
.sd-mkt-news-card-age { font-size: 10.5px; color: #475569; }

/* Calendar wrapper */
.sd-mkt-cal-wrap {
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
}

/* Responsive */
@media (max-width: 1024px) {
    .sd-mkt-prices-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .sd-mkt-prices-grid { grid-template-columns: 1fr; }
    .sd-mkt-section-hd { flex-direction: column; align-items: flex-start; }
}

/* ════════════════════════════════════════════════════════════
   HOME REVAMP v2 — Tactical Intelligence
   Syne display · animated mesh · stagger reveals · dark panel
════════════════════════════════════════════════════════════ */

/* ── New tokens ── */
:root {
  --bg-deep:   #020408;
  --bg-glass:  rgba(2,4,8,.7);
  --amber:     #f59e0b;
  --blue-acc:  #3b82f6;
  --glow-g:    0 0 40px rgba(34,197,94,.18);
  --glow-g-sm: 0 0 14px rgba(34,197,94,.12);
  --mono:      'DM Mono', monospace;
}

/* ── Syne for display headings ── */
.sd-hero-h1,
.sd-cta-h2 {
  font-family: 'Syne', 'Inter', sans-serif;
  letter-spacing: -4px;
}
.sd-sec-h2 {
  font-family: 'Syne', 'Inter', sans-serif;
  letter-spacing: -2.5px;
}

/* ════════════════
   HERO OVERHAUL
═══════════════ */
.sd-hero {
  background: var(--bg-deep);
  overflow: hidden;
}

/* Animated grid mesh */
.sd-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(34,197,94,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridDrift 20s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 64px 64px; }
}

/* Remove old ::after glow (replaced below) */
.sd-hero::after {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(34,197,94,.09) 0%, transparent 65%);
  top: -200px; right: 5%;
}

/* Hero left copy */
.sd-hero-left {
  animation: heroReveal .9s cubic-bezier(.165,.84,.44,1) both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

.sd-hero-tag {
  animation: heroReveal .7s .1s both;
}
.sd-hero-h1 {
  animation: heroReveal .8s .18s both;
  line-height: .92;
}
.sd-hero-h1-em {
  background: linear-gradient(135deg, #22c55e 20%, #86efac 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}
.sd-hero-sub {
  animation: heroReveal .8s .28s both;
}
.sd-hero-actions {
  animation: heroReveal .8s .38s both;
}
.sd-hero-trust {
  animation: heroReveal .8s .48s both;
}

/* Hero right visual */
.sd-hero-visual {
  animation: heroRevealRight 1s .3s cubic-bezier(.165,.84,.44,1) both;
}
@keyframes heroRevealRight {
  from { opacity: 0; transform: translateX(40px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.sd-hero-img-wrap {
  border: 1px solid rgba(34,197,94,.25);
  box-shadow: 0 0 0 1px rgba(34,197,94,.06), 0 60px 120px rgba(0,0,0,.7), var(--glow-g);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.sd-hero-img-wrap img {
  width: 100%; display: block;
  filter: brightness(.95) saturate(1.1);
}

/* Scan-line sweep across image */
.sd-hero-img-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 0%, transparent 40%,
    rgba(34,197,94,.04) 50%, rgba(34,197,94,.04) 51%,
    transparent 62%, transparent 100%);
  animation: scanSwipe 4s linear infinite;
  pointer-events: none; z-index: 2;
}
@keyframes scanSwipe {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* Enhanced floating badges */
.sd-hero-badge {
  background: rgba(2,4,8,.88);
  border: 1px solid rgba(34,197,94,.3);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), var(--glow-g-sm);
  border-radius: 14px;
  padding: 12px 18px;
  animation: floatBadge 5s ease-in-out infinite alternate;
}
.sd-hero-badge--a { top: -18px; right: -18px; animation-delay: 0s; }
.sd-hero-badge--b { bottom: 28px; left: -18px; animation-delay: -2.5s; }
.sd-hero-badge--c { top: 50%; right: -18px; transform: translateY(-50%); animation-delay: -1.2s; }
@keyframes floatBadge {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}
.sd-hero-badge--b { animation-name: floatBadgeLeft; }
@keyframes floatBadgeLeft {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
.sd-hero-badge--c { animation-name: floatBadgeC; }
@keyframes floatBadgeC {
  from { transform: translateY(-50%) translateX(0); }
  to   { transform: translateY(-50%) translateX(4px); }
}
.sd-hero-badge__val {
  font-family: var(--mono);
  font-size: 1.15rem; font-weight: 500;
  color: var(--green);
}
.sd-hero-badge__lbl {
  font-size: 9px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: 3px;
}

/* Live signal stream overlay card */
.sd-signal-stream {
  position: absolute;
  bottom: -16px; left: -24px;
  width: 220px;
  background: rgba(2,4,8,.9);
  border: 1px solid rgba(34,197,94,.3);
  border-radius: 14px;
  padding: 12px 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0,0,0,.6), var(--glow-g-sm);
  z-index: 3;
  animation: streamReveal .6s .8s both;
}
@keyframes streamReveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.sd-signal-stream-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}
.sd-signal-stream-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  animation: pulse 1.5s ease infinite;
}
.sd-sig-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 11px;
}
.sd-sig-row:last-child { border-bottom: none; }
.sd-sig-pair {
  font-family: var(--mono);
  font-size: 10.5px; font-weight: 500;
  color: rgba(255,255,255,.9);
}
.sd-sig-type {
  font-size: 9px; font-weight: 800;
  letter-spacing: .8px; padding: 2px 6px;
  border-radius: 4px;
}
.sd-sig-type--buy  { background: rgba(34,197,94,.15); color: #22c55e; }
.sd-sig-type--sell { background: rgba(239,68,68,.12);  color: #ef4444; }
.sd-sig-pips { font-family: var(--mono); font-size: 10px; color: var(--green); font-weight: 500; }

/* Animated signal row appearing */
.sd-sig-row { animation: sigAppear .4s ease both; }
.sd-sig-row:nth-child(1) { animation-delay: 1.2s; }
.sd-sig-row:nth-child(2) { animation-delay: 1.6s; }
.sd-sig-row:nth-child(3) { animation-delay: 2.0s; }
@keyframes sigAppear {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ════════════════
   PRICE STRIP
═══════════════ */
.sd-price-strip {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sd-tick-sym {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,.7);
}
.sd-tick-px {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.9);
}
.sd-tick-chg { font-family: var(--mono); font-size: 10.5px; }

/* ════════════════
   STATS BAND
═══════════════ */
.sd-stats-band {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.sd-stats-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 200px at 50% 100%, rgba(34,197,94,.04), transparent);
  pointer-events: none;
}
.sd-counter-val {
  font-family: 'Syne', 'Inter', sans-serif;
  background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter .3s;
}
.sd-stat-item:hover .sd-counter-val {
  filter: drop-shadow(0 0 12px rgba(34,197,94,.4));
  background: linear-gradient(135deg, #22c55e 0%, #86efac 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.sd-stat-item {
  transition: transform .3s;
  cursor: default;
}
.sd-stat-item:hover { transform: translateY(-4px); }
.sd-counter-label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 1.5px;
}

/* ════════════════
   SCROLL REVEALS
═══════════════ */
.sd-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.165,.84,.44,1),
              transform .7s cubic-bezier(.165,.84,.44,1);
}
.sd-reveal.sd-in { opacity: 1; transform: none; }
.sd-reveal-l { opacity: 0; transform: translateX(-28px); transition: opacity .7s cubic-bezier(.165,.84,.44,1), transform .7s cubic-bezier(.165,.84,.44,1); }
.sd-reveal-l.sd-in { opacity: 1; transform: none; }
.sd-reveal-r { opacity: 0; transform: translateX(28px); transition: opacity .7s cubic-bezier(.165,.84,.44,1), transform .7s cubic-bezier(.165,.84,.44,1); }
.sd-reveal-r.sd-in { opacity: 1; transform: none; }

/* Stagger helpers */
.sd-d1 { transition-delay: .1s; }
.sd-d2 { transition-delay: .2s; }
.sd-d3 { transition-delay: .3s; }
.sd-d4 { transition-delay: .4s; }
.sd-d5 { transition-delay: .5s; }
.sd-d6 { transition-delay: .6s; }
.sd-d7 { transition-delay: .7s; }
.sd-d8 { transition-delay: .8s; }
.sd-d9 { transition-delay: .9s; }

/* ════════════════
   SERVICES
═══════════════ */
.sd-svc-grid {
  position: relative;
  border-radius: 16px;
}
.sd-svc-item {
  position: relative; overflow: hidden;
  background: var(--bg-deep);
}
.sd-svc-item::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  transform: scaleX(0);
  transition: transform .4s var(--ease);
}
.sd-svc-item:hover::after { transform: scaleX(1); }
.sd-svc-icon {
  width: 48px; height: 48px;
  font-size: 22px;
  transition: transform .3s, background .25s, color .25s, box-shadow .25s;
}
.sd-svc-item:hover .sd-svc-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 28px rgba(34,197,94,.25);
}
.sd-svc-title { font-size: 14.5px; font-weight: 700; }

/* ════════════════
   COPY TRADING
═══════════════ */
.sd-traders-panel {
  background: var(--bg-deep);
  border: 1px solid rgba(34,197,94,.15);
  box-shadow: var(--glow-g-sm);
}
.sd-traders-head {
  border-bottom: 1px solid rgba(34,197,94,.12);
  background: rgba(34,197,94,.04);
}
.sd-trader-row {
  position: relative;
}
.sd-trader-row::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--border);
}
.sd-trader-ret {
  font-family: var(--mono);
  background: linear-gradient(135deg, #22c55e, #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 15px;
}

/* ROI bar under each trader */
.sd-trader-bar-wrap {
  height: 2px;
  background: rgba(255,255,255,.05);
  margin: 0 20px;
  border-radius: 1px;
  overflow: hidden;
}
.sd-trader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #86efac);
  border-radius: 1px;
  transform-origin: left;
  animation: barGrow 1.2s var(--ease) both;
  animation-play-state: paused;
}
.sd-in .sd-trader-bar { animation-play-state: running; }
@keyframes barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ════════════════
   EDUCATION
═══════════════ */
.sd-edu-item {
  background: var(--bg-deep);
  position: relative; overflow: hidden;
}
.sd-edu-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,.3), transparent);
  opacity: 0; transition: opacity .3s;
}
.sd-edu-item:hover::before { opacity: 1; }
.sd-edu-title { font-size: 15px; font-weight: 700; letter-spacing: -.3px; }

/* ════════════════
   TESTIMONIALS
═══════════════ */
.sd-testi-item {
  background: var(--bg-deep);
  position: relative; overflow: hidden;
}
.sd-testi-item::before {
  content: '"';
  position: absolute; top: 12px; right: 16px;
  font-size: 80px; line-height: 1;
  color: rgba(34,197,94,.06);
  font-family: 'Syne', serif;
  font-weight: 800;
  pointer-events: none;
}
.sd-testi-stars {
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.sd-testi-text {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255,255,255,.6);
}
.sd-testi-av {
  background: linear-gradient(135deg, rgba(34,197,94,.8), rgba(34,197,94,.4));
  border: 1px solid rgba(34,197,94,.3);
  font-size: 11px;
}

/* ════════════════
   CTA SECTION
═══════════════ */
.sd-cta {
  background: var(--bg-deep);
  position: relative; overflow: hidden;
}
.sd-cta::before {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(34,197,94,.07) 0%, transparent 65%);
}
/* Mesh grid behind CTA */
.sd-cta::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.sd-cta > * { position: relative; z-index: 2; }
.sd-cta-h2 {
  font-family: 'Syne', 'Inter', sans-serif;
  letter-spacing: -3.5px;
}
.sd-cta-h2 em {
  font-style: italic;
  background: linear-gradient(135deg, #22c55e 20%, #86efac 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════
   SEC HEADERS
═══════════════ */
.sd-sec-label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 2.5px;
  display: inline-flex; align-items: center; gap: 8px;
}
.sd-sec-label::before {
  content: '';
  display: inline-block; width: 20px; height: 1px;
  background: var(--green);
}
.sd-sec-h2 { line-height: 1.02; }

/* Section alternate bg */
.sd-section { background: var(--bg-deep); }
.sd-section--dim { background: rgba(7,9,14,1); }

/* ════════════════
   PRICING
═══════════════ */
.sd-pricing-card {
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.sd-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
}

/* ════════════════
   RIGHT PANEL — Dark Theme Fix
═══════════════ */
#sdRpWrapper {
  background: var(--bg-deep);
}
.sd-rp-card {
  background: var(--bg-deep) !important;
  border: 1px solid var(--border) !important;
}
.sd-rp-card-head {
  background: rgba(255,255,255,.02) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.sd-rp-card-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 6px;
}
.sd-rp-card-title i { color: var(--green); }
.sd-rp-card-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.25);
  color: var(--green);
}
.sd-rp-card-badge.live {
  animation: livePulse 2s ease infinite;
}
@keyframes livePulse {
  0%,100% { background: rgba(34,197,94,.12); }
  50%      { background: rgba(34,197,94,.22); }
}
.sd-rp-card-body {
  background: var(--bg-deep) !important;
}

/* Market widget rows — force dark */
.sd-mw-row {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.04) !important;
}
.sd-mw-row:hover { background: rgba(255,255,255,.02) !important; }
.sd-mw-sym { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.85); font-weight: 500; }
.sd-mw-name { font-size: 10px; color: rgba(255,255,255,.3); }
.sd-mw-price { font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,.8); }
.sd-mw-chg { font-family: var(--mono); font-size: 10.5px; }
.sd-mw-section-head {
  font-family: var(--mono);
  font-size: 9px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  background: transparent !important;
  padding: 8px 12px 5px !important;
}

/* News items — force dark */
#rpNewsList { background: var(--bg-deep) !important; }
.rp-news-item {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.04) !important;
  padding: 10px 13px !important;
}
.rp-news-item:hover { background: rgba(255,255,255,.02) !important; }
.rp-news-headline {
  font-size: 12px !important; color: rgba(255,255,255,.75) !important;
  line-height: 1.5 !important;
}
.rp-news-meta { font-size: 10px !important; color: rgba(255,255,255,.3) !important; }

/* Kill any stray white from right panel */
.sd-rp-card-body * {
  background-color: transparent !important;
}
/* except TradingView widget */
.tradingview-widget-container,
.tradingview-widget-container__widget,
.tradingview-widget-container iframe {
  background: transparent !important;
}

/* ════════════════
   SECTION DIVIDER GLOW LINE
═══════════════ */
.sd-section, .sd-stats-band, .sd-cta {
  border-bottom: 1px solid var(--border);
}
/* Subtle green shimmer on borders */
.sd-section { position: relative; }
.sd-section::after {
  content: '';
  position: absolute; bottom: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,197,94,.15), transparent);
  pointer-events: none;
}

/* ════════════════
   TRADERS PANEL — ROI Bars Responsive
═══════════════ */
@media (max-width: 960px) {
  .sd-hero-badge--c { display: none; }
  .sd-signal-stream { display: none; }
}

/* ════════════════════════════════════════════════
   RIGHT PANEL v3 — Dark wrapper, WHITE cards
════════════════════════════════════════════════ */

/* Panel wrapper — dark background */
#sdRpWrapper {
    background: #0a0a12 !important;
    border-left: 1px solid rgba(255,255,255,.06) !important;
}

/* WHITE card bodies */
.sd-rp-card {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,.06) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,.45) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    margin: 0 10px 10px !important;
}

/* Card headers — very light grey on white */
.sd-rp-card-head {
    background: #f4f5f7 !important;
    border-bottom: 1px solid rgba(0,0,0,.07) !important;
    padding: 10px 14px !important;
}
.sd-rp-card-title {
    color: #1a1a2e !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    gap: 7px !important;
}

/* Green icon box */
.sd-rp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    background: rgba(0,200,100,.1);
    border: 1px solid rgba(0,200,100,.2);
    font-size: 11px;
    color: #16a34a;
}

/* Badge — neutral */
.sd-rp-card-badge {
    font-size: 8px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: #6b7280 !important;
    padding: 2px 8px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 999px;
    background: rgba(0,0,0,.04) !important;
}
.sd-rp-card-badge.live {
    color: #16a34a !important;
    border-color: rgba(22,163,74,.3) !important;
    background: rgba(22,163,74,.08) !important;
}

/* Live dot */
.sd-rp-badge-dot {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 5px rgba(22,163,74,.6);
    animation: liveBlip 1.4s ease-in-out infinite;
    margin-right: 2px;
}

/* Markets rows — white card */
.sd-mw-section-head {
    background: #f9fafb !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
    color: #9ca3af !important;
    font-size: 8.5px !important;
    letter-spacing: 1.5px !important;
    padding: 5px 13px 4px !important;
}
.sd-mw-row {
    background: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,.04) !important;
}
.sd-mw-row:hover { background: rgba(22,163,74,.04) !important; }

/* Symbol & name — dark text on white */
.sd-mw-sym  { color: #1a1a2e !important; font-size: 11.5px !important; font-weight: 600 !important; }
.sd-mw-name { color: #9ca3af !important; font-size: 10px !important; }

/* Price — dark on white */
.sd-mw-price {
    color: #374151 !important;
    font-family: 'JetBrains Mono', 'DM Mono', monospace !important;
    font-size: 11.5px !important;
    font-weight: 500 !important;
}

/* Change pills — vivid green / red */
.sd-mw-chg {
    font-family: 'JetBrains Mono', 'DM Mono', monospace !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    border-radius: 5px !important;
    padding: 2px 6px !important;
}
.sd-mw-chg.up   { color: #16a34a !important; background: rgba(22,163,74,.1)  !important; }
.sd-mw-chg.down { color: #dc2626 !important; background: rgba(220,38,38,.08) !important; }

/* Attribution footer — on white card */
.sd-rp-attribution {
    padding: 8px 13px 6px;
    font-family: 'JetBrains Mono', 'DM Mono', monospace;
    font-size: 8.5px;
    color: #c0c4cc;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,.06);
    letter-spacing: .3px;
    background: #f9fafb;
}

/* News items — white card */
.sd-rp-news-item {
    background: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,.05) !important;
    padding: 10px 13px !important;
    transition: background .15s !important;
}
.sd-rp-news-item:hover { background: rgba(22,163,74,.03) !important; }
.sd-rp-news-headline { color: #1f2937 !important; font-size: 11.5px !important; line-height: 1.45 !important; }
.sd-rp-news-headline a { color: #1f2937 !important; text-decoration: none !important; }
.sd-rp-news-headline a:hover { color: #16a34a !important; }
.sd-rp-news-meta { color: #9ca3af !important; font-size: 9.5px !important; }
.sd-rp-news-src  { color: #16a34a !important; font-weight: 600 !important; }

/* Loading dots — on white */
.sd-rp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px;
}
.sd-rp-loading-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(22,163,74,.45);
    animation: rpDotBounce 1.2s ease-in-out infinite;
}
.sd-rp-ld2 { animation-delay: .2s; }
.sd-rp-ld3 { animation-delay: .4s; }
@keyframes rpDotBounce {
    0%, 80%, 100% { transform: scale(.7); opacity: .4; }
    40%            { transform: scale(1);  opacity: 1; }
}

/* Scrollbars — light on white */
.sd-rp-card--markets .sd-rp-card-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,.1) !important; }
.sd-rp-card--news .sd-rp-card-body::-webkit-scrollbar-thumb    { background: rgba(0,0,0,.1) !important; }
.sd-rp-card--markets .sd-rp-card-body::-webkit-scrollbar-track { background: #f4f5f7 !important; }
.sd-rp-card--news .sd-rp-card-body::-webkit-scrollbar-track    { background: #f4f5f7 !important; }

/* Economic calendar card — keep white */
.sd-rp-card--cal .sd-rp-card-body { background: #fff !important; }

/* ══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE ADDITIONS
   Covers: packages, blogs, contact, markets, user dashboard
   Breakpoints: 1200px (right panel), 1024px, 960px, 768px,
                600px, 480px, 400px, 360px
══════════════════════════════════════════════════════════ */

/* ── 1. Right panel: already hidden at 1200px via display:none.
        Ensure .sd-page-layout stacks at all sub-1200px widths ── */
@media (max-width: 1200px) {
    .sd-page-layout {
        display: block;
        flex-direction: unset;
    }
    .sd-page-content {
        width: 100%;
        min-width: 0;
    }
    /* Confirm right panel is fully gone */
    #sdRpWrapper,
    .sd-rp-card {
        display: none !important;
    }
}

/* ── 2. Markets hero — reduce vertical padding on mobile ── */
@media (max-width: 768px) {
    .sd-mkt-hero {
        padding: 48px var(--pad) 40px;
    }
    .sd-mkt-hero-sub {
        font-size: 14px;
    }
    .sd-mkt-hero-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* ── 3. Page hero (inner pages: packages, blogs, contact) — reduce vertical padding ── */
@media (max-width: 768px) {
    .sd-page-hero {
        padding: 48px var(--pad) 40px;
    }
    .sd-page-h1 {
        font-size: clamp(28px, 8vw, 52px);
        letter-spacing: -1.5px;
    }
}

/* ── 4. Markets prices grid — already has 1024→2col, 640→1col.
        Add overflow-x:auto on individual table wrappers so long
        tables scroll horizontally rather than breaking layout ── */
@media (max-width: 768px) {
    .sd-mkt-tbl-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sd-mkt-tbl {
        min-width: 280px;
    }
    .sd-mkt-section {
        padding: 48px var(--pad);
    }
}

/* ── 5. Dashboard tables — ensure horizontal scroll on mobile ── */
@media (max-width: 768px) {
    .sd-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sd-table {
        min-width: 500px;
    }
    /* Bootstrap table wrapper */
    .table-responsive,
    .table--responsive--lg {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
        width: 100%;
    }
}

/* ── 6. Contact form — ensure 44px minimum touch target on inputs ── */
@media (max-width: 768px) {
    .sd-form-control,
    .sd-subscribe-input,
    .form--control,
    .form-control {
        min-height: 44px !important;
        padding: 10px 14px !important;
    }
    .sd-btn-primary,
    .sd-btn-secondary,
    .sd-btn,
    .btn--base {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    /* Contact grid already collapses at 960px, ensure form wrap padding is comfortable */
    .sd-contact-form-wrap {
        padding: 24px 20px;
    }
    /* Contact info item icons — ensure adequate tap size */
    .sd-contact-item-icon {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }
}

/* ── 7. Subscribe band — reduce vertical padding on mobile ── */
@media (max-width: 768px) {
    .sd-subscribe-band {
        padding: 48px var(--pad);
    }
    .sd-subscribe-form {
        flex-direction: column;
    }
    .sd-subscribe-input {
        width: 100%;
    }
}

/* ── 8. Nav logo — reduce size on small screens ── */
@media (max-width: 480px) {
    .sd-logo img {
        height: 40px;
    }
    .sd-nav {
        gap: 12px;
    }
}

/* ── 9. Hero section — reduce top padding on very small screens ── */
@media (max-width: 480px) {
    .sd-hero-inner {
        padding-top: 60px;
        padding-bottom: 48px;
    }
    .sd-section {
        padding: 48px var(--pad);
    }
}

/* ── 10. Feature grid — collapse to 1 column on very small screens ── */
@media (max-width: 400px) {
    .sd-feature-grid {
        grid-template-columns: 1fr;
    }
    .sd-feature-item {
        border-right: none !important;
    }
}

/* ── 11. About stat grid — collapse on very small screens ── */
@media (max-width: 400px) {
    .sd-about-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ── 12. Auth center box — tighter padding on very small screens ── */
@media (max-width: 400px) {
    .sd-auth-center-box {
        padding: 20px 16px;
        border-radius: 14px;
    }
    .sd-auth-center {
        padding: 24px 12px;
    }
}

/* ── 13. Ticker bars — prevent overflow on very small screens (<360px) ── */
@media (max-width: 360px) {
    .sd-ticker-label,
    .sd-ticker-label--price,
    .sd-ticker-label--news {
        padding: 0 8px;
        font-size: 8px;
        letter-spacing: 1px;
    }
    .sd-ticker-row {
        height: 32px;
    }
    :root {
        --ticker-h: 32px;
        --tickers-total: 32px;
    }
    .sd-price-strip {
        height: 32px;
    }
}

/* ── 14. --pad variable: already uses clamp(20px, 5.5vw, 96px)
         which scales correctly. At 360px it equals 20px (minimum),
         which is appropriate. No override needed.
         On very small screens, reduce section section padding further ── */
@media (max-width: 360px) {
    .sd-section {
        padding: 40px 16px;
    }
    .sd-mkt-hero {
        padding: 40px 16px 32px;
    }
    .sd-page-hero {
        padding: 40px 16px 32px;
    }
    .sd-footer {
        padding: 48px 16px 24px;
    }
    .sd-contact-form-wrap {
        padding: 16px;
    }
    .sd-auth-center-box {
        padding: 16px;
    }
}

/* ── 15. Footer bottom — ensure clean wrap on small screens ── */
@media (max-width: 480px) {
    .sd-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .sd-footer-legal {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* ── 16. Blog grid border-right cleanup at 600px single-col ── */
@media (max-width: 600px) {
    .sd-blog-grid {
        border-right: none;
    }
    /* Stats grid: keep 2-col at 600px but add top border on row 2 */
    .sd-stat-item {
        padding: 16px;
    }
    /* Packages card — ensure price text doesn't overflow */
    .sd-pkg-price {
        font-size: clamp(28px, 8vw, 48px);
    }
    /* User page layout inner padding */
    .sd-user-page {
        padding: 24px 0 56px;
    }
    /* Table card header stack on mobile */
    .sd-table-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ── 17. Markets section header — already wraps via flex-wrap.
         Ensure filter buttons wrap cleanly ── */
@media (max-width: 480px) {
    .sd-mkt-news-filter {
        gap: 4px;
    }
    .sd-mkt-filter-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* ── 18. User filter grid — already has 900→2col, 560→1col.
         Ensure buttons are full-width at 1-col ── */
@media (max-width: 560px) {
    .sd-filter-grid .sd-btn,
    .sd-filter-grid button[type="submit"] {
        width: 100%;
        justify-content: center;
    }
    .sd-user-search-group {
        max-width: 100%;
    }
}

/* ── 19. Deposit grid — already has 760→1col. Add padding fix ── */
@media (max-width: 480px) {
    .sd-deposit-grid {
        gap: 16px;
    }
}

/* ── 20. FAQ list — ensure question text doesn't crowd icon ── */
@media (max-width: 480px) {
    .sd-faq-q {
        font-size: 14px;
        padding: 18px 0;
    }
}

/* ── 21. Mid-size (1100px–1440px) layout fix ── */
/* Gap between 1100px nav collapse and 960px full collapse was unaddressed */
@media (max-width: 1320px) {
    .sd-hero-inner {
        gap: 48px;
        padding: 80px var(--pad) 64px;
    }
    .sd-hero-h1 {
        font-size: clamp(36px, 4vw, 52px);
    }
    .sd-split { gap: 48px; }
    .sd-footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 1200px) {
    .sd-hero-inner {
        gap: 36px;
    }
    .sd-hero-h1 {
        font-size: clamp(32px, 3.5vw, 46px);
        letter-spacing: -2px;
    }
    .sd-hero-sub {
        font-size: 15px;
    }
    .sd-split { gap: 36px; }
    .sd-footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 28px;
    }
    .sd-footer-brand {
        grid-column: 1 / -1;
    }
    .sd-svc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .sd-edu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── END MOBILE RESPONSIVE ADDITIONS ── */
