:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-muted: #eeece5;
  --ink: #1d211f;
  --muted: #686d69;
  --line: #d9d8d1;
  --line-strong: #bfc1ba;
  --accent: #235b46;
  --accent-dark: #194333;
  --accent-soft: #e2ece6;
  --nav: #1d2420;
  --nav-muted: #aeb8b1;
  --danger: #9f2f38;
  --danger-soft: #fae9ea;
  --success: #1d6b4c;
  --success-soft: #e4f2ea;
  --warning: #8a5d18;
  --radius-sm: 7px;
  --radius: 11px;
  --radius-lg: 16px;
  --shadow: 0 14px 38px rgba(29, 33, 31, 0.08);

  --ink: #132440;
  --ink-raised: #16476A;
  --ink-line: #35334a;
  --ink-text: #EDEAF6;
  --ink-muted: #9491AE;

  --paper: #3B9797;
  --paper-shadow: #153333;
  --paper-text: #132440;
  --paper-muted: #221417;

  --cut-red: #BF092F;
  --cut-red-dark: #4B0414;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Interaction */
  --primary: #FF9A00;

  --radius-card: 6px;
  --edge: 26px; /* zig-zag ticket edge size */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, canvas { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(35, 91, 70, .28); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


.brand-row { display: inline-flex; align-items: center; gap: 11px; }
.brand-row strong { display: block; font-size: 15px; line-height: 1.2; letter-spacing: -0.01em; }
.brand-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #172f25;
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  font-size: 15px;
  font-weight: 750;
}

.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { color: var(--ink); background: transparent; border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-muted); }
.btn.light { color: var(--ink); background: #fff; border-color: #fff; }
.btn.large { min-height: 46px; padding: 11px 18px; }
.btn.wide { width: 100%; }
.btn.danger-solid { color: #fff; background: var(--danger); border-color: var(--danger); }

.alert {
  margin: 16px 0;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.alert.error { color: #7e222b; background: var(--danger-soft); border-color: #edc9cd; }
.alert.success { color: #17553d; background: var(--success-soft); border-color: #c5dfd1; }
.muted { color: var(--muted); line-height: 1.65; }
.eyebrow, .section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Landing page */
.landing-body { background: #f7f6f2; }
.landing-nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.landing-nav nav { display: flex; gap: 28px; }
.landing-nav nav a { color: #4c524e; font-size: 13px; font-weight: 650; }
.landing-nav nav a:hover { color: var(--accent); }
.landing-nav > .btn { justify-self: end; }
.landing-body main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.landing-hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .75fr);
  align-items: center;
  gap: 80px;
  padding: 82px 0 90px;
}
.landing-copy { max-width: 680px; }
.landing-pill {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}
.landing-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 6vw, 76px);
  line-height: .99;
  letter-spacing: -0.055em;
  font-weight: 760;
}
.landing-copy > p:not(.landing-pill) {
  max-width: 620px;
  margin: 28px 0 0;
  color: #585e5a;
  font-size: 18px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-product-card {
  overflow: hidden;
  border: 1px solid #c9cbc4;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}
.product-window-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  color: #5e645f;
  font-size: 12px;
  font-weight: 700;
}
.product-window-head b {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--success);
  background: var(--success-soft);
  font-size: 10px;
}
.product-preview { padding: 28px; }
.product-preview > p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.product-preview > strong { display: block; font-size: 22px; letter-spacing: -0.025em; word-break: break-word; }
.preview-stat-list { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.preview-stat-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.preview-stat-list span { color: var(--muted); font-size: 12px; }
.preview-stat-list b { text-align: right; font-size: 12px; font-weight: 700; }
.landing-section { padding: 90px 0; border-top: 1px solid var(--line); }
.split-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: start; }
.landing-section h2 {
  max-width: 720px;
  margin: 13px 0 0;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.split-section > p { max-width: 560px; margin: 30px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.section-heading { max-width: 800px; margin-bottom: 46px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feature-grid article { min-height: 225px; padding: 28px 25px 28px 0; border-right: 1px solid var(--line); }
.feature-grid article:not(:first-child) { padding-left: 25px; }
.feature-grid article:last-child { border-right: 0; }
.feature-grid article > span { color: var(--accent); font-size: 12px; font-weight: 750; }
.feature-grid h3 { margin: 48px 0 10px; font-size: 19px; letter-spacing: -0.02em; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.start-banner {
  margin: 30px 0 0;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border: 0;
  border-radius: var(--radius-lg);
  color: #fff;
  background: var(--nav);
}
.start-banner .section-kicker { color: #aebbb4; }
.start-banner h2 { max-width: 700px; font-size: clamp(30px, 3.6vw, 46px); }
.start-banner p { margin: 15px 0 0; color: #c7d0ca; }
.suggestion-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.suggestion-section > div > p { max-width: 500px; color: var(--muted); line-height: 1.75; }
.suggestion-form {
  display: grid;
  gap: 17px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.suggestion-form textarea { min-height: 140px; resize: vertical; }
.landing-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.landing-footer strong { color: var(--ink); }

/* Forms and authentication */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 18px;
  background: var(--ink);
  background-image: linear-gradient(rgba(35, 91, 70, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 91, 70, .045) 1px, transparent 1px);
  background-size: 36px 36px;
}
.auth-scroll { align-items: start; }
.auth-orb { display: none; }
.auth-card {
  position: relative;
    max-width: 560px;
    margin: 0 auto 40px;
    background: var(--paper);
    color: var(--paper-text);
    border-radius: var(--radius-card);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.4) inset,
        0 24px 48px -20px rgba(0, 0, 0, 0.6),
        0 2px 0 var(--paper-shadow);
    text-align: left;
    padding-bottom: 10px;
}

.auth-card h1 { margin: 30px 0 8px; font-size: 29px; line-height: 1.15; letter-spacing: -0.035em; }
.auth-card form { display: grid; gap: 18px; margin-top: 25px; }
.auth-card .brand-row small { color: var(--muted); }
.center-card { text-align: center; }
.center-card .brand-row { justify-content: center; }
label { display: block; color: #333835; font-size: 12px; font-weight: 720; }
label > input,
label > textarea,
.search-form input,
.filter-form input,
.filter-form select,
.input-group {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: #fff;
  outline: none;
}
label > input, label > textarea, .search-form input, .filter-form input, .filter-form select { padding: 11px 12px; }
label > input:focus,
label > textarea:focus,
.search-form input:focus,
.filter-form input:focus,
.filter-form select:focus,
.input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(35, 91, 70, .11);
}
label small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 450; }
.google-btn {
  min-height: 45px;
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.google-btn:hover { background: var(--surface-muted); }
.google-btn span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.divider { position: relative; margin: 20px 0; text-align: center; color: var(--muted); font-size: 11px; }
.divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 1px solid var(--line); }
.divider span { position: relative; padding: 0 10px; background: #fff; }
.auth-switch { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.auth-switch a { color: var(--accent); font-weight: 750; }
.security-note { margin: 18px 0 0; text-align: center; color: #8a8d89; font-size: 10px; }
.start-card { width: min(540px, 100%); }
.choice-grid { display: grid; gap: 12px; margin-top: 24px; }
.choice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.choice-card:hover { border-color: var(--accent); background: #f8faf8; }
.choice-card > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { font-size: 13px; }
.choice-card small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.choice-card.disabled { pointer-events: none; opacity: .5; }
.verify-icon { width: 50px; height: 50px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-weight: 800; }
.verify-icon.error-icon { color: var(--danger); background: var(--danger-soft); }

/* Application shell */
.app-body { min-height: 100vh; display: flex; background: var(--bg); }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 236px;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  color: var(--nav-muted);
  background: var(--nav);
}
.sidebar-brand { padding: 0 8px 21px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-brand strong { color: #fff; }
.sidebar-brand small { color: #8fa097; }
.sidebar .brand-mark { border-color: #436654; background: #2d6c52; }
.sidebar nav { display: grid; gap: 4px; margin-top: 20px; }
.sidebar nav a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #aeb8b1;
  font-size: 13px;
  font-weight: 650;
}
.sidebar nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar nav a.active { color: #fff; background: #2d6c52; }
.sidebar nav a.superadmin-entry { margin-bottom: 10px; border: 1px solid rgba(255,255,255,.12); color: #e2e8e4; }
.superadmin-sidebar { background: #20221f; }
.superadmin-sidebar nav a.active { background: #5a4d35; }
.superadmin-sidebar .brand-mark { border-color: #6e6048; background: #62543c; }
.sidebar-bottom { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.09); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.user-chip > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255,255,255,.11); font-size: 12px; font-weight: 800; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { color: #fff; font-size: 12px; }
.user-chip small { margin-top: 2px; color: #8fa097; font-size: 10px; }
.logout-link { display: inline-block; margin: 14px 0 0 44px; color: #b7c1bb; font-size: 11px; }
.logout-link:hover { color: #fff; }
.content { width: calc(100% - 236px); margin-left: 236px; padding: 28px 34px 48px; }
.topbar {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.topbar h1 { margin: 3px 0 0; font-size: 27px; line-height: 1.15; letter-spacing: -0.035em; }
.mobile-menu { display: none; }

.panel, .stat-card, .tutorial-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel { padding: 22px; }
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h3 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.panel-heading > a { color: var(--accent); font-size: 11px; font-weight: 750; }
.hero-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 28px;
  border: 1px solid #1b4938;
  border-radius: var(--radius);
  color: #fff;
  background: var(--accent);
}
.hero-panel .badge { color: #dbe9e1; }
.hero-panel h2 { margin: 10px 0 7px; font-size: 30px; line-height: 1.12; letter-spacing: -0.04em; }
.hero-panel p { margin: 0; color: #d4e1da; }
.hero-panel .hero-actions { margin: 0; }
.superadmin-hero { border-color: #4f4532; background: #5a4d35; }
.superadmin-hero p { color: #ece4d8; }
.badge {
  display: inline-flex;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.super-stats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-card { min-height: 94px; display: flex; align-items: center; gap: 14px; padding: 18px; }
.stat-icon { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: var(--accent); background: var(--accent-soft); font-size: 11px; font-weight: 800; }
.stat-card p { margin: 0; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin-top: 3px; font-size: 22px; line-height: 1.1; letter-spacing: -0.025em; }
.stat-card .stat-text-value { font-size: 14px; }
.tutorial-panel { margin-bottom: 16px; padding: 21px; }
.tutorial-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.tutorial-heading h2 { margin: 7px 0 0; font-size: 20px; letter-spacing: -0.025em; }
.tutorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 19px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--line); }
.tutorial-grid article { padding: 16px; background: #fff; }
.tutorial-grid b { display: block; color: var(--accent); font-size: 11px; }
.tutorial-grid strong { display: block; margin-top: 12px; font-size: 13px; }
.tutorial-grid p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.text-btn { padding: 0; border: 0; color: var(--accent); background: transparent; cursor: pointer; font-size: 11px; font-weight: 750; }

.link-list { display: grid; }
.link-row { display: flex; align-items: center; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.link-favicon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); background: #f7f8f6; font-size: 12px; }
.link-main { min-width: 0; flex: 1; }
.link-main > strong, .link-main > a, .link-main > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-main > strong { font-size: 13px; }
.link-main > a { margin: 3px 0; color: var(--accent); font-size: 12px; font-weight: 700; }
.link-main > small { color: var(--muted); font-size: 10px; }
.link-meta, .row-actions, .table-actions { display: flex; align-items: center; gap: 7px; }
.link-meta > span:first-child { color: var(--muted); font-size: 10px; }
.mini-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 9px; color: var(--muted); font-size: 10px; }
.status, .account-status, .provider-badge, .audit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.status { cursor: pointer; }
.status.on, .account-status.active { color: var(--success); background: var(--success-soft); }
.status.off, .account-status.suspended { color: #676a67; background: #ecece8; }
.status.ads { color: var(--warning); background: #f6eedc; }
.provider-badge { color: var(--accent); background: var(--accent-soft); }
.audit-action { color: #4d473b; background: #ece8df; }
.copy-btn, .danger-btn, .search-form button, .filter-form button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}
.copy-btn:hover { background: var(--surface-muted); }
.danger-btn { color: var(--danger); border-color: #e1bfc2; }
.danger-btn:hover { background: var(--danger-soft); }
.empty { padding: 54px 20px; text-align: center; }
.empty > div { color: var(--accent); font-size: 24px; }
.empty h3 { margin: 12px 0 5px; font-size: 15px; }
.empty p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }

/* Forms in dashboard */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 18px; }
.form-panel { padding: 24px; }
.link-form { display: grid; gap: 20px; margin-top: 22px; }
.link-form label span { color: var(--danger); }
.input-group { display: flex; align-items: center; overflow: hidden; }
.input-group > span { align-self: stretch; display: flex; align-items: center; padding: 0 11px; border-right: 1px solid var(--line); color: var(--muted); background: #f2f1ec; font-size: 11px; }
.input-group input { min-width: 0; flex: 1; padding: 11px 12px; border: 0; outline: 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.switch-row strong { font-size: 12px; }
.switch-row p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.switch { flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: relative; width: 39px; height: 22px; display: block; border-radius: 999px; background: #b9bbb5; cursor: pointer; transition: background .16s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .16s ease; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(17px); }
.disabled-row { opacity: .48; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.preview-card {
  position: sticky;
  top: 24px;
  height: max-content;
  padding: 21px;
  border: 1px solid #303832;
  border-radius: var(--radius);
  color: #fff;
  background: var(--nav);
}
.preview-card .badge { color: #aebbb4; }
.phone-preview { margin-top: 16px; padding: 24px 18px; border-radius: var(--radius); color: var(--ink); background: #fff; text-align: center; }
.preview-logo { width: 38px; height: 38px; margin: 0 auto; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--accent); font-weight: 800; }
.phone-preview p { margin: 17px 0 5px; color: var(--muted); font-size: 10px; }
.phone-preview strong { display: block; font-size: 11px; word-break: break-all; }
.phone-preview #previewQr, .phone-preview #staticQr { min-height: 138px; display: grid; place-items: center; margin: 18px 0; }
.phone-preview small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.manage-head { gap: 22px; }
.search-form { display: flex; min-width: 260px; }
.search-form input { margin: 0; border-radius: 6px 0 0 6px; }
.search-form button { min-height: auto; color: #fff; border-color: var(--nav); border-radius: 0 6px 6px 0; background: var(--nav); }
.filter-form { display: flex; gap: 7px; align-items: center; }
.filter-form input, .filter-form select { width: auto; min-width: 170px; margin: 0; padding: 8px 10px; font-size: 11px; }
.filter-form select { min-width: 125px; }
.filter-form button { min-height: 35px; color: #fff; border-color: var(--nav); background: var(--nav); }
.account-panel { max-width: 760px; }
.qr-modal { width: min(380px, calc(100% - 28px)); padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; box-shadow: 0 28px 70px rgba(0,0,0,.25); }
.qr-modal::backdrop { background: rgba(18,22,20,.62); }
.qr-modal .modal-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; cursor: pointer; font-size: 22px; }
.qr-modal h3 { margin: 8px 0 18px; }
.qr-modal #modalQr { min-height: 220px; display: grid; place-items: center; }
.qr-modal #qrUrl { color: var(--muted); font-size: 10px; word-break: break-all; }

/* Super admin and data views */
.admin-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-table th { padding: 11px 10px; border-bottom: 1px solid var(--line-strong); color: var(--muted); text-align: left; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td strong, .admin-table td small, .admin-table td a { display: block; }
.admin-table td strong { font-size: 11px; }
.admin-table td small { max-width: 250px; margin-top: 3px; color: var(--muted); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-table .link-code { color: var(--accent); font-weight: 750; }
.compact-table td { vertical-align: middle; }
.table-note { margin: 14px 0 0; color: var(--muted); font-size: 9px; }
.warning-text { color: var(--warning) !important; }
.activity-list { display: grid; }
.activity-list article { display: flex; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.activity-list article:last-child { border-bottom: 0; }
.activity-list article > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: #5a4d35; background: #ece8df; font-size: 10px; font-weight: 800; }
.activity-list strong { display: block; font-size: 11px; }
.activity-list p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 16px; }
.detail-header h2 { margin: 11px 0 2px; font-size: 27px; letter-spacing: -0.035em; }
.detail-header p { margin: 0; color: var(--muted); }
.back-link { color: var(--accent); font-size: 11px; font-weight: 750; }
.user-detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 10px; }
.detail-list dd { margin: 0; font-size: 11px; font-weight: 700; word-break: break-word; }
.action-card-list { display: grid; gap: 9px; margin-top: 18px; }
.danger-zone { margin-top: 8px; padding: 15px; border: 1px solid #e4c5c8; border-radius: var(--radius-sm); background: var(--danger-soft); }
.danger-zone strong { color: var(--danger); font-size: 12px; }
.danger-zone p { margin: 5px 0 13px; color: #76575a; font-size: 10px; line-height: 1.55; }
.user-summary-stats { margin-bottom: 16px; }
.message-list { display: grid; }
.message-list article { padding: 18px 0; border-bottom: 1px solid var(--line); }
.message-list article:last-child { border-bottom: 0; }
.message-head { display: flex; justify-content: space-between; gap: 20px; }
.message-head strong, .message-head a { display: block; }
.message-head strong { font-size: 12px; }
.message-head a { margin-top: 2px; color: var(--accent); font-size: 10px; }
.message-head time { color: var(--muted); font-size: 9px; }
.message-list article > p { margin: 12px 0 0; color: #4f5551; font-size: 11px; line-height: 1.7; }
.details-json { max-width: 230px !important; white-space: normal !important; word-break: break-word; }

/* Redirect page */
.watch-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #e9e7df; }
.watch-card { width: min(520px, 100%); padding: 30px; border: 1px solid #cbc9c1; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.watch-card h1 { margin: 25px 0 8px; font-size: 25px; letter-spacing: -0.035em; }
.ad-slot { margin-top: 25px; padding: 30px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; background: #f7f6f2; }
.ad-slot span, .ad-slot strong, .ad-slot small { display: block; }
.ad-slot span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.ad-slot strong { margin-top: 10px; font-size: 13px; }
.ad-slot small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.disabled-link { opacity: .55; cursor: not-allowed; }

@media (max-width: 1120px) {
  .landing-hero { gap: 45px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid article:nth-child(2) { border-right: 0; }
  .feature-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .super-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .landing-nav { grid-template-columns: 1fr auto; }
  .landing-nav nav { display: none; }
  .landing-hero { min-height: auto; grid-template-columns: 1fr; padding: 70px 0; }
  .hero-product-card { max-width: 560px; }
  .split-section, .suggestion-section { grid-template-columns: 1fr; gap: 28px; }
  .start-banner { align-items: flex-start; flex-direction: column; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .content { width: 100%; margin-left: 0; padding: 22px; }
  .mobile-menu { display: inline-flex; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 750; }
  .topbar { align-items: center; }
  .topbar > div { flex: 1; }
  .form-layout, .user-detail-grid, .admin-grid-two { grid-template-columns: 1fr; }
  .preview-card { position: static; }
}

@media (max-width: 680px) {
  .landing-nav, .landing-body main, .landing-footer { width: min(100% - 28px, 1180px); }
  .landing-nav { min-height: 66px; }
  .landing-nav .brand-row small { display: none; }
  .landing-copy h1 { font-size: 43px; }
  .landing-copy > p:not(.landing-pill) { font-size: 15px; }
  .landing-section { padding: 68px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: auto; padding: 23px 0 !important; border-right: 0; border-top: 1px solid var(--line); }
  .feature-grid article:first-child { border-top: 0; }
  .feature-grid h3 { margin-top: 24px; }
  .start-banner { padding: 31px 24px; }
  .suggestion-form { padding: 22px; }
  .landing-footer { gap: 18px; align-items: flex-start; flex-direction: column; }
  .auth-card { padding: 27px 22px; }
  .content { padding: 18px 14px 36px; }
  .topbar { flex-wrap: wrap; }
  .topbar .btn { margin-left: auto; }
  .topbar h1 { font-size: 23px; }
  .hero-panel { align-items: flex-start; flex-direction: column; }
  .hero-panel h2 { font-size: 25px; }
  .stats-grid, .super-stats-grid { grid-template-columns: 1fr; }
  .tutorial-grid { grid-template-columns: 1fr; }
  .link-row { align-items: flex-start; flex-wrap: wrap; }
  .link-meta, .row-actions { width: 100%; padding-left: 48px; flex-wrap: wrap; }
  .manage-head, .panel-heading { align-items: flex-start; flex-direction: column; }
  .search-form, .filter-form { width: 100%; min-width: 0; }
  .filter-form { align-items: stretch; flex-direction: column; }
  .filter-form input, .filter-form select { width: 100%; min-width: 0; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .detail-list > div { grid-template-columns: 1fr; gap: 3px; }
  .message-head { flex-direction: column; gap: 5px; }
}

/* =========================================================
   POTONG.ID V2 — editorial utility interface
   ========================================================= */
:root {
  --bg: #f3f0e8;
  --surface: #fffdf7;
  --surface-muted: #e9e5dc;
  --ink: #151515;
  --muted: #66645f;
  --line: #151515;
  --line-strong: #151515;
  --accent: #1747d1;
  --accent-dark: #0f339d;
  --accent-soft: #dce5ff;
  --nav: #fffdf7;
  --nav-muted: #5f5d57;
  --danger: #b4232f;
  --danger-soft: #f8dadd;
  --success: #1f6b42;
  --success-soft: #dcefe3;
  --warning: #8a5700;
  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --shadow: 7px 7px 0 #151515;
}

body { background: var(--bg); color: var(--ink); }
.btn {
  min-height: 42px;
  padding: 10px 16px;
  border-width: 2px;
  border-color: var(--ink);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: .01em;
  box-shadow: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 3px 3px 0 var(--ink); }
.btn.primary { background: var(--accent); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--ink); }
.btn.ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn.ghost:hover { background: #fff; }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.danger-solid { border-color: var(--ink); }

.brand-row { gap: 10px; }
.brand-row strong { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.brand-row small { margin-top: 1px; font-size: 10px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 1px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--accent);
}

.alert { border-width: 2px; border-radius: 2px; }
label { color: var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
label > input,
label > textarea,
.search-form input,
.filter-form input,
.filter-form select,
.input-group {
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #fff;
}
label > input:focus,
label > textarea:focus,
.search-form input:focus,
.filter-form input:focus,
.filter-form select:focus,
.input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 3px 3px 0 var(--accent-soft);
}

/* Landing */
.landing-body { background: var(--bg); }
.landing-nav {
  width: min(1280px, calc(100% - 48px));
  min-height: 82px;
  grid-template-columns: 1fr auto 1fr;
  border-bottom: 2px solid var(--ink);
}
.landing-nav nav { gap: 30px; }
.landing-nav nav a { color: var(--ink); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.landing-nav nav a:hover { color: var(--accent); }
.nav-actions { justify-self: end; display: flex; gap: 8px; }
.landing-nav > .btn { justify-self: auto; }
.landing-body main { width: min(1280px, calc(100% - 48px)); }
.landing-hero {
  min-height: 690px;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, .72fr);
  gap: 76px;
  padding: 88px 0 76px;
  align-items: center;
}
.landing-copy { max-width: 760px; }
.landing-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 30px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.landing-pill span { width: 9px; height: 9px; background: var(--accent); border: 2px solid var(--ink); }
.landing-copy h1 {
  max-width: 820px;
  font-size: clamp(58px, 7.2vw, 102px);
  line-height: .91;
  letter-spacing: -.065em;
  font-weight: 850;
}
.landing-copy h1 em { color: var(--accent); font-style: normal; }
.landing-copy > p:not(.landing-pill) {
  max-width: 640px;
  margin-top: 30px;
  color: #403f3b;
  font-size: 17px;
  line-height: 1.65;
}
.hero-actions { margin-top: 30px; }
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  margin-top: 46px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.hero-proof div { min-height: 92px; padding: 16px 16px 15px 0; border-right: 1px solid var(--ink); }
.hero-proof div:not(:first-child) { padding-left: 16px; }
.hero-proof div:last-child { border-right: 0; }
.hero-proof strong, .hero-proof span { display: block; }
.hero-proof strong { color: var(--accent); font-size: 11px; }
.hero-proof span { margin-top: 16px; font-size: 11px; font-weight: 750; line-height: 1.45; }
.hero-demo-wrap { position: relative; padding: 18px 18px 0 0; }
.hero-demo-wrap::before {
  content: "";
  position: absolute;
  inset: 42px 0 0 42px;
  border: 2px solid var(--ink);
  background: #efcf3b;
}
.hero-demo-label {
  position: absolute;
  right: -30px;
  top: 50%;
  z-index: 3;
  transform: rotate(90deg) translateY(-50%);
  transform-origin: right top;
  padding: 7px 10px;
  border: 2px solid var(--ink);
  background: var(--surface);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-product-card {
  position: relative;
  z-index: 2;
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: none;
  background: #fff;
}
.product-window-head {
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  letter-spacing: .08em;
}
.product-window-head b { padding: 5px 7px; border-radius: 1px; color: var(--ink); background: #bde3c9; font-size: 8px; }
.product-preview { padding: 24px; }
.preview-url-block { position: relative; padding: 17px; border: 2px solid var(--ink); background: var(--surface); }
.preview-url-block p { margin: 0 0 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.preview-url-block strong { display: block; padding-right: 58px; font-size: 17px; word-break: break-all; }
.preview-url-block button { position: absolute; right: 12px; bottom: 12px; padding: 5px 7px; border: 1px solid var(--ink); background: #fff; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.preview-chart { height: 145px; display: flex; align-items: end; gap: 9px; margin: 26px 0 0; padding: 20px 16px 0; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background-image: linear-gradient(to top, rgba(21,21,21,.08) 1px, transparent 1px); background-size: 100% 25%; }
.preview-chart span { flex: 1; min-width: 8px; border: 2px solid var(--ink); border-bottom: 0; background: var(--accent); }
.preview-stat-list { grid-template-columns: repeat(3,1fr); margin-top: 22px; border-top: 2px solid var(--ink); }
.preview-stat-list div { display: block; padding: 14px 12px; border-right: 1px solid var(--ink); border-bottom: 0; }
.preview-stat-list div:first-child { padding-left: 0; }
.preview-stat-list div:last-child { border-right: 0; }
.preview-stat-list span, .preview-stat-list b { display: block; text-align: left; }
.preview-stat-list span { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.preview-stat-list b { margin-top: 7px; font-size: 14px; }
.signal-strip {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 calc((100vw - min(1280px, calc(100vw - 48px))) / -2);
  padding: 0 max(24px, calc((100vw - 1280px) / 2));
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
}
.signal-strip i { width: 7px; height: 7px; background: #efcf3b; border: 1px solid var(--ink); transform: rotate(45deg); }
.landing-section { padding: 100px 0; border-top: 0; }
.section-kicker, .eyebrow { color: var(--accent); font-size: 10px; letter-spacing: .11em; }
.landing-section h2 { margin-top: 16px; font-size: clamp(38px,5vw,66px); line-height: .98; letter-spacing: -.052em; }
.workflow-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 90px; }
.workflow-section .section-heading { margin: 0; }
.workflow-grid { border-top: 2px solid var(--ink); }
.workflow-grid article { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 27px 0; border-bottom: 2px solid var(--ink); }
.workflow-grid b { color: var(--accent); font-size: 42px; line-height: 1; }
.workflow-grid h3 { margin: 0; font-size: 19px; }
.workflow-grid p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.feature-section { border-top: 2px solid var(--ink); }
.narrow-heading { max-width: 880px; }
.feature-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  border: 0;
}
.feature-grid article {
  min-height: 250px;
  padding: 22px;
  border: 2px solid var(--ink) !important;
  background: var(--surface);
}
.feature-grid article:not(:first-child) { padding-left: 22px; }
.feature-grid article > span { color: var(--accent); }
.feature-grid h3 { margin-top: 68px; font-size: 19px; }
.feature-grid p { color: #52504b; }
.feature-grid .feature-main { grid-column: span 2; background: #efcf3b; }
.feature-grid .feature-main h3 { max-width: 430px; margin-top: 50px; font-size: 32px; line-height: 1.05; }
.feature-grid .feature-main p { max-width: 510px; font-size: 14px; }
.feature-line { width: 52%; height: 14px; margin-top: 28px; border: 2px solid var(--ink); background: var(--accent); }
.start-banner {
  margin: 0;
  padding: 56px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 8px 8px 0 var(--accent);
}
.start-banner h2 { max-width: 780px; }
.start-banner p { color: #c9c7c0; }
.start-banner .section-kicker { color: #efcf3b; }
.suggestion-section { grid-template-columns: .8fr 1.2fr; gap: 100px; }
.suggestion-section > div > p { max-width: 430px; }
.suggestion-form { padding: 30px; border: 2px solid var(--ink); border-radius: 2px; box-shadow: 6px 6px 0 var(--ink); }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.landing-footer { width: min(1280px, calc(100% - 48px)); padding: 28px 0 38px; border-top: 2px solid var(--ink); }

/* Authentication — ticket-stub card */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background-color: var(--ink);
  background-image: radial-gradient(var(--paper-shadow) 1px, transparent 1px);
  background-size: 14px 14px;
}
.auth-body .grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.auth-orb { display: none; }

.auth-ticket {
  position: relative;
  width: min(440px, 100%);
  padding: 40px 40px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--paper) 0%, var(--paper) 55%, var(--paper-shadow) 130%);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
  color: var(--paper-text);
  font-family: var(--font-mono);
  transform: rotate(-1.0deg);
  transition: 0.3s;
}

.auth-ticket:hover {
  transform: rotate(0deg);
}

.auth-ticket .brand-row { margin-bottom: 6px; }
.auth-ticket .brand-mark { background: var(--paper-text); border-color: var(--paper-text); }
.auth-ticket .brand-row strong { font-family: var(--font-display); }
.auth-ticket .brand-row small { color: var(--paper-text); opacity: .7; }

.auth-ticket .ticket-half { display: flex; flex-direction: column; gap: 10px; }
.auth-ticket .ticket-label {
  margin: 4px 0 0;
  color: var(--cut-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.auth-ticket .auth-heading {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
}
.auth-ticket .lede { margin: 0; font-size: 13.5px; line-height: 1.5; opacity: .85; }

/* Perforated divider with a punched notch, sized off --edge */
.auth-ticket .ticket-cut {
  position: relative;
  display: flex;
  align-items: center;
  margin: 28px calc(-1 * 40px);
  height: 1px;
}
.auth-ticket .ticket-cut::before,
.auth-ticket .ticket-cut::after {
  content: "";
  position: absolute;
  top: 50%;
  width: var(--edge);
  height: var(--edge);
  border-radius: 50%;
  background: var(--ink);
  transform: translateY(-50%);
}
.auth-ticket .ticket-cut::before { left: calc(-1 * var(--edge) / 2); }
.auth-ticket .ticket-cut::after { right: calc(-1 * var(--edge) / 2); }
.auth-ticket .cut-line { flex: 1; height: 0; margin: 0 calc(var(--edge) + 4px); border-top: 2px dashed rgba(19,36,64,.4); }
.auth-ticket .lock-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: var(--edge);
  height: var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(19,36,64,.5);
  border-radius: 50%;
  background: var(--paper);
  color: var(--cut-red);
  font-size: 14px;
  z-index: 1;
}

.auth-ticket .auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-ticket .field-label {
  margin-top: 14px;
  color: var(--cut-red);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-ticket .field-label:first-child { margin-top: 0; }
.auth-ticket .url-input {
  appearance: none;
  width: 100%;
  padding: 8px 2px 10px;
  border: none;
  border-bottom: 2px dashed rgba(19,36,64,.4);
  background: transparent;
  color: var(--paper-text);
  font-family: var(--font-display);
  font-size: 16px;
  outline: none;
}
.auth-ticket .url-input::placeholder { color: rgba(19,36,64,.45); }
.auth-ticket .url-input:focus { border-bottom-color: var(--cut-red); }

.auth-ticket .btn.primary.wide {
  margin-top: 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--primary);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-ticket .btn.primary.wide:hover { background: var(--cut-red-dark); color: var(--primary); }

.auth-ticket .ticket-alert {
  margin: 16px 0 0;
  padding: 10px 14px;
  border: 1px dashed rgba(19,36,64,.4);
  border-radius: var(--radius-card);
  background: rgba(19,36,64,.1);
  color: var(--cut-red-dark);
  font-size: 12.5px;
}
.auth-ticket .auth-switch { margin: 18px 0 0; color: var(--paper-text); font-size: 13px; }
.auth-ticket .auth-switch a { color: var(--paper-text); text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }
.auth-ticket .stub-serial {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 2px dashed rgba(19,36,64,.35);
  color: var(--paper-text);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  opacity: .7;
}

@media (max-width: 480px) {
  .auth-ticket { padding: 32px 24px 22px; transform: none; }
  .auth-ticket .ticket-cut { margin-left: -24px; margin-right: -24px; }
}

/* Ticket-style "choose how to sign in" cards (start.php) */
.auth-ticket .ticket-choice-grid { display: flex; flex-direction: column; gap: 12px; }
.auth-ticket .ticket-choice-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px dashed rgba(19,36,64,.4);
  border-radius: var(--radius-card);
  background: rgba(244,239,230,.18);
  color: var(--paper-text);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.auth-ticket .ticket-choice-card:hover { border-color: var(--cut-red); background: rgba(244,239,230,.32); transform: translateY(-1px); }
.auth-ticket .ticket-choice-card.disabled { pointer-events: none; opacity: .5; }
.auth-ticket .ticket-choice-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(19,36,64,.5);
  border-radius: 50%;
  color: var(--cut-red);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
}
.auth-ticket .ticket-choice-card strong { display: block; font-family: var(--font-display); font-size: 14px; }
.auth-ticket .ticket-choice-card small { display: block; margin-top: 2px; opacity: .75; font-size: 11.5px; }

/* Dashboard shell — same ticket language as the auth pages: paper teal,
   coral accents, dashed rules, pill buttons, mono/display type pairing. */
.app-body { background: var(--bg); }

.sidebar {
  width: 248px;
  padding: 24px 18px;
  color: var(--ink-text);
  background: var(--ink);
}
.sidebar-brand { padding-bottom: 18px; border-bottom: 1px dashed rgba(237,234,246,.25); }
.sidebar-brand strong, .user-chip strong { color: #fff; }
.sidebar-brand small, .user-chip small { color: var(--ink-muted); }
.sidebar .brand-mark, .superadmin-sidebar .brand-mark { border-color: var(--paper); background: var(--paper); color: var(--paper-text); }
.sidebar nav { gap: 5px; }
.sidebar nav a {
  padding: 10px 12px;
  border: 1.5px dashed transparent;
  border-radius: var(--radius-card);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sidebar nav a:hover { color: #fff; border-color: rgba(237,234,246,.3); background: rgba(255,255,255,.05); }
.sidebar nav a.active, .superadmin-sidebar nav a.active { color: var(--paper-text); border-color: transparent; background: var(--paper); }
.sidebar nav a.superadmin-entry { border-color: var(--cut-red); color: var(--cut-red); background: transparent; }
.superadmin-sidebar { background: var(--ink-raised); }
.sidebar-bottom { padding-top: 16px; border-top: 1px dashed rgba(237,234,246,.25); }
.user-chip > span { border-radius: 999px; color: var(--paper-text); background: var(--paper); }
.logout-link { color: var(--ink-muted); font-weight: 700; }
.logout-link:hover { color: var(--cut-red); }

.content { width: calc(100% - 248px); margin-left: 248px; padding: 30px 38px 55px; }
.topbar { min-height: 68px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1.5px dashed var(--line-strong); }
.topbar h1 { font-family: var(--font-display); font-size: 32px; }

.panel, .stat-card, .tutorial-panel {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.panel { padding: 24px; }
.panel-heading { padding-bottom: 16px; border-bottom: 1.5px dashed var(--line); }
.panel-heading h3 { font-family: var(--font-display); font-size: 17px; }

.hero-panel {
  border: none;
  border-radius: var(--radius-lg);
  color: var(--paper-text);
  background: linear-gradient(160deg, var(--paper) 0%, var(--paper-shadow) 130%);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.4);
}
.hero-panel .badge { color: var(--paper-text); background: rgba(19,36,64,.12); }
.hero-panel p { color: var(--paper-text); opacity: .85; }
.hero-panel h2 { font-family: var(--font-display); font-size: 32px; }
.superadmin-hero { background: linear-gradient(160deg, var(--ink-raised) 0%, var(--ink) 130%); color: #fff; }
.superadmin-hero p { color: #dbe3ee; }
.superadmin-hero .badge { color: #fff; background: rgba(255,255,255,.12); }

.badge {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cut-red);
  background: rgba(191,9,47,.08);
  border-radius: 999px;
}

.stats-grid { gap: 12px; margin: 23px 0; }
.stat-card { min-height: 104px; }
.stat-icon { border-radius: 50%; border: 1.5px dashed var(--line-strong); color: var(--cut-red); background: transparent; }
.stat-card strong { font-family: var(--font-display); font-size: 24px; }

.tutorial-grid { border-radius: var(--radius-card); background: var(--line); }
.tutorial-grid b { color: var(--cut-red); }

.link-favicon { border-radius: 50%; border: 1.5px dashed var(--line-strong); background: transparent; color: var(--cut-red); }
.status, .account-status, .provider-badge, .audit-action { border-radius: 999px; }
.status.on, .account-status.active { color: var(--paper-shadow); background: rgba(59,151,151,.15); }
.copy-btn, .danger-btn { border-radius: 999px; }
.text-btn { color: var(--cut-red-dark); }

.preview-card {
  border: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--paper) 0%, var(--paper-shadow) 130%);
}
.preview-card .badge { color: var(--paper-text); background: rgba(19,36,64,.14); }
.phone-preview { border-radius: var(--radius); background: #fff; }
.preview-logo { border-radius: 10px; background: var(--ink); }

.switch input:checked + span { background: var(--paper); }

.search-form input { border-radius: var(--radius-card) 0 0 var(--radius-card); }
.search-form button { border-radius: 0 var(--radius-card) var(--radius-card) 0; background: var(--ink); }

.qr-modal { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0,0,0,.28); }

.admin-table th { color: var(--cut-red); font-family: var(--font-mono); border-bottom: 1.5px dashed var(--line-strong); }
.admin-table .link-code { color: var(--paper-shadow); }

.activity-list article > span { border-radius: 50%; border: 1.5px dashed var(--line-strong); background: transparent; color: var(--cut-red); }

.danger-zone { border: 1.5px dashed var(--danger); border-radius: var(--radius-card); }

.watch-body { background: var(--ink); }
.watch-card { border: none; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.ad-slot { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg); }

.app-body .btn.primary {
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--primary);
  color: var(--ink);
  font-family: var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.app-body .btn.primary:hover { background: var(--cut-red-dark); color: var(--primary); border-color: var(--cut-red-dark); }
.app-body .btn.ghost { border-radius: 999px; }
.app-body .btn.light { border-radius: 999px; color: var(--paper-text); background: #fff; }

/* Ticket card placed inline on the page (not a popup) — ported directly
   from landing-ticket.css (the real index.php ticket) so this matches
   pixel-for-pixel, not an approximation. The one deliberate change: the
   torn edges and notches "cut through" to var(--ink) on index.php because
   the page behind the card really is navy there. Here the card sits on
   the light dashboard background, so those same cut-outs use var(--bg)
   instead — otherwise they render as stray black shapes. */
.ticket-page-wrap {
  display: flex;
  justify-content: flex-start;
  padding: 12px 0 40px;
}
.ticket-page-wrap.ticket-page-narrow { max-width: 720px; }

.ticket-page-wrap .ticket {
  position: relative;
  width: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--paper-text);
  border-radius: var(--radius-card);
  box-shadow:
    0 1px 0 rgba(255,255,255,.4) inset,
    0 24px 48px -20px rgba(0,0,0,.35),
    0 2px 0 var(--paper-shadow);
  /* transform: rotate(-1deg); */
  padding-bottom: 10px;
}
.ticket-page-wrap .ticket-half { padding: 26px 28px 20px; }
.ticket-page-wrap .ticket-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cut-red);
}
.ticket-page-wrap .auth-heading { font-family: var(--font-display); font-size: 1.6rem; margin: 0; }
.ticket-page-wrap .lede { margin: 8px 0 0; color: var(--paper-text); opacity: .8; font-size: .95rem; }

.ticket-page-wrap .url-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--paper-text);
  padding: 4px 0;
  border-bottom: 1px dashed var(--paper-shadow);
}
.ticket-page-wrap .url-input::placeholder { color: var(--cut-red); opacity: .6; }
.ticket-page-wrap .url-input:focus { outline: none; border-color: var(--cut-red); }
.ticket-page-wrap .url-input:disabled { color: rgba(19,36,64,.5); cursor: not-allowed; }
.ticket-page-wrap .field-label {
  display: block;
  margin: 16px 0 4px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cut-red);
}
.ticket-page-wrap .field-label:first-child { margin-top: 0; }
.ticket-page-wrap .field-hint { margin: 6px 0 0; font-size: .78rem; color: var(--paper-text); opacity: .65; }

/* the perforated divider with the punched notches */
.ticket-page-wrap .scissors-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0 10px;
  background: transparent;
  border: none;
}
.ticket-page-wrap .cut-line {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  border-top: 1.5px dashed var(--paper-shadow);
}
.ticket-page-wrap .scissors-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px dashed var(--paper-shadow);
  font-size: 1rem;
  color: var(--cut-red);
}
.ticket-page-wrap .scissors-btn::before,
.ticket-page-wrap .scissors-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
}
.ticket-page-wrap .scissors-btn::before { left: -8px; }
.ticket-page-wrap .scissors-btn::after { right: -8px; }

.ticket-page-wrap .ticket-alert {
  margin: 12px 28px 0;
  padding: 10px 14px;
  border: 1px dashed rgba(19,36,64,.35);
  border-radius: var(--radius-card);
  background: rgba(19,36,64,.08);
  color: var(--cut-red-dark);
  font-size: .82rem;
}
.ticket-page-wrap .ticket-alert-success { color: var(--paper-shadow); }

.ticket-page-wrap .stub-serial {
  margin: 4px 28px 0;
  padding: 10px 0 4px;
  border-top: 1px dashed var(--paper-shadow);
  color: var(--paper-shadow);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ticket-page-wrap .form-actions { display: flex; gap: 10px; margin-top: 20px; }
.ticket-page-wrap .btn.ghost {
  flex: 1;
  border: 1px solid var(--paper-shadow);
  border-radius: 999px;
  color: var(--paper-text);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
}
.ticket-page-wrap .btn.ghost:hover { background: var(--cut-red); border-color: var(--cut-red); color: #fff; }
.ticket-page-wrap .app-body .btn.primary,
.ticket-page-wrap .btn.primary { flex: 1; }

.ticket-page-wrap .req-mark { margin-left: 4px; color: var(--cut-red); font-weight: 700; }

.ticket-page-wrap .input-group {
  display: flex;
  align-items: center;
  border-bottom: 1px dashed var(--paper-shadow);
  overflow: hidden;
}
.ticket-page-wrap .input-group > span {
  padding-right: 2px;
  color: var(--cut-red);
  background: transparent;
  font-family: var(--font-mono);
  font-size: .85rem;
}
.ticket-page-wrap .input-group input {
  min-width: 0;
  flex: 1;
  padding: 4px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper-text);
  font-family: var(--font-mono);
  font-size: 1rem;
}
.ticket-page-wrap .input-group input::placeholder { color: var(--cut-red); opacity: .6; }

.ticket-page-wrap .switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1.5px dashed rgba(19,36,64,.3);
  border-radius: var(--radius-card);
  background: rgba(244,239,230,.15);
}
.ticket-page-wrap .switch-row strong { font-family: var(--font-display); font-size: .85rem; }
.ticket-page-wrap .switch-row p { margin: 3px 0 0; color: var(--paper-text); opacity: .7; font-size: .75rem; }
.ticket-page-wrap .switch span { background: rgba(19,36,64,.25); }
.ticket-page-wrap .switch input:checked + span { background: var(--cut-red); }

/* jagged torn edges, top and bottom — same technique as index.php, but
   biting into the dashboard's light background instead of navy */
.ticket-page-wrap .ticket::before,
.ticket-page-wrap .ticket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-image:
    linear-gradient(135deg, var(--bg) 50%, transparent 50%),
    linear-gradient(45deg, var(--bg) 50%, transparent 50%);
  background-size: 14px 14px;
  background-position: bottom left;
}
.ticket-page-wrap .ticket::before { top: -1px; transform: translateY(-100%); background-position: top left; }
.ticket-page-wrap .ticket::after { bottom: -1px; transform: translateY(100%) rotate(180deg); }

.auth-ticket .url-input:disabled { color: rgba(19,36,64,.55); cursor: not-allowed; }
.auth-ticket .ticket-bottom .form-actions { display: flex; gap: 10px; margin-top: 22px; }
.auth-ticket .ticket-bottom .form-actions .btn.ghost {
  flex: 1;
  border: 1.5px dashed rgba(19,36,64,.4);
  border-radius: 999px;
  color: var(--paper-text);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.auth-ticket .ticket-bottom .form-actions .btn.ghost:hover { border-color: var(--cut-red); color: var(--cut-red); }
.auth-ticket .ticket-bottom .form-actions .btn.primary { flex: 1; margin-top: 0; }



@media (max-width: 1120px) {
  .landing-hero { gap: 46px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .feature-grid .feature-main { grid-column: span 2; }
}
@media (max-width: 900px) {
  .landing-nav { grid-template-columns: 1fr auto; }
  .nav-actions { display: flex; }
  .landing-hero { grid-template-columns: 1fr; padding-top: 65px; }
  .hero-demo-wrap { max-width: 620px; }
  .workflow-section { grid-template-columns: 1fr; gap: 46px; }
  .suggestion-section { gap: 45px; }
  .sidebar { transform: translateX(-100%); }
  .content { width: 100%; margin-left: 0; }
  .mobile-menu { border: 2px solid var(--ink); border-radius: 2px; }
}
@media (max-width: 680px) {
  .landing-nav, .landing-body main, .landing-footer { width: min(100% - 28px,1280px); }
  .landing-nav { min-height: 72px; }
  .nav-actions .btn.ghost { display: none; }
  .landing-copy h1 { font-size: 53px; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div { min-height: auto; padding: 13px 0 !important; border-right: 0; border-bottom: 1px solid var(--ink); }
  .hero-proof div:last-child { border-bottom: 0; }
  .hero-proof span { margin-top: 5px; }
  .hero-demo-wrap { padding-right: 10px; }
  .hero-demo-label { display: none; }
  .preview-stat-list { grid-template-columns: 1fr; }
  .preview-stat-list div { padding: 11px 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .signal-strip { overflow: hidden; justify-content: flex-start; white-space: nowrap; }
  .signal-strip span:nth-of-type(n+3), .signal-strip i:nth-of-type(n+3) { display: none; }
  .landing-section { padding: 72px 0; }
  .workflow-grid article { grid-template-columns: 48px 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid .feature-main { grid-column: auto; }
  .feature-grid .feature-main h3 { font-size: 27px; }
  .start-banner { padding: 34px 25px; }
  .suggestion-section { grid-template-columns: 1fr; }
  .form-two-col { grid-template-columns: 1fr; }
  .auth-body::before { display: none; }
  .auth-card { padding: 29px 22px; box-shadow: 6px 6px 0 var(--ink); }
  .content { padding: 18px 14px 36px; }
  .topbar h1 { font-size: 26px; }
}

@media (max-width: 1120px) and (min-width: 681px) { .stats-grid:not(.super-stats-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


.legal-card { max-width: 760px; }
.legal-card h2 { margin-top: 1.5rem; font-size: 1.15rem; }
.legal-card p { line-height: 1.75; }
/* Configurable branding */
.brand-mark {
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}
.auth-ticket .brand-mark img,
.sidebar .brand-mark img,
.superadmin-sidebar .brand-mark img {
  padding: 3px;
}

.site-settings-form { display: grid; gap: 26px; }
.settings-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-text-grid label { display: grid; gap: 7px; font-weight: 700; }
.settings-text-grid input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: inherit;
}
.settings-wide { grid-column: 1 / -1; }
.settings-image-heading { margin-top: 4px; padding-top: 22px; border-top: 1px dashed var(--line); }
.branding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.branding-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.55);
}
.branding-card > div:last-child { min-width: 0; }
.branding-card strong { display: block; margin-bottom: 4px; }
.branding-card p { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.branding-card input[type="file"] { width: 100%; font-size: 12px; }
.branding-preview {
  width: 112px;
  height: 92px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
}
.branding-preview.dark-preview { background: var(--ink); }
.branding-preview img { width: 88px; height: 68px; object-fit: contain; }
.reset-image { display: flex !important; align-items: center; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 11px; font-weight: 600 !important; }
.reset-image input { width: auto !important; min-height: 0 !important; }
.settings-actions { padding-top: 4px; }

@media (max-width: 820px) {
  .settings-text-grid, .branding-grid { grid-template-columns: 1fr; }
  .settings-wide { grid-column: auto; }
  .branding-card { grid-template-columns: 88px minmax(0, 1fr); }
  .branding-preview { width: 88px; height: 78px; }
  .branding-preview img { width: 70px; height: 58px; }
}
.preview-logo { overflow: hidden; }
.preview-logo img { width: 100%; height: 100%; padding: 4px; object-fit: contain; }

/* Registration password strength and CAPTCHA */
.register-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
.auth-ticket .password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-ticket .password-field .url-input { padding-right: 86px; }
.auth-ticket .password-toggle {
  position: absolute;
  right: 0;
  bottom: 8px;
  padding: 3px 0 3px 10px;
  border: 0;
  background: var(--paper);
  color: var(--cut-red-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}
.auth-ticket .password-toggle:hover,
.auth-ticket .password-toggle:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.auth-ticket .password-strength {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 700;
}
.auth-ticket .strength-track {
  height: 6px;
  overflow: hidden;
  border: 1px solid rgba(19,36,64,.3);
  border-radius: 999px;
  background: rgba(255,255,255,.35);
}
.auth-ticket .strength-track span {
  display: block;
  width: 0;
  height: 100%;
  transition: width .18s ease, background-color .18s ease;
}
.auth-ticket .strength-weak { background: #b3261e; }
.auth-ticket .strength-medium { background: #a15c00; }
.auth-ticket .strength-strong { background: #18794e; }
.auth-ticket .password-criteria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  margin: 7px 0 2px;
  padding: 0;
  list-style: none;
  color: rgba(19,36,64,.7);
  font-size: 10.5px;
}
.auth-ticket .password-criteria li::before {
  content: '○';
  display: inline-block;
  width: 14px;
  font-weight: 900;
}
.auth-ticket .password-criteria li.is-valid { color: #146c43; }
.auth-ticket .password-criteria li.is-valid::before { content: '✓'; }
.auth-ticket .password-criteria li.is-invalid { color: var(--cut-red-dark); }
.auth-ticket .password-match {
  min-height: 15px;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 700;
}
.auth-ticket .password-match.is-valid { color: #146c43; }
.auth-ticket .password-match.is-invalid { color: var(--cut-red-dark); }
.auth-ticket .captcha-box {
  margin-top: 12px;
  padding: 12px 14px 13px;
  border: 1px dashed rgba(19,36,64,.38);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.25);
}
.auth-ticket .captcha-box .field-label { margin-top: 0; }
.auth-ticket .captcha-question {
  margin: 8px 0 2px;
  color: var(--paper-text);
  font-family: var(--font-mono);
  font-size: 13px;
}
.auth-ticket .captcha-question strong {
  padding: 2px 6px;
  border: 1px solid rgba(19,36,64,.28);
  border-radius: 5px;
  background: rgba(255,255,255,.35);
  letter-spacing: .08em;
}
.auth-ticket .captcha-box small {
  display: block;
  margin-top: 7px;
  color: rgba(19,36,64,.68);
  font-size: 9.5px;
}
@media (max-width: 520px) {
  .auth-ticket .password-criteria { grid-template-columns: 1fr; }
}
