/* ==========================================================================
   GROWUPHOST AUTH v3 — client sign in / sign up / password pages and admin sign in.
   Sign in & co: split page — form on the left, a showcase (offer + real service status) on the right.
   Sign up: slim top bar, wide two-column form card and a "why create an account" sidebar.
   Self-contained (av-* / av4-* classes), loaded last on auth pages. Light + dark.
   ========================================================================== */

:root {
  --av-ink: #0f172a; --av-ink-2: #334155; --av-ink-3: #64748b; --av-line: #e2e8f0; --av-field: #ffffff;
  --av-bg: #f5f7fc; --av-card: #ffffff; --av-brand: #2563eb; --av-brand-2: #6366f1; --av-ring: rgba(37, 99, 235, .18);
  --av-ok: #16a34a; --av-err: #dc2626; --av-blob-1: #93c5fd; --av-blob-2: #c4b5fd; --av-blob-3: #a5f3fc; --av-dots: rgba(15, 23, 42, .07);
}
:root[data-theme="dark"] {
  --av-ink: #e8eef8; --av-ink-2: #c3cede; --av-ink-3: #94a3b8; --av-line: rgba(148, 163, 184, .22); --av-field: rgba(9, 15, 30, .65);
  --av-bg: #070c18; --av-card: #0f172a; --av-ring: rgba(59, 130, 246, .35); --av-blob-1: #1d4ed8; --av-blob-2: #6d28d9; --av-blob-3: #0e7490; --av-dots: rgba(255, 255, 255, .05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --av-ink: #e8eef8; --av-ink-2: #c3cede; --av-ink-3: #94a3b8; --av-line: rgba(148, 163, 184, .22); --av-field: rgba(9, 15, 30, .65);
    --av-bg: #070c18; --av-card: #0f172a; --av-ring: rgba(59, 130, 246, .35); --av-blob-1: #1d4ed8; --av-blob-2: #6d28d9; --av-blob-3: #0e7490; --av-dots: rgba(255, 255, 255, .05);
  }
}

/* ---------- Page ---------- */
html:has(> body.av-body) { background: var(--av-bg) !important; }
body.av-body {
  margin: 0; min-height: 100vh; min-height: 100dvh; padding: 0 !important; display: block !important;
  background: var(--av-bg) !important; background-image: none !important; color: var(--av-ink); text-align: left;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
  place-items: initial !important; place-content: initial !important; align-items: initial !important; justify-content: initial !important; overflow-x: hidden;
}
body.av-body::before, .av-body .auth-orb { display: none !important; }

.av-card h1 { margin: 0; text-align: center; font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--av-ink) !important; }
.av-sub { margin: 8px auto 24px; max-width: 380px; text-align: center; color: var(--av-ink-3); font-size: 14.5px; line-height: 1.55; }
.av-card .alert { margin: 0 0 18px !important; }
.av-card .alert-danger { animation: av2-shake .45s ease; }
@keyframes av2-shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* form pieces arrive one after another */
.av-card form > *, .av-card > .av-tabs, .av-card > .av-steps { animation: av2-up .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.av-card form > :nth-child(1) { animation-delay: .08s; }
.av-card form > :nth-child(2) { animation-delay: .13s; }
.av-card form > :nth-child(3) { animation-delay: .18s; }
.av-card form > :nth-child(4) { animation-delay: .23s; }
.av-card form > :nth-child(n+5) { animation-delay: .28s; }
@keyframes av2-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Tabs (password / WhatsApp code) ---------- */
.av-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 13px; background: color-mix(in srgb, var(--av-line) 60%, transparent); }
.av-tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 10px; background: var(--av-card);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12), 0 6px 14px -8px rgba(15, 23, 42, .25); transition: transform .35s cubic-bezier(.3, 1.3, .5, 1); }
.av-tabs:has(.av-tab:nth-child(2).active)::before { transform: translateX(calc(100% + 4px)); }
.av-tab { position: relative; z-index: 1; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--av-ink-3); font: inherit; font-weight: 700; font-size: 13.5px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: color .15s ease; }
.av-tab svg { width: 16px; height: 16px; }
.av-tab.active { color: var(--av-brand); }
.av-pane:not([hidden]) { animation: av2-up .35s cubic-bezier(.2, .8, .2, 1); }

/* ---------- Fields ---------- */
.av-field { margin-bottom: 16px; min-width: 0; }
.av-field label, .av-label-row label { display: block; font-size: 13px; font-weight: 700; color: var(--av-ink-2); margin-bottom: 7px; transition: color .2s ease; }
.av-field:focus-within > label, .av-field:focus-within .av-label-row label { color: var(--av-brand); }
.av-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.av-label-row a { font-size: 13px; font-weight: 700; color: var(--av-brand); text-decoration: none; }
.av-input { position: relative; }
.av-input > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--av-ink-3); pointer-events: none; transition: color .2s ease; }
.av-input:focus-within > svg { color: var(--av-brand); }
.av-body .av-input .form-control {
  width: 100%; box-sizing: border-box; min-height: 48px !important; padding: 12px 14px 12px 42px !important; font-size: 15px !important;
  border-radius: 12px !important; border: 1.5px solid var(--av-line) !important; background-color: var(--av-field) !important; color: var(--av-ink) !important; box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}
.av-body .av-input .form-control:hover:not(:focus) { border-color: color-mix(in srgb, var(--av-brand) 40%, var(--av-line)) !important; }
.av-body .av-input .form-control:focus { border-color: var(--av-brand) !important; box-shadow: 0 0 0 4px var(--av-ring) !important; outline: none; }
.av-body .av-input.has-toggle .form-control { padding-right: 48px !important; }
.av-body .av-input select.form-control { appearance: none; -webkit-appearance: none; padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8aa3' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 16px !important; }
.av-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--av-ink-3); cursor: pointer; display: grid; place-items: center; }
.av-toggle:hover { color: var(--av-brand); background: var(--av-ring); }
.av-toggle svg { width: 18px; height: 18px; }
.av-hint { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--av-ink-3); }
.av-hint.is-ok { color: var(--av-ok); }
.av-hint.is-err { color: var(--av-err); }
.av-caps { display: none; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: #b45309; }
.av-caps.on { display: block; }
.av-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.av-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--av-ink-2); margin: 4px 0 18px; line-height: 1.45; }
.av-check input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--av-brand); flex: 0 0 auto; }
.av-check a { color: var(--av-brand); font-weight: 700; }
.av-otp { letter-spacing: .5em; font-size: 22px !important; font-weight: 700; text-align: center; padding-left: 14px !important; font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---------- Button & links ---------- */
.av-body .av-submit {
  width: 100%; min-height: 50px !important; border-radius: 12px !important; font-size: 15.5px !important; font-weight: 750 !important; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; border: 0 !important; color: #fff !important;
  background: linear-gradient(135deg, var(--av-brand), var(--av-brand-2)) !important; box-shadow: 0 14px 28px -14px var(--av-brand) !important;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.av-body .av-submit::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: av2-sweep 4.5s 1.5s ease-in-out infinite; }
@keyframes av2-sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.av-body .av-submit:hover { transform: translateY(-2px); filter: brightness(1.06); }
.av-body .av-submit:active { transform: none; }
.av-submit.is-busy { pointer-events: none; opacity: .85; }
.av-submit.is-busy::after { content: ""; width: 18px; height: 18px; margin-left: 10px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: av2-spin .7s linear infinite; }
@keyframes av2-spin { to { transform: rotate(360deg); } }
.av-alt { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--av-ink-3); }
.av-alt a, .av-alt button.btn-link { color: var(--av-brand) !important; font-weight: 700; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.av-alt button.btn-link:disabled { color: var(--av-ink-3) !important; cursor: default; }
.av-secure { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--av-line); display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 12.5px; color: var(--av-ink-3); }
.av-secure svg { width: 14px; height: 14px; color: var(--av-ok); }

/* ---------- Optional / business sections ---------- */
.av-more { margin: 4px 0 18px; border: 1.5px dashed var(--av-line); border-radius: 14px; }
.av-more[open] { border-style: solid; }
.av-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-size: 14px; font-weight: 700; color: var(--av-ink-2); }
.av-more summary::-webkit-details-marker { display: none; }
.av-more summary svg { width: 17px; height: 17px; color: var(--av-brand); flex: 0 0 auto; }
.av-more summary span { font-weight: 500; color: var(--av-ink-3); font-size: 13px; }
.av-more summary::after { content: "+"; margin-left: auto; font-size: 20px; font-weight: 600; color: var(--av-ink-3); line-height: 1; }
.av-more[open] summary::after { content: "−"; }
.av-more-body { padding: 4px 16px 6px; animation: av2-up .3s ease; }
.av-biz { margin: 4px 0 14px; padding: 14px 16px 2px; border: 1.5px solid var(--av-line); border-radius: 14px; animation: av2-up .3s ease; }
.av-biz-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--av-ink-2); }
.av-biz-title svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--av-brand); }

/* ---------- Sign-up: steps, account type, password ---------- */
.av-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.av-steps li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--av-ink-3); white-space: nowrap; }
.av-steps li + li::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--av-line); margin-right: 2px; }
.av-steps li.is-done + li::before { background: var(--av-ok); }
.av-steps b { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; background: color-mix(in srgb, var(--av-line) 70%, transparent); color: var(--av-ink-3); }
.av-steps li.is-now { color: var(--av-ink); }
.av-steps li.is-now b { background: linear-gradient(135deg, var(--av-brand), var(--av-brand-2)); color: #fff; box-shadow: 0 0 0 4px var(--av-ring); }
.av-steps li.is-done b { background: var(--av-ok); color: #fff; }

.av-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.av-type-opt { position: relative; cursor: pointer; min-width: 0; }
.av-type-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.av-type-opt span { position: relative; display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; height: 100%; box-sizing: border-box; padding: 11px 12px;
  border: 1.5px solid var(--av-line); border-radius: 14px; background: var(--av-card); transition: border-color .15s, box-shadow .15s, transform .2s ease; }
.av-type-opt:hover span { transform: translateY(-2px); border-color: color-mix(in srgb, var(--av-brand) 45%, var(--av-line)); }
.av-type-ico { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--av-ink-3); background: color-mix(in srgb, var(--av-line) 55%, transparent); transition: background-color .2s ease, color .2s ease; }
.av-type-ico svg { width: 17px; height: 17px; }
.av-type-opt strong { flex: 1 1 auto; min-width: 0; font-size: 14.5px; color: var(--av-ink); }
.av-type-opt small { flex: 1 1 100%; margin-top: 4px; font-size: 12px; color: var(--av-ink-3); line-height: 1.35; }
.av-type-opt input:checked + span { border-color: var(--av-brand); box-shadow: 0 0 0 3px var(--av-ring); background: color-mix(in srgb, var(--av-brand) 6%, var(--av-card)); }
.av-type-opt input:checked + span .av-type-ico { background: linear-gradient(135deg, var(--av-brand), var(--av-brand-2)); color: #fff; }
.av-type-opt input:checked + span::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--av-brand); }
.av-type-opt input:focus-visible + span { outline: 2px solid var(--av-brand); outline-offset: 2px; }

.av-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.av-meter span { height: 5px; border-radius: 999px; background: var(--av-line); transition: background-color .3s ease; }
.av-meter[data-score="1"] span:nth-child(-n+1) { background: #ef4444; }
.av-meter[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.av-meter[data-score="3"] span:nth-child(-n+3) { background: #22c55e; }
.av-meter[data-score="4"] span { background: #16a34a; }
.av-meter-text { display: none; }
.av-pwcheck { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.av-pwcheck li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 6px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--av-ink-3); background: color-mix(in srgb, var(--av-line) 45%, transparent); transition: background-color .2s ease, color .2s ease; }
.av-pwcheck li::before { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid currentColor; box-sizing: border-box; flex: 0 0 auto; }
.av-pwcheck li.is-ok { color: var(--av-ok); background: color-mix(in srgb, var(--av-ok) 12%, transparent); }
.av-pwcheck li.is-ok::before { content: "✓"; border: 0; background: var(--av-ok); color: #fff; font-size: 9px; line-height: 13px; text-align: center; font-weight: 800; }

/* ---------- Theme button ---------- */
.av-theme { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--av-line); background: color-mix(in srgb, var(--av-card) 85%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--av-ink-2); display: grid; place-items: center; cursor: pointer; transition: transform .3s ease, color .2s ease, border-color .2s ease; }
.av-theme:hover { transform: rotate(-20deg); color: var(--av-brand); border-color: var(--av-brand); }
.av-theme svg { width: 18px; height: 18px; }

/* ---------- Shared: logo, status dot, entrance ---------- */
.av4-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; color: var(--av-ink) !important; min-width: 0; }
.av4-logo img { display: block; max-height: 40px; max-width: 200px; width: auto; height: auto; object-fit: contain; }
.av4-mark, .av4-show-mark { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--av-brand), var(--av-brand-2)); box-shadow: 0 10px 22px -10px var(--av-brand); }
.av4-mark img, .av4-show-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.av4-mark svg { width: 22px; height: 22px; }
.av4-name { font-size: 19px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av4-status { display: inline-flex; align-items: center; gap: 7px; color: var(--av-ink-3) !important; text-decoration: none; }
.av4-status i, .av4-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: av4-pulse 2.2s ease-out infinite; }
:is(.av4-status.is-warn i, .av4-dot.is-warn) { background: #f59e0b; animation-name: av4-pulse-warn; }
@keyframes av4-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); } 100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
@keyframes av4-pulse-warn { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .5); } 100% { box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); } }
@keyframes av4-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Split page (sign in, forgot / reset password, verify, admin)
   ========================================================================== */
.av4-wrap { display: grid; grid-template-columns: minmax(400px, 520px) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.av4-left { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 24px; box-sizing: border-box; padding: 28px clamp(24px, 4vw, 56px) 22px;
  background: var(--av-card); border-right: 1px solid var(--av-line); box-shadow: 18px 0 50px -40px rgba(30, 41, 90, .35); }
.av4-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.av4-back { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--av-ink-3) !important; text-decoration: none; white-space: nowrap; transition: color .2s ease, gap .2s ease; }
.av4-back svg { width: 16px; height: 16px; }
.av4-back:hover { color: var(--av-brand) !important; gap: 2px; }

.av-card.av4-form { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 400px; margin: 0 auto;
  padding: 12px 0; background: none; border: 0; box-shadow: none; animation: av4-in .55s cubic-bezier(.2, .8, .2, 1) backwards; }
.av4 .av-card h1 { text-align: left; font-size: 28px; }
.av4 .av-sub { text-align: left; margin: 8px 0 24px; max-width: none; }
.av4-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin: 0 0 14px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--av-brand); background: color-mix(in srgb, var(--av-brand) 10%, transparent); }
.av4-badge svg { width: 14px; height: 14px; }
.av4-form .av-secure { justify-content: flex-start; }
.av4-switch { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--av-line); font-size: 14px; color: var(--av-ink-3); text-align: center; }
.av4-switch a { color: var(--av-brand); font-weight: 700; text-decoration: none; }
.av4-switch a:hover { text-decoration: underline; }
.av4-foot { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; font-size: 12.5px; color: var(--av-ink-3); }

/* right: the showcase on a soft dotted gradient */
.av4-right { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 48px clamp(24px, 4vw, 64px);
  background: radial-gradient(60% 50% at 85% 10%, color-mix(in srgb, var(--av-brand-2) 14%, transparent), transparent 70%),
              radial-gradient(55% 50% at 10% 95%, color-mix(in srgb, #06b6d4 12%, transparent), transparent 70%),
              linear-gradient(160deg, color-mix(in srgb, var(--av-brand) 7%, var(--av-bg)), var(--av-bg)); }
.av4-right::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--av-dots) 1.2px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.av4-theme { position: absolute; top: 24px; right: 24px; z-index: 2; }
.av4-show { position: relative; z-index: 1; width: 100%; max-width: 640px; display: grid; gap: 18px; }
.av4-show > *, .av4-pair > * { animation: av4-in .6s cubic-bezier(.2, .8, .2, 1) backwards; }
.av4-show > :nth-child(2) { animation-delay: .1s; }
.av4-pair > :nth-child(1) { animation-delay: .2s; }
.av4-pair > :nth-child(2) { animation-delay: .28s; }
.av4-show-brand { display: flex; align-items: center; gap: 14px; }
.av4-show-mark { width: 52px; height: 52px; border-radius: 15px; }
.av4-show-mark svg { width: 26px; height: 26px; }
.av4-show-brand strong { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--av-ink); }
.av4-show-brand small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--av-ink-3); }

.av4-big, .av4-small, .av4-panel { box-sizing: border-box; border-radius: 20px; background: color-mix(in srgb, var(--av-card) 94%, transparent); border: 1px solid var(--av-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 50px -34px rgba(30, 41, 90, .4); }
.av4-big { padding: 26px; }
.av4-big h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--av-ink); }
.av4-big h2 svg { width: 22px; height: 22px; color: var(--av-brand); }
.av4-big > p { margin: 8px 0 20px; font-size: 14.5px; line-height: 1.6; color: var(--av-ink-3); }
.av4-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.av4-tile { --tone: var(--av-brand); position: relative; overflow: hidden; display: grid; justify-items: center; gap: 4px; padding: 18px 10px 14px; text-align: center; border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 5%, var(--av-card)); border: 1px solid color-mix(in srgb, var(--tone) 18%, var(--av-line)); transition: transform .25s ease, box-shadow .25s ease; }
.av4-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--tone); }
.av4-tile.is-green { --tone: #16a34a; } .av4-tile.is-amber { --tone: #d97706; } .av4-tile.is-violet { --tone: #7c3aed; }
.av4-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -20px color-mix(in srgb, var(--tone) 80%, transparent); }
.av4-tile-ico { width: 38px; height: 38px; margin-bottom: 4px; border-radius: 11px; display: grid; place-items: center; color: var(--tone); background: color-mix(in srgb, var(--tone) 13%, transparent);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.av4-tile:hover .av4-tile-ico { transform: scale(1.12) rotate(-6deg); }
.av4-tile-ico svg { width: 19px; height: 19px; }
.av4-tile strong { font-size: 18px; font-weight: 800; color: var(--av-ink); letter-spacing: -.01em; }
.av4-tile small { font-size: 12px; color: var(--av-ink-3); line-height: 1.35; }

.av4-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.av4-small { padding: 20px 22px; }
.av4-small h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 15.5px; font-weight: 800; color: var(--av-ink); }
.av4-small h3 svg { width: 17px; height: 17px; color: var(--av-brand); }
.av4-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.av4-rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13.5px; color: var(--av-ink-2); }
.av4-rows li + li { border-top: 1px dashed var(--av-line); }
.av4-rows span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.av4-rows span svg { flex: 0 0 auto; width: 15px; height: 15px; color: var(--av-ink-3); }
.av4-rows b { flex: 0 0 auto; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.av4-rows b.is-ok { color: #15803d; background: color-mix(in srgb, #22c55e 15%, transparent); }
.av4-rows b.is-warn { color: #b45309; background: color-mix(in srgb, #f59e0b 18%, transparent); }
.av4-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--av-brand) !important; text-decoration: none; transition: gap .2s ease; }
.av4-more svg { width: 14px; height: 14px; }
.av4-more:hover { gap: 8px; }
.av4-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.av4-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--av-ink-2);
  background: color-mix(in srgb, var(--av-brand) 6%, transparent); border: 1px solid color-mix(in srgb, var(--av-brand) 14%, var(--av-line)); }
.av4-chips svg { width: 14px; height: 14px; color: var(--av-ok); }

/* ==========================================================================
   Sign-up page
   ========================================================================== */
body.av-body.av4-register { display: flex !important; flex-direction: column;
  background: radial-gradient(50% 40% at 100% 0%, color-mix(in srgb, var(--av-brand-2) 10%, transparent), transparent 70%),
              radial-gradient(45% 40% at 0% 100%, color-mix(in srgb, #06b6d4 9%, transparent), transparent 70%), var(--av-bg) !important; }
.av4-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--av-card) 88%, transparent); border-bottom: 1px solid var(--av-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.av4-bar-actions { display: flex; align-items: center; gap: 10px; }
.av4-outline { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; box-sizing: border-box; border-radius: 12px; font-size: 14px; font-weight: 700;
  color: var(--av-brand) !important; text-decoration: none; border: 1.5px solid color-mix(in srgb, var(--av-brand) 55%, var(--av-line)); transition: background .2s ease, color .2s ease, gap .2s ease; }
.av4-outline svg { width: 16px; height: 16px; }
.av4-outline:hover { background: var(--av-brand); color: #fff !important; gap: 9px; }
.av4-reg { flex: 1 0 auto; box-sizing: border-box; width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 32px) 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.av-card.av4-reg-card { box-sizing: border-box; min-width: 0; padding: 32px 36px 24px; border-radius: 22px; background: var(--av-card); border: 1px solid var(--av-line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 30px 60px -36px rgba(30, 41, 90, .4); animation: av4-in .55s cubic-bezier(.2, .8, .2, 1) backwards; }
:root[data-theme="dark"] :is(.av-card.av4-reg-card, .av4-big, .av4-small, .av4-panel) { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
/* fields two per row; choices, sections and the button use the full width */
@media (min-width: 760px) {
  .av4-register form[data-signup] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
  .av4-register form[data-signup] > * { grid-column: 1 / -1; }
  .av4-register form[data-signup] > .av-field { grid-column: auto; }
  .av4-register .av-card > .av-steps { margin-bottom: 22px; }
  .av4-register .av-biz .av-field, .av4-register .av-more-body .av-field { margin-bottom: 14px; }
}

.av4-side { display: grid; gap: 18px; position: sticky; top: 92px; }
.av4-side > * { animation: av4-in .6s cubic-bezier(.2, .8, .2, 1) backwards; }
.av4-side > :nth-child(1) { animation-delay: .12s; }
.av4-side > :nth-child(2) { animation-delay: .22s; }
.av4-panel { padding: 22px; }
.av4-panel h2 { margin: 0 0 14px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--av-ink); }
.av4-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.av4-why li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; }
.av4-why-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--av-brand); background: color-mix(in srgb, var(--av-brand) 11%, transparent);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.av4-why li:hover .av4-why-ico { transform: scale(1.1) rotate(-6deg); }
.av4-why-ico svg { width: 19px; height: 19px; }
.av4-why strong { display: block; font-size: 14.5px; color: var(--av-ink); }
.av4-why p { margin: 3px 0 0; font-size: 13px; line-height: 1.5; color: var(--av-ink-3); }
.av4-safe { text-align: center; }
.av4-shield { display: block; width: 92px; height: auto; margin: 2px auto 10px; filter: drop-shadow(0 14px 20px rgba(37, 99, 235, .3)); }
.av4-tick { stroke-dasharray: 60; stroke-dashoffset: 60; animation: av4-draw .7s .7s ease forwards; }
@keyframes av4-draw { to { stroke-dashoffset: 0; } }
.av4-safe p { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--av-ink-3); }
.av4-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.av4-badges span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--av-ink-2);
  background: color-mix(in srgb, var(--av-ok) 9%, transparent); border: 1px solid color-mix(in srgb, var(--av-ok) 20%, var(--av-line)); }
.av4-badges svg { width: 13px; height: 13px; color: var(--av-ok); }

/* ---------- Layout breakpoints ---------- */
@media (max-width: 1180px) { .av4-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1040px) {
  .av4-reg { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
  .av4-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* tablets & phones: the form alone, centred */
@media (max-width: 900px) {
  .av4-wrap { grid-template-columns: minmax(0, 1fr); }
  .av4-right { display: none; }
  .av4-left { border-right: 0; box-shadow: none; background: var(--av-bg); }
  .av-card.av4-form { max-width: 460px; flex: 0 0 auto; margin: auto; padding: 30px 28px 24px; border-radius: 22px; background: var(--av-card); border: 1px solid var(--av-line);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 30px 60px -36px rgba(30, 41, 90, .4); }
  .av4-foot { justify-content: center; }
}
@media (max-width: 640px) {
  .av4-side { grid-template-columns: minmax(0, 1fr); }
  .av4-reg { padding: 16px 12px 28px; gap: 16px; }
  .av-card.av4-reg-card { padding: 24px 18px 18px; border-radius: 20px; }
  .av4-bar { padding: 10px 12px; }
  .av4-name { font-size: 17px; }
  .av4-left { padding: 16px 12px 18px; gap: 16px; }
  .av-card.av4-form { padding: 24px 18px 18px; border-radius: 20px; }
  .av4 .av-card h1 { font-size: 24px; }
}
@media (max-width: 380px) { .av4-back span, .av4-outline { font-size: 13px; } .av4-outline { padding: 0 12px; } }

/* ---------- Other ways in: Google / GitHub / passkey (Admin → Login Methods) ---------- */
.av-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 14px; font-size: 12.5px; font-weight: 600; color: var(--av-ink-3); text-transform: uppercase; letter-spacing: .06em; }
.av-or::before, .av-or::after { content: ""; flex: 1; height: 1px; background: var(--av-line); }
.av-social { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.av-social-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 14px; box-sizing: border-box; border-radius: 12px;
  border: 1.5px solid var(--av-line); background: var(--av-field); color: var(--av-ink) !important; font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none !important; cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease; }
.av-social-btn svg { flex: 0 0 auto; width: 19px; height: 19px; }
.av-social-btn:hover { border-color: color-mix(in srgb, var(--av-brand) 45%, var(--av-line)); transform: translateY(-1px); box-shadow: 0 10px 22px -16px rgba(30, 41, 90, .5); }
.av-social-btn:focus-visible { outline: 3px solid var(--av-ring); outline-offset: 2px; }
.av-social-btn.is-passkey svg { color: var(--av-brand); }
.av-social-btn.is-busy { opacity: .65; cursor: progress; }
.av-social-btn[hidden] { display: none; }
.av-passkey-msg { margin: 12px 0 0 !important; }
.av-passkey-msg[hidden] { display: none !important; }
.av4-register .av-social { max-width: 520px; margin: 0 auto; }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .av-card h1 { font-size: 23px; }
  .av-sub { margin-bottom: 20px; font-size: 14px; }
  .av-body .av-input .form-control { font-size: 16px !important; } /* no iOS zoom on focus */
}
@media (max-width: 420px) {
  .av-row2 { grid-template-columns: minmax(0, 1fr); }
  .av-tab { font-size: 12.5px; gap: 6px; }
  .av-type-opt small { display: none; }
  .av-type-opt span { padding: 10px 26px 10px 10px; }
  .av-type-opt input:checked + span::after { top: 6px; right: 6px; width: 16px; height: 16px; font-size: 10px; }
  .av-steps li + li::before { width: 12px; }
}
@media (max-width: 340px) { .av-steps li:not(.is-now) span { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .av-body *, .av-body *::before, .av-body *::after { animation: none !important; transition: none !important; }
  .av4-tick { stroke-dashoffset: 0; }
}
