/* ══════════════════════════════════════════
   VARIABLES & RESET
══════════════════════════════════════════ */
:root {
  --ca: #2563eb;
  --cb: #1d4ed8;
  --cc: #1e40af;
  --cs: #10b981;
  --cd: #ef4444;
  --cw: #f59e0b;
  --tm: #0f172a;
  --td: #475569;
  --ts: #94a3b8;
  --br: #e2e8f0;
  --bg: #f0f4ff;
  --sf: #ffffff;
  --r: 16px;
  --r2: 22px;
  --r3: 28px;
  --r4: 36px;
  --sh: 0 20px 60px -8px rgba(0,0,0,.2), 0 8px 24px -4px rgba(0,0,0,.1);
  --sh2: 0 6px 24px rgba(37,99,235,.3);
  --sh3: 0 2px 8px rgba(0,0,0,.06);
  --tr: .25s cubic-bezier(.4,0,.2,1);
  --sft: env(safe-area-inset-top, 0px);
  --sfb: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: url("https://image.blatort.net/229929290108738.jpg") center/cover no-repeat fixed;
}

/* ══ FROSTED GLASS OVERLAY ══ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(224,234,255,.92) 0%,
    rgba(255,255,255,.86) 45%,
    rgba(230,240,255,.94) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 0;
}

/* ══ ANIMATED GRADIENT ORBS ══ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 8% 12%, rgba(37,99,235,.1) 0%, transparent 65%),
    radial-gradient(ellipse 55% 60% at 92% 82%, rgba(16,185,129,.08) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 50% 50%, rgba(99,102,241,.06) 0%, transparent 65%),
    radial-gradient(ellipse 35% 40% at 75% 20%, rgba(245,158,11,.05) 0%, transparent 65%);
  z-index: 0;
  animation: _orbDrift 14s ease-in-out infinite alternate;
}

@keyframes _orbDrift {
  0%   { transform: scale(1) translate(0,0); }
  33%  { transform: scale(1.06) translate(-1%, 1.5%); }
  66%  { transform: scale(1.03) translate(1%, -1%); }
  100% { transform: scale(1.08) translate(-0.5%, 2%); }
}

/* ══ FLOATING PARTICLES ══ */
.particles-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.p-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(37,99,235,.15);
  animation: _pFloat linear infinite;
}

@keyframes _pFloat {
  0%   { transform: translateY(110vh) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .4; }
  100% { transform: translateY(-20vh) scale(1.5); opacity: 0; }
}

/* ══ LAYOUT ══ */
._wrap {
  flex: 1;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
}

/* ══ TOP NAV ══ */
._nav {
  padding: 20px 28px;
  padding-top: calc(16px + var(--sft));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.6);
}

._nav-logo { height: 20px; display: block; }

._nav-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(37,99,235,.1);
  color: var(--ca);
  border: 1px solid rgba(37,99,235,.2);
}

/* ══ MAIN AREA ══ */
._main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px calc(40px + var(--sfb));
  gap: 22px;
}

/* ══ CARD ══ */
._card {
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,.97);
  border-radius: var(--r4);
  padding: 44px 40px 40px;
  box-shadow: var(--sh);
  border: 1px solid rgba(255,255,255,.9);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--tr);
}

._card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #2563eb, #6366f1, #8b5cf6, #10b981, #2563eb);
  background-size: 300% 100%;
  animation: _rainbow 5s linear infinite;
}

._card::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37,99,235,.04) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

@keyframes _rainbow {
  0%   { background-position: 0 0; }
  100% { background-position: 300% 0; }
}

._card:hover {
  box-shadow: 0 32px 80px -8px rgba(0,0,0,.22), 0 10px 28px -4px rgba(0,0,0,.12);
}

/* ══ LOGO ══ */
._logo {
  display: block;
  width: 168px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.08));
  transition: width var(--tr), margin var(--tr), filter var(--tr);
}

._logo._sm { width: 118px; margin-bottom: 20px; }

/* ══ STEP INDICATOR ══ */
._steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  opacity: 0;
  transition: opacity .4s;
}

._steps._show { opacity: 1; }

._step-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--br);
  transition: width .4s cubic-bezier(.4,0,.2,1), background .3s;
  flex-shrink: 0;
}

._step-dot._done   { background: rgba(37,99,235,.35); width: 8px; }
._step-dot._active { background: var(--ca); width: 22px; }

/* ══ PROGRESS LINE ══ */
._prog { margin-bottom: 4px; }

._pb {
  height: 3px;
  border-radius: 3px;
  background: var(--br);
  overflow: hidden;
}

._pf {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ca), #6366f1);
  transition: width .55s cubic-bezier(.4,0,.2,1);
}

._prog-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--ts);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 6px;
  display: block;
}

/* ══ CONTENT ══ */
#_ct { animation: _ctIn .35s ease both; }

@keyframes _ctIn {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

._h1  { font-size: 24px; font-weight: 900; letter-spacing: -.6px; color: var(--tm); margin-bottom: 6px; line-height: 1.2; }
._sub { font-size: 14px; color: var(--td); line-height: 1.6; margin-bottom: 24px; }
._small { font-size: 12px; color: var(--ts); line-height: 1.5; }

/* ══ FIELDS ══ */
._fg { margin-bottom: 14px; position: relative; }

._lbl {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--td);
  margin-bottom: 7px;
}

._inp, ._sel, ._ta {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--br);
  border-radius: var(--r);
  background: #f8fafc;
  font-size: 15px;
  outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--tm);
  -webkit-appearance: none;
  transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
}

._inp:focus, ._sel:focus, ._ta:focus {
  border-color: var(--ca);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

._inp._err { border-color: var(--cd) !important; box-shadow: 0 0 0 4px rgba(239,68,68,.1) !important; }
._inp._ok  { border-color: var(--cs) !important; box-shadow: 0 0 0 4px rgba(16,185,129,.08) !important; }
._inp._chk { border-color: var(--cw) !important; }

/* password */
._pw { position: relative; }
._pw ._inp { padding-right: 50px; }

._eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  cursor: pointer;
  opacity: .4;
  transition: opacity .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

._eye:hover { opacity: .85; }

/* username status */
._usr-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
  min-height: 18px;
}

._usr-spin {
  width: 12px;
  height: 12px;
  border: 2px solid var(--br);
  border-top-color: var(--ca);
  border-radius: 50%;
  animation: _spin .6s linear infinite;
  flex-shrink: 0;
}

._usr-ok  { color: var(--cs); }
._usr-err { color: var(--cd); }
._usr-chk { color: var(--cw); }

/* strength */
._str { height: 3px; border-radius: 3px; background: var(--br); margin-top: 6px; overflow: hidden; }
._stf { height: 100%; border-radius: 3px; width: 0; transition: width .4s, background .4s; }
._str-lbl { font-size: 11px; font-weight: 700; color: var(--ts); margin-top: 4px; }

/* error */
._emsg {
  font-size: 12px;
  font-weight: 700;
  color: var(--cd);
  margin-top: 5px;
  display: none;
  animation: _in .2s ease;
}

._emsg._show { display: flex; align-items: center; gap: 4px; }

/* ══ BUTTONS ══ */
._btn {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  letter-spacing: .2px;
  margin-top: 4px;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), opacity var(--tr);
  position: relative;
  overflow: hidden;
}

._btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}

._btn:hover::after { background: rgba(255,255,255,.1); }
._btn:active { transform: scale(.98) !important; }

._btn-p { background: linear-gradient(135deg, var(--ca), #4f46e5); color: #fff; }
._btn-p:hover { transform: translateY(-2px); box-shadow: var(--sh2); }
._btn-p:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

._btn-g { background: linear-gradient(135deg, var(--cs), #059669); color: #fff; }
._btn-g:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(16,185,129,.3); }

._btn-ghost { background: none; color: var(--ca); margin-top: 8px; font-weight: 700; }
._btn-ghost:hover { background: rgba(37,99,235,.06); }

._btn-link {
  background: none;
  border: none;
  color: var(--td);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 0;
}

._btn-link:hover { color: var(--tm); }

/* ══ DIVIDER ══ */
._div { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
._div span { font-size: 12px; color: var(--ts); font-weight: 600; white-space: nowrap; }
._div::before, ._div::after { content: ''; flex: 1; height: 1px; background: var(--br); }

/* ══ CHECKBOX ══ */
._chk-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }

._chk-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--ca);
  cursor: pointer;
}

._chk-row label { font-size: 13px; color: var(--td); line-height: 1.55; cursor: pointer; }
._chk-row a { color: var(--ca); font-weight: 700; text-decoration: none; }
._chk-row a:hover { text-decoration: underline; }

/* ══ CONFIRM CARD ══ */
._conf {
  background: #f8fafc;
  border: 1.5px solid var(--br);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 16px;
}

._cr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

._cr:not(:last-child) { border-bottom: 1px solid var(--br); }
._ck { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--ts); }
._cv { font-size: 14px; font-weight: 700; color: var(--tm); text-align: right; word-break: break-all; }

/* ══ SPINNERS & LOADERS ══ */
._ld {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: _spin .7s linear infinite;
}

._ld._dark { border-color: var(--br); border-top-color: var(--ca); }

@keyframes _spin { to { transform: rotate(360deg); } }

._dots-loader { display: flex; gap: 5px; align-items: center; }

._dot-l {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ca);
  animation: _dotB .9s ease-in-out infinite;
}

._dot-l:nth-child(2) { animation-delay: .2s; }
._dot-l:nth-child(3) { animation-delay: .4s; }

@keyframes _dotB {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40%           { transform: scale(1); opacity: 1; }
}

/* ══ SUCCESS ICON ══ */
._suc-icon {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  animation: _popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}

._suc-icon._green  { background: linear-gradient(135deg, #ecfdf5, #d1fae5); }
._suc-icon._blue   { background: linear-gradient(135deg, #eff6ff, #dbeafe); }
._suc-icon._red    { background: linear-gradient(135deg, #fef2f2, #fecaca); }
._suc-icon._yellow { background: linear-gradient(135deg, #fffbeb, #fde68a); }

@keyframes _popIn {
  from { transform: scale(.3) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}

/* verify pulse dot */
._vpulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cd);
  margin-right: 6px;
  animation: _pulse 1.3s ease-in-out infinite;
}

._vpulse._ok { background: var(--cs); }

@keyframes _pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: .6; }
}

/* ══ INFO CAROUSEL ══ */
._info {
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,.88);
  border-radius: var(--r3);
  padding: 22px;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--sh3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

._iimg {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--r2);
  margin-bottom: 14px;
  transition: opacity .5s ease, transform .5s ease;
}

._iimg._fade { opacity: 0; transform: scale(.98); }
._ititle { font-size: 15px; font-weight: 800; color: var(--tm); margin-bottom: 4px; }
._itext  { font-size: 13px; color: var(--td); line-height: 1.6; }
._idots  { display: flex; gap: 7px; justify-content: center; margin-top: 16px; }

._idot {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--br);
  transition: width .35s, background .3s;
  cursor: pointer;
}

._idot._act { width: 20px; background: var(--ca); }

/* ══ FEATURES STRIP ══ */
._feats {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

._feats::-webkit-scrollbar { display: none; }

._feat {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(37,99,235,.07);
  font-size: 12px;
  font-weight: 700;
  color: var(--ca);
  border: 1px solid rgba(37,99,235,.12);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}

._feat:hover { background: rgba(37,99,235,.13); transform: translateY(-1px); }

/* ══ STATS STRIP ══ */
._stats {
  width: 100%;
  max-width: 440px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

._stat {
  background: rgba(255,255,255,.88);
  border-radius: var(--r2);
  padding: 16px 12px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--sh3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .2s, box-shadow .2s;
}

._stat:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }

._stat-num {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--tm);
  display: block;
  background: linear-gradient(135deg, var(--ca), #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

._stat-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--ts);
  margin-top: 3px;
  display: block;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ══ FEATURE CARDS GRID ══ */
._fgrid {
  width: 100%;
  max-width: 440px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

._fcard {
  background: rgba(255,255,255,.88);
  border-radius: var(--r2);
  padding: 18px 16px;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--sh3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .25s, box-shadow .25s;
}

._fcard:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }

._fcard-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ca), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

._fcard-icon._green  { background: linear-gradient(135deg, var(--cs), #059669); }
._fcard-icon._purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
._fcard-icon._orange { background: linear-gradient(135deg, #f59e0b, #d97706); }

._fcard-title { font-size: 14px; font-weight: 800; color: var(--tm); margin-bottom: 4px; }
._fcard-desc  { font-size: 12px; color: var(--td); line-height: 1.5; }

/* ══ TRUST BADGE BAR ══ */
._trust {
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,.75);
  border-radius: var(--r2);
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

._trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--td);
  white-space: nowrap;
}

._trust-item svg { flex-shrink: 0; }

/* ══ FLOATING TOAST ══ */
._toast-bg {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--tm);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--r2);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  z-index: 9999;
  transition: transform .4s cubic-bezier(.34,1.2,.64,1);
  max-width: 90%;
  white-space: nowrap;
}

._toast-bg._show { transform: translateX(-50%) translateY(0); }

/* ══ FLOATING BADGE (corner) ══ */
._corner-badge {
  position: fixed;
  bottom: calc(24px + var(--sfb));
  right: 20px;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--br);
  border-radius: var(--r2);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tm);
  box-shadow: var(--sh3);
  z-index: 10;
  animation: _cornerIn .6s 2s cubic-bezier(.34,1.2,.64,1) both;
}

@keyframes _cornerIn {
  from { transform: translateX(120px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

._corner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: _pulse 2s ease-in-out infinite;
}

/* ══ TIMELINE / STEPS VISUAL ══ */
._timeline {
  width: 100%;
  max-width: 440px;
  background: rgba(255,255,255,.88);
  border-radius: var(--r3);
  padding: 22px;
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--sh3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

._tl-title { font-size: 15px; font-weight: 800; color: var(--tm); margin-bottom: 18px; }
._tl-item  { display: flex; gap: 14px; margin-bottom: 18px; }
._tl-item:last-child { margin-bottom: 0; }

._tl-num {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ca), #6366f1);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

._tl-body { flex: 1; }
._tl-h { font-size: 13px; font-weight: 800; color: var(--tm); margin-bottom: 2px; }
._tl-p { font-size: 12px; color: var(--td); line-height: 1.5; }

/* ══ FOOTER ══ */
._foot {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--ts);
  border-top: 1px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.4);
}

._foot a { color: var(--ca); text-decoration: none; font-weight: 700; }

/* ══ MODAL OVERLAY ══ */
._modal-bg {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0;
}

._modal-bg._open { display: flex; }

@media (min-width: 520px) {
  ._modal-bg { align-items: center; padding: 24px; }
}

._modal {
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-radius: var(--r4) var(--r4) 0 0;
  padding: 8px 32px calc(32px + var(--sfb));
  max-height: 92dvh;
  overflow-y: auto;
  animation: _sheetUp .35s cubic-bezier(.34,1.1,.64,1) both;
}

@media (min-width: 520px) {
  ._modal {
    border-radius: var(--r4);
    padding: 40px;
    animation: _springIn .35s cubic-bezier(.34,1.2,.64,1) both;
  }
}

@keyframes _sheetUp  { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes _springIn { from { transform: scale(.93) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }

._modal-handle {
  width: 44px;
  height: 4px;
  background: var(--br);
  border-radius: 2px;
  margin: 14px auto 28px;
}

@media (min-width: 520px) { ._modal-handle { display: none; } }

._modal-title { font-size: 22px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 8px; }
._modal-sub   { font-size: 14px; color: var(--td); line-height: 1.6; margin-bottom: 28px; }

/* ══ HONEYPOT ══ */
._trap {
  position: absolute;
  left: -999vw;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ══ DATE INPUT ══ */
input[type=date] { color-scheme: light; }

/* ══ RESPONSIVE ADJUSTMENTS ══ */
@media (max-width: 480px) {
  ._card { border-radius: var(--r3); padding: 36px 26px 32px; }
  ._h1  { font-size: 21px; }
}

@media (min-width: 900px) {
  ._main {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 40px;
    gap: 32px;
  }
  ._card { flex-shrink: 0; }
  ._side {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 60px;
  }
}

@media (max-width: 899px) {
  ._side { width: 100%; max-width: 440px; }
}
