/* GoPay Bill: dark dashboard UI with a solid neutral palette and dual-tone headings. */

:root {
  /* Solid Neutral Palette (Ref: NilovrAI - pure charcoal/black) */
  --bg: #0c0d0e;
  --surface: #141517;
  --surface-card: #18191b;
  --surface-nested: #1e1f23;
  --surface-input: #111214;

  /* Crisp Hairline Borders */
  --border: #232528;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-strong: #32353a;
  --border-hover: #40444c;

  /* Dual-Tone Typography (Ref: nkhOW1gzYC.jpg & Supabase) */
  --text-white: #ffffff;
  --text-primary: #e2e4e8;
  --text-secondary: #9ea4af;
  --text-muted: #7c828d;
  --text-dim: #757c87;

  /* Terracotta Accent (Ref: NilovrAI button & badge highlights) */
  --accent: #d97757;
  --accent-hover: #e28263;
  --accent-active: #c56647;
  --accent-text: #0e0f10;
  --accent-soft: rgba(217, 119, 87, 0.12);
  --accent-border: rgba(217, 119, 87, 0.28);

  /* Status Accents (Restrained, non-neon) */
  --status-ok: #86efac;
  --status-ok-bg: rgba(134, 239, 172, 0.1);
  --status-ok-border: rgba(134, 239, 172, 0.22);
  --status-ok-text: #86efac;

  --status-warn: #fbbf24;
  --status-warn-bg: rgba(251, 191, 36, 0.1);
  --status-warn-border: rgba(251, 191, 36, 0.22);
  --status-warn-text: #fbbf24;

  --status-danger: #f87171;
  --status-danger-bg: rgba(248, 113, 113, 0.1);
  --status-danger-border: rgba(248, 113, 113, 0.22);
  --status-danger-text: #f87171;

  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
}

/* ── Strict Anti-Overflow & Base Reset ───────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden],
.hidden {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Typography & Dual-Tone Styles ───────────────────────────── */

.text-white {
  color: var(--text-white) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.mono {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.title-serif {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  letter-spacing: -0.015em;
  color: var(--text-white);
  line-height: 1.2;
  margin: 0;
}

.text-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0;
  line-height: 1.45;
}

/* ── Boot Screen ─────────────────────────────────────────────── */

body.is-booting .shell,
body.is-booting .home,
body.is-booting .gate,
body.is-booting .profiles {
  display: none !important;
}

.boot {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.boot-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin: 0;
  color: var(--text-white);
}

.boot-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.btn.primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn.primary:active:not(:disabled) {
  background: var(--accent-active);
}

.btn.ghost {
  background: var(--surface-card);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn.ghost:hover:not(:disabled) {
  background: var(--surface-nested);
  border-color: var(--border-hover);
  color: var(--text-white);
}

.btn.ghost.danger {
  color: var(--status-danger-text);
  border-color: var(--status-danger-border);
  background: var(--status-danger-bg);
}

.btn.ghost.danger:hover:not(:disabled) {
  background: rgba(248, 113, 113, 0.18);
  border-color: var(--status-danger);
}

.btn.small {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 12px;
}

.btn.block {
  width: 100%;
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  color: var(--text-white);
  border-color: var(--border-hover);
  background: var(--surface-card);
}

/* ── Form Inputs ─────────────────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-4);
}

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

input, textarea, select {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  background: var(--surface-input);
  color: var(--text-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}

input::placeholder, textarea::placeholder {
  color: var(--text-dim);
}

textarea {
  min-height: 76px;
  resize: vertical;
  line-height: 1.5;
  font-family: var(--font-mono);
  font-size: 12px;
}

.amount-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rp-tag {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
}

.amount-input-wrap input {
  padding-left: 38px;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip-btn {
  background: var(--surface-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: var(--surface-nested);
  border-color: var(--border-hover);
  color: var(--text-white);
}

.hint {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 4px 0 0;
  line-height: 1.45;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 1px 5px;
  color: var(--accent);
}

.error-msg {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
  border: 1px solid var(--status-danger-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  margin: 10px 0;
}

.warning-msg {
  background: var(--status-warn-bg);
  color: var(--status-warn-text);
  border: 1px solid var(--status-warn-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 14px;
}

/* ── Status Pills ────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pill.paid, .pill.ok {
  background: var(--status-ok-bg);
  color: var(--status-ok-text);
  border-color: var(--status-ok-border);
}

.pill.pending {
  background: var(--status-warn-bg);
  color: var(--status-warn-text);
  border-color: var(--status-warn-border);
}

.pill.expired, .pill.cancelled, .pill.danger {
  background: var(--status-danger-bg);
  color: var(--status-danger-text);
  border-color: var(--status-danger-border);
}

.pill.idle {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border-color: var(--border);
}

/* ── NilovrAI Segmented Tabs ─────────────────────────────────── */

.pill-tabs {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.pill-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: calc(var(--radius-md) - 3px);
  padding: 5px 12px;
  font-size: 11.5px;
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover:not(.active) {
  color: var(--text-white);
}

.tab-btn.active {
  background: #ffffff;
  color: #0c0d0e;
  font-weight: 700;
}

/* ── Gate & Profiles Card ────────────────────────────────────── */

.gate, .profiles {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}

.gate-card, .profiles-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
}

.profiles-card {
  max-width: 560px;
}

.card-head {
  margin-bottom: 20px;
}

.profile-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-item:hover {
  background: var(--surface-nested);
  border-color: var(--border-hover);
}

.profile-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-main strong {
  font-size: 13.5px;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.profile-go {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.profile-ip {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 10.5px;
  padding: 2px 6px;
  cursor: pointer;
}

.profile-create {
  margin-top: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: var(--surface-input);
}

.profile-create summary {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  outline: none;
}

.profile-create[open] summary {
  margin-bottom: 14px;
  color: var(--text-muted);
}

/* ── Main Application Shell ──────────────────────────────────── */

.shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px var(--space-5) 64px;
}

/* ── Topbar (NilovrAI style) ─────────────────────────────────── */

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition: padding 0.22s ease, gap 0.22s ease, background 0.22s ease;
}

/* Collapsed state when scrolled: show logo only */
.topbar.is-scrolled {
  padding: 6px 10px;
  gap: 8px;
  justify-content: center;
}

.topbar.is-scrolled .icon-btn,
.topbar.is-scrolled .profile-badge-btn {
  max-width: 0;
  width: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-width 0.22s ease, width 0.22s ease, opacity 0.18s ease, padding 0.22s ease, margin 0.22s ease;
}

.topbar.is-scrolled .brand {
  gap: 0;
  justify-content: center;
}

.topbar.is-scrolled .brand-name,
.topbar.is-scrolled .badge-label,
.topbar.is-scrolled .badge-val {
  max-width: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.22s ease, opacity 0.18s ease, margin 0.22s ease;
}

/* Expanded state when scrolled (hover/focus/click) */
.topbar.is-scrolled.is-expanded,
.topbar.is-scrolled:hover,
.topbar.is-scrolled:focus-within {
  padding: 10px 14px;
  gap: 12px;
  justify-content: space-between;
}

.topbar.is-scrolled.is-expanded .brand,
.topbar.is-scrolled:hover .brand,
.topbar.is-scrolled:focus-within .brand {
  gap: 8px;
}

.topbar.is-scrolled.is-expanded .icon-btn,
.topbar.is-scrolled.is-expanded .profile-badge-btn,
.topbar.is-scrolled:hover .icon-btn,
.topbar.is-scrolled:hover .profile-badge-btn,
.topbar.is-scrolled:focus-within .icon-btn,
.topbar.is-scrolled:focus-within .profile-badge-btn {
  max-width: 40px;
  width: 36px;
  opacity: 1;
  padding: 0;
  border: 1px solid var(--border);
  pointer-events: auto;
}

.topbar.is-scrolled.is-expanded .brand-name,
.topbar.is-scrolled.is-expanded .badge-label,
.topbar.is-scrolled.is-expanded .badge-val,
.topbar.is-scrolled:hover .brand-name,
.topbar.is-scrolled:hover .badge-label,
.topbar.is-scrolled:hover .badge-val,
.topbar.is-scrolled:focus-within .brand-name,
.topbar.is-scrolled:focus-within .badge-label,
.topbar.is-scrolled:focus-within .badge-val {
  max-width: 220px;
  opacity: 1;
  margin: inherit;
}

.topbar.is-scrolled.is-expanded .profile-badge-btn,
.topbar.is-scrolled:hover .profile-badge-btn,
.topbar.is-scrolled:focus-within .profile-badge-btn {
  padding: 4px 10px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-white);
  letter-spacing: -0.01em;
}

.brand-suffix {
  color: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Flatten groups so the four pill items space evenly */
.topbar-left,
.topbar-right {
  display: contents;
}

.profile-badge,
.profile-badge-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11.5px;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-badge-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-card);
}

.badge-label {
  color: var(--text-dim);
}

.badge-val {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Page Header (Dual-Tone Text) ────────────────────────────── */

.page-head {
  margin-bottom: 22px;
}

.breadcrumb {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.main-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
}

.title-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 6px 0 8px;
  line-height: 1.45;
}



/* ── Metrics Cards (NilovrAI style) ──────────────────────────── */

.metrics-section {
  margin-bottom: 24px;
}

.section-top {
  margin-bottom: 10px;
}

.section-kicker {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
  padding: var(--space-4) var(--space-5);
  border-left: 1px solid var(--border);
}

.summary-item:first-child {
  border-left: 0;
}

.metric-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.metric-icon {
  flex-shrink: 0;
}

.metric-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.metric-num {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-white);
  line-height: 1.2;
}

.metric-note {
  font-size: 11.5px;
  color: var(--text-dim);
  margin: 8px 0 0;
}

/* ── Cards & Panels ─────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.card-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.card-head-row > div {
  min-width: 0;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.workspace > .card,
.bottom-grid > .card {
  min-width: 0;
  margin-bottom: 0;
}

/* ── Cashier panel ───────────────────────────────────────────── */

.cashier-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.cashier-panel-body {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: var(--space-5);
}

.cashier-pane,
.create-pane {
  min-width: 0;
}

.create-pane {
  padding-left: var(--space-5);
  border-left: 1px solid var(--border);
}

.pane-head {
  margin-bottom: var(--space-4);
}

.pane-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-white);
}

.pane-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Cashier / Active Bill ───────────────────────────────────── */

.cashier-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
}

.qr-box-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-box {
  width: 100%;
  aspect-ratio: 1;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.qr-box svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.qr-empty {
  text-align: center;
  color: #475569;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-placeholder {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  color: #64748b;
}

.text-link {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: underline;
}

.qr-sub {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
  line-height: 1.35;
}

.bill-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.amount-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.label-tiny {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 2px;
}

.amount-large {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin: 0;
  line-height: 1.2;
}

.bill-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0 0;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.meta-val {
  color: var(--text-primary);
}

.meta-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.meta-cell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.meta-cell strong {
  font-size: 11.5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-cell.col-full {
  grid-column: span 2;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
}

.bill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── History & Data Lists ────────────────────────────────────── */

.history-card {
  margin-bottom: var(--space-5);
}

.history-card .filter-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: var(--space-2) 0;
  margin: calc(var(--space-2) * -1) 0 var(--space-3);
  background: var(--bg);
}

.filter-bar {
  margin-bottom: 12px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.data-list, .list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}

.list-item:hover:not(.static) {
  background: var(--surface-nested);
  border-color: var(--border-hover);
}

.list-item.static {
  cursor: default;
}

.li-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.li-amount {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.li-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.li-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.li-date {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ── Bottom Grid ─────────────────────────────────────────────── */

.bottom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

/* ── Left Navigation Drawer (Ref: s24jMCg9KC.png) ─────────────── */

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 86vw;
  background: #0f1012;
  border-right: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 8px 0 28px rgba(0, 0, 0, 0.7);
}

.nav-drawer.hidden {
  display: none !important;
}

.nav-drawer-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-drawer-body {
  padding: 12px 12px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  gap: 20px;
}

.nav-profile-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.nav-profile-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-profile-card strong {
  font-size: 13px;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: #9ea4af;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  width: 100%;
}

.nav-item svg {
  flex-shrink: 0;
  stroke: #7c828d;
  transition: stroke 0.15s ease;
}

.nav-item:hover {
  background: #18191c;
  color: var(--text-white);
}

.nav-item:hover svg {
  stroke: var(--text-white);
}

/* Active Menu Item matching NilovrAI (s24jMCg9KC.png) */
.nav-item.active {
  background: rgba(217, 119, 87, 0.12);
  color: #d97757;
  font-weight: 600;
  border-left: 3px solid #d97757;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-item.active svg {
  stroke: #d97757;
}

.nav-item-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
}

.nav-item-badge.admin-badge-tag {
  background: rgba(217, 119, 87, 0.15);
  color: var(--accent);
  border: 1px solid rgba(217, 119, 87, 0.3);
}

/* Bottom Help Card matching NilovrAI */
.nav-help-card {
  margin-top: auto;
  background: #141517;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.help-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
  width: 100%;
}

.help-link:hover {
  background: #1e1f23;
}

.help-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-xs);
  background: #1e1f23;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.help-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.help-text strong {
  font-size: 12px;
  color: var(--text-white);
  line-height: 1.2;
}

.help-text span {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Admin Badge & Admin Drawer Controls ─────────────────────── */

.admin-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 87, 0.15);
  border: 1px solid rgba(217, 119, 87, 0.4);
  color: #d97757;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.admin-badge-btn:hover {
  background: rgba(217, 119, 87, 0.25);
  border-color: #d97757;
  color: #fff;
}

.admin-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97757;
}

.admin-status-box {
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.current-ip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.admin-block {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-block-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.btn-trust-ip {
  background: rgba(217, 119, 87, 0.15);
  border: 1px solid rgba(217, 119, 87, 0.35);
  color: #d97757;
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-trust-ip:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.blocked-ips-list,
.admin-ips-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blocked-ip-row,
.admin-ip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
}

.btn-remove-ip {
  background: transparent;
  border: none;
  color: var(--status-danger-text);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
}

.btn-remove-ip:hover {
  text-decoration: underline;
}

/* ── Slide-Over Drawer (Account) ─────────────────────────────── */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
}

.drawer-backdrop.hidden {
  display: none !important;
}

.account-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 90vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.6);
}

.account-drawer.hidden {
  display: none !important;
}

.drawer-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-card);
}

.drawer-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
}

.drawer-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.info-cell {
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.info-cell.full-width {
  grid-column: span 2;
}

.cell-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.info-cell strong {
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.drawer-bottom-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.otp-form {
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.otp-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.otp-row input {
  font-size: 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-align: center;
}

.drawer-note {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

/* ── Toast ───────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  background: var(--surface-nested);
  border: 1px solid var(--border-strong);
  color: var(--text-white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.15s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--status-danger-bg);
  border-color: var(--status-danger);
  color: var(--status-danger-text);
}

.toast.ok {
  background: var(--status-ok-bg);
  border-color: var(--status-ok);
  color: var(--status-ok-text);
}

/* ── Footer ─────────────────────────────────────────────────── */

.footer {
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-dim);
}

.footer p {
  margin: 0 0 4px;
}

.footer a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ── Mobile bottom navigation ───────────────────────────────── */

.mobile-tabbar {
  display: none;
}

.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 4px 2px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.mobile-tab:active {
  transform: scale(0.97);
}

.mobile-tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: inherit;
}

.mobile-tab.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
}

.mobile-tab.active .mobile-tab-icon {
  color: var(--accent);
}

.mobile-tab-create {
  color: var(--accent);
}

.mobile-tab-create .mobile-tab-icon {
  width: 38px;
  height: 38px;
  margin-top: -16px;
  margin-bottom: 1px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 6px 16px var(--accent-soft);
}

.mobile-tab-create.active {
  background: transparent;
  color: var(--accent);
}

.mobile-tab-create.active .mobile-tab-icon {
  background: var(--accent-hover);
  color: var(--accent-text);
}

/* ── Mobile Layout (< 1024px) ────────────────────────────────── */

#detailPanel,
#createPanel,
.history-card {
  scroll-margin-top: 96px;
}

@media (max-width: 1023px) {
  .shell {
    padding: 76px var(--space-3) calc(112px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100vw;
  }

  .topbar {
    top: 10px;
    width: calc(100vw - 24px);
    max-width: none;
    padding: 8px 10px;
    gap: 8px;
    border-radius: var(--radius-lg);
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .main-title {
    font-size: 1.8rem;
  }

  .page-head {
    margin-bottom: 18px;
  }

  .summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-item {
    padding: 14px;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
  }

  .summary-item:nth-child(odd) {
    border-left: 0;
  }

  .summary-item:nth-child(-n+2) {
    border-top: 0;
  }

  .metric-num {
    font-size: 18px;
  }

  .workspace,
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .cashier-panel-head {
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-4);
  }

  .cashier-panel-body {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .create-pane {
    padding-left: 0;
    padding-top: var(--space-4);
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .history-card .filter-bar {
    top: 72px;
  }

  .cashier-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .qr-box-wrap {
    max-width: 240px;
    margin: 0 auto;
    width: 100%;
  }

  .card {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }

  .card-title {
    font-size: 0.95rem;
  }

  #detailPanel,
  #createPanel,
  .history-card {
    scroll-margin-top: 84px;
  }

  .mobile-tabbar {
    position: fixed;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(430px, calc(100vw - 24px));
    padding: 6px;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .footer {
    padding-bottom: var(--space-3);
  }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .summary-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .summary-item {
    border-top: 0;
  }

  .summary-item:nth-child(odd) {
    border-left: 1px solid var(--border);
  }

  .summary-item:first-child {
    border-left: 0;
  }
}

@media (min-width: 1024px) {
  .shell {
    max-width: none;
    margin: 0;
    padding: 40px 32px 64px 280px;
  }

  .topbar,
  .mobile-tabbar {
    display: none;
  }

  .page-head,
  .metrics-section,
  .workspace,
  .history-card,
  .bottom-grid,
  .footer {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-drawer,
  .nav-drawer.hidden {
    display: flex !important;
    width: 248px;
    max-width: none;
    z-index: 50;
    background: var(--surface);
    box-shadow: none;
  }

  .nav-drawer-head {
    padding: 24px 20px;
  }

  .nav-drawer-body {
    padding: 16px 12px 24px;
  }

  #navCloseBtn {
    display: none;
  }

  .nav-item {
    padding: 10px 12px;
  }

  .history-card .filter-bar {
    top: 0;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .cashier-panel-body {
    grid-template-columns: 1fr;
  }

  .create-pane {
    padding-left: 0;
    padding-top: var(--space-4);
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 420px) {
  .topbar .brand-name {
    display: none;
  }

  .metric-num {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ── Gate / Request Access & Visitor Screen ──────────────────── */

.gate-ip-box {
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ip-meta {
  display: flex;
  flex-direction: column;
}

.request-access-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.request-pending-box {
  background: rgba(217, 119, 87, 0.08);
  border: 1px solid rgba(217, 119, 87, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pending-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(217, 119, 87, 0.2);
  border-top-color: #d97757;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pending-text strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.pending-text p {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

.gate-actions-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-wa-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.btn-wa-share:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25d366;
  color: #fff;
}

.admin-unlock-details {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 6px;
}

.admin-unlock-details summary {
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  margin-bottom: 12px;
  transition: color 0.15s ease;
}

.admin-unlock-details summary:hover {
  color: var(--text-primary);
}

/* ── Admin Access Requests & Invites in Modal ─────────────────── */

.admin-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.access-requests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.access-req-card {
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.req-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.req-user {
  display: flex;
  flex-direction: column;
}

.req-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}

.req-meta {
  font-size: 11px;
  color: var(--text-dim);
}

.req-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.req-actions select {
  font-size: 12px;
  padding: 6px 10px;
  height: 32px;
  background: #141517;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: #fff;
  flex: 1;
  min-width: 140px;
}

.btn-approve-req {
  background: #d97757;
  border: none;
  color: #fff;
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.btn-approve-req:hover {
  opacity: 0.9;
}

.btn-reject-req {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: var(--status-danger-text);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 11.5px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-reject-req:hover {
  background: rgba(239, 68, 68, 0.15);
}

.invite-result-box {
  background: var(--surface-input);
  border: 1px solid rgba(217, 119, 87, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.invite-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-link-row input {
  font-size: 11.5px;
  padding: 6px 10px;
  height: 34px;
  flex: 1;
}

/* ── REST API Documentation Modal (Zass CDN UI Style) ────────────── */

.docs-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 7, 11, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
}

.docs-modal-overlay.hidden {
  display: none !important;
}

.zass-docs-container {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #0d1019;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.zass-docs-head {
  padding: 28px 32px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zass-docs-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.zass-docs-sub {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 6px 0 0;
  line-height: 1.5;
}

.zass-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 15px;
  flex-shrink: 0;
}

.zass-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Nav Tab Capsule */
.zass-nav-wrap {
  padding: 16px 32px 6px;
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.zass-nav-wrap::-webkit-scrollbar {
  display: none;
}

.zass-tab-capsule {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 4px;
  gap: 3px;
  max-width: 100%;
}

.zass-nav-pill {
  background: transparent;
  border: none;
  outline: none;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.zass-nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.zass-nav-pill.active {
  background: #ffffff;
  color: #0b0e14;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Modal Body & Tab Panes */
.zass-docs-body {
  padding: 16px 32px 32px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.zass-tab-pane {
  display: none;
}

.zass-tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* Cards */
.zass-card {
  background: #131724;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 26px;
}

.zass-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.zass-card-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 20px;
}

/* Box Groups */
.zass-box-group {
  margin-bottom: 16px;
}

.zass-box-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #738096;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zass-box {
  background: #090c13;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zass-box-value {
  font-size: 13.5px;
  color: #e2e8f0;
  word-break: break-all;
}

.zass-icon-copy-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.zass-icon-copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.zass-key-box {
  padding: 8px 12px 8px 18px;
}

.zass-key-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13.5px;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.zass-box-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.zass-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zass-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.zass-action-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.zass-action-btn.primary:hover {
  filter: brightness(1.1);
}

.zass-action-btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.zass-action-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.zass-auth-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(217, 119, 87, 0.06);
  border: 1px solid rgba(217, 119, 87, 0.2);
  border-radius: 14px;
}

.zass-isolation-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #a7f3d0;
  line-height: 1.55;
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
}

.zass-isolation-note strong {
  color: #34d399;
}

.zass-prereq-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 12px 0 16px;
  padding: 10px 14px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
}

.zass-note-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  flex-shrink: 0;
}

.zass-note-dot.green {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Endpoint Route Header */
.zass-route-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.zass-method-pill {
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zass-method-pill.post {
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.zass-method-pill.get {
  background: #10b981;
  color: #000000;
}

.zass-url-pill {
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 16px;
  font-size: 13px;
  color: #e2e8f0;
}

.zass-endpoint-summary {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Section Blocks */
.zass-section-block {
  margin-top: 24px;
}

.zass-block-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.zass-block-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 10px;
}

.zass-lang-capsule {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.zass-lang-pill {
  background: transparent;
  border: none;
  outline: none;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.zass-lang-pill:hover {
  color: #ffffff;
}

.zass-lang-pill.active {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

/* Table Cards */
.zass-table-card {
  border-radius: 18px;
  background: #090c13;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.zass-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.zass-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #738096;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zass-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.zass-table tr:last-child td {
  border-bottom: none;
}

.zass-field-name {
  font-weight: 600;
  color: #e28a6c;
}

.zass-type {
  font-size: 12px;
  color: #94a3b8;
}

.zass-req-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
}

.zass-req-badge.yes {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.zass-req-badge.no {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Terminal Cards */
.zass-terminal-card {
  border-radius: 18px;
  background: #080a0f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 10px;
}

.zass-terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zass-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zass-file-name {
  font-size: 12px;
  color: #94a3b8;
}

.zass-term-copy-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.zass-term-copy-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.zass-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

.zass-status-badge.ok {
  background: #10b981;
  color: #000000;
}

.zass-status-badge.err {
  background: #ef4444;
  color: #ffffff;
}

.zass-code-pre {
  margin: 0;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #f1f5f9;
  overflow-x: auto;
  background: #06080d;
}

.zass-term-error .zass-code-pre {
  color: #fca5a5;
}

/* Topbar Docs button */
.topbar-docs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(217, 119, 87, 0.12);
  border: 1px solid rgba(217, 119, 87, 0.28);
  color: var(--accent);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topbar-docs-btn:hover {
  background: rgba(217, 119, 87, 0.22);
  border-color: var(--accent);
  color: #fff;
}

@media (max-width: 768px) {
  .docs-modal-overlay {
    padding: 0;
  }
  .zass-docs-container {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
  }
  .zass-docs-head {
    padding: 20px 20px 14px;
  }
  .zass-nav-wrap {
    padding: 12px 20px 4px;
  }
  .zass-docs-body {
    padding: 16px 20px 24px;
  }
  .zass-card {
    padding: 18px;
    border-radius: 20px;
  }
  .zass-box {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .zass-box-actions {
    justify-content: flex-end;
  }
}

/* ── Multi-Step Registration Wizard & Custom Modals ──────────────────────── */

.register-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg);
}

.register-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.register-brand {
  margin-bottom: 12px;
}

/* Stepper */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 28px;
  padding: 0 4px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.wizard-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-nested);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.wizard-step.active {
  color: var(--text-white);
  font-weight: 600;
}

.wizard-step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #0e0f10;
  box-shadow: 0 0 12px rgba(217, 119, 87, 0.4);
}

.wizard-step.completed .step-num {
  background: var(--status-ok-bg);
  border-color: var(--status-ok-border);
  color: var(--status-ok-text);
}

.step-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 10px;
}

/* Panes */
.wizard-pane {
  display: none;
}

.wizard-pane.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

/* Input with Eye toggle */
.input-with-eye {
  position: relative;
  width: 100%;
}

.input-with-eye input {
  padding-right: 44px;
}

.btn-toggle-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.btn-toggle-eye:hover {
  opacity: 1;
}

/* QRIS Inspector Box */
.qris-inspector-box {
  background: var(--surface-nested);
  border: 1px solid var(--status-ok-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 12px;
}

.inspector-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--status-ok-text);
  margin-bottom: 8px;
}

.inspector-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-primary);
}

/* Custom Modals (PIN & Admin Password) */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.custom-modal-overlay.hidden {
  display: none !important;
}

.custom-modal-card {
  width: 100%;
  max-width: 390px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
  animation: modalScaleUp 0.2s ease;
}

@keyframes modalScaleUp {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--surface-nested);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.custom-modal-head .title-serif {
  font-size: 20px;
  margin-bottom: 6px;
}

.custom-modal-form {
  margin-top: 18px;
}

.custom-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Tombol login Google di gate */
.gate-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #d97757;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Home / Landing (publik, sebelum daftar)
   ───────────────────────────────────────────────────────────────────────────── */

.home {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 12px;
}

.home-nav-links a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.home-nav-links a:hover {
  color: var(--text-white);
}

.home-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.home-main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding: 56px 0 72px;
}

.home-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.55rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-white);
  margin: 10px 0 18px;
}

.home-title em {
  color: var(--accent);
  font-style: italic;
}

.home-lede {
  max-width: 52ch;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.home a.btn {
  text-decoration: none;
}

.home-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.home-panel {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-panel-head .kicker {
  margin-bottom: 0;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-panel-amount {
  margin: 16px 0 2px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.home-panel-sub {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.home-panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  font-size: 11.5px;
  color: var(--text-dim);
}

.home-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-panel-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.home-panel-list strong {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--status-ok);
  white-space: nowrap;
}

.home-panel-list strong.muted {
  color: var(--text-dim);
}

.home-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.home-section-head {
  margin-bottom: 26px;
}

.home-section-head h2,
.home-band h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-white);
}

.home-section-head h2 {
  margin: 6px 0 0;
  font-size: 1.9rem;
  line-height: 1.15;
}

.home-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
}

.home-feature {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.home-feature h3,
.home-steps h3 {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-white);
}

.home-feature p,
.home-steps p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.home-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.home-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.home-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.home-band h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.home-band p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.home-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-dim);
}

.home-footer span:first-child {
  font-weight: 600;
  color: var(--text-secondary);
}

#fitur,
#cara-kerja {
  scroll-margin-top: 20px;
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 48px;
  }

  .home-panel {
    margin-left: 0;
  }

  .home-features,
  .home-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .home-nav {
    padding: 14px 16px;
  }

  .home-nav-links {
    display: none;
  }

  .home-main {
    padding: 0 16px 32px;
  }

  .home-title {
    font-size: 2.3rem;
  }

  .home-features,
  .home-steps {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 40px 0;
  }

  .home-panel {
    padding: 18px;
  }

  .home-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .home-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px 24px;
  }
}

/* Tombol pindah kepemilikan nomor GoPay (muncul saat nomor sudah dipakai akun lain). */
.claim-phone-btn {
  margin-bottom: 12px;
}
