/* FlexSRT design system */
:root {
  --bg: #0d0d14;
  --bg-card: #16161f;
  --bg-elevated: #1d1d29;
  --bg-input: #12121a;
  --border: #2a2a3a;
  --border-strong: #3a3a4e;
  --text: #eceef4;
  --text-dim: #9aa0b4;
  --text-faint: #646b80;
  --accent: #8b5cf6;
  --accent-2: #6366f1;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  --green: #10b981;
  --red: #f87171;
  --amber: #fbbf24;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(13, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: none; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none !important; color: var(--text);
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 6px 22px rgba(124, 92, 246, 0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(124, 92, 246, 0.45); }
.btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-success { background: var(--green); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Cards / sections ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.section-label {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; color: var(--text-dim); margin: 12px 0 6px; font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-input); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font); outline: none;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.badge-free { background: #2a2a3a; color: var(--text-dim); }
.badge-pro { background: var(--accent-soft); color: var(--accent); }
.badge-promax { background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(168,85,247,.18)); color: var(--amber); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 13px 22px; font-size: 14px; z-index: 300; box-shadow: var(--shadow);
  opacity: 0; transition: opacity 0.25s, transform 0.25s; max-width: 92vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: var(--red); }
.toast.success { border-color: var(--green); }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 5, 10, 0.72); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius); padding: 30px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow);
}
.modal h3 { margin-bottom: 6px; font-size: 21px; }
.modal .modal-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }

/* ---------- Loader ---------- */
.loader {
  width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.85);
  border-bottom-color: transparent; border-radius: 50%;
  animation: rot 0.9s linear infinite; display: inline-block; vertical-align: -3px;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border); padding: 34px 28px; margin-top: 60px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  color: var(--text-faint); font-size: 13.5px;
}
.footer a { color: var(--text-dim); }

@media (max-width: 760px) {
  .nav { padding: 12px 16px; }
  .nav-links { display: none; }
}
