/* ==========================================================================
   xoreg — Relay-Inspired Black & Electric Lime Light-Stream Studio
   Continuous fiber-optic canvas backdrop + editorial serif/sans + glass UI
   ========================================================================== */
:root {
  --r-bg: #050604;
  --r-glass: rgba(13, 16, 11, 0.72);
  --r-glass-strong: rgba(17, 21, 14, 0.86);
  --r-border: rgba(255, 255, 255, 0.11);
  --r-border-lime: rgba(var(--xr-accent-rgb), 0.38);
  --r-lime: var(--xr-accent);
  --r-lime-hover: var(--xr-hover);
  --r-text: #F4F5F0;
  --r-muted: #A1A69B;

  /* Dark Obsidian & Pure Lime-Green Tokens */
  --bg-page: #050604;
  --bg-white: #0C0F0A;
  --bg-soft: #131710;
  --text-main: #F4F5F0;
  --text-body: #D4D7CE;
  --text-muted: #92978B;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);
  --brand-50: rgba(var(--xr-accent-rgb), 0.11);
  --brand-100: rgba(var(--xr-accent-rgb), 0.25);
  --brand-500: var(--xr-accent);
  --brand-600: var(--xr-accent);
  --live-dark: var(--xr-accent);
  --live-bg: rgba(var(--xr-accent-rgb), 0.14);
  --danger: #FB7185;

  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body.app-body {
  margin: 0;
  background: var(--r-bg);
  color: var(--r-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.is-hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 10px; z-index: 100;
  background: var(--r-lime); color: #050604; padding: 10px 16px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 14px; }
:focus-visible { outline: 2px solid var(--r-lime); outline-offset: 2px; }

.container { width: 100%; max-width: 100%; margin: 0 auto; padding-inline: clamp(16px, 2.6vw, 48px); }
.mt-20 { margin-top: 20px; }
.w-full { width: 100%; }

/* Global Cursor-Interactive Dot-Grid + Animated SVG Data-Flow & Orbital Background (Hijau Murni) */
.view-shell { position: relative; min-height: 100vh; }
.dot-grid-bg {
  background-color: #050604;
}
.bg-interactive-grid {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; display: block;
}
.bg-tech-svg {
  position: fixed; inset: -18px; width: calc(100% + 36px); height: calc(100% + 36px);
  pointer-events: none; z-index: 1;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.anim-spin-bg { animation: spinSlow 36s linear infinite; transform-origin: 1140px 240px; }
.anim-spin-bg-rev { animation: spinSlow 44s linear infinite reverse; transform-origin: 240px 680px; }
@keyframes dataFlowBg { to { stroke-dashoffset: -64; } }
.anim-data-flow { stroke-dasharray: 8 8; animation: dataFlowBg 2.2s linear infinite; }
.anim-data-flow-slow { stroke-dasharray: 6 10; animation: dataFlowBg 3.4s linear infinite reverse; }
.site-header, .home-main, .site-footer { position: relative; z-index: 2; }

/* Animations & Traveling Pure-Green Neon Border Beam */
@property --beam-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes neonOrbit {
  from { --beam-angle: 0deg; }
  to { --beam-angle: 360deg; }
}
@keyframes dashFlow { to { stroke-dashoffset: -24; } }
@keyframes shimmerSweep { 0% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(220%) skewX(-20deg); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes confettiFall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(75px) rotate(260deg); opacity: 0; }
}
.anim-dash { stroke-dasharray: 6 6; animation: dashFlow 1.4s linear infinite; }
.lime-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--r-lime); display: inline-block; animation: pulseDot 2s infinite; }

.tilt-glass-window,
.glass-panel,
.tpl-card,
.flow-node.node-active,
.flow-node.node-lime-border {
  position: relative;
}

.tilt-glass-window::before,
.glass-panel::before,
.tpl-card::before,
.flow-node.node-active::before,
.flow-node.node-lime-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 240deg,
    rgba(var(--xr-accent-rgb), 0.22) 282deg,
    rgba(var(--xr-accent-rgb), 0.78) 322deg,
    var(--xr-accent) 340deg,
    rgba(var(--xr-accent-rgb), 0.42) 353deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
  animation: neonOrbit 5.5s linear infinite;
}

.glass-panel:nth-child(2n)::before,
.tpl-card:nth-child(2n)::before {
  animation-delay: -2.2s;
  animation-duration: 6.4s;
}
.tpl-card:nth-child(3n)::before {
  animation-delay: -4.1s;
  animation-duration: 5.8s;
}
.flow-node.node-lime-border::before {
  animation-delay: -2.8s;
}
.flow-node.flow-node-prompt::before {
  animation-delay: -1.1s;
}

@media (prefers-reduced-motion: reduce) {
  .anim-spin-bg, .anim-spin-bg-rev, .anim-data-flow, .anim-data-flow-slow, .anim-dash:not(.tilt-glass-window *), .lime-dot:not(.tilt-glass-window *),
  .glass-panel::before, .tpl-card::before {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Interactive 4-Step Animated Tutorial Stage */
.tutorial-panel { margin-bottom: 24px; padding: 24px; }
.tut-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tut-head-actions { display: flex; align-items: center; gap: 8px; }
.tut-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: stretch; }
.tut-steps-col { display: flex; flex-direction: column; gap: 8px; }
.tut-step-btn {
  width: 100%; text-align: left; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--r-border); background: rgba(255,255,255,0.02);
  color: var(--r-muted); cursor: pointer; font-family: inherit;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.tut-step-btn:hover { border-color: rgba(var(--xr-accent-rgb), 0.35); }
.tut-step-btn.is-active { background: rgba(var(--xr-accent-rgb), 0.07); border-color: var(--r-border-lime); color: var(--r-text); }
.tut-step-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tut-num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--r-lime); }
.tut-step-top strong { font-size: 0.85rem; color: var(--r-text); }
.tut-step-btn p { margin: 0 0 8px; font-size: 0.78rem; color: var(--r-muted); }
.tut-bar-track { display: block; width: 100%; height: 3px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.tut-bar-fill { display: block; width: 0%; height: 100%; background: var(--r-lime); border-radius: 999px; }
.tut-step-btn.is-active .tut-bar-fill { animation: tutBarRun 3.6s linear forwards; }
.tutorial-panel.is-paused .tut-step-btn.is-active .tut-bar-fill { animation-play-state: paused; }
@keyframes tutBarRun { from { width: 0%; } to { width: 100%; } }

.tut-stage-screen {
  border-radius: 14px; border: 1px solid var(--r-border); background: #080A06;
  overflow: hidden; display: flex; flex-direction: column;
}
.tut-chrome {
  height: 34px; padding: 0 12px; background: #10130D; border-bottom: 1px solid var(--r-border);
  display: flex; align-items: center; justify-content: space-between;
}
.tut-addr { font-family: var(--font-mono); font-size: 10.5px; color: var(--r-muted); }
.tut-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--r-lime); }
.tut-viewport { position: relative; flex: 1; min-height: 252px; padding: 18px; display: grid; align-items: center; }

.tut-cursor {
  position: absolute; top: 0; left: 0; z-index: 15; pointer-events: none;
  left: var(--cx, 22%); top: var(--cy, 68%);
  transition: left 0.65s cubic-bezier(0.22, 1, 0.36, 1), top 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.tut-click-ring {
  position: absolute; top: -9px; left: -8px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--xr-accent); opacity: 0; transform: scale(0.4);
}
.tut-cursor.is-clicking .tut-click-ring { animation: tutClickPing 0.55s ease-out; }
@keyframes tutClickPing {
  0% { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.8); }
}

.tut-scene { display: none; flex-direction: column; gap: 10px; animation: tutFadeIn 0.35s ease; }
.tut-scene.is-active { display: flex; }
@keyframes tutFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Authentic Real-UI Miniature Scenes */
.real-mini-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--r-border);
  font-size: 9.5px; color: var(--r-muted);
}
.rm-brand { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: #fff; }
.rm-x { width: 16px; height: 16px; border-radius: 4px; background: var(--r-lime); color: #050604; font-style: normal; font-weight: 800; display: grid; place-items: center; font-size: 9px; }
.rm-right { display: inline-flex; align-items: center; gap: 6px; }
.rm-right b { padding: 2px 7px; border-radius: 999px; background: var(--r-lime); color: #050604; }
.real-mini-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; align-items: center; padding: 6px 4px; }
.rmh-pill { display: inline-block; font-family: var(--font-mono); font-size: 8.5px; color: var(--r-muted); border: 1px solid var(--r-border); padding: 2px 7px; border-radius: 999px; margin-bottom: 6px; }
.rmh-h1 { font-size: 1.05rem; font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 8px; }
.rmh-h1 em { font-family: var(--font-serif); font-weight: 400; }
.rmh-input { font-family: var(--font-mono); font-size: 9px; color: var(--r-muted); padding: 5px 8px; border-radius: 7px; border: 1px solid var(--r-border); background: rgba(255,255,255,0.02); margin-bottom: 8px; }
.rmh-input strong { color: #fff; } .rmh-input span { color: var(--r-lime); }
.rmh-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.rmh-btn-lime { padding: 4px 10px; border-radius: 999px; background: var(--r-lime); color: #050604; font-size: 9.5px; font-weight: 700; }
.rmh-btn-ghost { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--r-border); color: var(--r-text); font-size: 9.5px; }
.rmh-right { padding: 10px; border-radius: 10px; border: 1px solid var(--r-border-lime); background: rgba(255,255,255,0.03); display: flex; flex-direction: column; gap: 10px; }
.rmh-build-head { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 8.5px; color: var(--r-muted); }
.rmh-build-head em { font-style: normal; color: var(--r-lime); }
.rmh-nodes { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 8px; color: var(--r-muted); flex-wrap: wrap; }
.rmh-nodes i { font-style: normal; padding: 3px 6px; border-radius: 5px; border: 1px solid var(--r-border); color: #fff; }
.rmh-nodes i.is-lime { border-color: var(--r-lime); color: var(--r-lime); }

.real-mini-modal { padding: 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255,255,255,0.03); display: flex; flex-direction: column; gap: 8px; }
.rmm-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.rmm-head strong { font-size: 11px; color: #fff; }
.rmm-head small { font-family: var(--font-mono); font-size: 8.5px; color: var(--r-lime); }
.rmm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: var(--font-mono); font-size: 9px; color: var(--r-muted); }
.rmm-fields span { padding: 4px 7px; border-radius: 6px; border: 1px solid var(--r-border); background: rgba(0,0,0,0.25); }
.rmm-fields b { color: #fff; }
.rmm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rmm-tpl { padding: 6px 8px; border-radius: 7px; border: 1px solid var(--r-border); background: rgba(255,255,255,0.02); display: flex; flex-direction: column; gap: 2px; }
.rmm-tpl b { font-size: 9.5px; color: #fff; }
.rmm-tpl small { font-family: var(--font-mono); font-size: 8px; color: var(--r-lime); }
.rmm-tpl.is-picked { border-color: var(--r-lime); background: rgba(var(--xr-accent-rgb), 0.10); }
.rmm-tpl.is-pro { border-style: dashed; }
.rmm-tpl.is-pro small { color: #FBBF24; }
.rmm-foot { display: flex; justify-content: flex-end; }

.real-mini-ed { border-radius: 10px; border: 1px solid var(--r-border); overflow: hidden; background: #0B0D09; }
.rme-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 9px; background: #0C0F0A; border-bottom: 1px solid var(--r-border); font-size: 9px; color: var(--r-muted); }
.rme-top b { color: #fff; }
.rme-pub-btn { padding: 3px 8px; border-radius: 6px; background: var(--r-lime); color: #050604; font-weight: 700; font-size: 9px; }
.rme-body { display: grid; grid-template-columns: 112px 1fr 90px; min-height: 156px; }
.rme-left { padding: 7px; border-right: 1px solid var(--r-border); background: #0C0F0A; display: flex; flex-direction: column; gap: 5px; }
.rme-tabs { display: flex; gap: 4px; font-size: 7.5px; color: var(--r-muted); border-bottom: 1px solid var(--r-border); padding-bottom: 4px; }
.rme-tabs .on { color: var(--r-lime); }
.rme-logo-box { display: flex; align-items: center; gap: 5px; padding: 4px; border-radius: 5px; border: 1px dashed var(--r-lime); font-size: 8px; color: #fff; }
.rme-inp { padding: 3px 5px; border-radius: 4px; border: 1px solid var(--r-border); font-size: 8px; color: #D4D7CE; }
.rme-center { padding: 10px; background: #07070A; display: flex; flex-direction: column; justify-content: space-between; }
.rme-can-head { display: flex; justify-content: space-between; font-size: 8.5px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 5px; }
.rme-can-head small { color: var(--r-muted); font-size: 7.5px; }
.rme-can-hero { text-align: center; padding: 16px 6px; }
.rme-can-h1 { padding: 4px 6px; border: 1.5px dashed var(--r-lime); border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.rme-can-cta { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--r-lime); color: #050604; font-size: 8.5px; font-weight: 700; }
.rme-right { padding: 7px; border-left: 1px solid var(--r-border); background: #0C0F0A; display: flex; flex-direction: column; gap: 6px; }
.rme-ai-h { display: flex; align-items: center; gap: 4px; font-size: 8.5px; font-weight: 700; color: #fff; }
.rme-ai-b { font-family: var(--font-mono); font-size: 7.5px; color: var(--r-lime); line-height: 1.3; }

.real-mini-pub-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--r-border); background: rgba(255,255,255,0.03); font-size: 9.5px; color: var(--r-muted); }
.real-mini-pub-top b { color: #fff; }
.real-mini-pub-card { padding: 12px; border-radius: 11px; border: 1px solid var(--r-border-lime); background: rgba(var(--xr-accent-rgb), 0.04); display: flex; flex-direction: column; gap: 7px; text-align: center; }
.rmp-badge { display: inline-block; margin: 0 auto; padding: 2px 9px; border-radius: 999px; background: rgba(var(--xr-accent-rgb),0.16); color: var(--r-lime); font-family: var(--font-mono); font-size: 9px; font-weight: 700; }
.rmp-title { font-size: 12px; font-weight: 700; color: #fff; }

.ts-deploy-steps { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.ts-dep-row { display: flex; justify-content: space-between; padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,0.03); border: 1px solid var(--r-border); font-size: 10px; color: #D4D7CE; }
.ts-dep-row em { font-style: normal; font-family: var(--font-mono); color: var(--r-lime); font-weight: 700; }
.ts-live-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: rgba(var(--xr-accent-rgb), 0.12); border: 1px solid var(--r-border-lime); font-family: var(--font-mono); font-size: 10.5px; color: #fff; }
.ts-live-banner strong { color: var(--r-lime); }

[data-theme="light"] .rm-brand,
[data-theme="light"] .rmh-h1,
[data-theme="light"] .rmh-input strong,
[data-theme="light"] .rmm-head strong,
[data-theme="light"] .rmm-fields b,
[data-theme="light"] .rmm-tpl b,
[data-theme="light"] .rme-top b,
[data-theme="light"] .rme-logo-box,
[data-theme="light"] .real-mini-pub-top b,
[data-theme="light"] .rmp-title,
[data-theme="light"] .ts-live-banner { color: #0A140C; }
[data-theme="light"] .rmm-head small,
[data-theme="light"] .rmm-tpl small,
[data-theme="light"] .rme-tabs .on,
[data-theme="light"] .rme-ai-b,
[data-theme="light"] .ts-dep-row em,
[data-theme="light"] .ts-live-banner strong,
[data-theme="light"] .rmp-badge,
[data-theme="light"] .rmh-build-head em,
[data-theme="light"] .rmh-input span { color: var(--xr-ink); }
[data-theme="light"] .real-mini-modal,
[data-theme="light"] .rmm-tpl,
[data-theme="light"] .ts-dep-row,
[data-theme="light"] .real-mini-pub-top,
[data-theme="light"] .rmh-right { background: #FFFFFF; color: #1E291F; }
[data-theme="light"] .real-mini-ed,
[data-theme="light"] .rme-left,
[data-theme="light"] .rme-right { background: #F4F7F4; }
[data-theme="light"] .rme-inp { color: #334137; }
@media (max-width: 720px) {
  .real-mini-hero, .rme-body, .rmm-grid { grid-template-columns: 1fr; }
  .rme-left, .rme-right { display: none; }
}
[data-theme="light"] .ts-edit-outline,
[data-theme="light"] .ts-pub-top,
[data-theme="light"] .ts-live-banner { color: #0A140C; }
[data-theme="light"] .tut-num,
[data-theme="light"] .tut-badge,
[data-theme="light"] .ts-tpl-box.is-picked em,
[data-theme="light"] .ts-tag-chip,
[data-theme="light"] .ts-chat-b,
[data-theme="light"] .ts-mcp-box code,
[data-theme="light"] .ts-dep-row em,
[data-theme="light"] .ts-live-banner strong { color: var(--xr-ink); }
[data-theme="light"] .tut-stage-screen { background: #F4F7F4; }
[data-theme="light"] .tut-chrome { background: #E9EFE9; }
[data-theme="light"] .ts-tpl-box,
[data-theme="light"] .ts-ed-bar,
[data-theme="light"] .ts-hero-edit,
[data-theme="light"] .ts-ai-chat,
[data-theme="light"] .ts-mcp-box,
[data-theme="light"] .ts-dep-row { background: #FFFFFF; color: #1E291F; }
[data-theme="light"] .ts-media-pill { background: #FFFFFF; color: #334137; }
[data-theme="light"] .tut-bar-track { background: rgba(10, 20, 12, 0.10); }

@media (max-width: 900px) {
  .tut-grid { grid-template-columns: 1fr; }
  .ts-tpl-row, .ts-ai-split { grid-template-columns: 1fr; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 6, 4, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-lime-badge {
  width: 28px; height: 28px; border-radius: 7px; background: var(--r-lime);
  display: grid; place-items: center;
}
.brand-wordmark { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 26px); }
.nav-links a { text-decoration: none; color: #C8CDC2; font-size: 0.85rem; font-weight: 500; transition: color 0.15s ease; }
.nav-links a:hover { color: #FFFFFF; }

.header-right { display: flex; align-items: center; gap: 10px; }
.status-pill-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--r-border);
  color: #E4E7DF; cursor: pointer; font-family: inherit;
}
.status-pill-btn:hover { border-color: var(--r-border-lime); }
.mono-sm { font-family: var(--font-mono); font-size: 0.75rem; }
.mono-muted { font-family: var(--font-mono); font-size: 0.78rem; color: var(--r-muted); }
.mono-lime { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--r-lime); }
.dash-chip-count {
  padding: 1px 6px; border-radius: 999px; background: rgba(var(--xr-accent-rgb), 0.18);
  color: var(--r-lime); font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
}

/* Sliding Capsule Theme Switch (Dark <-> Light) */
.theme-capsule-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 5px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--bg-soft);
  color: var(--text-main); font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease;
}
.theme-capsule-btn:hover { border-color: var(--r-lime); }
.tc-track {
  position: relative; width: 34px; height: 18px; border-radius: 999px;
  background: rgba(var(--xr-accent-rgb), 0.20); border: 1px solid rgba(var(--xr-accent-rgb), 0.45);
  display: inline-block; flex-shrink: 0; transition: background-color 0.2s ease;
}
.tc-knob {
  position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--xr-accent); transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}
[data-theme="light"] .tc-track { background: rgba(var(--xr-accent-rgb), 0.35); border-color: var(--xr-strong); }
[data-theme="light"] .tc-knob { transform: translateX(16px); background: var(--xr-strong); }

.btn-lime-pill {
  padding: 8px 18px; border-radius: 999px; border: none;
  background: var(--r-lime); color: #050604;
  font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.btn-lime-pill:hover { background: var(--r-lime-hover); transform: translateY(-1px); }

.btn-mobile-menu {
  display: none; padding: 8px; border-radius: 10px; border: 1px solid var(--r-border);
  background: rgba(255,255,255,0.05); color: #fff; cursor: pointer;
}
.mobile-drawer { background: #0C0E0A; border-top: 1px solid var(--r-border); padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.mobile-drawer a { padding: 9px 10px; border-radius: 8px; text-decoration: none; color: #E4E7DF; font-size: 0.9rem; font-weight: 500; }
.mobile-drawer-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid var(--r-border); margin-top: 6px; }

.btn-dark-outline {
  width: 100%; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--r-border);
  background: rgba(255,255,255,0.04); color: #fff; font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.btn-dark-outline:hover { border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.08); }

/* Hero Section */
.hero-section { padding: clamp(44px, 5vw, 80px) 0 clamp(52px, 6vw, 92px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 3.5vw, 64px); align-items: center; }

.mono-kicker-pill, .mono-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--r-muted);
}
.mono-kicker-pill {
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--r-border);
  margin-bottom: 22px;
}

.hero-h1 {
  font-size: clamp(2.05rem, 4.6vw, 4.1rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 18px; color: #FFFFFF;
}
.hero-h1 .serif-italic { display: block; }
.serif-italic {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  letter-spacing: -0.01em; color: #FFFFFF;
}

.hero-lead { margin: 0 0 26px; font-size: clamp(0.95rem, 1.1vw, 1.06rem); color: var(--r-muted); max-width: 560px; }

.hero-cta-form { display: flex; flex-direction: column; gap: 12px; max-width: 540px; margin-bottom: 16px; }
.hero-domain-box {
  display: flex; align-items: center; padding: 10px 16px; border-radius: 12px;
  background: var(--r-glass); border: 1px solid var(--r-border); backdrop-filter: blur(14px);
}
.hero-domain-box:focus-within { border-color: var(--r-lime); }
.hero-domain-box input {
  flex: 1; border: none; background: transparent; outline: none; padding-inline: 4px;
  font-family: var(--font-mono); font-size: 0.88rem; font-weight: 600; color: #fff;
}
.hero-domain-box input::placeholder { color: #71766C; }

.hero-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-lime-lg {
  padding: 12px 22px; border-radius: 999px; border: none; background: var(--r-lime); color: #050604;
  font-family: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer;
}
.btn-lime-lg:hover { background: var(--r-lime-hover); }
.btn-glass-lg {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--r-border);
  background: var(--r-glass); color: #F4F5F0; font-family: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  backdrop-filter: blur(12px);
}
.btn-glass-lg:hover { border-color: rgba(255,255,255,0.28); }
.play-tri { font-size: 10px; color: var(--r-lime); }

.hero-footnote { margin: 0; font-family: var(--font-mono); font-size: 0.72rem; color: #8A8F84; }

/* Tilting 3D Glass Window */
.tilt-stage-wrap { perspective: 1300px; }
.tilt-glass-window {
  background: var(--r-glass-strong);
  border: none;
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(22px);
  transform-style: preserve-3d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 32px 70px -12px rgba(0, 0, 0, 0.96),
    0 42px 96px -22px rgba(var(--xr-accent-rgb), 0.18),
    0 12px 32px -8px rgba(var(--xr-accent-rgb), 0.10);
  transform: rotateY(-7deg) rotateX(3deg) translateY(-6px);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.tilt-stage-wrap:hover .tilt-glass-window {
  transform: rotateY(-1deg) rotateX(1deg) translateY(-10px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 38px 82px -12px rgba(0, 0, 0, 0.98),
    0 48px 110px -20px rgba(var(--xr-accent-rgb), 0.24),
    0 16px 38px -8px rgba(var(--xr-accent-rgb), 0.14);
}

.tgw-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--r-border); }
.tgw-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--r-muted); }
.tgw-title strong { color: #fff; }
.tgw-running { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--r-lime); }

/* Alur node: dua baris yang sama tinggi. Kartu Prompt di tengah kedua baris, kartu AI + MCP dan Publish Edge
   sama-sama di baris 1, sehingga garis hijau selalu lurus ke tengah kartu di semua lebar layar. */
.tgw-flow-area {
  display: grid; grid-template-columns: 1fr 48px 1.15fr 38px 1fr; grid-template-rows: 1fr 1fr;
  align-items: stretch; column-gap: 0; row-gap: 0;
  padding: 22px 0; border-bottom: 1px solid var(--r-border);
  transform-style: preserve-3d;
}
.flow-col-left { grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: center; }
.flow-col-left > .flow-node { flex: 1; }
.flow-connector-a { grid-column: 2; grid-row: 1 / span 2; }
.flow-connector-b { grid-column: 4; grid-row: 1; }
.flow-col-mid { display: contents; }
.flow-col-mid > .flow-node { grid-column: 3; margin-block: 5px; }
.flow-col-mid > .flow-node:nth-child(1) { grid-row: 1; }
.flow-col-mid > .flow-node:nth-child(2) { grid-row: 2; }
.flow-col-right { grid-column: 5; grid-row: 1; display: flex; }
.flow-col-right > .flow-node { flex: 1; margin-block: 5px; display: flex; flex-direction: column; justify-content: center; }
.flow-node {
  padding: 10px 12px; border-radius: 11px;
  background: linear-gradient(180deg, rgba(24, 28, 22, 0.96), rgba(14, 17, 13, 0.96));
  border: none;
  transform: translateY(-2px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 26px -6px rgba(0, 0, 0, 0.9),
    0 6px 14px -3px rgba(0, 0, 0, 0.72),
    0 10px 24px -10px rgba(var(--xr-accent-rgb), 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.node-active {
  background: linear-gradient(180deg, rgba(28, 35, 21, 0.98), rgba(16, 20, 12, 0.98));
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgba(var(--xr-accent-rgb), 0.48),
    inset 0 1px 0 rgba(var(--xr-accent-rgb), 0.2),
    0 18px 34px -6px rgba(0, 0, 0, 0.94),
    0 12px 28px -8px rgba(var(--xr-accent-rgb), 0.24);
}
.node-lime-border {
  background: linear-gradient(180deg, rgba(24, 29, 20, 0.98), rgba(15, 18, 13, 0.98));
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px var(--r-border-lime),
    inset 0 1px 0 rgba(var(--xr-accent-rgb), 0.16),
    0 16px 30px -6px rgba(0, 0, 0, 0.92),
    0 10px 24px -8px rgba(var(--xr-accent-rgb), 0.18);
}
.node-badge-ok { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--r-lime); }
.node-kicker, .node-kicker-lime { display: block; font-family: var(--font-mono); font-size: 9.5px; color: var(--r-muted); }
.node-kicker-lime { color: var(--r-lime); }
.node-title { font-size: 0.78rem; font-weight: 700; color: #fff; margin: 2px 0; }
.flow-node small { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--r-muted); }
.flow-connector svg { width: 100%; height: 100%; display: block; overflow: visible; }
.flow-connector svg path { vector-effect: non-scaling-stroke; }
/* Semua kartu alur sejajar persis dengan ujung garis, jadi tanpa pergeseran 3D vertikal. */
.tgw-flow-area .flow-node, .tgw-flow-area .node-active, .tgw-flow-area .node-lime-border { transform: none; }

.tgw-logs { padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.tgw-logs-lbl { font-family: var(--font-mono); font-size: 10px; color: var(--r-muted); margin-bottom: 2px; }
.tgw-log-row {
  display: grid; grid-template-columns: 72px 1fr 64px; gap: 8px; align-items: center;
  padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.025);
  font-family: var(--font-mono); font-size: 11px;
}
.log-time { color: #71766C; }
.log-name { color: #E4E7DF; }
.log-ms { text-align: right; color: var(--r-lime); }

/* Ecosystem Strip */
.eco-strip { padding: 26px 0 46px; }
.eco-inner { display: flex; flex-direction: column; gap: 16px; }
.eco-nodes { display: flex; flex-wrap: wrap; gap: 18px; }
.eco-box {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.eco-box span {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--r-glass); border: 1px solid var(--r-border);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #E4E7DF;
}
.eco-box small { font-family: var(--font-mono); font-size: 10.5px; color: var(--r-muted); }

/* Relay Sections */
.relay-section { padding: 84px 0; }
.border-top-hairline { border-top: 1px solid rgba(255,255,255,0.08); }

.split-editorial { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: end; margin-bottom: 36px; }
.split-editorial h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; margin: 10px 0 0; color: #fff; }
.editorial-note { margin: 0; color: var(--r-muted); font-size: 0.96rem; max-width: 460px; }

.bento-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.glass-panel {
  background: var(--r-glass); border: none; border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--r-border);
  padding: 28px; backdrop-filter: blur(18px);
}
.glass-panel h3 { margin: 0 0 8px; font-size: 1.15rem; color: #fff; }
.glass-panel p { margin: 0; font-size: 0.88rem; color: var(--r-muted); }
.gp-num { display: inline-block; font-family: var(--font-mono); font-size: 11px; color: var(--r-lime); margin-bottom: 10px; }

/* Waterfall */
.wf-head { display: flex; justify-content: space-between; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--r-border); }
.wf-bars { display: flex; flex-direction: column; gap: 10px; }
.wf-row { display: grid; grid-template-columns: 100px 1fr 48px; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 11px; color: #D4D7CE; }
.wf-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.wf-fill { display: block; height: 100%; border-radius: 999px; background: var(--r-lime); }
.w-15 { width: 15%; } .w-25 { width: 25%; } .w-40 { width: 40%; } .w-55 { width: 55%; }
.wf-row em { font-style: normal; text-align: right; color: var(--r-muted); }

/* Approval & Isometric Bars */
.approval-head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.approval-msg { padding: 16px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--r-border); }
.approval-msg strong { display: block; font-size: 0.92rem; margin-bottom: 4px; color: #fff; }
.approval-msg p { margin: 0 0 14px; font-size: 0.82rem; }
.approval-btns { display: flex; gap: 8px; }
.btn-lime-xs { padding: 7px 14px; border-radius: 999px; border: none; background: var(--r-lime); color: #050604; font-family: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.btn-glass-xs { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--r-border); background: transparent; color: #E4E7DF; font-family: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; }

.record-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.iso-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 100px; padding-top: 10px; }
.iso-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.iso-b { width: 100%; max-width: 28px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.08)); }
.iso-b.is-lime { background: linear-gradient(180deg, var(--r-lime), rgba(var(--xr-accent-rgb), 0.25)); }
.h-35 { height: 35%; } .h-45 { height: 45%; } .h-55 { height: 55%; } .h-65 { height: 65%; } .h-75 { height: 75%; } .h-95 { height: 95%; }
.iso-col small { font-family: var(--font-mono); font-size: 10px; color: var(--r-muted); }

/* Signature Lime Plate */
.lime-plate-band { padding: 20px 0 30px; }
.lime-focal-plate {
  position: relative; min-height: 220px; border-radius: 22px; background-color: var(--r-lime); color: #050604;
  display: flex; align-items: center; justify-content: center; gap: 28px; padding: 34px 44px;
  box-shadow: 0 28px 70px -20px rgba(var(--xr-accent-rgb), 0.35);
}
/* Titik: jarak tepi band ke titik terluar HARUS sama dengan jarak antartitik.
   Kotak titik dipasang 9px ke dalam, lalu `round` membulatkan sel (~18px) agar pas jumlah bulatnya.
   Titik ada di tengah sel, jadi jarak tepi = 9 + sel/2 ≈ sel (selisih <0,5px) di keempat sisi. */
.lime-focal-plate::before {
  content: ""; position: absolute; inset: 9px; border-radius: 14px; pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(5, 6, 4, 0.19) 1.1px, transparent 1.6px);
  background-size: 18px 18px; background-repeat: round; background-position: 0 0;
}
/* Sorotan kursor: pola titik yang sama persis (sel dan jarak identik) tetapi lebih gelap, hanya tampak di
   lingkaran sekitar kursor lewat masker. --mx/--my diisi skrip. Mati otomatis di layar sentuh/kurangi gerakan. */
.lime-focal-plate::after {
  content: ""; position: absolute; inset: 9px; border-radius: 14px; pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(5, 6, 4, 0.62) 1.7px, transparent 2.2px);
  background-size: 18px 18px; background-repeat: round; background-position: 0 0;
  -webkit-mask-image: radial-gradient(circle 120px at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0,0,0,0.55) 45%, transparent 100%);
          mask-image: radial-gradient(circle 120px at var(--mx, -999px) var(--my, -999px), #000 0%, rgba(0,0,0,0.55) 45%, transparent 100%);
  opacity: 0; transition: opacity 0.25s ease;
}
.lime-focal-plate.is-hot::after { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) { .lime-focal-plate::after { display: none; } }
.lime-focal-plate > * { position: relative; z-index: 1; }
.lime-plate-core {
  flex: none; width: 88px; height: 88px; border-radius: 22px; background: #0B0D08;
  display: grid; place-items: center; box-shadow: 0 18px 34px rgba(0,0,0,0.4);
}
.lime-plate-core svg { width: 42px; height: 42px; }
.lime-plate-copy { max-width: 440px; }
.lime-plate-copy h3 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.12; letter-spacing: -0.025em; }
.lime-plate-copy h3 .serif-italic { color: #050604; }
.lime-plate-copy p { margin: 0; font-size: 0.9rem; color: #1E2806; }
/* Tombol Mulai gratis dan kotak panah sama-sama membuka modal buat situs baru. */
.lime-focal-plate .btn-black-pill { flex: none; padding: 15px 30px; font-size: 1rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.lime-focal-plate .btn-black-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(0,0,0,0.5); }
button.lime-plate-core { border: none; padding: 0; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
button.lime-plate-core:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 24px 40px rgba(0,0,0,0.45); }
.lime-focal-plate .btn-black-pill:focus-visible, button.lime-plate-core:focus-visible { outline: 3px solid #050604; outline-offset: 4px; }
@media (max-width: 760px) {
  .lime-focal-plate { flex-direction: column; text-align: center; gap: 16px; padding: 30px 22px; }
  .lime-plate-core { width: 72px; height: 72px; border-radius: 19px; }
  .lime-plate-core svg { width: 34px; height: 34px; }
}

/* Hub & Region Bars */
.hub-diagram { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.hub-sat {
  width: 42px; height: 42px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--r-border);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: #D4D7CE;
}
.hub-core {
  width: 56px; height: 56px; border-radius: 14px; background: var(--r-lime); color: #050604;
  display: grid; place-items: center; font-weight: 800; font-size: 1.2rem;
}
.hub-core { background: rgba(var(--xr-accent-rgb), 0.08); border: 1px solid var(--r-border); }
.region-bars { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.reg-row { display: grid; grid-template-columns: 78px 1fr 40px; gap: 12px; align-items: center; }
.reg-track { height: 7px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.reg-fill { display: block; height: 100%; border-radius: 999px; background: var(--r-lime); }
.w-48 { width: 48%; } .w-38 { width: 38%; } .w-14 { width: 14%; }

/* Template Gallery */
.filter-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 18px; }
.filter-pill {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--r-border);
  background: rgba(255,255,255,0.03); color: #D4D7CE; font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.filter-pill.is-active { background: var(--r-lime); border-color: var(--r-lime); color: #050604; }

.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 20px; min-height: 520px; }
.tpl-card {
  background: var(--r-glass); border: none; border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--r-border);
  display: flex; flex-direction: column; backdrop-filter: blur(16px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tpl-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--r-border-lime); }
.tpl-thumb-wrap { padding: 12px; background: rgba(0,0,0,0.35); border-bottom: 1px solid var(--r-border); }
.tpl-mini-browser { background: #0A0C08; border-radius: 11px; overflow: hidden; aspect-ratio: 16 / 10; min-height: 188px; display: flex; flex-direction: column; }
.tpl-mini-bar { height: 24px; background: #11140E; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.win-dots { display: flex; gap: 5px; }
.win-dots span { width: 8px; height: 8px; border-radius: 50%; }
.wd-rose { background: #FB7185; } .wd-amber { background: #FBBF24; } .wd-green { background: var(--xr-accent); }
.tpl-mini-url { font-family: var(--font-mono); font-size: 9px; color: #D4D7CE; }
.tpl-iframe-stage { position: relative; flex: 1; overflow: hidden; background: #0B0D09; }
.tpl-iframe-thumb {
  width: 1280px; height: 760px; border: 0;
  transform: scale(var(--thumb-scale, 0.28)); transform-origin: top left;
  pointer-events: none; display: block;
}
.modal-preview-iframe { width: 100%; height: 76vh; border: 0; display: block; background: #fff; }
.ed-live-iframe { width: 100%; height: calc(100vh - 140px); border: 0; display: block; background: #fff; }
.site-mini-iframe-stage { position: relative; flex: 1; overflow: hidden; background: #0B0D09; }
.site-mini-iframe {
  width: 1280px; height: 720px; border: 0;
  transform: scale(var(--thumb-scale, 0.27)); transform-origin: top left;
  pointer-events: none; display: block;
}
.tpl-mini-body { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.tpl-mini-nav { display: flex; justify-content: space-between; border-bottom: 1px solid #F1F5F9; padding-bottom: 4px; margin-bottom: 6px; font-size: 10px; font-weight: 700; }
.tpl-mini-hero { font-size: 12px; font-weight: 700; color: #0F172A; line-height: 1.3; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-mini-cta { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 8.5px; font-weight: 700; color: #fff; }
.tpl-mini-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 8px; border-top: 1px solid #F1F5F9; }
.tpl-mini-srv { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 6px; padding: 4px 5px; }
.tpl-mini-srv b { display: block; font-size: 7.5px; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-mini-srv span { display: block; font-family: var(--font-mono); font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tpl-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.tpl-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tpl-title-row h3 { margin: 0; font-size: 1rem; color: #fff; }
.tpl-badges { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tpl-tier-free { padding: 2px 7px; border-radius: 999px; background: rgba(var(--xr-accent-rgb), 0.16); color: var(--r-lime); font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; }
.tpl-tier-pro { padding: 2px 7px; border-radius: 999px; background: rgba(251, 191, 36, 0.15); color: #FBBF24; font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; }
[data-theme="light"] .tpl-tier-free { color: var(--xr-ink); background: rgba(var(--xr-accent-rgb), 0.35); }
[data-theme="light"] .tpl-tier-pro { color: #B45309; background: rgba(245, 158, 11, 0.18); }
.new-tpl-btn.is-pro-locked { border-style: dashed; opacity: 0.9; }
.new-tpl-btn.is-pro-locked small { color: #FBBF24; }
[data-theme="light"] .new-tpl-btn.is-pro-locked small { color: #B45309; }
.tpl-actions .btn-dark-outline { flex: 1; padding: 8px 14px; font-size: 0.78rem; }
.tpl-cat-tag { padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,0.06); color: #D4D7CE; font-family: var(--font-mono); font-size: 10px; }
.tpl-card-desc { margin: 0; font-size: 0.82rem; color: var(--r-muted); }
.tpl-actions { display: flex; gap: 8px; }
.tpl-actions .btn-lime-pill { flex: 1; }

/* Open Metrics Strip (Relay Signature) */
.metrics-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px;
  padding: 28px 0 40px; border-top: 1px solid var(--r-border); border-bottom: 1px solid var(--r-border);
}
.m-strip-item { display: flex; flex-direction: column; gap: 6px; }
.m-lbl { font-family: var(--font-mono); font-size: 0.72rem; color: var(--r-muted); }
.m-big { font-size: clamp(2.1rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.m-big small { font-size: 1.1rem; font-weight: 500; color: var(--r-muted); }
.m-sub { font-family: var(--font-mono); font-size: 0.72rem; color: var(--r-muted); margin-bottom: 10px; }
.m-spark { width: 100%; height: 44px; }

.led-bars { display: flex; gap: 6px; height: 32px; align-items: flex-end; }
.led-bars i { flex: 1; height: 100%; border-radius: 4px; background: rgba(255,255,255,0.08); display: block; }
.led-bars i.on { background: var(--r-lime); }

.lime-progress-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 14px; }
.lime-progress-bar span { display: block; width: 92%; height: 100%; border-radius: 999px; background: var(--r-lime); }

.quotes-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-top: 32px; }
.q-item { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.q-item p { margin: 0; font-size: 0.88rem; color: #D4D7CE; }
.q-item footer strong { display: block; font-size: 0.82rem; color: #fff; }
.q-item footer span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--r-muted); }

/* Interactive Pricing Meter */
.pricing-meter-card {
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; margin-bottom: 24px;
}
.pm-label { display: block; font-size: 0.95rem; font-weight: 600; color: #fff; margin-bottom: 18px; }
.lime-slider { width: 100%; accent-color: var(--r-lime); cursor: pointer; height: 6px; }
.pm-scale { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--r-muted); }
.pm-right { padding-left: 28px; border-left: 1px solid var(--r-border); display: flex; flex-direction: column; gap: 8px; }
.pm-plan { font-size: 1.15rem; font-weight: 700; color: #fff; }
.pm-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.pm-price-row strong { font-size: 2.1rem; font-weight: 700; color: var(--r-lime); line-height: 1; }
.pm-price-row span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--r-muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.price-popular { border-color: var(--r-border-lime); }
.pop-top-row { display: flex; justify-content: space-between; align-items: center; }
.lime-tag { padding: 2px 9px; border-radius: 999px; background: var(--r-lime); color: #050604; font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.price-big { margin: 14px 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--r-border); }
.price-big strong { font-size: 2.15rem; color: #fff; }
.price-big span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--r-muted); margin-left: 4px; }
.price-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.85rem; color: #D4D7CE; }

/* Bottom Split CTA */
.bottom-cta-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 20px; }
.bottom-brand-card { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.bb-desc { margin: 14px 0 0; font-size: 0.88rem; color: var(--r-muted); max-width: 290px; }
.bb-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.eco-mini-btn {
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--r-border); background: rgba(255,255,255,0.04);
  color: #E4E7DF; font-family: var(--font-mono); font-size: 11px; text-decoration: none; cursor: pointer;
}
.eco-mini-btn:hover { border-color: var(--r-border-lime); }

.lime-cta-card {
  background: var(--r-lime); color: #050604; border-radius: 20px; padding: 34px;
  display: flex; flex-direction: column; gap: 12px;
}
.lime-card-kicker { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: #243008; }
.lime-cta-card h2 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.025em; }
.lime-cta-card h2 .serif-italic { color: #050604; }
.lime-cta-card p { margin: 0 0 8px; font-size: 0.92rem; color: #1E2806; max-width: 480px; }

.lime-cta-form {
  display: flex; gap: 8px; background: rgba(5, 6, 4, 0.08); padding: 6px; border-radius: 999px;
  border: 1px solid rgba(5, 6, 4, 0.16);
}
.lime-cta-form input {
  flex: 1; border: none; background: transparent; outline: none; padding: 8px 14px;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: #050604;
}
.lime-cta-form input::placeholder { color: var(--xr-ink-3); }
.btn-black-pill {
  padding: 10px 20px; border-radius: 999px; border: none; background: #050604; color: #fff;
  font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer;
}

.bottom-status-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--r-border);
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--r-muted);
}
.bottom-status-bar span { display: inline-flex; align-items: center; gap: 8px; }

/* Footer */
.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--r-border); background: rgba(5,6,4,0.85); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; font-size: 0.82rem; color: var(--r-muted); }
.footer-col-main strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 6px; }
.footer-col-main p { margin: 0 0 8px; max-width: 320px; }
.footer-cols { display: flex; gap: 48px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols b { color: #fff; font-size: 0.82rem; margin-bottom: 4px; }
.footer-cols a, .footer-cols button {
  color: var(--r-muted); text-decoration: none; border: none; background: transparent;
  padding: 0; text-align: left; font-family: inherit; font-size: inherit; cursor: pointer;
}
.footer-cols a:hover, .footer-cols button:hover { color: var(--r-lime); }

/* ==========================================================================
   VIEW 2 & 3: DASHBOARD KLIEN & EDITOR VISUAL
   ========================================================================== */
.view-dashboard { display: flex; min-height: 100vh; background: var(--bg-page); color: var(--text-main); }
.dash-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.55); z-index: 30; }
.dash-sidebar { width: 260px; background: var(--bg-white); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; z-index: 40; }
.dash-sb-head { height: 64px; padding: 0 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.dash-brand-btn { display: flex; align-items: center; gap: 10px; border: none; background: transparent; cursor: pointer; text-align: left; }
.dash-brand-btn .xr-logo { height: 31px; }
.dash-brand-sub { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--brand-600); margin-top: 2px; }
.dash-sb-close { display: none; border: none; background: transparent; font-size: 1.4rem; color: var(--text-muted); cursor: pointer; }
.dash-nav { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.dash-nav-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--text-body); font-family: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.dash-nav-btn:hover { background: var(--bg-soft); color: var(--text-main); }
.dash-nav-btn.is-active { background: var(--brand-50); color: var(--r-lime); border-color: rgba(var(--xr-accent-rgb), 0.25); }
.dash-count-pill { font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--brand-100); color: var(--r-lime); }
.dash-plan-box { margin: 12px; padding: 12px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.dash-plan-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dash-plan-name { font-size: 0.78rem; font-weight: 700; color: var(--text-main); }
.dash-plan-active { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--live-dark); }
.dash-quota-txt { margin: 0 0 8px; font-size: 11px; color: var(--text-muted); }
.progress-track { width: 100%; height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; transition: width 0.35s ease; }
.fill-brand { background: var(--brand-500); } .fill-live { background: var(--live-dark); } .fill-dark { background: #3F4739; }
.w-18 { width: 18%; } .w-60 { width: 60%; } .w-82 { width: 82%; }

.dash-main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dash-topbar { height: 64px; background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 20; }
.dash-topbar-left { display: flex; align-items: center; gap: 12px; }
.btn-icon-border { display: none; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-main); cursor: pointer; }
.dash-h1 { margin: 0; font-size: 1.125rem; line-height: 1.2; color: var(--text-main); }
.dash-subtitle { margin: 0; font-size: 11px; color: var(--text-muted); }
.dash-topbar-right { display: flex; align-items: center; gap: 10px; }
.dash-user-chip { display: flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid var(--border); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--r-lime); border: 1px solid var(--brand-100); font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; }
.user-meta strong { display: block; font-size: 0.78rem; line-height: 1.1; color: var(--text-main); }
.user-meta small { display: block; font-size: 10px; color: var(--text-muted); }

.dash-content { padding: clamp(16px, 2.2vw, 32px); max-width: 100%; width: 100%; margin: 0 auto; }
.dash-panel { display: flex; flex-direction: column; gap: 22px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.kpi-card { background: var(--bg-white); padding: 18px; border-radius: 16px; border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; transition: border-color 0.2s ease; }
.kpi-card:hover { border-color: rgba(var(--xr-accent-rgb), 0.45); }
.kpi-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.kpi-val-row { display: flex; align-items: baseline; gap: 8px; }
.kpi-val-row strong { font-size: 1.75rem; line-height: 1.2; color: #fff; }
.kpi-muted { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.kpi-growth { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--live-dark); background: var(--live-bg); padding: 2px 6px; border-radius: 5px; }
.kpi-foot { font-size: 11px; color: var(--text-muted); }
.foot-live { color: var(--live-dark); font-weight: 600; }

.dash-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.dash-card h2, .dash-card h3 { margin: 0 0 4px; font-size: 1.02rem; color: #fff; }
.sub-p { margin: 0 0 16px; font-size: 0.8rem; color: var(--text-muted); }
.table-card { padding: 0; overflow: hidden; }
.card-head-pad { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-head-pad p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.chart-head p { margin: 0; font-size: 0.78rem; color: var(--text-muted); }
.chart-range-tabs { display: inline-flex; background: var(--bg-soft); padding: 4px; border-radius: 10px; border: 1px solid var(--border); }
.range-btn { border: none; background: transparent; padding: 6px 12px; border-radius: 7px; font-family: inherit; font-size: 0.78rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.range-btn.is-active { background: var(--brand-50); color: var(--r-lime); font-weight: 700; }
.chart-wrap { position: relative; }
.chart-svg { width: 100%; height: 176px; overflow: visible; }
.chart-tooltip { position: absolute; z-index: 10; pointer-events: none; background: #050604; border: 1px solid var(--r-border-lime); color: var(--r-lime); padding: 5px 10px; border-radius: 8px; font-family: var(--font-mono); font-size: 11px; transform: translate(-50%, -100%); white-space: nowrap; }

.list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.list-head h2 { margin: 0; font-size: 1.02rem; color: #fff; }
.link-action { border: none; background: transparent; color: var(--r-lime); font-family: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }

.sites-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 18px; }
.site-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.2s ease; }
.site-card:hover { border-color: rgba(var(--xr-accent-rgb), 0.45); }
.site-card-thumb { padding: 12px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.site-mini-screen { border: 1px solid var(--border); border-radius: 9px; overflow: hidden; height: 122px; display: flex; flex-direction: column; }
.site-mini-bar { height: 20px; background: #050604; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 8.5px; color: #D4D7CE; }
.site-mini-content { padding: 10px; flex: 1; }
.site-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.site-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.site-title-row h3 { margin: 0; font-size: 0.95rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-domain-url { margin: 3px 0 0; font-family: var(--font-mono); font-size: 11px; color: var(--brand-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-stats-row { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11px; color: var(--text-muted); }
.site-btns-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.site-btns-sub { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; }
.site-btns-sub button { border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: inherit; font-weight: inherit; color: var(--text-body); }
.site-btns-sub button:hover { color: #fff; }
.site-btns-sub .btn-del { color: var(--danger); }
.pill-live { padding: 2px 8px; border-radius: 999px; background: var(--live-bg); color: var(--live-dark); font-family: var(--font-mono); font-size: 10px; font-weight: 700; border: 1px solid rgba(var(--xr-accent-rgb), 0.30); }
.pill-blocked { padding: 2px 8px; border-radius: 999px; background: rgba(239, 68, 68, 0.14); color: #F87171; font-family: var(--font-mono); font-size: 10px; font-weight: 700; border: 1px solid rgba(248, 113, 113, 0.35); }
[data-theme="light"] .pill-blocked, [data-theme="light"] .site-block-note { color: #B91C1C; }
.site-block-note { margin: 6px 0; padding: 8px 10px; border-radius: 10px; background: rgba(239, 68, 68, 0.10); border: 1px solid rgba(248, 113, 113, 0.35); color: #FCA5A5; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.site-btns-sub button:disabled { opacity: .45; cursor: not-allowed; }
.pill-draft { padding: 2px 8px; border-radius: 999px; background: rgba(245, 158, 11, 0.14); color: #FBBF24; font-family: var(--font-mono); font-size: 10px; font-weight: 700; border: 1px solid rgba(251, 191, 36, 0.28); }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; text-align: left; }
.data-table thead { background: var(--bg-soft); border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--text-muted); }
.data-table th, .data-table td { padding: 12px 20px; color: var(--text-body); }
.data-table tbody tr { border-bottom: 1px solid var(--border); }
.text-right { text-align: right; }

.domain-connect-form { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 12px; align-items: end; margin-bottom: 18px; }
.domain-connect-form label, .settings-form label { display: block; font-size: 11px; font-weight: 700; color: var(--text-body); margin-bottom: 5px; }
.input-field { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); font-family: inherit; font-size: 0.82rem; color: var(--text-main); }
.input-field:focus { outline: none; border-color: var(--r-lime); background: #090B07; }
.input-field.mono { font-family: var(--font-mono); }
.select-auto { width: auto; min-width: 210px; }

.dns-guide-box { padding: 16px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); }
.dns-guide-title { margin: 0 0 10px; font-size: 0.8rem; font-weight: 700; color: #fff; }
.dns-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dns-rec-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; }
.dns-type { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--brand-600); }
.dns-val { margin: 2px 0 0; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: #fff; }
.btn-copy-sm, .btn-copy-xs { padding: 5px 10px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-main); font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.btn-copy-sm:hover, .btn-copy-xs:hover { border-color: var(--r-lime); color: var(--r-lime); }
.dns-verified-msg { margin-top: 12px; padding: 10px 12px; border-radius: 9px; background: var(--live-bg); border: 1px solid rgba(var(--xr-accent-rgb), 0.35); color: var(--r-lime); font-size: 0.8rem; }

.analytics-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; }
.analytics-bar p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.analytics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cwv-row { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.cwv-ring { width: 62px; height: 62px; border-radius: 50%; border: 4px solid var(--live-dark); color: #fff; display: grid; place-items: center; font-size: 1.25rem; font-weight: 700; }

.billing-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.billing-info { flex: 1; min-width: 260px; }
.billing-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.billing-plan-title { font-size: 1.25rem; font-weight: 700; color: #fff; }
.billing-price { margin: 0 0 14px; font-size: 0.875rem; font-weight: 600; color: var(--brand-600); }
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.usage-lbl { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; margin-bottom: 5px; color: var(--text-body); }

.settings-max { max-width: 680px; }
.settings-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.notif-stack { display: flex; flex-direction: column; gap: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--border); font-size: 0.8rem; color: var(--text-main); cursor: pointer; }
.danger-card { border-color: rgba(251, 113, 133, 0.35); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.danger-card h3 { color: #FB7185; }
.danger-card p { margin: 0; font-size: 0.8rem; color: var(--text-muted); }
.btn-danger-outline { padding: 9px 15px; border-radius: 10px; border: 1px solid rgba(251, 113, 133, 0.45); background: rgba(251, 113, 133, 0.1); color: #FDA4AF; font-family: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }

.btn-primary-sm { padding: 9px 16px; border-radius: 10px; border: none; background: var(--r-lime); color: #050604; font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.btn-primary-sm:hover { background: var(--r-lime-hover); }
.btn-outline-xs, .btn-ghost-xs, .btn-dark-xs { padding: 7px 12px; border-radius: 9px; font-family: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.btn-outline-xs { border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-main); }
.btn-outline-xs:hover { border-color: var(--r-border-lime); color: #fff; }
.btn-ghost-xs { border: none; background: transparent; color: var(--text-body); }
.btn-ghost-xs:hover { color: #fff; }
.btn-ghost-xs:disabled { opacity: 0.35; cursor: default; }
.btn-dark-xs { border: 1px solid var(--border-strong); background: #1A1F17; color: #fff; }
.btn-outline-full { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-main); font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.btn-outline-full:hover { border-color: var(--r-border-lime); }
.btn-primary-full { width: 100%; padding: 10px; border-radius: 10px; border: none; background: var(--r-lime); color: #050604; font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.btn-live-full { width: 100%; padding: 10px; border-radius: 10px; border: none; background: var(--r-lime); color: #050604; font-family: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.btn-live-full:hover { background: var(--r-lime-hover); }
.btn-danger-sm { padding: 9px 15px; border-radius: 10px; border: none; background: #E11D48; color: #fff; font-family: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }

/* View 3: Editor Visual (Dark Studio Shell + Neutral Preview Canvas) */
.view-editor { height: 100vh; display: flex; flex-direction: column; background: #141712; color: var(--text-main); overflow: hidden; }
.editor-topbar { height: 56px; background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0; z-index: 30; }
.ed-top-left, .ed-top-center, .ed-top-right { display: flex; align-items: center; gap: 8px; }
.ed-divider { width: 1px; height: 18px; background: var(--border); }
.ed-site-name { font-weight: 700; font-size: 0.88rem; color: #fff; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-pill-live { padding: 2px 8px; border-radius: 999px; background: var(--live-bg); color: var(--live-dark); font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.status-pill-draft { padding: 2px 8px; border-radius: 999px; background: rgba(245, 158, 11, 0.14); color: #FBBF24; font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.device-switch { display: flex; background: var(--bg-soft); padding: 3px; border-radius: 9px; border: 1px solid var(--border); }
.dev-btn { border: none; background: transparent; padding: 5px 10px; border-radius: 6px; font-family: inherit; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.dev-btn.is-active { background: var(--brand-50); color: var(--r-lime); }
.btn-publish { position: relative; overflow: hidden; padding: 8px 14px; border-radius: 9px; border: none; background: var(--r-lime); color: #050604; font-family: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.btn-publish:hover { background: var(--r-lime-hover); }
.btn-shimmer::after { content: ""; position: absolute; top: 0; left: 0; width: 45%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); animation: shimmerSweep 3.4s infinite; }
.btn-mob-ed, .btn-mob-ai, .btn-mob-close { display: none; }

.editor-workspace { flex: 1; display: flex; overflow: hidden; position: relative; }
.ed-left-panel { width: 310px; background: var(--bg-white); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; z-index: 20; }
.ed-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg-page); border-bottom: 1px solid var(--border); padding: 8px 6px 0; }
.ed-tab { border: none; border-bottom: 2px solid transparent; background: transparent; padding-bottom: 10px; font-family: inherit; font-size: 0.74rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.ed-tab.is-active { color: var(--r-lime); font-weight: 700; border-bottom-color: var(--r-lime); }
.media-url-row { display: flex; gap: 6px; align-items: center; }
.media-url-row .input-field { flex: 1; min-width: 0; font-size: 0.75rem; padding: 7px 9px; }
.media-slot-thumb { width: 100%; height: 96px; border-radius: 9px; border: 1px solid var(--border); background: #050604; display: grid; place-items: center; overflow: hidden; }
.media-slot-thumb img, .media-slot-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-slot-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.media-slot-btns .btn-outline-xs { flex: 1; padding: 6px 8px; font-size: 0.72rem; }
.color-pick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.color-pick-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-main); font-size: 11px; font-weight: 600; cursor: pointer; }
.color-pick-item input[type="color"] { width: 22px; height: 22px; padding: 0; border: none; background: transparent; cursor: pointer; }
.btn-logout-dash { margin-top: 10px; width: 100%; padding: 7px 10px; border-radius: 8px; border: 1px solid rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.08); color: #FDA4AF; font-family: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.btn-logout-dash:hover { background: rgba(251, 113, 133, 0.18); border-color: rgba(251, 113, 133, 0.55); }
.login-head-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-600); font-family: var(--font-mono); font-size: 10px; font-weight: 700; margin-bottom: 10px; }
.login-actions { justify-content: space-between; }
.ed-scroll { flex: 1; overflow-y: auto; padding: 16px; }
.ed-panel-stack { display: flex; flex-direction: column; gap: 14px; }
.ed-lbl, .ed-lbl-inline { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 5px; }
.ed-lbl-inline { margin-bottom: 0; }
.ed-box { padding: 12px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.ed-box.is-highlight { border-color: var(--xr-accent); box-shadow: 0 0 0 3px rgba(var(--xr-accent-rgb), 0.24); transition: box-shadow 0.25s ease; }
.logo-ed-row { display: flex; align-items: center; gap: 10px; }
.logo-ed-thumb { width: 52px; height: 52px; border-radius: 10px; border: 1px dashed var(--border-strong); background: #050604; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--r-lime); padding: 4px; }
.logo-ed-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo-ed-actions { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.logo-ed-check { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-body); cursor: pointer; user-select: none; }
.logo-ed-range-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; border-top: 1px dashed var(--border); }
.logo-ed-range-row input[type="range"] { flex: 1; accent-color: var(--xr-accent); cursor: pointer; }
.ed-box-row { display: flex; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 10px; }
.ed-box-title { font-size: 0.78rem; font-weight: 700; color: #fff; }
.ed-box-sub { display: block; font-size: 11px; color: var(--text-muted); }
.ed-divider-block { padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.services-ed-list { display: flex; flex-direction: column; gap: 10px; }
.srv-ed-card { padding: 10px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.srv-ed-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.srv-ed-del { border: none; background: transparent; color: var(--danger); font-size: 11px; font-weight: 700; cursor: pointer; }
.swatch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.swatch-btn { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-main); display: flex; align-items: center; gap: 8px; font-family: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.swatch-btn.is-active { border-color: var(--r-lime); background: var(--brand-50); color: var(--r-lime); }
.swatch-dot { width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0; }
.font-btn-list, .section-toggle-list, .sb-tpl-list { display: flex; flex-direction: column; gap: 8px; }
.font-opt-btn { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-main); display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 0.78rem; }
.font-opt-btn.is-active { border-color: var(--r-lime); background: var(--brand-50); color: var(--r-lime); }
.f-sans { font-family: var(--font-sans); font-weight: 700; }
.f-display { font-family: var(--font-serif); font-size: 1.05rem; }
.f-mono { font-family: var(--font-mono); font-weight: 600; }
.sb-tpl-btn { width: 100%; padding: 11px; border-radius: 11px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-main); text-align: left; cursor: pointer; }
.sb-tpl-btn:hover { border-color: rgba(var(--xr-accent-rgb), 0.45); }
.ed-tpl-note { margin: 0; font-size: 0.78rem; color: var(--text-muted); }

/* Kanvas preview tengah netral polos agar warna asli template tetap akurat */
.ed-canvas-area { flex: 1; overflow-y: auto; padding: 20px; display: flex; justify-content: center; align-items: flex-start; background: #181B16; }
.ed-preview-frame { width: 100%; background: #fff; border-radius: 14px; border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); overflow: hidden; transition: max-width 0.3s ease; }
.ed-browser-chrome { height: 36px; background: #0A0C08; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.ed-addr-pill { padding: 3px 12px; border-radius: 6px; background: #141811; font-family: var(--font-mono); font-size: 11px; color: #D4D7CE; border: 1px solid var(--border); }
.ed-inline-hint { font-size: 10px; color: var(--text-muted); }
[data-editable]:hover { outline: 2px dashed rgba(var(--xr-accent-rgb), 0.65); outline-offset: 4px; border-radius: 4px; cursor: text; }
[data-editable]:focus { outline: 2px solid var(--xr-accent); outline-offset: 4px; border-radius: 4px; background: rgba(var(--xr-accent-rgb), 0.08); }

.ed-right-panel { width: 330px; background: var(--bg-white); border-left: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; z-index: 20; }
.ai-head { padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); display: flex; align-items: center; justify-content: space-between; }
.ai-head-id { display: flex; align-items: center; gap: 10px; }
.ai-avatar { width: 32px; height: 32px; border-radius: 10px; background: var(--r-lime); color: #050604; font-family: var(--font-mono); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.ai-head h3 { margin: 0; font-size: 0.88rem; line-height: 1.1; color: #fff; }
.ai-head p { margin: 2px 0 0; font-family: var(--font-mono); font-size: 10px; color: var(--live-dark); font-weight: 600; }
.ai-head-actions { display: flex; align-items: center; gap: 6px; }
.btn-mcp-pill { padding: 4px 9px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-white); font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--brand-600); cursor: pointer; }
.btn-mcp-pill[aria-pressed="true"] { background: var(--r-lime); color: #050604; border-color: var(--r-lime); }
.ed-mcp-drawer { background: #050604; color: #E4E7DF; border-bottom: 1px solid var(--border); padding: 10px 12px; }
.ed-mcp-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 10px; color: #A1A69B; margin-bottom: 6px; }
.ed-mcp-pre { margin: 0; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.45; max-height: 130px; overflow: auto; color: var(--r-lime); }
.ai-chat-box { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-page); }
.ai-msg-bot { background: var(--bg-white); border: 1px solid var(--border); border-radius: 14px; border-bottom-left-radius: 4px; padding: 10px 12px; font-size: 0.78rem; color: var(--text-body); max-width: 92%; }
.ai-msg-user-wrap { display: flex; justify-content: flex-end; }
.ai-msg-user { background: var(--r-lime); color: #050604; font-weight: 600; border-radius: 14px; border-bottom-right-radius: 4px; padding: 9px 12px; font-size: 0.78rem; max-width: 85%; }
.ai-msg-ok { margin-top: 6px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--live-dark); }
.ai-composer { padding: 12px; border-top: 1px solid var(--border); background: var(--bg-white); display: flex; flex-direction: column; gap: 8px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chip { padding: 4px 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft); font-family: inherit; font-size: 11px; color: var(--text-body); cursor: pointer; }
.ai-chip:hover { border-color: var(--r-border-lime); color: var(--r-lime); }
.ai-form { display: flex; gap: 8px; }

/* Generated Client Site Styles */
.site-gen-wrap { min-height: 100%; transition: background-color 0.2s ease, color 0.2s ease; }
.sg-promo { padding: 8px 16px; text-align: center; font-size: 0.78rem; font-weight: 600; color: #fff; }
.sg-nav { padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; }
.sg-nav-links { display: flex; gap: 20px; font-size: 0.8rem; font-weight: 600; }
.sg-nav-links a { text-decoration: none; color: inherit; }
.sg-cta-sm { padding: 7px 14px; border-radius: 8px; text-decoration: none; font-size: 0.78rem; font-weight: 700; color: #fff; }
.sg-hero { padding: 56px 32px; max-width: 880px; margin: 0 auto; }
.sg-tagline { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-bottom: 14px; }
.sg-h1 { margin: 0 0 14px; font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.15; }
.sg-sub { margin: 0 0 24px; max-width: 640px; font-size: 0.95rem; }
.sg-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-btn-main { padding: 11px 20px; border-radius: 10px; text-decoration: none; font-size: 0.85rem; font-weight: 700; color: #fff; }
.sg-btn-sec { padding: 11px 20px; border-radius: 10px; text-decoration: none; font-size: 0.85rem; font-weight: 700; color: inherit; }
.sg-services { padding: 52px 32px; }
.sg-sec-in { max-width: 880px; margin: 0 auto; }
.sg-h2 { margin: 0 0 24px; font-size: 1.65rem; }
.sg-srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sg-srv-card { padding: 20px; border-radius: 14px; }
.sg-srv-price { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; margin-bottom: 6px; }
.sg-srv-card h3 { margin: 0 0 6px; font-size: 1rem; }
.sg-srv-card p { margin: 0; font-size: 0.8rem; }
.sg-about { padding: 52px 32px; max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.sg-contact { padding: 48px 32px; }
.sg-contact-in { max-width: 880px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.sg-contact-info { font-family: var(--font-mono); font-size: 0.8rem; display: flex; flex-direction: column; gap: 4px; }
.sg-footer { padding: 20px 32px; text-align: center; font-size: 11px; }

/* Modals & Toast (Dark Obsidian Theme) */
.modal-backdrop { position: fixed; inset: 0; z-index: 60; padding: 16px; background: rgba(5, 6, 4, 0.78); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; color: var(--text-main); }
.modal-card { position: relative; background: var(--bg-white); border: 1px solid var(--border-strong); border-radius: 18px; padding: 24px; box-shadow: 0 28px 64px rgba(0, 0, 0, 0.65); width: 100%; overflow: hidden; }
.modal-xs { max-width: 380px; } .modal-sm { max-width: 440px; } .modal-md { max-width: 520px; }
.modal-xl { max-width: 960px; max-height: 88vh; padding: 0; display: flex; flex-direction: column; }
.modal-x { position: absolute; top: 14px; right: 16px; border: none; background: transparent; font-size: 1.4rem; color: var(--text-muted); cursor: pointer; }
.modal-x:hover { color: #fff; }
.modal-card h3 { margin: 0 0 4px; font-size: 1.15rem; color: #fff; }
.modal-sub { margin: 0 0 18px; font-size: 0.8rem; color: var(--text-muted); }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.sub-input-wrap { display: flex; align-items: center; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); }
.sub-input-wrap input { flex: 1; border: none; background: transparent; outline: none; font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600; color: #fff; }
.sub-input-wrap span { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--r-lime); }
.new-tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 190px; overflow-y: auto; }
.new-tpl-btn { padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-main); text-align: left; cursor: pointer; }
.new-tpl-btn.is-active { border-color: var(--r-lime); background: var(--brand-50); }
.new-tpl-btn strong { display: block; font-size: 0.8rem; color: #fff; }
.new-tpl-btn small { font-family: var(--font-mono); font-size: 10px; color: var(--brand-600); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.modal-preview-head { padding: 12px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mph-left, .mph-right { display: flex; align-items: center; gap: 10px; }
.mph-url { font-family: var(--font-mono); font-size: 11px; color: var(--r-lime); background: var(--brand-50); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--brand-100); }
.modal-preview-body { flex: 1; overflow-y: auto; }
.confetti-layer { position: absolute; inset: 0 0 auto; height: 96px; pointer-events: none; overflow: hidden; }
.pub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pub-head p { margin: 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.pub-spinner { width: 38px; height: 38px; border-radius: 11px; border: 3px solid var(--brand-100); border-top-color: var(--r-lime); animation: spinSlow 0.9s linear infinite; }
.pub-track { margin-bottom: 18px; height: 8px; }
.pub-steps { display: flex; flex-direction: column; gap: 10px; font-size: 0.8rem; }
.pub-step { display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.pub-step.is-done { color: var(--text-main); font-weight: 600; }
.pnum { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; font-size: 10px; }
.pub-step.is-done .pnum { background: var(--r-lime); border-color: var(--r-lime); color: #050604; font-weight: 700; }
.pub-success { text-align: center; }
.pub-ok-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--live-bg); color: var(--live-dark); font-size: 1.5rem; font-weight: 800; display: grid; place-items: center; margin: 0 auto 12px; border: 1px solid rgba(var(--xr-accent-rgb),0.35); }
.pub-success h3 { margin-top: 10px; color: #fff; }
.pub-success p { margin: 4px 0 18px; font-size: 0.82rem; color: var(--text-muted); }
.pub-url-box { display: flex; gap: 6px; padding: 6px; border-radius: 11px; background: var(--bg-soft); border: 1px solid var(--border); margin-bottom: 18px; }
.pub-url-box input { flex: 1; border: none; background: transparent; outline: none; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--r-lime); padding-left: 6px; }
.pub-succ-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.inv-head p { margin: 2px 0 0; font-family: var(--font-mono); font-size: 0.75rem; color: var(--brand-600); }
.inv-body { display: flex; flex-direction: column; gap: 10px; font-size: 0.8rem; color: var(--text-body); margin-bottom: 20px; }
.inv-row { display: flex; justify-content: space-between; gap: 10px; }
.inv-total { padding-top: 10px; border-top: 1px solid var(--border); font-weight: 700; color: #fff; font-size: 0.9rem; }
.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 70; pointer-events: none; }
.toast-pill { background: #0D100B; color: #fff; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--r-border-lime); font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: 0 14px 28px rgba(0,0,0,0.55); }

/* Fitur, FAQ, Kontak, dan login Google */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.feature-card h3 { margin: 12px 0 8px; font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: 0.88rem; color: var(--r-muted); }
/* Ikon garis sederhana: hitam di atas kotak lime, terbaca baik di mode gelap maupun terang. */
.feature-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--r-lime); color: #050604;
}
.feature-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.faq-list { display: grid; gap: 10px; max-width: 860px; margin-top: 8px; }
.faq-item { border: 1px solid var(--r-border); border-radius: 14px; background: rgba(255,255,255,0.03); padding: 0 18px; }
.faq-item[open] { border-color: var(--r-border-lime); background: rgba(var(--xr-accent-rgb), 0.05); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; font-size: 0.95rem; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 1.3rem; color: var(--r-lime); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--r-lime); outline-offset: 3px; border-radius: 8px; }
.faq-item p { margin: 0 0 16px; font-size: 0.9rem; color: var(--r-muted); max-width: 70ch; }
.contact-card { display: grid; gap: 16px; max-width: 860px; margin-top: 8px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-row > div { min-width: 0; }
.contact-card textarea.input-field { resize: vertical; min-height: 110px; }
.contact-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.contact-status { margin: 0; font-size: 0.85rem; color: var(--r-lime); }
.contact-status.is-error { color: #FF8A8A; }
.login-context { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.82rem; background: rgba(var(--xr-accent-rgb), 0.1); border: 1px solid var(--r-border-lime); }
.google-signin-wrap { display: grid; gap: 8px; justify-items: center; margin-bottom: 4px; }
.btn-google-demo {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px;
  border-radius: 999px; border: 1px solid var(--r-border); background: rgba(255,255,255,0.06); color: inherit;
  font-family: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.btn-google-demo:hover { border-color: var(--r-border-lime); }
.google-signin-wrap small { text-align: center; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; font-size: 0.72rem; color: var(--r-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--r-border); }
#new-site-login-hint { margin: -4px 0 0; font-size: 0.72rem; }
[data-theme="light"] .faq-item { background: #FFFFFF; border-color: rgba(10, 20, 12, 0.14); }
[data-theme="light"] .faq-item[open] { background: var(--xr-wash); }
[data-theme="light"] .btn-google-demo { background: #FFFFFF; border-color: rgba(10, 20, 12, 0.18); }

@media (max-width: 1180px) {
  .nav-links, .header-right { display: none; }
  .btn-mobile-menu { display: inline-flex; }
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid, .contact-row { grid-template-columns: 1fr; } }

/* Responsive */
@media (max-width: 1024px) {
  .nav-links, .header-right { display: none; }
  .btn-mobile-menu { display: inline-flex; }
  .hero-grid, .split-editorial, .bento-row-2col, .pricing-meter-card, .bottom-cta-split { grid-template-columns: 1fr; }
  .pm-right { padding-left: 0; border-left: none; padding-top: 18px; border-top: 1px solid var(--r-border); }
  .template-grid, .metrics-strip, .quotes-strip, .pricing-grid, .sites-grid, .analytics-grid { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .dash-sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform 0.2s ease; }
  .dash-sidebar.is-open { transform: translateX(0); }
  .dash-sb-close, .btn-icon-border { display: inline-flex; }
  .ed-left-panel, .ed-right-panel { display: none; position: absolute; top: 0; bottom: 0; }
  .ed-left-panel.is-open, .ed-right-panel.is-open { display: flex; }
  .ed-left-panel { left: 0; } .ed-right-panel { right: 0; }
  .btn-mob-ed, .btn-mob-ai, .btn-mob-close { display: inline-flex; }
  .btn-mob-ed { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-main); font-size: 0.75rem; font-weight: 600; }
  .btn-mob-ai { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--r-lime); font-size: 0.75rem; font-weight: 700; }
  .btn-mob-close { border: none; background: transparent; font-size: 1.3rem; color: var(--text-muted); cursor: pointer; }
  .ed-top-center { display: none; }
}

@media (max-width: 680px) {
  .tgw-flow-area { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 10px; }
  .flow-col-left, .flow-col-right, .flow-col-mid > .flow-node,
  .flow-col-mid > .flow-node:nth-child(1), .flow-col-mid > .flow-node:nth-child(2) { grid-column: 1; grid-row: auto; margin-block: 0; }
  .flow-connector { display: none; }
  .template-grid, .metrics-strip, .quotes-strip, .pricing-grid, .sites-grid, .analytics-grid, .domain-connect-form, .dns-cards, .usage-grid, .sg-srv-grid, .sg-about {
    grid-template-columns: 1fr;
  }
  .lime-cta-form { flex-direction: column; border-radius: 16px; }
  .dash-user-chip, .hide-xs, .ed-inline-hint { display: none; }
}

/* ==========================================================================
   LIGHT MODE OVERRIDES ([data-theme="light"]) — BERANDA, DASHBOARD, EDITOR, MODAL
   ========================================================================== */
[data-theme="light"] {
  --r-bg: #F6F8F6;
  --r-glass: rgba(255, 255, 255, 0.88);
  --r-glass-strong: rgba(255, 255, 255, 0.94);
  --r-border: rgba(10, 20, 12, 0.11);
  --r-border-lime: rgba(var(--xr-strong-rgb), 0.45);
  --r-lime: var(--xr-accent);
  --r-lime-hover: var(--xr-hover);
  --r-text: #0A140C;
  --r-muted: #526155;

  --bg-page: #F6F8F6;
  --bg-white: #FFFFFF;
  --bg-soft: #ECF1EC;
  --text-main: #0A140C;
  --text-body: #334137;
  --text-muted: #5A685D;
  --border: rgba(10, 20, 12, 0.10);
  --border-strong: rgba(10, 20, 12, 0.18);
  --brand-50: rgba(var(--xr-accent-rgb), 0.22);
  --brand-100: rgba(var(--xr-strong-rgb), 0.35);
  --brand-500: var(--xr-accent);
  --brand-600: var(--xr-ink);
  --live-dark: var(--xr-ink);
  --live-bg: rgba(var(--xr-accent-rgb), 0.22);
  --danger: #E11D48;
}

[data-theme="light"] .dot-grid-bg { background-color: #F6F8F6; }
[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.86); border-bottom-color: var(--border); }
[data-theme="light"] .brand-link,
[data-theme="light"] .hero-h1,
[data-theme="light"] .serif-italic,
[data-theme="light"] .split-editorial h2,
[data-theme="light"] .glass-panel h3,
[data-theme="light"] .approval-msg strong,
[data-theme="light"] .tpl-title-row h3,
[data-theme="light"] .m-big,
[data-theme="light"] .pm-label,
[data-theme="light"] .pm-plan,
[data-theme="light"] .price-big strong,
[data-theme="light"] .q-item footer strong,
[data-theme="light"] .tgw-title strong,
[data-theme="light"] .node-title,
[data-theme="light"] .footer-col-main strong,
[data-theme="light"] .footer-cols b { color: #0A140C; }

[data-theme="light"] .nav-links a { color: #3D4B40; }
[data-theme="light"] .nav-links a:hover { color: #0A140C; }
[data-theme="light"] .status-pill-btn,
[data-theme="light"] .mono-kicker-pill,
[data-theme="light"] .btn-glass-lg,
[data-theme="light"] .btn-glass-xs,
[data-theme="light"] .filter-pill:not(.is-active),
[data-theme="light"] .eco-box span,
[data-theme="light"] .eco-mini-btn,
[data-theme="light"] .hub-sat {
  background: rgba(255, 255, 255, 0.9);
  color: #1A291D;
  border-color: var(--border-strong);
}
[data-theme="light"] .btn-mobile-menu,
[data-theme="light"] .mobile-drawer,
[data-theme="light"] .mobile-drawer a,
[data-theme="light"] .btn-dark-outline {
  background: #FFFFFF;
  color: #0A140C;
  border-color: var(--border-strong);
}
[data-theme="light"] .hero-domain-box input { color: #0A140C; }
[data-theme="light"] .hero-domain-box input::placeholder,
[data-theme="light"] .log-time { color: #6B786E; }
[data-theme="light"] .mono-lime,
[data-theme="light"] .tgw-running,
[data-theme="light"] .node-badge-ok,
[data-theme="light"] .node-kicker-lime,
[data-theme="light"] .log-ms,
[data-theme="light"] .gp-num,
[data-theme="light"] .pm-price-row strong,
[data-theme="light"] .dash-chip-count,
[data-theme="light"] .play-tri { color: var(--xr-ink); }

[data-theme="light"] .tilt-glass-window {
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    inset 0 0 0 1px rgba(15, 28, 18, 0.08),
    0 24px 54px -16px rgba(15, 28, 18, 0.09),
    0 8px 20px -6px rgba(15, 28, 18, 0.05),
    0 18px 44px -18px rgba(var(--xr-mid-rgb), 0.14);
}
[data-theme="light"] .tilt-stage-wrap:hover .tilt-glass-window {
  box-shadow:
    inset 0 0 0 1px rgba(15, 28, 18, 0.10),
    0 30px 64px -16px rgba(15, 28, 18, 0.12),
    0 10px 24px -6px rgba(15, 28, 18, 0.06),
    0 22px 52px -18px rgba(var(--xr-mid-rgb), 0.18);
}
[data-theme="light"] .glass-panel,
[data-theme="light"] .tpl-card {
  box-shadow: inset 0 0 0 1px var(--border);
}
[data-theme="light"] .tpl-card:hover {
  box-shadow: inset 0 0 0 1px var(--r-border-lime);
}
[data-theme="light"] .flow-node {
  background: #FFFFFF;
  box-shadow:
    inset 0 0 0 1px rgba(15, 28, 18, 0.07),
    0 8px 20px -6px rgba(15, 28, 18, 0.06),
    0 2px 6px -1px rgba(15, 28, 18, 0.04);
}
[data-theme="light"] .flow-node.node-active {
  background: #FFFFFF;
  box-shadow:
    inset 0 0 0 1px rgba(var(--xr-mid-rgb), 0.45),
    0 10px 24px -6px rgba(15, 28, 18, 0.07),
    0 6px 16px -6px rgba(var(--xr-mid-rgb), 0.14);
}
[data-theme="light"] .flow-node.node-lime-border {
  background: #FFFFFF;
  box-shadow:
    inset 0 0 0 1px rgba(var(--xr-mid-rgb), 0.38),
    0 9px 22px -6px rgba(15, 28, 18, 0.06),
    0 5px 14px -6px rgba(var(--xr-mid-rgb), 0.11);
}
[data-theme="light"] .tgw-log-row,
[data-theme="light"] .approval-msg { background: #F4F7F4; }
[data-theme="light"] .log-name,
[data-theme="light"] .wf-row,
[data-theme="light"] .q-item p,
[data-theme="light"] .price-bullets { color: #2B392E; }
[data-theme="light"] .wf-track,
[data-theme="light"] .reg-track,
[data-theme="light"] .led-bars i:not(.on),
[data-theme="light"] .lime-progress-bar { background: rgba(10, 20, 12, 0.08); }
[data-theme="light"] .tpl-thumb-wrap { background: #E9EFE9; }
[data-theme="light"] .tpl-cat-tag { background: #E9EFE9; color: #334137; }
[data-theme="light"] .border-top-hairline { border-top-color: var(--border); }
[data-theme="light"] .site-footer { background: #EEF3EE; border-top-color: var(--border); }

/* Dashboard, Visual Editor & Modals Light Mode Text/Surface overrides */
[data-theme="light"] .kpi-val-row strong,
[data-theme="light"] .dash-card h2,
[data-theme="light"] .dash-card h3,
[data-theme="light"] .list-head h2,
[data-theme="light"] .site-title-row h3,
[data-theme="light"] .dns-guide-title,
[data-theme="light"] .dns-val,
[data-theme="light"] .cwv-ring,
[data-theme="light"] .billing-plan-title,
[data-theme="light"] .ed-site-name,
[data-theme="light"] .ed-box-title,
[data-theme="light"] .ai-head h3,
[data-theme="light"] .modal-card h3,
[data-theme="light"] .new-tpl-btn strong,
[data-theme="light"] .pub-success h3,
[data-theme="light"] .inv-total,
[data-theme="light"] .sub-input-wrap input { color: #0A140C; }

[data-theme="light"] .dash-nav-btn:hover,
[data-theme="light"] .site-btns-sub button:hover,
[data-theme="light"] .btn-outline-xs:hover,
[data-theme="light"] .btn-ghost-xs:hover,
[data-theme="light"] .modal-x:hover { color: #0A140C; }

[data-theme="light"] .dash-nav-btn.is-active,
[data-theme="light"] .dash-count-pill,
[data-theme="light"] .range-btn.is-active,
[data-theme="light"] .dev-btn.is-active,
[data-theme="light"] .ed-tab.is-active,
[data-theme="light"] .swatch-btn.is-active,
[data-theme="light"] .font-opt-btn.is-active,
[data-theme="light"] .ai-chip:hover,
[data-theme="light"] .link-action,
[data-theme="light"] .mph-url,
[data-theme="light"] .sub-input-wrap span,
[data-theme="light"] .pub-url-box input { color: var(--xr-ink); }

[data-theme="light"] .ed-tab.is-active { border-bottom-color: var(--xr-strong); }
[data-theme="light"] .progress-track { background: rgba(10, 20, 12, 0.10); }
[data-theme="light"] .fill-dark { background: #647468; }
[data-theme="light"] .view-editor,
[data-theme="light"] .ed-canvas-area { background: #E8ECE8; }
[data-theme="light"] .ed-browser-chrome { background: #1E241E; }
[data-theme="light"] .input-field:focus { background: #FFFFFF; border-color: var(--xr-strong); }
[data-theme="light"] .logo-ed-thumb { background: #FFFFFF; color: var(--xr-ink); }
[data-theme="light"] .btn-dark-xs { background: #18231A; color: #FFFFFF; }
[data-theme="light"] .modal-backdrop { background: rgba(10, 20, 12, 0.45); }
[data-theme="light"] .toast-pill { background: #FFFFFF; color: #0A140C; border-color: var(--xr-accent); box-shadow: 0 12px 28px rgba(10, 20, 12, 0.16); }

/* ---------- Daftar dan masuk ---------- */
.auth-card { max-height: calc(100vh - 32px); overflow-y: auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 12px 0 14px; border: 1px solid var(--r-border); border-radius: 999px; }
.auth-tabs button { border: 0; border-radius: 999px; padding: 9px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.auth-tabs button.is-active { background: var(--xr-accent); color: #050604; }
#auth-social .btn-google-demo { width: 100%; justify-content: center; }
#auth-social .google-resmi { display: flex; justify-content: center; min-height: 44px; color-scheme: light; }
.auth-fine, .auth-agree { font-size: 0.74rem; color: var(--r-muted); margin: 8px 0 0; line-height: 1.5; }
.auth-fine a, .auth-agree a { color: inherit; text-decoration: underline; }
.auth-agree { display: flex; gap: 8px; align-items: flex-start; margin: 0; cursor: pointer; }
.auth-link { border: 0; background: transparent; color: inherit; font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; padding: 0; }
.auth-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 0.8rem; background: rgba(239, 68, 68, 0.14); color: #FCA5A5; }
.auth-msg.is-ok { background: rgba(var(--xr-accent-rgb), 0.12); color: inherit; }
[data-theme="light"] .auth-msg { color: #B91C1C; }
[data-theme="light"] .auth-msg.is-ok { color: #0A140C; }
.auth-card .is-hidden { display: none !important; }
.akun-note { display: none; margin: 0 0 14px; padding: 11px 14px; border: 1px solid var(--r-border); border-radius: 12px; font-size: 0.8rem; }
body.akun-asli .akun-note { display: block; }
body.akun-asli #dpanel-websites .kpi-card:nth-child(n+2), body.akun-asli .dash-card:has(> [data-contoh]), body.akun-asli #analytics-content, body.akun-asli #analytics-site-select { display: none; }
body.akun-asli .danger-card, body.akun-asli #msg-test-btn, body.akun-asli .dash-card:has(#demo-plan-apply), body.akun-asli div:has(> .demo-plan-row) { display: none; }
