/* ============================================================
   OpenUP.Ge — design system
   ============================================================ */
:root {
  --bg-0: #07091a;
  --bg-1: #0d1230;
  --bg-2: #141a44;
  --panel: #ffffff;
  --panel-soft: #f6f7fc;
  --panel-2: #eef0fa;
  --text: #0d1330;
  --text-2: #2a3057;
  --muted: #6b7392;
  --muted-2: #98a0bf;
  --border: #e7e9f3;
  --border-strong: #d6dbf0;

  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --primary-3: #d946ef;
  --primary-ink: #fff;

  --ok: #0e9f6e;
  --ok-bg: #defcec;
  --warn: #b45309;
  --warn-bg: #fff1d6;
  --bad: #d23344;
  --bad-bg: #fde6e8;

  --ring: 0 0 0 4px rgba(99, 102, 241, .18);
  --shadow-sm: 0 4px 14px rgba(13, 19, 48, .06);
  --shadow: 0 24px 60px rgba(13, 19, 48, .14);
  --shadow-lg: 0 40px 100px rgba(13, 19, 48, .22);
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  font-family: "Inter", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--bg-0);
  position: relative;
  overflow-x: hidden;
}

/* Animated aurora background (landing) */
body.landing::before,
body.landing::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
  animation: float 18s ease-in-out infinite;
}
body.landing::before {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -200px; left: -160px;
}
body.landing::after {
  width: 720px; height: 720px;
  background: radial-gradient(circle, #d946ef 0%, transparent 70%);
  top: -260px; right: -220px;
  animation-delay: -7s;
}
.aurora-3 {
  position: fixed; left: 30%; top: 50%;
  width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
  filter: blur(120px); opacity: .35; pointer-events: none; z-index: 0;
  animation: float 22s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(60px, 40px) scale(1.08); }
  66%      { transform: translate(-40px, 80px) scale(.95); }
}

/* App background (logged in) — light & airy */
body.app {
  background:
    radial-gradient(900px 600px at 100% -10%, rgba(139, 92, 246, .14), transparent 60%),
    radial-gradient(800px 600px at -10% 0%, rgba(99, 102, 241, .14), transparent 60%),
    linear-gradient(180deg, #0d1230 0%, #1a2055 320px, #f4f6fc 320px, #f4f6fc 100%);
}
body.app::before, body.app::after, body.app .aurora-3 { display: none; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: relative;
  z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  color: #fff;
}
.brand { display: flex; align-items: center; gap: 14px; }
.logo-img {
  width: 44px; height: 44px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(139, 92, 246, .55);
}
.brand-name {
  font-weight: 800; font-size: 21px; letter-spacing: -.4px;
}
.brand-name.dark { color: var(--text); }
.brand-dot { color: #c4b5fd; font-weight: 700; }
.brand-name.dark .brand-dot {
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { color: #c7cce0; font-size: 12px; letter-spacing: .2px; }
body.app .topbar { color: #fff; }

.nav { display: flex; align-items: center; gap: 12px; }
.nav a { color: #d6d9ee; text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: #fff; }

/* ============================================================
   LANGUAGE SWITCHER (custom dropdown)
   ============================================================ */
.lang-switch { position: relative; }

.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  color: #e8eaff;
  border-radius: 999px;
  cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: .3px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .15s, border-color .15s, transform .05s;
}
.lang-btn:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.28);
}
.lang-btn:active { transform: translateY(1px); }

.lang-flag {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: #fff;
  box-shadow: 0 4px 10px rgba(139, 92, 246, .35);
  flex: 0 0 22px;
}
.lang-flag-icon { width: 14px; height: 14px; opacity: .9; }
.lang-code { font-weight: 700; letter-spacing: .6px; }

.lang-chevron {
  width: 10px; height: 6px; opacity: .8;
  transition: transform .2s ease;
  margin-left: 2px;
}
.lang-switch.open .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px;
  background: rgba(20, 24, 56, .82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 24px 48px rgba(7, 9, 26, .5), 0 0 0 1px rgba(255,255,255,.04) inset;
  display: flex; flex-direction: column; gap: 2px;
  z-index: 60;
  transform-origin: top right;
  animation: menuPop .18s cubic-bezier(.2,.8,.2,1);
}
@keyframes menuPop {
  from { transform: translateY(-6px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1);     opacity: 1; }
}

.lang-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: 0; border-radius: 10px;
  color: #d8dbf0;
  cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500;
  text-align: left;
  transition: background .12s, color .12s;
}
.lang-opt .lang-code {
  display: inline-grid; place-items: center;
  width: 28px; height: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: #c9cdf0;
}
.lang-opt .lang-name { flex: 1; }
.lang-opt .lang-check {
  width: 14px; height: 14px; opacity: 0;
  color: var(--primary-3);
  transition: opacity .15s, transform .15s;
  transform: scale(.6);
}
.lang-opt:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.lang-opt:hover .lang-code {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.lang-opt.active {
  background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(217,70,239,.14));
  color: #fff;
}
.lang-opt.active .lang-code {
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  border-color: transparent;
  color: #fff;
}
.lang-opt.active .lang-check { opacity: 1; transform: scale(1); }

/* Light variant — when logged into the app and topbar sits over light bg */
body.app .lang-menu {
  background: rgba(255, 255, 255, .96);
  border-color: var(--border);
  box-shadow: 0 24px 48px rgba(13, 19, 48, .14);
}
body.app .lang-opt { color: var(--text-2); }
body.app .lang-opt .lang-code {
  background: var(--panel-soft);
  border-color: var(--border);
  color: var(--text-2);
}
body.app .lang-opt:hover { background: var(--panel-soft); color: var(--text); }
body.app .lang-opt:hover .lang-code {
  background: var(--panel-2); border-color: var(--border-strong); color: var(--text);
}
body.app .lang-opt.active { color: var(--text); }
body.app .lang-opt.active .lang-code { color: #fff; }

/* ============================================================
   MAIN / HERO
   ============================================================ */
main {
  position: relative;
  z-index: 1;
  max-width: 1180px; margin: 0 auto;
  padding: 24px 40px 80px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  color: #e2e5ff;
  font-size: 12px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .22);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, .22); }
  50%      { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
}

.hero {
  display: grid; grid-template-columns: 1.15fr .95fr; gap: 40px;
  align-items: center;
  padding: 48px 0 72px;
  color: #fff;
}
.hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > *:nth-child(2) { animation-delay: .05s; }
.hero-text > *:nth-child(3) { animation-delay: .1s; }
.hero-text > *:nth-child(4) { animation-delay: .18s; }
.hero-text > *:nth-child(5) { animation-delay: .24s; }
@keyframes rise {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 64px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 20px;
}
.grad {
  background: linear-gradient(110deg, #a5b4fc 0%, #c4b5fd 40%, #f0abfc 75%, #fbcfe8 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #c5c9e6; margin: 0 0 28px;
  line-height: 1.6; max-width: 580px;
}
.hero-cta { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.big-btn { padding: 15px 24px; font-size: 15px; }
.small { font-size: 12px; }
.muted.small { color: #a8aecc; }

/* trust microstrip */
.trust {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  margin-top: 18px;
  color: #b9bee0; font-size: 13px;
}
.trust .dot { width: 4px; height: 4px; border-radius: 50%; background: #5a619a; }
.trust b { color: #fff; font-weight: 600; }

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.hero-card { display: grid; place-items: center; perspective: 1400px; }
.phone {
  width: 300px; height: 600px;
  border-radius: 48px;
  padding: 14px;
  background: linear-gradient(160deg, #1e2255 0%, #0a0d28 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 2px rgba(255,255,255,.04);
  position: relative;
  transform: rotateY(-6deg) rotateX(4deg);
  animation: phoneFloat 7s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotateY(-6deg) rotateX(4deg) translateY(0); }
  50%      { transform: rotateY(-6deg) rotateX(4deg) translateY(-10px); }
}
.phone::after {
  /* side button highlights */
  content: ""; position: absolute; inset: 0; border-radius: 48px;
  background: linear-gradient(120deg, transparent 60%, rgba(255,255,255,.05) 80%, transparent 90%);
  pointer-events: none;
}
.phone-screen {
  background: linear-gradient(180deg, #0c1131 0%, #141a44 100%);
  border-radius: 36px;
  height: 100%;
  padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
}
/* Dynamic island */
.phone-screen::before {
  content: "";
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #000; border-radius: 999px;
  z-index: 3;
}
/* Status bar */
.phone-status {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px 0;
  font-size: 13px; font-weight: 600; color: #fff;
  letter-spacing: .3px;
}
.phone-status .icons { display: flex; gap: 5px; align-items: center; opacity: .85; }
.phone-status .icons svg { width: 14px; height: 14px; }

.phone-header {
  display: flex; align-items: center; gap: 10px;
  padding: 36px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.phone-header img { width: 36px; height: 36px; border-radius: 10px; }
.phone-title { color: #fff; font-weight: 700; font-size: 15px; }
.phone-sub { color: #8d97cf; font-size: 11px; margin-top: 2px; }

.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sms-bubble {
  background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(139,92,246,.16));
  border-radius: 18px;
  padding: 12px 14px;
  color: #e9ebff;
  border: 1px solid rgba(139,92,246,.28);
  box-shadow: 0 8px 24px rgba(99,102,241,.18);
  animation: smsPop .7s cubic-bezier(.2,.8,.2,1) both;
}
.sms-bubble:nth-child(2) { animation-delay: .9s; }
.sms-bubble:nth-child(3) { animation-delay: 1.6s; opacity: .9; }
@keyframes smsPop {
  from { transform: translateY(10px) scale(.96); opacity: 0; }
  to   { transform: translateY(0) scale(1);     opacity: 1; }
}
.sms-from {
  font-size: 10px; color: #b6bdf0; margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .9px; font-weight: 600;
}
.sms-text { font-size: 14px; line-height: 1.4; }
.sms-time { font-size: 10px; color: #8b93c8; margin-top: 6px; }

/* ============================================================
   LANDING FOOTER
   ============================================================ */
.land-footer {
  color: #8087a8; text-align: center; padding: 18px 0 36px;
  font-size: 13px; position: relative; z-index: 1;
}

/* ============================================================
   APP — welcome / cards
   ============================================================ */
.welcome {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
}
.welcome h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.4px; }

.card {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 20px; gap: 12px; flex-wrap: wrap;
}
.card h2 { margin: 0 0 18px; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.muted { color: var(--muted); font-size: 13px; }

/* ============================================================
   BOARD
   ============================================================ */
.board-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.board-cell {
  background: linear-gradient(180deg, #fff, var(--panel-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}
.board-cell::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,.05), transparent 60%);
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.board-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 25, 70, .1);
  border-color: var(--border-strong);
}
.board-cell:hover::before { opacity: 1; }
.board-cell.mine {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--primary), var(--primary-3)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 14px 30px rgba(99, 102, 241, .18);
}

.city-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px;
}
.board-cell .city { font-weight: 700; font-size: 16px; letter-spacing: -.2px; }
.board-cell .meta { font-size: 12px; color: var(--muted); }

.mine-tag {
  font-size: 10px; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  color: #fff; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase;
}

.dates-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 12px; padding: 5px 10px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok);
  font-weight: 600; letter-spacing: .2px;
  border: 1px solid rgba(14, 159, 110, .15);
}
.pill.limited { background: var(--warn-bg); color: var(--warn); border-color: rgba(180,83,9,.15); }
.pill.unavailable { background: #eef0f5; color: #98a; font-weight: 500; border-color: transparent; }
.pill.empty { background: #f1f2f8; color: #98a; border-color: transparent; }

/* ============================================================
   ADMIN LINK / NAV BUTTONS
   ============================================================ */
.admin-link {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 13px;
  padding: 9px 16px; border-radius: 10px;
  background: linear-gradient(135deg, #fb923c, #ec4899);
  box-shadow: 0 10px 24px rgba(236, 72, 153, .35);
  transition: filter .15s, transform .05s;
}
.admin-link:hover { filter: brightness(1.06); }
.admin-link:active { transform: translateY(1px); }
.admin-back { color: #d6d9ee; text-decoration: none; font-size: 14px; margin-right: 14px; }
.admin-back:hover { color: #fff; }

/* ============================================================
   ADMIN
   ============================================================ */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 22px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.08), transparent 70%);
}
.stat-num {
  font-size: 34px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label {
  font-size: 11px; color: var(--muted); text-transform: uppercase;
  letter-spacing: .8px; margin-top: 8px; font-weight: 600;
}
@media (max-width: 720px) { .stats-row { grid-template-columns: 1fr 1fr; } }

/* table */
.filter {
  padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border);
  font: inherit; min-width: 240px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.filter:focus { border-color: var(--primary); box-shadow: var(--ring); }
.table-wrap { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.users-table th, .users-table td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.users-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .7px;
  color: var(--muted); font-weight: 700; background: var(--panel-soft);
}
.users-table tr:hover td { background: #fafbff; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase; margin-left: 6px;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.none { background: #eef0f5; color: #98a; }
.badge.admin { background: #ffe9d6; color: #b54708; }

/* ============================================================
   PRICING / STEPS
   ============================================================ */
.pricing .price-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.price-tag { text-align: center; }
.price-tag .big {
  font-size: 60px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-tag .unit { font-size: 18px; color: var(--primary); margin-left: 4px; font-weight: 700; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.features li { color: #3a4163; }
.steps { padding-left: 18px; line-height: 1.8; color: #3a4163; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600;
  padding: 12px 20px; border-radius: 12px;
  transition: transform .06s ease, box-shadow .18s ease, background .15s, filter .15s;
  letter-spacing: -.1px;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2) 55%, var(--primary-3));
  color: var(--primary-ink);
  box-shadow: 0 12px 28px rgba(99, 102, 241, .38), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn.primary:hover { box-shadow: 0 16px 32px rgba(139, 92, 246, .48), inset 0 1px 0 rgba(255,255,255,.22); filter: brightness(1.04); }
.btn.ghost {
  background: rgba(255,255,255,.07);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn.ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.card .btn.ghost { background: var(--panel-soft); color: var(--text); border: 1px solid var(--border); backdrop-filter: none; }
.card .btn.ghost:hover { background: var(--panel-2); border-color: var(--border-strong); }
.btn.block { width: 100%; }
.btn.small { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0;
  background: rgba(7, 9, 26, .65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center;
  z-index: 50; padding: 20px;
  animation: modalFade .2s ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: #fff; border-radius: var(--radius-xl);
  width: 100%; max-width: 460px;
  padding: 32px; position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalRise .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalRise {
  from { transform: translateY(16px) scale(.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.modal-card.wide { max-width: 580px; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: var(--panel-soft); border: 0;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; cursor: pointer; color: var(--muted);
  display: grid; place-items: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--panel-2); color: var(--text); }

.modal-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.modal-brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 20px rgba(99,102,241,.3); }

.tabs {
  display: flex; gap: 6px;
  background: var(--panel-soft); padding: 4px;
  border-radius: 12px; margin-bottom: 22px;
}
.tab {
  flex: 1; padding: 10px; border-radius: 9px; border: 0;
  background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px;
  color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s;
}
.tab:hover { color: var(--text-2); }
.tab.active {
  background: #fff; color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   FORMS
   ============================================================ */
.form { display: grid; gap: 16px; }
.form label {
  display: grid; gap: 6px;
  font-size: 12px; color: var(--text-2);
  font-weight: 600; letter-spacing: .2px;
  text-transform: uppercase;
}
.form input, .form select {
  width: 100%; padding: 12px 14px;
  border-radius: 11px; border: 1px solid var(--border);
  font: inherit; font-size: 15px; font-weight: 500;
  background: #fff; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  text-transform: none; letter-spacing: 0;
}
.form input::placeholder { color: var(--muted-2); font-weight: 400; }
.form input:focus, .form select:focus {
  border-color: var(--primary);
  box-shadow: var(--ring);
}
.form input:hover, .form select:hover { border-color: var(--border-strong); }
.form-error {
  color: var(--bad); font-size: 13px; min-height: 1em;
  font-weight: 500; text-transform: none; letter-spacing: 0;
}
.form-row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.email { font-weight: 700; font-size: 15px; }

.dash-status {
  padding: 14px 16px; border-radius: 12px; margin-bottom: 18px;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid transparent;
}
.dash-status.ok    { background: var(--ok-bg);   color: var(--ok);   border-color: rgba(14,159,110,.18); }
.dash-status.warn  { background: var(--warn-bg); color: var(--warn); border-color: rgba(180,83,9,.18); }
.dash-status.none  { background: var(--panel-soft); color: var(--text-2); border-color: var(--border); }

.dash-extras {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.dash-extras h3 {
  margin: 0 0 12px; font-size: 13px;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--muted); font-weight: 700;
}
.dates-list { display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   USER BUTTON (header)
   ============================================================ */
.user-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; padding: 9px 16px; border-radius: 999px;
  cursor: pointer; font: inherit; font-weight: 500; font-size: 13px;
  display: inline-flex; gap: 9px; align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .15s, border-color .15s;
}
.user-btn:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.28); }
.user-btn .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.22);
}
.user-btn .dot.off { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.22); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 28px 0 40px; gap: 28px; }
  .hero-card { order: -1; }
  .phone { width: 260px; height: 520px; transform: rotateY(0) rotateX(0); animation: none; }
}
@media (max-width: 700px) {
  .topbar { padding: 16px 22px; }
  main { padding: 16px 22px 60px; }
  .hero h1 { font-size: 38px; }
  .nav a { display: none; }
  .welcome { flex-direction: column; align-items: flex-start; }
  .hero-card { display: none; }
  .card { padding: 22px; }
}
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .trust { gap: 10px; font-size: 12px; }
}


/* ============================================================
   UX UPGRADES (toasts, button loading, password toggle, days pill)
   ============================================================ */

/* Toast stack */
.toast-stack {
  position: fixed; top: 18px; right: 18px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 200; pointer-events: none;
  max-width: calc(100vw - 36px);
}
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  min-width: 240px; max-width: 380px;
  padding: 12px 16px 12px 14px;
  background: rgba(20, 24, 56, .92);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(7,9,26,.4);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  opacity: 0; transform: translateY(-8px) scale(.98);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.2,1);
}
.toast.in  { opacity: 1; transform: translateY(0) scale(1); }
.toast.out { opacity: 0; transform: translateY(-8px) scale(.98); }
.toast-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-block; flex: 0 0 22px;
  background: linear-gradient(135deg, #34d399, #10b981);
  position: relative;
  box-shadow: 0 4px 14px rgba(16, 185, 129, .35);
}
.toast-icon::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 7l3 3 5-6'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.toast-warn .toast-icon {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 4px 14px rgba(245, 158, 11, .35);
}
.toast-warn .toast-icon::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'><path d='M7 3v5'/><circle cx='7' cy='10.5' r='1' fill='white' stroke='none'/></svg>");
}
.toast-bad .toast-icon {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  box-shadow: 0 4px 14px rgba(225, 29, 72, .35);
}
.toast-bad .toast-icon::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'><path d='M4 4l6 6M10 4l-6 6'/></svg>");
}
.toast-text { flex: 1; line-height: 1.3; }

/* Button loading spinner */
.btn[data-loading="1"] {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn[data-loading="1"]::after {
  content: ""; position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
}
.card .btn.ghost[data-loading="1"]::after {
  border-color: rgba(13,19,48,.18);
  border-top-color: var(--text);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Password show/hide toggle */
.pw-wrap {
  position: relative; display: block;
}
.pw-wrap input {
  padding-right: 44px !important;
}
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px;
  background: transparent; border: 0; cursor: pointer;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--muted);
  transition: background .12s, color .12s;
}
.pw-toggle:hover { background: var(--panel-soft); color: var(--text-2); }
.pw-toggle::before {
  content: ""; width: 18px; height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 10s3-6 8-6 8 6 8 6-3 6-8 6-8-6-8-6z'/><circle cx='10' cy='10' r='2.5'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.pw-toggle.shown::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='currentColor' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M2 10s3-6 8-6c1.7 0 3.2.7 4.4 1.6M18 10s-1 2-3 3.7M10 14c-5 0-8-4-8-4M3 3l14 14'/></svg>");
}

/* Days-left pill on subscription status */
.dash-status {
  flex-wrap: wrap; row-gap: 8px;
}
.dash-status .status-main { flex: 1; min-width: 0; }
.days-pill {
  flex: 0 0 auto;
  font-size: 12px; font-weight: 700; letter-spacing: .3px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(14, 159, 110, .14);
  color: var(--ok);
  border: 1px solid rgba(14, 159, 110, .25);
  text-transform: lowercase;
}
.days-pill.warn {
  background: rgba(180, 83, 9, .14);
  color: var(--warn);
  border-color: rgba(180, 83, 9, .25);
}

/* Mobile toast */
@media (max-width: 540px) {
  .toast-stack { top: 12px; right: 12px; left: 12px; max-width: none; }
  .toast { min-width: 0; }
}
