/* TickerSlate — Main Stylesheet */
:root {
    --bg:         #0A0F1E;
    --bg-card:    #111827;
    --bg-card-2:  #0F172A;
    --border:     #1E293B;
    --text:       #F1F5F9;
    --muted:      #94A3B8;
    --dim:        #64748B;
    --green:      #10B981;
    --green-dark: #059669;
    --red:        #EF4444;
    --yellow:     #F59E0B;
    --radius:     12px;
    --radius-sm:  8px;
    --font:       'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── NAV ─── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(10,15,30,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}
.nav-logo span { color: var(--green); }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    border: none;
    text-align: center;
}
.btn-primary {
    background: var(--green);
    color: #fff;
}
.btn-primary:hover { background: var(--green-dark); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ─── TICKER TAPE ─── */
.ticker-tape {
    overflow: hidden;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.ticker-tape-inner {
    display: flex;
    gap: 40px;
    white-space: nowrap;
    animation: tape 30s linear infinite;
}
.ticker-item {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
}
.ticker-item .up   { color: var(--green); }
.ticker-item .down { color: var(--red); }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── HERO ─── */
.hero {
    padding: 80px 32px 100px;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-block;
    background: rgba(16,185,129,.12);
    color: var(--green);
    border: 1px solid rgba(16,185,129,.3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.hero h1 em {
    color: var(--green);
    font-style: normal;
}
.hero p {
    font-size: 18px;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto 40px;
}

/* ─── SUBSCRIBE FORM (hero inline) ─── */
.subscribe-inline {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto 16px;
}
.subscribe-inline input {
    flex: 1;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: border-color .2s;
}
.subscribe-inline input:focus { border-color: var(--green); }
.subscribe-inline input::placeholder { color: var(--dim); }
.hero-note { font-size: 13px; color: var(--dim); }

/* ─── STATS ─── */
.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 32px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-value { font-size: 32px; font-weight: 800; color: var(--green); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ─── SECTIONS ─── */
.section {
    padding: 80px 32px;
    max-width: 1040px;
    margin: 0 auto;
}
.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--muted); max-width: 520px; }

/* ─── HOW IT WORKS ─── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.step-num {
    width: 40px; height: 40px;
    background: rgba(16,185,129,.15);
    border: 1px solid rgba(16,185,129,.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    color: var(--green);
    font-size: 16px;
    margin-bottom: 20px;
}
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step-card p  { color: var(--muted); font-size: 14px; }

/* ─── SAMPLE PICK ─── */
.sample-section { background: var(--bg-card-2); }

.picks-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 40px;
    max-width: 680px;
}
.picks-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.picks-card-header h3 { font-size: 16px; font-weight: 700; }
.picks-card-header span { font-size: 12px; color: var(--dim); }

.pick-row {
    display: grid;
    grid-template-columns: 90px 100px 1fr;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}
.pick-row:last-child { border-bottom: none; }
.pick-ticker { font-size: 18px; font-weight: 800; }
.pick-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
}
.badge-buy  { background: rgba(16,185,129,.15); color: var(--green); border: 1px solid rgba(16,185,129,.3); }
.badge-sell { background: rgba(239,68,68,.15);  color: var(--red);   border: 1px solid rgba(239,68,68,.3); }
.badge-hold { background: rgba(245,158,11,.15); color: var(--yellow); border: 1px solid rgba(245,158,11,.3); }
.pick-rationale { font-size: 13px; color: var(--muted); }

/* ─── SUBSCRIPTION SECTION ─── */
.subscribe-section {
    background: linear-gradient(135deg, #0F172A 0%, #111827 100%);
    border-top: 1px solid var(--border);
}
.subscribe-box {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.subscribe-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-top: 40px;
    text-align: left;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: border-color .2s;
    appearance: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--green); }
.form-group input::placeholder { color: var(--dim); }
.form-submit { width: 100%; }
.form-fine { font-size: 12px; color: var(--dim); margin-top: 12px; text-align: center; }

/* ─── FEATURES ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 48px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--muted); }

/* ─── FOOTER ─── */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo { font-size: 16px; font-weight: 800; }
.footer-logo span { color: var(--green); }
.footer p { font-size: 13px; color: var(--dim); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--dim); transition: color .2s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ─── ALERTS ─── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: var(--green); }
.alert-error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: var(--red); }

/* ─── ADMIN ─── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    flex-shrink: 0;
}
.admin-sidebar .logo { padding: 0 24px 24px; font-size: 18px; font-weight: 800; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.admin-sidebar .logo span { color: var(--green); }
.admin-sidebar a { display: block; padding: 10px 24px; color: var(--muted); font-size: 14px; font-weight: 500; transition: all .2s; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(16,185,129,.08); color: var(--text); text-decoration: none; border-left: 3px solid var(--green); }
.admin-content { flex: 1; padding: 40px; overflow: auto; }
.admin-header { margin-bottom: 32px; }
.admin-header h1 { font-size: 26px; font-weight: 800; }
.admin-header p  { color: var(--muted); margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 10px 16px; text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.card h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .nav { padding: 14px 20px; }
    .nav-links { display: none; }
    .hero { padding: 60px 20px 80px; }
    .subscribe-inline { flex-direction: column; }
    .stats { gap: 24px; flex-wrap: wrap; }
    .section { padding: 60px 20px; }
    .pick-row { grid-template-columns: 70px 90px 1fr; }
    .footer { flex-direction: column; text-align: center; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-content { padding: 24px 16px; }
}
