:root {
    --bg: #f6f8fc;
    --bg-soft: #eef5ff;
    --card: rgba(255, 255, 255, 0.92);
    --card-solid: #ffffff;
    --text: #172033;
    --muted: #667085;
    --line: #dce5f2;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #dbeafe;
    --accent: #14b8a6;
    --accent-soft: #ccfbf1;
    --academic: #7c3aed;
    --academic-soft: #ede9fe;
    --warning: #f59e0b;
    --success: #0f766e;
    --error: #b42318;
    --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
    --shadow-soft: 0 10px 28px rgba(16, 24, 40, 0.06);
    --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.13), transparent 30rem),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 48%, #ffffff 100%);
    color: var(--text);
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 70%);
}

img { max-width: 100%; }

a { color: var(--primary); text-decoration: none; transition: 0.2s ease; }
a:hover { color: var(--primary-dark); }

.container { width: min(1180px, calc(100% - 34px)); margin: 0 auto; }

.topbar {
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(220, 229, 242, 0.85);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
}

.nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 18px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.03em;
    color: var(--text);
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--academic));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.brand-subtitle { display: block; margin-top: -4px; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 0.02em; }

nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
nav a { color: #344054; font-weight: 750; padding: 8px 11px; border-radius: 999px; }
nav a:hover { background: rgba(37, 99, 235, 0.08); color: var(--primary-dark); }

.main { padding: 34px 0 54px; position: relative; }

.hero {
    border: 1px solid rgba(220, 229, 242, 0.9);
    border-radius: 34px;
    padding: clamp(30px, 5vw, 58px);
    margin-bottom: 26px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.96), rgba(239,246,255,0.88)),
        radial-gradient(circle at 88% 18%, rgba(20, 184, 166, 0.14), transparent 16rem);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 48px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    transform: rotate(18deg);
}

.hero-shell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 28px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.06; margin: 12px 0 18px; letter-spacing: -0.055em; max-width: 820px; }
.hero p { max-width: 760px; color: var(--muted); font-size: 18px; }

.hero-visual {
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(220, 229, 242, 0.9);
    border-radius: 28px;
    padding: 18px;
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.12);
}

.visual-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 9px; height: 9px; border-radius: 99px; background: #cbd5e1; display: block; }
.window-dots span:nth-child(1) { background: #f87171; }
.window-dots span:nth-child(2) { background: #fbbf24; }
.window-dots span:nth-child(3) { background: #34d399; }

.visual-card { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 14px; border-radius: 18px; background: #ffffff; border: 1px solid var(--line); margin-bottom: 12px; }
.visual-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; }
.visual-card.academic .visual-icon { background: var(--academic-soft); color: var(--academic); }
.visual-card.payment .visual-icon { background: var(--accent-soft); color: var(--success); }
.visual-card h4 { margin: 0; font-size: 15px; }
.visual-card p { margin: 1px 0 0; font-size: 13px; color: var(--muted); }

.eyebrow, .badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary-dark);
    background: rgba(219, 234, 254, 0.92);
    border: 1px solid rgba(147, 197, 253, 0.58);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 800;
}

.badge.academic { color: #5b21b6; background: var(--academic-soft); border-color: #ddd6fe; }
.badge.success { color: #0f766e; background: var(--accent-soft); border-color: #99f6e4; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--academic));
    color: #fff;
    padding: 11px 17px;
    min-height: 43px;
    border-radius: 13px;
    border: 0;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}
.btn:hover { transform: translateY(-1px); color: #fff; box-shadow: 0 16px 28px rgba(37, 99, 235, 0.24); }
.btn.secondary { background: #ffffff; color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.btn.secondary:hover { background: #f8fafc; color: var(--primary-dark); }
.btn.ghost { background: transparent; color: var(--primary-dark); border: 1px solid rgba(37, 99, 235, 0.22); box-shadow: none; }
.btn.small { padding: 7px 11px; min-height: 34px; font-size: 14px; border-radius: 10px; }

.section-title { margin: 34px 0 14px; }
.section-title h2 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.035em; }
.section-title p { color: var(--muted); margin: 0; max-width: 760px; }

.grid { display: grid; gap: 18px; margin: 22px 0; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: var(--card);
    border: 1px solid rgba(220, 229, 242, 0.92);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}
.card h1, .card h2, .card h3 { margin-top: 0; letter-spacing: -0.025em; }
.card p:last-child { margin-bottom: 0; }

.lift-card { transition: 0.22s ease; }
.lift-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.service-card { min-height: 285px; display: flex; flex-direction: column; }
.service-card h3 { margin: 14px 0 8px; }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.card-icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-soft), var(--academic-soft)); font-size: 22px; }
.price { font-weight: 900; font-size: 21px; color: var(--success); margin-top: auto; }

.feature-list { display: grid; gap: 11px; padding: 0; margin: 16px 0 0; list-style: none; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; color: #344054; }
.feature-list li::before { content: "✓"; width: 22px; height: 22px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 999px; background: var(--accent-soft); color: var(--success); font-size: 13px; font-weight: 900; }

.step-card { position: relative; overflow: hidden; }
.step-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 13px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 900; margin-bottom: 12px; }

.menu-card { color: var(--text); display: block; }
.menu-card:hover { transform: translateY(-3px); color: var(--text); }
.stat p { font-size: 38px; font-weight: 900; margin: 0; letter-spacing: -0.04em; }
.stat span { color: var(--muted); font-size: 14px; }

.muted { color: var(--muted); font-size: 14px; }
.alert { padding: 13px 15px; border-radius: 15px; margin-bottom: 18px; border: 1px solid; }
.alert.success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert.error { background: #fef3f2; color: #912018; border-color: #fecaca; }

.page-head { margin-bottom: 22px; }
.page-head h1 { margin-bottom: 4px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.04em; }
.page-head p { color: var(--muted); margin-top: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 780px; }
th, td { text-align: left; padding: 14px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: rgba(248, 250, 252, 0.88); font-size: 13px; color: #475467; text-transform: uppercase; letter-spacing: 0.04em; }
tr:hover td { background: rgba(248, 250, 252, 0.6); }

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #3730a3;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }

.auth-shell { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr); gap: 22px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.auth-side { background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(124, 58, 237, 0.92)); color: #ffffff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.auth-side p { color: rgba(255,255,255,0.82); }
.auth-box, .form-card { max-width: 760px; margin: 0 auto; }
.auth-shell .auth-box { max-width: none; margin: 0; }

label { display: block; margin-top: 15px; font-weight: 800; color: #344054; }
label.inline { display: flex; gap: 8px; align-items: center; }
input, textarea, select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid #cfd8e6;
    border-radius: 13px;
    margin-top: 7px;
    font: inherit;
    background: #ffffff;
    transition: 0.18s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }
button { margin-top: 18px; }

.notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #7c2d12;
}
.notice strong { color: #78350f; }

.payment-summary { background: linear-gradient(135deg, #f0fdf4, #eff6ff); border-color: #bfdbfe; }
.summary-row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px dashed rgba(148, 163, 184, 0.6); }
.summary-row:last-child { border-bottom: 0; }
.summary-row strong { font-size: 18px; }

.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); background: rgba(255, 255, 255, 0.88); }
.footer-grid { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer strong { color: var(--text); }

@media (max-width: 960px) {
    .hero-shell, .auth-shell { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
}

@media (max-width: 820px) {
    .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
    .hero { padding: 28px; border-radius: 26px; }
    .row-between { align-items: flex-start; flex-direction: column; }
    .nav { align-items: flex-start; flex-direction: column; }
    nav { width: 100%; }
    nav a { padding-left: 0; }
    .brand-subtitle { display: none; }
}

label.inline input[type="checkbox"] { width: auto; margin: 0; }
.auth-side .feature-list li { color: rgba(255, 255, 255, 0.92); }
.auth-side .feature-list li::before { background: rgba(255,255,255,0.18); color: #ffffff; }
.auth-side .badge { background: rgba(255,255,255,0.18); color: #ffffff; border-color: rgba(255,255,255,0.26); }

/* Super admin CMS additions */
.page-content {
    line-height: 1.8;
    font-size: 1rem;
}
.inline-form {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
}
.inline-form select {
    min-width: 140px;
    padding: .6rem .75rem;
}
code {
    background: rgba(15, 23, 42, .08);
    padding: .15rem .35rem;
    border-radius: .35rem;
}
