:root {
  /* Light Editorial Palette (botku.id-inspired, elevated) */
  --bg: #fafaf6;
  --canvas: #f2f3ec;
  --surface: #ffffff;
  --surface-alt: #f6f7f2;
  --border: #e3e5dc;
  --border-strong: #cfd3c5;
  --ink: #111612;
  --ink-soft: #3c453e;
  --muted: #646f67;

  /* Signature Electric Bot Lime (no purple, no neon glow) */
  --lime: #c7f364;
  --lime-hover: #b6e74d;
  --lime-soft: rgba(199, 243, 100, 0.28);
  --lime-ink: #10170d;

  /* Semantic */
  --ok: #15803d;
  --ok-bg: rgba(21, 128, 61, 0.1);
  --ok-border: rgba(21, 128, 61, 0.25);
  --warn: #b45309;
  --warn-bg: rgba(180, 83, 9, 0.08);
  --warn-border: rgba(180, 83, 9, 0.25);
  --danger: #dc2626;
  --danger-bg: rgba(220, 38, 38, 0.08);
  --danger-border: rgba(220, 38, 38, 0.26);

  /* WhatsApp Preview Canvas */
  --wa-bg: #efeae2;
  --wa-in: #ffffff;
  --wa-out: #d9fdd3;
  --wa-ink: #111b21;
  --wa-muted: #5d6e75;

  --shadow-sm: 0 1px 2px rgba(17, 22, 18, 0.05);
  --shadow-md: 0 14px 36px -16px rgba(17, 22, 18, 0.14);
  --shadow-lg: 0 28px 56px -22px rgba(24, 34, 12, 0.24);

  --radius: 18px;
  --radius-sm: 12px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme='dark'] {
  --bg: #0b0e0c;
  --canvas: #111613;
  --surface: #151b17;
  --surface-alt: #1b221e;
  --border: rgba(235, 244, 237, 0.1);
  --border-strong: rgba(235, 244, 237, 0.18);
  --ink: #f2f5f2;
  --ink-soft: #cfd8d1;
  --muted: #8c9a90;

  --lime: #c7f364;
  --lime-hover: #d4f881;
  --lime-soft: rgba(199, 243, 100, 0.14);
  --lime-ink: #0c130a;

  --ok: #4ade80;
  --ok-bg: rgba(74, 222, 128, 0.12);
  --ok-border: rgba(74, 222, 128, 0.28);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.1);
  --warn-border: rgba(251, 191, 36, 0.28);
  --danger: #f87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --danger-border: rgba(248, 113, 113, 0.32);

  --wa-bg: #0f1613;
  --wa-in: #1a241f;
  --wa-out: #1c3a29;
  --wa-ink: #eef4ef;
  --wa-muted: #93a79a;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 32px 64px -22px rgba(0, 0, 0, 0.72);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.28s ease, color 0.28s ease;
}

button, a, input, select, summary {
  touch-action: manipulation;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.dash-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==================== STICKY EDITORIAL NAVBAR ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  background: var(--lime);
  transform-origin: left center;
  transform: scaleX(var(--scroll-p, 0));
  transition: transform 0.08s linear;
  pointer-events: none;
  z-index: 2;
}

.nav-inner {
  min-height: 68px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--lime-ink);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-spring);
}
.brand:hover .brand-mark { transform: rotate(-7deg) scale(1.04); }

.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.16s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-theme {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s ease, transform 0.16s ease, background 0.18s ease;
}
.btn-theme:hover { border-color: var(--border-strong); transform: translateY(-1px); }

.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  font-size: 0.87rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.16s ease;
}
.btn-nav-login:hover { background: var(--lime-hover); transform: translateY(-1px); }

/* User Bar (After Login) */
.user-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}
.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-badge,
.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink-soft);
}
.role-badge[data-role='owner'] {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: transparent;
}
.role-badge[data-role='buyer'] {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-border);
}
.verify-badge {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: var(--ok-border);
}
.verify-badge[data-verified='false'] {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: var(--warn-border);
}

.verify-badge.removable { position: relative; padding-right: 10px; transition: padding-right 0.18s ease; }
.verify-badge.removable:hover { padding-right: 26px; }
.verify-badge .unverify-x {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%) scale(0.75);
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: none;
  background: var(--danger);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.verify-badge.removable:hover .unverify-x,
.verify-badge.removable:focus-within .unverify-x {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

/* ==================== HERO SECTION (BOTKU.ID EDITORIAL SPLIT) ==================== */
.hero-section {
  padding: 64px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 415px;
  align-items: center;
  gap: 64px;
}

.hero-kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.45rem, 5.1vw, 4.15rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.038em;
  color: var(--ink);
  max-width: 15ch;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  animation: wordReveal 0.55s var(--ease-spring) forwards;
}

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero-lead {
  margin-top: 22px;
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--muted);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.16s ease, box-shadow 0.2s ease;
}
.btn-hero-primary:hover {
  background: var(--lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(140, 185, 32, 0.55);
}

.btn-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 4px;
}
.btn-hero-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-hero-link svg { transition: transform 0.2s var(--ease-spring); }
.btn-hero-link:hover svg { transform: translateX(4px); }

/* Interactive WhatsApp Preview + Offset Lime Slab (Signature botku.id Craft) */
.hero-visual {
  position: relative;
  padding: 0 12px 18px 0;
}

.hero-slab {
  position: absolute;
  top: 42px;
  right: -12px;
  left: 38px;
  bottom: 0;
  border-radius: 22px;
  background: var(--lime);
  z-index: 0;
}

.wa-preview {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.wa-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.wa-group-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.wa-group-sub {
  font-size: 0.76rem;
  color: var(--muted);
}

.wa-chat-body {
  background: var(--wa-bg);
  min-height: 276px;
  max-height: 276px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}

.wa-bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 13px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--wa-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  animation: bubblePop 0.28s var(--ease-spring) both;
}
@keyframes bubblePop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-bubble.user {
  align-self: flex-end;
  background: var(--wa-out);
  border-bottom-right-radius: 4px;
}
.wa-bubble.bot {
  align-self: flex-start;
  background: var(--wa-in);
  border-bottom-left-radius: 4px;
}
.wa-sender {
  display: block;
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--ok);
  margin-bottom: 2px;
}
.wa-time {
  display: block;
  text-align: right;
  font-size: 0.66rem;
  color: var(--wa-muted);
  margin-top: 4px;
}

.wa-brat-card {
  display: inline-block;
  margin-top: 6px;
  width: 122px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 13px;
  border-radius: 10px;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-align: justify;
  text-align-last: justify;
  text-transform: lowercase;
  filter: blur(0.35px);
}

.wa-sound-card {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.wa-demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.wa-chip {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.wa-chip:hover,
.wa-chip.active {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: transparent;
}

/* ==================== 4-COLUMN EDITORIAL STATS STRIP ==================== */
.stats-strip {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-strip-item {
  padding: 26px 24px 26px 0;
}
.stats-strip-item + .stats-strip-item {
  border-left: 1px solid var(--border);
  padding-left: 28px;
}
.stats-strip-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats-strip-label {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ==================== ALTERNATING EDITORIAL SECTIONS ==================== */
.section-canvas {
  background: var(--canvas);
  padding: 88px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-plain {
  background: var(--bg);
  padding: 88px 0;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.section-sub {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--muted);
  max-width: 48ch;
}

/* Sticky 2-Column Editorial Features (Signature botku.id Pattern) */
.features-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.features-sticky {
  position: sticky;
  top: 96px;
}

.feature-rows {
  list-style: none;
  border-top: 1px solid var(--border);
}

.feature-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--lime-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-spring), background-color 0.22s ease, color 0.22s ease;
}
.feature-row:hover .feature-icon {
  transform: rotate(-8deg);
  background: var(--lime);
  color: var(--lime-ink);
}

.feature-row h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  transition: transform 0.22s var(--ease-spring);
}
.feature-row:hover h3 { transform: translateX(3px); }

.feature-row p {
  margin-top: 5px;
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
}

.feature-cmd-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feature-cmd-tags code {
  font-family: var(--mono);
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}

/* ==================== 3-STEP EDITORIAL TIMELINE ==================== */
.steps-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-item {
  border-top: 1px solid var(--border-strong);
  padding-top: 22px;
}
.step-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 14px;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--lime-soft);
  color: var(--ink);
}
.step-item h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step-item p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ==================== PRICING CARDS (HARGA PAS TANPA KODE UNIK) ==================== */
.plans-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 14px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  color: var(--ink);
  transition: transform 0.2s var(--ease-spring), border-color 0.18s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.plan-card.selected,
.plan-card.featured {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-md);
}
html[data-theme='dark'] .plan-card.selected,
html[data-theme='dark'] .plan-card.featured {
  border-color: var(--lime);
}

.plans-grid.selectable .plan-card { cursor: pointer; font-family: inherit; }

.plan-badge {
  align-self: flex-start;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--lime-ink);
  margin-bottom: 12px;
}

.plan-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}

.plan-price {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.plan-dur {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.plan-desc {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.plan-cta-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}
.plan-card.featured .plan-cta-link {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: transparent;
}
.plan-cta-link:hover {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: transparent;
}

/* ==================== FAQ ACCORDION ==================== */
.faq-list {
  margin-top: 36px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding-bottom: 20px;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 68ch;
}

/* ==================== FULL-WIDTH SIGNATURE LIME CTA BAND ==================== */
.cta-band {
  background: var(--lime);
  color: var(--lime-ink);
  padding: 76px 0;
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.6vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 20ch;
}
.cta-band p {
  margin-top: 10px;
  font-size: 0.98rem;
  color: rgba(16, 23, 13, 0.78);
  max-width: 48ch;
}
.btn-cta-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 13px;
  background: #10170d;
  color: #fafaf6;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.btn-cta-dark:hover { transform: translateY(-2px); opacity: 0.92; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--canvas);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==================== DASHBOARD CARDS & CONTROLS ==================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card h2 {
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.sub-head {
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.muted { font-size: 0.92rem; color: var(--muted); }
.tiny-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dash-stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.dash-stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.dash-stat-val {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-ghost-full,
.btn-outline-sm,
.btn-danger-sm {
  font-family: var(--sans);
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.16s ease;
}

.btn-primary {
  width: 100%;
  padding: 13px 18px;
  border: none;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 0.94rem;
}
.btn-primary:hover:not(:disabled) { background: var(--lime-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-secondary {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 0.92rem;
}
.btn-secondary:hover { background: var(--canvas); border-color: var(--ink); }

.btn-ghost-full {
  width: 100%;
  padding: 11px 18px;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
}
.btn-ghost-full:hover { color: var(--ink); border-color: var(--ink); }

.btn-outline-sm {
  padding: 7px 13px;
  font-size: 0.8rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}
.btn-outline-sm:hover:not(:disabled) { background: var(--surface-alt); border-color: var(--ink); }
.btn-outline-sm:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-danger-sm {
  padding: 7px 13px;
  font-size: 0.8rem;
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger);
}
.btn-danger-sm:hover { filter: brightness(0.95); }

/* Forms */
.form-stack { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input,
.duration-select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.16s ease;
}
.field input:focus,
.duration-select:focus { border-color: var(--ink); }
html[data-theme='dark'] .field input:focus,
html[data-theme='dark'] .duration-select:focus { border-color: var(--lime); }
.duration-select { width: auto; padding: 7px 10px; font-size: 0.8rem; }

/* Alerts & Banners */
.alert-error,
.alert-success,
.alert-warn {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 0.86rem;
  line-height: 1.5;
}
.alert-error { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }
.alert-success { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok); }
.alert-warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn); }

.tos-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  margin-top: 14px;
  font-size: 0.86rem;
}
.tos-box strong { color: var(--warn); display: block; margin-bottom: 4px; }
.tos-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
}
.tos-check input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--ok); }

/* ==================== PAYMENT CHECKOUT & QRIS BOX ==================== */
.payment-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qris-box {
  margin-top: 20px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--canvas);
}

.qris-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.qris-timer {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
}

.qris-body {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.qris-img-wrap {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.qris-img-wrap img { width: 100%; max-width: 200px; height: auto; display: block; }

.qris-amount {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 4px 0;
}

.qris-status {
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.qris-status.paid {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok);
}
.qris-status.waiting {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn);
}

.proof-panel {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
}
.proof-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.proof-input {
  flex: 1 1 200px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
}
.proof-btn {
  width: auto;
  padding: 9px 15px;
  font-size: 0.84rem;
}
.proof-preview-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.proof-preview-wrap img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
}

.inbound-box {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  background: var(--canvas);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.inbound-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.inbound-cmd {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.qris-swap-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* ==================== BOTS, OWNER ROWS & COMMANDS ==================== */
.bots-grid,
.users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.bot-item,
.user-row {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
}
.user-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.user-row-info { display: flex; flex-direction: column; gap: 4px; }
.user-row-email { font-size: 0.9rem; font-weight: 700; }
.badges-row,
.user-row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.bot-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.bot-phone { font-family: var(--mono); font-weight: 700; font-size: 1rem; }
.bot-meta { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.bot-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.bot-status[data-status='connected'] { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-border); }
.bot-status[data-status='pairing'],
.bot-status[data-status='connecting'] { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-border); }
.bot-status[data-status='error'] { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }

.bot-code-bar {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--lime-soft);
  border: 1px solid var(--border-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bot-code-digits {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.bot-item-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ==================== PUSAT FITUR KATALOG INDIVIDUAL ==================== */
.cmd-center-head {
  align-items: center;
  flex-wrap: wrap;
}
.cmd-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.cmd-toolbar {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmd-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.cmd-search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}
.cmd-search-input {
  width: 100%;
  padding: 11px 38px 11px 40px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.cmd-search-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--lime-soft);
}
.cmd-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
html[data-theme='dark'] .cmd-search-input:focus {
  border-color: var(--lime);
}
.cmd-search-clear {
  position: absolute;
  right: 10px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.cmd-search-clear:hover { background: var(--border-strong); }

.cmd-filter-bar { margin-top: 0; }
.cmd-filter-bar .pill-cnt {
  margin-left: 5px;
  font-family: var(--mono);
  font-size: 0.7rem;
  opacity: 0.75;
}

/* Callout Penjelasan Sewa Grup */
.cmd-info-callout {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--canvas);
  border: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmd-info-callout-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--lime-ink);
}
.cmd-info-callout h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
}
.cmd-info-callout p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
.cmd-info-list {
  margin: 2px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.cmd-info-callout code {
  font-family: var(--mono);
  font-size: 0.79rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
}

/* Individual Single-Command Catalog Grid */
.cmd-catalog-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px;
}
.cmd-item {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  transition: transform 0.18s var(--ease-spring), border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.cmd-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.cmd-item.copied {
  border-color: var(--ok-border);
  background: var(--ok-bg);
}

.cmd-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.cmd-item-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.cmd-item-syntax {
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.cmd-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cmd-cat-tag {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--muted);
}
.cmd-tag-new {
  background: var(--lime);
  border-color: transparent;
  color: var(--lime-ink);
  font-weight: 800;
}
.cmd-tag-scope {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn);
}

.cmd-copy-btn {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cmd-copy-btn:hover {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: transparent;
}
.cmd-copy-btn.copied {
  background: var(--ok);
  color: #ffffff;
  border-color: transparent;
}

.cmd-item-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.cmd-item-desc code {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
}

/* Interactive Flags / Options List */
.cmd-flags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 11px;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.cmd-flags-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.cmd-flag-row {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.cmd-flag-row:hover {
  border-color: var(--border-strong);
  background: var(--canvas);
}
.cmd-flag-row.copied {
  border-color: var(--ok-border);
  background: var(--ok-bg);
}
.cmd-flag-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cmd-flag-code {
  font-family: var(--mono);
  font-size: 0.77rem;
  font-weight: 800;
  color: var(--ink);
  word-break: break-word;
}
.cmd-flag-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}
.cmd-flag-copy-hint {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  padding-top: 2px;
}

/* Example Copy Bar */
.cmd-example-btn {
  margin-top: auto;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.cmd-example-btn:hover {
  border-color: var(--ink);
  background: var(--surface-alt);
  color: var(--ink);
}
.cmd-example-btn.copied {
  border-style: solid;
  border-color: var(--ok-border);
  background: var(--ok-bg);
  color: var(--ok);
}
.cmd-example-code {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.cmd-example-label {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.75;
}

.cmd-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.cmd-box {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.cmd-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface);
}
.cmd-box.copied {
  border-color: var(--ok-border);
  background: var(--ok-bg);
}
.cmd-box code {
  font-family: var(--mono);
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink);
}
.cmd-box span { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }

.btn-expand {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-expand:hover { border-color: var(--border-strong); }
.btn-expand[aria-expanded='true'] .expand-chevron { transform: rotate(180deg); }
.expand-chevron { transition: transform 0.2s ease; }

.empty-state {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 20px 14px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
}

/* ==================== BERANDA <-> PANEL SWITCHER (NAVBAR) ==================== */
.view-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 11px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  gap: 3px;
}
.view-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.view-switch-btn:hover { color: var(--ink); }
.view-switch-btn.active {
  background: var(--ink);
  color: var(--canvas);
}
html[data-theme='dark'] .view-switch-btn.active {
  background: var(--lime);
  color: var(--lime-ink);
}

/* ==================== EDITORIAL STUDIO WORKSPACE PANEL ==================== */
.dash-shell {
  width: min(1120px, 100% - 32px);
  margin: 28px auto 72px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 28px 30px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.dash-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--lime);
}

.dash-hero-top-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.dash-status-pill {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--lime-soft);
  border: 1px solid var(--border-strong);
  color: var(--ink);
}
.btn-link-home {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 7px;
  transition: color 0.16s ease, background 0.16s ease;
}
.btn-link-home:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.dash-greeting {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.dash-subtitle {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 52ch;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dash-metric-tile {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-metric-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}
.dash-metric-val {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-bg);
}

/* Workspace Tabs */
.dash-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  border-radius: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.dash-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.87rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.dash-tab:hover {
  color: var(--ink);
  background: var(--surface-alt);
}
.dash-tab.active {
  background: var(--ink);
  color: var(--canvas);
  box-shadow: var(--shadow-sm);
}
html[data-theme='dark'] .dash-tab.active {
  background: var(--lime);
  color: var(--lime-ink);
}
.tab-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 0.72rem;
  font-weight: 800;
}
.dash-tab.active .tab-count-badge {
  background: var(--canvas);
  color: var(--ink);
}
html[data-theme='dark'] .dash-tab.active .tab-count-badge {
  background: #10170d;
  color: var(--lime);
}

.dash-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: paneFade 0.22s ease;
}
@keyframes paneFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-pill {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.card-head-inline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

/* 2-Column Studio Grid (Pairing Left + Bots Right) */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.studio-sticky {
  position: sticky;
  top: 84px;
}

.micro-steps {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.micro-step {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--canvas);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.micro-step span {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
}

.payment-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Command Filter Pills */
.filter-pills {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.filter-pill {
  padding: 6px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill:hover { color: var(--ink); border-color: var(--border-strong); }
.filter-pill.active {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: transparent;
}

/* Owner Volume Gauge & Sub-Tabs */
.storage-card {
  margin: 14px 0 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--canvas);
  border: 1px solid var(--border-strong);
}
.storage-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.storage-track {
  margin-top: 12px;
  height: 8px;
  width: 100%;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}
.storage-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--lime);
  transition: width 0.35s ease;
}

.owner-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.owner-subtab {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.owner-subtab:hover { color: var(--ink); border-color: var(--border-strong); }
.owner-subtab.active {
  background: var(--ink);
  color: var(--canvas);
  border-color: transparent;
}
html[data-theme='dark'] .owner-subtab.active {
  background: var(--lime);
  color: var(--lime-ink);
}

.owner-toolbar {
  margin-bottom: 10px;
}
.owner-search-input {
  width: 100%;
  max-width: 380px;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.86rem;
  outline: none;
}
.owner-search-input:focus { border-color: var(--ink); }
html[data-theme='dark'] .owner-search-input:focus { border-color: var(--lime); }

/* ==================== PUBLIC / PRIVAT SWITCH (PAIRING & BOT CARDS) ==================== */
.vis-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--canvas);
  border: 1px solid var(--border-strong);
}
.vis-field-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vis-field-text strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.vis-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}
.vis-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.vis-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border-strong);
  border: 1px solid var(--border-strong);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.vis-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s var(--ease-spring), background 0.2s ease;
}
.vis-switch input:checked + .vis-slider {
  background: var(--lime);
  border-color: transparent;
}
.vis-switch input:checked + .vis-slider::before {
  transform: translateX(20px);
  background: #10170d;
}
.vis-switch input:focus-visible + .vis-slider {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.vis-switch input:disabled + .vis-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.bot-vis-row {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.bot-vis-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.bot-vis-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.bot-vis-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.vis-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink-soft);
}
.vis-pill.public {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok);
}
.vis-pill.private {
  background: var(--surface-alt);
  border-color: var(--border-strong);
  color: var(--muted);
}
.vis-pill.unlimited {
  background: var(--lime-soft);
  border-color: var(--border-strong);
  color: var(--ink);
}
.vis-pill.owner-limit {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: var(--warn);
}

/* ==================== LIVE TEST BOT DIRECTORY ==================== */
.dir-section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dir-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.dir-grid .empty-state {
  grid-column: 1 / -1;
}

.dir-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease-spring), border-color 0.18s ease, box-shadow 0.18s ease;
}
.dir-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.dir-card.is-private {
  background: var(--surface-alt);
  border-style: dashed;
}
.dir-card.is-private:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

.dir-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.dir-bot-title {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  word-break: break-word;
}

.dir-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--muted);
}
.dir-status-pill.online {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok);
}
.dir-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dir-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.dir-meta-box {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--canvas);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dir-phone-line {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.dir-limit-desc {
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.4;
}
.dir-private-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.btn-chat-bot {
  width: 100%;
  padding: 11px 16px;
  border-radius: 11px;
  border: none;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--sans);
  font-size: 0.87rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}
.btn-chat-bot:hover {
  background: var(--lime-hover);
  transform: translateY(-1px);
}
.btn-chat-bot.offline {
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-chat-bot.offline:hover {
  background: var(--canvas);
}

.btn-private-locked {
  width: 100%;
  padding: 11px 16px;
  border-radius: 11px;
  border: 1px dashed var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: not-allowed;
}

/* ==================== KINETIC EDITORIAL ANIMATIONS ==================== */
.hero-fade {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.65s var(--ease-spring) var(--d, 0ms) forwards;
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Floating WhatsApp Demo + Subtle 3D Pointer Tilt */
.hero-visual {
  perspective: 1100px;
}
.hero-slab {
  transition: transform 0.35s var(--ease-spring);
  animation: slabDrift 7s ease-in-out infinite alternate;
}
.wa-preview {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease;
  animation: waFloat 6.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes waFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
@keyframes slabDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(4px, 5px) rotate(0.8deg); }
}

/* Animated Typing Dots inside WA Preview */
.wa-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 2px 2px;
}
.wa-typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wa-muted);
  display: block;
  animation: dotBounce 1.1s ease-in-out infinite;
}
.wa-typing-dots i:nth-child(2) { animation-delay: 0.16s; }
.wa-typing-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes dotBounce {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.45; }
  35% { transform: translateY(-4px); opacity: 1; }
}

/* Active Demo Chip Progress Bar */
.wa-chip {
  position: relative;
  overflow: hidden;
}
.wa-chip.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(16, 23, 13, 0.35);
  transform-origin: left center;
  animation: chipTimer 5.6s linear forwards;
}
@keyframes chipTimer {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Primary Electric-Lime CTA Sheen Sweep + Spring Press */
.btn-hero-primary,
.btn-primary,
.btn-chat-bot,
.btn-cta-dark,
.btn-nav-login {
  position: relative;
  overflow: hidden;
}
.btn-hero-primary::after,
.btn-primary::after,
.btn-chat-bot::after,
.btn-cta-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 65%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.42) 50%, transparent 80%);
  transform: skewX(-18deg);
  transition: left 0.65s var(--ease-spring);
  pointer-events: none;
}
.btn-hero-primary:hover::after,
.btn-primary:hover:not(:disabled)::after,
.btn-chat-bot:hover::after,
.btn-cta-dark:hover::after {
  left: 145%;
}
.btn-hero-primary:active,
.btn-primary:active:not(:disabled),
.btn-secondary:active,
.btn-ghost-full:active,
.btn-outline-sm:active:not(:disabled),
.btn-danger-sm:active,
.btn-chat-bot:active,
.btn-cta-dark:active,
.cmd-box:active,
.filter-pill:active,
.dash-tab:active {
  transform: scale(0.97);
}

/* Live Status Pulse Ring (24/7 Heartbeat) */
.live-dot,
.dir-status-pill.online .dir-status-dot {
  position: relative;
}
.live-dot::after,
.dir-status-pill.online .dir-status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  animation: liveRing 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.live-dot::after { border-color: var(--ok); }
@keyframes liveRing {
  0% { transform: scale(0.8); opacity: 0.75; }
  100% { transform: scale(2.1); opacity: 0; }
}

/* Brand Emblem & Theme Toggle Micro-Animations */
.brand-mark {
  box-shadow: 0 4px 12px -4px rgba(140, 185, 32, 0.45);
}
.btn-theme.spinning svg {
  animation: themePop 0.42s var(--ease-spring);
}
@keyframes themePop {
  0% { transform: rotate(-75deg) scale(0.65); opacity: 0.4; }
  100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* Scroll-Triggered Staggered Reveal (Progressive Enhancement) */
html.js-anim [data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.62s var(--ease-spring),
    transform 0.62s var(--ease-spring);
  transition-delay: calc(var(--stagger, 0) * 65ms);
  will-change: opacity, transform;
}
html.js-anim [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Step & Metric Cards Tactile Lift */
.step-item {
  transition: transform 0.28s var(--ease-spring), border-color 0.2s ease;
}
.step-item:hover {
  transform: translateY(-4px);
  border-top-color: var(--ink);
}
html[data-theme='dark'] .step-item:hover {
  border-top-color: var(--lime);
}
.dash-metric-tile {
  transition: transform 0.25s var(--ease-spring), border-color 0.2s ease;
}
.dash-metric-tile:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

/* FAQ Smooth Content Reveal */
.faq-item[open] p {
  animation: faqOpen 0.32s var(--ease-spring) both;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard Hero & Card Entrance */
#view-dashboard:not([hidden]) .dash-hero {
  animation: heroFadeUp 0.48s var(--ease-spring) both;
}
.bot-item {
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease, box-shadow 0.2s ease;
}
.bot-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* ==================== MOBILE HAMBURGER DRAWER ==================== */
.btn-mobile-menu {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  place-items: center;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.btn-mobile-menu:hover { border-color: var(--border-strong); }
.btn-mobile-menu:active { transform: scale(0.94); }

.mobile-drawer {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: drawerSlide 0.26s var(--ease-spring) both;
}
@keyframes drawerSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-drawer-inner {
  padding: 12px 18px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}
.mobile-drawer-link:active {
  transform: scale(0.97);
  background: var(--lime-soft);
  border-color: var(--border-strong);
}

/* ==================== NATIVE MOBILE BOTTOM DOCK ==================== */
.mobile-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 6px 10px max(8px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.16);
}
.mobile-dock-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  gap: 4px;
  max-width: 520px;
  margin: 0 auto;
}
.dock-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.14s var(--ease-spring);
}
.dock-btn:active { transform: scale(0.92); }
.dock-btn.active {
  background: var(--lime-soft);
  color: var(--ink);
}
html[data-theme='dark'] .dock-btn.active {
  background: var(--lime);
  color: var(--lime-ink);
}
.dock-btn.dock-accent {
  background: var(--lime);
  color: var(--lime-ink);
}

/* ==================== FLOATING ANIMATED TOAST ==================== */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(16px);
  z-index: 90;
  max-width: min(92vw, 420px);
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.3s var(--ease-spring);
}
html[data-theme='dark'] .app-toast {
  background: var(--lime);
  color: var(--lime-ink);
}
.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== QR LOGIN, PAIRING QR & PANEL PENGATURAN BOT / AI ==================== */
.btn-hero-qr {
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s var(--ease-spring), border-color 0.16s ease, background 0.16s ease;
}
.btn-hero-qr:hover {
  border-color: var(--ink);
  background: var(--surface-alt);
  transform: translateY(-1px);
}
html[data-theme='dark'] .btn-hero-qr:hover {
  border-color: var(--lime);
}
.btn-hero-qr:active { transform: scale(0.97); }
.btn-hero-qr[hidden] { display: none !important; }

.micro-step em { font-style: normal; }

/* Pairing Mode Switch (Kode 8 Digit vs Scan QR WA) */
.pair-mode-switch {
  margin: 12px 0 10px;
  padding: 4px;
  border-radius: 12px;
  background: var(--canvas);
  border: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.pair-mode-btn {
  padding: 9px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.pair-mode-btn:hover { color: var(--ink); }
.pair-mode-btn.active {
  background: var(--ink);
  color: var(--canvas);
  box-shadow: var(--shadow-sm);
}
html[data-theme='dark'] .pair-mode-btn.active {
  background: var(--lime);
  color: var(--lime-ink);
}

/* Live Scannable QR Card inside Bot Item */
.bot-status[data-status='qr'] {
  background: var(--lime-soft);
  color: var(--ink);
  border-color: var(--border-strong);
}
.bot-qr-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bot-qr-frame {
  width: 176px;
  height: 176px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 19, 0.12);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.bot-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}
.bot-qr-info {
  flex: 1 1 190px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bot-qr-info strong {
  font-size: 0.9rem;
  color: var(--ink);
}
.bot-qr-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Bot Active Settings Summary Strip */
.bot-settings-bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.bot-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--canvas);
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.bot-mini-pill.slow-on {
  background: var(--lime-soft);
  border-color: var(--border-strong);
  color: var(--ink);
}
.bot-foot-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.btn-settings-sm {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--lime-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.14s ease;
}
.btn-settings-sm:hover {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: transparent;
}
.btn-settings-sm:active { transform: scale(0.96); }

/* Editorial Responsive Modals (Desktop Centered / HP Bottom Sheet) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 20px;
  background: rgba(12, 15, 13, 0.56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalBgFade 0.2s ease both;
}
.modal-backdrop[hidden] { display: none !important; }
@keyframes modalBgFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-dialog {
  width: 100%;
  max-height: min(90vh, 780px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.26s var(--ease-spring) both;
}
.modal-dialog-sm { max-width: 460px; }
.modal-dialog-lg { max-width: 600px; }
@keyframes modalPop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.modal-head h3 {
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.modal-close:hover {
  background: var(--canvas);
  border-color: var(--border-strong);
}
.modal-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.modal-body {
  padding: 18px 20px 20px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}
.modal-foot .btn-primary {
  width: auto;
  min-width: 180px;
}

/* QR Website Login Modal Content */
.qr-login-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.qr-login-frame {
  width: 220px;
  height: 220px;
  margin: 2px auto;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
}
.qr-login-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.qr-login-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Bot & AI Settings Panel */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.settings-section {
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--canvas);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.settings-section-head h4 {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.setting-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.setting-info strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.setting-info span {
  font-size: 0.77rem;
  color: var(--muted);
  line-height: 1.45;
}
.setting-slider-row {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.setting-slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.setting-slider-top label {
  font-size: 0.85rem;
  color: var(--ink);
}
.setting-val-pill {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--lime);
  color: var(--lime-ink);
}
.setting-range {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer;
}
html[data-theme='dark'] .setting-range {
  accent-color: var(--lime);
}
.setting-select,
.setting-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.16s ease;
}
.setting-textarea {
  resize: vertical;
  min-height: 78px;
  line-height: 1.5;
}
.setting-select:focus,
.setting-textarea:focus {
  border-color: var(--ink);
}
html[data-theme='dark'] .setting-select:focus,
html[data-theme='dark'] .setting-textarea:focus {
  border-color: var(--lime);
}

/* ==================== RESPONSIVE (ULTRA-WIDE, DESKTOP, TABLET & HP) ==================== */
.role-badge,
.verify-badge,
.btn-outline-sm,
.btn-danger-sm {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Saat login & melihat Beranda, jaga navbar tetap lapang & 1 baris rapi di semua laptop/desktop */
body.is-logged-in .nav-links {
  gap: 18px;
}
body.is-logged-in .nav-links a {
  font-size: 0.85rem;
}
body.is-logged-in #user-verified-badge {
  display: none !important;
}
body.is-logged-in .user-name {
  max-width: 115px;
}

@media (min-width: 1440px) {
  .container { max-width: 1240px; }
  .dash-shell { width: min(1200px, 100% - 48px); }
  .hero-grid { gap: 80px; }
  .dir-grid { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
}

@media (max-width: 1320px) {
  body.is-logged-in .user-name { display: none; }
}

@media (max-width: 1120px) {
  .user-name { display: none; }
  .nav-links { gap: 18px; }
  .hero-grid { gap: 40px; }
  body.is-logged-in .nav-links { display: none; }
  body.is-logged-in .btn-mobile-menu.show-mobile { display: grid; }
}

@media (max-width: 1024px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-sticky { position: static; }
  .dash-shell { width: min(100% - 32px, 920px); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; width: 100%; margin: 0 auto; }
  .features-split { grid-template-columns: 1fr; gap: 32px; }
  .features-sticky { position: static; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .stats-strip-item:nth-child(3) { border-left: none; padding-left: 0; border-top: 1px solid var(--border); }
  .stats-strip-item:nth-child(4) { border-top: 1px solid var(--border); }
  .steps-grid { grid-template-columns: 1fr; gap: 22px; }
  .dash-hero { grid-template-columns: 1fr; padding: 22px; }
}

@media (max-width: 900px) {
  #user-verified-badge { display: none !important; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.85rem; }
  .view-switch-btn { padding: 6px 10px; font-size: 0.78rem; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .btn-mobile-menu.show-mobile { display: grid; }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .container { padding: 0 16px; }
  .nav-inner { min-height: 60px; padding: 8px 0; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand-name { font-size: 0.96rem; letter-spacing: -0.02em; }
  .nav-links { display: none; }
  .view-switch { display: none !important; }
  .btn-mobile-menu.show-mobile { display: grid; }
  .mobile-dock { display: block; }
  .app-toast { bottom: calc(78px + env(safe-area-inset-bottom)); }

  /* Compact top user bar on HP (badges already prominently shown in Dashboard Hero!) */
  .user-name,
  #user-role-badge,
  #user-verified-badge {
    display: none !important;
  }
  .btn-theme,
  .btn-mobile-menu { width: 36px; height: 36px; }
  .btn-nav-login { height: 36px; padding: 0 13px; font-size: 0.82rem; }
  .nav-right { gap: 7px; }

  /* Prevent iOS Safari zoom on input focus */
  input, select, textarea, .owner-search-input {
    font-size: 16px !important;
  }

  /* Hero HP Craft */
  .hero-section { padding: 28px 0 36px; }
  .hero-kicker { font-size: 0.72rem; margin-bottom: 10px; }
  .hero-title { font-size: clamp(2rem, 8.8vw, 2.75rem); max-width: 100%; }
  .hero-lead { font-size: 0.95rem; margin-top: 14px; }
  .hero-actions { margin-top: 22px; flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-hero-primary,
  .btn-hero-qr { width: 100%; height: 48px; }
  .btn-hero-link { justify-content: center; padding: 8px; }
  .hero-visual { padding: 0 6px 14px 0; }
  .hero-slab { top: 28px; right: -4px; left: 18px; border-radius: 18px; }
  .wa-chat-body { min-height: 236px; max-height: 256px; padding: 13px; }
  .wa-demo-bar { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .wa-demo-bar::-webkit-scrollbar { display: none; }

  /* Stats Strip HP */
  .stats-strip { margin-top: 34px; }
  .stats-strip-item { padding: 18px 12px 18px 0; }
  .stats-strip-item:nth-child(2),
  .stats-strip-item:nth-child(4) { padding-left: 16px; }
  .stats-strip-num { font-size: 1.7rem; }
  .stats-strip-label { font-size: 0.76rem; }

  /* Sections HP */
  .section-canvas, .section-plain { padding: 52px 0; }
  .section-title { font-size: clamp(1.55rem, 6.8vw, 2.05rem); }
  .section-sub { font-size: 0.92rem; }
  .feature-row { grid-template-columns: 38px minmax(0, 1fr); gap: 13px; padding: 18px 0; }
  .feature-icon { width: 38px; height: 38px; }
  .cta-band { padding: 52px 0; }
  .btn-cta-dark { width: 100%; justify-content: center; }

  /* Dashboard HP Native App Layout */
  .dash-shell { width: calc(100% - 24px); margin: 14px auto 28px; gap: 14px; }
  .dash-hero { padding: 18px 16px; border-radius: 18px; gap: 16px; }
  .dash-greeting { font-size: 1.4rem; }
  .dash-subtitle { font-size: 0.85rem; }
  .dash-metrics { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .dash-metric-tile { padding: 12px 10px; border-radius: 12px; gap: 3px; }
  .dash-metric-label { font-size: 0.66rem; gap: 4px; }
  .dash-metric-val { font-size: 1.28rem; }

  /* Single-row horizontal scroll for tabs & filter pills on HP */
  .dash-tabs,
  .filter-pills,
  .owner-subtabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .dash-tabs::-webkit-scrollbar,
  .filter-pills::-webkit-scrollbar,
  .owner-subtabs::-webkit-scrollbar { display: none; }
  .dash-tab,
  .filter-pill,
  .owner-subtab {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .dash-tab { padding: 8px 11px; font-size: 0.78rem; gap: 6px; }

  .card { padding: 18px 15px; border-radius: 16px; }
  .card h2 { font-size: 1.14rem; }
  .micro-steps { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .micro-step { padding: 7px 6px; font-size: 0.7rem; gap: 5px; flex-direction: column; text-align: center; }
  .payment-actions-row { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .qris-box { padding: 16px 14px; }
  .qris-body { grid-template-columns: 1fr; gap: 16px; }
  .qris-img-wrap { max-width: 210px; margin: 0 auto; }
  .qris-amount { font-size: 1.65rem; }
  .dir-grid { grid-template-columns: 1fr; }
  .cmd-grid { grid-template-columns: 1fr; }
  .cmd-catalog-grid { grid-template-columns: 1fr; gap: 10px; }
  .cmd-item { padding: 13px 13px; }
  .cmd-info-callout { padding: 14px; }
  .cmd-search-input { font-size: 0.86rem; padding: 10px 36px 10px 36px; }
  .plans-grid { grid-template-columns: 1fr; }
  .bot-vis-row { padding: 10px; gap: 10px; }
  .bot-vis-control { width: 100%; justify-content: space-between; padding-top: 6px; border-top: 1px dashed var(--border); }
  .bot-code-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .bot-code-digits { font-size: 1.22rem; }
  .bot-qr-box { flex-direction: column; align-items: center; text-align: center; }
  .bot-foot-actions { width: 100%; }
  .modal-backdrop { padding: 12px 0 0; align-items: flex-end; }
  .modal-dialog {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modal-head { padding: 16px 16px 12px; }
  .modal-body { padding: 14px 16px 18px; }
  .modal-foot { flex-direction: column-reverse; align-items: stretch; }
  .modal-foot .btn-primary { width: 100%; min-width: 0; }
  .qr-login-frame { width: 196px; height: 196px; }
  .user-row { padding: 13px 12px; }
  .user-row-actions { width: 100%; }
  .inbound-cmd { font-size: 1.25rem; }
  .site-footer { padding: 26px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 0.8rem; }
}

@media (max-width: 390px) {
  .brand-name { font-size: 0.88rem; }
  .dash-metrics { grid-template-columns: repeat(3, 1fr); }
  .dash-metric-val { font-size: 1.15rem; }
  .mobile-drawer-inner { grid-template-columns: 1fr; }
}

/* Touchscreens: make unverify × button accessible without hover */
@media (hover: none) {
  .verify-badge.removable { padding-right: 26px; }
  .verify-badge.removable .unverify-x {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) scale(1);
  }
}

/* Accessibility: respect user motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js-anim [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ==================== LOGO BARU, NAV KONTAK & FEEDBACK, ANIMASI KAYA & SEWA BOT ==================== */
.brand-mark.brand-mark-img {
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1.5px solid rgba(181, 244, 58, 0.55);
  box-shadow: 0 2px 10px rgba(181, 244, 58, 0.22);
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-link-btn {
  background: var(--lime-soft);
  color: var(--ink);
  border: 1px solid rgba(132, 204, 22, 0.45);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, box-shadow 0.2s ease;
}
.nav-link-btn:hover {
  background: var(--lime);
  color: var(--lime-ink);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(181, 244, 58, 0.32);
}

/* Enhanced Animations: Cara Kerja (.step-item) */
#cara-kerja .step-item {
  position: relative;
  border-radius: 18px;
  padding: 20px;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.28s ease, background 0.28s ease;
}
#cara-kerja .step-item:hover {
  transform: translateY(-5px);
  border-color: rgba(132, 204, 22, 0.65);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}
#cara-kerja .step-num {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, color 0.28s ease;
}
#cara-kerja .step-item:hover .step-num {
  transform: scale(1.06);
  background: var(--lime);
  color: var(--lime-ink);
}

/* Enhanced Animations: Tes Bot (.dir-card) */
#daftar-bot .dir-card {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.32s ease, border-color 0.25s ease;
}
#daftar-bot .dir-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(132, 204, 22, 0.65);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* Enhanced Animations: Harga (.plan-card) */
@keyframes planBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes sewaFlowPulse {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
#harga .plan-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}
#harga .plan-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
  border-color: rgba(132, 204, 22, 0.7);
}
#harga .plan-card.popular .plan-badge,
#harga .plan-card .plan-badge {
  animation: planBadgeFloat 2.8s ease-in-out infinite;
}

/* Penjelasan Sewa Bot Section */
.sewa-section {
  position: relative;
  overflow: hidden;
}
.sewa-head {
  max-width: 720px;
  margin-bottom: 28px;
}
.sewa-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  border: 1px solid rgba(132, 204, 22, 0.4);
}
.sewa-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.sewa-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}
.sewa-card:hover {
  transform: translateY(-6px);
  border-color: rgba(132, 204, 22, 0.7);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}
.sewa-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--lime-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}
.sewa-card:hover .sewa-card-icon {
  transform: scale(1.12) rotate(5deg);
}
.sewa-card-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}
.sewa-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}
.sewa-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.sewa-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.sewa-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
}
.sewa-checklist li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 0.72rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

.sewa-flow-track {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: center;
  gap: 10px;
}
.sewa-flow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.sewa-flow-step:hover {
  transform: translateY(-4px);
  border-color: rgba(132, 204, 22, 0.65);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}
.sewa-flow-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 800;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 0 0 5px rgba(181, 244, 58, 0.2);
}
.sewa-flow-step h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}
.sewa-flow-step p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.sewa-flow-connector {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(181, 244, 58, 0.2), var(--lime), rgba(181, 244, 58, 0.2));
  background-size: 200% 100%;
  animation: sewaFlowPulse 2.4s linear infinite;
}

/* Pantau Nomor WA Limit Hari Ini */
.limited-users-panel {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 8px;
}
.limited-users-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.limited-users-list {
  display: grid;
  gap: 7px;
  max-height: 210px;
  overflow-y: auto;
}
.limited-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.83rem;
}
.limited-user-row.is-limited {
  border-color: rgba(239, 68, 68, 0.45);
}
.limited-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.limited-user-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.limited-user-badge.limited {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
}
.limited-user-badge.active {
  background: var(--lime-soft);
  color: var(--ink);
}

/* Modal Terpisah: Kontak & Feedback */
.cf-modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cf-modal-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(181, 244, 58, 0.6);
}
.cf-modal-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
}
.cf-contact-card,
.cf-feedback-form {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.cf-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--lime-soft);
  color: var(--ink);
  margin-bottom: 8px;
}
.cf-contact-card h4,
.cf-feedback-form h4 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}
.cf-phone-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  margin: 12px 0;
}
.cf-phone-number {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.96rem;
}
.cf-wa-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  margin-bottom: 14px;
}
.cf-info-list {
  display: grid;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--muted);
}
.cf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fb-stars {
  display: inline-flex;
  gap: 4px;
  padding: 6px 0;
}
.fb-star {
  border: none;
  background: transparent;
  font-size: 1.35rem;
  color: var(--border-strong);
  cursor: pointer;
  padding: 0 2px;
  transition: transform 0.15s ease, color 0.15s ease;
}
.fb-star.active {
  color: #f59e0b;
}
.fb-star:hover {
  transform: scale(1.2);
}

@media (max-width: 820px) {
  .sewa-compare-grid,
  .cf-modal-grid,
  .cf-form-row {
    grid-template-columns: 1fr;
  }
  .sewa-flow-track {
    grid-template-columns: 1fr;
  }
  .sewa-flow-connector {
    width: 4px;
    height: 22px;
    margin: 0 auto;
  }
}


/* ==================== FIX KONTAK & FEEDBACK MODAL + TEXTAREA DARK/LIGHT ==================== */
.modal-dialog.contact-fb-modal {
  max-width: 840px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.contact-fb-modal .modal-body-scroll.cf-modal-grid {
  padding: 20px 22px 24px;
  max-height: 78vh;
  overflow-y: auto;
}
.cf-feedback-form textarea,
#fb-message {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cf-feedback-form textarea::placeholder,
#fb-message::placeholder {
  color: var(--muted);
}
.cf-feedback-form textarea:focus,
#fb-message:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(181, 244, 58, 0.2);
}

/* ==================== ANIMASI INSTAN: HP SCAN QRIS -> BAYAR -> VIP AKTIF ==================== */
.qris-vip-showcase {
  margin: 24px 0 32px;
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.qris-stage-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.qris-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--canvas);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.qris-stage-pill .qsp-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
}
.qris-stage-pill.active {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: var(--lime);
  box-shadow: 0 6px 18px rgba(181, 244, 58, 0.3);
}
.qris-stage-pill.active .qsp-num {
  background: rgba(16, 23, 13, 0.16);
  color: var(--lime-ink);
}

.qris-stage-grid {
  display: grid;
  grid-template-columns: 230px 100px 1fr;
  align-items: center;
  gap: 16px;
}

/* Mini Phone Mock */
.qris-phone-mock {
  width: 220px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 28px;
  background: #111510;
  border: 2px solid rgba(181, 244, 58, 0.45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  position: relative;
}
.qpm-notch {
  width: 66px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  margin: 2px auto 10px;
}
.qpm-screen {
  position: relative;
  height: 215px;
  border-radius: 18px;
  background: linear-gradient(160deg, #171d14 0%, #0d110c 100%);
  overflow: hidden;
  color: #f3f7ee;
}
.qpm-view {
  position: absolute;
  inset: 0;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  opacity: 0;
  transform: scale(0.92) translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.qris-vip-showcase[data-stage="1"] .qpm-view-1,
.qris-vip-showcase[data-stage="2"] .qpm-view-2,
.qris-vip-showcase[data-stage="3"] .qpm-view-3 {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.qpm-top-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(181, 244, 58, 0.16);
  color: #b5f43a;
}
.qpm-qr-frame {
  position: relative;
  width: 108px;
  height: 108px;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  color: #10170d;
  box-shadow: 0 0 0 3px rgba(181, 244, 58, 0.35);
}
.qpm-qr-svg {
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes qrisLaserSweep {
  0%, 100% { top: 8px; opacity: 0.9; }
  50% { top: calc(100% - 11px); opacity: 1; }
}
.qpm-scan-laser {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 3px;
  border-radius: 999px;
  background: #b5f43a;
  box-shadow: 0 0 12px 3px rgba(181, 244, 58, 0.85);
  animation: qrisLaserSweep 1.6s ease-in-out infinite;
}
.qpm-amount-pill,
.qpm-receipt-pill {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e9f5d8;
}
.qpm-amount-pill small {
  color: #b5f43a;
}
.qpm-check-burst {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #22c55e;
  color: #07140b;
  font-size: 1.8rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.22);
}
.qpm-vip-crown {
  font-size: 2.3rem;
  filter: drop-shadow(0 0 12px rgba(181, 244, 58, 0.65));
}
.qpm-view strong {
  font-size: 0.88rem;
}
.qpm-view span {
  font-size: 0.74rem;
  color: #9ca896;
}
.qpm-vip-pill {
  background: #b5f43a;
  color: #10170d;
}

/* Sync Bridge */
.qris-sync-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.qris-sync-line {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(181, 244, 58, 0.15), var(--lime), rgba(181, 244, 58, 0.15));
  background-size: 200% 100%;
  animation: sewaFlowPulse 1.6s linear infinite;
}
.qris-sync-bolt {
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--ink);
  border: 1px solid rgba(132, 204, 22, 0.45);
  white-space: nowrap;
}

/* Website Auto-Unlock VIP Mock */
.qris-web-mock {
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: var(--canvas);
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.qris-vip-showcase[data-stage="3"] .qris-web-mock {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(181, 244, 58, 0.22), 0 16px 32px rgba(0, 0, 0, 0.12);
}
.qwm-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.qwm-dots {
  display: inline-flex;
  gap: 5px;
}
.qwm-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  display: block;
}
.qwm-url {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}
.qwm-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}
.qwm-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.qwm-status-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}
.qwm-badge {
  display: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.qris-vip-showcase[data-stage="1"] .qwm-badge-wait {
  display: inline-flex;
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
}
.qris-vip-showcase[data-stage="2"] .qwm-badge-verify {
  display: inline-flex;
  background: rgba(56, 189, 248, 0.16);
  color: #38bdf8;
}
.qris-vip-showcase[data-stage="3"] .qwm-badge-vip {
  display: inline-flex;
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: 0 4px 14px rgba(181, 244, 58, 0.35);
}
.qwm-progress-track {
  height: 7px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.qwm-progress-fill {
  height: 100%;
  width: 30%;
  border-radius: 999px;
  background: var(--lime);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.qris-vip-showcase[data-stage="2"] .qwm-progress-fill { width: 72%; }
.qris-vip-showcase[data-stage="3"] .qwm-progress-fill { width: 100%; }

.qwm-feature-rows {
  display: grid;
  gap: 8px;
}
.qwm-frow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}
.qwm-unlock-val {
  color: var(--muted);
  transition: color 0.3s ease;
}
.qris-vip-showcase[data-stage="3"] .qwm-unlock-val {
  color: #16a34a;
}
html[data-theme='dark'] .qris-vip-showcase[data-stage="3"] .qwm-unlock-val {
  color: var(--lime);
}

/* ==================== OWNER KOTAK SARAN CARDS ==================== */
.fb-admin-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.fb-admin-card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px 16px;
  display: grid;
  gap: 8px;
}
.fb-admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.fb-admin-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}
.fb-cat-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--lime-soft);
  color: var(--ink);
}
.fb-stars-readout {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 0.9rem;
}
.fb-admin-msg {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.fb-admin-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .qris-stage-grid {
    grid-template-columns: 1fr;
  }
  .qris-sync-bridge {
    flex-direction: row;
    justify-content: center;
  }
  .qris-sync-line {
    width: 48px;
  }
}


/* ==================== MOBILE RESPONSIVE POLISH (HP 360px - 640px) ==================== */
.mobile-drawer-btn {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  font-family: var(--sans);
  cursor: pointer;
}

.sewa-checklist li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.sewa-checklist li > div {
  min-width: 0;
  word-wrap: break-word;
}

@media (max-width: 640px) {
  .qris-vip-showcase {
    padding: 14px 12px;
    margin: 18px 0 24px;
    border-radius: 18px;
  }
  .qris-stage-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
  }
  .qris-stage-pill {
    justify-content: center;
    padding: 7px 5px;
    font-size: 0.7rem;
    gap: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .qris-stage-pill .qsp-num {
    width: 16px;
    height: 16px;
    font-size: 0.66rem;
    flex-shrink: 0;
  }
  .qris-stage-grid {
    gap: 10px;
  }
  .qris-phone-mock {
    width: 174px;
    padding: 7px;
    border-radius: 22px;
  }
  .qpm-notch {
    width: 48px;
    height: 4px;
    margin: 2px auto 7px;
  }
  .qpm-screen {
    height: 158px;
    border-radius: 15px;
  }
  .qpm-view {
    padding: 10px 8px;
    gap: 5px;
  }
  .qpm-qr-frame {
    width: 80px;
    height: 80px;
    padding: 6px;
    border-radius: 10px;
  }
  .qpm-check-burst {
    width: 42px;
    height: 42px;
    font-size: 1.35rem;
  }
  .qpm-vip-crown {
    font-size: 1.75rem;
  }
  .qpm-view strong {
    font-size: 0.78rem;
  }
  .qpm-view span {
    font-size: 0.66rem;
  }
  .qpm-amount-pill,
  .qpm-receipt-pill {
    font-size: 0.66rem;
    padding: 3px 8px;
  }
  .qris-sync-bridge {
    gap: 6px;
  }
  .qris-sync-line {
    width: 36px;
  }
  .qris-sync-bolt {
    font-size: 0.7rem;
    padding: 3px 9px;
  }
  .qwm-bar {
    padding: 8px 10px;
  }
  .qwm-url {
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .qwm-body {
    padding: 12px;
    gap: 10px;
  }
  .qwm-status-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .qwm-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .qwm-frow {
    padding: 7px 10px;
    font-size: 0.76rem;
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Sewa Bot mobile polish */
  .sewa-card {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .sewa-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    border-radius: 12px;
  }
  .sewa-card h3 {
    font-size: 1.04rem;
    line-height: 1.3;
  }
  .sewa-card p {
    font-size: 0.86rem;
  }
  .sewa-checklist li {
    font-size: 0.84rem;
  }
  .sewa-flow-step {
    padding: 14px;
  }

  /* Kontak & Feedback modal mobile polish */
  .modal-dialog.contact-fb-modal {
    border-radius: 18px;
    max-height: 92vh;
  }
  .contact-fb-modal .modal-body-scroll.cf-modal-grid {
    padding: 14px;
    gap: 12px;
    max-height: calc(92vh - 76px);
  }
  .cf-contact-card,
  .cf-feedback-form {
    padding: 14px;
  }
  .cf-phone-number {
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .qris-stage-pill {
    font-size: 0.63rem;
    padding: 6px 4px;
    gap: 3px;
  }
}

/* Cara Pakai callout di Pusat Fitur */
.cmd-howto {
  margin: 8px 0 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--canvas);
  border-left: 3px solid var(--lime);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}
.cmd-howto strong {
  color: var(--ink);
}

/* ==================== OWNER PANEL TERPADU: SISTEM, API AI, VARIABEL & LOG ==================== */
.sys-alert-badge {
  background: #ef4444 !important;
  color: #ffffff !important;
}
.syspanel-subhead {
  margin: 20px 0 10px;
  font-size: 0.96rem;
}
.syspanel-alerts {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.sys-alert-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--canvas);
  font-size: 0.87rem;
  line-height: 1.5;
}
.sys-alert-card p {
  margin: 4px 0 0;
  color: var(--muted);
}
.sys-alert-critical {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.08);
}
.sys-alert-warn {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.08);
}
.sys-alert-ok {
  border-color: rgba(132, 204, 22, 0.55);
  background: var(--lime-soft);
}
.sys-alert-solution {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}
.syspanel-providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.sys-prov-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--canvas);
  border: 1px solid var(--border);
  display: grid;
  gap: 5px;
}
.sys-prov-card.sys-prov-limited { border-color: rgba(245, 158, 11, 0.6); }
.sys-prov-card.sys-prov-error { border-color: rgba(239, 68, 68, 0.6); }
.sys-prov-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
}
.sys-prov-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.sys-prov-badge.ok { background: var(--lime-soft); color: var(--ink); }
.sys-prov-badge.limited { background: rgba(245, 158, 11, 0.18); color: #f59e0b; }
.sys-prov-badge.error { background: rgba(239, 68, 68, 0.16); color: #ef4444; }
.sys-prov-badge.muted { background: var(--border); color: var(--muted); }
.sys-prov-err {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #ef4444;
  word-break: break-word;
}
.syspanel-env-grid {
  display: grid;
  gap: 8px;
}
.sys-env-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--canvas);
  border: 1px solid var(--border);
}
.sys-env-key {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.82rem;
}
.sys-env-val {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.syspanel-logs-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}
.sys-log-row {
  display: grid;
  grid-template-columns: 64px 86px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--canvas);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.74rem;
  align-items: start;
}
.sys-log-row.sys-log-warn { border-color: rgba(245, 158, 11, 0.45); }
.sys-log-row.sys-log-error { border-color: rgba(239, 68, 68, 0.45); }
.sys-log-time { color: var(--muted); }
.sys-log-cat { font-weight: 700; color: var(--ink); }
.sys-log-msg { word-break: break-word; color: var(--muted); }

.sys-env-row-edit {
  display: grid;
  gap: 10px;
}
.sys-env-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.sys-env-editor {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sys-env-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8rem;
}
.btn-save-env {
  padding: 8px 14px !important;
  font-size: 0.8rem !important;
  border-radius: 10px !important;
}
