/* ============================================
   NotaOTO LITE — Design System
   "Studio Nota" — kertas premium, tinta emerald, aksen emas foil.
   Mobile-first | Craft-grade detailing
   ============================================ */

/* ---------- Fonts ----------
   Fraunces  : display serif, editorial & hangat — bukan Playfair template.
   Inter     : UI & body, sudah familiar & sangat legible.
   JetBrains Mono : untuk layout "Struk Kasir" (ganti Courier New generik). */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* ---------- CSS Variables / Theme ---------- */
:root {
  /* Brand — tinta emerald yang lebih dalam & kaya, bukan hijau flat SaaS */
  --primary: #0e7a54;
  --primary-dark: #0a5b3f;
  --primary-light: #d7f0e2;

  /* Netral hangat — "kertas" bukan abu-abu biru generik */
  --slate-50:  #faf8f4;
  --slate-100: #f2efe6;
  --slate-200: #e5e0d2;
  --slate-300: #cdc6b2;
  --slate-400: #9c9481;
  --slate-500: #6f6a5a;
  --slate-600: #4c4a3f;
  --slate-700: #34362d;
  --slate-800: #1d2419;
  --slate-900: #0e150e;

  --emerald-50: #eaf7f0;
  --emerald-100: #cfeddb;
  --emerald-500: #159066;
  --emerald-600: #0e7a54;
  --emerald-700: #0a5b3f;

  /* Aksen emas foil — dipakai sangat sedikit, untuk momen "premium" */
  --gold-300: #ecd8a4;
  --gold-500: #c69a44;
  --gold-600: #a67c30;
  --amber-500: #c69a44;
  --rose-500: #e0455c;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;

  --shadow-sm: 0 1px 2px rgba(14,21,14,0.05), 0 1px 1px rgba(14,21,14,0.04);
  --shadow-md: 0 8px 24px -6px rgba(14,21,14,0.12), 0 2px 8px rgba(14,21,14,0.05);
  --shadow-lg: 0 24px 60px -12px rgba(14,21,14,0.22), 0 6px 20px rgba(14,21,14,0.08);
  --shadow-gold: 0 10px 30px -8px rgba(198,154,68,0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Fraunces', 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Lucide Icons ---------- */
.lucide {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  vertical-align: -0.125em;
  display: inline-block;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

/* ---------- Base / Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--slate-50);
  color: var(--slate-800);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Page Transitions ---------- */
.page {
  display: none;
  animation: fadeIn 0.6s var(--ease) forwards;
}
.page.active {
  display: block;
}

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

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

@keyframes scaleIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); max-height: 0; }
  to { opacity: 1; transform: translateY(0); max-height: 240px; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 122, 84, 0.35); }
  50% { box-shadow: 0 0 0 14px rgba(14, 122, 84, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes goldSweep {
  0% { transform: translateX(-120%) skewX(-12deg); }
  100% { transform: translateX(220%) skewX(-12deg); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 3%) scale(1.05); }
}

@keyframes seal-settle {
  0% { transform: scale(0.6) rotate(-14deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ---------- Scroll reveal (dipicu via IntersectionObserver di app.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in-view > * {
  animation: fadeInUp 0.7s var(--ease) both;
}
.reveal-stagger.in-view > *:nth-child(1) { animation-delay: 0.03s; }
.reveal-stagger.in-view > *:nth-child(2) { animation-delay: 0.11s; }
.reveal-stagger.in-view > *:nth-child(3) { animation-delay: 0.19s; }
.reveal-stagger.in-view > *:nth-child(4) { animation-delay: 0.27s; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ---------- Grain / paper texture overlay ---------- */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 122, 84, 0.18);
}

.glass-card-dark {
  background: rgba(14, 21, 14, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Monogram / Seal ---------- */
.brand-seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, #1a9d6d, var(--primary-dark) 78%);
  border: 1px solid rgba(236, 216, 164, 0.5);
  box-shadow: 0 0 0 3px rgba(198,154,68,0.18), var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-300);
  animation: seal-settle 0.7s var(--ease) 0.15s both;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .brand-seal { width: 64px; height: 64px; font-size: 1.6rem; }
}

/* ---------- Premium Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 20px;
  background: linear-gradient(135deg, #12885f, var(--primary-dark));
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  box-shadow: 0 6px 18px rgba(10, 91, 63, 0.32);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 46px;
}

@media (min-width: 640px) {
  .btn-primary {
    padding: 15px 30px;
    font-size: 0.95rem;
    border-radius: 12px;
    gap: 8px;
  }
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-120%) skewX(-12deg);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after { animation: goldSweep 1.1s var(--ease); }

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10, 91, 63, 0.4);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  background: white;
  color: var(--slate-700);
  font-weight: 500;
  font-size: 0.82rem;
  border: 1.5px solid var(--slate-200);
  border-radius: 11px;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 46px;
}

@media (min-width: 640px) {
  .btn-secondary {
    gap: 8px;
    padding: 13px 24px;
    font-size: 0.9rem;
    border-radius: 12px;
  }
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  transform: translateY(-1px);
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.96);
  color: var(--slate-800);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.btn-hero-secondary:hover {
  background: white;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  box-shadow: 0 12px 32px rgba(166,124,48,0.5);
}

/* ---------- Button Utilities ---------- */
.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-generate {
  width: 100%;
  justify-content: center;
  padding: 16px 20px;
  font-size: 0.92rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(10, 91, 63, 0.35);
}

@media (min-width: 640px) {
  .btn-generate {
    padding: 19px 24px;
    font-size: 1rem;
    border-radius: 16px;
  }
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: #fdf1f1;
  color: #b3222f;
  font-weight: 500;
  font-size: 0.8rem;
  border: 1px solid #f3cdd1;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-danger:hover {
  background: #fbe2e4;
  transform: translateY(-1px);
}

/* ---------- Form Inputs ---------- */
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: white;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--slate-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

@media (min-width: 640px) {
  .form-input {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 122, 84, 0.12);
}

.form-input::placeholder {
  color: var(--slate-400);
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

/* ---------- Landing Page Styles ---------- */
.landing-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 18% 15%, rgba(198,154,68,0.10) 0%, transparent 45%),
    linear-gradient(165deg, #0a1b12 0%, #0e2a1d 45%, #0a4530 100%);
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 28% 38%, rgba(14, 122, 84, 0.16) 0%, transparent 55%),
              radial-gradient(circle at 74% 64%, rgba(198, 154, 68, 0.08) 0%, transparent 50%);
  animation: drift 18s ease-in-out infinite;
  background-size: 200% 200%;
}

.landing-hero * {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(198, 154, 68, 0.12);
  border: 1px solid rgba(198, 154, 68, 0.35);
  border-radius: 50px;
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 22px;
  animation: fadeInUp 0.7s var(--ease) 0.1s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: 700;
  font-style: italic;
  color: white;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  animation: fadeInUp 0.7s var(--ease) 0.22s both;
}

.hero-title .highlight {
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: rgba(226, 232, 224, 0.72);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 34px;
  animation: fadeInUp 0.7s var(--ease) 0.34s both;
}

.hero-subtitle strong {
  color: white;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 320px;
  animation: fadeInUp 0.7s var(--ease) 0.46s both;
}

.hero-actions .btn-primary {
  font-size: 0.9rem;
  padding: 14px 24px;
  border-radius: 13px;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    width: auto;
    max-width: none;
    align-items: center;
  }
  .hero-actions .btn-primary {
    font-size: 1.02rem;
    padding: 16px 36px;
    border-radius: 14px;
    width: auto;
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(226,232,224,0.55);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* ---------- Section Styles ---------- */
.section-padding {
  padding: 56px 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  font-style: italic;
  color: var(--slate-900);
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--slate-500);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 36px;
}

@media (min-width: 640px) {
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 0.97rem; margin: 0 auto 44px; }
}

/* ---------- Feature Cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}

@media (min-width: 640px) {
  .feature-card { padding: 22px; gap: 16px; }
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-100);
}

.feature-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--emerald-50);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--primary-light);
}

.feature-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}

.feature-text p {
  font-size: 0.81rem;
  color: var(--slate-500);
  line-height: 1.55;
}

/* ---------- Activation Form ---------- */
.activation-box {
  max-width: 440px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-100);
  position: relative;
}

.activation-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--primary), var(--gold-500));
}

@media (min-width: 640px) {
  .activation-box { padding: 34px 26px; }
}

.activation-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.activation-box p {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-align: center;
  margin-bottom: 24px;
}

.code-input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.code-input-group .form-input {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 14px;
}

@media (min-width: 480px) {
  .code-input-group .form-input {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    padding: 14px 16px;
  }
}

/* ---------- Dashboard Styles ---------- */
.dashboard-header {
  background: linear-gradient(120deg, #0a1b12, #0a4530 130%);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 24px rgba(0,0,0,0.22);
  border-bottom: 1px solid rgba(198,154,68,0.18);
}

.dashboard-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-logo {
  font-family: var(--font-display);
  font-style: italic;
  color: white;
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
}

.expiry-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(198,154,68,0.3);
  border-radius: 50px;
  color: var(--gold-300);
  font-size: 0.62rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .dashboard-header { padding: 20px 24px; }
  .dashboard-logo { font-size: 1.2rem; }
  .expiry-badge { padding: 6px 14px; font-size: 0.72rem; gap: 6px; }
}

@media (max-width: 380px) {
  .expiry-label { display: none; }
  .dashboard-logo { font-size: 0.85rem; max-width: 140px; }
}

.expiry-badge.expired {
  color: #f3a3ab;
  border-color: rgba(243, 163, 171, 0.35);
}

.dashboard-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 14px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 1024px) {
  .dashboard-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px 24px 100px;
  }
}

/* ---------- Form Section (Dashboard) ---------- */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-card {
  background: white;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.form-card:focus-within {
  border-color: var(--emerald-100);
  box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
  .form-card { padding: 22px; }
}

.form-card-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-card-title .icon {
  font-size: 1rem;
}

/* ---------- Items List (Dynamic) ---------- */
.item-entry {
  position: relative;
  background: var(--slate-50);
  border-radius: var(--radius-xs);
  padding: 12px 40px 12px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--slate-100);
  animation: slideDown 0.35s var(--ease) both;
  transition: border-color var(--transition), background var(--transition);
}

.item-entry:hover {
  border-color: var(--slate-200);
  background: white;
}

.item-entry .item-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.item-entry .item-row > div:nth-child(1) {
  grid-column: 1 / -1;
}

.item-entry .item-row > div:nth-child(4) {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0 !important;
}

.item-entry .btn-danger {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.7rem;
  line-height: 1;
}

.item-entry .item-row .form-input {
  padding: 9px 10px;
  font-size: 16px;
}

.item-entry .item-row .form-label {
  font-size: 0.66rem;
  margin-bottom: 3px;
}

@media (min-width: 560px) {
  .item-entry {
    padding: 12px;
  }
  .item-entry .item-row {
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: end;
  }
  .item-entry .item-row > div:nth-child(1) {
    grid-column: auto;
  }
  .item-entry .item-row > div:nth-child(4) {
    position: static;
    display: flex;
    align-items: end;
    padding-bottom: 2px !important;
  }
  .item-entry .btn-danger {
    width: auto;
    height: auto;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
  }
  .item-entry .item-row .form-input {
    font-size: 0.82rem;
  }
}

/* ---------- Visual Controller ---------- */
.layout-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

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

.layout-option {
  padding: 9px 4px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xs);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--slate-600);
  background: white;
  line-height: 1.3;
}

@media (min-width: 480px) {
  .layout-option {
    padding: 11px 8px;
    border-width: 2px;
    font-size: 0.75rem;
  }
}

.layout-option:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
  transform: translateY(-1px);
}

.layout-option.active {
  border-color: var(--primary);
  background: var(--emerald-50);
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(14,122,84,0.08);
}

.layout-option .layout-icon {
  font-size: 1.1rem;
  display: block;
  margin: 0 auto 4px;
  transition: transform var(--transition);
}

.layout-option.active .layout-icon {
  transform: scale(1.1);
}

@media (min-width: 480px) {
  .layout-option .layout-icon { font-size: 1.3rem; margin-bottom: 6px; }
}

.color-picker {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--transition);
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

@media (min-width: 480px) {
  .color-picker { gap: 12px; }
  .color-circle { width: 36px; height: 36px; }
}

.color-circle:hover {
  transform: scale(1.14);
}

.color-circle.active {
  border-color: var(--slate-800);
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(14, 122, 84, 0.18);
}

.color-circle.active::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* ---------- Invoice Preview ---------- */
.preview-section {
  position: sticky;
  top: 80px;
  align-self: start;
}

@media (max-width: 1023px) {
  .preview-section.preview-collapsed {
    display: none;
  }
}

.preview-container {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-100);
  transition: all var(--transition);
}

.preview-header {
  padding: 13px 20px;
  background: linear-gradient(120deg, var(--slate-50), var(--slate-100));
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-header span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-badge {
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: var(--emerald-50);
  color: var(--primary-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.preview-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
  animation: pulse-glow 1.8s ease-in-out infinite;
}

#invoice-preview {
  padding: 20px 16px;
  min-height: 280px;
  transition: all var(--transition);
  position: relative;
}

@media (min-width: 640px) {
  #invoice-preview { padding: 26px 22px; min-height: 320px; }
}

/* ============================================
   INVOICE LAYOUTS
   ============================================ */

.invoice-base {
  font-family: 'Inter', sans-serif;
  color: var(--slate-800);
}

/* Animasi ini HANYA ditambahkan lewat JS, dan hanya saat style/warna nota
   benar-benar berganti — bukan setiap kali user mengetik. Ini juga mencegah
   hasil screenshot (generate PNG) tertangkap di tengah animasi (buram/pucat). */
.invoice-base.invoice-style-change {
  animation: invoiceStyleIn 0.45s var(--ease) both;
}

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

.invoice-base .inv-store {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.invoice-base .inv-wa {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 2px;
}

.invoice-base .inv-customer {
  font-size: 0.82rem;
  margin: 12px 0;
}

.invoice-base .inv-customer strong {
  font-weight: 600;
}

.invoice-base .inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin: 12px 0;
}

.invoice-base .inv-table th {
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 4px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-500);
}

.invoice-base .inv-table td {
  padding: 7px 4px;
  border-bottom: 1px solid var(--slate-100);
}

.invoice-base .inv-table td:last-child,
.invoice-base .inv-table th:last-child {
  text-align: right;
}

.invoice-base .inv-table td:nth-child(2),
.invoice-base .inv-table th:nth-child(2) {
  text-align: center;
}

.invoice-base .inv-table td:nth-child(3),
.invoice-base .inv-table th:nth-child(3) {
  text-align: right;
}

.invoice-base .inv-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  border-top: 2px solid var(--slate-200);
  margin-top: 8px;
}

.invoice-base .inv-total-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.invoice-base .inv-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 0.8rem;
  color: var(--slate-400);
  font-family: var(--font-display);
  font-style: italic;
}

.layout-minimalis .inv-store {
  font-size: 1.3rem;
  font-weight: 700;
}

.layout-minimalis .inv-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--slate-300), transparent);
  margin: 8px 0 12px;
}

.layout-minimalis .inv-table th {
  background: var(--slate-50);
  border-radius: 4px;
}

.layout-minimalis .inv-total {
  border-top-color: var(--slate-300);
  padding-top: 10px;
}

.layout-struk {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.layout-struk .inv-store {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  font-weight: 700;
}

.layout-struk .inv-wa {
  text-align: center;
  font-size: 0.7rem;
}

.layout-struk .inv-divider {
  border-top: 1px dashed var(--slate-400);
  margin: 8px 0;
}

.layout-struk .inv-customer {
  font-size: 0.75rem;
}

.layout-struk .inv-table th {
  font-size: 0.65rem;
  border-bottom: 1px dashed var(--slate-400);
}

.layout-struk .inv-table td {
  border-bottom: 1px dashed var(--slate-200);
}

.layout-struk .inv-total {
  border-top: 2px dashed var(--slate-400);
  font-size: 0.85rem;
}

.layout-struk .inv-footer {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--slate-500);
}

.layout-olshop {
  font-family: 'Inter', sans-serif;
}

.layout-olshop .inv-header-decor {
  text-align: center;
  padding: 18px 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  margin-bottom: 16px;
  color: white;
  position: relative;
  overflow: hidden;
}

.layout-olshop .inv-header-decor::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(198,154,68,0.35), transparent 55%);
}

.layout-olshop .inv-store {
  color: white;
  font-size: 1.3rem;
  position: relative;
}

.layout-olshop .inv-wa {
  color: rgba(255,255,255,0.82);
  position: relative;
}

.layout-olshop .inv-customer {
  background: var(--slate-50);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.layout-olshop .inv-table {
  border-collapse: separate;
  border-spacing: 0 4px;
}

.layout-olshop .inv-table th {
  background: var(--slate-50);
  border-radius: 6px;
  padding: 8px 6px;
}

.layout-olshop .inv-table td {
  background: white;
  border-radius: 6px;
  padding: 8px 6px;
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.layout-olshop .inv-total {
  background: var(--slate-50);
  padding: 12px 16px;
  border-radius: 10px;
  border-top: none;
  margin-top: 12px;
}

.layout-olshop .inv-footer {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--slate-400);
}

.layout-olshop .inv-qris-section {
  text-align: center;
  margin: 16px auto 0;
  padding: 16px;
  max-width: 220px;
  background: var(--slate-50);
  border-radius: 8px;
  border-top: none;
}

.layout-olshop .inv-qris-section img.qris-img {
  display: block;
  margin: 0 auto;
  max-width: 140px;
  max-height: 140px;
  border-radius: 8px;
}

/* ============================================
   LAYOUT 4: ELEGAN EMAS — luxury boutique, gold foil accents
   ============================================ */
.layout-elegan {
  font-family: 'Inter', sans-serif;
  text-align: center;
  padding: 4px 2px;
}

.layout-elegan .inv-frame-top {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--primary), var(--gold-500), transparent);
  margin-bottom: 14px;
  border-radius: 2px;
}

.layout-elegan .inv-store {
  color: var(--primary-dark);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.layout-elegan .inv-wa {
  justify-content: center;
  display: flex;
  gap: 4px;
  align-items: center;
}

.layout-elegan .inv-divider {
  width: 70px;
  height: 1px;
  background: var(--gold-500);
  margin: 10px auto 14px;
}

.layout-elegan .inv-customer {
  text-align: center;
  font-style: italic;
  color: var(--slate-500);
}

.layout-elegan .inv-table th {
  color: var(--gold-600);
  border-bottom: 1px solid var(--gold-500);
}

.layout-elegan .inv-table td {
  border-bottom: 1px dotted var(--slate-200);
}

.layout-elegan .inv-total {
  border: none;
  background: var(--primary-light);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 14px;
}

.layout-elegan .inv-total-label {
  color: var(--primary-dark);
}

.layout-elegan .inv-footer {
  color: var(--gold-600);
  font-size: 0.85rem;
}

.layout-elegan .inv-frame-bottom {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), var(--primary), var(--gold-500), transparent);
  margin-top: 16px;
  border-radius: 2px;
}

/* ============================================
   LAYOUT 5: KLASIK TOKO — nota bon tradisional, formal
   ============================================ */
.layout-klasik {
  font-family: 'Inter', sans-serif;
  border: 1.5px solid var(--slate-700);
  padding: 16px;
  border-radius: 4px;
  position: relative;
}

.layout-klasik .inv-store {
  font-family: var(--font-body);
  font-style: normal;
  text-align: center;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--slate-800);
}

.layout-klasik .inv-wa {
  text-align: center;
}

.layout-klasik .inv-divider {
  height: 2px;
  background: var(--slate-800);
  margin: 10px 0 12px;
}

.layout-klasik .inv-customer {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--slate-300);
  padding-bottom: 8px;
}

.layout-klasik .inv-table th {
  border-bottom: 1.5px solid var(--slate-700);
  color: var(--slate-700);
}

.layout-klasik .inv-table td {
  border-bottom: 1px solid var(--slate-200);
}

.layout-klasik .inv-total {
  border-top: 2px double var(--slate-700);
  margin-top: 10px;
}

.layout-klasik .inv-footer {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
}

.layout-klasik .inv-stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 2.5px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  transform: rotate(-10deg);
  opacity: 0.75;
  text-transform: uppercase;
}

/* ============================================
   LAYOUT 6: KARTU MODERN — card-style dengan chip qty
   ============================================ */
.layout-kartu {
  font-family: 'Inter', sans-serif;
}

.layout-kartu .inv-topbar {
  height: 5px;
  border-radius: 4px;
  background: var(--primary);
  margin-bottom: 14px;
}

.layout-kartu .inv-store {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 800;
  color: var(--slate-800);
  font-size: 1.15rem;
}

.layout-kartu .inv-wa {
  color: var(--primary-dark);
  font-weight: 600;
}

.layout-kartu .inv-customer {
  background: var(--slate-50);
  border-radius: 10px;
  padding: 8px 12px;
}

.layout-kartu .inv-table {
  border-collapse: separate;
  border-spacing: 0 6px;
}

.layout-kartu .inv-table th {
  color: var(--slate-400);
  border-bottom: none;
}

.layout-kartu .inv-table td {
  background: var(--slate-50);
  border-bottom: none;
  padding: 9px 6px;
}

.layout-kartu .inv-table td:first-child {
  border-radius: 8px 0 0 8px;
}

.layout-kartu .inv-table td:last-child {
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  color: var(--primary-dark);
}

.layout-kartu .inv-table td:nth-child(2) {
  color: var(--primary-dark);
  font-weight: 700;
}

.layout-kartu .inv-total {
  background: linear-gradient(120deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 10px;
}

.layout-kartu .inv-total-label {
  color: rgba(255,255,255,0.85);
}

.layout-kartu .inv-footer {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  color: var(--slate-400);
  font-size: 0.75rem;
}

/* ============================================
   LAYOUT 7: BOHO PASTEL — hangat, lembut, dekoratif
   ============================================ */
.layout-boho {
  font-family: 'Inter', sans-serif;
  background: var(--primary-light);
  border-radius: 16px;
  padding: 16px;
  border: 1.5px dashed var(--primary);
}

.layout-boho .inv-store {
  color: var(--primary-dark);
  font-size: 1.25rem;
  text-align: center;
  display: block;
}

.layout-boho .inv-wa {
  text-align: center;
  color: var(--slate-600);
}

.layout-boho .inv-divider {
  height: 0;
  border-top: 2px dotted var(--primary);
  margin: 10px 0 12px;
  background: none;
}

.layout-boho .inv-customer {
  background: white;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
}

.layout-boho .inv-table {
  background: white;
  border-radius: 12px;
  padding: 4px 8px;
}

.layout-boho .inv-table th {
  color: var(--primary-dark);
  border-bottom: 1px dotted var(--primary);
}

.layout-boho .inv-table td {
  border-bottom: 1px dotted var(--slate-200);
}

.layout-boho .inv-total {
  background: white;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 10px;
}

.layout-boho .inv-footer {
  color: var(--primary-dark);
}

/* ============================================
   LAYOUT 8: KORPORAT — profesional, gaya invoice bisnis
   ============================================ */
.layout-korporat {
  font-family: 'Inter', sans-serif;
}

.layout-korporat .inv-corp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.layout-korporat .inv-store {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--slate-800);
}

.layout-korporat .inv-wa {
  color: var(--slate-500);
}

.layout-korporat .inv-corp-label {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--primary);
  text-transform: uppercase;
}

.layout-korporat .inv-customer {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 10px;
}

.layout-korporat .inv-table th {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-600);
}

.layout-korporat .inv-total {
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
  padding: 12px 14px;
  border-radius: 6px;
}

.layout-korporat .inv-footer {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--slate-400);
  text-align: center;
  border-top: 1px dashed var(--slate-200);
  padding-top: 10px;
}

/* ---------- QRIS Preview ---------- */
.qris-preview {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--slate-200);
}

.qris-upload {
  position: relative;
  display: inline-block;
}

.qris-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.qris-placeholder {
  width: 60px;
  height: 60px;
  border: 2px dashed var(--slate-300);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--slate-400);
  transition: all var(--transition);
}

.qris-placeholder:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--emerald-50);
}

.btn-delete-qris {
  background: none;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  color: var(--slate-500);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-delete-qris:hover {
  border-color: #d13c48;
  color: #d13c48;
  background: #fdf1f1;
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  color: var(--slate-400);
}

.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 0.85rem;
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

@media (min-width: 480px) {
  .toast-container { left: auto; }
}

.toast {
  padding: 14px 20px;
  border-radius: 13px;
  background: white;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-100);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.4s var(--ease) both;
  max-width: 360px;
  width: 100%;
  pointer-events: auto;
}

.toast.success { border-left: 4px solid var(--emerald-500); }
.toast.error { border-left: 4px solid #d13c48; }
.toast.info { border-left: 4px solid #3b82f6; }

.toast .toast-icon { font-size: 1.1rem; }

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,10,0.55);
  backdrop-filter: blur(5px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease both;
}

.modal-box {
  background: white;
  border-radius: var(--radius);
  padding: 26px 20px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.35s var(--ease) both;
  text-align: center;
}

@media (min-width: 640px) {
  .modal-box { padding: 34px 26px; }
}

.modal-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-box p {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 20px;
  line-height: 1.5;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--slate-300);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--transition);
}

.logout-btn:hover {
  background: rgba(209, 60, 72, 0.18);
  border-color: rgba(209, 60, 72, 0.3);
  color: #f3a3ab;
}

.fab-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: calc(100% - 32px);
  max-width: 560px;
}

.fab-container .btn-primary {
  width: 100%;
  padding: 18px 24px;
  font-size: 1rem;
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(10, 91, 63, 0.4);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 620px;
  }
  .section-padding { padding: 88px 32px; }
}

@media (min-width: 1024px) {
  .hero-actions { flex-direction: row; justify-content: center; }
  .section-padding { padding: 108px 40px; }
}

.no-items-message {
  text-align: center;
  padding: 20px;
  color: var(--slate-400);
  font-size: 0.8rem;
  font-style: italic;
}

.wa-preview {
  display: none;
  margin-top: 8px;
  padding: 9px 12px;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: 9px;
  font-size: 0.75rem;
  color: var(--primary-dark);
  word-break: break-all;
}

.wa-preview.show {
  display: block;
  animation: slideDown 0.35s var(--ease) both;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold-500));
  border-radius: 2px;
  margin: 0 auto 24px;
}

.promo-banner {
  background: linear-gradient(135deg, #fbf1dc, #f3e0ae);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  transition: transform var(--transition), box-shadow var(--transition);
}

.promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.promo-banner .promo-icon {
  font-size: 1.5rem;
}

.promo-banner .promo-text {
  font-size: 0.83rem;
  color: #6b4c14;
  line-height: 1.55;
}

.promo-banner .promo-text strong {
  font-weight: 700;
}

.price-tag {
  display: inline-block;
  padding: 5px 14px;
  background: linear-gradient(135deg, #fbf1dc, #f3e0ae);
  border-radius: 50px;
  font-weight: 700;
  color: #6b4c14;
  font-size: 0.9rem;
  border: 1px solid rgba(198,154,68,0.4);
}

.inv-qris-section {
  text-align: center;
  margin: 16px auto 0;
  padding: 16px;
  max-width: 220px;
}

.inv-qris-section img.qris-img {
  display: block;
  margin: 0 auto;
  max-width: 130px;
  max-height: 130px;
  border-radius: 8px;
}

.inv-qris-section .qris-label {
  font-size: 0.7rem;
  color: var(--slate-400);
  margin-top: 8px;
}

/* ---------- Trust strip (baru) ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
  margin-top: 30px;
  animation: fadeInUp 0.7s var(--ease) 0.55s both;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(226,232,224,0.62);
  letter-spacing: 0.02em;
}

/* ---------- Preview showcase cards (landing) ---------- */
.showcase-card {
  padding: 22px 18px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.showcase-card:hover {
  transform: translateY(-4px);
}

/* ---------- Footer Legal Links ---------- */
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.footer-link {
  color: var(--slate-500);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color var(--transition);
  opacity: 0.7;
}

.footer-link:hover {
  color: var(--gold-300);
  opacity: 1;
}

.footer-sep {
  color: var(--slate-600);
  font-size: 0.72rem;
  opacity: 0.4;
}

/* ---------- Legal Modal (ToS & Privacy) ---------- */
.legal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,15,10,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.25s ease both;
}

.legal-modal-box {
  background: white;
  border-radius: var(--radius);
  max-width: 580px;
  width: 100%;
  max-height: 80vh;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.35s var(--ease) both;
  position: relative;
  display: flex;
  flex-direction: column;
}

.legal-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--slate-400);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  padding: 4px;
  z-index: 2;
}

.legal-modal-close:hover {
  color: var(--slate-700);
  transform: scale(1.15);
}

.legal-modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  color: var(--slate-900);
  padding: 24px 24px 0;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.legal-modal-body {
  padding: 0 24px 24px;
  overflow-y: auto;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--slate-700);
}

.legal-modal-body p {
  margin-bottom: 14px;
}

.legal-modal-body strong {
  color: var(--slate-800);
  font-weight: 700;
}

.legal-modal-body::-webkit-scrollbar {
  width: 4px;
}

.legal-modal-body::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 2px;
}

@media (min-width: 640px) {
  .legal-modal-title { font-size: 1.5rem; padding: 32px 32px 0; }
  .legal-modal-body { padding: 0 32px 32px; font-size: 0.88rem; }
}
