/* ==========================================================================
   DyonnsV-1 · Premium Celestial Design System
   Inspired by: Genshin Impact Layla UI & Honkai Star Rail Cerydra card aesthetic
   Mobile-first, Semantic Tokens, Full Light/Dark, Production-Ready
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Sora:wght@400;600;700;800&family=JetBrains+Mono:wght@500;600&display=swap');

/* ==========================================================================
   DESIGN TOKENS — SHARED (BOTH THEMES)
   ========================================================================== */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Sora', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --t-fast: 120ms ease;
  --t-base: 220ms var(--ease-in-out);
  --t-slow: 380ms var(--ease-spring);

  /* Border Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 9999px;

  /* Spacing scale */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px;
}

/* ==========================================================================
   LIGHT THEME — "Soft Porcelain Frost"
   Feel: Airy, clean, paper-like, soft periwinkle wash
   ========================================================================== */
:root,
[data-theme="light"] {
  color-scheme: light;

  /* Backgrounds — 5 levels */
  --bg: #F0F4FA;
  --bg-base: #FAFCFF;
  --bg-surface: #FFFFFF;
  --bg-raised: #F4F7FD;
  --bg-sunken: #E8EEF8;
  --bg-overlay: rgba(255,255,255,0.85);

  /* Borders */
  --border: rgba(100,126,180,0.15);
  --border-md: rgba(100,126,180,0.22);
  --border-strong: rgba(100,126,180,0.35);
  --border-focus: #4B7CF3;

  /* Foregrounds */
  --fg: #131926;
  --fg-2: #384157;
  --fg-3: #5E6E8C;
  --fg-4: #8C9AB5;
  --fg-inv: #FFFFFF;

  /* Brand Colors */
  --brand: #3D6CE8;
  --brand-h: #2553C7;
  --brand-l: rgba(61,108,232,0.10);
  --accent: #5B60E8;
  --accent-l: rgba(91,96,232,0.10);
  --sky: #60A5FA;
  --sky-l: rgba(96,165,250,0.10);

  /* Status */
  --green: #16A34A;
  --green-l: rgba(22,163,74,0.10);
  --amber: #D97706;
  --amber-l: rgba(217,119,6,0.10);
  --red: #DC2626;
  --red-l: rgba(220,38,38,0.10);

  /* Brand gradient */
  --grad: linear-gradient(135deg, #3D6CE8 0%, #5B60E8 60%, #8B6FE8 100%);
  --grad-sky: linear-gradient(135deg, #60A5FA 0%, #3D6CE8 100%);
  --grad-hero: linear-gradient(145deg, #E8EEF8 0%, #D8E4F6 40%, #C5D4F0 100%);

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(20,40,90,0.04);
  --shadow-2: 0 2px 8px rgba(20,40,90,0.06), 0 1px 3px rgba(20,40,90,0.03);
  --shadow-3: 0 8px 24px rgba(20,40,90,0.09), 0 2px 8px rgba(20,40,90,0.04);
  --shadow-4: 0 16px 48px rgba(20,40,90,0.12), 0 4px 12px rgba(20,40,90,0.05);
  --shadow-glow: 0 0 28px rgba(61,108,232,0.22);

  /* Component-specific */
  --header-bg: rgba(250,252,255,0.88);
  --card-bg: var(--bg-surface);
  --input-bg: #F4F7FD;
  --chip-bg: #EAF0FD;
  --chip-text: #2553C7;
  --chip-hover: #D6E4FC;
  --tag-bg: rgba(61,108,232,0.08);
  --tag-text: #2553C7;

  /* Chat bubble */
  --chat-user-bg: var(--brand);
  --chat-user-fg: #fff;
  --chat-bot-bg: var(--bg-raised);
  --chat-bot-fg: var(--fg);
}

/* ==========================================================================
   DARK THEME — "Deep Navy Celestial"
   Feel: Deep midnight blue, multiple depth layers, not flat black
   ========================================================================== */
[data-theme="dark"] {
  color-scheme: dark;

  /* Backgrounds — 5 levels from deepest to highest */
  --bg: #08101C;
  --bg-base: #0B1525;
  --bg-surface: #0F1E35;
  --bg-raised: #162540;
  --bg-sunken: #061019;
  --bg-overlay: rgba(11,21,37,0.92);

  /* Borders */
  --border: rgba(255,255,255,0.06);
  --border-md: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --border-focus: #60A5FA;

  /* Foregrounds */
  --fg: #EEF3FC;
  --fg-2: #B8C8E4;
  --fg-3: #7B95C2;
  --fg-4: #4D6A96;
  --fg-inv: #0B1525;

  /* Brand Colors */
  --brand: #60A5FA;
  --brand-h: #93C5FD;
  --brand-l: rgba(96,165,250,0.12);
  --accent: #818CF8;
  --accent-l: rgba(129,140,248,0.12);
  --sky: #38BDF8;
  --sky-l: rgba(56,189,248,0.10);

  /* Status */
  --green: #34D399;
  --green-l: rgba(52,211,153,0.10);
  --amber: #FBBF24;
  --amber-l: rgba(251,191,36,0.10);
  --red: #F87171;
  --red-l: rgba(248,113,113,0.10);

  /* Brand gradient */
  --grad: linear-gradient(135deg, #60A5FA 0%, #818CF8 60%, #A78BFA 100%);
  --grad-sky: linear-gradient(135deg, #38BDF8 0%, #60A5FA 100%);
  --grad-hero: linear-gradient(145deg, #0F1E35 0%, #162540 40%, #1A2E50 100%);

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-2: 0 3px 12px rgba(0,0,0,0.40), 0 1px 4px rgba(0,0,0,0.25);
  --shadow-3: 0 8px 28px rgba(0,0,0,0.50), 0 3px 10px rgba(0,0,0,0.30);
  --shadow-4: 0 20px 60px rgba(0,0,0,0.65), 0 6px 20px rgba(0,0,0,0.40);
  --shadow-glow: 0 0 32px rgba(96,165,250,0.28);

  /* Component-specific */
  --header-bg: rgba(8,16,28,0.90);
  --card-bg: var(--bg-surface);
  --input-bg: var(--bg-sunken);
  --chip-bg: rgba(96,165,250,0.10);
  --chip-text: #93C5FD;
  --chip-hover: rgba(96,165,250,0.18);
  --tag-bg: rgba(96,165,250,0.10);
  --tag-text: #93C5FD;

  /* Chat bubble */
  --chat-user-bg: #2563EB;
  --chat-user-fg: #fff;
  --chat-bot-bg: var(--bg-raised);
  --chat-bot-fg: var(--fg);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--t-slow), color var(--t-slow);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button { cursor: pointer; border: none; background: none; -webkit-tap-highlight-color: transparent; font: inherit; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, textarea { font: inherit; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 18px;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) { .container { padding-inline: 24px; } }
@media (min-width: 1024px) { .container { padding-inline: 32px; } }

.section {
  padding-block: 52px;
  position: relative;
}

@media (min-width: 768px) { .section { padding-block: 72px; } }

/* ==========================================================================
   AMBIENT BACKGROUND (Celestial)
   ========================================================================== */
.scene-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.scene-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  width: 380px; height: 380px;
  top: -100px; right: -60px;
  background: radial-gradient(circle, rgba(96,165,250,0.35) 0%, transparent 70%);
  animation: orbFloat1 18s ease-in-out infinite;
}

.orb-2 {
  width: 440px; height: 440px;
  top: 30%; left: -140px;
  background: radial-gradient(circle, rgba(129,140,248,0.25) 0%, transparent 70%);
  animation: orbFloat2 22s ease-in-out infinite reverse;
}

.orb-3 {
  width: 360px; height: 360px;
  bottom: 5%; right: -80px;
  background: radial-gradient(circle, rgba(56,189,248,0.20) 0%, transparent 70%);
  animation: orbFloat1 26s ease-in-out infinite;
}

[data-theme="light"] .orb-1 { background: radial-gradient(circle, rgba(61,108,232,0.12) 0%, transparent 70%); }
[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(91,96,232,0.09) 0%, transparent 70%); }
[data-theme="light"] .orb-3 { background: radial-gradient(circle, rgba(60,165,250,0.10) 0%, transparent 70%); }

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, 25px) scale(1.05); }
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pl-ring {
  width: 52px; height: 52px;
  border: 3px solid var(--border-md);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.pl-logo {
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 8px;
  overflow: hidden;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.pl-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pl-wrap { position: relative; }

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

.pl-text {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   HEADER & NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-base), border-color var(--t-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border-md);
  background: var(--bg-surface);
  flex-shrink: 0;
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.brand-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.04em;
}

.pulse-dot {
  width: 5px; height: 5px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--green);
  animation: pulse 2.2s ease infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); }
  60%  { box-shadow: 0 0 0 5px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

[data-theme="light"] .pulse-dot { animation-name: pulseLight; }
@keyframes pulseLight {
  0%   { box-shadow: 0 0 0 0 rgba(22,163,74,0.5); }
  60%  { box-shadow: 0 0 0 5px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

/* Desktop nav */
.desk-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 880px) { .desk-nav { display: flex; } }

.desk-nav a {
  padding: 7px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-3);
  border-radius: var(--r-xs);
  transition: color var(--t-fast), background var(--t-fast);
}

.desk-nav a:hover { color: var(--fg); background: var(--bg-raised); }
.desk-nav a.active { color: var(--brand); background: var(--brand-l); }

/* Header actions */
.header-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-3);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.icon-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-l); }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.ham-btn { display: flex; }
@media (min-width: 880px) { .ham-btn { display: none; } }

/* ==========================================================================
   MOBILE BOTTOM NAV — Game-app style
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 880px) { .bottom-nav { display: none; } }

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  border-radius: 12px;
  color: var(--fg-4);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--t-fast);
  flex: 1;
  position: relative;
  min-width: 0;
  border: 1px solid transparent;
}

.bnav-item svg { width: 22px; height: 22px; }

.bnav-item.active {
  color: var(--brand);
  background: rgba(96, 165, 250, 0.14);
  border-color: rgba(96, 165, 250, 0.25);
}

[data-theme="light"] .bnav-item.active {
  background: rgba(61, 108, 232, 0.10);
  border-color: rgba(61, 108, 232, 0.22);
}

.bnav-badge {
  position: absolute;
  top: 2px; right: calc(50% - 16px);
  background: #EF4444;
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 99px;
  line-height: 1.2;
  pointer-events: none;
}

@media (max-width: 879px) {
  body { padding-bottom: 72px; }
}

/* ==========================================================================
   DRAWER / SIDE MENU
   ========================================================================== */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  z-index: 88;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}

.drawer-scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  max-width: 88vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-md);
  z-index: 90;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-body {
  flex: 1;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fg-2);
  transition: all var(--t-fast);
}

.drawer-link:hover, .drawer-link.active {
  background: var(--brand-l);
  color: var(--brand);
}

.drawer-link svg { width: 17px; height: 17px; flex-shrink: 0; }

.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 4px;
}

.drawer-foot {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: all var(--t-base);
  min-height: 46px;
  white-space: nowrap;
  touch-action: manipulation;
  user-select: none;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-3);
}

.btn-primary:active { transform: translateY(0); box-shadow: var(--shadow-1); }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-raised);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-3);
  border: 1px solid transparent;
}

.btn-ghost:hover { background: var(--bg-raised); color: var(--fg); }

.btn-sm { padding: 7px 14px; font-size: 0.8125rem; min-height: 34px; border-radius: var(--r-xs); }
.btn-xs { padding: 5px 10px; font-size: 0.75rem; min-height: 28px; border-radius: var(--r-xs); }

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.sec-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.sec-label svg { width: 13px; height: 13px; }

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 4vw, 2.375rem);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.sec-body {
  font-size: 1rem;
  color: var(--fg-3);
  line-height: 1.65;
}

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding-top: 28px;
  padding-bottom: 56px;
  overflow: hidden;
  position: relative;
}

@media (min-width: 960px) {
  .hero { padding-top: 52px; padding-bottom: 80px; }
}

/* Hero background wash */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  opacity: 0.45;
  z-index: 0;
}

[data-theme="dark"] .hero::before { opacity: 0.3; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

/* Hero text side */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

.hero-badge-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}

[data-theme="light"] .hero-badge-tag {
  color: var(--brand);
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--fg);
  margin-bottom: 16px;
  text-align: left;
}

.hero-desc {
  font-size: clamp(0.9375rem, 1.8vw, 1.05rem);
  color: var(--fg-2);
  line-height: 1.68;
  margin-bottom: 24px;
  max-width: 520px;
  text-align: left;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  width: 100%;
}

.btn-hero-primary {
  background: var(--grad);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--r-md);
  padding: 13px 24px;
  box-shadow: 0 4px 18px rgba(96,165,250,0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--t-fast);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(96,165,250,0.42);
}

.btn-hero-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: var(--r-md);
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--t-fast);
}

.btn-hero-secondary:hover {
  border-color: var(--brand);
  background: var(--brand-l);
  color: var(--brand);
}

@media (max-width: 640px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* Hero stats grid cards */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.hero-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-2);
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.hero-stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.hero-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--brand-l);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

[data-theme="light"] .hero-stat-icon {
  border-color: rgba(61, 108, 232, 0.15);
}

.hero-stat-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hero-stat-info b {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.hero-stat-info span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--fg-3);
  margin-top: 2px;
}

/* ==========================================================================
   HERO CHARACTER CARD (Genshin Layla / HSR Cerydra inspired)
   ========================================================================== */
.char-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Character banner (top image portion) */
.char-banner {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(145deg, #1a2e50, #0e1c38);
  flex-shrink: 0;
}

[data-theme="light"] .char-banner {
  background: linear-gradient(145deg, #C5D4F0, #D8E4F6);
}

.char-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s var(--ease-spring);
}

.char-card:hover .char-banner-img { transform: scale(1.03); }

.char-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,16,28,0.85) 0%, rgba(8,16,28,0.25) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}

[data-theme="light"] .char-banner-overlay {
  background: linear-gradient(to top, rgba(10,20,50,0.7) 0%, rgba(10,20,50,0.15) 50%, transparent 100%);
}

.char-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  padding: 4px 10px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: absolute;
  top: 12px; left: 12px;
}

.char-stars {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.6875rem;
  color: #FBBF24;
  letter-spacing: 1px;
}

.char-banner-text { color: #fff; }
.char-banner-text h3 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}
.char-banner-text p { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 3px; }

/* Spec strip */
.char-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.char-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  border-right: 1px solid var(--border);
  gap: 2px;
}

.char-spec:last-child { border-right: none; }

.char-spec-label {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-4);
}

.char-spec-val {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fg);
}

/* Chat demo inside card */
.chat-demo {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 32px; height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }

.chat-bot-name { font-size: 0.875rem; font-weight: 700; color: var(--fg); }
.chat-bot-status { font-size: 0.6875rem; color: var(--green); font-weight: 600; }

.chat-msgs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  max-height: 110px;
  overflow: hidden;
}

.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-msg.user { flex-direction: row-reverse; }

.chat-bubble {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.4;
  max-width: 80%;
}

.chat-msg.bot .chat-bubble {
  background: var(--chat-bot-bg);
  color: var(--chat-bot-fg);
  border-bottom-left-radius: 2px;
}

.chat-msg.user .chat-bubble {
  background: var(--chat-user-bg);
  color: var(--chat-user-fg);
  border-bottom-right-radius: 2px;
}

.chat-dots {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 8px 12px;
  background: var(--chat-bot-bg);
  border-radius: 10px;
  border-bottom-left-radius: 2px;
  width: fit-content;
}

.chat-dot {
  width: 5px; height: 5px;
  background: var(--fg-3);
  border-radius: 50%;
  animation: dotBounce 1.3s ease-in-out infinite;
}
.chat-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-dot:nth-child(3) { animation-delay: 0.30s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* Command chips at bottom of card */
.cmd-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.cmd-chip-mini {
  padding: 4px 9px;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
}

.cmd-chip-mini:hover {
  background: var(--chip-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  position: relative;
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--t-base);
}

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

.svc-card:hover::before { opacity: 1; }

.svc-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--brand-l);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.svc-icon svg { width: 20px; height: 20px; }

.svc-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.svc-desc {
  font-size: 0.8125rem;
  color: var(--fg-3);
  line-height: 1.55;
  flex: 1;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.svc-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  padding: 3px 7px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: var(--r-xs);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   TELEMETRY STATS
   ========================================================================== */
.telem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 700px) { .telem-grid { grid-template-columns: repeat(4, 1fr); } }

.telem-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}

.telem-card:hover { box-shadow: var(--shadow-2); border-color: var(--border-md); }

.telem-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telem-icon-box {
  width: 34px; height: 34px;
  border-radius: var(--r-xs);
  background: var(--brand-l);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}

.telem-icon-box svg { width: 17px; height: 17px; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.live-badge .pulse-dot { width: 5px; height: 5px; }

.telem-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.025em;
  line-height: 1;
}

.telem-label {
  font-size: 0.75rem;
  color: var(--fg-3);
  font-weight: 500;
}

.telem-bar {
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.telem-bar-fill {
  height: 100%;
  background: var(--grad);
  border-radius: 99px;
  transition: width 1s var(--ease-spring);
}

/* Server status bar */
.server-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--green-l);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--r-md);
  margin-top: 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-2);
  flex-wrap: wrap;
  gap: 8px;
}

[data-theme="light"] .server-bar { border-color: rgba(22,163,74,0.2); }

.server-bar .pulse-dot { background: var(--green); }

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

.server-clock {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-3);
}

/* ==========================================================================
   PROOF GALLERY
   ========================================================================== */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }

.proof-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.proof-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

.proof-img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
  background: var(--bg-raised);
}

.proof-caption {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

.proof-caption h4 { font-size: 0.8125rem; font-weight: 700; color: var(--fg); }
.proof-caption p { font-size: 0.6875rem; color: var(--fg-3); margin-top: 2px; }

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-tabs {
  display: flex;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  gap: 2px;
  margin-bottom: 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.ptab {
  flex: none;
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fg-3);
  white-space: nowrap;
  transition: all var(--t-fast);
}

.ptab.active {
  background: var(--bg-surface);
  color: var(--brand);
  box-shadow: var(--shadow-1);
}

.ptab:hover:not(.active) { color: var(--fg); background: var(--bg-overlay); }

/* Pricing sub-section heading */
.pricing-sub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.pricing-sub-head-text h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--fg);
}

.pricing-sub-head-text p {
  font-size: 0.8125rem;
  color: var(--fg-3);
  margin-top: 3px;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.plan-badge.blue { background: var(--brand-l); color: var(--brand); }
.plan-badge.purple { background: var(--accent-l); color: var(--accent); }
.plan-badge.sky { background: var(--sky-l); color: var(--sky); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

@media (min-width: 768px) { .plans-grid { grid-template-columns: repeat(4, 1fr); } }

.plan-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.plan-card.featured {
  border-color: var(--brand);
  background: linear-gradient(to bottom, var(--brand-l), var(--card-bg) 70%);
}

.plan-card:hover:not(.featured) { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.plan-card.featured:hover { box-shadow: var(--shadow-glow), var(--shadow-2); }

.plan-best-badge {
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--fg);
}

.plan-dur {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--fg-3);
  margin-top: 2px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-3);
  letter-spacing: 0;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.plan-feat {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.8125rem;
  color: var(--fg-2);
  line-height: 1.4;
}

.plan-feat.muted { color: var(--fg-4); }

.plan-feat-icon {
  width: 15px; height: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-feat-icon.check { color: var(--green); }
.plan-feat-icon.lock { color: var(--fg-4); }

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-3);
}

.trust-item svg { width: 16px; height: 16px; color: var(--brand); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 600px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

.testi-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--t-base);
}

.testi-card:hover { box-shadow: var(--shadow-2); }

.testi-stars { display: flex; gap: 2px; }
.testi-stars svg {
  width: 14px; height: 14px;
  fill: #FBBF24;
  color: #FBBF24;
}

.testi-text {
  font-size: 0.875rem;
  color: var(--fg-2);
  line-height: 1.6;
  flex: 1;
}

.testi-author { display: flex; align-items: center; gap: 10px; }

.testi-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.testi-info b { font-size: 0.8125rem; font-weight: 700; color: var(--fg); display: block; }
.testi-info span { font-size: 0.6875rem; color: var(--fg-3); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; margin-inline: auto; }

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.faq-item.open { border-color: var(--brand); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  transition: background var(--t-fast);
}

.faq-q:hover { background: var(--bg-raised); }
.faq-item.open .faq-q { background: var(--brand-l); color: var(--brand); }

.faq-chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform var(--t-base);
  color: var(--fg-3);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--brand); }

.faq-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}

.faq-ans-inner {
  padding: 0 18px 16px;
  font-size: 0.875rem;
  color: var(--fg-3);
  line-height: 1.65;
}

.faq-ans-inner code {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* ==========================================================================
   TRIAL BANNER
   ========================================================================== */
.trial-block {
  background: var(--card-bg);
  border: 1px solid var(--border-md);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
}

.trial-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad);
}

.trial-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 24px;
}

@media (min-width: 640px) { .trial-inner { grid-template-columns: 1fr auto; } }

.trial-text h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1.3;
  margin-bottom: 8px;
}

.trial-text p {
  font-size: 0.875rem;
  color: var(--fg-3);
  line-height: 1.6;
  margin-bottom: 16px;
}

.trial-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.trial-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trial-chibi {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.2));
}

@media (max-width: 639px) { .trial-visual { display: none; } }

/* ==========================================================================
   CONTACT / INFO
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }

.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.info-card-avatar {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.info-card-avatar img { width: 100%; height: 100%; object-fit: cover; }

.info-card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--brand-l);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}

.info-card-icon svg { width: 20px; height: 20px; }

.info-card b { font-size: 0.8125rem; font-weight: 700; color: var(--fg); display: block; }
.info-card span { font-size: 0.75rem; color: var(--fg-3); }

/* QRIS Card */
.qris-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.qris-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) { .qris-inner { grid-template-columns: 200px 1fr; } }

.qris-img-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .qris-img-side {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.qris-img-side img {
  max-width: 160px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-2);
}

.qris-info { padding: 24px; }

.qris-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 8px;
}

.qris-info p {
  font-size: 0.8125rem;
  color: var(--fg-3);
  line-height: 1.6;
  margin-bottom: 16px;
}

.qris-nmid-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.qris-nmid-row span { font-size: 0.75rem; font-weight: 600; color: var(--fg-3); }

.qris-nmid-row code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
  flex: 1;
}

/* ==========================================================================
   FITUR.HTML — Command Catalog
   ========================================================================== */
.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-icon-wrap {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--fg-4);
  pointer-events: none;
}

.search-icon-wrap svg { width: 17px; height: 17px; }

.search-input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  color: var(--fg);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-l);
  background: var(--bg-surface);
}

.search-input::placeholder { color: var(--fg-4); }

.search-clear {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--fg-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.search-clear.visible { opacity: 1; }
.search-clear:hover { background: var(--border-md); color: var(--fg); }

.search-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 4px;
  font-size: 0.75rem;
  color: var(--fg-3);
  font-weight: 600;
  margin-bottom: 20px;
}

.search-count { color: var(--brand); font-weight: 700; }

/* Category filter pills */
.cat-pills {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 7px;
  padding-bottom: 4px;
  margin-bottom: 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cat-pills::-webkit-scrollbar { display: none; }

.cat-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fg-3);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t-fast);
}

.cat-pill svg {
  flex-shrink: 0;
}

.cat-pill:hover { border-color: var(--border-strong); color: var(--fg); }

.cat-pill.active {
  background: var(--brand-l);
  border-color: var(--brand);
  color: var(--brand);
}

/* Command category sections */
.cmd-section {
  margin-bottom: 36px;
}

.cmd-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.cmd-section-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--brand-l);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

[data-theme="light"] .cmd-section-icon {
  border-color: rgba(61, 108, 232, 0.15);
}

.prem-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  color: #A78BFA;
  font-size: 0.625rem;
}

[data-theme="light"] .prem-tag {
  color: #7C3AED;
}

.cmd-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--fg);
}

.cmd-section-count {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--fg-4);
  letter-spacing: 0.04em;
}

/* Command chips grid */
.cmd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cmd-chip {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid transparent;
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: all var(--t-fast);
  user-select: none;
  position: relative;
}

.cmd-chip:hover {
  background: var(--chip-hover);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.cmd-chip:active { transform: translateY(0); }

.cmd-chip.premium {
  background: rgba(167,139,250,0.10);
  color: #8B6FE8;
  border-color: rgba(167,139,250,0.15);
}

[data-theme="dark"] .cmd-chip.premium {
  background: rgba(167,139,250,0.12);
  color: #C4B5FD;
}

.cmd-note {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--fg-4);
  font-family: var(--font-sans);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding-block: 28px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--fg);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.footer-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg-3);
  padding: 6px 10px;
  border-radius: var(--r-xs);
  transition: color var(--t-fast), background var(--t-fast);
}

.footer-links a:hover { color: var(--brand); background: var(--brand-l); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-4);
}

/* ==========================================================================
   CHECKOUT MODAL — Bottom Sheet on Mobile
   ========================================================================== */
.modal-scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 80;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
}

.modal-scrim.open { opacity: 1; visibility: visible; }

.modal-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-height: 92vh;
  background: var(--bg-surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  border-top: 1px solid var(--border-md);
  z-index: 85;
  transform: translateY(100%);
  transition: transform var(--t-slow);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 20px 32px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}

.modal-sheet.open { transform: translateY(0); }

@media (min-width: 640px) {
  .modal-sheet {
    max-width: 480px;
    margin-inline: auto;
    left: 50%; transform: translate(-50%, 100%);
    border-radius: var(--r-xl);
    bottom: 40px;
  }
  .modal-sheet.open { transform: translate(-50%, 0); }
}

.sheet-handle {
  width: 40px; height: 4px;
  background: var(--border-strong);
  border-radius: 99px;
  margin: 12px auto 20px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 4px;
}

.modal-plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--brand-l);
  color: var(--brand);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--fg-3);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
}

.modal-close:hover { background: var(--border-md); color: var(--fg); }
.modal-close svg { width: 16px; height: 16px; }

.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fg-2);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--input-bg);
  border: 1px solid var(--border-md);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  color: var(--fg);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--brand-l);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--fg-4);
  margin-top: 5px;
}

.form-hint code {
  background: var(--bg-raised);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: var(--font-mono);
}

.modal-err {
  display: none;
  background: var(--red-l);
  border: 1px solid rgba(220,38,38,0.2);
  color: var(--red);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.modal-err.show { display: block; }

/* ==========================================================================
   FLOATING WA BUTTON
   ========================================================================== */
.wa-fab {
  position: fixed;
  right: 16px; bottom: 88px;
  z-index: 40;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4), var(--shadow-2);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55), var(--shadow-3);
}

.wa-fab svg { width: 26px; height: 26px; fill: currentColor; }

@media (min-width: 880px) { .wa-fab { bottom: 20px; } }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 90px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 200;
  background: var(--fg);
  color: var(--fg-inv);
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
  white-space: nowrap;
  max-width: 90vw;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }

@media (min-width: 880px) { .toast { bottom: 28px; } }

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

.hidden { display: none !important; }

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin-block: 28px;
}

/* Alt section background */
.bg-alt { background: var(--bg-base); }
.bg-raised { background: var(--bg-raised); }

/* Shared scroll snap for mobile carousels */
.scroll-snap-x {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-snap-x::-webkit-scrollbar { display: none; }
.snap-item { scroll-snap-align: start; flex: none; }
