/* =========================================================
   SyncroWA — Clean White & Emerald Modern SaaS Design System
   Crisp White Surfaces · Tasteful Emerald Accents · Executive Polish
   ========================================================= */

:root {
  --bg: #f6f9f7;
  --bg-mesh: radial-gradient(circle at 18% 0%, rgba(16, 185, 129, 0.065), transparent 46%),
             radial-gradient(circle at 88% 8%, rgba(5, 150, 105, 0.045), transparent 40%);
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-2: #f3f7f5;
  --surface-hover: #ebf4ef;
  --border: #e3ece7;
  --border-strong: #cddbd4;
  --text: #0f1f1a;
  --text-muted: #5a6f67;

  --accent: #059669;
  --accent-2: #10b981;
  --accent-grad: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --accent-hover: #047857;
  --accent-soft: #ecfdf5;
  --accent-border: #a7f3d0;
  --accent-glow: rgba(5, 150, 105, 0.24);
  --btn-primary-text: #ffffff;

  --green: #059669;
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --amber: #d97706;
  --amber-soft: #fffbeb;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(15, 31, 26, 0.04);
  --shadow-card: 0 1px 2px rgba(15, 31, 26, 0.04), 0 6px 20px -10px rgba(15, 31, 26, 0.07);
  --shadow-hover: 0 4px 10px -2px rgba(15, 31, 26, 0.06), 0 14px 28px -12px rgba(5, 150, 105, 0.14);
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --sidebar-w: 262px;
}

[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-mesh: none;
  --surface: #13161d;
  --surface-solid: #13161d;
  --surface-2: #1a1e27;
  --surface-hover: #222734;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #10b981;
  --accent-2: #34d399;
  --accent-grad: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --accent-soft: rgba(16, 185, 129, 0.13);
  --accent-border: rgba(16, 185, 129, 0.28);
  --green: #34d399;
  --green-soft: rgba(16, 185, 129, 0.14);
  --red: #f87171;
  --red-soft: rgba(239, 68, 68, 0.14);
  --amber: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --shadow-card: 0 6px 20px -10px rgba(0, 0, 0, 0.55);
  --shadow-hover: 0 10px 26px -8px rgba(0, 0, 0, 0.7);
}

[data-accent="emerald"] { --accent: #059669; --accent-2: #10b981; --accent-grad: linear-gradient(135deg,#059669,#10b981); --accent-hover: #047857; --accent-soft: #ecfdf5; --accent-border: #a7f3d0; --accent-glow: rgba(5,150,105,0.24); }
[data-accent="teal"]    { --accent: #0d9488; --accent-2: #14b8a6; --accent-grad: linear-gradient(135deg,#0d9488,#14b8a6); --accent-hover: #0f766e; --accent-soft: #f0fdfa; --accent-border: #99f6e4; --accent-glow: rgba(13,148,136,0.24); }
[data-accent="forest"]  { --accent: #15803d; --accent-2: #22c55e; --accent-grad: linear-gradient(135deg,#15803d,#22c55e); --accent-hover: #166534; --accent-soft: #f0fdf4; --accent-border: #bbf7d0; --accent-glow: rgba(21,128,61,0.24); }
[data-accent="cobalt"]  { --accent: #2563eb; --accent-2: #3b82f6; --accent-grad: linear-gradient(135deg,#2563eb,#3b82f6); --accent-hover: #1d4ed8; --accent-soft: #eff6ff; --accent-border: #bfdbfe; --accent-glow: rgba(37,99,235,0.24); }
[data-accent="slate"]   { --accent: #334155; --accent-2: #475569; --accent-grad: linear-gradient(135deg,#1e293b,#475569); --accent-hover: #0f172a; --accent-soft: #f1f5f9; --accent-border: #cbd5e1; --accent-glow: rgba(51,65,85,0.24); }
[data-accent="amber"]   { --accent: #d97706; --accent-2: #f59e0b; --accent-grad: linear-gradient(135deg,#d97706,#f59e0b); --accent-hover: #b45309; --accent-soft: #fffbeb; --accent-border: #fde68a; --accent-glow: rgba(217,119,6,0.24); }

[data-theme="dark"][data-accent="emerald"] { --accent: #10b981; --accent-soft: rgba(16,185,129,0.15); --accent-border: rgba(16,185,129,0.32); }
[data-theme="dark"][data-accent="teal"]    { --accent: #14b8a6; --accent-soft: rgba(20,184,166,0.15); --accent-border: rgba(20,184,166,0.32); }
[data-theme="dark"][data-accent="forest"]  { --accent: #22c55e; --accent-soft: rgba(34,197,94,0.15); --accent-border: rgba(34,197,94,0.32); }
[data-theme="dark"][data-accent="cobalt"]  { --accent: #3b82f6; --accent-soft: rgba(59,130,246,0.15); --accent-border: rgba(59,130,246,0.32); }
[data-theme="dark"][data-accent="slate"]   { --accent: #94a3b8; --accent-soft: rgba(148,163,184,0.15); --accent-border: rgba(148,163,184,0.32); }
[data-theme="dark"][data-accent="amber"]   { --accent: #f59e0b; --accent-soft: rgba(245,158,11,0.15); --accent-border: rgba(245,158,11,0.32); }

[data-font="jakarta"] { --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; }
[data-font="sans"]    { --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
[data-font="mono"]    { --font-family: 'JetBrains Mono', ui-monospace, monospace; }
[data-font="serif"]   { --font-family: Georgia, 'Times New Roman', serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

body {
  background-color: var(--bg);
  background-image: var(--bg-mesh);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--font-mono); }
code {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.text-xs { font-size: 12px; }
.text-2xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.text-lg { font-size: 18px; }
.text-danger { color: var(--red) !important; }
.text-success { color: var(--green) !important; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; }

/* ==================== CLEAN WHITE AUTH / LOGIN PAGE ==================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background-color: #f4f8f6;
  background-image:
    radial-gradient(circle at 12% 15%, rgba(16, 185, 129, 0.11), transparent 44%),
    radial-gradient(circle at 88% 85%, rgba(5, 150, 105, 0.08), transparent 42%),
    radial-gradient(#d5e3dc 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
}

.auth-container {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: #ffffff;
  border: 1px solid #dfeae4;
  border-radius: 24px;
  box-shadow: 0 24px 64px -20px rgba(15, 31, 26, 0.12), 0 2px 6px rgba(15, 31, 26, 0.04);
  overflow: hidden;
}

.auth-showcase {
  padding: 46px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(160deg, #ffffff 0%, #f1fbf6 58%, #e4f7ee 100%);
  border-right: 1px solid #e3ece7;
}

.auth-brand { display: inline-flex; align-items: center; gap: 12px; }
.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-grad);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(5, 150, 105, 0.45);
}
.auth-brand-title { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; color: #0f1f1a; }
.auth-brand-tag { font-size: 11px; color: #059669; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.auth-headline {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #0f1f1a;
  margin: 28px 0 14px;
}
.auth-headline span { color: #059669; }
.auth-subtitle { color: #526860; font-size: 14px; line-height: 1.65; }

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
  margin-top: 28px;
}
.telemetry-card {
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dce9e2;
  box-shadow: 0 2px 8px -4px rgba(15, 31, 26, 0.06);
}
.telemetry-title { font-size: 12.5px; font-weight: 700; color: #0f1f1a; display: flex; align-items: center; gap: 8px; }
.telemetry-sub { font-size: 11.5px; color: #5a6f67; margin-top: 3px; }

.auth-form-side {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}
.auth-form-side h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; color: #0f1f1a; margin-bottom: 6px; }

/* ==================== APP SHELL ==================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  z-index: 30;
  overflow: hidden;
}
.sidebar.collapsed { width: 74px; }
.sidebar.collapsed .workspace-meta,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-section,
.sidebar.collapsed .version-pill > div { display: none; }
.sidebar.collapsed .sidebar-collapse-btn { transform: rotate(180deg); }
.sidebar.collapsed .nav-item { justify-content: center; padding: 10px; }

.sidebar-top {
  height: 64px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.workspace-box {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  overflow: hidden;
  flex: 1;
}
.workspace-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-grad);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 5px 14px -4px var(--accent-glow);
}
.workspace-name { font-weight: 800; font-size: 14.5px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-role { font-size: 11px; color: var(--accent); font-weight: 700; }

.sidebar-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.15s;
}
.sidebar-collapse-btn:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.nav-group { margin-bottom: 16px; }
.nav-section {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 4px 12px 6px;
  text-transform: uppercase;
  opacity: 0.85;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--surface-hover); color: var(--text); }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}
.nav-item.active .nav-icon { color: var(--accent); }
.nav-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-icon svg { width: 17px; height: 17px; stroke-width: 2; }

.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.version-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-green { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22); }
.dot-red { background: var(--red); }
.dot-amber { background: var(--amber); }

/* ==================== TOPBAR & MAIN CONTENT ==================== */
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 64px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}
[data-theme="dark"] .topbar { background: rgba(19, 22, 29, 0.88); }

.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; }
.mobile-only { display: none; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--accent-border);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.user-menu-wrap { position: relative; }
.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 13px 4px 4px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s;
}
.user-avatar-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #ffffff;
  font-weight: 800;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 232px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 16px 38px -10px rgba(15, 31, 26, 0.16);
  overflow: hidden;
  z-index: 50;
}
.dropdown-header { padding: 13px 15px; background: var(--surface-2); }
.dropdown-divider { height: 1px; background: var(--border); }
.dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 15px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.dropdown-item:hover { background: var(--surface-hover); color: var(--accent); }

.content { padding: 26px 30px 48px; max-width: 1440px; width: 100%; margin: 0 auto; }

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-header h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.page-header p { color: var(--text-muted); font-size: 13.5px; margin-top: 4px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ==================== CARDS, KPIS & GRIDS ==================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
}
.card-title { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 14px; color: var(--text); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.split-2 { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; align-items: start; }

.kpi-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.kpi-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.kpi-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.kpi-card:hover::after { opacity: 1; }
.kpi-label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); display: flex; justify-content: space-between; align-items: center; }
.kpi-value { font-size: 30px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }
.kpi-sub { font-size: 12px; color: var(--accent); font-weight: 600; }

.quick-action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.16s ease;
}
.quick-action-card:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.qa-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

/* ==================== BUTTONS, INPUTS, BADGES ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: var(--accent-grad);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 12px -3px var(--accent-glow);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 8px 18px -5px var(--accent-glow); }
.btn-outline { background: var(--surface); border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow-xs); }
.btn-outline:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: rgba(220, 38, 38, 0.22); }
.btn-danger:hover:not(:disabled) { background: var(--red); color: #ffffff; }
.btn-success { background: var(--green); color: #ffffff; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 12px 20px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 16px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s;
}
.btn-icon:hover { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }
.notif-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12.5px; font-weight: 700; color: var(--text); }
.form-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }

.input, .select, .textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}
.input:disabled, .select:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }
.select option { background: var(--surface-solid); color: var(--text); }
.textarea { min-height: 112px; resize: vertical; }
.textarea-mono { font-family: var(--font-mono); font-size: 12.5px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-green { background: var(--green-soft); color: var(--green); border: 1px solid var(--accent-border); }
.badge-red { background: var(--red-soft); color: var(--red); border: 1px solid rgba(220, 38, 38, 0.22); }
.badge-amber { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(217, 119, 6, 0.25); }
.badge-accent { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-border); }
.badge-muted { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  transition: all 0.14s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ==================== TABLES ==================== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
.table th:first-child { border-radius: 8px 0 0 8px; }
.table th:last-child { border-radius: 0 8px 8px 0; }
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: var(--surface-hover); }

/* ==================== SWITCH ==================== */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--border-strong); border-radius: 999px; transition: 0.2s;
}
.slider:before {
  content: ""; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px;
  background: #ffffff; border-radius: 50%; transition: 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider:before { transform: translateX(18px); }

/* ==================== TABS ==================== */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 15px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ==================== WHATSAPP LIVE PREVIEW & CONSOLE ==================== */
.wa-preview {
  background: #efeae2;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.wa-preview-header {
  background: #075e54;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wa-preview-body {
  padding: 18px;
  min-height: 250px;
  background-image: radial-gradient(rgba(7, 94, 84, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wa-bubble {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #111b21;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}
.wa-bubble-in { background: #ffffff; align-self: flex-start; border-top-left-radius: 3px; }
.wa-bubble-out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 3px; }
.wa-bubble-time { font-size: 10px; color: #54656f; text-align: right; margin-top: 4px; }

.console-box {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px 16px;
  height: 290px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: #e2e8f0;
}
.log-line { display: flex; gap: 8px; }
.log-time { color: #64748b; flex-shrink: 0; }
.log-info { color: #38bdf8; }
.log-success { color: #34d399; }
.log-warn { color: #fbbf24; }
.log-error { color: #fb7185; }

.qr-frame {
  width: 248px;
  height: 248px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid var(--accent-border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 12px 32px -12px var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.pairing-code-box {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-family: var(--font-mono);
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 2px dashed var(--accent);
  color: var(--accent);
  text-align: center;
}

/* ==================== LIVE CHAT INBOX ==================== */
.inbox-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  height: calc(100vh - 200px);
  min-height: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.inbox-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.inbox-list-items { flex: 1; overflow-y: auto; }
.inbox-item { padding: 13px 15px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.12s; }
.inbox-item:hover, .inbox-item.active { background: var(--accent-soft); }
.inbox-chat { display: flex; flex-direction: column; overflow: hidden; }
.inbox-messages {
  flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px;
  background: #efeae2;
  background-image: radial-gradient(rgba(7, 94, 84, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}
[data-theme="dark"] .inbox-messages { background: #0b141a; }
[data-theme="dark"] .wa-bubble-in { background: #202c33; color: #e9edef; }
[data-theme="dark"] .wa-bubble-out { background: #005c4b; color: #e9edef; }
[data-theme="dark"] .wa-bubble-time { color: rgba(255, 255, 255, 0.65); }
.inbox-composer { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; background: var(--surface); }

/* ==================== DRAWER, MODAL, TOAST ==================== */
.drawer-backdrop, .modal-backdrop {
  position: fixed; inset: 0; background: rgba(15, 31, 26, 0.35); backdrop-filter: blur(4px); z-index: 60;
}
.drawer {
  position: fixed; top: 12px; right: 12px; bottom: 12px; width: 330px; max-width: 92vw;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 18px; z-index: 70;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(15, 31, 26, 0.22); overflow: hidden;
}
.drawer-header, .modal-header {
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-body, .modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.swatch-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatch { height: 34px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: transform 0.14s; }
.swatch:hover { transform: scale(1.06); }
.swatch.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--accent-soft); }
.font-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.modal-backdrop { display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-dialog {
  width: 100%; max-width: 560px; max-height: 90vh;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-radius: 18px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 31, 26, 0.22);
}
.modal-dialog.modal-wide { max-width: 960px; }

/* ==================== CHAT AUTOMATIONS STUDIO & CARDS ==================== */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bot-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.bot-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.bot-card.is-paused { opacity: 0.72; }
.bot-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.bot-kw-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bot-kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}
.bot-reply-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 92px;
  overflow: hidden;
}
.bot-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.bot-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.bot-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.wa-quote-preview {
  background: rgba(5, 150, 105, 0.12);
  border-left: 3px solid #059669;
  border-radius: 6px;
  padding: 5px 8px;
  margin-bottom: 6px;
  font-size: 11.5px;
  color: #334155;
}
.bot-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ==================== MODERN DATATABLE ==================== */
.dt-card { padding: 0; overflow: hidden; }
.dt-toolbar {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dt-toolbar-left, .dt-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.dt-entries {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.dt-entries select {
  width: auto;
  padding: 6px 10px;
  font-size: 12.5px;
}
.dt-sort {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dt-sort:hover { color: var(--accent); }
.dt-sort-icon { font-size: 10px; opacity: 0.55; }
.dt-sort.active .dt-sort-icon { opacity: 1; color: var(--accent); }
.dt-footer {
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface-2);
}
.dt-pager {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dt-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s;
}
.dt-page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.dt-page-btn.active { background: var(--accent-grad); color: #fff; border-color: transparent; }
.dt-page-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.dt-reply-cell {
  max-width: 280px;
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== RBAC PERMISSION MATRIX ==================== */
.perm-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 18px;
  align-items: start;
}
.perm-selector-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  transition: all 0.15s;
}
.perm-selector-item:hover { border-color: var(--accent-border); background: var(--surface-hover); }
.perm-selector-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.perm-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.perm-group-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.perm-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.perm-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}

/* ==================== BRANDING & WHATSAPP SHARE PREVIEW ==================== */
.workspace-icon img, .auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.logo-upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.logo-preview-sq {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}
.logo-preview-sq img { width: 100%; height: 100%; object-fit: cover; }

.wa-share-card {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid rgba(0, 0, 0, 0.07);
}
[data-theme="dark"] .wa-share-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.wa-share-thumb {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #059669, #10b981);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.wa-share-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wa-share-meta { padding: 9px 11px; }
.wa-share-title { font-size: 13px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.wa-share-desc { font-size: 11.5px; opacity: 0.78; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-share-host { font-size: 11px; opacity: 0.6; margin-top: 4px; text-transform: lowercase; }

@media (max-width: 900px) {
  .bot-grid, .perm-layout, .perm-group-grid { grid-template-columns: 1fr; }
}

.toast-container {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent); border-radius: 11px;
  padding: 12px 16px; min-width: 260px; max-width: 380px;
  box-shadow: 0 14px 32px rgba(15, 31, 26, 0.14); font-size: 13px; font-weight: 600;
}
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }

.alert { padding: 11px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.alert-danger { background: var(--red-soft); color: var(--red); border: 1px solid rgba(220, 38, 38, 0.25); }

.code-block {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
}

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split-2, .grid-2 { grid-template-columns: 1fr; }
  .auth-container { grid-template-columns: 1fr; max-width: 460px; }
  .auth-showcase { display: none; }
}
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -280px; transition: left 0.2s; }
  .sidebar.mobile-open { left: 0; }
  .mobile-only { display: inline-flex; }
  .inbox-grid { grid-template-columns: 1fr; height: auto; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px; }
}

/* ==================== MODERN AUTH EXPERIENCE ==================== */
.auth-page-modern {
  min-height: 100vh;
  padding: clamp(14px, 3.4vw, 48px);
  overflow-x: hidden;
  background: #f1f8f4;
  background-image: radial-gradient(circle at 12% 8%, rgba(16,185,129,.13), transparent 35%), radial-gradient(circle at 90% 92%, rgba(16,185,129,.09), transparent 34%), radial-gradient(rgba(5,150,105,.11) .8px, transparent .8px);
  background-size: auto, auto, 24px 24px;
}
.auth-modern-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, .88fr);
  width: min(1120px, 100%);
  min-height: min(760px, calc(100vh - 2 * clamp(14px, 3.4vw, 48px)));
  margin: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dcebe3;
  border-radius: 28px;
  box-shadow: 0 32px 90px -36px rgba(15, 48, 34, .28), 0 4px 14px rgba(15, 48, 34, .05);
}
.auth-modern-story {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  background: linear-gradient(150deg, #fff 0%, #f0fbf5 50%, #dcf5e8 100%);
  border-right: 1px solid #e3eee8;
}
.auth-modern-brand { position: relative; z-index: 2; gap: 13px; }
.auth-modern-brand .auth-logo { width: 48px; height: 48px; border-radius: 15px; }
.auth-brand-title { display:block; font-size: 19px; line-height: 1.25; }
.auth-brand-tag { display:block; margin-top: 3px; font-size: 9px; }
.auth-story-content { position: relative; z-index: 2; width: min(510px, 100%); margin: auto 0; padding: 54px 0 42px; }
.auth-eyebrow, .subscription-kicker { display:inline-flex; align-items:center; gap:8px; color:#07845f; font-size:10px; letter-spacing:.14em; font-weight:800; }
.auth-eyebrow-dot, .subscription-kicker i { width:7px; height:7px; border-radius:50%; background:#12b981; box-shadow:0 0 0 4px rgba(18,185,129,.13); }
.auth-story-title { margin:20px 0 16px; color:#10251d; font-size:clamp(34px, 4vw, 54px); line-height:1.08; font-weight:800; letter-spacing:-.055em; }
.auth-story-title span { color:#07845f; }
.auth-story-copy { max-width:420px; color:#61766b; font-size:14px; line-height:1.8; }
.auth-feature-list { display:grid; gap:10px; margin-top:30px; }
.auth-feature-item { display:grid; grid-template-columns:38px minmax(0,1fr) 24px; align-items:center; gap:12px; padding:12px 14px; border:1px solid rgba(207,228,216,.92); border-radius:14px; background:rgba(255,255,255,.76); box-shadow:0 5px 18px -14px rgba(15,48,34,.22); backdrop-filter:blur(8px); }
.auth-feature-icon { display:grid; place-items:center; width:36px; height:36px; border:1px solid #cdeedf; border-radius:11px; background:#ecfbf3; color:#07845f; font-size:18px; font-weight:800; }
.auth-feature-item b, .auth-feature-item small { display:block; }
.auth-feature-item b { color:#1a3328; font-size:12px; }
.auth-feature-item small { margin-top:2px; color:#72857a; font-size:10px; }
.auth-feature-check { color:#0aa574; font-size:14px; font-weight:800; }
.auth-story-foot { position:relative; z-index:2; display:flex; justify-content:space-between; gap:12px; color:#73857a; font-size:10px; }
.auth-foot-status, .auth-panel-live { display:inline-flex; align-items:center; gap:7px; }
.auth-foot-status i, .auth-panel-live i { width:7px; height:7px; border-radius:50%; background:#10b981; box-shadow:0 0 0 3px rgba(16,185,129,.12); }
.auth-story-orbit { position:absolute; z-index:-1; border:1px solid rgba(10,158,105,.12); border-radius:50%; pointer-events:none; }
.auth-story-orbit-a { width:410px; height:410px; right:-240px; top:-185px; box-shadow:0 0 0 35px rgba(16,185,129,.025),0 0 0 72px rgba(16,185,129,.025); }
.auth-story-orbit-b { width:300px; height:300px; right:-135px; bottom:-170px; box-shadow:0 0 0 25px rgba(16,185,129,.025),0 0 0 52px rgba(16,185,129,.025); }
.auth-modern-panel { display:flex; flex-direction:column; justify-content:center; min-width:0; padding:clamp(28px,5vw,62px); background:#fff; }
.auth-panel-heading { margin-bottom:23px; }
.auth-panel-kicker { margin-bottom:10px; color:#07966a; font-size:9px; letter-spacing:.16em; font-weight:800; }
.auth-panel-heading h2 { color:#14261e; font-size:clamp(24px,2.6vw,31px); font-weight:800; letter-spacing:-.045em; line-height:1.2; }
.auth-panel-heading p { margin-top:8px; color:#75847b; font-size:12px; line-height:1.7; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:5px; padding:5px; margin-bottom:22px; border:1px solid #e6eee9; border-radius:13px; background:#f5f8f6; }
.auth-tab { min-height:39px; border:0; border-radius:9px; background:transparent; color:#74847a; font:700 12px var(--font-family); cursor:pointer; transition:all .16s ease; }
.auth-tab:hover { color:#1c3228; }
.auth-tab.active { background:#fff; color:#087d59; box-shadow:0 2px 7px rgba(20,51,36,.1); }
.auth-form { gap:15px; }
.auth-form .form-group { gap:7px; }
.auth-form .form-group label { color:#283b31; font-size:11px; font-weight:700; }
.auth-input { min-height:46px; padding:11px 14px; border-color:#dfe9e3; border-radius:11px; background:#fff; color:#17281f; font-size:12px; }
.auth-input::placeholder { color:#a5b1a9; }
.auth-input:focus { border-color:#0ba878; box-shadow:0 0 0 4px rgba(16,185,129,.11); }
.auth-label-row { display:flex; align-items:center; justify-content:space-between; }
.auth-secure-note { color:#9aa99f; font-size:9px; }
.auth-login-options { display:flex; justify-content:space-between; align-items:center; margin-top:-1px; }
.auth-login-options .checkbox-label { color:#68786e; font-size:11px; }
.auth-consent { display:flex; align-items:flex-start; gap:9px; color:#68786e; font-size:10px; line-height:1.6; }
.auth-consent input { margin-top:2px; accent-color:#059669; }
.auth-submit { min-height:48px; margin-top:3px; border-radius:11px; font-size:12px; box-shadow:0 9px 22px -10px rgba(5,150,105,.65); }
.auth-submit span { margin-left:6px; font-size:16px; transition:transform .15s; }
.auth-submit:hover span { transform:translateX(3px); }
.auth-terms { color:#a0aaa3; text-align:center; font-size:9px; line-height:1.7; }
.auth-terms a { color:#528c72; font-weight:700; }
.auth-panel-bottom { display:flex; justify-content:space-between; gap:12px; margin-top:35px; padding-top:17px; border-top:1px solid #edf1ee; color:#95a198; font-size:9px; }
.auth-panel-bottom b { color:#52665a; }
.auth-mobile-brand { display:none; }
.auth-inline-success { margin-bottom:14px; padding:10px 12px; border:1px solid #a7f3d0; border-radius:10px; background:#ecfdf5; color:#047857; font-size:12px; }
.password-field { position:relative; display:block; width:100%; }
.password-field > .input { padding-right:46px; }
.password-toggle { position:absolute; top:50%; right:8px; display:grid; place-items:center; width:32px; height:32px; padding:0; transform:translateY(-50%); border:0; border-radius:8px; background:transparent; color:#87968d; cursor:pointer; }
.password-toggle:hover, .password-toggle.is-visible { background:var(--accent-soft); color:var(--accent); }
.password-toggle svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.auth-password-field .password-toggle { right:8px; }
.auth-otp-icon { display:grid; place-items:center; width:58px; height:58px; margin-bottom:24px; border:1px solid #b8efd4; border-radius:19px; background:linear-gradient(145deg,#edfff5,#d8f7e7); color:#07845f; font-size:26px; box-shadow:0 10px 28px -20px #059669; }
.auth-otp-input { min-height:62px; text-align:center; font-family:var(--font-mono); font-size:25px; font-weight:800; letter-spacing:.38em; }
.auth-resend-row { display:flex; justify-content:center; flex-wrap:wrap; gap:6px; margin-top:20px; color:#8a9990; font-size:10px; }
.auth-text-button, .auth-back-button { border:0; background:none; color:#07845f; font:700 10px var(--font-family); cursor:pointer; }
.auth-text-button:disabled { color:#9ba8a0; cursor:default; }
.auth-back-button { display:block; margin:20px auto 0; color:#728277; }

/* ==================== CUSTOMER PLANS & PAYMENT ==================== */
.subscription-page { max-width:1120px; margin:0 auto; }
.subscription-hero { position:relative; display:flex; align-items:center; justify-content:space-between; min-height:188px; padding:34px 42px; overflow:hidden; border:1px solid #cdebdc; border-radius:20px; background:linear-gradient(115deg,#f0fcf5 0%,#e4f8ed 54%,#d3f3e2 100%); }
.subscription-hero-copy { position:relative; z-index:1; max-width:650px; }
.subscription-hero h1 { margin-top:14px; color:#123126; font-size:clamp(26px,3vw,38px); line-height:1.15; letter-spacing:-.045em; }
.subscription-hero p { max-width:560px; margin-top:9px; color:#60786b; font-size:13px; line-height:1.7; }
.subscription-hero-mark { position:relative; display:grid; place-items:center; width:108px; height:108px; margin-right:6%; border:1px solid rgba(5,150,105,.25); border-radius:32px; background:rgba(255,255,255,.52); color:#087d59; font-size:26px; font-weight:800; transform:rotate(-9deg); box-shadow:0 20px 45px -32px #047857; }
.subscription-hero-mark span { position:relative; z-index:1; }
.subscription-hero-mark i { position:absolute; width:14px; height:14px; border-radius:50%; background:#18b981; box-shadow:0 0 0 7px rgba(16,185,129,.12); }
.subscription-hero-mark i:nth-of-type(1) { top:-8px; right:12px; }.subscription-hero-mark i:nth-of-type(2) { bottom:3px; left:-6px; transform:scale(.65); }.subscription-hero-mark i:nth-of-type(3) { bottom:-8px; right:18px; transform:scale(.45); }
.subscription-pending { display:flex; align-items:center; gap:14px; margin-top:18px; padding:15px 18px; border:1px solid #f4d68e; border-radius:14px; background:#fffbeb; }
.subscription-pending-icon { color:#c27a05; font-size:23px; }.subscription-pending div { display:grid; flex:1; gap:3px; }.subscription-pending b { color:#714600; font-size:12px; }.subscription-pending span:not(.badge):not(.subscription-pending-icon) { color:#907447; font-size:11px; }
.subscription-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:34px 0 18px; }
.subscription-section-head h2, .subscription-payment-head h2 { margin-top:7px; color:var(--text); font-size:22px; letter-spacing:-.035em; }
.subscription-section-head p, .subscription-payment-head p { margin-top:4px; color:var(--text-muted); font-size:12px; }
.subscription-secure { display:flex; align-items:center; gap:7px; color:#638174; font-size:10px; font-weight:700; }.subscription-secure span { display:grid; place-items:center; width:21px; height:21px; border-radius:50%; background:#e8f9ef; color:#07966a; }
.subscription-plans { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:stretch; }
.subscription-plan { position:relative; display:flex; flex-direction:column; min-width:0; padding:23px; border:1px solid var(--border); border-radius:17px; background:var(--surface); box-shadow:var(--shadow-card); transition:transform .16s,border-color .16s,box-shadow .16s; }
.subscription-plan:hover { transform:translateY(-3px); border-color:var(--accent-border); box-shadow:var(--shadow-hover); }.subscription-plan.is-featured { border-color:#69d7a8; box-shadow:0 12px 36px -26px rgba(5,150,105,.5); }.subscription-plan.is-selected { outline:2px solid var(--accent); outline-offset:2px; }
.subscription-popular { position:absolute; top:-11px; right:18px; padding:5px 9px; border-radius:999px; background:var(--accent-grad); color:#fff; font-size:8px; font-weight:800; letter-spacing:.1em; }
.subscription-plan-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }.subscription-plan-mark { color:#b5c9bd; font:700 11px var(--font-mono); }.subscription-plan-mark small { color:var(--text-muted); font:700 8px var(--font-sans); letter-spacing:.09em; }.subscription-plan-duration { padding:6px 10px; border:1px solid var(--accent-border); border-radius:999px; background:var(--accent-soft); color:var(--accent); font-size:9px; font-weight:800; white-space:nowrap; }
.subscription-plan h3 { margin-top:17px; color:var(--text); font-size:16px; }.subscription-plan-caption { min-height:30px; margin-top:5px; color:var(--text-muted); font-size:10px; line-height:1.55; }
.subscription-price { margin:21px 0 16px; color:var(--text); font-size:25px; font-weight:800; letter-spacing:-.04em; white-space:nowrap; }.subscription-price span { color:var(--text-muted); font-size:10px; font-weight:600; letter-spacing:0; }
.subscription-plan ul { display:grid; gap:10px; flex:1; margin:0 0 20px; padding:15px 0; border-top:1px solid var(--border); list-style:none; }.subscription-plan li { display:flex; gap:8px; color:var(--text-muted); font-size:10px; }.subscription-plan li i { color:var(--accent); font-style:normal; font-weight:800; }
.subscription-select-btn { justify-content:space-between; }.subscription-footnote { margin:14px 2px 0; color:var(--text-muted); font-size:10px; line-height:1.7; }
.subscription-payment-area { scroll-margin-top:84px; margin-top:27px; padding:23px; border:1px solid var(--border); border-radius:18px; background:var(--surface); box-shadow:var(--shadow-card); }.subscription-payment-head { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:19px; }
.payment-method-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }.payment-method { min-width:0; padding:16px; border:1px solid var(--border); border-radius:14px; background:var(--surface-2); }.payment-method-head { display:flex; align-items:center; gap:10px; min-height:40px; }.payment-method-head b,.payment-method-head small { display:block; }.payment-method-head b { color:var(--text); font-size:12px; }.payment-method-head small { margin-top:3px; color:var(--text-muted); font-size:9px; }.payment-method-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:#e8f9ef; color:#07845f; font-size:18px; font-weight:800; }.payment-bank-icon { background:#eaf0fc; color:#2259a7; font-size:10px; }.payment-dana-icon { background:#e9f2ff; color:#1771d1; }
.payment-qris-image { display:block; width:min(100%,200px); max-height:205px; margin:16px auto 0; object-fit:contain; border-radius:10px; background:#fff; }.payment-qris-empty { display:grid; place-items:center; min-height:100px; margin-top:13px; padding:12px; border:1px dashed var(--border-strong); border-radius:10px; color:var(--text-muted); text-align:center; font-size:10px; line-height:1.6; }
.payment-account { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:17px; color:var(--text); font:700 15px var(--font-mono); letter-spacing:.02em; }.payment-copy { flex:0 0 32px; width:32px; height:32px; }.payment-account-name { display:block; margin-top:7px; color:var(--text-muted); font-size:9px; }.payment-instruction { display:flex; gap:11px; margin-top:15px; padding:13px 15px; border:1px solid var(--accent-border); border-radius:12px; background:var(--accent-soft); }.payment-instruction>span { display:grid; place-items:center; flex:0 0 20px; height:20px; border-radius:50%; background:var(--accent); color:#fff; font-size:12px; font-weight:800; }.payment-instruction b { color:var(--text); font-size:11px; }.payment-instruction p { margin-top:3px; color:var(--text-muted); font-size:10px; line-height:1.6; }
.settings-plan-list { display:grid; gap:9px; }.settings-plan-row { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); }.settings-plan-row>div { display:grid; gap:3px; }.settings-plan-row b { color:var(--text); font-size:11px; }.settings-plan-row span { color:var(--text-muted); font-size:10px; }.settings-plan-row .form-group { min-width:155px; }.settings-plan-row .form-group>span { color:var(--text-muted); font-size:9px; }.settings-plan-row .input { padding:7px 10px; }.payment-admin-qris-row { display:flex; align-items:center; gap:13px; }.payment-admin-qris-preview { display:grid; place-items:center; flex:0 0 100px; width:100px; height:100px; overflow:hidden; border:1px dashed var(--border-strong); border-radius:12px; background:var(--surface-2); color:var(--text-muted); text-align:center; font-size:9px; }.payment-admin-qris-preview img { width:100%; height:100%; object-fit:contain; background:#fff; }
.app-settings-tabs { margin-bottom:2px; }
.customer-subscription-cell { display:grid; justify-items:start; gap:5px; min-width:120px; }.customer-subscription-cell small { color:var(--text-muted); font-size:9px; }.customer-subscription-cell .btn { min-width:94px; }.customer-activation-summary { display:flex; align-items:center; gap:11px; padding:13px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); }.customer-activation-summary>div { display:grid; gap:3px; }.customer-activation-summary b { color:var(--text); font-size:12px; }.customer-activation-summary span:not(.inbox-contact-avatar) { color:var(--text-muted); font-size:10px; }

/* ==================== WHATSAPP CONVERSATION WINDOW ==================== */
.inbox-grid { height:calc(100dvh - 184px); min-height:520px; grid-template-columns:minmax(280px,340px) minmax(0,1fr); background:var(--surface); }
.inbox-list { background:var(--surface); }
.inbox-list-items { overscroll-behavior:contain; }
.inbox-item { position:relative; padding:14px 16px; }.inbox-item.active { background:var(--accent-soft); }.inbox-item.active::before { position:absolute; left:0; top:8px; bottom:8px; width:3px; border-radius:0 4px 4px 0; background:var(--accent); content:""; }
.inbox-chat { min-height:0; background:#efeae2; }
.inbox-chat-header { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:68px; padding:10px 17px; border-bottom:1px solid var(--border); background:var(--surface); box-shadow:0 2px 7px rgba(15,31,26,.035); }
.inbox-chat-contact { display:flex; align-items:center; min-width:0; gap:11px; }.inbox-contact-avatar { display:grid; place-items:center; flex:0 0 39px; width:39px; height:39px; border:1px solid var(--accent-border); border-radius:50%; background:var(--accent-soft); color:var(--accent); font-size:14px; font-weight:800; }.inbox-contact-meta { min-width:0; }.inbox-contact-meta>.font-semibold { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.inbox-contact-meta .muted { overflow:hidden; max-width:min(45vw,520px); text-overflow:ellipsis; white-space:nowrap; }.inbox-back-btn { display:none; }
.inbox-messages { gap:7px; padding:22px clamp(14px,3vw,42px); background-color:#efeae2; background-image:radial-gradient(rgba(7,94,84,.075) .8px,transparent .8px),radial-gradient(rgba(255,255,255,.55) .8px,transparent .8px); background-position:0 0,9px 9px; background-size:18px 18px; overscroll-behavior:contain; }
.wa-bubble { max-width:min(76%,600px); padding:8px 11px 6px; border:1px solid rgba(15,31,26,.035); border-radius:12px; font-size:12px; line-height:1.5; box-shadow:0 1px 1.5px rgba(15,23,42,.10); }.wa-bubble-in { background:#fff; border-top-left-radius:4px; }.wa-bubble-out { background:#d9fdd3; border-top-right-radius:4px; }.wa-bubble-time { min-width:44px; color:#7a8a80; font-size:9px; }.inbox-composer { align-items:center; padding:11px 14px; }.inbox-composer .input { min-height:42px; border-radius:999px; padding-left:17px; background:var(--surface); }.inbox-composer .btn { min-height:40px; min-width:72px; border-radius:999px; }.inbox-chat>.chip { flex:0 0 auto; }
[data-theme="dark"] .inbox-chat { background:#0b141a; }.inbox-chat-header .btn-outline { white-space:nowrap; }

@media (max-width: 1024px) {
  .auth-modern-shell { grid-template-columns:minmax(0,1fr) minmax(370px,.92fr); }
  .auth-modern-story { padding:34px; }.auth-modern-panel { padding:36px; }
  .subscription-plans { gap:11px; }.subscription-plan { padding:19px; }.subscription-price { font-size:22px; }
}
@media (max-width: 820px) {
  .auth-page-modern { display:block; padding:18px; }
  .auth-modern-shell { grid-template-columns:1fr; width:min(560px,100%); min-height:0; margin:0 auto; border-radius:23px; }
  .auth-modern-story { display:none; }
  .auth-modern-panel { padding:clamp(24px,7vw,42px); }
  .auth-mobile-brand { display:flex; align-items:center; gap:7px; margin:0 0 30px; color:#14261e; font-size:14px; font-weight:800; }.auth-mobile-brand span { color:#10b981; font-size:10px; }
  .auth-panel-bottom { margin-top:25px; }
  .subscription-plans { grid-template-columns:1fr; gap:13px; }.subscription-plan { padding:19px 21px; }.subscription-plan ul { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }.subscription-plan li { font-size:9px; }.subscription-price { margin:15px 0 10px; }
  .payment-method-grid { grid-template-columns:1fr; }.payment-method { display:block; }.payment-qris { grid-row:auto; }.payment-qris-image { width:min(100%,190px); }.subscription-hero { min-height:160px; padding:25px 24px; }.subscription-hero-mark { width:76px; height:76px; border-radius:24px; font-size:20px; }
}
@media (max-width: 768px) {
  .inbox-grid { display:block; height:calc(100dvh - 152px); min-height:430px; }
  .inbox-list, .inbox-chat { height:100%; }
  .inbox-chat { display:none; }
  .inbox-grid.mobile-chat-open .inbox-list { display:none; }
  .inbox-grid.mobile-chat-open .inbox-chat { display:flex; }
  .inbox-back-btn { display:inline-flex; flex:0 0 34px; width:34px; height:34px; border-radius:50%; }
  .inbox-chat-header { min-height:62px; padding:8px 10px; }.inbox-contact-avatar { width:35px;height:35px;flex-basis:35px; }.inbox-resolve-btn { padding:6px 8px; font-size:10px; }
  .inbox-messages { padding:16px 12px; }.wa-bubble { max-width:88%; }
  .inbox-composer { padding:8px; }.inbox-composer .btn { min-width:58px; }
  .subscription-section-head { align-items:flex-start; flex-direction:column; }.subscription-plan ul { grid-template-columns:1fr; }.subscription-pending { align-items:flex-start; flex-wrap:wrap; }.subscription-payment-area { padding:17px; }.subscription-payment-head { align-items:flex-start; flex-direction:column; }
  .settings-plan-row { align-items:flex-start; flex-direction:column; }.settings-plan-row .form-group { width:100%; }.payment-admin-qris-row { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 480px) {
  .auth-page-modern { padding:0; background:#fff; }
  .auth-modern-shell { min-height:100dvh; width:100%; border:0; border-radius:0; box-shadow:none; }
  .auth-modern-panel { justify-content:flex-start; padding:25px 22px 20px; }
  .auth-mobile-brand { margin-bottom:38px; }.auth-panel-bottom { margin-top:auto; padding-top:18px; }
  .auth-story-foot { font-size:9px; }
  .subscription-hero-mark { display:none; }.subscription-hero { padding:23px 20px; }.subscription-plan { padding:18px; }
}

/* Configurable checkout methods and invoice-first payment flow */
.payment-method-admin-head { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:12px; }
.payment-method-admin-head h3 { color:var(--text); font-size:14px; letter-spacing:-.02em; }
.payment-method-admin-head p { max-width:620px; margin-top:5px; color:var(--text-muted); font-size:10px; line-height:1.65; }
.payment-method-admin-list { display:grid; gap:12px; }
.payment-method-admin-card { display:grid; gap:13px; padding:16px; border:1px solid var(--border); border-radius:14px; background:var(--surface-2); }
.payment-method-admin-title { display:flex; align-items:center; gap:10px; }
.payment-admin-number { color:var(--text-muted); font:700 10px var(--font-mono); }
.payment-method-active { display:flex; align-items:center; gap:7px; margin-left:auto; color:var(--text-muted); font-size:10px; font-weight:700; }
.payment-method-active input { accent-color:var(--accent); }
.payment-method-remove { color:#b42318; }
.payment-qris-payload-input { min-height:84px; resize:vertical; font:10px/1.6 var(--font-mono); overflow-wrap:anywhere; }
.payment-method-empty { padding:20px; border:1px dashed var(--border-strong); border-radius:12px; color:var(--text-muted); text-align:center; font-size:11px; }
.payment-method-order { max-width:180px; }
.checkout-method-label { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:4px 0 12px; color:var(--text); font-size:11px; }
.checkout-method-label span { color:var(--text-muted); font-size:9px; }
.checkout-method-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.checkout-method-option { position:relative; display:flex; align-items:center; gap:11px; min-width:0; padding:13px; border:1px solid var(--border); border-radius:13px; background:var(--surface); cursor:pointer; transition:border-color .16s,background .16s,transform .16s; }
.checkout-method-option:hover { border-color:var(--accent-border); transform:translateY(-1px); }
.checkout-method-option:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 12%,transparent); }
.checkout-method-option input { position:absolute; width:1px; height:1px; opacity:0; }
.checkout-method-option.is-unavailable { cursor:not-allowed; opacity:.64; }
.checkout-method-icon { display:grid; flex:0 0 37px; place-items:center; width:37px; height:37px; border:1px solid var(--accent-border); border-radius:11px; background:var(--accent-soft); color:var(--accent); font-size:18px; font-weight:800; }
.checkout-method-copy { display:grid; flex:1; min-width:0; gap:3px; }
.checkout-method-copy b { overflow:hidden; color:var(--text); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.checkout-method-copy small { overflow:hidden; color:var(--text-muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.checkout-method-check { display:none; color:var(--accent); font-size:15px; font-weight:900; }
.checkout-method-option:has(input:checked) .checkout-method-check { display:block; }
.checkout-method-option em { position:absolute; right:10px; bottom:5px; color:#9a6700; font-size:8px; font-style:normal; }
.checkout-pay-button { justify-content:space-between; margin-top:13px; }
.checkout-pay-button:disabled { opacity:.48; cursor:not-allowed; }
.checkout-payment-result { margin-top:14px; overflow:hidden; border:1px solid var(--accent-border); border-radius:15px; background:var(--surface-2); }
.checkout-result-status { display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid var(--border); }
.checkout-result-status>span { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-size:13px; font-weight:800; }
.checkout-result-status>div { display:grid; gap:3px; }.checkout-result-status b { color:var(--text); font-size:11px; }.checkout-result-status small { color:var(--text-muted); font-size:9px; }
.checkout-result-content { display:grid; grid-template-columns:minmax(150px,.8fr) minmax(0,1.2fr); align-items:center; gap:18px; padding:18px; }
.checkout-qr-frame { display:grid; justify-items:center; gap:9px; padding:12px; border:1px solid var(--border); border-radius:13px; background:#fff; }
.checkout-qr-frame img { display:block; width:min(100%,230px); aspect-ratio:1; object-fit:contain; }
.checkout-qr-frame span { color:#07845f; font-size:8px; font-weight:800; letter-spacing:.1em; }
.checkout-result-details { display:grid; gap:12px; color:var(--text-muted); font-size:10px; line-height:1.6; }
.checkout-total { display:grid; gap:2px; padding-bottom:11px; border-bottom:1px solid var(--border); }.checkout-total small { color:var(--text-muted); font-size:9px; }.checkout-total b { color:var(--text); font-size:23px; letter-spacing:-.04em; }
.checkout-account { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; border:1px solid var(--border); border-radius:11px; background:var(--surface); }
.checkout-account>div { display:grid; gap:3px; }.checkout-account small,.checkout-account span { color:var(--text-muted); font-size:9px; }.checkout-account b { color:var(--text); font:700 14px var(--font-mono); letter-spacing:.02em; }
.checkout-expiry { color:#9a6700; font-size:9px; font-weight:700; }
.checkout-payment-result .payment-instruction { margin:0 14px 14px; }
@media(max-width:720px) {
  .payment-method-admin-head { align-items:flex-start; flex-direction:column; }
  .checkout-method-options { grid-template-columns:1fr; }
  .checkout-result-content { grid-template-columns:1fr; }
  .checkout-qr-frame img { width:min(100%,260px); }
  .checkout-method-label { align-items:flex-start; flex-direction:column; gap:4px; }
}
.dana-qris-settings { display:grid; gap:16px; margin-top:7px; padding:19px; border:1px solid var(--border); border-radius:16px; background:linear-gradient(145deg,var(--surface),var(--surface-2)); }
.dana-qris-settings-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.dana-qris-settings-head h3 { margin-top:7px; color:var(--text); font-size:15px; letter-spacing:-.025em; }
.dana-qris-settings-head p { max-width:580px; margin-top:5px; color:var(--text-muted); font-size:10px; line-height:1.7; }
.dana-qris-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.dana-qris-fields .form-group { min-width:0; }
.dana-qris-fields label { display:block; margin-bottom:6px; color:var(--text-muted); font-size:10px; font-weight:700; }
.dana-private-key-field { grid-column:1/-1; }
.dana-private-key-field textarea { min-height:94px; resize:vertical; font:10px/1.55 var(--font-mono); overflow-wrap:anywhere; }
@media(max-width:600px) { .dana-qris-fields { grid-template-columns:1fr; }.dana-private-key-field { grid-column:auto; }.dana-qris-settings { padding:15px; }.dana-qris-settings-head { flex-direction:column; } }
