/* ===========================================================
   ErdensAI — 2026 modern, Apple-inspired UI
   Palette: white + electric blue, glass surfaces, soft motion.
   =========================================================== */

:root {
  --bg: #f4f7fc;
  --bg-deep: #eaf0fb;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --ink: #0b1220;
  --ink-2: #1f2a44;
  --muted: #5a6a85;
  --muted-2: #8896ad;
  --line: rgba(15, 33, 71, 0.08);
  --line-strong: rgba(15, 33, 71, 0.14);

  --brand: #1268ff;
  --brand-2: #2f86ff;
  --brand-deep: #0a4dd6;
  --brand-soft: #e8f0ff;
  --brand-glow: rgba(18, 104, 255, 0.35);

  --success: #0e8c5a;
  --success-bg: #e6f8ee;
  --danger: #b3261e;
  --danger-bg: #fdecea;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;

  --shadow-1: 0 1px 0 rgba(15, 33, 71, 0.04), 0 8px 24px rgba(15, 33, 71, 0.06);
  --shadow-2: 0 12px 40px rgba(15, 33, 71, 0.08);
  --shadow-3: 0 30px 80px rgba(15, 33, 71, 0.10);
  --shadow-brand: 0 14px 30px rgba(18, 104, 255, 0.28);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(18, 104, 255, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(47, 134, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #f6f9ff 0%, #eef3fb 100%);
  color: var(--ink);
  letter-spacing: -0.01em;
}

main { flex: 1 0 auto; }
.footer { flex-shrink: 0; margin-top: auto; }

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

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

/* -------------- Navigation -------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-feature-settings: "ss01";
}

.brand .brand-grad {
  background: linear-gradient(120deg, var(--brand-2) 0%, var(--brand-deep) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand .admin-badge { font-size: 0.66rem; letter-spacing: 0.1em; }

.footer .brand { font-size: 1.2rem; }
.auth-card .brand, .nf-card .brand { font-size: 1.5rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  color: var(--ink-2);
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-link:hover { background: var(--brand-soft); color: var(--brand-deep); }

/* -------------- Buttons -------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease-spring),
              box-shadow 0.22s var(--ease),
              background 0.22s var(--ease),
              color 0.22s var(--ease),
              border-color 0.22s var(--ease);
  will-change: transform;
}

.btn-wide { min-width: 260px; padding-left: 2rem; padding-right: 2rem; }

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--brand-2) 0%, var(--brand) 60%, var(--brand-deep) 100%);
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(18, 104, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn-ghost {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--line-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: #fff; border-color: rgba(18, 104, 255, 0.35); color: var(--brand-deep); }

.btn-soft {
  color: var(--brand-deep);
  background: var(--brand-soft);
}
.btn-soft:hover { background: #dbe7ff; }

.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.02rem; }

.btn-arrow { transition: transform 0.25s var(--ease-spring); display: inline-block; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* -------------- Hero -------------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-radius: 999px;
  border: 1px solid rgba(18, 104, 255, 0.18);
  animation: fadeUp 0.7s var(--ease) both;
}

.eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand-glow);
  animation: pulse 2s infinite;
}

.hero h1 {
  margin: 0 auto 1.2rem;
  max-width: 18ch;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  animation: fadeUp 0.8s 0.05s var(--ease) both;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand-2), var(--brand-deep) 70%, #5aa3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 56ch;
  margin: 0 auto 2rem;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--muted);
  animation: fadeUp 0.85s 0.12s var(--ease) both;
}

.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  animation: fadeUp 0.9s 0.18s var(--ease) both;
}

.hero-mock {
  margin: 4rem auto 0;
  max-width: 980px;
  padding: 1.2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
  backdrop-filter: blur(20px);
  animation: fadeUp 1s 0.25s var(--ease) both;
}

.mock-dots { display: flex; gap: 0.4rem; padding: 0.2rem 0.4rem 0.8rem; }
.mock-dots span { width: 11px; height: 11px; border-radius: 50%; background: #d8dee9; }
.mock-dots span:nth-child(1) { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #febc2e; }
.mock-dots span:nth-child(3) { background: #28c840; }

.mock-body {
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff, #f1f6ff);
  border: 1px solid var(--line);
  padding: 1.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.mock-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-1);
  text-align: left;
}
.mock-card h4 { margin: 0 0 0.3rem; font-size: 0.95rem; color: var(--ink); }
.mock-card p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.mock-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

/* -------------- Sections -------------- */
.section { padding: 5rem 0; }

.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; }
.section-head h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  letter-spacing: -0.025em;
  font-weight: 700;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

/* -------------- Feature cards -------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

.feature::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(18,104,255,0.0), rgba(18,104,255,0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.feature:hover::after { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature h3 { margin: 0 0 0.4rem; font-size: 1.15rem; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); line-height: 1.55; }

/* -------------- Stats strip -------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 auto;
  max-width: 1100px;
  padding: 2rem;
  background: linear-gradient(140deg, #ffffff, #eef4ff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
}
.stat { text-align: center; padding: 0.6rem; }
.stat .num { font-size: 2rem; font-weight: 700; color: var(--brand-deep); letter-spacing: -0.02em; }
.stat .label { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* -------------- CTA panel -------------- */
.cta-panel {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  background:
    radial-gradient(700px 400px at 50% -10%, rgba(255,255,255,0.4), transparent),
    linear-gradient(135deg, #0a4dd6 0%, #1268ff 60%, #2f86ff 100%);
  color: #fff;
  box-shadow: 0 30px 90px rgba(18, 104, 255, 0.32);
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 200px at 90% 90%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.cta-panel h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.025em;
}
.cta-panel p { margin: 0 auto 1.6rem; max-width: 50ch; color: rgba(255, 255, 255, 0.88); }
.cta-panel .btn-primary {
  color: var(--brand-deep);
  background: #fff;
  box-shadow: 0 18px 36px rgba(0,0,0,0.18);
}
.cta-panel .btn-primary:hover { background: #f3f7ff; }

/* -------------- Form page -------------- */
.page-head {
  text-align: center;
  padding: 4rem 0 1.5rem;
}
.page-head h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
}
.page-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.form-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 0 5rem;
}

.success-card {
  text-align: center;
  padding: 3rem 2rem;
}
.success-card .success-mark {
  width: 72px; height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  background: linear-gradient(135deg, #14b97a, #0e8c5a);
  color: #fff;
  box-shadow: 0 18px 40px rgba(14, 140, 90, 0.32);
  animation: popIn 0.55s var(--ease-spring) both;
}
.success-card h2 { margin: 0.4rem 0 0.6rem; font-size: 1.55rem; letter-spacing: -0.02em; }
.success-card p { color: var(--muted); margin: 0 auto 1.6rem; max-width: 46ch; line-height: 1.6; }

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.6); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { transform: scale(1); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 2rem;
  animation: fadeUp 0.6s var(--ease) both;
}

.form-card h2 { margin: 0 0 0.4rem; font-size: 1.5rem; letter-spacing: -0.02em; }
.form-card .lede { color: var(--muted); margin: 0 0 1.4rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1rem;
}
.form-grid .full { grid-column: 1 / -1; }

.field { position: relative; display: block; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 1.1rem 1rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--surface-2);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.field textarea { padding-top: 1.4rem; resize: vertical; min-height: 140px; }

.field label {
  position: absolute;
  left: 0.85rem;
  top: 0.95rem;
  max-width: calc(100% - 1.7rem);
  color: var(--muted-2);
  font-size: 0.95rem;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: left center;
  transition: transform 0.18s var(--ease), color 0.18s var(--ease), background 0.18s var(--ease);
  background: transparent;
  padding: 0 0.35rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18, 104, 255, 0.14);
}

/* Floated state — bg matches the input bg behind it so border "cuts through" cleanly */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:focus + label,
.field select.has-value + label {
  transform: translateY(-1.05rem) scale(0.82);
  color: var(--brand-deep);
  background: var(--surface-2);
  max-width: calc((100% - 1.7rem) / 0.82);
}

/* When focused, the input bg turns white — label bg must follow */
.field input:focus + label,
.field textarea:focus + label,
.field select:focus + label {
  background: #fff;
}

.field-hint {
  display: block;
  margin: 0.4rem 0.25rem 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Aside / info card next to form */
.info-card { padding: 1.6rem 1.6rem 1.4rem; }
.info-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; letter-spacing: -0.01em; }
.info-card p { color: var(--muted); margin: 0 0 1rem; line-height: 1.55; font-size: 0.95rem; }
.info-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.info-card li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  color: var(--ink-2);
  font-size: 0.93rem;
}
.info-card li::before {
  content: "";
  margin-top: 0.45rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-deep));
  flex: none;
}

/* -------------- Alerts -------------- */
.alert {
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  animation: fadeUp 0.4s var(--ease) both;
}
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert.success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(14,140,90,0.2); }
.alert.error { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(179,38,30,0.2); }

/* -------------- Footer -------------- */
.footer {
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer .brand { color: var(--ink); }
.footer small { color: var(--muted-2); }

/* -------------- Admin -------------- */
.admin-shell { min-height: 100vh; }

.admin-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.admin-nav .nav-inner { padding: 0.85rem 0; }
.admin-badge {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-deep); background: var(--brand-soft);
  padding: 0.2rem 0.55rem; border-radius: 999px; margin-left: 0.5rem;
}

.admin-user {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.35rem 0.55rem 0.35rem 0.35rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 0.9rem; color: var(--ink-2);
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-deep));
  color: #fff; font-weight: 700; font-size: 0.85rem;
  display: grid; place-items: center;
}

.admin-hero {
  padding: 2.5rem 0 1.5rem;
}
.admin-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.025em;
}
.admin-hero p { color: var(--muted); margin: 0; }

.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.kpi .k-label { color: var(--muted); font-size: 0.85rem; }
.kpi .k-value { font-size: 1.7rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin-top: 0.2rem; }
.kpi .k-foot { color: var(--muted-2); font-size: 0.82rem; margin-top: 0.4rem; }

.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.table-head {
  padding: 1.2rem 1.4rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.table-head h2 { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; }
.table-head .search {
  position: relative;
}
.table-head .search input {
  padding: 0.55rem 0.9rem 0.55rem 2.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  font: inherit;
  font-size: 0.92rem;
  width: 240px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.table-head .search input:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18,104,255,0.12);
}
.table-head .search::before {
  content: "";
  position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid var(--muted-2); border-radius: 50%;
}

.table-scroll { overflow-x: auto; }

.admin-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.94rem;
}
.admin-table th {
  background: #fbfdff;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-table tbody tr { transition: background 0.18s var(--ease); }
.admin-table tbody tr:hover { background: #f5f9ff; }
.admin-table tbody tr:last-child td { border-bottom: none; }

.cell-name { font-weight: 600; color: var(--ink); }
.cell-mail { color: var(--ink-2); }
.cell-mail a { color: inherit; border-bottom: 1px dashed var(--line-strong); }
.cell-mail a:hover { color: var(--brand-deep); border-color: var(--brand); }
.pill { display: inline-block; padding: 0.18rem 0.6rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep); font-weight: 600; font-size: 0.78rem; }
.muted { color: var(--muted); }
.desc { max-width: 32rem; color: var(--ink-2); line-height: 1.5; }

.empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
}
.empty h3 { color: var(--ink); margin: 0 0 0.4rem; }

/* -------------- Admin filter tabs + request cards -------------- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
}
.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.filter-tab:hover { background: var(--surface-2); color: var(--brand-deep); }
.filter-tab.active {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-color: rgba(18,104,255,0.18);
}
.filter-tab .count {
  display: inline-grid; place-items: center;
  min-width: 22px; padding: 0 0.4rem; height: 20px;
  border-radius: 999px;
  font-size: 0.74rem; font-weight: 700;
  background: rgba(15, 33, 71, 0.08);
  color: var(--ink-2);
}
.filter-tab.active .count { background: var(--brand); color: #fff; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.toolbar .search-form { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.toolbar .search-form input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.toolbar .search-form input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(18,104,255,0.12);
}
.toolbar .search-form::before {
  content: "";
  position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid var(--muted-2); border-radius: 50%;
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1rem;
}

.req-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1rem;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  position: relative;
}
.req-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.req-card.is-reviewed { border-color: rgba(255, 168, 23, 0.4); }
.req-card.is-responded { border-color: rgba(14, 140, 90, 0.5); opacity: 0.92; }

.req-card .req-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 0.6rem;
}
.req-card .req-name {
  font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
  margin: 0;
}
.req-card .req-date { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

.req-status {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.req-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.req-status.s-new { color: #0a4dd6; background: var(--brand-soft); }
.req-status.s-reviewed { color: #b06a00; background: #fff3df; }
.req-status.s-responded { color: #0e8c5a; background: #e0f6ea; }

.req-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.req-meta .label { color: var(--muted); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; }
.req-meta a { color: var(--ink-2); }
.req-meta a:hover { color: var(--brand-deep); }

.req-desc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.req-desc:hover { background: #f1f6ff; }
.req-desc.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
}
.req-desc .toggle-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.74rem;
  color: var(--brand-deep);
  font-weight: 600;
}

.req-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}
.req-actions form { display: inline-flex; }
.req-actions .act {
  padding: 0.45rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.req-actions .act:hover { background: var(--brand-soft); color: var(--brand-deep); border-color: rgba(18,104,255,0.25); }
.req-actions .act.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.req-actions .act.is-reviewed { color: #b06a00; border-color: rgba(176,106,0,0.3); }
.req-actions .act.is-reviewed:hover { background: #fff3df; }
.req-actions .act.is-reviewed.is-active { background: #b06a00; color: #fff; border-color: #b06a00; }
.req-actions .act.is-responded { color: #0e8c5a; border-color: rgba(14,140,90,0.3); }
.req-actions .act.is-responded:hover { background: #e0f6ea; }
.req-actions .act.is-responded.is-active { background: #0e8c5a; color: #fff; border-color: #0e8c5a; }

@media (max-width: 520px) {
  .req-grid { grid-template-columns: 1fr; }
  .req-meta { grid-template-columns: 1fr; }
}

/* -------------- Auth (admin login) -------------- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 2.2rem;
  animation: fadeUp 0.6s var(--ease) both;
}
.auth-card .brand { margin-bottom: 1.4rem; }
.auth-card h1 {
  margin: 0 0 0.4rem; font-size: 1.6rem; letter-spacing: -0.02em;
}
.auth-card .lede { margin: 0 0 1.4rem; color: var(--muted); }
.auth-card .field + .field { margin-top: 0.9rem; }
.auth-card .btn { width: 100%; margin-top: 1.2rem; }
.auth-back { display: inline-flex; margin-top: 1.2rem; color: var(--muted); font-size: 0.9rem; }
.auth-back:hover { color: var(--brand-deep); }

/* -------------- 404 -------------- */
.nf-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.nf-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 3rem 2.4rem;
  max-width: 480px;
  animation: fadeUp 0.6s var(--ease) both;
}
.nf-card h1 {
  margin: 0;
  font-size: 5.4rem;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--brand-2), var(--brand-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nf-card p { color: var(--muted); margin: 0.4rem 0 1.6rem; }

/* -------------- Animations -------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--brand-glow); }
  70%  { box-shadow: 0 0 0 10px rgba(18, 104, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 104, 255, 0); }
}

/* -------------- Idea -> Computer animated scene -------------- */
.scene {
  position: relative;
  margin: 0 auto 2.5rem;
  max-width: 980px;
  height: 320px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 240px at 20% 30%, rgba(255, 222, 89, 0.18), transparent 60%),
    radial-gradient(600px 320px at 80% 70%, rgba(18, 104, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #f0f5ff 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  isolation: isolate;
  animation: fadeUp 0.9s var(--ease) both;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 104, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 104, 255, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 55%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 55%, transparent 90%);
  pointer-events: none;
}

.scene-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  align-items: center;
  padding: 1.5rem 2.4rem;
  gap: 1rem;
}

.scene-label {
  position: absolute;
  top: 1rem;
  left: 1.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scene-label::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 0.45rem;
  background: var(--brand);
  vertical-align: middle;
  box-shadow: 0 0 0 4px rgba(18,104,255,0.12);
  animation: pulse 2.2s infinite;
}

/* The bulb */
.bulb-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.bulb-stack {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}
.bulb-caption {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2.4rem;
  text-align: center;
  position: relative;
}
.bulb-caption::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1.2rem;
  width: 1px;
  height: 0.9rem;
  background: linear-gradient(180deg, rgba(247,168,54,0.7), rgba(247,168,54,0));
}
.bulb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7c4 0%, #ffd97a 40%, #f7a836 75%, #c47a16 100%);
  box-shadow:
    0 0 0 8px rgba(255, 217, 122, 0.18),
    0 0 60px rgba(255, 196, 86, 0.55),
    inset 0 -10px 24px rgba(196, 122, 22, 0.4);
  animation: bulbGlow 3s ease-in-out infinite;
}
.bulb::after {
  content: "💡";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  filter: drop-shadow(0 4px 8px rgba(196, 122, 22, 0.4));
}
.bulb-ring {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  border: 1px dashed rgba(247, 168, 54, 0.5);
  animation: rotateSlow 14s linear infinite;
}
.bulb-ring.r2 { width: 180px; height: 180px; border-color: rgba(18,104,255,0.25); animation-duration: 22s; animation-direction: reverse; }

/* Particles travelling from bulb to monitor */
.flow {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(18, 104, 255, 0.35) 25%, rgba(18, 104, 255, 0.7) 50%, rgba(18, 104, 255, 0.35) 75%, transparent 100%);
  border-radius: 2px;
}
.flow-line::before, .flow-line::after {
  content: "";
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 14px var(--brand), 0 0 4px #fff;
}
.flow-line::before { left: 0; animation: glide 2.4s linear infinite; }
.flow-line::after  { left: 0; animation: glide 2.4s linear infinite 1.2s; }

.flow-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(18, 104, 255, 0.16);
  white-space: nowrap;
}
.flow-chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.flow-chip.c1 { top: 22%; animation: chipFloat 4s ease-in-out infinite; }
.flow-chip.c2 { top: 58%; animation: chipFloat 4s ease-in-out infinite 1.3s; }
.flow-chip.c3 { top: 38%; left: 55%; animation: chipFloat 4s ease-in-out infinite 2.6s; }

/* Monitor / computer */
.monitor {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow:
    0 18px 40px rgba(15, 33, 71, 0.15),
    inset 0 0 0 1px rgba(255,255,255,0.6);
  animation: monitorFloat 6s ease-in-out infinite;
}
.monitor::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 80px; height: 8px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #e3ebfa, #c9d6f0);
}
.monitor-bar {
  display: flex;
  gap: 0.3rem;
  padding: 0.1rem 0.4rem 0.55rem;
}
.monitor-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #dee5f3;
}
.monitor-bar span:nth-child(1) { background: #ff5f57; }
.monitor-bar span:nth-child(2) { background: #febc2e; }
.monitor-bar span:nth-child(3) { background: #28c840; }

.monitor-screen {
  border-radius: 10px;
  background: linear-gradient(160deg, #0b1b40 0%, #102d76 100%);
  padding: 0.85rem 0.9rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: #d5e2ff;
  line-height: 1.45;
  min-height: 130px;
  position: relative;
  overflow: hidden;
}
.monitor-screen .code-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-8px);
  animation: codeIn 0.6s var(--ease) forwards;
}
.monitor-screen .code-line .kw   { color: #7ab8ff; }
.monitor-screen .code-line .fn   { color: #ffe18a; }
.monitor-screen .code-line .str  { color: #9be38f; }
.monitor-screen .code-line .com  { color: #7388b8; }
.monitor-screen .code-line:nth-child(1) { animation-delay: 0.3s; }
.monitor-screen .code-line:nth-child(2) { animation-delay: 0.8s; }
.monitor-screen .code-line:nth-child(3) { animation-delay: 1.3s; }
.monitor-screen .code-line:nth-child(4) { animation-delay: 1.8s; }
.monitor-screen .code-line:nth-child(5) { animation-delay: 2.3s; }
.monitor-screen .code-line:nth-child(6) { animation-delay: 2.8s; }
.monitor-screen .cursor {
  display: inline-block;
  width: 7px; height: 0.95em;
  background: #7ab8ff;
  vertical-align: middle;
  margin-left: 1px;
  animation: blink 1s steps(2, start) infinite;
}

@keyframes bulbGlow {
  0%, 100% { box-shadow: 0 0 0 8px rgba(255,217,122,0.18), 0 0 60px rgba(255,196,86,0.55), inset 0 -10px 24px rgba(196,122,22,0.4); transform: scale(1); }
  50%      { box-shadow: 0 0 0 12px rgba(255,217,122,0.28), 0 0 90px rgba(255,196,86,0.75), inset 0 -10px 24px rgba(196,122,22,0.4); transform: scale(1.04); }
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }
@keyframes glide {
  0%   { left: 0%;  opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.85; }
  50%      { transform: translateY(-6px) translateX(8px); opacity: 1; }
}
@keyframes monitorFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes codeIn { to { opacity: 1; transform: translateX(0); } }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* -------------- Legal pages -------------- */
.legal-page { padding: 3rem 0 4rem; }
.legal-page .legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 2.2rem 2.4rem;
  max-width: 920px;
  margin: 0 auto;
  animation: fadeUp 0.5s var(--ease) both;
}
.legal-page h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: -0.025em;
}
.legal-page .meta { color: var(--muted-2); font-size: 0.9rem; margin-bottom: 1.6rem; }
.legal-page h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.legal-page p { color: var(--ink-2); line-height: 1.75; margin: 0 0 1rem; font-size: 0.97rem; }
.legal-page ul { padding-left: 1.3rem; color: var(--ink-2); }
.legal-page li { margin-bottom: 0.45rem; line-height: 1.7; }
.legal-page .callout {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  background: var(--brand-soft);
  border: 1px solid rgba(18,104,255,0.18);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  color: var(--brand-deep);
  font-weight: 600;
}

/* -------------- Footer enhancements -------------- */
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
}
.footer-cols h4 {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-cols a { color: var(--ink-2); font-size: 0.93rem; }
.footer-cols a:hover { color: var(--brand-deep); }
.footer-cols .lede { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0.4rem 0 0; max-width: 30ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* -------------- Responsive -------------- */
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .form-wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .nav-links .nav-link { display: none; }
}

@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; padding: 1.4rem; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .table-head { flex-direction: column; align-items: stretch; }
  .table-head .search input { width: 100%; }
}

/* Field with suffix (e.g. $) */
.field.has-suffix input { padding-right: 2.6rem; }
.field-suffix {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
  font-size: 1.05rem;
  pointer-events: none;
  user-select: none;
}

/* -------- Mobile: scene + header layout fixes -------- */
@media (max-width: 760px) {
  .scene { height: auto; }
  .scene-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.4rem;
    padding: 2.6rem 1.2rem 1.4rem;
    justify-items: center;
    align-items: center;
  }
  .flow { height: 70px; width: 100%; }
  .flow-line {
    width: 2px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(180deg, transparent 0%, rgba(18,104,255,0.7) 50%, transparent 100%);
  }
  .flow-line::before,
  .flow-line::after {
    left: 50%;
    transform: translate(-50%, -50%);
    animation-name: glideV;
  }
  .flow-chip { display: none; }
  .monitor { max-width: 100%; }
  .bulb-caption { margin-top: 1.6rem; }
}

@keyframes glideV {
  0%   { top: 0%;   opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 600px) {
  .nav-inner { justify-content: center; }
  .nav-links { display: none; }
}
