/* ============================================================
   CryptoSignals – Design System
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --bg: #FAFAFA;
    --bg-alt: #F3F4F6;
    --bg-dark: #0f1923;
    --bg-dark-alt: #1a2332;
    --text: #1a2332;
    --text-light: #4b5563;
    --text-muted: #6b7280;
    --green: #10b981;
    --green-dark: #059669;
    --green-light: #d1fae5;
    --gold: #d4a84b;
    --gold-light: #fef3c7;
    --red: #ef4444;
    --red-light: #fee2e2;
    --border: #e5e7eb;
    --border-dark: #d1d5db;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.04);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --nav-h: 68px;
    --sidebar-w: 240px;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --transition: 0.18s ease;
}

/* ========== Dark Mode – Deep Navy Blue Palette ========== */
[data-theme="dark"] {
    --bg:          #0b1929;
    --bg-alt:      #0f2235;
    --bg-dark:     #060f1a;
    --text:        #e2e8f4;
    --text-light:  #94a3b8;
    --text-muted:  #5a7a9a;
    --border:      #1a3352;
    --border-dark: #254d7a;
    --green-light: #022c22;
    --red-light:   #2d0707;
    --gold-light:  #2d1a03;
    --shadow:      0 1px 3px rgba(0,0,0,.4),  0 1px 2px rgba(0,0,0,.3);
    --shadow-md:   0 4px 12px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.3);
    --shadow-lg:   0 10px 30px rgba(0,0,0,.5),0 4px 8px rgba(0,0,0,.3);
}

/* Navbar */
[data-theme="dark"] .navbar {
    background: rgba(11, 25, 41, 0.97);
    border-bottom-color: var(--border);
}

/* Dropdown */
[data-theme="dark"] .dropdown-menu { background: #112540; }

/* Ticker strip */
[data-theme="dark"] .coin-ticker-strip { background: #0f2235; }
[data-theme="dark"] .ticker-fade-left  { background: linear-gradient(to right, #0f2235, transparent); }
[data-theme="dark"] .ticker-fade-right { background: linear-gradient(to left,  #0f2235, transparent); }

/* Cards & feature cards */
[data-theme="dark"] .card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .why-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .coin-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .locked-box { background: #112540; }

/* Dropdown inner */
[data-theme="dark"] .card-footer { background: #0b1929; }

/* Sidebar */
[data-theme="dark"] .sidebar { background: #0d2040; border-right-color: var(--border); }
[data-theme="dark"] .sidebar-header { border-bottom-color: var(--border); }

/* Forms */
[data-theme="dark"] .form-input,
[data-theme="dark"] select.form-input,
[data-theme="dark"] textarea.form-input {
    background: #0b1929;
    color: var(--text);
    border-color: var(--border);
}
[data-theme="dark"] .form-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
[data-theme="dark"] .form-input::placeholder { color: var(--text-muted); }
[data-theme="dark"] .form-input:disabled { background: #0f2235; }

/* Tables */
[data-theme="dark"] .table th { background: #0d2040; }
[data-theme="dark"] .table td { border-bottom-color: var(--border); }
[data-theme="dark"] .table tr:hover td { background: rgba(30,80,140,0.2); }

/* Hero background glow */
[data-theme="dark"] .hero-bg {
    background: radial-gradient(ellipse at 30% 50%, rgba(16,185,129,0.09) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(212,168,75,0.07) 0%, transparent 50%);
}

/* Hero badge */
[data-theme="dark"] .hero-badge { background: rgba(16,185,129,0.15); color: var(--green); }

/* Hero coins widget */
[data-theme="dark"] .coins-list { background: transparent; }

/* Pricing card featured */
[data-theme="dark"] .pricing-card.pricing-featured { background: #112540; }

/* Dark section stays consistent */
[data-theme="dark"] .section-dark { background: #060f1a; }

/* Nav link hover */
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active { background: rgba(255,255,255,0.06); color: var(--text); }

/* Nav user button */
[data-theme="dark"] .nav-user-btn { color: var(--text); }
[data-theme="dark"] .nav-user-btn:hover { background: rgba(255,255,255,0.06); border-color: var(--border-dark); }

/* Dropdown item */
[data-theme="dark"] .dropdown-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
[data-theme="dark"] .dropdown-divider { background: var(--border); }

/* Flash messages */
[data-theme="dark"] .flash-success { background: #022c22; color: #6ee7b7; }
[data-theme="dark"] .flash-error   { background: #2d0707; color: #fca5a5; }

/* Empty state & misc */
[data-theme="dark"] .empty-state { color: var(--text-muted); }
[data-theme="dark"] .period-tab  { background: #0f2235; color: var(--text-light); border-color: var(--border); }
[data-theme="dark"] .period-tab.active { background: var(--green); color: white; border-color: var(--green); }

/* ========== Theme Toggle Button ========== */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--green); color: var(--green); }
.theme-toggle svg  { flex-shrink: 0; transition: transform 0.35s ease; }
[data-theme="dark"] .theme-toggle { background: rgba(255,255,255,0.06); }
/* Light mode: show moon, hide sun */
.theme-icon-sun  { display: none; }
.theme-icon-moon { display: block; }
/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-icon-sun  { display: block; }
[data-theme="dark"] .theme-icon-moon { display: none; }

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; font-family: var(--font-sans); }

p { color: var(--text-light); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.mono { font-family: var(--font-mono); }
.text-green { color: var(--green); }
.text-gold  { color: var(--gold); }
.text-red   { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text) !important;
    white-space: nowrap;
}
.logo-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--green);
}
.logo-icon img {
    height: 36px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: var(--bg-alt);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* User dropdown */
.nav-dropdown { position: relative; }
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}
.nav-user-btn:hover { border-color: var(--border-dark); background: var(--bg-alt); }
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 6px;
    display: none;
    z-index: 100;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-light);
    transition: all var(--transition);
}
.dropdown-item:hover { background: var(--bg-alt); color: var(--text); }
.dropdown-item-admin { color: var(--gold) !important; }
.dropdown-item-danger { color: var(--red) !important; }
.dropdown-item-danger:hover { background: var(--red-light); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-ghost, .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--green);
    color: white;
    border-color: var(--green);
}
.btn-primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}
.btn-secondary {
    background: transparent;
    color: var(--green);
    border-color: var(--green);
}
.btn-secondary:hover {
    background: var(--green);
    color: white;
}
.btn-ghost {
    background: transparent;
    color: var(--text-light);
    border-color: var(--border);
}
.btn-ghost:hover {
    border-color: var(--border-dark);
    background: var(--bg-alt);
    color: var(--text);
}
.btn-danger {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}
.btn-danger:hover {
    background: var(--red);
    color: white;
}
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Flash Messages ---------- */
.flash-container {
    position: fixed;
    top: calc(var(--nav-h) + 12px);
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
}
.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: 0.88rem;
    animation: slideIn 0.25s ease;
}
@keyframes slideIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}
.flash-success { background: var(--green-light); color: #065f46; border-left: 4px solid var(--green); }
.flash-error   { background: var(--red-light);   color: #991b1b; border-left: 4px solid var(--red); }
.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.6;
    line-height: 1;
    padding: 0 0 0 8px;
}
.flash-close:hover { opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-light { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: white; }
.section-dark h2, .section-dark h3 { color: white; }
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header p { font-size: 1.05rem; color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(16,185,129,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(212,168,75,0.05) 0%, transparent 50%);
    pointer-events: none;
}
.hero-content { position: relative; max-width: 640px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.hero-headline { margin-bottom: 18px; }
.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.hero-note { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Coin Ticker Strip ---------- */
.coin-ticker-strip {
    position: relative;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    overflow: hidden;
    user-select: none;
}
.ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: ticker-scroll 55s linear infinite;
}
.coin-ticker-strip:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.3333%); }
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    white-space: nowrap;
}
.ticker-logo-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
.ticker-symbol {
    font-weight: 700;
    font-size: .85rem;
    color: var(--text);
}
.ticker-price {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--text-light);
}
.ticker-change {
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 600;
}
.ticker-up   { color: var(--green); }
.ticker-down { color: var(--red); }
.ticker-sep {
    color: var(--border-dark);
    font-size: .9rem;
    padding: 0 4px;
    flex-shrink: 0;
}
/* Fade edges */
.ticker-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.ticker-fade-left  { left: 0;  background: linear-gradient(to right,  #fff 0%, transparent 100%); }
.ticker-fade-right { right: 0; background: linear-gradient(to left, #fff 0%, transparent 100%); }

/* ---------- Hero Notices Bar (between hero and ticker) ---------- */
.hero-notices-bar {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.hero-notices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-size: 0.82rem;
    line-height: 1.55;
    overflow: hidden;
}
.hero-notice svg { flex-shrink: 0; margin-top: 2px; }
.hero-notice span { flex: 1; color: var(--text-light); }
.hero-notice strong { color: var(--text); }
.hero-notice--info {
    background: rgba(16,185,129,0.07);
    border-color: rgba(16,185,129,0.2);
}
.hero-notice--info svg { color: var(--green); }
.hero-notice--warn {
    background: rgba(212,168,75,0.08);
    border-color: rgba(212,168,75,0.25);
}
.hero-notice--warn svg { color: var(--gold); }
.hero-notice-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1.15rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 0 0 8px;
    opacity: .55;
    transition: opacity var(--transition);
    align-self: flex-start;
}
.hero-notice-close:hover { opacity: 1; }

[data-theme="dark"] .hero-notice--info { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.25); }
[data-theme="dark"] .hero-notice--warn { background: rgba(212,168,75,0.1);  border-color: rgba(212,168,75,0.3); }

/* ---------- Hero Split (two-column) ---------- */
.hero-split { padding: 80px 0 70px; }
.hero-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
/* Text always left, coins always right */
.hero-text  { position: relative; order: 1; }
.hero-coins { order: 2; }

/* Hero inline stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ---------- Coin Ticker ---------- */
.hero-coins {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
    position: relative;
}
.coins-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.coins-label::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(.8); }
}
.coins-list { display: flex; flex-direction: column; gap: .5rem; }
.coin-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    transition: background var(--transition);
}
.coin-card:hover { background: #eef0f2; }
.coin-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 800;
    flex-shrink: 0;
}
.coin-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.coin-symbol { font-weight: 700; font-size: .9rem; color: var(--text); }
.coin-price-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.coin-price { font-size: .9rem; font-weight: 600; color: var(--text); }
.coin-change { font-size: .75rem; font-weight: 600; }
.coin-up   { color: var(--green); }
.coin-down { color: var(--red); }
.coins-note { font-size: .72rem; color: var(--text-muted); margin-top: .75rem; text-align: center; }

/* ---------- Stats Bar ---------- */
.stats-bar {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-item {}
.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: box-shadow var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon {
    font-size: 2.2rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--green);
    margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 10px; }

/* ---------- Why Choose Us ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.why-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.why-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.why-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--green-light, rgba(16,185,129,.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--green);
}
.why-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.why-card p  { color: var(--text-muted); font-size: .9rem; line-height: 1.6; margin: 0; }

/* ---------- Cards ---------- */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}
.card-header h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; }
.card-body { padding: 24px; }
.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

/* ---------- Tables ---------- */
.table-responsive { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td {
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(16,185,129,0.03); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--bg-alt);
    color: var(--text-muted);
}
.badge-active   { background: var(--green-light);  color: #065f46; }
.badge-expired  { background: var(--red-light);    color: #991b1b; }
.badge-long     { background: #dbeafe; color: #1e40af; }
.badge-short    { background: #fce7f3; color: #9d174d; }
.badge-low      { background: var(--green-light);  color: #065f46; }
.badge-medium   { background: var(--gold-light);   color: #92400e; }
.badge-high     { background: var(--red-light);    color: #991b1b; }
.badge-admin    { background: #ede9fe; color: #5b21b6; }
.badge-lg { font-size: 0.82rem; padding: 6px 14px; }

/* ---------- Profit colors ---------- */
.profit-positive { color: var(--green); font-weight: 600; }
.profit-negative { color: var(--red);   font-weight: 600; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    background: white;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
.form-input:disabled {
    background: var(--bg-alt);
    color: var(--text-muted);
    cursor: not-allowed;
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-textarea-lg { resize: vertical; min-height: 260px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: -12px; margin-bottom: 16px; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.88rem; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- Auth Pages ---------- */
.auth-section {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-alt);
}
.auth-wrapper { width: 100%; max-width: 440px; }
.auth-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text) !important;
    margin-bottom: 16px;
}
.auth-header h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-header p  { color: var(--text-muted); }
.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ---------- Pricing Page ---------- */
.pricing-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 64px;
}
.pricing-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-md);
}
.pricing-featured {
    border-color: var(--green);
    box-shadow: 0 0 0 1px var(--green), var(--shadow-lg);
}
.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.pricing-plan { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-original-price {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.pricing-original-price s {
    text-decoration: line-through;
    text-decoration-color: var(--red);
    text-decoration-thickness: 2px;
    color: #9ca3af;
}
.pricing-original-price s span { font-size: .8rem; }
.pricing-first-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--green-dark);
    background: var(--green-light);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 6px;
}
.pricing-currency { font-size: 1.5rem; font-weight: 700; color: var(--text-muted); margin-top: 8px; }
.pricing-price .mono { font-size: 3.5rem; font-weight: 700; color: var(--text); line-height: 1; }
.pricing-period { color: var(--text-muted); font-size: 1rem; }
.pricing-sub { color: var(--text-muted); margin-bottom: 28px; }
.pricing-features {
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.pricing-features li svg { color: var(--green); flex-shrink: 0; }
.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.faq-section { margin-top: 64px; }
.faq-section h3 { font-family: var(--font-sans); text-align: center; margin-bottom: 28px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.faq-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.faq-item h4 { margin-bottom: 8px; }

/* ---------- Results Page ---------- */
.results-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.stat-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    text-align: center;
}
.stat-box-number { display: block; font-size: 1.7rem; font-weight: 700; }
.stat-box-label  { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.results-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 18px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 0.82rem;
}
.results-disclaimer p { color: var(--text-muted); margin: 0; }
.results-disclaimer svg { flex-shrink: 0; margin-top: 2px; color: var(--text-muted); }

/* ---------- Payment Method Modal ---------- */
.pay-modal .modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(3px);
    z-index: 1998;
}
.pay-modal-box {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 460px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1999;
    overflow: hidden;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
[data-theme="dark"] .pay-modal-box { background: #0f2235; }
.pay-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}
.pay-modal-body { padding: 20px; }
.modal-close-btn {
    background: none; border: none;
    font-size: 1.4rem; line-height: 1;
    color: var(--text-muted); cursor: pointer;
    padding: 2px 6px; border-radius: var(--radius-sm);
    transition: all var(--transition); flex-shrink: 0;
}
.modal-close-btn:hover { background: var(--bg-alt); color: var(--text); }
.pay-back-btn {
    display: inline-flex; align-items: center; gap: 4px;
    background: none; border: none;
    font-size: .85rem; font-weight: 600;
    color: var(--text-light); cursor: pointer;
    padding: 4px 8px; border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.pay-back-btn:hover { background: var(--bg-alt); color: var(--text); }

/* Payment method cards */
.pay-method-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition);
    margin-bottom: 10px;
}
.pay-method-card:last-child { margin-bottom: 0; }
.pay-method-card:not(.pay-method-disabled):hover {
    border-color: var(--green);
    box-shadow: var(--shadow-md);
}
.pay-method-disabled {
    opacity: .45;
    cursor: not-allowed;
}
[data-theme="dark"] .pay-method-card { background: rgba(255,255,255,.04); }
.pay-method-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pay-method-icon--stripe { background: rgba(99,91,255,.12); color: #635bff; }
.pay-method-icon--binance { background: rgba(240,185,11,.12); color: #F0B90B; }
.pay-method-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pay-method-name { font-weight: 600; font-size: .92rem; color: var(--text); }
.pay-method-sub  { font-size: .78rem; color: var(--text-muted); }

/* ---------- Binance Pay Button ---------- */
.btn-binance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: .9rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius);
    border: 2px solid #F0B90B;
    background: #FFF8DC;
    color: #7A5C00;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-binance:hover { background: #F0B90B; color: #fff; }
[data-theme="dark"] .btn-binance { background: rgba(240,185,11,.12); color: #F0B90B; }
[data-theme="dark"] .btn-binance:hover { background: #F0B90B; color: #1a1200; }

/* ---------- Binance Pay Page ---------- */
.binance-pay-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.binance-id-box, .binance-amount-box {
    flex: 1;
    min-width: 200px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.binance-id-value { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.binance-steps { display: flex; flex-direction: column; gap: 10px; }
.binance-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .88rem;
    color: var(--text-light);
}
.binance-step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: .75rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Screenshot upload */
.screenshot-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.screenshot-upload-area:hover { border-color: var(--green); }
.screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    cursor: pointer;
    color: var(--text-muted);
}
.screenshot-placeholder svg { color: var(--border-dark); }
.screenshot-preview { position: relative; }
.screenshot-preview img { width: 100%; max-height: 300px; object-fit: contain; display: block; background: var(--bg-alt); }
.screenshot-remove {
    position: absolute; top: 8px; right: 8px;
    background: rgba(0,0,0,.6); color: white;
    border: none; border-radius: var(--radius-sm);
    padding: 4px 10px; cursor: pointer; font-size: .82rem;
}

/* ---------- Admin Payments ---------- */
.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.payment-review-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
[data-theme="dark"] .payment-review-card { background: #112540; }
.payment-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--border);
}
.payment-review-user { font-weight: 600; font-size: .95rem; }
.payment-review-email { font-size: .8rem; margin-top: 2px; }
.payment-review-details {
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.payment-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
}
.payment-screenshot-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    min-height: 160px;
    cursor: pointer;
}
.payment-screenshot-wrap.img-error::after {
    content: 'Screenshot unavailable';
    display: flex; align-items: center; justify-content: center;
    padding: 40px; color: var(--text-muted); font-size: .85rem;
}
.payment-screenshot-thumb {
    width: 100%; max-height: 200px; object-fit: cover; display: block;
    transition: transform .2s ease;
}
.payment-screenshot-wrap:hover .payment-screenshot-thumb { transform: scale(1.02); }
.payment-screenshot-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.35);
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    color: white; font-size: .85rem; font-weight: 600;
    opacity: 0; transition: opacity .2s ease;
}
.payment-screenshot-wrap:hover .payment-screenshot-overlay { opacity: 1; }
.payment-review-actions {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
}

/* Sidebar badge (pending count) */
.sidebar-badge {
    margin-left: auto;
    background: var(--red);
    color: white;
    font-size: .68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}

/* badge-pending */
.badge-pending { background: rgba(212,168,75,.15); color: var(--gold); }
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: white;
    font-size: .7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    margin-left: 6px;
    min-width: 18px;
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-img-wrap { display: block; overflow: hidden; }
.blog-card-img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.3s; }
.blog-card:hover .blog-card-img { transform: scale(1.03); }
.blog-card-body { padding: 24px; }
.blog-meta { margin-bottom: 10px; }
.blog-title { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.blog-title a { color: var(--text); }
.blog-title a:hover { color: var(--green); }
.blog-excerpt { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
}
.blog-read-more:hover { gap: 10px; }

/* Blog post */
.blog-post-header { margin-bottom: 36px; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.back-link:hover { color: var(--text); }
.blog-post-date { display: block; margin-bottom: 10px; }
.blog-post-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.blog-post-content {
    font-size: 1rem;
    line-height: 1.85;
}
.blog-post-content h2 { font-size: 1.4rem; margin: 28px 0 10px; }
.blog-post-content p  { margin-bottom: 18px; }
.blog-post-footer {
    display: flex;
    gap: 12px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

/* ---------- About ---------- */
.about-content { margin-bottom: 48px; }
.about-block { margin-bottom: 40px; }
.about-block h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.methodology-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 16px; }
.methodology-item {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 20px;
}
.methodology-icon { font-size: 1.6rem; margin-bottom: 8px; }
.methodology-item h4 { margin-bottom: 6px; }
.about-cta {
    text-align: center;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.about-cta h3 { margin-bottom: 10px; }
.about-cta p { margin-bottom: 24px; }

/* ---------- Contact ---------- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}
.contact-info-item svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { display: block; margin-bottom: 4px; font-size: 0.9rem; }
.contact-info-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ---------- Sidebar Layout ---------- */
.app-layout {
    display: flex;
    min-height: calc(100vh - var(--nav-h));
}
.sidebar {
    width: var(--sidebar-w);
    background: white;
    border-right: 1px solid var(--border);
    padding: 20px 12px;
    flex-shrink: 0;
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
}
.sidebar-header {
    padding: 8px 12px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.sidebar-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all var(--transition);
}
.sidebar-link:hover { background: var(--bg-alt); color: var(--text); }
.sidebar-link.active { background: var(--green-light); color: var(--green-dark); font-weight: 600; }
.sidebar-link svg { flex-shrink: 0; }
.sidebar-divider { height: 1px; background: var(--border); margin: 10px 0; }
.sidebar-link-danger { color: var(--red) !important; }
.sidebar-link-danger:hover { background: var(--red-light) !important; }
.main-content {
    flex: 1;
    padding: 28px 32px;
    max-width: calc(100% - var(--sidebar-w));
    overflow-x: auto;
}

/* ---------- Page Header ---------- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}
.page-header h1 { font-size: 1.7rem; }
.page-header p { margin: 4px 0 0; }
.page-header-meta { display: flex; align-items: center; gap: 10px; }

/* ---------- Dashboard Cards ---------- */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon-green  { background: var(--green-light); color: var(--green-dark); }
.stat-icon-blue   { background: #dbeafe; color: #1e40af; }
.stat-icon-gold   { background: var(--gold-light); color: #92400e; }
.stat-icon-purple { background: #ede9fe; color: #5b21b6; }
.stat-card-label  { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.stat-card-value  { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.stat-card-sub    { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Signal Cards (member) ---------- */
.signals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.signal-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: box-shadow var(--transition);
}
.signal-card:hover { box-shadow: var(--shadow-md); }
.signal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.signal-pair { display: flex; align-items: center; gap: 10px; }
.signal-pair strong { font-size: 1.1rem; }
.signal-badges { display: flex; gap: 6px; }
.signal-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 10px;
}
.signal-price-item { display: flex; flex-direction: column; gap: 2px; }
.signal-price-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.signal-price-value { font-size: 1rem; font-weight: 600; }
.signal-price-divider { color: var(--text-muted); margin: 0 auto; }
.signal-stop { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; margin-bottom: 12px; }
.signal-rr {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
    margin-bottom: 14px;
}
.signal-rr-item { display: flex; flex-direction: column; gap: 2px; }
.signal-rr-item span:first-child { font-weight: 700; font-size: 0.9rem; }
.signal-rr-item span:last-child { font-size: 0.72rem; color: var(--text-muted); }
.signal-notes {
    background: var(--gold-light);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.82rem;
    color: #92400e;
    margin-bottom: 12px;
}
.signal-footer { text-align: right; }

/* ---------- Info Box ---------- */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #dbeafe;
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 0.82rem;
}
.info-box svg { flex-shrink: 0; margin-top: 2px; color: #1e40af; }
.info-box p { color: #1e40af; margin: 0; }

/* ---------- Billing Page ---------- */
.billing-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: flex-start;
}
.subscription-badge { margin-bottom: 20px; }
.subscription-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}
.sub-detail-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; }
.sub-detail-value { font-size: 0.95rem; font-weight: 600; margin-top: 4px; }
.renewal-section { border-top: 1px solid var(--border); padding-top: 20px; }
.renewal-section h4 { margin-bottom: 6px; }
.renewal-section p { margin-bottom: 14px; }
.secure-badge { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; }
.secure-badge svg { color: var(--green); }
.feature-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ---------- Profile Page ---------- */
.profile-layout { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: flex-start; }
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--green);
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}
.section-divider { margin: 24px 0 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.section-divider h4 { margin-bottom: 4px; }

/* ---------- Admin Dashboard extras ---------- */
.quick-actions { margin-top: 28px; }
.quick-actions h3 { font-family: var(--font-sans); margin-bottom: 14px; }
.quick-actions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition);
}
.quick-action-card:hover {
    border-color: var(--green);
    color: var(--green);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.quick-action-card svg { color: inherit; }

/* ---------- Modals ---------- */
.modal { display: none; }
.modal.open { display: block; }
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    z-index: 10000;
}
.modal-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: calc(100% - 40px);
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    padding: 28px;
}
.modal-box-lg { max-width: 780px; }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}
.modal-close:hover { background: var(--bg-alt); }
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* ---------- Action buttons ---------- */
.action-btns { display: flex; gap: 6px; align-items: center; }
.inline-form { display: inline; }

/* ---------- Admin Settings ---------- */
.settings-layout {}
.settings-divider { margin: 28px 0 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.env-display { display: flex; flex-direction: column; gap: 10px; }
.env-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.env-key { font-size: 0.82rem; color: var(--text); }
.env-val { font-size: 0.8rem; }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 16px; color: var(--border-dark); }
.empty-state h3 { font-family: var(--font-sans); color: var(--text-muted); margin-bottom: 8px; }
.empty-state p { margin-bottom: 20px; }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.75);
    padding: 56px 0 32px;
}
.footer-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: white !important;
    margin-bottom: 10px;
}
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-links h4 { color: white; font-family: var(--font-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links ul a { color: rgba(255,255,255,0.55); font-size: 0.88rem; transition: color var(--transition); }
.footer-links ul a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.82rem; margin-bottom: 6px; }
.footer-disclaimer { font-size: 0.75rem !important; line-height: 1.6; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
    .signals-grid    { grid-template-columns: 1fr; }
    .billing-layout  { grid-template-columns: 1fr; }
    .profile-layout  { grid-template-columns: 1fr; }
    .footer-grid     { grid-template-columns: 1fr 1fr; }
    .results-stats   { grid-template-columns: repeat(2, 1fr); }
    .quick-actions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hero-split-inner {
        grid-template-columns: 1fr;
    }
    /* On mobile: text on top, coins below */
    .hero-text  { order: 1; }
    .hero-coins { order: 2; }
}

@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }

    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    .nav-menu.open { display: flex; }
    .nav-links { flex-direction: column; width: 100%; }
    .nav-link { padding: 10px 14px; width: 100%; }
    .nav-actions { width: 100%; justify-content: flex-start; }

    .sidebar { display: none; }
    .main-content { max-width: 100%; padding: 20px 16px; }
    .app-layout { display: block; }

    .features-grid  { grid-template-columns: 1fr; }
    .why-grid       { grid-template-columns: 1fr; }
    .stats-grid     { grid-template-columns: repeat(2, 1fr); }
    .blog-grid         { grid-template-columns: 1fr; }
    .faq-grid       { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .methodology-grid { grid-template-columns: 1fr; }
    .form-grid      { grid-template-columns: 1fr; }
    .subscription-details { grid-template-columns: 1fr; }

    .hero  { padding: 60px 0 48px; }
    .section { padding: 48px 0; }

    .flash-container { left: 12px; right: 12px; max-width: 100%; }
    .auth-card { padding: 28px 20px; }
    .modal-box { padding: 20px; }
}

@media (max-width: 480px) {
    .nav-logo { font-size: 1.05rem; gap: 8px; }
    .logo-icon img { height: 28px; }
    .dashboard-cards { grid-template-columns: 1fr; }
    .results-stats   { grid-template-columns: 1fr 1fr; }
    .hero-actions    { flex-direction: column; }
    .page-header     { flex-direction: column; }
    .footer-grid     { grid-template-columns: 1fr; }
}

/* ---------- Locked Results (public teaser) ---------- */
.locked-results-wrap {
    position: relative;
}
.locked-results-blur {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    opacity: .55;
}
.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.locked-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 420px;
    width: 90%;
}
.locked-icon {
    width: 72px;
    height: 72px;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--green);
}
.locked-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text);
    margin: 0 0 .6rem;
}
.locked-box p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}
.locked-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Proof Grid ---------- */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.proof-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
}
.proof-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.proof-img-wrap {
    position: relative;
    display: block;
    background: var(--bg-alt);
    aspect-ratio: 16/9;
    overflow: hidden;
}
.proof-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.proof-card:hover .proof-img { transform: scale(1.03); }
.proof-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16,185,129,.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity .2s;
}
.proof-img-wrap:hover .proof-img-overlay { opacity: 1; }
.proof-img-missing {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: .82rem;
}
.proof-card-body {
    padding: 1rem 1.125rem 1.125rem;
}
.proof-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}
.proof-card-pl {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: .5rem;
}
.proof-card-summary {
    font-size: .84rem;
    line-height: 1.5;
    margin: 0;
}

/* ---------- Previous Month Record Section ---------- */
.prev-month-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.prev-month-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-muted);
    margin-bottom: .4rem;
}
.prev-month-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text);
    margin: 0;
}
.prev-month-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.prev-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.prev-stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
}
.prev-stat-label {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 500;
}
@media (max-width: 600px) {
    .prev-month-header { flex-direction: column; align-items: flex-start; }
    .prev-month-stats  { gap: 1.25rem; }
    .prev-stat         { align-items: flex-start; }
}

/* ---------- Public Results Card Grid ---------- */
.public-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}
.result-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}
.result-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.result-card-img-wrap {
    position: relative;
    display: block;
    background: var(--bg-alt);
    aspect-ratio: 16/9;
    overflow: hidden;
}
.result-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.result-card:hover .result-card-img { transform: scale(1.04); }
.result-card-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16,185,129,.75);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s;
}
.result-card-img-wrap:hover .result-card-img-overlay { opacity: 1; }
.result-card-no-img {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: var(--text-muted);
    font-size: .8rem;
    min-height: 140px;
}
.result-card-body {
    padding: 1.1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    flex: 1;
}
.result-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.result-card-pair { font-size: .95rem; }
.result-card-pl { line-height: 1; }
.result-card-summary {
    font-size: .84rem;
    line-height: 1.5;
    margin: 0;
}
.result-card-footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: auto;
    padding-top: .6rem;
    border-top: 1px solid var(--border);
}
.result-card-meta {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: var(--text-muted);
}
.result-card-posted { color: var(--green-dark); font-weight: 500; }


/* ---------- Period Tabs (pricing / billing) ---------- */
.period-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px;
    width: fit-content;
    margin: 0 auto 2.5rem;
}
.period-tabs-sm {
    margin-bottom: 1.25rem;
    margin-left: 0;
    justify-content: flex-start;
}
.period-tab {
    background: transparent;
    border: none;
    border-radius: 50px;
    padding: .45rem 1.25rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: background .15s, color .15s;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.period-tab.active {
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.period-save {
    background: var(--green-light);
    color: var(--green-dark);
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
}

/* ---------- Pricing Grid (multiple plans) ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ---------- Billing Plan Cards ---------- */
.billing-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.billing-plan-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.125rem 1.25rem;
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.billing-plan-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.billing-plan-name {
    font-weight: 600;
    color: var(--text);
}
.billing-plan-duration {
    font-size: .82rem;
    margin-top: 2px;
}
.billing-plan-price {
    text-align: right;
}
.billing-plan-price .mono {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}
.billing-plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .84rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.billing-plan-features li::before {
    content: '✓ ';
    color: var(--green);
    font-weight: 600;
}

/* ── Reviews Section ── */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.review-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.review-stars {
    display: flex;
    gap: 2px;
}
.review-star {
    font-size: 1.1rem;
    color: var(--border);
}
.review-star-filled {
    color: #F59E0B;
}
.review-body {
    font-size: .92rem;
    line-height: 1.65;
    color: var(--text);
    flex: 1;
    margin: 0;
}
.review-author {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.review-name {
    font-weight: 600;
    font-size: .88rem;
    color: var(--text);
}
.review-date {
    font-size: .78rem;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE — COMPREHENSIVE FIXES
   ══════════════════════════════════════════════════════════════ */

/* Hero coins widget — was showing pure white in dark mode */
[data-theme="dark"] .hero-coins {
    background: #112540;
    border-color: var(--border);
}
[data-theme="dark"] .coin-card:hover { background: rgba(30,80,140,.25); }

/* Nav links — hover contrast too low */
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    background: rgba(255,255,255,.1);
    color: #e2e8f4;
}

/* Ghost button hover — barely visible in dark mode */
[data-theme="dark"] .btn-ghost {
    border-color: var(--border-dark);
    color: var(--text-light);
}
[data-theme="dark"] .btn-ghost:hover {
    background: rgba(255,255,255,.08);
    border-color: var(--border-dark);
    color: var(--text);
}

/* Auth pages — card was pure white */
[data-theme="dark"] .auth-card {
    background: #112540;
    border-color: var(--border);
}
[data-theme="dark"] .auth-section { background: #0b1929; }

/* Stats bar & boxes (public results page) */
[data-theme="dark"] .stats-bar  { background: #0f2235; border-color: var(--border); }
[data-theme="dark"] .stat-box   { background: #112540; border-color: var(--border); }

/* Signal cards (member area) */
[data-theme="dark"] .signal-card { background: #112540; }

/* FAQ items */
[data-theme="dark"] .faq-item { background: #112540; }

/* Contact info items */
[data-theme="dark"] .contact-info-item { background: #112540; }

/* Badge colours — light pastels are unreadable on dark bg */
[data-theme="dark"] .badge-long  { background: rgba(59,130,246,.18);  color: #93c5fd; }
[data-theme="dark"] .badge-short { background: rgba(236,72,153,.15);  color: #f9a8d4; }
[data-theme="dark"] .badge-admin { background: rgba(139,92,246,.15);  color: #c4b5fd; }

/* Dashboard stat icon colours */
[data-theme="dark"] .stat-icon-blue   { background: rgba(59,130,246,.18);  color: #93c5fd; }
[data-theme="dark"] .stat-icon-purple { background: rgba(139,92,246,.18);  color: #c4b5fd; }

/* Info box — blue panel */
[data-theme="dark"] .info-box           { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.2); }
[data-theme="dark"] .info-box svg       { color: #93c5fd; }
[data-theme="dark"] .info-box p         { color: #93c5fd; }

/* Signal notes — gold panel */
[data-theme="dark"] .signal-notes { background: rgba(212,168,75,.12); color: var(--gold); }

/* Sidebar hover & active states */
[data-theme="dark"] .sidebar-link:hover  { background: rgba(255,255,255,.07); color: var(--text); }
[data-theme="dark"] .sidebar-link.active { background: rgba(16,185,129,.18);  color: var(--green); }
[data-theme="dark"] .sidebar-link-danger:hover { background: rgba(239,68,68,.12) !important; }

/* Pricing first-purchase label */
[data-theme="dark"] .pricing-first-label { background: rgba(16,185,129,.15); color: var(--green); }

/* Hero stats divider line */
[data-theme="dark"] .hero-stat-divider { background: var(--border-dark); }
[data-theme="dark"] .hero-stats        { border-top-color: var(--border-dark); }

/* Coin ticker strip background (belt-and-braces) */
[data-theme="dark"] .coin-ticker-strip { background: #0f2235; }

/* Dropdown menu */
[data-theme="dark"] .dropdown-menu { background: #112540; border-color: var(--border); }

/* Table header */
[data-theme="dark"] .table th { background: #0d2040; color: var(--text-muted); }

/* Period tabs (Pending / All tabs on admin reviews, billing tabs) */
[data-theme="dark"] .period-tab {
    background: #0f2235;
    color: var(--text-light);
    border-color: var(--border);
}
[data-theme="dark"] .period-tab:hover { border-color: var(--green); color: var(--text); }

/* Empty state text */
[data-theme="dark"] .empty-state h3 { color: var(--text); }

/* Form inputs — placeholder & select arrow */
[data-theme="dark"] select.form-input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a7a9a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

/* Action buttons in tables */
[data-theme="dark"] .btn-sm.btn-ghost {
    border-color: var(--border-dark);
    color: var(--text-light);
}
[data-theme="dark"] .btn-sm.btn-ghost:hover {
    background: rgba(255,255,255,.08);
    color: var(--text);
}

/* Locked results overlay */
[data-theme="dark"] .locked-results-blur { opacity: .35; }

/* Card headers & footers */
[data-theme="dark"] .card-header { border-bottom-color: var(--border); }
[data-theme="dark"] .card-footer { background: #0b1929; border-top-color: var(--border); }

/* ── Modal Dark Mode Fix ── */
[data-theme="dark"] .modal-box {
    background: #112540;
    border: 1px solid var(--border);
    color: var(--text);
}
[data-theme="dark"] .modal-header {
    border-bottom-color: var(--border);
}
[data-theme="dark"] .modal-header h3 {
    color: var(--text);
}
[data-theme="dark"] .modal-close {
    border-color: var(--border);
    color: var(--text-muted);
}
[data-theme="dark"] .modal-close:hover {
    background: rgba(255,255,255,.08);
    color: var(--text);
}
[data-theme="dark"] .modal-actions {
    border-top-color: var(--border);
}

/* ── Live Updates (member dashboard) ── */
.live-updates-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.live-update-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(16,185,129,.08) 0%, rgba(16,185,129,.03) 100%);
    border: 1px solid rgba(16,185,129,.35);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 16px 18px;
    animation: slideInLeft .3s ease;
}
@keyframes slideInLeft {
    from { transform: translateX(-8px); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}
.live-update-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}
.live-pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
    animation: pulse-live 2s ease-in-out infinite;
}
@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
    50%       { box-shadow: 0 0 0 7px rgba(16,185,129,0); }
}
.live-update-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text);
    margin-bottom: 4px;
}
.live-update-body {
    font-size: .9rem;
    color: var(--text);
    line-height: 1.6;
}
.live-update-meta {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: 6px;
}
.live-badge {
    flex-shrink: 0;
    background: var(--green);
    color: #fff;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 8px;
    border-radius: 999px;
    align-self: flex-start;
}
[data-theme="dark"] .live-update-card {
    background: linear-gradient(135deg, rgba(16,185,129,.1) 0%, rgba(16,185,129,.04) 100%);
    border-color: rgba(16,185,129,.3);
    border-left-color: var(--green);
}

/* live update full card (member live-updates page) */
.live-update-card-full { padding: 20px 22px; }
.live-update-card-full .live-update-body { font-size: .95rem; }

/* ── Social Links ───────────────────────────────────────────────────────── */
/* Hero social row */
.hero-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.hero-socials-label {
    font-size: .78rem;
    color: var(--text-muted);
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-right: 4px;
}
.hero-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    transition: background .18s, transform .18s, border-color .18s;
    text-decoration: none;
}
.hero-social-link:hover {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.3);
    transform: translateY(-2px);
}
.hero-social-link svg { display: block; }

/* Footer social row */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    transition: background .18s, transform .18s;
    text-decoration: none;
}
.footer-social-link:hover {
    background: rgba(255,255,255,.15);
    transform: translateY(-2px);
}
.footer-social-link svg { display: block; }

[data-theme="dark"] .hero-social-link  { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .hero-social-link:hover  { background: rgba(255,255,255,.14); }
[data-theme="dark"] .footer-social-link { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .footer-social-link:hover { background: rgba(255,255,255,.12); }

/* ── Floating WhatsApp Button ───────────────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 13px 18px 13px 16px;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    font-size: .85rem;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s, padding .2s;
    max-width: 54px;
    overflow: hidden;
    white-space: nowrap;
}
.wa-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37,211,102,.55);
    max-width: 200px;
    padding: 13px 20px 13px 16px;
}
.wa-float svg { flex-shrink: 0; }
.wa-float-label {
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: opacity .2s .05s, max-width .2s;
}
.wa-float:hover .wa-float-label {
    opacity: 1;
    max-width: 140px;
}
