/* Tema Utama: Mode Gelap (mengikuti latar logo #0e1420 + petrol #135a74 + cyan #45aabc) */
:root,
[data-theme="dark"] {
  --bg: #0e1420;
  --bg-alt: #121a2a;
  --surface: #172133;
  --surface-soft: #1c2940;
  --surface-muted: #111827;
  --navy: #0e1420;
  --text: #f1f5f9;
  --text-muted: #9fb0c4;
  --border: #253449;
  --input-border: #334763;
  --navbar-bg: rgba(14, 20, 32, 0.92);
  --primary: #135a74;
  --primary-dark: #197495;
  --accent: #45aabc;
  --accent-text: #7bd8e8;
  --primary-soft: rgba(69, 170, 188, 0.16);
  --hero-glow: rgba(69, 170, 188, 0.16);
  --grid-line: rgba(69, 170, 188, 0.06);
  --stat-bg: rgba(19, 90, 116, 0.28);
  --stat-border: rgba(69, 170, 188, 0.35);
  --stat-warn-bg: rgba(217, 119, 6, 0.15);
  --stat-warn-border: rgba(251, 191, 36, 0.35);
  --accent-warn: #fbbf24;
  --accent-warn-bg: rgba(245, 158, 11, 0.16);
  --accent-ok: #34d399;
  --accent-ok-bg: rgba(16, 185, 129, 0.18);
  --accent-danger: #fca5a5;
  --accent-danger-bg: rgba(239, 68, 68, 0.18);
  --promo-bg: rgba(245, 158, 11, 0.12);
  --promo-border: rgba(251, 191, 36, 0.35);
  --promo-text: #fde68a;
  --strike: #64748b;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.44);
  --container: 1120px;
  --radius: 14px;
}

/* Mode Terang (Opsional via toggle) */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f3f8fa;
  --surface: #ffffff;
  --surface-soft: #f8fbfc;
  --surface-muted: #f1f5f9;
  --navy: #0e1420;
  --text: #0e1420;
  --text-muted: #475569;
  --border: #dce7ed;
  --input-border: #cbd5e1;
  --navbar-bg: rgba(255, 255, 255, 0.94);
  --primary: #135a74;
  --primary-dark: #0e465b;
  --accent: #45aabc;
  --accent-text: #135a74;
  --primary-soft: #e3f5f8;
  --hero-glow: rgba(69, 170, 188, 0.18);
  --grid-line: rgba(19, 90, 116, 0.05);
  --stat-bg: #f1f9fb;
  --stat-border: #ccebf1;
  --stat-warn-bg: #fffbeb;
  --stat-warn-border: #fde68a;
  --accent-warn: #b45309;
  --accent-warn-bg: #fef3c7;
  --accent-ok: #0e6f63;
  --accent-ok-bg: #d1fae5;
  --accent-danger: #b91c1c;
  --accent-danger-bg: #fee2e2;
  --promo-bg: #fef3c7;
  --promo-border: #fcd34d;
  --promo-text: #78350f;
  --strike: #94a3b8;
  --shadow: 0 14px 34px rgba(14, 20, 32, 0.09);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, p, ul, dl {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* Navbar & Scroll Progress */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navbar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  overflow-x: clip;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.navbar.is-scrolled {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border-bottom-color: rgba(69, 170, 188, 0.35);
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #135a74 0%, #45aabc 60%, #7bd8e8 100%);
  box-shadow: 0 0 10px rgba(69, 170, 188, 0.65);
  transition: width 0.08s linear;
  pointer-events: none;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

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

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(69, 170, 188, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid rgba(69, 170, 188, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-text small {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--accent-text);
}

.nav-links a.is-current::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-text);
  transform: translateY(-1px);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-link {
  font-weight: 600;
  padding: 6px 0;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.mobile-link.is-current {
  color: var(--accent-text);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-xs {
  padding: 6px 10px;
  font-size: 0.76rem;
  border-radius: 8px;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 0.98rem;
}

.btn-full {
  width: 100%;
  padding: 12px 18px;
  font-size: 0.94rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #197998 100%);
  border-color: rgba(69, 170, 188, 0.45);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #208aae 100%);
}

.btn-glow {
  box-shadow: 0 8px 24px rgba(69, 170, 188, 0.25);
}

.btn-glow:hover {
  box-shadow: 0 12px 30px rgba(69, 170, 188, 0.36);
}

.btn-outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--accent-text);
}

.btn-light {
  background: #ffffff;
  color: var(--navy);
}

.btn-light:hover {
  background: #e3f5f8;
}

/* Hero & Ambient Animations */
.hero {
  position: relative;
  padding: 52px 0 42px;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 30%, #000 35%, transparent 80%);
  pointer-events: none;
}

.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbDrift 11s ease-in-out infinite alternate;
}

.hero-glow-1 {
  top: -110px;
  right: 8%;
  width: 380px;
  height: 380px;
  background: var(--hero-glow);
}

.hero-glow-2 {
  bottom: 40px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: rgba(19, 90, 116, 0.2);
  animation-delay: -5s;
}

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

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--accent-text);
  border: 1px solid rgba(69, 170, 188, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(69, 170, 188, 0.7);
  animation: pulseRing 2s infinite;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.3vw, 2.75rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.text-gradient,
.text-gradient .gsap-word {
  background: linear-gradient(90deg, #5fd3e6 0%, #99ecf9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .text-gradient,
[data-theme="light"] .text-gradient .gsap-word {
  background: linear-gradient(90deg, #135a74 0%, #2a90a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.03rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-subtitle strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-ok-bg);
  color: var(--accent-ok);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Visual 3D Studio Beranda (2-Kolom, Pratinjau Visual Murni Akses RW + Portal Warga) */
.hero-preview {
  position: relative;
  z-index: 1;
}

.hero-stage {
  position: relative;
  padding: 16px 104px 34px 10px;
  perspective: 1400px;
}

/* 3D Studio Decorative Orbs & Glass Ring */
.stage-glass-ring {
  position: absolute;
  top: -10px;
  right: 8px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 10px solid rgba(123, 216, 232, 0.16);
  box-shadow: inset 0 0 18px rgba(69, 170, 188, 0.18), 0 10px 28px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 0;
  animation: gentleFloat 7s ease-in-out infinite;
}

.stage-pedestal {
  position: absolute;
  left: 0;
  bottom: 14px;
  width: 74px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), rgba(19, 90, 116, 0.38));
  border: 1px solid rgba(123, 216, 232, 0.28);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
  z-index: 4;
  pointer-events: none;
}

.stage-sphere-teal {
  position: absolute;
  left: 16px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #7bd8e8 0%, #135a74 52%, #07202b 100%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.stage-sphere-pearl {
  position: absolute;
  left: 46px;
  bottom: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #cbd5e1 65%, #64748b 100%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  z-index: 4;
  pointer-events: none;
}

/* Back Layer: Monitor 3D dengan kanvas penuh 980x580 yang di-scale bersih & terisi penuh */
.stage-monitor {
  position: relative;
  z-index: 2;
  width: 490px;
  max-width: 100%;
  transform: rotateY(-7deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.stage-monitor-screen {
  width: 490px;
  height: 296px;
  background: #0d1a26;
  border: 7px solid #1a283b;
  outline: 1px solid rgba(123, 216, 232, 0.28);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    -18px 24px 48px rgba(0, 0, 0, 0.48),
    0 0 36px rgba(69, 170, 188, 0.14);
  color: #0f172a;
}

.stage-monitor-canvas {
  width: 980px;
  height: 580px;
  display: flex;
  flex-direction: column;
  transform: scale(0.486);
  transform-origin: top left;
  pointer-events: none;
  user-select: none;
}

.stage-monitor-canvas .real-admin-body {
  flex: 1;
  min-height: 0;
}

.stage-monitor-canvas .real-main-canvas,
.stage-monitor-canvas .real-admin-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stage-monitor-canvas .rw-table-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.stage-monitor-canvas .rw-rt-list {
  flex: 1;
}

[data-theme="light"] .stage-monitor-screen {
  border-color: #e2e8f0;
  outline-color: #cbd5e1;
  box-shadow:
    -18px 24px 48px rgba(14, 20, 32, 0.16),
    0 0 0 1px rgba(14, 20, 32, 0.06);
}

.stage-monitor-stand {
  width: 96px;
  height: 18px;
  margin: 0 auto;
  background: linear-gradient(180deg, #1f3046 0%, #0e1726 100%);
  border-radius: 0 0 8px 8px;
  position: relative;
}

.stage-monitor-stand::after {
  content: "";
  position: absolute;
  left: -34px;
  right: -34px;
  bottom: -6px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1b2a3e, #364e6c, #1b2a3e);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

/* Front-Right Layer: Smartphone 3D dengan layar Portal Warga 316px yang di-scale penuh */
.stage-phone {
  position: absolute;
  right: 0;
  bottom: -14px;
  z-index: 5;
  width: 192px;
  background: #0a101b;
  border: 2px solid #324663;
  border-radius: 26px;
  padding: 7px;
  transform: rotateY(-9deg) rotateX(2.5deg) rotateZ(1.8deg);
  box-shadow:
    -16px 24px 44px rgba(0, 0, 0, 0.6),
    0 0 28px rgba(69, 170, 188, 0.2);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.stage-phone:hover {
  transform: translateY(-6px) rotateY(-4deg) rotateX(1deg) rotateZ(0deg) scale(1.02);
}

.stage-phone-notch {
  width: 54px;
  height: 4px;
  border-radius: 999px;
  background: #27374e;
  margin: 1px auto 6px;
}

.stage-phone-viewport {
  width: 174px;
  height: 326px;
  border-radius: 19px;
  overflow: hidden;
  background: #07202b;
}

.stage-phone-canvas {
  width: 316px;
  height: 592px;
  transform: scale(0.551);
  transform-origin: top left;
  pointer-events: none;
  user-select: none;
}

.stage-phone-canvas .real-phone-screen {
  border-radius: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.stage-phone-canvas .real-phone-sheet {
  flex: 1;
}

.stage-phone-canvas .real-phone-bottom-nav {
  margin-top: auto;
}

[data-theme="light"] .stage-phone {
  border-color: #cbd5e1;
  background: #1e293b;
  box-shadow: -14px 20px 36px rgba(14, 20, 32, 0.28);
}

.m-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 11px;
  background: #0a1824;
  color: #f8fafc;
}

.m-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
}

.m-brand img {
  border-radius: 4px;
}

.m-badge {
  font-size: 0.48rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #334e68;
  color: #93c5fd;
  background: rgba(30, 58, 95, 0.45);
}

.m-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.m-pill {
  padding: 2px 7px;
  border-radius: 6px;
  background: #132535;
  border: 1px solid #2b4257;
  font-size: 0.54rem;
  font-weight: 700;
  color: #e2e8f0;
}

.m-avatar {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10495c;
  border: 1px solid #45aabc;
  font-size: 0.52rem;
  font-weight: 800;
}

.m-body {
  display: grid;
  grid-template-columns: 88px 1fr;
}

.m-sidebar {
  background: #0d1a26;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.m-side-lbl {
  font-size: 0.46rem;
  font-weight: 800;
  color: #64748b;
  padding: 0 5px 3px;
}

.m-side-item {
  font-size: 0.54rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 4px 6px;
  border-radius: 5px;
}

.m-side-item.is-active {
  background: linear-gradient(90deg, #10495c 0%, #165f77 100%);
  color: #ffffff;
  font-weight: 700;
}

.m-canvas {
  padding: 9px 10px 12px;
  display: grid;
  gap: 7px;
  background: #f4f7f9;
}

.m-crumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 0.58rem;
}

.m-edit-tag {
  padding: 2px 6px;
  border-radius: 5px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 0.48rem;
  font-weight: 700;
  white-space: nowrap;
}

.m-rw-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 9px;
}

.m-rw-badges {
  display: flex;
  gap: 4px;
  margin-bottom: 3px;
}

.m-rw-pill {
  padding: 1px 5px;
  border-radius: 4px;
  background: #0a222d;
  color: #fb923c;
  font-size: 0.48rem;
  font-weight: 800;
}

.m-id-pill {
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.48rem;
  font-weight: 700;
}

.m-st-pill {
  padding: 1px 5px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.48rem;
  font-weight: 700;
}

.m-rw-card strong {
  display: block;
  font-size: 0.68rem;
  color: #0f172a;
}

.m-rw-card small {
  display: block;
  font-size: 0.5rem;
  color: #64748b;
}

.m-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.m-kpi {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 5px 6px;
}

.m-kpi span {
  display: block;
  font-size: 0.45rem;
  font-weight: 800;
  color: #64748b;
}

.m-kpi strong {
  display: block;
  font-size: 0.66rem;
  color: #0f172a;
}

.m-ok {
  color: #059669 !important;
}

.m-table {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  display: grid;
  gap: 4px;
}

.m-table-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.56rem;
  padding-bottom: 3px;
  border-bottom: 1px solid #f1f5f9;
}

.m-table-title span {
  font-size: 0.48rem;
  padding: 1px 5px;
  border-radius: 999px;
  background: #e3f1f6;
  color: #10495c;
  font-weight: 700;
}

.m-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.52rem;
  padding: 3px 5px;
  border-radius: 5px;
  background: #f8fafc;
}

.sp-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 8px;
  background: #07202b;
  color: #fff;
}

.sp-user {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.sp-av {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10495c;
  border: 1.5px solid #cbd5e1;
  font-size: 0.48rem;
  font-weight: 800;
  flex-shrink: 0;
}

.sp-user strong {
  display: block;
  font-size: 0.52rem;
  line-height: 1.1;
  white-space: nowrap;
}

.sp-user small {
  display: block;
  font-size: 0.44rem;
  color: #9fb7c3;
}

.sp-sos {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d8eaf0;
  color: #07202b;
  font-size: 0.56rem;
  flex-shrink: 0;
}

.sp-hero-bg {
  padding: 6px 8px 13px;
  background: #0c3c4c;
}

.sp-bill-card {
  background: #07202b;
  border: 1px solid #16495c;
  border-radius: 10px;
  padding: 8px;
  color: #ffffff;
}

.sp-hello {
  display: block;
  font-size: 0.48rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.sp-unpaid {
  display: block;
  font-size: 0.46rem;
  font-weight: 700;
  color: #fb7185;
}

.sp-amount {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  margin: 1px 0;
}

.sp-period {
  display: block;
  font-size: 0.45rem;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.sp-pay-btn {
  width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  border: 0;
  background: #d9651d;
  color: #fff;
  font-family: inherit;
  font-size: 0.56rem;
  font-weight: 800;
  cursor: pointer;
}

.sp-pay-btn:hover {
  background: #c25614;
}

.sp-sheet {
  margin-top: -8px;
  border-radius: 12px 12px 0 0;
  background: #ffffff;
  padding: 9px 8px 7px;
}

.sp-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 8px;
}

.sp-q-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  color: #07202b;
  cursor: pointer;
}

.sp-q-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #d8eaf0;
  color: #07202b;
}

.sp-q-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 0.46rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.sp-q-item small {
  font-size: 0.48rem;
  font-weight: 700;
}

.sp-news-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.52rem;
  margin-bottom: 4px;
}

.sp-news-head span {
  color: #64748b;
  font-weight: 700;
}

.sp-news-card {
  padding: 6px 7px;
  border-radius: 8px;
  background: #eef6f9;
  border: 1px solid #d5eaf2;
}

.sp-news-tags {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 2px;
}

.sp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f472b6;
}

.sp-tag-k {
  font-size: 0.42rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}

.sp-tag-p {
  font-size: 0.42rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
}

.sp-news-card strong {
  display: block;
  font-size: 0.52rem;
}

.sp-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 5px 4px;
  border-radius: 10px 10px 0 0;
  background: #07202b;
  color: #94a3b8;
  text-align: center;
  font-size: 0.44rem;
  font-weight: 700;
}

.sp-bottom-nav span.is-active {
  color: #fcd34d;
}

.preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.preview-float {
  animation: gentleFloat 6s ease-in-out infinite;
}

.preview-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent-text);
}

.pill-live,
.pill-pdf {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.preview-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
}

.preview-tab {
  border: 0;
  background: transparent;
  padding: 8px 6px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.preview-tab.is-active {
  background: var(--surface-soft);
  color: var(--accent-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.preview-panel.is-active {
  animation: fadeSlideIn 0.24s ease;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.mini-stat {
  padding: 12px;
  border-radius: 12px;
  background: var(--stat-bg);
  border: 1px solid var(--stat-border);
}

.mini-stat-warn {
  background: var(--stat-warn-bg);
  border-color: var(--stat-warn-border);
}

.mini-stat span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mini-stat strong {
  display: block;
  font-size: 1.15rem;
  margin: 2px 0;
}

.mini-stat small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.demo-list {
  display: grid;
  gap: 10px;
}

.demo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  transition: border-color 0.2s ease;
}

.demo-item:hover {
  border-color: rgba(69, 170, 188, 0.45);
}

.demo-item strong {
  display: block;
  font-size: 0.86rem;
}

.demo-item small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

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

.status-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-pending {
  background: var(--accent-warn-bg);
  color: var(--accent-warn);
}

.status-paid {
  background: var(--accent-ok-bg);
  color: var(--accent-ok);
}

.status-unpaid {
  background: var(--accent-danger-bg);
  color: var(--accent-danger);
}

.receipt-box,
.report-box {
  border: 1px dashed var(--input-border);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface-muted);
}

.receipt-head,
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.receipt-head small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.receipt-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.receipt-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.receipt-meta dt {
  color: var(--text-muted);
}

.receipt-meta dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.receipt-total {
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.receipt-total dd {
  color: var(--accent-text);
  font-weight: 800;
}

.receipt-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.report-rows {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.report-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.text-ok strong {
  color: var(--accent-ok);
}

.text-out strong {
  color: var(--accent-danger);
}

.report-final {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.98rem;
}

/* Value Strip */
.value-strip {
  position: relative;
  z-index: 1;
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.value-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--border);
  padding-right: 14px;
}

.value-metric:last-child {
  border-right: 0;
  padding-right: 0;
}

.value-metric strong {
  font-size: 1.45rem;
  color: var(--accent-text);
  letter-spacing: -0.02em;
}

.value-metric span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Sections & Cards */
.section {
  padding: 62px 0;
  overflow-x: clip;
  scroll-margin-top: 74px;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-header h2:last-child {
  margin-bottom: 0;
}

.section-header p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.cards-3,
.steps-grid,
.features-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card,
.step-card,
.feature-item,
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card-hover {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(69, 170, 188, 0.55);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.feature-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-text);
  margin-bottom: 8px;
}

.card h3,
.step-card h3,
.feature-item h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.card p,
.step-card p,
.feature-item p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 0;
}

.step-num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* Showcase Tampilan Asli Aplikasi SI-RT */
.showcase-grid {
  display: grid;
  grid-template-columns: 1.52fr 0.72fr;
  gap: 24px;
  align-items: center;
}

.real-admin-frame {
  min-width: 0;
  background: #f3f6f9;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #0f172a;
}

.real-admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #0b1622;
  color: #f8fafc;
  border-bottom: 1px solid #1d2d3e;
}

.real-admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.real-admin-brand img {
  border-radius: 7px;
  border: 1px solid rgba(69, 170, 188, 0.35);
}

.real-brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  line-height: 1.1;
}

.real-multi-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid #334e68;
  color: #93c5fd;
  background: rgba(30, 58, 95, 0.45);
}

.real-admin-brand small {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
}

.real-admin-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.real-top-pill {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid #2b4257;
  background: #132535;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.real-top-pill:hover {
  border-color: #45aabc;
}

.real-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #10495c;
  border: 1px solid #45aabc;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.real-admin-body {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
}

.real-sidebar {
  background: #0d1a26;
  color: #cbd5e1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.real-side-title {
  display: block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
  padding: 0 8px;
  margin-bottom: 6px;
}

.real-side-nav {
  display: grid;
  gap: 4px;
}

.real-side-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: left;
}

button.real-side-item {
  cursor: pointer;
}

button.real-side-item:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.real-side-item svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.real-side-item.is-active {
  background: linear-gradient(90deg, #10495c 0%, #165f77 100%);
  color: #ffffff;
  font-weight: 700;
}

.real-rls-box {
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(16, 73, 92, 0.22);
  border: 1px solid rgba(69, 170, 188, 0.25);
}

.real-rls-box strong {
  display: block;
  font-size: 0.68rem;
  color: #7bd8e8;
  margin-bottom: 2px;
}

.real-rls-box small {
  display: block;
  font-size: 0.62rem;
  line-height: 1.35;
  color: #94a3b8;
}

.real-main-canvas {
  min-width: 0;
  padding: 14px;
  background: #f4f7f9;
}

.real-admin-view {
  display: grid;
  gap: 11px;
}

.real-admin-view[hidden] {
  display: none;
}

/* RW Access View (Matches /dashboard#rw-detail-261005) */
.rw-breadcrumb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.rw-breadcrumb-bar strong {
  font-size: 0.78rem;
  color: #0f172a;
}

.rw-breadcrumb-right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.64rem;
  color: #64748b;
}

.rw-edit-pill {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.rw-header-card {
  padding: 13px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.rw-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.rw-pill-dark {
  padding: 2px 8px;
  border-radius: 6px;
  background: #0a222d;
  color: #fb923c;
  font-size: 0.62rem;
  font-weight: 800;
}

.rw-pill-id {
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.62rem;
  font-weight: 700;
}

.rw-pill-status {
  padding: 2px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.62rem;
  font-weight: 700;
}

.rw-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  font-size: 1rem;
  color: #0f172a;
}

.rw-meta-line {
  font-size: 0.66rem;
  color: #475569;
  margin-bottom: 2px;
}

.rw-meta-line:last-child {
  margin-bottom: 0;
}

.rw-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.rw-kpi-card {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.rw-kpi-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
}

.rw-ico-slate { background: #e8eef4; color: #334155; }
.rw-ico-amber { background: #fef3c7; color: #d97706; }
.rw-ico-teal  { background: #dcfce7; color: #0d9488; }
.rw-ico-green { background: #d1fae5; color: #059669; }

.rw-kpi-label {
  display: block;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #64748b;
}

.rw-kpi-card strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.2;
  color: #0f172a;
}

.rw-kas-val {
  color: #059669 !important;
}

.rw-kpi-card small {
  display: block;
  font-size: 0.56rem;
  color: #64748b;
}

.rw-tabs-bar {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  width: fit-content;
}

.rw-tab-pill {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.rw-tab-pill.is-active {
  background: #10495c;
  color: #ffffff;
}

.rw-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.rw-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.rw-table-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.rw-region-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e3f1f6;
  color: #10495c;
  font-size: 0.6rem;
  font-weight: 700;
}

.rw-table-head small {
  display: block;
  font-size: 0.62rem;
  color: #64748b;
}

.rw-filter-chips {
  display: flex;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
}

.rw-filter-chips span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.rw-filter-chips span.is-dark {
  background: #0a222d;
  color: #ffffff;
}

.rw-filter-chips span.is-green {
  color: #15803d;
}

.rw-rt-list {
  display: grid;
  gap: 8px;
}

.rw-rt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.rw-rt-main {
  display: flex;
  align-items: center;
  gap: 9px;
}

.rw-rt-id {
  padding: 3px 7px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.62rem;
  font-weight: 800;
}

.rw-rt-row strong {
  display: block;
  font-size: 0.74rem;
  color: #0f172a;
}

.rw-rt-row small {
  display: block;
  font-size: 0.62rem;
  color: #64748b;
}

.rw-rt-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rw-rt-kas {
  text-align: right;
}

.rw-rt-kas strong {
  color: #059669;
  font-size: 0.74rem;
}

.rt-back-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.real-module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.real-breadcrumb {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}

.real-module-head h3 {
  margin-bottom: 0;
  font-size: 1rem;
  color: #0f172a;
}

.real-report-btn {
  padding: 7px 11px;
  border-radius: 8px;
  border: 0;
  background: #0a222d;
  color: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.real-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.real-kpi-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
}

.real-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.real-kpi-ico {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.56rem;
  font-weight: 800;
  flex-shrink: 0;
}

.real-kpi-ico.ico-ok {
  background: #dcfce7;
  color: #15803d;
}

.real-kpi-ico.ico-warn {
  background: #fef3c7;
  color: #b45309;
}

.real-kpi-ico.ico-bad {
  background: #fee2e2;
  color: #dc2626;
}

.real-kpi-link-row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.real-open-verify-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #2563eb;
  font-family: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
}

.real-kpi-card span {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #64748b;
}

.real-kpi-card strong {
  display: block;
  font-size: 0.78rem;
  color: #0f172a;
  margin: 2px 0;
  white-space: nowrap;
}

.real-kpi-card small {
  display: block;
  font-size: 0.58rem;
  color: #64748b;
}

.text-amber {
  color: #d97706 !important;
}

.text-crimson {
  color: #dc2626 !important;
}

.real-batch-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b1b26 0%, #0d3342 100%);
  color: #fff;
}

.real-batch-copy strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 2px;
}

.real-batch-copy small {
  display: block;
  font-size: 0.66rem;
  color: #cbd5e1;
}

.real-batch-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.real-select-pill {
  padding: 5px 9px;
  border-radius: 7px;
  background: #132836;
  border: 1px solid #2b475c;
  font-size: 0.7rem;
  font-weight: 600;
  color: #e2e8f0;
}

.real-batch-btn {
  padding: 6px 11px;
  border-radius: 7px;
  border: 0;
  background: #10495c;
  color: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.real-batch-btn:hover {
  background: #145e77;
}

.real-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid #dbe4ec;
  padding-bottom: 8px;
}

.real-subtab {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 5px 7px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.real-subtab.is-active {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  border-bottom: 2px solid #10495c;
}

.real-tab-count {
  padding: 1px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.64rem;
}

.real-tab-panel.is-active {
  animation: fadeSlideIn 0.22s ease;
}

.real-panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.82rem;
}

.real-filter-hint {
  font-size: 0.7rem;
  color: #64748b;
}

.real-blue-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 0;
  background: #2563eb;
  color: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.real-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.real-rule-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 9px;
  display: grid;
  gap: 6px;
}

.real-rule-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.real-cat-chip {
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 2px 5px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #1d4ed8;
}

.real-active-chip {
  font-size: 0.56rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  flex-shrink: 0;
}

.real-rule-card strong {
  font-size: 0.74rem;
  color: #0f172a;
}

.real-rule-price {
  font-size: 0.84rem;
  font-weight: 800;
  color: #2563eb;
}

.real-rule-price small {
  font-size: 0.58rem;
  font-weight: 500;
  color: #64748b;
}

.real-rule-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: #64748b;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.real-rule-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding-top: 4px;
}

.real-rule-edit,
.real-rule-del {
  padding: 4px 8px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.64rem;
  font-weight: 700;
  cursor: pointer;
}

.real-rule-edit {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.real-rule-del {
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #dc2626;
}

.real-invoice-list {
  display: grid;
  gap: 8px;
}

.real-invoice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}

.real-invoice-row strong {
  display: block;
  font-size: 0.76rem;
  color: #0f172a;
}

.real-invoice-row small {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
}

.real-row-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.real-status-unpaid {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.64rem;
  font-weight: 700;
}

.real-status-paid {
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.64rem;
  font-weight: 700;
}

.real-status-pending {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.64rem;
  font-weight: 700;
}

.real-mini-btn {
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.real-teal-btn {
  padding: 5px 10px;
  border-radius: 7px;
  border: 0;
  background: #10495c;
  color: #fff;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

/* Mobile Phone Showcase (Real Portal Warga) */
.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-frame {
  width: 100%;
  max-width: 316px;
  background: #090e17;
  border: 2px solid #2b3d57;
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.phone-notch {
  width: 90px;
  height: 6px;
  border-radius: 999px;
  background: #233249;
  margin: 2px auto 10px;
}

.real-phone-screen {
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  color: #0f172a;
}

.real-phone-screen[hidden] {
  display: none;
}

.real-phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  background: #07202b;
  color: #ffffff;
}

.real-phone-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.real-phone-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #10495c;
  border: 2px solid #cbd5e1;
  font-size: 0.66rem;
  font-weight: 800;
  flex-shrink: 0;
}

.real-phone-user strong {
  display: block;
  font-size: 0.72rem;
  line-height: 1.15;
}

.real-phone-user small {
  display: block;
  font-size: 0.58rem;
  color: #9fb7c3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.real-phone-sos {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d8eaf0;
  color: #07202b;
  flex-shrink: 0;
}

.real-phone-hero-wrap {
  padding: 8px 12px 20px;
  background: #0c3c4c;
}

.real-phone-bill-hero {
  background: #07202b;
  border: 1px solid #16495c;
  border-radius: 14px;
  padding: 12px;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.real-hello {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.real-unpaid-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  color: #fb7185;
}

.real-hero-amount {
  display: block;
  font-size: 1.38rem;
  font-weight: 800;
  margin: 2px 0;
}

.real-hero-period {
  display: block;
  font-size: 0.64rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.real-orange-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: #d9651d;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.real-orange-btn:hover {
  background: #c25614;
}

.real-phone-sheet {
  margin-top: -12px;
  border-radius: 16px 16px 0 0;
  background: #ffffff;
  padding: 14px 12px 12px;
}

.real-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.real-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  color: #07202b;
  cursor: pointer;
}

.real-quick-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #d8eaf0;
  color: #07202b;
}

.real-quick-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.real-quick-item small {
  font-size: 0.64rem;
  font-weight: 700;
}

.real-info-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  margin-bottom: 6px;
}

.real-info-head span {
  font-size: 0.64rem;
  font-weight: 700;
  color: #64748b;
}

.real-info-wrap {
  padding: 8px;
  border-radius: 12px;
  background: #e7f2f6;
}

.real-info-card {
  padding: 9px 10px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d5eaf2;
}

.real-info-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.real-tag-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.real-pink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f472b6;
}

.real-tag-cat {
  font-size: 0.54rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}

.real-tag-pin-ylw {
  font-size: 0.54rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
}

.real-info-tags small {
  font-size: 0.58rem;
  color: #64748b;
}

.real-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.real-info-card strong {
  display: block;
  font-size: 0.68rem;
  line-height: 1.25;
  margin-bottom: 2px;
}

.real-info-row small {
  display: block;
  font-size: 0.6rem;
  color: #64748b;
}

.real-chevron {
  font-size: 1rem;
  color: #64748b;
  flex-shrink: 0;
}

.real-phone-bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 7px 6px 8px;
  border-radius: 14px 14px 0 0;
  background: #07202b;
  color: #94a3b8;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 700;
}

.real-phone-bottom-nav > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.real-phone-bottom-nav > span.is-active {
  color: #fcd34d;
}

.real-nav-pill {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d8eaf0;
  color: #07202b;
}

/* Mobile Screen B: Tagihan Iuran Rumah Anda */
.real-bills-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.real-back-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.real-bills-header strong {
  display: block;
  font-size: 0.74rem;
}

.real-bills-header small {
  display: block;
  font-size: 0.58rem;
  color: #64748b;
}

.real-bills-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 10px;
  font-size: 0.58rem;
  font-weight: 700;
}

.real-bills-filters span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.real-bills-filters span.is-active {
  background: #10495c;
  border-color: #10495c;
  color: #fff;
}

.real-bills-filters span.is-warn {
  color: #b91c1c;
}

.real-bills-filters span.is-ok {
  color: #15803d;
}

.real-invoice-card {
  margin: 0 10px 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #f6cfc6;
  background: #ffffff;
}

.real-inv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.real-inv-head strong {
  display: block;
  font-size: 0.66rem;
}

.real-inv-head small {
  display: block;
  font-size: 0.56rem;
  color: #64748b;
}

.real-pos-header {
  font-size: 0.56rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 5px;
}

.real-pos-list {
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 8px;
  background: #f8fafc;
  margin-bottom: 8px;
}

.real-pos-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #bae6fd;
  font-size: 0.6rem;
  color: #0f172a;
  cursor: pointer;
}

.real-pos-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.real-pos-check input {
  accent-color: #2563eb;
  margin: 0;
}

.real-inv-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0 8px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.72rem;
  font-weight: 800;
}

.real-pay-teal-btn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 0;
  background: #10495c;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.real-pay-teal-btn:disabled {
  background: #475569;
  cursor: default;
}

.phone-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 320px;
  margin-bottom: 0;
}

/* Trust Banner */
.trust-banner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #131d2f 0%, #135a74 100%);
  border: 1px solid rgba(69, 170, 188, 0.35);
  color: #fff;
  border-radius: 20px;
  padding: 36px;
}

.trust-banner h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  margin-bottom: 12px;
}

.trust-copy p {
  color: #d6e4ee;
  margin-bottom: 0;
}

.trust-points {
  display: grid;
  gap: 14px;
}

.trust-point {
  background: rgba(14, 20, 32, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 14px 16px;
}

.trust-point strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.96rem;
}

.trust-point p {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: #d6e4ee;
}

/* ROI Calculator & Pricing */
.roi-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.roi-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.roi-kk-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 0.88rem;
}

.roi-controls input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.roi-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.roi-result {
  padding: 16px;
  border-radius: 12px;
  background: var(--stat-bg);
  border: 1px solid var(--stat-border);
}

.roi-rec-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-text);
  margin-bottom: 4px;
}

.roi-result strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.roi-result small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.promo-strip {
  max-width: 820px;
  margin: 0 auto 22px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--promo-bg);
  border: 1px solid var(--promo-border);
  color: var(--promo-text);
  text-align: center;
  font-size: 0.94rem;
}

.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

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

.save-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary);
  border: 1px solid var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

.price-head h3 {
  margin-bottom: 6px;
  font-size: 1.18rem;
}

.price-head p {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 44px;
}

.price-amount {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.price-strike {
  display: block;
  font-size: 0.84rem;
  color: var(--strike);
  text-decoration: line-through;
}

.price-amount strong {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.price-period {
  display: block;
  font-size: 0.8rem;
  color: var(--accent-text);
  font-weight: 600;
}

.price-unit-hint {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.price-features li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 800;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 22px 0 0;
}

/* FAQ */
.faq-wrap {
  max-width: 780px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.faq-plus {
  font-size: 1.25rem;
  color: var(--accent-text);
  flex-shrink: 0;
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.faq-answer p {
  margin-bottom: 0;
}

/* Footer CTA */
.cta-footer {
  background: linear-gradient(135deg, #0e1420 0%, #135a74 100%);
  border-top: 1px solid rgba(69, 170, 188, 0.25);
  color: #fff;
  padding: 56px 0;
}

.cta-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.cta-footer h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  margin-bottom: 8px;
}

.cta-footer p {
  color: #d7eef3;
  margin-bottom: 0;
  max-width: 600px;
}

.cta-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.support-note {
  color: #b7e2eb;
  font-size: 0.78rem;
  text-align: right;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p {
  margin-bottom: 0;
}

/* Toast & Back to Top */
.toast-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 70;
  max-width: min(90vw, 400px);
  padding: 12px 16px;
  border-radius: 12px;
  background: #0e1420;
  border: 1px solid var(--accent);
  color: #f1f5f9;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  animation: fadeSlideIn 0.2s ease;
}

.toast-banner[hidden] {
  display: none;
}

.scroll-top-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(69, 170, 188, 0.45);
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  animation: fadeSlideIn 0.2s ease;
}

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.scroll-top-btn[hidden] {
  display: none;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 10, 18, 0.72);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(100%, 480px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  animation: fadeSlideIn 0.2s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-header h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.modal-close {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 14px;
}

.modal-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.modal-form input,
.modal-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.modal-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0;
}

.modal-hint a {
  color: var(--accent-text);
  font-weight: 700;
  text-decoration: underline;
}

/* Scroll Reveal & Scroll Depth */
.gsap-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.04em 0 0.14em;
  margin: -0.04em 0 -0.14em;
}

.gsap-word {
  display: inline-block;
  will-change: transform, opacity;
}

.has-anim .reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger, 0ms),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger, 0ms);
}

.has-anim .reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.has-anim .reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) 120ms,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1) 120ms;
}

.has-anim .reveal.is-visible,
.has-anim .reveal-left.is-visible,
.has-anim .reveal-right.is-visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(69, 170, 188, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(69, 170, 188, 0); }
  100% { box-shadow: 0 0 0 0 rgba(69, 170, 188, 0); }
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-24px, 18px) scale(1.06); }
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

@keyframes growBar {
  from { width: 0; }
  to { width: var(--w, 80%); }
}

@media (prefers-reduced-motion: reduce) {
  .has-anim .reveal,
  .has-anim .reveal-left,
  .has-anim .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .preview-float,
  .hero-glow-orb,
  .pulse-dot {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 1140px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .nav-links,
  .hide-mobile {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .showcase-grid,
  .roi-card,
  .trust-banner,
  .cards-3,
  .steps-grid,
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    max-width: 640px;
    width: 100%;
    margin-inline: auto;
  }

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

  .value-metric {
    border-right: 0;
    padding-right: 0;
  }

  .cta-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-footer-actions {
    align-items: flex-start;
  }

  .support-note {
    text-align: left;
  }

  .price-head p {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .real-admin-body {
    grid-template-columns: 1fr;
  }

  .real-sidebar {
    display: none;
  }

  .rw-kpi-grid,
  .real-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .real-rules-grid {
    grid-template-columns: 1fr;
  }

  .rw-breadcrumb-bar,
  .rw-table-head,
  .rw-rt-row,
  .real-batch-banner,
  .real-module-head,
  .real-invoice-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .rw-rt-right,
  .real-batch-controls {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero-stage {
    padding: 8px 0 12px;
  }

  .stage-glass-ring,
  .stage-pedestal,
  .stage-sphere-pearl,
  .stage-monitor-stand {
    display: none;
  }

  .stage-monitor {
    width: 340px;
    margin-inline: auto;
    transform: none;
  }

  .stage-monitor-screen {
    width: 340px;
    height: 206px;
    border-width: 6px;
  }

  .stage-monitor-canvas {
    transform: scale(0.335);
  }

  .stage-phone {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -22px auto 0;
    transform: none;
  }

  .billing-toggle {
    flex-wrap: wrap;
  }

  .value-strip,
  .form-row,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .demo-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-banner {
    padding: 24px 20px;
  }

  .navbar-inner {
    min-height: 62px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    font-size: 0.96rem;
  }

  .brand-text small {
    font-size: 0.64rem;
  }

  .nav-actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .nav-actions .btn-sm {
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .theme-toggle,
  .menu-toggle {
    width: 36px;
    height: 36px;
    padding: 0 8px;
  }
}

@media (max-width: 440px) {
  .brand-text small {
    display: none;
  }
}
