/* ============================================================================
   Go Notifier — account portal. Same dark/alive brand, but focused & functional:
   subtle ambient glow (less marketing motion), clean auth cards + dashboard.
   ============================================================================ */
:root {
  --teal: #34DBC7; --cyan: #2BB6DC; --blue: #3B7DF5; --blue-700: #2f6ad8; --charcoal: #1B2129;
  --gradient: linear-gradient(135deg, #34DBC7 0%, #2BB6DC 50%, #3B7DF5 100%);
  --bg: #12181F; --surface: #1a222c; --surface-2: #222d39; --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.16);
  --text: #EAF1F8; --text-muted: #9caab9;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 16px; --radius-lg: 22px; --shadow: 0 24px 70px rgba(0,0,0,.5); --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--teal); text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; }
.muted { color: var(--text-muted); }
img, svg { display: block; max-width: 100%; }

/* ambient glow (subtle, slow) */
.orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .3; }
.o1 { width: 46vw; height: 46vw; background: radial-gradient(circle, var(--teal), transparent 68%); top: -16%; left: -10%; animation: drift 34s var(--ease) infinite alternate; }
.o2 { width: 44vw; height: 44vw; background: radial-gradient(circle, var(--blue), transparent 68%); bottom: -18%; right: -12%; animation: drift2 38s var(--ease) infinite alternate; }
@keyframes drift { to { transform: translate(14vw, 8vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-12vw, -8vh) scale(1.1); } }

/* brand lockup */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; overflow: visible; filter: drop-shadow(0 2px 10px rgba(52,180,210,.45)); }
.brand-word { font-size: 1.32rem; font-weight: 600; letter-spacing: -.025em; display: flex; }
.brand-word .go { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-word .nt { color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: 12px; border: 1.5px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .25s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(59,125,245,.4); }
.btn-primary:not([disabled]):hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(59,125,245,.55); }
.btn-gradient { background: var(--gradient); color: #06141a; font-weight: 700; box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 10px 32px rgba(52,180,210,.5); }
.btn-gradient:not([disabled]):hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 16px 46px rgba(52,180,210,.7); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ---- AUTH (sign-up / login / verify) ---- */
.auth-wrap { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 440px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow); position: relative; }
.auth-card::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); padding: 1px; background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .35; pointer-events: none; }
.auth-card .brand { margin-bottom: 26px; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 8px; color: #fff; }
.auth-card .sub { color: var(--text-muted); margin-bottom: 26px; font-size: .98rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 7px; }
.input { width: 100%; font-family: var(--font); font-size: 1rem; color: #fff; background: rgba(255,255,255,.04); border: 1.5px solid var(--line-strong);
  border-radius: 11px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.input::placeholder { color: #6c7884; }
.input:focus { outline: none; border-color: var(--blue); background: rgba(59,125,245,.06); box-shadow: 0 0 0 3px rgba(59,125,245,.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-card .btn { margin-top: 8px; }
.switch { margin-top: 20px; font-size: .94rem; color: var(--text-muted); text-align: center; }
.switch a { font-weight: 600; }
.err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; border-radius: 11px; padding: 11px 14px; font-size: .92rem; margin-bottom: 16px; }
.note { background: rgba(52,219,199,.10); border: 1px solid rgba(52,219,199,.28); color: #bdeee6; border-radius: 11px; padding: 11px 14px; font-size: .9rem; margin: 16px 0; }
.center-state { text-align: center; }
.center-state .big-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--gradient); display: grid; place-items: center; margin: 0 auto 22px; box-shadow: 0 12px 34px rgba(52,180,210,.5); }
.email-pill { font-weight: 700; color: #fff; direction: ltr; word-break: break-all; }
.dev-hint { margin-top: 18px; font-size: .82rem; color: #7c8893; border-top: 1px dashed var(--line); padding-top: 14px; }

/* ---- DASHBOARD ---- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(16,21,28,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1040px; margin: 0 auto; padding: 0 24px; height: 70px; display: flex; align-items: center; justify-content: space-between; }
.dash { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 42px 24px 80px; }
.dash-hi { font-size: clamp(1.7rem, 4vw, 2.4rem); color: #fff; margin-bottom: 6px; }
.dash-sub { color: var(--text-muted); margin-bottom: 34px; }
.cards { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-bottom: 34px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 16px; }
.plan-name { font-size: 1.9rem; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.plan-status { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.plan-status.active { background: rgba(52,219,199,.14); color: var(--teal); }
.plan-status.free { background: rgba(255,255,255,.06); color: var(--text-muted); }
.plan-meta { margin-top: 16px; color: var(--text-muted); font-size: .94rem; line-height: 1.7; }
/* upgrade card */
.upsell { background: linear-gradient(160deg, rgba(52,219,199,.14), rgba(59,125,245,.13)); border: 1px solid rgba(52,180,210,.4); position: relative; overflow: hidden; box-shadow: 0 0 50px rgba(52,180,210,.22); }
.upsell h3 { color: #cfe9ff; }
.upsell .price-line { color: #fff; font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.upsell .price-line span { color: var(--teal); }
.upsell p { color: #c3d0dd; font-size: .92rem; margin-bottom: 18px; }
/* trips */
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title h2 { font-size: 1.25rem; color: #fff; }
.trip-list { display: grid; gap: 12px; }
.trip { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s, transform .2s; }
.trip:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.trip-ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(59,125,245,.14); display: grid; place-items: center; flex: 0 0 auto; }
.trip-main { flex: 1; min-width: 0; }
.trip-name { font-weight: 600; color: #fff; }
.trip-meta { font-size: .88rem; color: var(--text-muted); margin-top: 2px; }
.badge { font-size: .76rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; flex: 0 0 auto; }
.badge.unlocked { background: var(--gradient); color: #06141a; }
.badge.free { background: rgba(255,255,255,.07); color: var(--text-muted); }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 36px; text-align: center; color: var(--text-muted); }
.skeleton { color: var(--text-muted); padding: 30px; text-align: center; }

/* toast */
.gn-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100; background: #1c2530; color: #fff; border: 1px solid var(--line-strong);
  padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 500; transition: opacity .3s; }
.gn-toast.success { border-color: rgba(52,219,199,.5); }
.gn-toast.error { border-color: rgba(239,68,68,.5); }

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px; }
}
/* ---- Upgrade modal (assignable purchase) ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(8,12,16,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; }
.modal-overlay[hidden] { display: none; }
.modal { position: relative; width: 100%; max-width: 460px; background: linear-gradient(180deg, #1d2630, #161d25); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); animation: modalIn .25s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal h2 { font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.modal .modal-sub { font-size: .95rem; margin-bottom: 22px; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--text-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s; }
.modal-x:hover { color: #fff; border-color: var(--line-strong); }
.back { background: none; border: 0; color: var(--text-muted); font: inherit; cursor: pointer; padding: 0; margin-bottom: 14px; }
.back:hover { color: var(--teal); }
/* option cards */
.opt { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 14px; cursor: pointer; font: inherit; color: var(--text); transition: transform .18s var(--ease), border-color .2s, box-shadow .25s; }
.opt:hover { transform: translateY(-2px); border-color: var(--teal); box-shadow: 0 14px 36px rgba(0,0,0,.4); }
.opt-grad { background: linear-gradient(160deg, rgba(52,219,199,.14), rgba(59,125,245,.13)); border-color: rgba(52,180,210,.45); box-shadow: 0 0 36px rgba(52,180,210,.2); }
.opt-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.opt-h b { font-size: 1.12rem; color: #fff; }
.opt-price { font-size: 1.3rem; font-weight: 700; color: var(--teal); }
.opt-price small { font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.opt p { font-size: .9rem; color: var(--text-muted); }
/* trip selection */
.trip-options { display: grid; gap: 10px; margin-bottom: 18px; max-height: 280px; overflow-y: auto; }
.trip-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: var(--surface);
  border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; cursor: pointer; font: inherit; color: var(--text); transition: border-color .2s, background .2s; }
.trip-opt:hover { border-color: var(--teal); }
.trip-opt.sel { border-color: var(--blue); background: rgba(59,125,245,.08); }
.trip-opt.done { opacity: .65; cursor: default; }
.trip-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: 0 0 auto; transition: border-color .2s, box-shadow .2s; }
.trip-opt.sel .radio { border-color: var(--blue); box-shadow: inset 0 0 0 4px var(--blue); }
/* spinner */
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--teal); margin: 6px auto 22px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) { .orb, .spinner, .modal { animation: none !important; } }
