/* =========================================================
   Helpers Tech — OTP Portal v3
   Theming via [data-theme="dark|light"] on <html>.
   ========================================================= */
:root {
  --brand: #6d5efc;
  --brand-2: #4d8bff;
  --accent: #00d4b8;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1140px;
}

/* ---- Dark (default) ---- */
:root, :root[data-theme="dark"] {
  --bg: #0a0e1a;
  --bg-2: #0e1424;
  --surface: rgba(255,255,255,.038);
  --surface-2: rgba(255,255,255,.06);
  --surface-solid: #121a2e;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.16);
  --text: #eef2fb;
  --text-muted: #9aa6c2;
  --text-faint: #6b7794;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.7);
  --grid-line: rgba(255,255,255,.035);
  --glow-1: rgba(109,94,252,.30);
  --glow-2: rgba(0,212,184,.18);
  --input-bg: rgba(255,255,255,.04);
  color-scheme: dark;
}
/* ---- Light ---- */
:root[data-theme="light"] {
  --bg: #f4f6fc;
  --bg-2: #eaeef8;
  --surface: #ffffff;
  --surface-2: #f5f7fd;
  --surface-solid: #ffffff;
  --border: rgba(20,30,60,.10);
  --border-strong: rgba(20,30,60,.18);
  --text: #131a2c;
  --text-muted: #5a6a86;
  --text-faint: #8a97b2;
  --shadow: 0 20px 45px -22px rgba(30,40,80,.30);
  --grid-line: rgba(30,45,90,.05);
  --glow-1: rgba(109,94,252,.16);
  --glow-2: rgba(0,212,184,.12);
  --input-bg: #f6f8fd;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container--narrow { max-width: 900px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-muted); }
.hidden { display: none !important; }
.ta-end { text-align: end; }

/* ---- Backgrounds ---- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow { position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(90px); }
.bg-glow-1 { width: 520px; height: 520px; background: var(--glow-1); top: -160px; right: -120px; }
.bg-glow-2 { width: 460px; height: 460px; background: var(--glow-2); bottom: -180px; left: -140px; }

/* ---- Topbar ---- */
.topbar { position: relative; z-index: 5; border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand__logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.brand__accent, .brand__tech { color: var(--brand); }
.topbar__actions { display: flex; align-items: center; gap: 8px; }
.user-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px; border: none; border-radius: 12px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px -10px var(--brand); transition: transform .12s, box-shadow .2s, opacity .2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px var(--brand); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .7; cursor: default; transform: none; }
.btn-block { width: 100%; }
.btn-icon { display: inline-flex; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: .18s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.btn-icon-only {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: .18s;
}
.btn-icon-only:hover { color: var(--text); border-color: var(--border-strong); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 10px;
  font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; transition: .18s;
}
.btn-secondary:hover { border-color: var(--border-strong); }
.theme-toggle { position: fixed; top: 18px; right: 18px; z-index: 20; width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: inline-flex; }

/* ---- Layout ---- */
.main-area { position: relative; z-index: 2; padding: 46px 0 60px; }
.layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---- Hero ---- */
.hero__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero__title { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.03em; margin: 20px 0 16px; font-weight: 900; }
.hero__accent { background: linear-gradient(120deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__desc { color: var(--text-muted); font-size: 16px; line-height: 1.6; max-width: 440px; margin: 0 0 22px; }
.hero__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.hero__points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.hero__points svg { color: var(--accent); flex: none; }

/* ---- Card ---- */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); backdrop-filter: blur(10px); overflow: hidden; }
.card__top-rule { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.card__header { margin-bottom: 18px; }
.card__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 5px; }
.card__subtitle { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---- Platforms ---- */
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 20px; }
.platform { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 11px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: .16s; text-align: start; }
.platform:hover { border-color: var(--brand); transform: translateY(-1px); }
.platform.is-active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, transparent); }
.platform__label { font-size: 13px; font-weight: 700; color: var(--text); }
.platform__group { font-size: 10px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }

/* ---- Form ---- */
.field { margin-bottom: 16px; }
.field__label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.field__input-wrap { position: relative; display: flex; align-items: center; }
.field__icon { position: absolute; left: 13px; color: var(--text-faint); display: inline-flex; pointer-events: none; }
.field__input-wrap input {
  width: 100%; padding: 13px 14px 13px 40px; font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; outline: none; transition: .16s;
}
.field__input-wrap input::placeholder { color: var(--text-faint); }
.field__input-wrap input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.field__toggle { position: absolute; right: 10px; background: none; border: none; color: var(--text-faint); cursor: pointer; padding: 6px; display: inline-flex; }
.field__toggle:hover { color: var(--text); }
.field__hint { font-size: 12px; color: var(--text-faint); margin: 7px 2px 0; }

/* ---- Spinner ---- */
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Result box ---- */
.result-box { margin-top: 20px; padding: 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-box.success { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.result-box.warning { border-color: color-mix(in srgb, #f6b73c 45%, transparent); }
.result-box.error { border-color: color-mix(in srgb, #ff5c72 45%, transparent); }
.result__heading { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 14px; }
.result__heading-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.warning .result__heading-dot { background: #f6b73c; }
.error .result__heading-dot { background: #ff5c72; }
.result__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.result__message { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.result__hint { font-size: 12.5px; color: var(--text-faint); margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); line-height: 1.5; }

.otp-display { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.otp-code { font-family: var(--mono); font-size: clamp(30px, 8vw, 44px); font-weight: 700; letter-spacing: .16em; color: var(--text);
  cursor: pointer; padding: 10px 20px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--border-strong); transition: .16s; user-select: all; }
.otp-code:hover { border-color: var(--brand); }
.otp-actions { display: flex; gap: 8px; }
.link-display__copy { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin: 0 0 14px; }
.link-action-btn { display: inline-flex; align-items: center; gap: 9px; width: 100%; justify-content: center; padding: 13px; border-radius: 12px;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 12px; }
.link-action-btn svg { width: 17px; height: 17px; }

.result__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.meta-item { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.meta-item__label { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.meta-item__value { font-size: 14px; font-weight: 600; }

/* ---- Expiry ---- */
.expiry { margin-top: 16px; }
.expiry__row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.expiry__time { font-family: var(--mono); font-weight: 700; color: var(--accent); }
.expiry__track { height: 5px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.expiry__fill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--brand-2)); transition: width 1s linear; }
.expiry--low .expiry__time { color: #ff5c72; }
.expiry--low .expiry__fill { background: linear-gradient(90deg, #ff5c72, #f6b73c); }

/* ---- Retry bar ---- */
.retry-bar { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.retry-bar__top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); margin-bottom: 8px; }
.retry-bar__time { font-family: var(--mono); font-weight: 700; }
.retry-bar__unit { color: var(--text-faint); margin-left: 1px; }
.retry-bar__track { height: 4px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.retry-bar__fill { height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width 1s linear; }

/* ---- History ---- */
.history { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.history__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.history__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.history__clear { background: none; border: none; color: var(--text-faint); font-size: 12px; cursor: pointer; font-family: inherit; }
.history__clear:hover { color: var(--text); }
.history__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.history__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.history__meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history__alias { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history__time { font-size: 11px; color: var(--text-faint); }
.history__code { font-size: 14px; font-weight: 700; letter-spacing: .08em; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; cursor: pointer; color: var(--text); }
.history__code:hover { border-color: var(--brand); }

/* ---- Footer ---- */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--border); padding: 18px 0; margin-top: 20px; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-muted); }

/* ---- Toast ---- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 40;
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 12px;
  background: var(--surface-solid); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast__icon { display: inline-flex; color: var(--accent); }

/* =========================================================
   Auth page
   ========================================================= */
.page-auth { display: flex; }
.auth-wrap { position: relative; z-index: 3; width: 100%; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { position: relative; width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 34px 30px; box-shadow: var(--shadow); backdrop-filter: blur(12px); overflow: hidden; }
.auth-card__top { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-weight: 800; font-size: 18px; }
.auth-brand__logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.auth-brand__name span { color: var(--brand); }
.auth-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-muted); margin: 0 0 24px; line-height: 1.5; }
.auth-error { margin-top: 14px; padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 500;
  background: color-mix(in srgb, #ff5c72 12%, transparent); border: 1px solid color-mix(in srgb, #ff5c72 40%, transparent); color: #ff8494; }
.auth-foot { margin-top: 22px; font-size: 12px; color: var(--text-faint); }

/* =========================================================
   Admin
   ========================================================= */
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-title { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin: 0 0 4px; }
.admin-sub { color: var(--text-muted); font-size: 14px; margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.admin-table th { text-align: start; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint);
  font-weight: 700; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.table-empty { text-align: center; color: var(--text-faint); padding: 30px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge--on { color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.badge--off { color: var(--text-faint); background: var(--surface-2); }
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }
.btn-mini { font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: .16s; }
.btn-mini:hover { border-color: var(--border-strong); }
.btn-mini--danger { color: #ff5c72; }
.btn-mini--danger:hover { border-color: #ff5c72; background: color-mix(in srgb, #ff5c72 10%, transparent); }
.btn-mini:disabled { opacity: .5; cursor: default; }

.notice { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.notice--warn { border-color: color-mix(in srgb, #f6b73c 40%, transparent); }
.notice h2 { margin: 0 0 8px; font-size: 19px; }
.notice p { color: var(--text-muted); line-height: 1.6; margin: 0; font-size: 14px; }
.notice code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* ---- Admin layout ---- */
.admin-container { max-width: 1160px; }
.acct { display: flex; flex-direction: column; line-height: 1.25; }
.acct__user { font-family: var(--mono); font-weight: 700; font-size: 13.5px; color: var(--text); white-space: nowrap; }
.acct__dom { font-family: var(--mono); font-size: 11px; color: var(--text-faint); white-space: nowrap; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted); cursor: pointer; transition: .15s; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn--muted { color: var(--text-faint); }
.icon-btn--danger:hover { color: #ff5c72; border-color: #ff5c72; background: color-mix(in srgb, #ff5c72 10%, transparent); }
.icon-btn:disabled { opacity: .45; cursor: default; }
.admin-table td { padding: 12px 16px; vertical-align: middle; }
.admin-table th { padding: 13px 16px; }

/* ---- Tabs ---- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.tab { font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border: none; border-radius: 9px; background: transparent; color: var(--text-muted); cursor: pointer; transition: .16s; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: rise .2s ease; }

/* ---- Account table extras ---- */
.chip-type { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); color: var(--text-muted); text-transform: capitalize; }
.toggle-pill { font-family: inherit; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-faint); transition: .16s; min-width: 44px; }
.toggle-pill.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.toggle-pill:disabled { opacity: .5; }

/* ---- Form rows / selects / checkboxes ---- */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field__input-wrap select { width: 100%; padding: 12px 12px; font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--input-bg); border: 1px solid var(--border); border-radius: 12px; outline: none; cursor: pointer; appearance: none; }
.field__input-wrap select:focus { border-color: var(--brand); }
.field--check { display: flex; align-items: flex-end; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-muted); cursor: pointer; padding-bottom: 12px; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

/* ---- Modal ---- */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5,8,16,.6); backdrop-filter: blur(4px); }
.modal { width: 100%; max-width: 420px; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); animation: rise .2s ease; }
.modal__title { font-size: 19px; font-weight: 800; margin: 0 0 18px; }
.modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 30px; }
  .hero { order: 2; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__points { justify-items: center; }
  .card { order: 1; }
}
@media (max-width: 560px) {
  .main-area { padding: 28px 0 40px; }
  .topbar__actions .btn-ghost span { display: none; }
  .user-chip { display: none; }
  .card { padding: 20px; }
  .site-footer__inner { flex-direction: column; gap: 6px; text-align: center; }
  .admin-head { flex-direction: column; align-items: stretch; }
}
