/* ==========================================================================
   CreosBill — Studio Invoice & Kwitansi Pelunasan (CreosLab Edition)
   Obsidian & Amber-Gold Design System + 100-Template Print Engine
   ========================================================================== */

:root {
  --font-body: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Urbanist', 'Montserrat', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --bg: #08090b;
  --bg-elevated: #0e1014;
  --bg-card: #12141a;
  --bg-input: #181b22;
  --fg1: #f5f5f2;
  --fg2: #a1a5b0;
  --fg3: #70747e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(251, 191, 36, 0.35);
  --highlight: #fbbf24;
  --highlight-hover: #f59e0b;
  --highlight-soft: #fef3c7;
  --on-highlight: #0a0a0a;
  --green: #10b981;
  --r-pill: 999px;
  --ease-apple: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background-color: #08090b;
  color: #f5f5f2;
  scrollbar-color: #fbbf24 #08090b;
  scrollbar-width: thin;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: #08090b;
  color: #f5f5f2;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  border-radius: 999px;
  border: 2px solid #0a0a0a;
}
::-webkit-scrollbar-thumb:hover { background: #fbbf24; }

img, svg {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-drag: none;
}

html.is-guard-locked #portfolioView,
html.is-guard-locked #invoiceAppView,
html.is-guard-locked header.top,
html.is-guard-locked footer.foot,
html.is-framed-blocked body > *:not(.site-guard-shield) {
  filter: blur(18px) brightness(0.35);
  pointer-events: none !important;
}

.site-guard-shield {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(6, 7, 10, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-guard-shield__card {
  width: min(100%, 440px);
  padding: 28px 26px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(180deg, #14171f, #0d0f15);
  border: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 36px rgba(251, 191, 36, 0.14);
}
.site-guard-shield__ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.34);
  color: #fbbf24;
}
.site-guard-shield__card h3 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}
.site-guard-shield__card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #a1a5b0;
}
.site-guard-shield__card strong {
  color: #fbbf24;
}
button, input, select, textarea { font: inherit; color: inherit; }
button {
  cursor: pointer;
  border: 0;
  background: none;
  transition: background 0.25s var(--ease-apple), border-color 0.25s var(--ease-apple), box-shadow 0.25s var(--ease-apple), transform 0.25s var(--ease-spring), color 0.25s ease;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 2px;
}

.lu {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.lu--sm {
  width: 15px;
  height: 15px;
}
button:has(.lu--sm),
a:has(.lu--sm) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

/* ============ KEYFRAMES ============ */
@keyframes preloadBar { to { width: 100%; } }
@keyframes preloaderAutoDismiss { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes marqueeRoll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: 0.35; } }
@keyframes glowPulse { 0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(1); } 50% { opacity: 0.8; transform: translateX(-50%) scale(1.06); } }
@keyframes glowHalo { 0%, 100% { opacity: 0.38; transform: scale(1); } 50% { opacity: 0.75; transform: scale(1.04); } }
@keyframes kenBurns { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.1) translate(-1.2%, -1.4%); } }
@keyframes brandGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(251, 191, 36, 0); }
  50% { text-shadow: 0 0 18px rgba(251, 191, 36, 0.45), 0 0 34px rgba(251, 191, 36, 0.2); }
}
@keyframes cursorPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(251, 191, 36, 0.35), inset 0 0 10px rgba(251, 191, 36, 0.14); }
  50% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.72), inset 0 0 20px rgba(251, 191, 36, 0.28); }
}
@keyframes steamRise {
  0% { transform: translateY(4px) scaleX(0.9); opacity: 0; }
  35% { opacity: 0.85; }
  75% { transform: translateY(-9px) scaleX(1.12); opacity: 0.55; }
  100% { transform: translateY(-16px) scaleX(0.85); opacity: 0; }
}
@keyframes coffeeFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-2deg); }
}
@keyframes shimmerSlide {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(240%) skewX(-18deg); }
}
@keyframes exhibitEnter {
  0% { opacity: 0; transform: scale(0.94) translateY(14px) rotate(2deg); filter: blur(4px); }
  100% { opacity: 1; transform: scale(1) translateY(0) rotate(0deg); filter: blur(0); }
}
@keyframes particleBurst {
  0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.35) rotate(var(--rot)); }
}
@keyframes modalPop {
  0% { opacity: 0; transform: translateY(24px) scale(0.94); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes drawerSlide {
  0% { opacity: 0; transform: translateX(36px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080808;
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease-apple), visibility 0.6s;
  animation: preloaderAutoDismiss 0.4s ease 1.4s forwards;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__box { text-align: center; }
.preloader__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 46px);
  letter-spacing: -0.04em;
  color: #fff;
}
.preloader__logo span { color: var(--highlight); }
.preloader__sub {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg3);
}
.preloader__bar {
  margin: 18px auto 0;
  width: 190px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.preloader__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fbbf24, #fde68a);
  animation: preloadBar 1.1s var(--ease-apple) forwards;
}

/* ============ DUAL-RING MAGNETIC CURSOR ============ */
@media (hover: hover) and (pointer: fine) {
  .mouseCursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none !important;
    user-select: none !important;
    z-index: 99999;
    border-radius: 999px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, width 0.22s var(--ease-smooth), height 0.22s var(--ease-smooth), background-color 0.22s ease, border-color 0.22s ease, margin 0.22s var(--ease-smooth);
    will-change: transform;
  }
  .mouseCursor.is-visible { opacity: 1; visibility: visible; }
  .cursor-inner {
    width: 8px;
    height: 8px;
    background: #fbbf24;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.95), 0 0 20px rgba(251, 191, 36, 0.45);
    margin: -4px 0 0 -4px;
  }
  .cursor-inner.is-hover {
    width: 6px;
    height: 6px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.95);
    margin: -3px 0 0 -3px;
  }
  .cursor-outer {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(251, 191, 36, 0.8);
    background: radial-gradient(circle at center, rgba(251, 191, 36, 0.08), transparent 70%);
    animation: cursorPulse 2.2s ease-in-out infinite;
    margin: -18px 0 0 -18px;
  }
  .cursor-outer.is-hover {
    width: 54px;
    height: 54px;
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
    box-shadow: 0 0 26px rgba(251, 191, 36, 0.4);
    margin: -27px 0 0 -27px;
  }
  .cursor-outer.is-down {
    width: 24px;
    height: 24px;
    background: rgba(251, 191, 36, 0.4);
    margin: -12px 0 0 -12px;
  }
}
@media (hover: none), (pointer: coarse) {
  .mouseCursor { display: none !important; }
}

/* ============ HEADER / NAVBAR ============ */
.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 10, 10, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.top.is-scrolled {
  background: rgba(8, 8, 8, 0.96);
  border-bottom-color: rgba(251, 191, 36, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}
.top__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.025em;
  text-transform: none;
  white-space: nowrap;
}
.brand b {
  color: #ffffff;
  font-weight: 800;
  animation: brandGlow 3.6s var(--ease-apple) infinite;
}
.brand > span:last-child {
  color: var(--highlight);
  font-weight: 800;
}

.top-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.top-nav-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.36);
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: transform 0.42s var(--ease-spring), width 0.42s var(--ease-spring), opacity 0.25s ease;
  will-change: transform, width;
}
.top-nav-glider.is-ready {
  opacity: 1;
}
.nav {
  position: relative;
  z-index: 1;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--fg2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.22s var(--ease-spring);
}
.nav:hover {
  color: #fff;
  transform: translateY(-1px);
}
.nav.active {
  color: var(--highlight);
}
.top-nav:not(.has-glider) .nav.active {
  background: rgba(251, 191, 36, 0.14);
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3);
}

.nav-creator-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}
.creator-ig-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.creator-ig-pill:hover {
  border-color: rgba(244, 114, 182, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}
.creator-ig-pill svg { width: 14px; height: 14px; color: #f472b6; }

.nav-coffee-sep {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.coffee-cta-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #080808;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.45), 0 4px 18px rgba(0, 0, 0, 0.4);
}
.coffee-cta-pill::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shimmerSlide 3.4s infinite;
}
.coffee-cta-pill:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(251, 191, 36, 0.55);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#saveState {
  font-size: 12px;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 600;
}
#saveState::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #fbbf24, #fde68a);
  transition: width 0.08s linear;
}

/* ============ MODE SWITCHER (INVOICE <-> KWITANSI PELUNASAN) ============ */
.doc-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.doc-mode-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.doc-mode-btn:hover { color: #fff; }
.doc-mode-btn.is-active {
  background: var(--highlight);
  color: #080808;
  box-shadow: 0 4px 18px rgba(251, 191, 36, 0.32);
}
.doc-mode-count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.78;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 24px;
  border: 1.5px solid var(--line-strong);
  color: var(--fg1);
  background: transparent;
  white-space: nowrap;
}
.btn .lu { width: 17px; height: 17px; }
.btn--primary, .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  color: #080808;
  border: 1px solid #ffffff;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.14);
}
.btn--primary:hover, .primary:hover {
  background: var(--highlight);
  color: #080808;
  border-color: var(--highlight);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.45);
}
.btn--gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #080808;
  border: 1px solid #fbbf24;
  font-weight: 800;
  box-shadow: 0 6px 26px rgba(251, 191, 36, 0.35);
}
.btn--gold:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 36px rgba(251, 191, 36, 0.55);
}
.btn--ghost, .outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
}
.btn--ghost:hover, .outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--highlight);
  color: var(--highlight);
  transform: translateY(-2px);
}
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn .arr { transition: transform 0.3s var(--ease-spring); }
.btn:hover .arr { transform: translateX(4px); }

/* ============ TYPOGRAPHY & REVEALS ============ */
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.sec {
  padding: clamp(64px, 8vw, 108px) 0;
  position: relative;
}
.sec--soft {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kicker {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--highlight);
  box-shadow: 0 0 10px var(--highlight);
}
.h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  color: #f5f5f5;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  color: #f5f5f5;
}
.lead {
  font-size: clamp(15px, 1.8vw, 18.5px);
  line-height: 1.6;
  color: var(--fg2);
  margin: 0;
}
.mk {
  background: var(--highlight);
  color: #080808;
  padding: 0.03em 0.28em;
  border-radius: 8px;
  display: inline-block;
  font-weight: 900;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.42);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.mk:hover {
  transform: scale(1.04) rotate(-0.8deg);
  box-shadow: 0 0 38px rgba(251, 191, 36, 0.65);
}

.title-anim .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.06em;
  margin: 0 -0.06em;
}
.title-anim .word i {
  display: inline-block;
  font-style: normal;
  transform: translateY(115%) rotate(2.5deg);
  opacity: 0;
  transition: transform 0.85s var(--ease-apple), opacity 0.65s var(--ease-apple);
}
.title-anim.is-in .word i { transform: none; opacity: 1; }
.mk .word i { color: #080808 !important; }

[data-reveal] { opacity: 0; will-change: opacity, transform, filter; }
[data-reveal="up"] { transform: translateY(38px) scale(0.98); filter: blur(6px); }
[data-reveal="down"] { transform: translateY(-34px) scale(0.98); filter: blur(6px); }
[data-reveal="zoom"] { transform: perspective(1000px) rotateX(5deg) translateY(32px) scale(0.95); filter: blur(8px); }
[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 0.95s var(--ease-apple), transform 0.95s var(--ease-apple), filter 0.85s var(--ease-apple);
}
[data-delay="1"] { transition-delay: 0.08s !important; }
[data-delay="2"] { transition-delay: 0.16s !important; }
[data-delay="3"] { transition-delay: 0.24s !important; }
[data-delay="4"] { transition-delay: 0.32s !important; }

[data-tilt] {
  position: relative;
  transition: transform 0.24s var(--ease-smooth), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
  transform-style: preserve-3d;
}
[data-tilt]::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 280px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(251, 191, 36, 0.13), transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}
[data-tilt]:hover::before { opacity: 1; }

/* ============ HERO SECTION ============ */
.hero {
  padding: clamp(70px, 9.5vw, 122px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: -6%;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 32px 32px;
  animation: kenBurns 26s ease-in-out infinite alternate;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 38%, transparent 15%, #080808 76%);
}
.hero__glow {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(680px, 85vw);
  height: min(680px, 85vw);
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 62%);
  filter: blur(40px);
  z-index: 0;
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
}
.hero .shell { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 22, 0.8);
  font-size: 12.5px;
  font-weight: 600;
  color: #e4e4e7;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}
.hero__badge i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--highlight);
  box-shadow: 0 0 10px var(--highlight);
  animation: pulseDot 2s infinite;
}
.hero__badge a {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 700;
}
.hero__badge a:hover { text-decoration: underline; }
.hero__h { max-width: 980px; margin: 0 auto; }
.hero__sub { max-width: 680px; margin: 22px auto 0; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--fg2);
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero__trust .lu { width: 15px; height: 15px; color: var(--highlight); }

/* Separated Glowing Traktir Kopi Button */
.coffee-glow-wrap {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}
.coffee-glow-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1b160d, #271e0f);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fde68a;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: visible;
  z-index: 1;
}
.coffee-glow-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fde68a, #fbbf24);
  opacity: 0.42;
  filter: blur(14px);
  z-index: -1;
  transition: opacity 0.35s ease, filter 0.35s ease;
  animation: glowHalo 3.2s ease-in-out infinite;
}
.coffee-glow-btn:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #fbbf24;
  color: #fff;
  box-shadow: 0 0 42px rgba(251, 191, 36, 0.55), 0 10px 30px rgba(0, 0, 0, 0.5);
}
.coffee-glow-btn:hover::before {
  opacity: 0.8;
  filter: blur(18px);
}
.coffee-glow-btn__tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fbbf24;
  color: #080808;
  letter-spacing: 0.03em;
}

/* Live Stats Counter Strip */
.live-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 30px auto 0;
}
.live-stat {
  background: rgba(20, 20, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 15px 18px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-spring);
}
.live-stat:hover {
  border-color: rgba(251, 191, 36, 0.42);
  transform: translateY(-3px);
}
.live-stat__num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.live-stat__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseDot 2s infinite;
}
.live-stat__lbl {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--fg2);
  font-weight: 600;
}

/* Floating Live Activity Notification */
.live-notif {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 82;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(16, 16, 20, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.7), 0 0 24px rgba(251, 191, 36, 0.08);
  font-size: 12.5px;
  color: #e4e4e7;
  transition: opacity 0.35s ease, transform 0.35s var(--ease-apple);
}
.live-notif.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
.live-notif__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 10px var(--highlight);
  flex-shrink: 0;
  animation: pulseDot 2s infinite;
}
.live-notif__close {
  color: var(--fg3);
  font-size: 14px;
  padding: 2px 5px;
  margin-left: auto;
  flex-shrink: 0;
}
.live-notif__close:hover { color: #fff; }

/* ============ EXHIBIT STAGE ============ */
.exhibit-wrap {
  margin-top: clamp(42px, 5vw, 64px);
  position: relative;
}
.exhibit {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 1060px);
  margin: 0 auto;
  aspect-ratio: 2.35;
  min-height: 290px;
  border-radius: 24px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(251, 191, 36, 0.16), transparent 60%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 50%),
    #101115;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.78), 0 0 45px rgba(251, 191, 36, 0.1);
  display: grid;
  place-items: center;
  padding: 28px 0 64px;
  transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s ease;
}
.exhibit .paper,
.exhibit .proof {
  width: 24%;
  max-width: 215px;
  aspect-ratio: 210 / 297;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65);
  border-radius: 4px;
  overflow: hidden;
}
.exhibit .proof {
  position: absolute;
  background: #e8e4d4;
  transform: rotate(-9deg) translate(-9%, 0);
  z-index: -1;
  opacity: 0.4;
}
.exhibit .wing {
  position: absolute;
  top: 13%;
  width: 21%;
  max-width: 178px;
  pointer-events: none;
  opacity: 0.78;
  transition: transform 0.6s var(--ease-apple), opacity 0.4s ease;
}
.exhibit .wing.left { left: 17%; transform: rotate(-13deg) translateY(8px); }
.exhibit .wing.right { right: 16%; transform: rotate(13deg) translateY(8px); }
.exhibit:hover .wing.left { transform: rotate(-16deg) translate(-8px, 4px); opacity: 0.92; }
.exhibit:hover .wing.right { transform: rotate(16deg) translate(8px, 4px); opacity: 0.92; }

#featurePaper {
  z-index: 2;
  transform: rotate(3deg);
  transition: transform 0.45s var(--ease-spring);
}
.exhibit:hover #featurePaper { transform: rotate(0deg) scale(1.03); }
#featurePaper.is-animating { animation: exhibitEnter 0.45s var(--ease-apple); }

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(12, 12, 14, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 600;
}
.caption__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.caption__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--highlight);
  box-shadow: 0 0 10px var(--highlight);
}
.caption__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.caption__btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #fff;
}
.caption__btn:hover {
  border-color: var(--highlight);
  background: rgba(251, 191, 36, 0.16);
  color: var(--highlight);
  transform: scale(1.08);
}

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  background: #0a0a0c;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 0 36px;
  width: max-content;
  white-space: nowrap;
  animation: marqueeRoll 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__item {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg2);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  transition: color 0.3s ease;
}
.marquee__item:hover { color: var(--highlight); }
.marquee__item i {
  font-style: normal;
  font-size: 0.7em;
  color: var(--highlight);
}

/* ============ FEATURES / KEUNGGULAN CARDS ============ */
.pb-head { max-width: 740px; margin-bottom: 40px; }
.pb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.pb-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.pb-card:hover {
  border-color: rgba(251, 191, 36, 0.38);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}
.pb-card__n {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--highlight);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  margin-bottom: 16px;
}
.pb-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}
.pb-card p {
  margin: 0;
  color: var(--fg2);
  font-size: 14px;
  line-height: 1.6;
}

/* ============ GALLERY ============ */
#gallery { scroll-margin-top: 84px; }
.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}
.search-box {
  position: relative;
  width: min(100%, 310px);
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--fg3);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 11px 40px 11px 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-card);
  color: #fff;
  font-size: 13.5px;
}
.search-box input:focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
  outline: none;
}
.search-box kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 2px 6px;
}

#filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 26px;
}
.filter {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 15px;
  background: var(--bg-card);
  color: var(--fg2);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.filter:hover {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fff;
  transform: translateY(-2px);
}
.filter.active {
  background: var(--highlight);
  color: #080808;
  border-color: var(--highlight);
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.32);
}
.filter__count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.72;
}

/* Gallery Active Bar (when selecting template without jumping away) */
.gallery-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 13px 18px;
  border-radius: 16px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.36);
  margin-bottom: 22px;
}
.gallery-active-bar__info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.gallery-active-bar__swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
}

#cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  align-items: start;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  cursor: pointer;
  background: var(--bg-card);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  position: relative;
}
.card:hover {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.65), 0 0 24px rgba(251, 191, 36, 0.12);
}
.card.is-selected {
  border-color: var(--highlight);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35), 0 20px 44px rgba(0, 0, 0, 0.7);
}
.card-preview {
  width: 100%;
  padding: 16px 24px;
  pointer-events: none;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent);
}
.card .paper {
  width: 100%;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  display: block;
  transform: rotate(-2deg);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}
.card:hover .paper,
.card.is-selected .paper {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
}
.card-info {
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  background: rgba(15, 15, 18, 0.92);
}
.card-info b { color: #f5f5f5; font-size: 14px; }
.card-info small {
  display: block;
  color: var(--fg2);
  margin-top: 2px;
  font-size: 11.5px;
}
.card-info span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, 0.12);
  color: var(--highlight);
  font-weight: 800;
  transition: transform 0.3s var(--ease-spring), background 0.3s ease;
}
.card:hover .card-info span,
.card.is-selected .card-info span {
  background: var(--highlight);
  color: #080808;
}

/* ============ CREATOR & TRAKTIR KOPI SECTION ============ */
.creator-section {
  position: relative;
  overflow: hidden;
}
.creator-glow {
  position: absolute;
  inset: auto 50% -180px auto;
  transform: translateX(50%);
  width: 680px;
  height: 400px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15), transparent 68%);
  filter: blur(40px);
  pointer-events: none;
}
.creator-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 34px;
}
.creator-card {
  background: linear-gradient(160deg, rgba(24, 24, 28, 0.95), rgba(13, 13, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.creator-card--coffee {
  border-color: rgba(251, 191, 36, 0.32);
  background:
    radial-gradient(circle at 90% 10%, rgba(251, 191, 36, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(28, 22, 14, 0.95), rgba(14, 13, 12, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 36px rgba(251, 191, 36, 0.08);
}
.creator-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
.creator-avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #080808;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35);
  flex-shrink: 0;
}
.creator-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.creator-name h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
}
.creator-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--highlight);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.creator-role {
  margin: 4px 0 0;
  color: var(--fg2);
  font-size: 13.5px;
}
.creator-story {
  color: #d4d4d8;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}
.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(251, 191, 36, 0.14));
  border: 1px solid rgba(244, 114, 182, 0.45);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}
.ig-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #f472b6;
}
.ig-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: #f472b6;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.28);
}

.coffee-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.coffee-cup-anim {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.32);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  animation: coffeeFloat 3.2s ease-in-out infinite;
}
.coffee-svg { width: 42px; height: 42px; overflow: visible; }
.steam {
  stroke: #fbbf24;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
  animation: steamRise 2.1s ease-in-out infinite;
}
.steam-2 { animation-delay: 0.55s; }
.steam-3 { animation-delay: 1.1s; }

.coffee-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.coffee-tier {
  padding: 11px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  color: #e4e4e7;
}
.coffee-tier:hover {
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-2px);
}
.coffee-tier.is-selected {
  background: rgba(251, 191, 36, 0.16);
  border-color: var(--highlight);
  color: #fff;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.18);
}
.coffee-tier__emoji { font-size: 20px; display: block; margin-bottom: 4px; }
.coffee-tier__ico {
  width: 34px;
  height: 34px;
  margin: 0 auto 8px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: var(--highlight);
  transition: transform 0.28s var(--ease-spring), background 0.25s ease;
}
.coffee-tier:hover .coffee-tier__ico,
.coffee-tier.is-selected .coffee-tier__ico {
  transform: translateY(-2px) scale(1.06);
  background: rgba(251, 191, 36, 0.2);
}
.coffee-tier strong { display: block; font-size: 12.5px; }
.coffee-tier small { display: block; font-size: 11px; color: var(--highlight); font-family: var(--font-mono); margin-top: 2px; }

.coffee-mood {
  font-size: 13px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.08);
  border: 1px dashed rgba(251, 191, 36, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
}
.coffee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.burst-particle {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  font-size: 18px;
  animation: particleBurst 0.95s var(--ease-smooth) forwards;
}

/* ============ EDITOR WORKSPACE ============ */
.editor-main {
  max-width: 1620px;
  margin: 0 auto;
  padding: 24px clamp(14px, 3vw, 36px) 56px;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--highlight);
  margin: 0;
}
.intro h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 42px);
  letter-spacing: -0.03em;
  margin: 6px 0;
  color: #fff;
}
.intro p { color: var(--fg2); margin: 0; }
.intro-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1.9fr) minmax(250px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.panel, .preview-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}
.panel { padding: 18px; }
.panel h2 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 12px;
  color: #fff;
}
.panel h3 { font-size: 14px; font-weight: 700; margin: 0; color: #fff; }
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}
.panel-title h2 { margin: 0; }
.link {
  color: var(--highlight);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
}
.link:hover { background: rgba(251, 191, 36, 0.22); }

.panel label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg2);
  margin: 0 0 11px;
}
.panel input,
.panel select,
.panel textarea {
  display: block;
  width: 100%;
  padding: 9px 11px;
  margin-top: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: var(--bg-input);
  color: #f5f5f5;
  min-width: 0;
}
.panel input:focus,
.panel select:focus,
.panel textarea:focus {
  border-color: var(--highlight);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.14);
  outline: none;
}
.panel textarea { resize: vertical; min-height: 58px; }
.panel input[type=color] { height: 40px; padding: 4px; cursor: pointer; }
.panel input[type=file] { font-size: 11.5px; padding: 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Collapsible Form Groups inside Editor */
.form-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.form-section summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 13px;
  color: #f5f5f5;
}
.form-section summary::-webkit-details-marker { display: none; }
.form-section[open] summary { margin-bottom: 12px; color: var(--highlight); }

/* Toggle Switch */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}
.switch-row span { font-size: 12.5px; font-weight: 600; color: #e4e4e7; }
.switch-row input[type=checkbox] {
  width: 38px;
  height: 22px;
  margin: 0;
  appearance: none;
  background: #2e2e36;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  border: 0;
  padding: 0;
  flex-shrink: 0;
}
.switch-row input[type=checkbox]::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s var(--ease-spring);
}
.switch-row input[type=checkbox]:checked { background: var(--highlight); }
.switch-row input[type=checkbox]:checked::after {
  transform: translateX(16px);
  background: #080808;
}

.item {
  padding: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 10px;
}
.item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.item-head input { margin: 0; }
.remove {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #f87171;
  background: rgba(248, 113, 113, 0.1);
  flex-shrink: 0;
}
.remove:hover { background: rgba(248, 113, 113, 0.22); }

.preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 20, 24, 0.95);
}
.preview-bar b { color: #fff; font-size: 14px; }
.preview-bar small { display: block; color: var(--fg2); font-size: 11.5px; margin-top: 2px; }
.preview-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.zoom-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.03);
}
.zoom-btn {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fg2);
}
.zoom-btn.is-active {
  background: var(--highlight);
  color: #080808;
}

.stage {
  padding: 24px;
  background:
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 16px 16px,
    #14151a;
  min-height: 560px;
  overflow: auto;
  display: grid;
  place-items: start center;
}
.paper-zoom {
  width: 100%;
  transition: width 0.25s var(--ease-apple);
}
.paper {
  container-type: inline-size;
  width: 100%;
  max-width: 100%;
  margin: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  background: #fff;
}
.paper > .invoice { min-height: inherit; }
#preview > .invoice { min-height: var(--sheet-height); }
.card .invoice, .exhibit .invoice, .drawer-card .invoice { min-height: 141.43cqw; }
.paper { font-variant-numeric: tabular-nums; }

.template-label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.swatch {
  width: 26px;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.accent-presets {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: -4px 0 12px;
}
.accent-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 0;
}
.accent-dot:hover { transform: scale(1.18); border-color: #fff; }
.note {
  background: rgba(251, 191, 36, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.24);
  color: #fde68a;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.55;
  margin-top: 12px;
}

/* ============ IN-EDITOR TEMPLATE DRAWER (GANTI TEMPLATE TANPA PINDAH) ============ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 995;
  background: rgba(4, 4, 6, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
}
.drawer-panel {
  width: min(100%, 740px);
  height: 100%;
  background: #101014;
  border-left: 1px solid rgba(251, 191, 36, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: drawerSlide 0.35s var(--ease-apple);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
}
.drawer-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.drawer-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
}
.drawer-controls {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.drawer-controls input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--bg-input);
  color: #fff;
}
.drawer-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.drawer-filters .filter { padding: 6px 12px; font-size: 12px; white-space: nowrap; }
.drawer-grid {
  flex: 1;
  min-height: 0;
  padding: 18px 22px 32px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 16px;
  align-content: start;
  grid-auto-rows: max-content;
}
.drawer-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}
.drawer-card:hover {
  border-color: rgba(251, 191, 36, 0.6);
  transform: translateY(-3px);
}
.drawer-card.is-selected {
  border-color: var(--highlight);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}
.drawer-card .card-preview { width: 100%; padding: 12px 16px; }
.drawer-card .paper {
  width: 100%;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  display: block;
}
.drawer-card .card-info { padding: 9px 11px; }
.drawer-card .card-info b { font-size: 12.5px; }

/* ============ MODAL & TOAST ============ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 4, 6, 0.78);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal-card {
  width: min(100%, 500px);
  background: #121215;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 50px rgba(251, 191, 36, 0.14);
  animation: modalPop 0.38s var(--ease-spring);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg2);
  display: grid;
  place-items: center;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 9998;
  background: #16161a;
  color: #fff;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-spring);
}
.toast.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ FOOTER ============ */
.foot {
  border-top: 1px solid var(--line);
  background: #080808;
  padding: 46px 0 38px;
}
.foot__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}
.foot__tag {
  color: var(--fg2);
  font-size: 13.5px;
  margin: 10px 0 0;
  max-width: 360px;
}
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}
.foot__links a {
  color: var(--fg2);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.foot__links a:hover { color: var(--highlight); }
.foot__copy {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--fg3);
  font-size: 12.5px;
}
.foot__copy a {
  color: var(--highlight);
  text-decoration: none;
  font-weight: 700;
}
.foot__copy a:hover { text-decoration: underline; }

/* ============ SCROLL TO TOP RING ============ */
.progress-wrap {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(16, 16, 19, 0.92);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.35s var(--ease-spring);
}
.progress-wrap.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.progress-circle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.progress-arrow-icon {
  color: var(--highlight);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease-spring);
}
.progress-wrap:hover .progress-arrow-icon { transform: translateY(-3px); }

/* ==========================================================================
   100-TEMPLATE PRINT ENGINE (INVOICE + KWITANSI PELUNASAN)
   ========================================================================== */
.invoice {
  --ink: #222;
  --muted: #6b6b70;
  --surface: #fff;
  min-height: 100%;
  padding: 7cqw;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font);
  font-size: 2.05cqw;
  line-height: 1.5;
  overflow-wrap: anywhere;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.invoice:before, .invoice:after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.invoice h1 { font-size: 6.4cqw; line-height: 1; letter-spacing: -.05em; margin: 0 0 1cqw; color: var(--accent); }
.invoice h2 { font-size: 2.9cqw; margin: 0; line-height: 1.3; }
.invoice h3 { font-size: 1.6cqw; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .8cqw; color: var(--accent); }
.invoice p { margin: 0; white-space: pre-wrap; }
.invoice .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 3cqw; margin-bottom: 5.5cqw; }
.invoice .identity { max-width: 55%; }
.invoice .logo { max-width: 20cqw; max-height: 11cqw; object-fit: contain; margin-bottom: 1cqw; }
.invoice .doc { text-align: right; }
.invoice .meta { display: flex; justify-content: space-between; gap: 3cqw; margin-bottom: 4.5cqw; }
.invoice .meta > div { flex: 1; }
.invoice .meta > div:last-child { text-align: right; }
.invoice table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 3cqw; font-variant-numeric: tabular-nums; }
.invoice th, .invoice td { padding: 1.25cqw .75cqw; text-align: right; vertical-align: top; }
.invoice th:first-child, .invoice td:first-child { text-align: left; width: 40%; }
.invoice th:nth-child(2) { width: 9%; }
.invoice th:nth-child(n+3) { width: 25.5%; }
.invoice th { color: white; background: var(--accent); font-size: 1.6cqw; text-transform: uppercase; letter-spacing: .035em; }
.invoice td { border-bottom: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.invoice .summary { align-self: flex-end; width: 50%; margin-bottom: 5cqw; }
.invoice .sumline { display: flex; justify-content: space-between; gap: 1cqw; padding: .55cqw 0; }
.invoice .total { background: var(--accent); color: white; font-weight: bold; padding: 1.25cqw; margin-top: .9cqw; }
.invoice .bottom { display: flex; gap: 3cqw; justify-content: space-between; margin-top: auto; padding-top: 3.5cqw; border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); }
.invoice .bottom > div { flex: 1; }

/* Small Customizable Watermark ("Design by CreosLab") */
.doc-watermark {
  margin-top: 2.5cqw;
  padding-top: 1.2cqw;
  border-top: 1px dashed color-mix(in srgb, var(--ink) 14%, transparent);
  text-align: center;
  font-size: 1.25cqw;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.72;
}

/* Kwitansi Pelunasan Specific Elements */
.receipt-box {
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  border-radius: 1.6cqw;
  padding: 2.8cqw;
  margin-bottom: 3.5cqw;
  display: grid;
  gap: 2cqw;
}
.receipt-row {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 2cqw;
  align-items: baseline;
  border-bottom: 1px dashed color-mix(in srgb, var(--ink) 14%, transparent);
  padding-bottom: 1.2cqw;
}
.receipt-row:last-child { border-bottom: 0; padding-bottom: 0; }
.receipt-lbl {
  font-size: 1.65cqw;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.receipt-val { font-size: 2.2cqw; font-weight: 600; }
.receipt-amount-pill {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.8cqw 1.8cqw;
  border-radius: 1cqw;
  font-size: 3cqw;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.receipt-terbilang {
  font-style: italic;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  padding: 1cqw 1.4cqw;
  border-left: 0.5cqw solid var(--accent);
  font-size: 1.95cqw;
}
.receipt-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3cqw;
  margin-top: auto;
  padding-top: 3.5cqw;
  border-top: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
}
.receipt-stamp {
  display: inline-block;
  border: 0.45cqw solid var(--accent);
  color: var(--accent);
  padding: 0.9cqw 2cqw;
  border-radius: 0.8cqw;
  font-weight: 900;
  font-size: 2.3cqw;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-5deg);
  box-shadow: inset 0 0 0 0.2cqw color-mix(in srgb, var(--accent) 30%, transparent);
}
.receipt-sign {
  text-align: right;
  min-width: 34%;
}
.receipt-sign__line {
  margin-top: 7cqw;
  border-top: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  padding-top: 0.9cqw;
  font-weight: 700;
}

/* Category Accent Textures (non-conflicting with hdr-*, body-*, meta-*, tbl-*, sum-*, frame-*) */
.invoice.luxury h1 { font-weight: 400; letter-spacing: .06em; }
.invoice.minimal h1 { font-weight: 400; }
.invoice.editorial h1 { letter-spacing: -.05em; }
.invoice.swiss h1 { font-weight: 900; }
.invoice.brutalist { border: 0.65cqw solid #111; }
.invoice.brutalist h1 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; color: #111; }
.invoice.brutalist .total { background: var(--accent); color: #111; border: 0.4cqw solid #111; box-shadow: 0.7cqw 0.7cqw 0 #111; }
.invoice.brutalist .receipt-box { border: 0.4cqw solid #111; box-shadow: 0.7cqw 0.7cqw 0 #111; }
.invoice.bento .head, .invoice.bento .meta > div, .invoice.bento .bottom > div {
  border-radius: 2cqw;
  padding: 2.2cqw;
}

/* Decorative Family Art Bands (cleanly scaled so layout headers stay crisp) */
.art { display: flex; height: 4.2cqw; margin: -1cqw 0 2.5cqw; align-items: center; overflow: hidden; color: var(--accent); flex-shrink: 0; }
.art i { display: block; flex: 1; height: 100%; }
.invoice.hdr-3 .art, .invoice.body-1 .art, .invoice.body-2 .art { display: none; }

.luxury .art { justify-content: center; border-block: 1px solid var(--accent); height: 3.6cqw; }
.luxury .art i { flex: none; width: 2.1cqw; height: 2.1cqw; border: 1px solid currentColor; transform: rotate(45deg); margin: 0 -.3cqw; }
.corporate .art { order: 3; height: 2.2cqw; margin: 2cqw -7cqw -7cqw; background: repeating-linear-gradient(115deg, var(--accent) 0 5cqw, transparent 5cqw 6cqw); }
.minimal .art { height: 0.8cqw; border-top: 1px solid var(--accent); }
.minimal .art i:first-child { max-width: 14%; background: var(--accent); }
.editorial .art { height: 3.5cqw; border-bottom: 1px solid; }
.editorial .art i { background: repeating-linear-gradient(90deg, currentColor 0 .25cqw, transparent .25cqw 1cqw); }
.editorial .art i:nth-child(2) { flex: 2; background: none; }
.creative .art { margin: -7cqw -7cqw 3cqw; height: 7cqw; background: #f1b594; }
.creative .art i { background: repeating-radial-gradient(ellipse at 0 100%, #242e45 0 1cqw, transparent 1.1cqw 2.3cqw); }
.creative .art i:nth-child(2) { background: radial-gradient(circle at center, #fff0c9 0 40%, var(--accent) 41%); }
.creative .art i:last-child { background: repeating-linear-gradient(135deg, var(--accent) 0 3cqw, #ffdabc 3cqw 6cqw); }
.tech .art { height: 2.6cqw; background: repeating-linear-gradient(90deg, var(--accent) 0 .45cqw, transparent .45cqw 1.6cqw); border-block: 1px solid currentColor; }
.swiss .art { height: 6.5cqw; justify-content: flex-end; }
.swiss .art i { flex: none; width: 6.5cqw; background: var(--accent); border-radius: 50%; margin-left: -2cqw; }
.swiss .art i:nth-child(2) { background: #e6ab81; }
.swiss .art i:last-child { background: #97b1ba; }
.soft .art { height: 4.4cqw; background: repeating-radial-gradient(ellipse at 50% 195%, transparent 0 1.6cqw, currentColor 1.7cqw 1.9cqw, transparent 2cqw 2.6cqw); opacity: .65; }
.bento .art { height: 2.2cqw; gap: 1.2cqw; margin-bottom: 2.2cqw; }
.bento .art i { border-radius: 999px; background: color-mix(in srgb, var(--accent) 24%, transparent); }
.bento .art i:first-child { background: var(--accent); flex: 2; }
.brutalist .art { height: 3.2cqw; border-bottom: 0.4cqw solid #111; margin: -7cqw -7cqw 2.8cqw; background: repeating-linear-gradient(90deg, var(--accent) 0 4cqw, #111 4cqw 4.6cqw); }
.brutalist .art i { display: none; }
.arch .art { height: 2.2cqw; border-bottom: 0.15cqw solid var(--accent); background: repeating-linear-gradient(90deg, transparent 0 3cqw, var(--accent) 3cqw 3.2cqw); }
.mono .art { height: 3.2cqw; justify-content: center; border-bottom: 0.2cqw double var(--accent); }
.mono .art i { flex: none; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; border: 0.2cqw solid var(--accent); margin: 0 0.4cqw; }
.vintage .art { height: 2cqw; border-top: 0.3cqw dashed var(--accent); border-bottom: 0.15cqw solid var(--accent); }
.atelier .art { height: 1.4cqw; border-top: 0.2cqw solid var(--accent); opacity: 0.65; }
.pastel .art { height: 2.4cqw; gap: 1cqw; }
.pastel .art i { border-radius: 999px; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.ribbon .art { height: 2.4cqw; margin: -7cqw -7cqw 2.6cqw; background: var(--accent); }
.ledger .art { height: 1.8cqw; border-block: 0.25cqw double var(--ink); }
.folio .art { height: 1.6cqw; background: var(--ink); width: 28%; }
.glass .art { height: 2.2cqw; border-radius: 999px; background: linear-gradient(90deg, var(--accent), transparent); }
.cinema .art { height: 2.6cqw; background: repeating-linear-gradient(90deg, var(--ink) 0 1.4cqw, transparent 1.4cqw 2.8cqw); opacity: 0.35; }
.artisan .art { height: 2.2cqw; border-bottom: 0.2cqw dotted var(--accent); }
.ticket .art { height: 1.8cqw; background: repeating-linear-gradient(90deg, var(--ink) 0 0.5cqw, transparent 0.5cqw 1cqw, var(--ink) 1cqw 1.2cqw, transparent 1.2cqw 2cqw); opacity: 0.5; }
.news .art { height: 1.2cqw; border-top: 0.4cqw solid var(--ink); border-bottom: 0.15cqw solid var(--ink); }
.noir .art { height: 1.6cqw; background: linear-gradient(90deg, var(--accent), transparent 65%); }

/* ============ RESPONSIVE & PRINT ============ */
@media (max-width: 1120px) {
  .workspace { grid-template-columns: minmax(250px, 1fr) minmax(300px, 1.6fr); }
  .settings { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .settings h2 { grid-column: 1 / -1; }
  .nav-creator-pills .creator-ig-pill { display: none; }
}
@media (max-width: 960px) {
  .creator-grid { grid-template-columns: 1fr; }
  .top__inner { height: auto; min-height: 64px; padding: 10px 18px; flex-wrap: wrap; gap: 10px; }
  .top-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .top-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 680px) {
  .top__inner { height: auto; min-height: 62px; padding: 10px 14px; flex-wrap: wrap; gap: 10px; }
  .top-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .top-actions { gap: 6px; }
  .nav-coffee-sep { padding-left: 0; border-left: 0; }
  #saveState { display: none; }
  .exhibit { aspect-ratio: 1.55; min-height: 230px; }
  .exhibit .paper, .exhibit .proof { width: 34%; }
  .exhibit .wing { width: 27%; }
  .exhibit .wing.left { left: 9%; }
  .exhibit .wing.right { right: 9%; }
  .workspace { display: flex; flex-direction: column; }
  .workspace > * { width: 100%; }
  .settings { display: block; }
  .stage { min-height: auto; padding: 12px; }
  #cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .drawer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; }
  .card-preview { padding: 12px; }
  .card-info { padding: 10px 12px; }
  .coffee-tiers { grid-template-columns: 1fr; }
  .live-stats { grid-template-columns: 1fr; gap: 10px; }
  .live-notif { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .title-anim .word i { opacity: 1 !important; transform: none !important; }
}

/* ============ STUDIO 6-TOOL ANIMATED GLASS COMMAND DOCK ============ */
@keyframes studioPanelReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.is-panel-enter {
  animation: studioPanelReveal 0.42s var(--ease-smooth) both;
}

.studio-mission-strip {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), rgba(56, 189, 248, 0.04) 55%, rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 9px 24px;
}
.studio-mission-strip__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.2px;
  color: #d4d6dc;
}
.studio-mission-strip__inner strong { color: var(--highlight); }
.studio-mission-copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.studio-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.85);
  flex-shrink: 0;
  animation: pulseDot 2.2s infinite;
}
.studio-mission-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--highlight);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.22s var(--ease-spring);
}
.studio-mission-wa:hover {
  color: #fde68a;
  transform: translateX(2px);
}

.studio-dock-wrap {
  position: sticky;
  top: 70px;
  z-index: 65;
  background: rgba(9, 11, 16, 0.84);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 24px;
}
.studio-dock-wrap::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.35), rgba(147, 197, 253, 0.24), transparent);
  pointer-events: none;
}
.studio-dock-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.studio-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  color: #d4d6dc;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.24s ease, color 0.24s ease, background 0.24s ease, transform 0.24s var(--ease-spring);
}
.studio-back-btn svg {
  transition: transform 0.26s var(--ease-spring);
}
.studio-back-btn:hover {
  color: #ffffff;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}
.studio-back-btn:hover svg {
  transform: translateX(-3px);
}

.studio-dock-rail {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.studio-dock-rail::-webkit-scrollbar {
  display: none;
}

.studio-tool-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 28px rgba(0, 0, 0, 0.35);
}
.studio-tab-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 22px rgba(251, 191, 36, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: transform 0.44s var(--ease-spring), width 0.44s var(--ease-spring), opacity 0.2s ease;
  will-change: transform, width;
}
.studio-tab-glider.is-ready {
  opacity: 1;
}

.studio-tool-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  padding: 7px 9px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #a1a5b0;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.24s var(--ease-spring);
}
@media (max-width: 1420px) {
  .studio-dock-inner { gap: 10px; }
  .studio-tool-tab { padding: 6.5px 7.5px; font-size: 11px; gap: 4px; }
  .studio-sub-tab { padding: 6px 10px; font-size: 11.5px; }
}
.studio-tool-tab svg {
  opacity: 0.8;
  transition: transform 0.28s var(--ease-spring), opacity 0.22s ease;
}
.studio-tool-tab:hover {
  color: #ffffff;
  transform: translateY(-1px);
}
.studio-tool-tab:hover svg {
  opacity: 1;
  transform: scale(1.12);
}
.studio-tool-tab.is-active {
  color: #08090b;
}
.studio-tool-tab.is-active svg {
  opacity: 1;
  transform: scale(1.06);
}
.studio-tool-tabs:not(.has-glider) .studio-tool-tab.is-active {
  background: var(--highlight);
  box-shadow: 0 4px 16px rgba(251, 191, 36, 0.34);
}

.studio-sub-tabs {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}
.studio-sub-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.38);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: transform 0.38s var(--ease-spring), width 0.38s var(--ease-spring), opacity 0.2s ease;
}
.studio-sub-glider.is-ready {
  opacity: 1;
}
.studio-sub-tab {
  position: relative;
  z-index: 1;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--fg2);
  font-size: 12.2px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.24s ease;
}
.studio-sub-tab:hover {
  color: #fff;
}
.studio-sub-tab.active {
  color: var(--highlight);
}
.studio-sub-tabs:not(.has-glider) .studio-sub-tab.active {
  background: rgba(251, 191, 36, 0.14);
}

@media (max-width: 1020px) {
  .studio-dock-wrap { top: 0; position: relative; padding: 10px 14px; }
  .studio-dock-inner { flex-wrap: wrap; gap: 10px; }
  .studio-dock-rail { order: 3; flex: 1 0 100%; justify-content: flex-start; }
}

.tool-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(320px, 1.55fr);
  gap: 18px;
  align-items: start;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.calc-metric {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.calc-metric--highlight {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
  border-color: rgba(251, 191, 36, 0.45);
}
.calc-metric small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.calc-metric strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  color: #fff;
}
.calc-metric--highlight strong { color: #fbbf24; }
.calc-metric span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #9a9da5;
}

.calc-breakdown {
  padding: 18px;
  border-radius: 16px;
  background: rgba(14, 16, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: #d4d6dc;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.calc-row:last-child { border-bottom: 0; padding-bottom: 0; }

/* SPK, Quotation & Checklist Paper Documents */
.spk-clauses {
  display: grid;
  gap: 1.8cqw;
  margin: 2cqw 0 3.5cqw;
}
.spk-clause h4 {
  margin: 0 0 0.5cqw;
  font-size: 1.8cqw;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spk-clause p {
  font-size: 1.8cqw;
  line-height: 1.55;
  color: var(--ink);
}
.spk-sign-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4cqw;
  margin-top: auto;
  padding-top: 3cqw;
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.spk-sign-box { text-align: center; }
.spk-sign-space { height: 8cqw; }
.spk-sign-name {
  border-top: 1px solid color-mix(in srgb, var(--ink) 38%, transparent);
  padding-top: 0.8cqw;
  font-weight: 700;
  font-size: 1.9cqw;
}

.quote-tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8cqw;
  margin: 2.5cqw 0 3.5cqw;
}
.quote-tier-box {
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-radius: 1.5cqw;
  padding: 2cqw;
  background: color-mix(in srgb, var(--accent) 4%, #fff);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote-tier-box.is-featured {
  border: 0.35cqw solid var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, #fff);
}
.quote-tier-badge {
  display: inline-block;
  font-size: 1.3cqw;
  font-weight: 800;
  padding: 0.4cqw 1cqw;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 0.9cqw;
}
.quote-tier-price {
  font-size: 2.6cqw;
  font-weight: 900;
  color: var(--accent);
  margin: 0.6cqw 0 1.2cqw;
}
.quote-tier-list {
  margin: 0;
  padding-left: 2cqw;
  font-size: 1.65cqw;
  line-height: 1.55;
  color: var(--ink);
}

.wa-bubble-stage {
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.12), transparent 55%),
    #0f1419;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.wa-bubble {
  background: #005c4b;
  color: #e9edef;
  border-radius: 14px 14px 4px 14px;
  padding: 16px 18px;
  font-size: 13.8px;
  line-height: 1.65;
  white-space: pre-wrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.wa-bubble-meta {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(233, 237, 239, 0.72);
}

.checklist-progress {
  margin: 12px 0 16px;
}
.checklist-progress__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 6px;
}
.checklist-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #10b981);
  transition: width 0.25s ease;
}
.check-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}
.check-item-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #fbbf24;
  cursor: pointer;
}
.check-item-row.is-done span {
  text-decoration: line-through;
  color: var(--fg3);
}
.check-item-row span {
  flex: 1;
  font-size: 13px;
  color: #e4e4e7;
}
.check-doc-list {
  display: grid;
  gap: 1.1cqw;
  margin: 2cqw 0;
}
.check-doc-item {
  display: flex;
  align-items: baseline;
  gap: 1.4cqw;
  padding: 0.9cqw 1.2cqw;
  border-radius: 0.9cqw;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  font-size: 1.85cqw;
}
.check-doc-item.is-done {
  background: color-mix(in srgb, var(--accent) 8%, #fff);
}

.studio-ecosystem-cta {
  max-width: 1620px;
  margin: 24px auto 0;
  padding: 18px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(24, 27, 36, 0.95), rgba(14, 16, 22, 0.98));
  border: 1px solid rgba(251, 191, 36, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .tool-workspace { grid-template-columns: 1fr; }
  .calc-results-grid { grid-template-columns: 1fr; }
  .quote-tiers-grid { grid-template-columns: 1fr; }
}

/* ============ DIGITAL SIGNATURE & DOCUMENT STAMPS ============ */
.doc-sign-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3cqw;
  margin-top: 3cqw;
  padding-top: 2cqw;
  border-top: 1px dashed color-mix(in srgb, var(--ink) 16%, transparent);
}
.doc-stamp {
  display: inline-block;
  border: 0.42cqw solid var(--stamp-color, var(--accent));
  color: var(--stamp-color, var(--accent));
  padding: 0.75cqw 1.8cqw;
  border-radius: 0.8cqw;
  font-weight: 900;
  font-size: 2.05cqw;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 0.18cqw color-mix(in srgb, var(--stamp-color, var(--accent)) 28%, transparent);
}
.doc-sign-box {
  text-align: right;
  min-width: 30%;
  margin-left: auto;
}
.doc-signature-img {
  display: block;
  max-width: 22cqw;
  max-height: 9cqw;
  object-fit: contain;
  margin: 0.5cqw 0 0.4cqw auto;
}
.spk-sign-box .doc-signature-img {
  margin: 0 auto 0.2cqw;
  max-height: 7.5cqw;
}
.receipt-sign .doc-signature-img {
  margin: 1.5cqw 0 0.4cqw auto;
}
.receipt-sign--has-sig .receipt-sign__line {
  margin-top: 0.5cqw;
}
.doc-sign-line {
  border-top: 1px solid color-mix(in srgb, var(--ink) 35%, transparent);
  padding-top: 0.7cqw;
  font-weight: 700;
  font-size: 1.8cqw;
}
.sig-preview-thumb {
  width: 100%;
  height: 74px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 6px;
}
.sig-preview-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sig-pad-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.38);
  background: #ffffff;
  position: relative;
}
.sig-pad-canvas {
  display: block;
  width: 100%;
  height: 220px;
  touch-action: none;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
}
.sig-color-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.sig-color-btn.is-active {
  transform: scale(1.16);
  border-color: #fbbf24;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}

/* ============ SPLIT FEE, QR STUDIO & COLLAGE/PRICELIST DESIGN STUDIO ============ */
.split-crew-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.85fr auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}
@media (max-width: 580px) {
  .split-crew-row { grid-template-columns: 1fr 1fr; }
}
.split-bars {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.split-bar-row {
  display: grid;
  gap: 5px;
}
.split-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #e4e4e7;
}
.split-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.split-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  transition: width 0.3s ease;
}
.split-status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.split-status-pill.is-ok {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #34d399;
}
.split-status-pill.is-warn {
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.studio-canvas-stage {
  display: grid;
  place-items: center;
  padding: 20px;
  min-height: 460px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #101218;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  overflow: auto;
}
.studio-canvas-stage canvas {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
  user-select: none;
  -webkit-user-select: none;
}
.design-canvas-el {
  touch-action: none;
  cursor: grab;
}
.design-canvas-el:active { cursor: grabbing; }

.privacy-badge-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #86efac;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.design-mode-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.design-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #a1a5b0;
  transition: background 0.22s ease, color 0.22s ease;
}
.design-mode-btn.is-active {
  background: #fbbf24;
  color: #08090b;
}
.design-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}
.design-slot-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #e4e4e7;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}
.design-slot-btn.is-active {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}
.design-slot-btn.has-img small {
  color: #34d399;
}
.design-pkg-box {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
  display: grid;
  gap: 7px;
}

#printRoot { display: none; }
@media print {
  body > *:not(#printRoot) { display: none !important; }
  html, body { margin: 0; background: white !important; color: black !important; }
  #printRoot { display: block !important; }
  .paper { box-shadow: none; max-width: none; margin: 0; }
  .invoice { print-color-adjust: exact; -webkit-print-color-adjust: exact; overflow: visible; }
  .invoice tr, .invoice .summary, .invoice .bottom, .receipt-box, .receipt-footer-grid, .spk-clause, .spk-sign-grid, .quote-tier-box { break-inside: avoid; }
  .invoice thead { display: table-header-group; }
}
