* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}
.navbar {
    background: #1e293b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    flex-wrap: wrap;
}
.nav-brand { font-size: 20px; font-weight: 700; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: #cbd5e1; text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: #fff; }
.nav-user { color: #93c5fd; font-size: 14px; }
.nav-logout { color: #f87171 !important; }
.container { max-width: 1000px; margin: 0 auto; padding: 24px 16px; }

h1 { font-size: 22px; margin-bottom: 16px; }
h2 { font-size: 18px; margin-bottom: 12px; }

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: #1d4ed8; }
.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-secondary { background: #64748b; }
.btn-secondary:hover { background: #475569; }

table { width: 100%; border-collapse: collapse; background: #fff; }
table th, table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}
table th { background: #f8fafc; font-weight: 600; }

.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}
.form-group textarea { min-height: 90px; }

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray { background: #f1f5f9; color: #64748b; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.dashboard-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #1e293b;
}
.dashboard-card.disabled { opacity: 0.5; pointer-events: none; }
.dashboard-card h3 { font-size: 16px; margin-bottom: 6px; }
.dashboard-card p { font-size: 13px; color: #64748b; }

.login-box {
    max-width: 380px;
    margin: 60px auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 28px;
}
.login-box h1 { text-align: center; margin-bottom: 20px; }

.actions { display: flex; gap: 8px; }

.hero {
    text-align: center;
    background: linear-gradient(135deg,#2563eb,#1e40af);
    color: #fff;
    border: none;
    padding: 48px 24px;
}
.hero h1 { color: #fff; font-size: 30px; margin-bottom: 10px; line-height: 1.3; }
.hero p.hero-sub { color: #dbeafe; font-size: 16px; margin-bottom: 22px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { padding: 11px 26px; font-size: 15px; }
.hero-actions .btn-outline { background: transparent; border: 1.5px solid #fff; color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,0.12); }

.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: -18px auto 20px;
    max-width: 820px;
    position: relative;
}
.stat-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 10px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(15,23,42,0.06);
}
.stat-item .stat-num { font-size: 24px; font-weight: 800; color: #2563eb; }
.stat-item .stat-label { font-size: 12px; color: #64748b; margin-top: 2px; }

.section-heading { text-align: center; margin-bottom: 22px; }
.section-heading h2 { font-size: 22px; margin-bottom: 6px; }
.section-heading p { color: #64748b; font-size: 14px; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.why-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}
.why-item .why-icon { font-size: 28px; margin-bottom: 10px; }
.why-item h4 { font-size: 15px; margin-bottom: 6px; }
.why-item p { font-size: 13px; color: #64748b; line-height: 1.5; }

.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    counter-reset: step;
}
.how-step {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    position: relative;
}
.how-step .step-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin: 0 auto 10px;
}
.how-step h4 { font-size: 14px; margin-bottom: 4px; }
.how-step p { font-size: 12px; color: #64748b; }

.series-card {
    position: relative;
}
.series-card .price-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 10px;
    margin-top: 8px;
}
.price-badge.free { background: #dcfce7; color: #166534; }
.price-badge.paid { background: #dbeafe; color: #1e40af; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.testimonial-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}
.testimonial-stars { color: #f59e0b; font-size: 14px; margin-bottom: 8px; }
.testimonial-review { font-size: 14px; color: #334155; line-height: 1.6; margin-bottom: 14px; font-style: italic; }
.testimonial-author { font-size: 13px; font-weight: 700; color: #1e293b; }
.testimonial-series { font-size: 12px; color: #64748b; }

.cta-banner {
    text-align: center;
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 36px 24px;
}
.cta-banner h2 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.cta-banner p { color: #94a3b8; font-size: 14px; margin-bottom: 18px; }

@media (max-width: 600px) {
    .stats-bar { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-item { padding: 10px 4px; }
    .stat-item .stat-num { font-size: 18px; }
    .hero { padding: 34px 16px; }
    .hero h1 { font-size: 22px; }
}

.content-card h2 { margin-top: 22px; font-size: 17px; }
.content-card h2:first-child { margin-top: 0; }
.content-card p { margin-bottom: 12px; line-height: 1.7; font-size: 14px; color: #334155; }
.content-card ul { margin: 0 0 14px 20px; }
.content-card li { margin-bottom: 6px; line-height: 1.6; font-size: 14px; color: #334155; }
.content-card .updated-note { color: #94a3b8; font-size: 13px; margin-bottom: 20px; }

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    margin-top: 40px;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 16px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
}
.footer-col h3 { color: #fff; font-size: 20px; margin-bottom: 8px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-tagline { color: #93c5fd; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.footer-desc { font-size: 13px; line-height: 1.6; color: #94a3b8; }
.footer-col a { display: block; color: #cbd5e1; text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13px; margin-bottom: 8px; color: #94a3b8; }
.footer-col p a { display: inline; margin-bottom: 0; color: #93c5fd; }
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}
@media (max-width: 700px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .navbar { flex-direction: column; align-items: flex-start; gap: 10px; }
    table { font-size: 12px; }
    table th, table td { padding: 7px 8px; }
}
