/* MorningMedico v3 — Musk Design: stark, minimal, conversion-obsessed */

:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --accent: #0891b2;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: transparent;
    padding: 0 32px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: white;
    font-size: 20px; font-weight: 700;
    transition: color 0.3s;
}
.navbar.scrolled .navbar-brand { color: var(--text); }
.navbar-brand span { font-size: 22px; }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: white; }
.navbar.scrolled .nav-links a { color: var(--text-light); }
.navbar.scrolled .nav-links a:hover { color: var(--text); }
.nav-cta {
    background: rgba(255,255,255,0.12) !important;
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 8px;
    font-weight: 600 !important;
    border: 1px solid rgba(255,255,255,0.15);
}
.nav-cta:hover { background: rgba(255,255,255,0.2) !important; }
.navbar.scrolled .nav-cta {
    background: var(--text) !important;
    color: white !important;
    border-color: var(--text);
}
.navbar.scrolled .nav-cta:hover { opacity: 0.9; }

/* ===== HERO MUSK — full viewport, one sentence, one decision ===== */
.hero-musk {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy);
    position: relative; overflow: hidden;
    padding: 120px 24px 80px;
}
.hero-musk-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(13,148,136,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(8,145,178,0.08) 0%, transparent 40%);
    pointer-events: none;
}
.hero-musk-inner {
    position: relative; z-index: 1;
    text-align: center; max-width: 720px;
}
.hero-musk-badge {
    display: inline-block;
    font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 24px;
}
.hero-musk h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900; color: white;
    line-height: 1.05; letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.hero-musk-sub {
    font-size: 1.25rem; color: rgba(255,255,255,0.5);
    max-width: 520px; margin: 0 auto 40px;
    line-height: 1.6;
}
.hero-musk-form {
    display: flex; gap: 0;
    max-width: 480px; margin: 0 auto 16px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px; overflow: hidden;
    transition: border-color 0.2s;
}
.hero-musk-form:focus-within {
    border-color: rgba(255,255,255,0.3);
}
.hero-musk-form input {
    flex: 1; padding: 16px 20px;
    background: transparent; border: none;
    color: white; font-size: 16px; outline: none;
}
.hero-musk-form input::placeholder { color: rgba(255,255,255,0.3); }
.hero-musk-form button {
    padding: 16px 28px;
    background: white; color: var(--navy);
    border: none; font-size: 15px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: opacity 0.2s;
}
.hero-musk-form button:hover { opacity: 0.9; }
.hero-musk-trust {
    font-size: 13px; color: rgba(255,255,255,0.3);
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.hero-musk-trust span { color: var(--success); }

.form-message-hero {
    font-size: 14px; margin-top: 8px; min-height: 20px;
    text-align: center;
}
.form-message-hero.success { color: var(--success); }
.form-message-hero.error { color: var(--error); }

/* ===== PROOF SECTION — numbers, not words ===== */
.proof-section {
    background: white;
    border-bottom: 1px solid var(--border);
}
.proof-numbers {
    display: flex; justify-content: center; align-items: center;
    gap: 0; max-width: 900px; margin: 0 auto;
    padding: 48px 24px;
    flex-wrap: wrap;
}
.proof-stat {
    text-align: center; padding: 0 40px;
    flex: 1; min-width: 140px;
}
.proof-num {
    font-size: 2.5rem; font-weight: 900;
    color: var(--text); letter-spacing: -0.02em;
    line-height: 1;
}
.proof-label {
    font-size: 13px; color: var(--text-light);
    margin-top: 8px; text-transform: uppercase;
    letter-spacing: 0.5px; font-weight: 500;
}
.proof-divider {
    width: 1px; height: 48px;
    background: var(--border);
    flex-shrink: 0;
}

/* ===== PRODUCT SECTION — show the actual product ===== */
.product-section {
    background: var(--bg);
    padding: 80px 24px;
}
.product-inner {
    max-width: 900px; margin: 0 auto;
}
.product-label {
    font-size: 13px; font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase; letter-spacing: 1.5px;
    text-align: center; margin-bottom: 32px;
}
.product-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(13,148,136,0.08);
}
.product-card-icon {
    font-size: 24px; margin-bottom: 12px;
}
.product-card-cat {
    font-size: 11px; font-weight: 700;
    color: var(--primary);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 8px;
}
.product-card-title {
    font-size: 15px; font-weight: 600;
    color: var(--text); line-height: 1.5;
}
.product-note {
    text-align: center; margin-top: 32px;
    font-size: 14px; color: var(--text-light);
    font-style: italic;
}

/* ===== CTA MUSK — final ask ===== */
.cta-musk {
    background: var(--navy);
    padding: 80px 24px;
    text-align: center;
}
.cta-musk-inner {
    max-width: 560px; margin: 0 auto;
}
.cta-musk h2 {
    font-size: 2rem; font-weight: 800;
    color: white; margin-bottom: 32px;
    letter-spacing: -0.02em;
}
.cta-musk .hero-musk-form {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.12);
}
.cta-musk .form-message-hero {
    color: rgba(255,255,255,0.6);
}
.cta-musk .form-message-hero.success { color: var(--success); }
.cta-musk .form-message-hero.error { color: var(--error); }
.cta-musk-count {
    font-size: 13px; color: rgba(255,255,255,0.3);
    margin-top: 16px;
}

/* ===== FOOTER MUSK — minimal ===== */
.footer-musk {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 32px 24px; text-align: center;
    font-size: 13px;
}
.footer-musk a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-musk a:hover { color: white; }
.footer-musk span { color: rgba(255,255,255,0.15); margin: 0 8px; }
.footer-musk p {
    color: rgba(255,255,255,0.2);
    margin-top: 12px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-musk { padding: 100px 16px 60px; }
    .hero-musk h1 { font-size: 2.8rem; }
    .hero-musk-sub { font-size: 1.05rem; }
    .hero-musk-form { flex-direction: column; }
    .hero-musk-form button { padding: 14px; }
    .proof-numbers { flex-direction: column; gap: 24px; padding: 32px 24px; }
    .proof-divider { width: 48px; height: 1px; }
    .proof-stat { padding: 0; }
    .product-preview { grid-template-columns: 1fr; }
    .cta-musk h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .hero-musk h1 { font-size: 2.2rem; }
    .proof-num { font-size: 2rem; }
}

/* ===== ADMIN STYLES (kept from original) ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 260px; background: var(--text); color: white; padding: 24px 0; position: fixed; height: 100vh; overflow-y: auto; }
.admin-sidebar .logo { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 16px; }
.admin-sidebar .logo h2 { font-size: 20px; font-weight: 700; }
.admin-sidebar .logo small { color: rgba(255,255,255,0.5); font-size: 12px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: rgba(255,255,255,0.7); text-decoration: none; transition: all 0.2s; font-size: 15px; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.1); color: white; }
.admin-nav a.active { border-left: 3px solid var(--primary-light); }
.admin-main { flex: 1; margin-left: 260px; padding: 32px; background: var(--bg); }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.admin-header h1 { font-size: 1.5rem; font-weight: 700; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 24px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-header h2 { font-size: 1.1rem; font-weight: 700; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.stat-card .label { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .sub { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.table-container { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
table.admin-table th { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); }
table.admin-table tr:hover { background: #f8fafc; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; }
.badge.active { background: #d1fae5; color: #065f46; }
.badge.pending { background: #fef3c7; color: #92400e; }
.badge.unsubscribed { background: #fee2e2; color: #991b1b; }
.badge.draft { background: #e2e8f0; color: #475569; }
.badge.sent { background: #d1fae5; color: #065f46; }
.badge.approved { background: #dbeafe; color: #1e40af; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--error); color: white; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.form-group textarea { min-height: 120px; resize: vertical; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0fdfa 0%, #e0f7fa 50%, #f0f9ff 100%); }
.login-card { background: var(--surface); border-radius: 16px; padding: 48px; width: 100%; max-width: 400px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.login-card h1 { text-align: center; margin-bottom: 8px; font-size: 1.8rem; }
.login-card .subtitle { text-align: center; color: var(--text-light); margin-bottom: 32px; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: white; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.article-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; display: flex; gap: 16px; align-items: flex-start; }
.article-card .article-info { flex: 1; }
.article-card .article-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.article-card .article-info p { color: var(--text-light); font-size: 14px; line-height: 1.5; }
.article-card .article-meta { display: flex; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--text-light); }
.article-card .article-actions { display: flex; gap: 8px; flex-shrink: 0; }
.toast { position: fixed; bottom: 24px; right: 24px; padding: 14px 24px; border-radius: 10px; color: white; font-weight: 600; z-index: 1000; transform: translateY(100px); opacity: 0; transition: all 0.3s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.error { background: var(--error); }
.verify-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.verify-card { background: var(--surface); border-radius: 16px; padding: 48px; max-width: 480px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.verify-icon { font-size: 64px; margin-bottom: 20px; }
.verify-card h1 { font-size: 1.8rem; margin-bottom: 12px; }
.verify-card p { color: var(--text-light); margin-bottom: 24px; }
