/* =========================================================
   Pune Creators Community — Design Tokens
   Palette: deep aubergine ink + marigold gold + gulal pink
   (a nod to Pune's festival colour language, tuned premium)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #1B1029;
  --ink-soft: #241537;
  --surface: #2E1B45;
  --surface-line: rgba(245, 239, 230, 0.09);
  --gold: #E8A33D;
  --gold-soft: #F3C77A;
  --pink: #FF4D8D;
  --pink-soft: #FF7FAE;
  --ivory: #F5EFE6;
  --lavender-grey: #B8A9C9;
  --success: #4FCF8E;
  --danger: #FF6B6B;

  --font-display: 'Fraunces', serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 26px;
  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--lavender-grey); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 16, 41, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-line);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.01em; }
.brand span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  color: var(--ivory); transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--surface); color: var(--gold-soft); }
.nav-links a.cta-link { background: var(--gold); color: var(--ink); }
.nav-links a.cta-link:hover { background: var(--gold-soft); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: none;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--pink)); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 77, 141, 0.28); }
.btn-outline { background: transparent; color: var(--ivory); border: 1.5px solid var(--surface-line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn-danger { background: var(--danger); color: var(--ink); }
.btn-muted { background: var(--surface); color: var(--ivory); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 60px;
  background: radial-gradient(circle at 78% 18%, rgba(255, 77, 141, 0.20), transparent 45%),
              radial-gradient(circle at 12% 82%, rgba(232, 163, 61, 0.16), transparent 40%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lede { font-size: 1.15rem; color: var(--lavender-grey); max-width: 46ch; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat b { font-family: var(--font-mono); font-size: 1.4rem; color: var(--gold-soft); display: block; }
.hero-stat span { font-size: 0.82rem; color: var(--lavender-grey); }

/* ---------- Orbit (signature element) ---------- */
.orbit-wrap { position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin: 0 auto; }
.orbit-wrap svg { width: 100%; height: 100%; }
.orbit-ring { fill: none; stroke: var(--surface-line); stroke-width: 1; }
.orbit-ring.lit { stroke: url(#orbitGrad); stroke-width: 1.4; }
.orbit-core {
  fill: var(--ink-soft); stroke: var(--gold); stroke-width: 1.5;
}
.orbit-label { font-family: var(--font-mono); font-size: 11px; fill: var(--lavender-grey); letter-spacing: 0.08em; }
.orbit-label.gold { fill: var(--gold-soft); }
.orbit-dot { fill: var(--pink); }
.orbit-center-text { font-family: var(--font-display); font-size: 22px; fill: var(--ivory); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 0.6em; }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-card {
  background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.how-card .step { font-family: var(--font-mono); color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; }
.how-card h3 { margin-top: 14px; font-size: 1.25rem; }
.how-card p { color: var(--lavender-grey); margin: 0; }

/* ---------- Levels strip ---------- */
.levels-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.level-card {
  border-radius: var(--radius-md); padding: 22px 18px; text-align: center;
  background: var(--ink-soft); border: 1px solid var(--surface-line);
}
.level-card .dot { width: 10px; height: 10px; border-radius: 50%; margin: 0 auto 12px; }
.level-card h4 { margin: 0 0 6px; font-size: 1.05rem; }
.level-card p { margin: 0; font-size: 0.82rem; color: var(--lavender-grey); font-family: var(--font-mono); }

/* ---------- Plans ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 34px 28px;
  border: 1px solid var(--surface-line); display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.2s, border-color 0.2s;
}
.plan-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.plan-card.featured { border-color: var(--pink); box-shadow: var(--shadow-lift); position: relative; }
.plan-card.featured::before {
  content: 'MOST POPULAR'; position: absolute; top: -12px; right: 24px;
  background: var(--pink); color: var(--ink); font-family: var(--font-mono); font-size: 0.65rem;
  padding: 5px 12px; border-radius: 999px; letter-spacing: 0.08em;
}
.plan-price { font-family: var(--font-display); font-size: 2.2rem; }
.plan-price span { font-size: 0.95rem; font-family: var(--font-body); color: var(--lavender-grey); }
.plan-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--lavender-grey); font-size: 0.92rem; }
.plan-card ul li::before { content: '\2726'; color: var(--gold); margin-right: 8px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--surface-line); padding: 48px 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-tag { color: var(--lavender-grey); font-size: 0.9rem; }

/* ---------- Forms (auth / registration) ---------- */
.auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 60px 20px;
  background: radial-gradient(circle at 20% 20%, rgba(232, 163, 61, 0.10), transparent 40%), var(--ink);
}
.auth-card {
  width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--surface-line);
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lift);
}
.auth-card.wide { max-width: 720px; }
.auth-card h2 { font-size: 1.7rem; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 7px; color: var(--lavender-grey); text-transform: uppercase; letter-spacing: 0.04em; }
input, select, textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--surface-line);
  background: var(--ink-soft); color: var(--ivory); font-family: var(--font-body); font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
textarea { resize: vertical; min-height: 90px; }
.hint { font-size: 0.78rem; color: var(--lavender-grey); margin-top: 6px; }
.otp-row { display: flex; gap: 10px; align-items: flex-end; }
.otp-row .form-group { flex: 1; margin-bottom: 0; }
.plan-select-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.plan-select-card {
  border: 1.5px solid var(--surface-line); border-radius: var(--radius-md); padding: 16px; text-align: center; cursor: pointer;
  background: var(--ink-soft); transition: border-color 0.15s;
}
.plan-select-card.selected { border-color: var(--gold); background: rgba(232, 163, 61, 0.08); }
.plan-select-card h4 { margin: 0 0 4px; font-size: 0.95rem; }
.plan-select-card small { color: var(--lavender-grey); }
.social-link-row { display: grid; grid-template-columns: 1fr 1.4fr 0.9fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.link-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ink-soft);
  font-size: 0.75rem; color: var(--gold-soft); margin-right: 6px; margin-bottom: 6px; font-family: var(--font-mono);
}
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 18px; }
.alert-error { background: rgba(255, 107, 107, 0.15); color: #FFB3B3; border: 1px solid rgba(255, 107, 107, 0.3); }
.alert-success { background: rgba(79, 207, 142, 0.15); color: #B7EFD1; border: 1px solid rgba(79, 207, 142, 0.3); }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--lavender-grey); }
.auth-switch a { color: var(--gold-soft); font-weight: 700; }

/* ---------- Dashboards / app shell ---------- */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--ink-soft); border-right: 1px solid var(--surface-line); padding: 28px 20px; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: block; margin-bottom: 40px; font-size: 1.15rem; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a { padding: 11px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; color: var(--lavender-grey); }
.sidebar nav a:hover, .sidebar nav a.active { background: var(--surface); color: var(--ivory); }
.main-panel { padding: 40px 44px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.panel-header h1 { font-size: 1.9rem; margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 36px; }
.stat-card { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius-md); padding: 22px; }
.stat-card b { font-family: var(--font-mono); font-size: 1.8rem; color: var(--gold-soft); display: block; }
.stat-card span { color: var(--lavender-grey); font-size: 0.85rem; }

.data-card { background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius-lg); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 18px; text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--surface-line); }
th { color: var(--lavender-grey); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-active { background: rgba(79, 207, 142, 0.15); color: #7EE2AC; }
.badge-pending { background: rgba(232, 163, 61, 0.18); color: var(--gold-soft); }
.badge-inactive, .badge-rejected { background: rgba(255, 107, 107, 0.15); color: #FF9B9B; }
.toolbar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }
.icon-btn { background: none; border: none; color: var(--lavender-grey); padding: 6px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; }
.icon-btn:hover { background: var(--ink-soft); color: var(--ivory); }
.icon-btn.danger:hover { color: var(--danger); }

/* ---------- Find Creators grid ---------- */
.finder-shell { padding-top: 40px; }
.finder-filters { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.finder-filters input, .finder-filters select { width: auto; min-width: 200px; }
.locked-banner {
  background: rgba(255, 77, 141, 0.1); border: 1px solid rgba(255, 77, 141, 0.3);
  padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 24px; font-size: 0.9rem;
}
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.creator-card {
  background: var(--surface); border: 1px solid var(--surface-line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.2s;
}
.creator-card:hover { transform: translateY(-4px); }
.creator-card .photo { width: 100%; height: 200px; object-fit: cover; background: var(--ink-soft); }
.creator-card .body { padding: 18px 20px; }
.creator-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.creator-card .level-tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--gold-soft);
  text-transform: uppercase;
}
.creator-card p { color: var(--lavender-grey); font-size: 0.85rem; margin: 8px 0 14px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 6, 16, 0.7); display: none;
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; max-width: 520px; width: 100%; border: 1px solid var(--surface-line); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .how-grid, .levels-strip, .plans-grid { grid-template-columns: 1fr 1fr; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .how-grid, .levels-strip, .plans-grid { grid-template-columns: 1fr; }
}
