/* ==========================================================================
   ZONA UANG - Design System Inspired by kiosk-pricelist.html
   Platform Landing Page, Seller Onboarding & Dashboard System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Core Color Tokens from reference */
  --cream: #FBF6EE;
  --panel: #FFFFFF;
  --plum: #3A2647;
  --plum-dark: #2C1C37;
  --plum-soft: #6B5876;
  --pink: #F6A6C1;
  --periwinkle: #AECBF2;
  --mint: #A9E6C5;
  --mint-dark: #10B981;
  --coral: #FF7F7F;
  --coral-dark: #E85D5D;
  --line: #EAE1D3;
  --shadow: 0 10px 30px rgba(58, 38, 71, 0.08);
  --shadow-lg: 0 20px 45px rgba(58, 38, 71, 0.15);

  --radius: 22px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Theme Defaults */
  --bg-main: var(--cream);
  --bg-surface: var(--panel);
  --text-main: var(--plum);
  --text-muted: var(--plum-soft);

  /* Dynamic Theme Overrides */
  --theme-accent: var(--coral);
  --theme-accent-gradient: linear-gradient(135deg, var(--pink), var(--periwinkle));

  /* Fonts */
  --font-heading: 'Baloo 2', cursive, sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6, .display, .logo {
  font-family: var(--font-heading);
}

/* Background Texture Dot Pattern */
.bg-dot {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--line) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.6;
}

/* ==========================================================================
   DOMAIN SIMULATOR BAR (Top Sticky Environment Switcher)
   ========================================================================== */
.domain-switcher-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(58, 38, 71, 0.05);
}

.domain-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--plum);
  text-decoration: none;
  font-family: var(--font-heading);
}

.domain-brand-badge {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--pink), var(--periwinkle));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow);
}

.domain-url-box {
  flex: 1;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(58, 38, 71, 0.04);
  transition: all 0.2s ease;
}

.domain-url-box:focus-within {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 127, 127, 0.3);
}

.domain-ssl-icon {
  color: var(--coral-dark);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.domain-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--plum);
  font-family: var(--font-code);
  font-size: 0.9rem;
  width: 100%;
}

.domain-quick-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-domain-preset {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--plum-soft);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn-domain-preset:hover {
  background: var(--cream);
  color: var(--plum);
  border-color: var(--plum-soft);
}

.btn-domain-preset.active {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum-dark);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   LANDING PAGE STYLING (zonauang.click)
   ========================================================================== */
.landing-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

@media (max-width: 960px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }
}

.landing-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 20px 0;
  font-weight: 800;
  color: var(--plum);
}

.landing-hero h1 .accent {
  color: var(--coral-dark);
}

.landing-hero p {
  font-size: 1.1rem;
  color: var(--plum-soft);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 28px;
}

.domain-highlight-row {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 8px 0;
  font-family: var(--font-code);
  font-size: 0.95rem;
}

.domain-highlight {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 1px;
  padding: 3px 10px;
  border: 2px solid rgba(255, 127, 127, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 127, 127, 0.1);
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--coral-dark);
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
}

.domain-highlight-static {
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-actions-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Features Grid */
.features-section {
  margin-bottom: 64px;
}

.section-head-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head-center h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 8px;
}

.section-head-center p {
  color: var(--plum-soft);
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pink), var(--periwinkle));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--plum-soft);
  line-height: 1.55;
}

/* Store Samples Showcase */
.sample-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.sample-store-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.sample-store-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Bottom CTA Banner */
.landing-cta-banner {
  background: linear-gradient(120deg, var(--periwinkle), var(--pink));
  border-radius: 32px;
  padding: 48px 36px;
  text-align: center;
  color: var(--plum);
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.landing-cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.landing-cta-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 580px;
  margin: 0 auto 24px;
}

/* Buttons & Badges */
.btn-primary {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(255, 127, 127, 0.35);
  transition: transform 0.15s ease, background 0.2s ease;
  font-family: inherit;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--coral-dark);
}

.btn-secondary {
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--plum);
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--plum);
  background: var(--cream);
}

.btn-danger {
  background: rgba(232, 93, 93, 0.12);
  border: 1px solid var(--coral);
  color: var(--coral-dark);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: var(--coral-dark);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--plum-soft);
  box-shadow: var(--shadow);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint-dark);
  box-shadow: 0 0 8px var(--mint);
}

/* Onboarding Modal & Steps Bar Styling */
.onboarding-steps-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--plum-soft);
}

.step-item.active {
  color: var(--coral-dark);
}

.step-item.completed {
  color: var(--mint-dark);
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-family: var(--font-heading);
}

.step-item.active .step-badge {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral-dark);
}

.step-item.completed .step-badge {
  background: var(--mint-dark);
  color: #fff;
  border-color: var(--mint-dark);
}

.subdomain-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.status-available {
  background: rgba(39, 174, 96, 0.15);
  color: var(--mint-dark);
  border: 1px solid var(--mint-dark);
}

.status-taken {
  background: rgba(232, 93, 93, 0.15);
  color: var(--coral-dark);
  border: 1px solid var(--coral);
}

/* Dashboard Layout */
.app-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 32px 24px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  flex-wrap: wrap;
}

.dash-title h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--plum);
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.1;
}

.dash-title p {
  color: var(--plum-soft);
  font-size: 0.95rem;
  margin-top: 4px;
}

.store-live-pill {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--plum);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.live-pulse {
  width: 8px;
  height: 8px;
  background: var(--mint-dark);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--mint-dark);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(39, 174, 96, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.dash-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.dash-tab-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--plum-soft);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: var(--shadow);
}

.dash-tab-btn:hover {
  background: var(--cream);
  color: var(--plum);
}

.dash-tab-btn.active {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum-dark);
  box-shadow: 0 8px 20px rgba(58, 38, 71, 0.25);
}

.tab-content-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content-panel.active {
  display: block;
}

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

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-info h4 {
  color: var(--plum-soft);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-info .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--plum);
  font-family: var(--font-heading);
}

.stat-info .stat-change {
  font-size: 0.82rem;
  color: var(--mint-dark);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--periwinkle), var(--pink));
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
}

.card-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.card-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.card-panel-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--plum);
  display: flex;
  align-items: center;
  gap: 10px;
}

.customizer-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 28px;
}

@media (max-width: 1024px) {
  .customizer-layout {
    grid-template-columns: 1fr;
  }
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--plum);
  margin-bottom: 8px;
}

.form-subtext {
  font-size: 0.8rem;
  color: var(--plum-soft);
  margin-top: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--plum);
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 127, 127, 0.3);
  background: #fff;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.color-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.color-preset-card {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  background: var(--cream);
}

.color-preset-card:hover {
  transform: translateY(-2px);
  border-color: var(--plum-soft);
}

.color-preset-card.selected {
  border-color: var(--coral);
  box-shadow: 0 6px 18px rgba(255, 127, 127, 0.3);
  background: #fff;
}

.color-swatch-bar {
  height: 24px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.color-preset-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--plum);
}

.simulator-preview-box {
  position: sticky;
  top: 100px;
  background: linear-gradient(180deg, #4A3358, var(--plum));
  border-radius: 32px;
  padding: 18px;
  box-shadow: 0 25px 50px rgba(58, 38, 71, 0.25);
}

.simulator-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 700;
}

.simulator-frame {
  width: 100%;
  height: 620px;
  background: var(--cream);
  border-radius: 20px;
  overflow-y: auto;
  border: 2px solid rgba(255, 255, 255, 0.15);
  padding: 16px;
  color: var(--plum);
}

/* Data Table */
.product-table-wrapper {
  overflow-x: auto;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.product-table th {
  background: var(--cream);
  padding: 14px 18px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--plum-soft);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.product-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.product-table tr:hover td {
  background: rgba(251, 246, 238, 0.5);
}

.badge-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-hot { background: rgba(232, 93, 93, 0.15); color: var(--coral-dark); border: 1px solid var(--coral); }
.badge-promo { background: rgba(245, 166, 35, 0.18); color: #D97706; border: 1px solid #F5A623; }
.badge-ready { background: rgba(39, 174, 96, 0.15); color: var(--mint-dark); border: 1px solid var(--mint-dark); }

/* Storefront */
.storefront-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

.store-hero-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
}

.store-banner {
  height: 200px;
  width: 100%;
  background: var(--theme-accent-gradient);
  position: relative;
  background-size: cover;
  background-position: center;
}

.store-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(58, 38, 71, 0.85) 100%);
}

.store-header-body {
  padding: 0 32px 28px;
  margin-top: -50px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.store-profile-left {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.store-avatar {
  width: 105px;
  height: 105px;
  border-radius: 26px;
  border: 5px solid var(--panel);
  background: linear-gradient(135deg, var(--pink), var(--periwinkle));
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
  font-family: var(--font-heading);
}

.store-details h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--plum);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}

.store-verified-icon {
  color: var(--coral-dark);
  font-size: 1.2rem;
}

.store-domain-badge {
  font-family: var(--font-code);
  font-size: 0.84rem;
  color: var(--plum-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
}

.store-bio {
  color: var(--plum-soft);
  font-size: 0.95rem;
  margin-top: 10px;
  max-width: 600px;
}

.store-social-btns {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-social {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-social:hover {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
  transform: translateY(-2px);
}

.store-ticker {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 12px 32px;
  font-size: 0.88rem;
  color: var(--plum);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.ticker-icon {
  color: var(--coral-dark);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-pill-btn {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--plum-soft);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: inherit;
  box-shadow: var(--shadow);
}

.cat-pill-btn:hover {
  background: var(--cream);
  color: var(--plum);
}

.cat-pill-btn.active {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum-dark);
  box-shadow: 0 6px 18px rgba(58, 38, 71, 0.2);
}

.search-box {
  position: relative;
  min-width: 280px;
}

.search-box input {
  padding-left: 42px;
  border-radius: var(--radius-pill);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--plum-soft);
  font-size: 0.95rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(58, 38, 71, 0.14);
}

.product-card-top {
  margin-bottom: 14px;
}

.product-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--periwinkle), var(--pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin-bottom: 14px;
  color: #fff;
  box-shadow: var(--shadow);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--plum);
  margin-bottom: 4px;
  line-height: 1.25;
  font-family: var(--font-heading);
}

.product-min-price {
  font-size: 0.82rem;
  color: var(--plum-soft);
  margin-bottom: 10px;
  font-weight: 600;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--plum-soft);
  line-height: 1.5;
  margin-bottom: 14px;
}

.tier-toggle {
  width: 100%;
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--plum);
  margin-top: 6px;
  transition: all 0.2s ease;
}

.tier-toggle:hover {
  background: #fff;
  border-color: var(--plum-soft);
}

.tier-toggle .arrow {
  transition: transform 0.25s ease;
}

.tier-toggle.open .arrow {
  transform: rotate(180deg);
}

.tiers {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tiers.open {
  max-height: 800px;
}

.tier-group {
  margin-top: 14px;
}

.tier-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--plum-soft);
  font-weight: 800;
  margin: 12px 0 6px;
  border-bottom: 2px solid var(--cream);
  padding-bottom: 4px;
}

.tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  gap: 12px;
}

.tier-row:last-child {
  border-bottom: none;
}

.tier-duration {
  font-weight: 600;
  color: var(--plum);
}

.tier-price {
  font-weight: 800;
  color: var(--coral-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.btn-order-wa-mini {
  background: #25D366;
  color: #fff;
  border: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-order-wa-mini:hover {
  background: #1EBE5D;
  transform: translateY(-1px);
}

.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  background: var(--coral);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255, 127, 127, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease;
}

.fab:hover {
  transform: translateY(-2px);
  background: var(--coral-dark);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(58, 38, 71, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  width: 100%;
  max-width: 620px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--plum);
}

.modal-close-btn {
  position: absolute;
  top: 22px;
  right: 22px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--plum);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close-btn:hover {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 3000;
  background: var(--plum);
  border: 2px solid var(--pink);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(58, 38, 71, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .domain-switcher-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .domain-quick-nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .store-header-body {
    padding: 0 20px 20px;
  }
  .store-avatar {
    width: 85px;
    height: 85px;
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   BAGIAN 2 — Komponen tambahan: auth, state view, analitik nyata,
   aksesibilitas, dan perbaikan responsif.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Aksesibilitas dasar
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 4000;
  background: var(--plum);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* Fokus keyboard yang selalu terlihat pada semua kontrol interaktif. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 4px;
}

body.is-busy {
  cursor: progress;
}

body.is-busy button[type="submit"] {
  opacity: 0.65;
  pointer-events: none;
}

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

/* --------------------------------------------------------------------------
   Utilitas
   -------------------------------------------------------------------------- */

/* Kelas seperti .auth-wrapper { display:flex } akan mengalahkan perilaku
   bawaan atribut [hidden]. Aturan ini memastikan [hidden] selalu menang. */
[hidden] { display: none !important; }

.text-muted { color: var(--plum-soft); }
.mono { font-family: var(--font-code); font-size: 0.78rem; }
.cell-right { text-align: right; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-xs { padding: 6px 14px; font-size: 0.8rem; }
.btn-success { background: var(--mint-dark); }
.btn-success:hover { background: #0e9f6e; }
.panel-narrow { max-width: 720px; }

.dot-red { color: #FF7F7F; font-size: 0.65rem; }
.dot-amber { color: #F5A623; font-size: 0.65rem; }
.dot-mint { color: #A9E6C5; font-size: 0.65rem; }

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

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

.textarea-code {
  min-height: 130px;
  font-family: var(--font-code);
  font-size: 0.85rem;
}

.variant-row-headers {
  display: grid;
  grid-template-columns: 1fr 1fr 110px 34px;
  gap: 8px;
  padding: 0 4px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--plum-soft);
}

.variant-row-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.variant-row {
  display: grid;
  grid-template-columns: 1fr 1fr 110px 34px;
  gap: 8px;
  align-items: center;
}

.variant-row .form-input {
  padding: 10px 12px;
  font-size: 0.85rem;
}

.variant-row-remove {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .variant-row-headers { display: none; }

  .variant-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "name name"
      "duration price"
      "remove remove";
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px;
  }

  .variant-row .variant-input-name { grid-area: name; }
  .variant-row .variant-input-duration { grid-area: duration; }
  .variant-row .variant-input-price { grid-area: price; }
  .variant-row .variant-row-remove { grid-area: remove; width: 100%; }
}

/* --------------------------------------------------------------------------
   Banner mode demo
   -------------------------------------------------------------------------- */
.mode-banner {
  display: none;
  align-items: center;
  gap: 12px;
  background: #FFF4D6;
  border-bottom: 1px solid #F5D98B;
  color: #7A5B10;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
}

.mode-banner code {
  background: rgba(122, 91, 16, 0.12);
  padding: 1px 6px;
  border-radius: 6px;
  font-family: var(--font-code);
}

/* --------------------------------------------------------------------------
   State view: loading, 404, dashboard kosong
   -------------------------------------------------------------------------- */
.state-view {
  max-width: 620px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.state-view h1,
.state-view h2 {
  font-size: 1.8rem;
  color: var(--plum);
  margin-bottom: 12px;
}

.state-view p {
  color: var(--plum-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}

.state-view-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.notfound-emoji {
  font-size: 3.4rem;
  margin-bottom: 12px;
}

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 18px;
  border: 4px solid var(--line);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* --------------------------------------------------------------------------
   Halaman autentikasi
   -------------------------------------------------------------------------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.auth-head {
  text-align: center;
  margin-bottom: 26px;
}

.auth-head .domain-brand-badge {
  margin: 0 auto 14px;
}

.auth-head h1 {
  font-size: 1.6rem;
  color: var(--plum);
  margin-bottom: 6px;
}

.auth-head p {
  font-size: 0.9rem;
}

.auth-switch,
.auth-back {
  text-align: center;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--plum-soft);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--coral-dark);
  cursor: pointer;
  text-decoration: underline;
}

.link-btn:hover {
  color: var(--plum);
}

/* --------------------------------------------------------------------------
   Form: error field & input dengan sufiks domain
   -------------------------------------------------------------------------- */
.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--coral-dark);
}

.form-input.input-invalid,
.form-textarea.input-invalid,
.form-select.input-invalid {
  border-color: var(--coral-dark);
  background: rgba(232, 93, 93, 0.05);
}

.input-suffix-group {
  display: flex;
  align-items: stretch;
}

.input-suffix-group .form-input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
  min-width: 0;
}

.input-suffix {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0 14px;
  color: var(--plum-soft);
  font-size: 0.82rem;
  font-family: var(--font-code);
  font-weight: 700;
  white-space: nowrap;
}

/* Kartu preset warna kini berupa <button> — reset tampilan bawaan browser. */
.color-preset-card {
  font: inherit;
  width: 100%;
  display: block;
}

.color-swatch-bar {
  display: block;
  width: 100%;
}

.swatch-coral { background: linear-gradient(135deg, #F6A6C1, #AECBF2); }
.swatch-plum  { background: linear-gradient(135deg, #3A2647, #6B5876); }
.swatch-mint  { background: linear-gradient(135deg, #A9E6C5, #AECBF2); }
.swatch-gold  { background: linear-gradient(135deg, #F5A623, #FF7F7F); }

/* Kartu "Warna Sendiri" — pelangi sebagai penanda bebas pilih. */
.swatch-custom {
  background: conic-gradient(from 180deg,
    #FF7F7F, #F5A623, #A9E6C5, #AECBF2, #F6A6C1, #FF7F7F);
  position: relative;
}

.swatch-custom::after {
  content: "\f53f"; /* fa-palette */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(58, 38, 71, 0.55);
}

/* --------------------------------------------------------------------------
   Panel racik warna sendiri
   -------------------------------------------------------------------------- */

.color-custom-panel {
  margin-top: 14px;
  padding: 16px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  display: grid;
  gap: 14px;
}

.color-custom-panel[hidden] {
  display: none;
}

.color-custom-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.color-field {
  display: grid;
  gap: 6px;
}

.color-field-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--plum-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.color-field-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}

.color-field-inputs:focus-within {
  border-color: var(--coral);
}

/* Normalkan tampilan <input type="color"> lintas browser. */
.color-field-swatch {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.color-field-swatch::-webkit-color-swatch-wrapper { padding: 0; }
.color-field-swatch::-webkit-color-swatch {
  border: 1px solid var(--line);
  border-radius: 8px;
}
.color-field-swatch::-moz-color-swatch {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.color-field-hex {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-code);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--plum);
  text-transform: uppercase;
}

.color-angle-value {
  font-family: var(--font-code);
  color: var(--plum);
}

.color-angle-range {
  width: 100%;
  accent-color: var(--coral);
  cursor: pointer;
}

.color-custom-preview {
  height: 74px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-custom-preview-chip {
  background: var(--panel);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(58, 38, 71, 0.18);
}

/* --------------------------------------------------------------------------
   Wizard onboarding
   -------------------------------------------------------------------------- */
.onboarding-steps-bar {
  list-style: none;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-box-lg { max-width: 680px; }

.modal-head-center {
  text-align: center;
  margin-bottom: 20px;
}

.modal-head-center h2 {
  font-size: 1.6rem;
  color: var(--plum);
  margin-top: 8px;
}

.modal-box > h3 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: var(--plum);
  padding-right: 44px;
}

.inline-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--mint-dark);
  color: #0B7A5B;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.wizard-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.wizard-actions > button {
  flex: 1;
  justify-content: center;
}

.consent-note {
  font-size: 0.8rem;
  color: var(--plum-soft);
  line-height: 1.6;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 18px;
}

.consent-note a {
  color: var(--coral-dark);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Dashboard: header, analitik, klik order
   -------------------------------------------------------------------------- */
.dash-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.dash-user-line {
  font-size: 0.85rem;
  color: var(--plum-soft);
  margin-top: 6px;
}

.quota-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--plum-soft);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.quota-badge.quota-full {
  background: rgba(232, 93, 93, 0.12);
  border-color: var(--coral);
  color: var(--coral-dark);
}

/* Tombol nonaktif harus terlihat jelas tidak bisa ditekan. */
button:disabled,
button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.store-switcher-wrap {
  display: none;
  align-items: center;
}

.store-switcher-wrap .form-select {
  min-width: 200px;
}

.danger-zone {
  margin-top: 24px;
  background: rgba(232, 93, 93, 0.06);
  border: 1px solid var(--coral);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.danger-zone h3 {
  font-size: 1.05rem;
  color: var(--coral-dark);
  margin-bottom: 8px;
}

.danger-zone p {
  font-size: 0.85rem;
  color: var(--plum-soft);
  line-height: 1.6;
  margin-bottom: 14px;
}

.analytics-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--plum-soft);
  line-height: 1.55;
  margin-bottom: 20px;
}

.analytics-note i { color: var(--coral-dark); margin-top: 3px; }

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.order-click-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.order-click-title {
  display: block;
  font-size: 0.9rem;
  color: var(--plum);
  font-family: var(--font-heading);
}

.order-click-meta {
  font-size: 0.78rem;
  color: var(--plum-soft);
}

.order-click-price {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--coral-dark);
  font-family: var(--font-heading);
  white-space: nowrap;
}

.order-click-channel {
  display: block;
  font-size: 0.72rem;
  color: #25D366;
  font-weight: 700;
}

.empty-inline {
  text-align: center;
  padding: 28px 16px;
  color: var(--plum-soft);
}

.empty-inline i { font-size: 1.8rem; margin-bottom: 10px; display: block; }
.empty-inline p { font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Tabel produk
   -------------------------------------------------------------------------- */
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-cell-icon { font-size: 1.6rem; }

.product-cell-title {
  display: block;
  color: var(--plum);
  font-family: var(--font-heading);
  font-size: 1.02rem;
}

.product-cell-desc {
  font-size: 0.8rem;
  color: var(--plum-soft);
}

.chip-neutral,
.chip-outline {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.chip-neutral { background: var(--cream); color: var(--plum); }
.chip-outline { background: var(--panel); color: var(--plum-soft); }

.price-accent {
  color: var(--coral-dark);
  font-family: var(--font-heading);
  font-size: 1.02rem;
}

.table-empty {
  text-align: center;
  padding: 32px;
  color: var(--plum-soft);
}

/* Tombol aksi & badge tetap satu baris di layar lebar. */
.product-table td.cell-right { white-space: nowrap; }
.badge-tag { white-space: nowrap; }

/* --------------------------------------------------------------------------
   Simulator mobile & pratinjau penuh
   -------------------------------------------------------------------------- */
.sim-shell {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.sim-banner { height: 88px; padding: 12px; display: flex; align-items: flex-end; }

.sim-banner-inner { display: flex; align-items: center; gap: 10px; }

.sim-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 2px solid #fff;
  box-shadow: var(--shadow);
}

.sim-store-name {
  display: block;
  font-size: 0.9rem;
  color: var(--plum);
  line-height: 1.15;
  font-family: var(--font-heading);
}

.sim-store-domain {
  font-size: 0.7rem;
  color: var(--plum-soft);
  font-family: var(--font-code);
}

.sim-bio { padding: 10px 12px; font-size: 0.78rem; color: var(--plum-soft); }

.sim-products { padding: 6px 10px 12px; display: flex; flex-direction: column; gap: 8px; }

.sim-product {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.sim-product-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.sim-product-head strong {
  font-size: 0.8rem;
  color: var(--plum);
  font-family: var(--font-heading);
  flex: 1;
}

.sim-product-icon { font-size: 1.1rem; }

.sim-product-price {
  font-size: 0.74rem;
  color: var(--coral-dark);
  font-weight: 800;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.sim-product-meta { font-size: 0.7rem; color: var(--plum-soft); }

.sim-product-empty {
  padding: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--plum-soft);
}

.full-preview-box {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 24px;
}

.preview-banner {
  border-radius: 22px;
  padding: 28px;
  color: var(--plum);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.preview-banner-head { display: flex; align-items: center; gap: 18px; }

.preview-avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.preview-store-name { font-size: 1.7rem; font-weight: 800; }

.preview-store-url { font-family: var(--font-code); font-size: 0.85rem; opacity: 0.85; word-break: break-all; }

.preview-store-bio { margin-top: 14px; font-size: 0.94rem; max-width: 650px; opacity: 0.92; }

.preview-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

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

.preview-product-icon { font-size: 2rem; margin-bottom: 8px; }

.preview-product-title {
  display: block;
  color: var(--plum);
  margin-bottom: 4px;
  font-size: 1.05rem;
  font-family: var(--font-heading);
}

.preview-product-price { color: var(--plum-soft); font-size: 0.82rem; }
.preview-product-price strong { color: var(--coral-dark); font-family: var(--font-heading); }

/* --------------------------------------------------------------------------
   Landing: hero & showcase
   -------------------------------------------------------------------------- */
.hero-checklist {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;          /* mencegah overflow horizontal di layar kecil */
  margin-top: 30px;
  list-style: none;
  font-size: 0.87rem;
  color: var(--plum-soft);
  font-weight: 700;
}

.hero-checklist i { color: var(--mint-dark); margin-right: 4px; }

.hero-preview { position: relative; top: 0; }

.hero-preview-body {
  background: var(--cream);
  border-radius: 20px;
  padding: 20px;
  color: var(--plum);
}

.hero-preview-banner {
  background: linear-gradient(135deg, var(--pink), var(--periwinkle));
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-preview-banner strong {
  display: block;
  font-size: 1.05rem;
  font-family: var(--font-heading);
}

.hero-preview-banner .mono { opacity: 0.85; }

.hero-preview-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
}

.hero-preview-list { display: flex; flex-direction: column; gap: 10px; }

.hero-preview-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.hero-preview-cta {
  background: #25D366;
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.sample-store-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sample-store-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.sample-store-name {
  display: block;
  font-size: 1.08rem;
  color: var(--plum);
  font-family: var(--font-heading);
}

.sample-store-domain {
  font-size: 0.78rem;
  font-family: var(--font-code);
  color: var(--plum-soft);
  word-break: break-all;
}

.sample-store-bio {
  font-size: 0.85rem;
  color: var(--plum-soft);
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Storefront
   -------------------------------------------------------------------------- */
.product-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.product-min-price strong {
  color: var(--coral-dark);
  font-family: var(--font-heading);
  font-size: 0.96rem;
}

.tier-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.grid-empty i { font-size: 2.6rem; color: var(--plum-soft); margin-bottom: 14px; }
.grid-empty h3 { color: var(--plum); font-size: 1.15rem; margin-bottom: 4px; }
.grid-empty p { color: var(--plum-soft); font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 30px 0 40px;
  color: var(--plum-soft);
  font-size: 0.88rem;
}

.storefront-footer { padding-bottom: 100px; }

.footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 10px 0;
  flex-wrap: wrap;
}

.footer-links a,
.site-footer a {
  color: var(--plum-soft);
  font-weight: 700;
}

.footer-disclaimer {
  max-width: 720px;
  margin: 12px auto 0;
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Toast: varian sukses & error
   -------------------------------------------------------------------------- */
.toast-notification {
  max-width: min(460px, calc(100vw - 48px));
  text-align: left;
  line-height: 1.45;
}

.toast-notification.toast-error {
  border-color: var(--coral-dark);
  background: #5A1F1F;
}

.toast-notification.toast-success {
  border-color: var(--mint);
}

/* --------------------------------------------------------------------------
   Menu penjual: deretan tombol (desktop) vs FAB + bottom sheet (mobile)
   -------------------------------------------------------------------------- */
.dash-desktop-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.dash-fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--plum);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(58, 38, 71, 0.42);
  transition: transform 0.15s ease, background 0.2s ease;
}

.dash-fab:hover { background: var(--plum-dark); }
.dash-fab:active { transform: scale(0.94); }

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: rgba(58, 38, 71, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.sheet-overlay.active { display: flex; }

.sheet-panel {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--panel);
  border-radius: 28px 28px 0 0;
  padding: 10px 18px calc(26px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -12px 40px rgba(58, 38, 71, 0.3);
  animation: sheetUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 auto 14px;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.sheet-head h2 {
  font-size: 1.15rem;
  color: var(--plum);
}

.sheet-store-name {
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--plum-soft);
  word-break: break-all;
}

.sheet-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--plum);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.sheet-close:hover { background: var(--coral); color: #fff; border-color: var(--coral); }

.sheet-section { margin-top: 14px; }

.sheet-section-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--plum-soft);
  font-weight: 800;
  margin-bottom: 6px;
  padding: 0 4px;
}

.sheet-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  margin-bottom: 4px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--plum);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sheet-item i {
  width: 22px;
  text-align: center;
  color: var(--plum-soft);
  font-size: 1.05rem;
}

.sheet-item:hover { background: var(--cream); }
.sheet-item:active { background: var(--line); }

.sheet-item.is-current {
  background: var(--plum);
  color: #fff;
  border-color: var(--plum-dark);
}

.sheet-item.is-current i { color: #fff; }

.sheet-item-danger { color: var(--coral-dark); }
.sheet-item-danger i { color: var(--coral-dark); }
.sheet-item-danger:hover { background: rgba(232, 93, 93, 0.1); }

.sheet-item-note {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--plum-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.sheet-item-note.quota-full {
  background: rgba(232, 93, 93, 0.12);
  border-color: var(--coral);
  color: var(--coral-dark);
}

/* --------------------------------------------------------------------------
   Responsif
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .dash-header-actions {
    width: 100%;
  }

  .dash-desktop-actions { width: 100%; }

  .dash-desktop-actions > button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .store-switcher-wrap { width: 100%; }
  .store-switcher-wrap .form-select { width: 100%; }
}

/* Titik ganti ke pola mobile: deretan tombol & tab bar diganti FAB + sheet. */
@media (max-width: 768px) {
  .dash-desktop-actions { display: none; }
  .dash-tabs { display: none; }
  .dash-fab { display: flex; }

  /* Ruang agar FAB tidak menutupi konten paling bawah. */
  .app-container { padding-bottom: 104px; }

  .dash-header { gap: 14px; }

  .dash-header-actions {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .store-switcher-wrap { flex: 1 1 auto; min-width: 0; }
  .quota-badge { flex-shrink: 0; }

  .dash-title h1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .card-panel { padding: 20px 16px; }

  /* Judul panel dan tombolnya jangan berebut ruang di layar sempit. */
  .card-panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .card-panel-header h3 { font-size: 1.08rem; }

  .card-panel-header > button {
    width: 100%;
    justify-content: center;
  }

  /* Tabel produk jadi kartu bertumpuk — 6 kolom yang digeser
     horizontal tidak layak dipakai di ponsel. */
  .product-table-wrapper { overflow-x: visible; }

  .product-table,
  .product-table tbody,
  .product-table tr,
  .product-table td {
    display: block;
    width: 100%;
  }

  .product-table thead { display: none; }

  .product-table tr {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 12px;
  }

  .product-table tr:hover td { background: transparent; }

  .product-table td {
    border-bottom: none;
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .product-table td::before {
    content: attr(data-label);
    flex-shrink: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--plum-soft);
    font-weight: 800;
  }

  /* Baris pertama tampil sebagai judul kartu, tanpa label. */
  .product-table td[data-label="Produk"] {
    display: block;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }

  .product-table td[data-label="Produk"]::before { display: none; }

  .product-table td.cell-right {
    justify-content: stretch;
    gap: 8px;
    padding-top: 12px;
  }

  .product-table td.cell-right::before { display: none; }
  .product-table td.cell-right > button { flex: 1; justify-content: center; }

  .table-empty { display: block; }
}

@media (max-width: 640px) {
  .app-container { padding: 20px 14px; }

  .auth-card { padding: 26px 20px; }

  .modal-box { padding: 24px 18px; border-radius: 22px; }

  .form-grid-2 { grid-template-columns: 1fr; }

  .hero-checklist { gap: 10px 18px; }

  .onboarding-steps-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .step-item span:not(.step-badge) { display: none; }

  .wizard-actions { flex-direction: column-reverse; }

  .tier-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .tier-row-right { width: 100%; justify-content: space-between; }

  .order-click-row { flex-direction: column; align-items: flex-start; }
  .order-click-price { text-align: left; }

  .preview-banner-head { flex-direction: column; align-items: flex-start; }

  /* Header toko: tumpuk avatar di atas identitas agar nama toko tidak
     tertimpa banner dan tidak terpotong di layar sempit. */
  .store-banner { height: 132px; }

  .store-header-body {
    margin-top: -38px;
    padding: 0 18px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .store-profile-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .store-avatar {
    width: 72px;
    height: 72px;
    font-size: 2rem;
    border-width: 4px;
    border-radius: 20px;
  }

  .store-details h1 { font-size: 1.45rem; }
  .store-bio { font-size: 0.9rem; }
  .store-social-btns { margin-top: 4px; }

  .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .category-pills { overflow-x: auto; padding-bottom: 4px; }

  .fab { bottom: 16px; right: 16px; padding: 12px 18px; font-size: 0.85rem; }

  .toast-notification { left: 16px; right: 16px; bottom: 16px; max-width: none; }

  .state-view { padding: 56px 18px; }
}

/* --------------------------------------------------------------------------
   Halaman legal (terms.html, privacy.html)
   -------------------------------------------------------------------------- */
.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--plum-soft);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.legal-back:hover { color: var(--coral-dark); }

.legal-page h1 {
  font-size: 2.1rem;
  color: var(--plum);
  margin-bottom: 6px;
}

.legal-updated {
  color: var(--plum-soft);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.legal-page h2 {
  font-size: 1.25rem;
  color: var(--plum);
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-page h3 {
  font-size: 1rem;
  color: var(--plum);
  margin: 18px 0 8px;
}

.legal-page p,
.legal-page li {
  color: var(--plum-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.legal-page p { margin-bottom: 12px; }

.legal-page ul {
  margin: 0 0 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-page strong { color: var(--plum); }

.legal-page code {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: var(--font-code);
  font-size: 0.85em;
  color: var(--plum);
}

.legal-callout {
  background: #FFF4D6;
  border: 1px solid #F5D98B;
  color: #7A5B10;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.legal-callout strong { color: #5E4508; }
.legal-callout code { background: rgba(122, 91, 16, 0.12); border-color: transparent; color: inherit; }

.legal-callout-warn {
  background: rgba(232, 93, 93, 0.08);
  border-color: var(--coral);
  color: #8C2F2F;
}

.legal-callout-warn strong { color: #6E1F1F; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  color: var(--plum-soft);
}

.legal-table th {
  background: var(--cream);
  color: var(--plum);
  font-weight: 700;
}

.legal-footer-nav {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.legal-footer-nav a {
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .legal-page { padding: 32px 18px 60px; }
  .legal-page h1 { font-size: 1.7rem; }
  .legal-table { display: block; overflow-x: auto; }
}

/* ==========================================================================
   Transitions.dev — Number pop-in (repurposed for the hero slug rotator)
   ========================================================================== */

:root {
  --digit-dur: 500ms;
  --digit-distance: 8px;
  --digit-stagger: 40ms;
  --digit-blur: 2px;
  --digit-ease: cubic-bezier(0.34, 1.45, 0.64, 1);
  --digit-dir-x: 0;
  --digit-dir-y: 1;
}

@keyframes t-digit-pop-in {
  0%   {
    transform: translate(
      calc(var(--digit-distance) * var(--digit-dir-x)),
      calc(var(--digit-distance) * var(--digit-dir-y))
    );
    opacity: 0;
    filter: blur(var(--digit-blur));
  }
  100% { transform: translate(0, 0); opacity: 1; filter: blur(0); }
}

.t-digit-group {
  display: inline-flex;
  align-items: baseline;
}
.t-digit {
  display: inline-block;
  will-change: transform, opacity, filter;
}
.t-digit-group.is-animating .t-digit {
  animation: t-digit-pop-in var(--digit-dur) var(--digit-ease) both;
}

@media (prefers-reduced-motion: reduce) {
  .t-digit-group .t-digit { animation: none !important; }
}
