/* =========================================================================
   YEIDA Allottee Portal — dark + orange, split-screen creative theme
   Scoped under .portal-root.
   ========================================================================= */

.portal-root {
  --bg: #0b0c11;
  --ink: #121319;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.15);

  --text: #f3f4f8;
  --muted: #a3a8b5;
  --faint: #6c7280;

  --primary: #f97316;
  --primary-2: #fb923c;
  --primary-ghost: rgba(249, 115, 22, 0.15);
  --glow: rgba(249, 115, 22, 0.4);
  --green: #34d399;

  --radius: 26px;
  --radius-sm: 13px;
  --shadow: 0 50px 110px -34px rgba(0, 0, 0, 0.9);

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---- animated background ---- */
.portal-root::before,
.portal-root::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  z-index: 0;
  pointer-events: none;
}
.portal-root::before {
  width: 600px; height: 600px;
  top: -260px; left: -180px;
  background: radial-gradient(circle, #f97316, transparent 66%);
  animation: float1 17s ease-in-out infinite;
}
.portal-root::after {
  width: 540px; height: 540px;
  bottom: -240px; right: -160px;
  background: radial-gradient(circle, #33405e, transparent 66%);
  animation: float2 21s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px, 50px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, -40px); } }

.portal-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 78%);
  pointer-events: none;
}

.portal-root *,
.portal-root *::before,
.portal-root *::after { box-sizing: border-box; }
.portal-root h1,
.portal-root h2,
.portal-root h3 { margin: 0; letter-spacing: -0.01em; }

/* ---- helpers ---- */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ---- page wrap ---- */
.portal-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
}

/* ---- split shell ---- */
.portal-split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  width: 100%;
  max-width: 1200px;
  min-height: 640px;
  background: rgba(14, 11, 9, 0.66);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .portal-split { grid-template-columns: 1fr; max-width: 500px; min-height: 0; }
  .portal-aside { display: none !important; }
}

/* ---- brand showcase (left) ---- */
.portal-aside {
  position: relative;
  overflow: hidden;
  padding: 48px 46px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 26px;
  background:
    radial-gradient(460px 300px at 80% 4%, rgba(249, 115, 22, 0.18), transparent 60%),
    linear-gradient(160deg, #141722, #171a25 46%, #1a1c28);
  border-right: 1px solid var(--line);
}
/* decorative concentric rings */
.portal-aside::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 26px);
  opacity: 0.7;
  pointer-events: none;
}
.portal-aside .logo-img {
  height: 58px; width: auto; object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(255, 106, 0, 0.5));
  align-self: flex-start;
}
.portal-aside h2 {
  font-family: var(--font-head);
  font-size: 35px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(118deg, #ffffff 55%, #ffd9b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.portal-aside .lede { color: rgba(246, 242, 238, 0.78); font-size: 14.5px; line-height: 1.6; margin-top: 12px; }
.portal-aside .feat { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(246, 242, 238, 0.9); }
.portal-aside .feat .tick {
  width: 24px; height: 24px; flex: 0 0 24px;
  border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #2a1500;
}
.aside-trust { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.aside-trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(246, 242, 238, 0.6); font-weight: 600; }

/* ---- auth panel (right) ---- */
.portal-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 46px;
}
@media (max-width: 520px) { .portal-panel { padding: 34px 24px; } }
.panel-brand { display: none; text-align: center; margin-bottom: 22px; }
.panel-brand img { height: 50px; width: auto; filter: drop-shadow(0 10px 22px rgba(255, 106, 0, 0.5)); }
@media (max-width: 860px) { .panel-brand { display: block; } }

/* the flow renders a .card; flatten it inside the panel */
.portal-panel .card {
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  width: 100%;
  max-width: 420px;
  overflow: visible;
}
.portal-panel .card::before { display: none; }
.card h1 { font-size: 26px; font-weight: 700; }
.card .sub { color: var(--muted); font-size: 14.5px; margin-top: 9px; line-height: 1.55; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.06s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent; color: #ffffff;
  font-weight: 700;
  box-shadow: 0 18px 40px -14px var(--glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  filter: brightness(1.08);
  box-shadow: 0 20px 46px -14px var(--glow);
}

.btn-oauth { justify-content: flex-start; padding-left: 18px; background: rgba(255, 255, 255, 0.05); }
.btn-oauth:hover { background: rgba(255, 255, 255, 0.1); }
.btn-oauth .oauth-ico { width: 20px; height: 20px; flex: 0 0 20px; }
.btn-sm { height: 40px; font-size: 13.5px; width: auto; padding: 0 14px; }

/* ---- divider ---- */
.divider { display: flex; align-items: center; gap: 14px; color: var(--faint); font-size: 12.5px; font-weight: 500; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* ---- inputs ---- */
.field { display: flex; flex-direction: column; gap: 7px; }
.label { font-size: 13px; font-weight: 600; color: var(--text); }
.input {
  width: 100%; height: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit; font-size: 14.5px;
  padding: 0 15px; outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--primary); background: rgba(255, 106, 0, 0.08); box-shadow: 0 0 0 4px var(--primary-ghost); }
select.input { appearance: none; }
select.input option { background: var(--ink); color: var(--text); }

/* ---- registration steps ---- */
.steps { display: flex; align-items: center; gap: 0; margin: 2px 0 24px; }
.step { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.step-dot {
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  background: rgba(255, 255, 255, 0.06); color: var(--faint);
  border: 1px solid var(--line-2);
}
.step.on .step-dot { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #2a1500; border-color: transparent; box-shadow: 0 0 0 4px var(--primary-ghost); }
.step.done .step-dot { background: var(--green); color: #052; border-color: transparent; }
.step-label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.step.on .step-label { color: var(--text); }
.step-bar { flex: 1; height: 2px; background: var(--line-2); margin: 0 8px; min-width: 12px; }
.step-bar.fill { background: var(--green); }
@media (max-width: 520px) { .step-label { display: none; } }

/* ---- trust + links ---- */
.trust { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; flex-wrap: wrap; }
.trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); font-weight: 500; }
.link { color: var(--primary-2); font-weight: 600; cursor: pointer; text-decoration: none; background: none; border: 0; font-family: inherit; font-size: inherit; padding: 0; }
.link:hover { filter: brightness(1.12); text-decoration: underline; }
.foot-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 24px; }

/* ---- rotating gradient glow border on the shell ---- */
/* Animate the gradient ANGLE (not the element), so the rounded ring stays
   aligned with the card edge while the glow sweeps around it. */
@property --pb-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
.portal-split::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--pb-angle),
    rgba(255, 255, 255, 0.05) 0deg,
    rgba(249, 115, 22, 0.55) 44deg,
    rgba(251, 146, 60, 0.28) 92deg,
    rgba(255, 255, 255, 0.05) 150deg,
    rgba(255, 255, 255, 0.05) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: pbspin 6s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes pbspin { to { --pb-angle: 360deg; } }
/* graceful fallback if @property is unsupported: a soft static gradient ring */
@supports not (background: conic-gradient(from var(--pb-angle), red, blue)) {
  .portal-split::before { animation: none; background: linear-gradient(135deg, rgba(255, 106, 0, 0.7), transparent 60%); }
}

/* ---- eyebrow pill ---- */
.aside-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(246, 242, 238, 0.82);
  white-space: nowrap;
}
.eyebrow .pdot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--primary);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(255, 106, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 0, 0); }
}

/* ---- floating preview card in the showcase ---- */
.preview-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.7);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.pc-row { display: flex; align-items: center; gap: 12px; }
.pc-av {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 40px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-weight: 800; font-size: 14px;
}
.pc-id { display: flex; flex-direction: column; line-height: 1.25; }
.pc-id b { font-size: 14px; color: #fff; }
.pc-id span { font-size: 12px; color: rgba(246, 242, 238, 0.6); }
.pc-check {
  margin-left: auto; width: 26px; height: 26px; border-radius: 999px;
  display: grid; place-items: center; background: var(--green); color: #053; flex: 0 0 26px;
}
.pc-bar { height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; margin: 14px 0 8px; }
.pc-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.pc-meta { display: flex; justify-content: space-between; font-size: 12px; color: rgba(246, 242, 238, 0.7); font-weight: 600; }

/* ---- primary button sheen ---- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* ---- animation ---- */
.anim-in { animation: portalFade 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes portalFade { from { opacity: 0; transform: translateY(12px) scale(0.99); } to { opacity: 1; transform: none; } }
.anim-fade-up { animation: portalFade 0.45s ease both; }
.anim-fade-in { animation: fadeIn 0.4s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.anim-pop { animation: pop 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- kicker ---- */
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary-2); margin-bottom: 8px; }

/* ---- input with leading icon + eye toggle ---- */
.input-wrap { position: relative; }
.input-wrap > .input { padding-left: 42px; }
.input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.input-eye:hover { color: var(--text); }

/* ---- spinner ---- */
.spinner { width: 18px; height: 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: var(--primary-2); display: inline-block; animation: spin 0.7s linear infinite; }
.spinner-lg { width: 34px; height: 34px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- badge ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge-blue { background: rgba(56, 189, 248, 0.14); color: #bae6fd; }
.badge-green { background: rgba(52, 211, 153, 0.16); color: #a7f3d0; }
.badge-gray { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.badge-amber { background: var(--primary-ghost); color: #ffd9b3; }

/* ---- step back ---- */
.step-back { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: var(--muted); font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 4px 0; margin-bottom: 14px; }
.step-back:hover { color: var(--text); }

/* ---- account pill ---- */
.account-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 13px; background: rgba(255, 255, 255, 0.03); }
.ap-email { flex: 1; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-change { font-size: 13px; }

/* ---- flash note ---- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 11px; font-size: 13px; line-height: 1.45; border: 1px solid; }
.flash svg { flex: 0 0 auto; margin-top: 1px; }
.flash-info { background: rgba(56, 189, 248, 0.08); border-color: rgba(56, 189, 248, 0.3); color: #bae6fd; }
.flash-warn { background: var(--primary-ghost); border-color: rgba(255, 138, 58, 0.4); color: #ffd9b3; }
.flash-error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.flash-success { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.4); color: #a7f3d0; }

/* ---- method row ---- */
.method-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); cursor: pointer; text-align: left; font-family: inherit; color: var(--text); transition: background 0.15s ease, border-color 0.15s ease; }
.method-row:hover { background: var(--primary-ghost); border-color: rgba(255, 138, 58, 0.5); }
.mr-tile { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); color: var(--primary-2); }
.mr-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.mr-title { font-size: 14.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.mr-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #ffd9b3; background: var(--primary-ghost); padding: 2px 7px; border-radius: 999px; }
.mr-sub { font-size: 12.5px; color: var(--muted); }
.method-row > svg:last-child { color: var(--faint); }

/* ---- remember device ---- */
.remember-card { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.03); cursor: pointer; }
.remember-card input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--primary); }

/* ---- OTP ---- */
.otp-boxes { display: flex; gap: 9px; justify-content: space-between; }
.otp-box { width: 50px; height: 58px; text-align: center; font-size: 22px; font-weight: 700; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); border-radius: 12px; color: var(--text); outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.otp-box:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ghost); }
.otp-error .otp-box { border-color: rgba(239, 68, 68, 0.6); }
@media (max-width: 420px) { .otp-box { width: 42px; height: 52px; font-size: 19px; } }

/* ---- segmented control ---- */
.seg { display: inline-flex; padding: 4px; gap: 4px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 11px; }
.seg button { border: 0; background: transparent; color: var(--muted); font-family: inherit; font-weight: 600; font-size: 13px; padding: 7px 13px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--primary-ghost); color: #ffd9b3; }

/* ---- password strength ---- */
.strength { margin-top: 10px; }
.strength-bars { display: flex; gap: 5px; }
.strength-bars span { flex: 1; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.strength-bars span.on { background: var(--primary); }
.strength-bars span.s1 { background: #ef4444; }
.strength-bars span.s2 { background: #f59e0b; }
.strength-bars span.s3 { background: #eab308; }
.strength-bars span.s4 { background: #34d399; }
.strength-label { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.s1-text { color: #fca5a5; } .s2-text { color: #fcd34d; } .s3-text { color: #fde047; } .s4-text { color: #6ee7b7; }
.checklist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.checklist li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); }
.checklist li.ok { color: #6ee7b7; }
.checklist li svg { flex: 0 0 auto; }

/* ---- modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 120; padding: 20px; }
.modal { width: 100%; max-width: 540px; max-height: 84vh; display: flex; flex-direction: column; background: var(--ink); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.05); }
.review-note { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--faint); }
.review-note.done { color: #6ee7b7; }

/* ---- cookie banner ---- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 18px; background: var(--ink); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; z-index: 90; flex-wrap: wrap; }
@media (max-width: 560px) { .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; } }

/* ---- connected banner / dashed block / verify channel ---- */
.conn-banner { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; }
.conn-green { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.35); color: #a7f3d0; }
.conn-blue { background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.35); color: #bae6fd; }
.dashed-block { border: 1px dashed var(--line-2); border-radius: 14px; padding: 16px; background: rgba(255, 255, 255, 0.02); }
.vchannel { border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; }
.vchannel.verified { border-color: rgba(52, 211, 153, 0.5); background: rgba(52, 211, 153, 0.05); }

/* ---- interstitial ---- */
.interstitial { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 30px 0; }

/* ---- avatar upload fab ---- */
.avatar-edit { position: relative; width: 72px; height: 72px; }
.avatar-edit .fab { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 999px; background: var(--primary); color: #fff; border: 2px solid var(--ink); display: grid; place-items: center; cursor: pointer; }

/* ---- country code select ---- */
.phone-row { display: flex; gap: 8px; }
.cc-field { position: relative; flex: 0 0 118px; width: 118px; }
.cc-field .cc-select { width: 100%; flex: none; padding-left: 40px; }
.cc-flag-img { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 22px; height: 16px; border-radius: 3px; object-fit: cover; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); }
.cc-flag-img.static { position: static; transform: none; }
.cc-select { width: 110px; flex: 0 0 110px; }
@media (max-width: 420px) { .cc-field { flex-basis: 104px; width: 104px; } .cc-select { width: 96px; flex-basis: 96px; } }

/* ---- misc login/register bits ---- */
.tips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.tips li { position: relative; padding-left: 18px; font-size: 13px; color: var(--muted); }
.tips li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 5px; height: 5px; border-radius: 999px; background: var(--primary); }

.secure-footer { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.secure-footer span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); font-weight: 500; }

.demo-hint { font-size: 11.5px; color: var(--faint); text-align: center; margin-top: 16px; font-style: italic; }

.terms-scroll { max-height: 240px; overflow-y: auto; margin-top: 16px; padding: 16px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }

.remember-card.is-disabled { opacity: 0.55; }

.check-row { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--text); cursor: pointer; line-height: 1.45; }
.check-row input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--primary); flex: 0 0 16px; }

.hint-line { font-size: 12.5px; color: #fca5a5; margin-top: 10px; }

.addr-h { font-size: 14px; font-weight: 700; margin: 18px 0 10px; }
.addr-block { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: rgba(255, 255, 255, 0.02); }

.suggest { position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; background: var(--ink); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; z-index: 20; box-shadow: var(--shadow); }
.suggest-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 13px; background: none; border: 0; color: var(--text); font-family: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.suggest-item:hover { background: var(--primary-ghost); }

/* ---- address step (creative) ---- */
.addr-section-head { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; }
.addr-tile { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; }
.addr-tile-amber { background: var(--primary-ghost); color: var(--primary-2); }
.addr-tile-blue { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.country-field { position: relative; }
.country-flag { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; pointer-events: none; }
.addr-located { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); color: #a7f3d0; font-size: 12.5px; font-weight: 600; }
.si-text { display: flex; flex-direction: column; gap: 1px; }
.si-text b { font-size: 13.5px; font-weight: 600; }
.si-text > span { font-size: 12px; color: var(--muted); }
.suggest-item { align-items: flex-start; }
.suggest-item > svg { margin-top: 2px; color: var(--primary-2); }
.addr-block { position: relative; z-index: 0; }
.addr-block::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at 85% 0%, #000, transparent 70%); pointer-events: none; }
.suggest { z-index: 40; }

/* ---- showcase: animated scan sweep + stat chips ---- */
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: 0;
  background: linear-gradient(to bottom, transparent, rgba(249, 115, 22, 0.13), transparent);
  animation: scan 6.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan { 0%, 100% { transform: translateY(-160px); } 50% { transform: translateY(620px); } }
.portal-aside > div { position: relative; z-index: 1; }
.stat-strip { display: flex; gap: 10px; margin-top: 24px; }
.stat-chip { flex: 1; padding: 12px; border-radius: 13px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.stat-chip b { display: block; font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat-chip span { font-size: 11px; color: rgba(246, 242, 238, 0.6); }
