/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand:      #4f46e5;
    --brand-dark: #3730a3;
    --brand-dim:  rgba(79,70,229,0.08);
    --text:       #1a1a2e;
    --text-muted: #64748b;
    --border:     #e2e8f0;
    --bg:         #f8fafc;
    --white:      #ffffff;
    --radius:     10px;
    --shadow:     0 4px 24px rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.navbar-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand);
    text-decoration: none;
}
.navbar-links { display: flex; gap: 12px; align-items: center; }
.navbar-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s;
}
.navbar-links a:hover { background: var(--bg); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}
.btn-primary {
    background: var(--brand);
    color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-dim); text-decoration: none; }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ── Hero section ─────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}
.hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero p  { font-size: 1.15rem; opacity: 0.9; max-width: 560px; margin: 0 auto 32px; }
.hero .btn-white {
    background: #fff;
    color: var(--brand);
    font-weight: 700;
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}
.hero .btn-white:hover { transform: translateY(-2px); text-decoration: none; }

/* ── Plans section ────────────────────────────────────────────────────────── */
.plans { padding: 70px 20px; }
.plans h2 { text-align: center; font-size: 2rem; margin-bottom: 8px; }
.plans .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 48px; }
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.plan-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.plan-card.featured {
    border-color: var(--brand);
    box-shadow: 0 8px 32px rgba(79,70,229,0.15);
}
.plan-card .plan-name { font-size: 1.1rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.plan-card .plan-price { font-size: 2.5rem; font-weight: 800; margin: 12px 0 4px; }
.plan-card .plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan-card .plan-students { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.2s;
    background: #fff;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--brand);
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.85rem; color: #e11d48; margin-top: 4px; }

/* ── Alert ────────────────────────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #f0fff4; border: 1px solid #68d391; color: #276749; }
.alert-error   { background: #fff5f5; border: 1px solid #fc8181; color: #c53030; }
.alert-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }

/* ── Wizard (signup steps) ────────────────────────────────────────────────── */
.wizard-wrap { max-width: 560px; margin: 60px auto; padding: 0 20px 60px; }
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 36px;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
}
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.step-item.done::after  { background: var(--brand); }
.step-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;
}
.step-item.active .step-dot { background: var(--brand); color: #fff; }
.step-item.done   .step-dot { background: var(--brand); color: #fff; }
.step-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
.step-item.active .step-label { color: var(--brand); font-weight: 700; }

/* ── Color palette picker ─────────────────────────────────────────────────── */
.palette-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.palette-option { position: relative; }
.palette-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.palette-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.palette-label:hover { border-color: #94a3b8; }
.palette-option input:checked + .palette-label { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.palette-swatch { width: 36px; height: 36px; border-radius: 50%; }
.palette-name { font-size: 0.8rem; font-weight: 600; color: var(--text); text-align: center; }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.dashboard-wrap { max-width: 860px; margin: 40px auto; padding: 0 20px 60px; }
.dashboard-header { margin-bottom: 28px; }
.dashboard-header h1 { font-size: 1.7rem; font-weight: 800; }
.dashboard-header p  { color: var(--text-muted); }
.status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-pending  { background: #fef3c7; color: #92400e; }
.badge-paid     { background: #dbeafe; color: #1e40af; }
.badge-active   { background: #dcfce7; color: #166534; }
.badge-suspended{ background: #fee2e2; color: #991b1b; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.info-item label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 4px; }
.info-item span  { font-size: 0.95rem; color: var(--text); font-weight: 500; }

.locked-overlay {
    background: #fffbeb;
    border: 2px dashed #fbbf24;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    margin-top: 24px;
}
.locked-overlay h3 { font-size: 1.2rem; margin-bottom: 8px; }
.locked-overlay p  { color: var(--text-muted); margin-bottom: 20px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .hero h1  { font-size: 1.9rem; }
    .info-grid{ grid-template-columns: 1fr; }
    .palette-grid { grid-template-columns: repeat(2, 1fr); }
}
