@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&family=Great+Vibes&family=Cinzel:wght@700&display=swap');

:root {
  --bg: #080b16;
  --bg-soft: #0d1224;
  --surface: #121a30;
  --surface-2: #172138;
  --border: #253352;
  --border-soft: #1c2740;
  --text: #eef2fb;
  --muted: #97a3bd;
  --primary: #6d6bff;
  --primary-2: #9b7bff;
  --primary-hover: #5a58f0;
  --accent: #34d8f0;
  --gold: #e6c15a;
  --gold-soft: rgba(230, 193, 90, 0.16);
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --shadow: 0 18px 50px rgba(2, 6, 23, 0.55);
  --shadow-sm: 0 6px 20px rgba(2, 6, 23, 0.4);
  --max-width: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Space Grotesk', var(--font);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background:
    radial-gradient(1100px 640px at 82% -12%, rgba(109, 107, 255, 0.20), transparent 60%),
    radial-gradient(900px 520px at -8% 4%, rgba(52, 216, 240, 0.12), transparent 58%),
    radial-gradient(700px 500px at 50% 108%, rgba(230, 193, 90, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 11, 22, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 20px; display: flex; gap: 11px; align-items: center; white-space: nowrap; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 11px;
  background: conic-gradient(from 140deg, var(--primary), var(--primary-2), var(--accent), var(--primary));
  box-shadow: 0 8px 22px rgba(109, 107, 255, 0.5);
  position: relative;
}
.brand .logo::after {
  content: '🎬'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.nav-links { display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: var(--muted); }
.nav-links > a { padding: 8px 12px; border-radius: 9px; transition: color .15s, background .15s; }
.nav-links > a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-weight: 600; font-size: 14.5px;
  cursor: pointer; border: 1px solid var(--border);
  transition: transform .07s ease, background .2s, border-color .2s, box-shadow .2s;
  background: var(--surface-2); color: var(--text); font-family: inherit;
}
.btn:hover { background: #1e2a49; border-color: #35456e; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: none; color: #fff; box-shadow: 0 10px 26px rgba(109, 107, 255, 0.42);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-hover), #8a67f5); box-shadow: 0 12px 30px rgba(109,107,255,0.55); }
.btn-gold { background: linear-gradient(135deg, #e6c15a, #d1a53b); border: none; color: #3a2c05; box-shadow: 0 10px 26px rgba(230,193,90,0.32); }
.btn-gold:hover { background: linear-gradient(135deg, #f0cd6c, #dcb047); }
.btn-ghost { background: transparent; }
.btn-danger { background: rgba(239,68,68,0.12); color: #fca5a5; border-color: rgba(239,68,68,0.4); }
.btn-success { background: rgba(34,197,94,0.16); color: #86efac; border-color: rgba(34,197,94,0.4); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 13px; }

/* ---------- Hero ---------- */
.hero { padding: 66px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(230,193,90,0.3);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px; letter-spacing: .01em;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 55px); margin: 0 0 18px; line-height: 1.06;
  background: linear-gradient(180deg, #ffffff, #b9c4dc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero .lead { font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note b { color: var(--text); font-weight: 600; }

/* Phone mockup showing an invite */
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,107,255,0.35), transparent 65%); filter: blur(20px); z-index: 0;
}
.mockup {
  position: relative; z-index: 1; width: 270px; border-radius: 34px; border: 9px solid #0a0d18;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55); overflow: hidden; transform: rotate(-3deg);
}
.mockup .invite-card {
  aspect-ratio: 9/16; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px 24px; position: relative;
  background: linear-gradient(165deg, #1a1130, #3b1d5e);
  color: #f7f0ff;
}
.mockup .invite-card .fr { position: absolute; inset: 14px; border: 2px solid #e6c15a; border-radius: 5px; opacity: .7; }
.mockup .invite-card .k { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; font-size: 11px; color: #e6c15a; }
.mockup .invite-card .n { font-family: 'Great Vibes', cursive; font-size: 46px; line-height: 1; margin: 8px 0; }
.mockup .invite-card .amp { font-family: 'Great Vibes', cursive; font-size: 28px; color: #e6c15a; }
.mockup .invite-card .d { font-family: var(--font); font-size: 13px; margin-top: 10px; opacity: .92; }
.float-badge {
  position: absolute; z-index: 2; background: rgba(18,26,48,0.92); border: 1px solid var(--border);
  border-radius: 13px; padding: 10px 13px; font-size: 12.5px; display: flex; gap: 8px; align-items: center;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(6px);
}
.float-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.float-badge.b1 { top: 22px; right: 0; }
.float-badge.b2 { bottom: 40px; left: -8px; }

/* Trust strip */
.trust-strip {
  display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; align-items: center;
  padding: 20px; margin-top: 20px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  color: var(--muted); font-size: 14px;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Sections ---------- */
section { padding: 54px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.section-head p { color: var(--muted); margin: 8px 0 0; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

/* Grid */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.step {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative;
}
.step .num {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
}
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Blinking "New" nav badge */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.nav-new { display: inline-flex; align-items: center; gap: 7px; color: var(--text) !important; }
.nav-new .newtag { background: var(--gold); color: #3a2c05; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; animation: blink 1.1s ease-in-out infinite; text-transform: uppercase; letter-spacing: .04em; }

/* Promo banner (course store -> invite maker) */
.promo {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(109,107,255,.16), rgba(52,216,240,.10));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 28px; margin: 10px 0 30px;
}
.promo h3 { margin: 0 0 6px; font-size: 22px; }
.promo p { margin: 0; color: var(--muted); }

/* Marketing plan cards (invite landing) */
.plan-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .plan-tiers { grid-template-columns: 1fr; } }
.plan-tier { background: linear-gradient(180deg, var(--surface), var(--bg-soft)); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; display: flex; flex-direction: column; }
.plan-tier.featured { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(109,107,255,.35); }
.plan-tier .ptier-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.plan-tier .ptier-price { font-size: 34px; font-weight: 800; font-family: var(--font-display); margin: 8px 0 2px; }
.plan-tier .ptier-was { color: var(--muted); text-decoration: line-through; font-size: 15px; font-weight: 400; margin-left: 6px; }
.plan-tier ul { list-style: none; padding: 0; margin: 16px 0 20px; color: var(--muted); font-size: 14.5px; line-height: 1.9; flex: 1; }
.plan-tier ul li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.plan-tier .featured-tag { align-self: flex-start; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Feature cards */
.feature-card { background: linear-gradient(180deg, var(--surface), var(--bg-soft)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feature-card .ico { font-size: 26px; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- Cards (courses + templates) ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .18s ease, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(109,107,255,0.55); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #1e293b, #0f172a); position: relative; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 42px; color: rgba(255,255,255,0.4); background: radial-gradient(400px 200px at 30% 20%, rgba(109,107,255,0.4), transparent 60%); }
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .title { font-size: 17px; font-weight: 700; line-height: 1.35; font-family: var(--font-display); letter-spacing: -0.01em; }
.card .desc { color: var(--muted); font-size: 14px; flex: 1; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; background: rgba(109,107,255,0.14); color: #c7c6ff; border: 1px solid rgba(109,107,255,0.3); font-size: 12px; }
.price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border-soft); padding-top: 12px; margin-top: 4px; }
.price-now { font-size: 22px; font-weight: 800; color: #fff; font-family: var(--font-display); }
.price-was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.price-off { background: rgba(34,197,94,0.14); color: #86efac; border: 1px solid rgba(34,197,94,0.35); padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }

/* Template showcase card thumb (portrait) */
.tpl-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tpl-thumb { aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 16px; position: relative; }
.tpl-thumb .fr { position: absolute; inset: 12px; border: 1.5px solid #e6c15a; border-radius: 4px; opacity: .6; }
.tpl-thumb .tn { font-family: 'Great Vibes', cursive; font-size: 30px; }
.tpl-thumb .tk { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #e6c15a; margin-bottom: 4px; }

/* Chips (generator filters) */
.chips { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin: 20px 0 6px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-family: inherit; transition: all .15s; }
.chip:hover { color: var(--text); border-color: #35456e; }
.chip.active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-color: transparent; color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.form label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(255,255,255,0.035); color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109,107,255,0.22); }
.form textarea { min-height: 96px; resize: vertical; }
.form input[type=file] { padding: 9px 12px; }
.row-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.card.body { padding: 18px; }

/* Course detail */
.course-detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; margin-top: 30px; }
.course-detail .hero-thumb { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #1e293b, #0f172a); border: 1px solid var(--border); position: relative; }
.buy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; height: fit-content; box-shadow: var(--shadow-sm); }
.buy-card h3 { margin: 0 0 12px; }
.buy-card .price-row { padding: 0; border: none; margin: 0 0 16px; }
.buy-card ul { padding-left: 18px; color: var(--muted); margin: 16px 0; }
.buy-card li { margin: 6px 0; }
@media (max-width: 900px) { .course-detail { grid-template-columns: 1fr; } .buy-card { position: static; } }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border-soft); padding: 34px 0; color: var(--muted); font-size: 14px; }
.site-footer .brand { margin-bottom: 8px; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: 14px; }
.alert.error { border-color: rgba(239,68,68,0.4); color: #fecaca; background: rgba(239,68,68,0.1); }
.alert.success { border-color: rgba(34,197,94,0.45); color: #86efac; background: rgba(34,197,94,0.12); }
.alert.warning { border-color: rgba(245,158,11,0.45); color: #fcd34d; background: rgba(245,158,11,0.12); }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-shell aside { background: rgba(13, 18, 36, 0.7); border-right: 1px solid var(--border-soft); padding: 22px 16px; }
.admin-shell aside .brand { margin-bottom: 20px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a { padding: 10px 13px; border-radius: 10px; color: var(--muted); font-size: 14px; cursor: pointer; transition: all .15s; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(109,107,255,0.15); color: #fff; }
.admin-shell main { padding: 28px; }
.admin-shell header.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
@media (max-width: 800px) { .admin-shell { grid-template-columns: 1fr; } .admin-shell aside { border-right: none; border-bottom: 1px solid var(--border); } .admin-nav { flex-direction: row; flex-wrap: wrap; } }

.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 26px; }
.stat { background: linear-gradient(180deg, var(--surface), var(--bg-soft)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat .label { color: var(--muted); font-size: 13px; }
.stat .value { font-size: 28px; font-weight: 800; margin-top: 6px; font-family: var(--font-display); }

.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.table th { background: rgba(255,255,255,0.03); font-weight: 600; color: var(--muted); }
.table tr:last-child td { border-bottom: none; }
.badge { padding: 2px 10px; border-radius: 999px; font-size: 12px; display: inline-block; }
.badge.pending { background: rgba(245,158,11,0.18); color: #fcd34d; }
.badge.submitted { background: rgba(52,216,240,0.18); color: #67e8f9; }
.badge.completed { background: rgba(34,197,94,0.2); color: #86efac; }
.badge.cancelled { background: rgba(239,68,68,0.18); color: #fca5a5; }

.modal-overlay { position: fixed; inset: 0; background: rgba(2,6,23,0.72); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; backdrop-filter: blur(4px); }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); width: 100%; max-width: 720px; max-height: 90vh; overflow: auto; padding: 26px; box-shadow: var(--shadow); }
.modal h3 { margin-top: 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.hidden { display: none !important; }

/* Login */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }

/* ---------- Utilities ---------- */
.text-muted { color: var(--muted); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.center { text-align: center; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 10px; }
}
@media (max-width: 560px) {
  .nav { flex-direction: column; gap: 10px; padding: 12px 0; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 14px; }
  .brand { font-size: 18px; }
  .hero { padding: 34px 0 24px; }
  section { padding: 40px 0; }
}
