/* Pembeli app shell — DesainKita design system */
.app-pembeli {
  --rail: 84px;
  --top: 56px;
  /* Brand */
  --ink: #0f172a;
  --blue: #2563eb;
  --blue-lt: #3b82f6;
  --blue-deep: #1d4ed8;
  --soft-blue: #eef4ff;
  --ice-blue: #f5f8fc;
  --ice: #f5f8fc;
  /* Surfaces — one neutral family (no cream page bg) */
  --surface: #ffffff;
  --surface-muted: #f5f7fa;
  --warm-white: #ffffff;
  --cream: #f5f7fa;
  /* Accents */
  --lime: #c7f36b;
  --coral: #ff7a45;
  --orange: #ff7a45;
  /* Text — WCAG AA on white (≥4.5:1) */
  --muted: #475569;
  --slate: #475569;
  --navy: #0f172a;
  /* Spacing (8pt) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 96px;
  /* Radius — rounded-lg only (not pill for CTAs) */
  --radius: 12px;
  --radius-btn: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-float: 0 10px 28px rgba(15, 23, 42, 0.07);
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
}
.app-pembeli.is-editing {
  background: #f4f6fb;
  --rail: 112px;
  letter-spacing: 0.02em;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: 100vh;
}
.app-pembeli.is-editing .app-shell {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.app-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #eceff4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 12px;
  z-index: 20;
}
.app-pembeli.is-editing .app-rail {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  z-index: 40;
  isolation: isolate;
}
.app-pembeli.is-editing #railEditor {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 12px;
  scrollbar-width: thin;
}
.app-pembeli:not(.is-editing) #railEditor { display: none !important; }
.app-pembeli.is-editing #railApp,
.app-pembeli.is-editing #railUser { display: none !important; }
.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  flex: 0 0 auto;
  margin-top: 20px;
}
.rail-btn svg { width: 22px; height: 22px; }
.app-rail .brand-mark img { width: 36px; height: 36px; }
.rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 6px;
  border-radius: var(--radius);
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  box-sizing: border-box;
}
/* Normalisasi <a.rail-btn> (sebelumnya <button>) — tanpa underline, teks center. */
a.rail-btn { text-decoration: none; text-align: center; cursor: pointer; }
.rail-btn.is-on {
  background: var(--soft-blue);
  color: var(--blue);
}
.rail-btn:hover {
  color: var(--ink);
  background: var(--surface-muted);
  transform: translateY(-1px);
}
.rail-btn.is-on:hover {
  background: var(--soft-blue);
  color: var(--blue-deep);
}
.rail-btn.accent {
  background: var(--navy);
  color: #fff;
  margin-bottom: 10px;
}
.rail-btn.accent.is-on,
.rail-btn.accent:hover { background: #151b30; color: #fff; }
.rail-user {
  margin-top: auto;
  width: 100%;
  padding-top: 10px;
  border-top: 1px solid #eceff4;
}
.rail-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 4px;
  color: var(--navy);
}
.rail-user-meta { display: none; }
.rail-logout {
  width: 100%;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #8b93a7;
  padding: 6px;
}
.rail-logout:hover { color: var(--error); }
.rail-back {
  width: 100%;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: var(--navy);
  padding: 10px 8px;
  border-radius: 10px;
}
.rail-back:hover { background: var(--ice); }
#railEditor .rail-btn {
  font-size: 12px;
  font-weight: 700;
  padding: 10px 6px 12px;
  gap: 8px;
  border-radius: 12px;
  line-height: 1.35;
  letter-spacing: 0.03em;
}
#railEditor .rail-btn svg { width: 24px; height: 24px; }

.top-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 0 14px;
  height: 40px;
  min-width: 240px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.top-search:focus-within {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
}
.top-search svg {
  width: 18px;
  height: 18px;
  color: #64748b;
  flex: none;
  stroke-width: 2;
}
.top-search input {
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 14px;
  width: 200px;
  color: var(--ink);
}
.top-search input::placeholder { color: #94a3b8; }
.icon-quiet {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--navy);
}
.icon-quiet svg { width: 20px; height: 20px; }
.icon-quiet:hover { background: #f4f6fb; }
.avatar-btn { background: transparent; width: 40px; }

.app-view[data-view="beranda"] {
  padding: 0;
  background: var(--surface);
}

/* ===== Beranda — design system ===== */
.home-v2 {
  --hk: min(1320px, calc(100% - 80px));
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 80px;
  --space-8: 96px;
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 16px 40px rgba(15, 23, 42, 0.08);
  --shadow-float: 0 10px 28px rgba(15, 23, 42, 0.07);
  --radius: 12px;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.55;
}
.home-v2 h1,
.home-v2 h2,
.home-v2 h3,
.home-v2 .hk-head h2,
.home-v2 .p-card-body strong,
.home-v2 .continue-card-body h3 {
  font-family: "Teachers", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hk-inner {
  width: var(--hk);
  margin-inline: auto;
}
.hk-chapter {
  position: relative;
  padding: var(--space-8) 0;
  background: var(--surface);
}
.hk-tight {
  padding-top: var(--space-5);
  padding-bottom: var(--space-8);
}
.hk-warm,
.hk-inspo,
.hk-elements,
.hk-cream { background: var(--surface); }
.hk-products,
.hk-neutral { background: var(--surface-muted); }
.hk-orders {
  background: var(--soft-blue);
  padding-top: var(--space-5);
  padding-bottom: var(--space-6);
}
.hk-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
}
.hk-head h2 {
  font-size: clamp(28px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--ink);
  max-width: none;
}
.hk-title-line { white-space: nowrap; }
.hk-sub {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: 16px;
  max-width: 48ch;
  line-height: 1.6;
  font-weight: 400;
}
.hk-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hk-head-row h2 { max-width: none; }
.hk-empty { color: var(--muted); font-size: 14px; padding: var(--space-3) 0; }

/* Buttons: primary blue only; lime = community only; rounded-lg */
.app-pembeli:not(.is-editing) .btn {
  border-radius: var(--radius-btn);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.app-pembeli:not(.is-editing) .btn-primary {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: var(--radius-btn);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.app-pembeli:not(.is-editing) .btn-primary:hover {
  background: var(--blue-deep);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
  transform: translateY(-1px) scale(1.015);
}
.btn-lime {
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--radius-btn);
  font-weight: 700;
  border: 0;
}
.btn-lime:hover {
  filter: brightness(1.03);
  box-shadow: 0 8px 20px rgba(199, 243, 107, 0.35);
}
.btn-lg {
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
}
.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-btn);
  font-weight: 600;
}
.btn-ghost-light,
.app-pembeli:not(.is-editing) .btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #dbe3f0;
  border-radius: var(--radius-btn);
  padding: 12px 20px;
  font-weight: 600;
}
.btn-ghost-light:hover,
.app-pembeli:not(.is-editing) .btn-ghost:hover {
  background: var(--soft-blue);
  border-color: #bfdbfe;
  color: var(--blue);
}
.btn-cta-arrow:hover { transform: none; }
.home-v2 .text-link,
.hk-head .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  border: 1.5px solid #dbe3f0;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.home-v2 .text-link:hover,
.hk-head .text-link:hover {
  background: var(--soft-blue);
  border-color: #bfdbfe;
  color: var(--blue);
  text-decoration: none;
}

/* Hero */
.home-hero-v2 {
  position: relative;
  background:
    radial-gradient(70% 70% at 88% 18%, rgba(37, 99, 235, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--surface-muted) 100%);
  color: var(--ink);
  padding: var(--space-6) 0 var(--space-8);
  overflow: hidden;
}
.hero-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-5);
  align-items: center;
}
.home-hero-v2 .hero-eye {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-2);
}
.home-hero-v2 .hero-copy h1 {
  font-size: clamp(40px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: none;
  color: var(--ink);
}
.home-hero-v2 .hero-copy h1 em {
  font-style: normal;
  color: var(--blue);
  white-space: nowrap;
}
.home-hero-v2 .hero-lead {
  margin: var(--space-3) 0 var(--space-4);
  color: var(--muted);
  font-size: 17px;
  max-width: 38ch;
  line-height: 1.6;
}
/* Override home.css .hero-copy { text-align:center } on desktop split */
@media (min-width: 1101px) {
  .app-pembeli .home-hero-v2 .hero-copy {
    text-align: left;
  }
  .app-pembeli .home-hero-v2 .hero-lead {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }
  .app-pembeli .home-hero-v2 .hero-ctas,
  .app-pembeli .home-hero-v2 .hero-journey {
    justify-content: flex-start;
  }
}
@media (max-width: 1100px) {
  .app-pembeli .home-hero-v2 .hero-copy {
    text-align: center;
  }
  .app-pembeli .home-hero-v2 .hero-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .app-pembeli .home-hero-v2 .hero-ctas,
  .app-pembeli .home-hero-v2 .hero-journey {
    justify-content: center;
  }
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.hero-journey {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: var(--space-5);
  padding: 0;
}
.hero-journey li {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 6px 12px;
  border: 1px solid #c7dbff;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
}
.hero-journey li + li::before {
  content: "→ ";
  opacity: 0.45;
}

.hero-stage {
  position: relative;
  min-height: 460px;
  perspective: 900px;
}
.hero-glow {
  position: absolute;
  inset: 12% 10% 10% 14%;
  border-radius: 40% 60% 50% 50%;
  background: rgba(37, 99, 235, 0.14);
  filter: blur(42px);
  transition: transform 0.35s ease-out;
}
.hv-main {
  position: absolute;
  left: 6%;
  top: 2%;
  width: 74%;
  margin: 0;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: var(--surface-muted);
  box-shadow: var(--shadow-lift);
  z-index: 2;
  transition: transform 0.35s ease-out;
}
.hv-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.float-card {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(232, 238, 246, 0.9);
  transition: transform 0.35s ease-out;
  font-size: 13px;
}
.fc-zones {
  left: 0;
  bottom: 16%;
  display: grid;
  gap: 6px;
  min-width: 108px;
}
.fc-zones span {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 1px solid #eef2f8;
}
.fc-zones span:last-child { border: 0; }
.fc-3d {
  top: 2%;
  right: 4%;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--coral);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
}
.fc-rate {
  right: 0;
  top: 36%;
  text-align: right;
}
.fc-rate strong { display: block; font-size: 18px; }
.fc-rate em { font-style: normal; color: var(--muted); font-size: 12px; }
.fc-vendor {
  left: 2%;
  top: 10%;
  border-radius: 12px;
  border-left: 3px solid var(--blue);
}
.fc-vendor strong { display: block; font-size: 13px; }
.fc-vendor em { font-style: normal; color: var(--muted); font-size: 11px; }
.fc-price {
  right: 8%;
  bottom: 4%;
  background: var(--blue);
  color: #fff;
  border: 0;
}
.fc-price strong { display: block; font-size: 16px; }
.fc-price em { font-style: normal; color: #c7dbff; font-size: 11px; }

/* Continue — recent projects carousel */
.continue-carousel {
  margin-top: var(--space-4);
}
.continue-carousel .hk-carousel-track {
  padding-inline: 0;
  scroll-padding-inline: 0;
}
.continue-card {
  flex: 0 0 calc((100% - 48px) / 2.55);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: var(--radius);
  overflow: hidden;
  border: 0;
  box-shadow: none;
  min-height: 0;
  transition: transform 0.2s ease;
}
.continue-rail[data-count="1"] .continue-card {
  flex-basis: min(100%, 560px);
  max-width: 560px;
}
.continue-rail[data-count="2"] .continue-card {
  flex-basis: calc((100% - 24px) / 2);
  max-width: none;
}
.continue-card:hover { transform: translateY(-2px); }
.continue-card-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8eef8;
}
.continue-card-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.35s ease;
}
.continue-card:hover .continue-card-media img { transform: scale(1.03); }
.continue-card-body {
  display: grid;
  gap: 6px;
  padding: 14px 2px 0;
}
.continue-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.continue-card-body p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.continue-card-body button {
  justify-self: start;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  border: 1.5px solid #dbe3f0;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.continue-card-body button:hover {
  background: var(--soft-blue);
  border-color: #bfdbfe;
  color: var(--blue);
  transform: none;
}
.continue-empty {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-5);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 55%),
    #fff;
  border: 1px solid rgba(232, 238, 246, 0.95);
}
.continue-empty h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.continue-empty p {
  color: var(--muted);
  font-size: 15px;
  max-width: 36ch;
  margin: 0;
}

/* Shared carousel rails — no visible scrollbar */
.hk-carousel { position: relative; }
.hk-carousel-frame {
  position: relative;
  margin-top: var(--space-3);
}
.hk-rail,
.hk-carousel-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  scroll-padding-inline: max(40px, calc((100% - var(--hk, 1320px)) / 2));
  padding: 4px max(40px, calc((100% - var(--hk, 1320px)) / 2)) 8px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hk-rail::-webkit-scrollbar,
.hk-carousel-track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.hk-rail.is-dragging,
.hk-carousel-track.is-dragging,
body.hk-carousel-grabbing {
  cursor: grabbing !important;
}
.hk-rail.is-dragging,
.hk-carousel-track.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
body.hk-carousel-grabbing {
  user-select: none !important;
}
.p-card {
  cursor: grab;
}
.hk-carousel-track.is-dragging .p-card {
  cursor: grabbing;
  pointer-events: none;
}
.hk-rail > *,
.hk-carousel-track > * { scroll-snap-align: start; flex-shrink: 0; }
.hk-carousel-track img,
.hk-carousel-track .p-card,
.hk-carousel-track .continue-card {
  -webkit-user-drag: none;
  user-select: none;
}
.hk-carousel-track .p-card-media,
.hk-carousel-track .continue-card-media {
  pointer-events: none;
}
.continue-card-body button { pointer-events: auto; }
.hk-carousel-fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 8px;
  width: 56px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(252, 252, 250, 0.92));
  opacity: 1;
  transition: opacity 0.25s ease;
  z-index: 2;
}
.hk-warm .hk-carousel-fade {
  background: linear-gradient(90deg, transparent, rgba(255, 248, 238, 0.95));
}
.hk-products .hk-carousel-fade {
  background: linear-gradient(90deg, transparent, rgba(245, 249, 255, 0.95));
}
.hk-carousel-track.is-end + .hk-carousel-fade,
.hk-carousel-frame:has(.is-end) .hk-carousel-fade { opacity: 0; }
.hk-carousel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding-inline: max(40px, calc((100% - var(--hk, 1320px)) / 2));
  min-height: 28px;
}
.continue-carousel .hk-carousel-foot {
  padding-inline: 0;
}
.hk-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hk-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #c9d7ef;
  transition: width 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.hk-dot.is-on {
  width: 18px;
  background: var(--blue);
}
.hk-dot:hover { background: #93b4e8; }
.hk-head-rail {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
}
.hk-rail-nav {
  display: flex;
  gap: 8px;
  flex: none;
  padding-bottom: 4px;
}
.hk-rail-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d7e3f5;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-float);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.hk-rail-btn:hover {
  background: var(--soft-blue);
  border-color: #bfd0ef;
  color: var(--blue);
}
.hk-rail-btn[data-rail-dir="-1"]:hover { transform: translateX(-2px); }
.hk-rail-btn[data-rail-dir="1"]:hover { transform: translateX(2px); }

/* Products — one-row carousel */
.product-carousel { margin-top: 4px; }
.product-carousel .hk-carousel-frame { margin-top: var(--space-4); }
.p-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  transition: transform 0.25s ease;
}
.p-card-slide {
  flex: 0 0 clamp(152px, 15.8vw, 208px);
  width: clamp(152px, 15.8vw, 208px);
  min-width: 148px;
  max-width: 220px;
}
.p-card:hover { transform: translateY(-2px); }
.p-card-media {
  display: block;
  overflow: hidden;
  background: #e8eef8;
  aspect-ratio: 1;
  border-radius: var(--radius);
  box-shadow: none;
}
.p-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  pointer-events: none;
  transition: transform 0.45s ease;
}
.p-card:hover .p-card-media img { transform: scale(1.04); }
.p-card-body {
  display: grid;
  gap: 4px;
  padding: 12px 2px 0;
}
.p-card-body strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.p-card-body em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}
.p-card-body small {
  color: #64748b;
  font-size: 12px;
}
.p-card-body b {
  opacity: 0;
  display: inline-flex;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-btn);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(4px);
}
.p-card:hover .p-card-body b {
  opacity: 1;
  transform: translateY(0);
}

/* Order status — notification treatment */
.order-timeline {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr auto;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #dbe7fb;
  border-left: 5px solid var(--blue);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
}
.hk-orders .hk-label { color: var(--blue-deep); }
.order-timeline .btn-ghost {
  padding: 8px 14px;
  font-size: 13px;
}
.ot-main strong { font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.ot-main p { color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.ot-steps {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}
.ot-steps li {
  flex: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b0b7c6;
}
.ot-steps li + li::before {
  content: "";
  position: absolute;
  left: -50%;
  right: 50%;
  top: 7px;
  height: 2px;
  background: #e6ebf3;
}
.ot-steps li.is-done + li::before,
.ot-steps li.is-on + li::before { background: #bfdbfe; }
.ot-steps i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #d0d5e0;
  background: #fff;
  z-index: 1;
}
.ot-steps li.is-done i {
  background: var(--blue);
  border-color: var(--blue);
}
.ot-steps li.is-on i {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  background: #fff;
}
.ot-steps li.is-done,
.ot-steps li.is-on { color: var(--ink); }

.request-box-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-5);
  padding: var(--space-4) 0 0;
  border-top: 1px solid #d7e3f5;
  background: transparent;
  border-radius: 0;
}
.request-box-v2 h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--ink); }
.request-box-v2 p { color: var(--muted); font-size: 14px; }
.request-form {
  display: flex;
  gap: 8px;
}
.request-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.request-form input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Inspiration */
.inspo-ed {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 20px;
  margin-top: var(--space-4);
  align-items: stretch;
}
.inspo-feat {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  text-align: left;
  background: #1a2236;
  border: 0;
  padding: 0;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.inspo-feat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.inspo-feat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  inset: 0;
  transition: transform 0.45s ease;
}
.inspo-feat:hover img { transform: scale(1.03); }
.inspo-feat > span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 460px;
  padding: 28px 28px 26px;
  color: #fff;
  background: linear-gradient(
    180deg,
    transparent 42%,
    rgba(23, 32, 51, 0.28) 68%,
    rgba(23, 32, 51, 0.72) 100%
  );
}
.inspo-feat strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.18);
}
.inspo-feat em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
}
.inspo-side {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: stretch;
  min-height: 460px;
}
.inspo-mini {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  text-align: left;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(238, 242, 248, 0.95);
  padding: 10px 16px 10px 10px;
  box-shadow: none;
  height: 100%;
  min-height: 0;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.inspo-mini img {
  width: 112px;
  height: 88px;
  min-height: 0;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.inspo-mini:hover {
  transform: translateY(-2px);
  background: var(--ice-blue);
  border-color: transparent;
}
.inspo-mini:hover img { transform: scale(1.04); }
.inspo-mini span {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0;
  min-width: 0;
}
.inspo-mini strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.inspo-mini em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* AI chapter */
.hk-ai {
  background:
    radial-gradient(55% 70% at 100% 0%, rgba(255, 122, 69, 0.1) 0%, transparent 50%),
    var(--soft-blue);
  padding: var(--space-8) 0;
}
.ai-ed {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-5);
  align-items: center;
}
.ai-ed-copy h2 {
  font-size: clamp(36px, 3.8vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--ink);
  max-width: 14ch;
}
.ai-prompt-lg {
  width: 100%;
  min-height: 120px;
  margin: var(--space-3) 0 var(--space-2);
  padding: 18px 20px;
  border: 1.5px solid #c9d4e5;
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  color: var(--ink);
}
.ai-prompt-lg:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}
.ai-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  align-items: stretch;
}
.ai-prev {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8eef6;
  padding: 0;
  box-shadow: none;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-prev:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.ai-prev-0,
.ai-prev-1,
.ai-prev-2,
.ai-prev-3 {
  border-radius: var(--radius);
  margin-top: 0;
}
.ai-prev img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease;
}
.ai-prev span {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  box-shadow: none;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.ai-prev:hover img { transform: scale(1.05); }
.ai-prev:hover span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.2);
}
.ai-prev.is-fresh { animation: aiPop 0.45s ease; }
@keyframes aiPop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Vendor trust */
.vendor-trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.vendor-trust-card {
  padding: var(--space-3);
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(238, 242, 248, 0.95);
  border-top: 3px solid var(--blue);
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vendor-trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.vt-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: start;
  margin-bottom: var(--space-2);
}
.vt-top strong { font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.vt-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  background: #fff1ea;
  padding: 4px 8px;
  border-radius: 8px;
}
.vt-rating {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.vt-rating b { font-size: 28px; letter-spacing: -0.03em; color: var(--ink); }
.vt-rating span { font-size: 13px; color: var(--muted); font-weight: 600; }
.vt-meta { font-size: 13px; color: #94a3b8; }

/* Element wall — clean equal grid */
.elem-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: var(--space-4);
}
.elem-tile {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--ice-blue) 100%);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 28px 24px 52px;
  border: 1px solid rgba(232, 238, 246, 0.7);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.elem-tile img {
  width: 78%;
  height: 78%;
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  object-position: center;
  transition: transform 0.22s ease;
}
.elem-tile span {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: calc(100% - 28px);
  white-space: nowrap;
  opacity: 0;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  box-shadow: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    padding 0.2s ease;
  pointer-events: none;
}
.elem-tile:hover {
  transform: translateY(-2px);
  z-index: 2;
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}
.elem-tile:hover img { transform: scale(1.04); }
.elem-tile:hover span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  padding-right: 16px;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.22);
}

/* Creator — energetic blue + lime */
.creator-band-v2 {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background:
    radial-gradient(55% 90% at 92% 40%, rgba(199, 243, 107, 0.28) 0%, transparent 55%),
    var(--blue);
  overflow: hidden;
}
.creator-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-8) 0 calc(var(--space-8) + 8px);
}
.creator-copy .creator-eye {
  color: var(--lime);
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.creator-copy h2 {
  font-size: clamp(36px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
}
.creator-copy p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 38ch;
  margin: 16px 0 28px;
  font-size: 16px;
  line-height: 1.55;
}
.creator-visual {
  position: relative;
  min-height: 360px;
}
.creator-visual img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.cv-a {
  width: 62%;
  left: 0;
  top: 8%;
  aspect-ratio: 0.85;
  z-index: 2;
  transform: rotate(-4deg);
}
.cv-b {
  width: 48%;
  right: -4%;
  bottom: 0;
  aspect-ratio: 0.9;
  z-index: 3;
  transform: rotate(5deg);
}
.cv-c {
  width: 28%;
  right: 18%;
  top: 0;
  aspect-ratio: 1;
  z-index: 4;
  background: #fff;
  padding: 10px;
  transform: rotate(8deg);
}

/* Soft curve between banner breaks */
.creator-band-v2::before,
.creator-band-v2::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  z-index: 1;
}
.creator-band-v2::before {
  top: -1px;
  background:
    radial-gradient(120% 48px at 50% -2px, var(--surface) 60%, transparent 61%);
}
.creator-band-v2::after {
  bottom: -1px;
  background:
    radial-gradient(120% 48px at 50% calc(100% + 2px), var(--surface-muted) 60%, transparent 61%);
}
.hk-ai {
  position: relative;
}
.hk-ai::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  background: linear-gradient(180deg, var(--surface) 0%, transparent 100%);
  pointer-events: none;
}

/* Since — light */
.hk-since {
  background: var(--surface-muted);
  color: var(--ink);
  padding: var(--space-8) 0;
}
.since-ed .hk-label { color: var(--blue); }
.since-ed h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  max-width: 20ch;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--ink);
}
.since-ed p {
  color: var(--muted);
  max-width: 48ch;
  font-size: 16px;
  line-height: 1.55;
}
.home-foot-v2 {
  margin: 0;
  padding: 28px 0 40px;
  background: var(--ink);
  color: #94a3b8;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}
.foot-row strong { color: #fff; }

/* Rail + top — light, soft blue active */
.app-pembeli:not(.is-editing) .rail-btn.is-on {
  background: var(--soft-blue);
  color: var(--blue);
}
.app-pembeli:not(.is-editing) .rail-btn.is-on:hover { color: var(--blue); }
.app-pembeli:not(.is-editing) .rail-btn.accent {
  background: var(--blue);
  color: #fff;
}
.app-pembeli:not(.is-editing) .rail-btn.accent.is-on,
.app-pembeli:not(.is-editing) .rail-btn.accent:hover {
  background: var(--blue-lt);
  color: #fff;
}
.app-pembeli:not(.is-editing) .app-top {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eef2f8;
}

@media (max-width: 1100px) {
  .home-v2 { --hk: min(100% - 48px, 1320px); }
  .hk-title-line { white-space: normal; }
  .hero-split,
  .inspo-ed,
  .ai-ed,
  .creator-split { grid-template-columns: 1fr; }
  .vendor-trust-row { grid-template-columns: 1fr; }
  .elem-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .order-timeline { grid-template-columns: 1fr; }
  .hero-stage { min-height: 380px; }
  .request-box-v2 { grid-template-columns: 1fr; }
  .home-hero-v2 .hero-copy h1 { max-width: none; font-size: clamp(44px, 7vw, 60px); }
  .home-hero-v2 .hero-copy h1 em { white-space: normal; }
  .hk-rail,
  .hk-carousel-track {
    scroll-padding-inline: 24px;
    padding-inline: 24px;
  }
  .hk-carousel-foot { padding-inline: 24px; }
  .continue-carousel .hk-carousel-foot { padding-inline: 0; }
  .p-card-slide {
    flex-basis: clamp(160px, 24vw, 200px);
    width: clamp(160px, 24vw, 200px);
    max-width: 220px;
  }
  .continue-card {
    flex-basis: calc((100% - 16px) / 2.2);
    max-width: none;
  }
}
@media (max-width: 860px) {
  .home-v2 { --hk: calc(100% - 32px); }
  .hk-chapter { padding: var(--space-5) 0; }
  .hk-ai { padding: var(--space-6) 0; }
  .home-hero-v2 { padding: var(--space-4) 0 var(--space-5); }
  .elem-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ai-previews { grid-template-columns: 1fr 1fr; }
  .creator-split { padding: var(--space-6) 0; }
  .cv-b { right: 0; }
  .float-card { display: none; }
  .fc-zones, .fc-rate { display: grid; }
  .home-hero-v2 .hero-copy h1 { font-size: clamp(40px, 9vw, 48px); }
  .hk-rail,
  .hk-carousel-track {
    scroll-padding-inline: 16px;
    padding-inline: 16px;
  }
  .hk-carousel-foot { padding-inline: 16px; }
  .continue-carousel .hk-carousel-foot { padding-inline: 0; }
  .hk-head-rail { align-items: flex-start; flex-wrap: wrap; }
  .p-card-slide {
    flex-basis: 72vw;
    width: 72vw;
    max-width: 280px;
    min-width: 200px;
  }
  .continue-card,
  .continue-rail[data-count="2"] .continue-card {
    flex-basis: 78vw;
    max-width: 320px;
  }
  .continue-empty { padding: var(--space-4); }
  .hk-carousel-fade { width: 40px; }
}

.app-body { min-width: 0; }
.app-pembeli.is-editing .app-body {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.app-top {
  position: sticky;
  top: 0;
  z-index: 15;
  height: var(--top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6ebf3;
}
.app-pembeli.is-editing .app-top {
  position: relative;
  flex: 0 0 var(--top);
  background: #fff;
  backdrop-filter: none;
}
.app-top-title { font-size: 16px; font-weight: 700; }
.app-top-title span { color: var(--slate); font-weight: 500; font-size: 13px; margin-left: 8px; }
.app-top-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn, .avatar-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f4f6fb;
  display: grid;
  place-items: center;
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  place-items: center;
}
.cart-count.is-on { display: grid; }
.avatar-btn {
  width: auto;
  padding: 0 10px 0 4px;
  gap: 8px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.avatar-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.app-view { display: none; padding: 24px 28px 48px; }
.app-view.is-on { display: block; }
.app-view[data-view="editor"] {
  padding: 0;
  height: calc(100vh - var(--top));
}
.app-pembeli.is-editing .app-view[data-view="editor"].is-on {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}
.page-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.page-h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin: 4px 0 6px; }
.page-sub { color: var(--slate); max-width: 560px; margin-bottom: 22px; }

.hero-home {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  margin-bottom: 28px;
}
.home-card {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 18px;
  padding: 20px;
}
.home-cta {
  background: linear-gradient(135deg, #1c233d, #3764d8);
  color: #fff;
  border: none;
}
.home-cta h2 { font-size: 26px; margin: 8px 0; }
.home-cta p { opacity: 0.85; margin-bottom: 16px; }
.creator-banner {
  background: linear-gradient(135deg, #fff4ec, #fff);
  border-color: #ffd7bf;
}
.creator-banner h3 { color: var(--orange); margin-bottom: 6px; }
.btn-orange { background: var(--orange); color: #fff; }

.section-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 14px;
}
.section-row h2 { font-size: 18px; }
.section-row a, .text-link { color: var(--blue); font-weight: 600; font-size: 14px; }

.h-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.mini-card, .prod-card, .vendor-card, .project-card, .order-card {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
}
.mini-card img, .prod-card img, .project-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.mini-card figcaption, .prod-card h3, .project-card h3 { padding: 10px 12px 4px; font-size: 14px; }
.mini-card p, .prod-card p, .project-card p, .order-card p { padding: 0 12px 12px; font-size: 12px; color: var(--slate); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.stepper {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.stepper span {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 99px;
  background: #e8eef8;
  color: #64748b;
}
.stepper span.is-on { background: var(--navy); color: #fff; }
.stepper span.is-done { background: #dbeafe; color: var(--blue); }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid #dbe2ea;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.chip.is-on { border-color: var(--blue); background: #eef3ff; color: var(--blue); }

.vendor-card { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.vendor-card header { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.vendor-card h3 { font-size: 16px; }
.badge-top {
  font-size: 11px;
  font-weight: 700;
  background: #fff4ec;
  color: var(--orange);
  padding: 3px 8px;
  border-radius: 99px;
}
.price-lg { font-size: 20px; font-weight: 700; color: var(--navy); }
.moq { font-size: 13px; color: var(--slate); line-height: 1.55; letter-spacing: 0.02em; }

/* Editor */
.ed-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  height: calc(100vh - var(--top));
}
.ed-panel {
  background: #fff;
  border-right: 1px solid #e6ebf3;
  overflow: auto;
  padding: 14px;
}
.ed-panel h3 { font-size: 13px; margin-bottom: 10px; }
.ed-side {
  background: #fff;
  border-left: 1px solid #e6ebf3;
  overflow: auto;
  padding: 14px;
}
.ed-canvas {
  position: relative;
  display: grid;
  place-items: center;
  background: #d8dde3;
  overflow: hidden;
}
.ed-stage {
  width: min(420px, 70%);
  aspect-ratio: 1;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ed-stage img.ed-mock {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.print-safe {
  position: absolute;
  left: 38%;
  top: 30%;
  width: 24%;
  height: 28%;
  overflow: hidden;
  outline: none;
  background: transparent;
}
.print-safe img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.print-safe .ed-obj img {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.print-safe.has-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: clamp(10px, 1.4vw, 16px);
  letter-spacing: 0.04em;
  color: var(--navy);
  text-align: center;
}
.ed-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fff;
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(28, 35, 61, 0.12);
}
.zone-list, .el-list, .layer-list { display: grid; gap: 10px; }
.zone-btn, .layer-item, .tool-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  background: #fff;
}
.zone-btn { justify-content: center; }
.layer-item, .tool-item { justify-content: space-between; }
.zone-btn.is-on, .tool-item.is-on { border-color: var(--blue); background: #eef3ff; color: var(--blue); }
.el-list {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.el-cat {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 16px;
}
.el-cat .chip {
  padding: 8px 14px;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
/* Kategori clipart: hanya scroll horizontal (tidak wrap, tidak scroll vertikal). */
#clipartCats {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c7d2e0 transparent;
  padding-bottom: 4px;
}
#clipartCats::-webkit-scrollbar { height: 6px; }
#clipartCats::-webkit-scrollbar-thumb { background: #c7d2e0; border-radius: 999px; }
#clipartCats::-webkit-scrollbar-track { background: transparent; }
#clipartCats .chip { flex: 0 0 auto; }
.el-list button {
  position: relative;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 6px;
  background: #f7f9fc;
}
.el-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.el-list button:hover .el-rm { opacity: 1; }
.el-rm:hover { background: #dc2626; }
.el-list img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.clipart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.clipart-item {
  display: grid;
  gap: 6px;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 8px;
  background: #f7f9fc;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.clipart-item:hover { border-color: var(--blue); background: #eef3ff; transform: translateY(-1px); }
.clipart-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; }
.clipart-item em { font-style: normal; font-size: 11px; font-weight: 600; color: #3c4a63; letter-spacing: 0.02em; }
.ai-box, .ed-input, .addr-form input, .addr-form select, .qty-row input {
  width: 100%;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.ai-box { min-height: 88px; resize: vertical; }
.drop-box {
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 1.5px dashed #c9d4e5;
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  background: #f8fbff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.drop-box:hover { border-color: var(--blue); background: #f0f6ff; }
.drop-box span { font-size: 22px; color: var(--blue); }
.drop-box em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--slate); }
.saved-designs { display: grid; gap: 8px; margin-top: 10px; }
.saved-designs button {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  text-align: left;
}
.saved-designs img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }

.size-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); overflow: hidden; }
.size-table th, .size-table td { padding: 8px 4px; text-align: left; }
.size-table input { width: 64px; padding: 6px 8px; border-radius: 8px; border: 1px solid #dbe2ea; }

.order-card { padding: 16px; }

/* ===== Tabel pesanan (modern & stylish) ===== */
.orders-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.orders-head .page-h1 { margin-bottom: 2px; }
.orders-table-wrap {
  background: #fff;
  border: 1px solid var(--line, #e6ebf3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}
.orders-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.orders-table thead th {
  text-align: left;
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid var(--line, #e6ebf3);
  white-space: nowrap;
}
.orders-table thead th.th-actions { text-align: right; }
.orders-table tbody tr.order-row {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}
.orders-table tbody tr.order-row:last-child { border-bottom: none; }
.orders-table tbody tr.order-row:hover { background: #f8fafc; }
.or-cell { padding: 14px 16px; vertical-align: middle; }
.or-cell.or-prod { align-items: center; gap: 12px; min-width: 220px; }
.or-prod .order-thumb { flex: 0 0 44px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.or-prod-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.or-prod-name { font-weight: 700; color: var(--navy, #0f172a); text-decoration: none; cursor: pointer; }
.or-prod-name:hover { color: var(--blue, #3764d8); }
.or-prod-sub { font-size: 12px; color: #94a3b8; }
.or-id { flex-direction: column; gap: 3px; }
.or-id > .or-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 600; color: #334155; }
.or-resi { font-size: 11px; color: #94a3b8; font-family: inherit; font-weight: 400; }
.or-date { color: #64748b; white-space: nowrap; }
.or-qty { color: #64748b; font-weight: 600; white-space: nowrap; }
.or-total { white-space: nowrap; }
.or-total b { color: var(--navy, #0f172a); font-size: 14px; }
.or-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* Badge status */
.st-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.st-badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-wait   { background: #fff1ee; color: #e5484d; }
.st-queue  { background: #eef4ff; color: #4f6bed; }
.st-print  { background: #eef3ff; color: #3764d8; }
.st-qc     { background: #fff7e6; color: #b7791f; }
.st-ready  { background: #e9fbf0; color: #0b9f6e; }
.st-ship   { background: #fff4ec; color: #ea7b1f; }
.st-done   { background: #f4ffea; color: #2f9e1a; }
.st-reject { background: #fee2e2; color: #dc2626; }
.st-default{ background: #f1f5f9; color: #64748b; }

/* Empty state + responsive fallback (mobile -> kartu) */
.orders-table .orders-empty td { padding: 40px 16px; text-align: center; }
.orders-table .orders-empty .empty { border: none; padding: 20px; }

@media (max-width: 720px) {
  .orders-table thead { display: none; }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display: block; width: 100%; }
  .orders-table tr.order-row { padding: 14px 0; }
  .or-cell { padding: 6px 16px; }
  .or-cell.or-prod { min-width: 0; }
  .or-actions, .or-actions { justify-content: flex-start; }
  .orders-table tbody tr.order-row { border-bottom: 1px solid #e6ebf3; }
}

.order-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
}
.status.pay { background: #fff1ee; color: var(--error); }
.status.prod { background: #eef3ff; color: var(--blue); }
.status.ship { background: #fff4ec; color: var(--orange); }
.status.done { background: #f4ffea; color: #2f9e1a; }

.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.cart-line > img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.cart-line-price { text-align: right; }
.summary-box {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.addr-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  padding: 14px 42px 14px 14px;
  margin-bottom: 10px;
  background: #fff;
  text-align: left;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.addr-card.is-on {
  border-color: var(--blue);
  background: #f4f8ff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

/* Midtrans fake Snap */
.snap-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 80;
  display: none;
  place-items: center;
  padding: 16px;
}
.snap-overlay.is-on { display: grid; }
.snap-card {
  width: min(400px, 100%);
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  font-family: "DM Sans", sans-serif;
}
.snap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #002b49;
  color: #fff;
  flex: none;
}
.snap-head strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.snap-head button { color: #fff; font-size: 18px; width: 32px; height: 32px; }
.snap-sum {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 12px;
  background: #fff;
}
.snap-sum-k { display: block; font-size: 12px; color: #64748b; margin-bottom: 2px; }
.snap-sum strong { display: block; font-size: 26px; font-weight: 800; color: #0f172a; letter-spacing: -0.03em; line-height: 1.15; }
.snap-oid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.snap-oid i {
  width: 12px;
  height: 12px;
  border: 1.5px solid #2563eb;
  border-radius: 2px;
  position: relative;
}
.snap-oid i::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -3px;
  width: 12px;
  height: 12px;
  border: 1.5px solid #2563eb;
  border-radius: 2px;
  background: #fff;
}
.snap-details-btn {
  background: none;
  border: 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}
.snap-details-btn::after { content: " ▾"; }
.snap-details-btn.is-on::after { content: " ▴"; }
.snap-details {
  padding: 0 16px 12px;
  font-size: 13px;
}
.snap-details p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0;
  color: #475569;
}
.snap-timer {
  background: #eef3f7;
  text-align: center;
  padding: 8px 12px;
  font-size: 12px;
  color: #475569;
  flex: none;
}
.snap-timer b { color: #0f172a; }
.snap-body { overflow: auto; flex: 1; }
.snap-sec {
  margin: 14px 16px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}
.snap-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eef2f6;
  background: #fff;
  cursor: pointer;
}
.snap-row:hover { background: #f8fafc; }
.snap-row b { display: block; font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.snap-row > i { color: #94a3b8; font-style: normal; font-size: 18px; }
.snap-logos { display: flex; flex-wrap: wrap; gap: 4px; }
.snap-logo {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.snap-va-list { background: #f8fafc; border-bottom: 1px solid #eef2f6; }
.snap-va-list button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 28px;
  background: none;
  border: 0;
  border-top: 1px solid #eef2f6;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}
.snap-va-list button i { margin-left: auto; color: #94a3b8; font-style: normal; }
.snap-va-list button:hover { background: #fff; }
.snap-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid #eef2f6;
  font-size: 11px;
  color: #94a3b8;
  flex: none;
}
.snap-foot b { color: #0a2540; font-weight: 800; }
.snap-foot b span { color: #00a3a1; }
.snap-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f6;
  font-size: 14px;
}
.snap-subhead button { font-size: 18px; width: 28px; }
.snap-form, .snap-va-box, .snap-qr { padding: 16px; }
.snap-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
}
.snap-form input {
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  font-size: 15px;
}
.snap-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.snap-pay {
  margin-top: 8px;
  width: 100%;
  background: #1c233d;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  font-weight: 700;
  cursor: pointer;
}
.snap-pay:hover { background: #0f172a; }
.snap-va-box { text-align: center; }
.snap-va-box span { font-size: 12px; color: #64748b; }
.snap-va-box strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin: 8px 0;
  font-family: ui-monospace, monospace;
}
.snap-qr { text-align: center; }
.snap-qr-code {
  width: 180px;
  height: 180px;
  margin: 8px auto 12px;
  background:
    repeating-linear-gradient(0deg, #0f172a 0 8px, #fff 8px 16px),
    repeating-linear-gradient(90deg, #0f172a 0 8px, #fff 8px 16px);
  background-blend-mode: multiply;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
}
.snap-qr p { font-size: 12px; color: #64748b; margin-bottom: 8px; }
.snap-ok { padding: 36px 16px 16px; text-align: center; }
.snap-ok .check {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #00a3a1;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
}
.snap-ok h3 { font-size: 18px; margin-bottom: 6px; }

.empty {
  padding: 32px;
  text-align: center;
  color: var(--slate);
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #dbe2ea;
}

/* ===== Editor toolbar ===== */
.ed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #e6ebf3;
  height: 52px;
  flex-wrap: nowrap;
}
.ed-toolbar-left, .ed-toolbar-center, .ed-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ed-toolbar-center { gap: 4px; }
.ed-name {
  font-weight: 700;
  font-size: 15px;
  border: 0;
  background: transparent;
  min-width: 140px;
  outline: none;
  color: var(--navy);
}
.ed-save { font-size: 12px; color: #16a34a; font-weight: 600; }
.ed-reff {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 3px 9px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.ed-reff:hover { background: #fef3c7; }
.ed-reff-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.ed-reff-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  border: 1px solid #fde68a;
  border-radius: 50%;
  background: #fffbeb;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ed-reff-x:hover { background: #fde68a; color: #92400e; }

/* ===== Modal Login/Daftar Pembeli (tanpa reload) ===== */
.dk-auth { display: grid; gap: 12px; }
.dk-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #f1f4f9;
  border-radius: 12px;
  padding: 4px;
}
.dk-auth-tab {
  padding: 9px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.dk-auth-tab.is-on {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(30, 41, 59, 0.12);
}
.dk-auth .ed-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-60, #e7e7e7);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dk-auth .ed-input:focus {
  border-color: var(--blue, #3764d8);
  box-shadow: 0 0 0 4px rgba(55, 100, 216, 0.12);
}
.dk-auth-submit { width: 100%; }
.ed-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  height: calc(100vh - var(--top) - 52px);
}
.app-pembeli.is-editing .ed-toolbar {
  flex: 0 0 52px;
}
.app-pembeli.is-editing .ed-layout {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}
.ed-panel {
  background: #fff;
  border-right: 1px solid #e6ebf3;
  overflow: auto;
  padding: 20px 18px 24px;
  line-height: 1.5;
}
.ed-panel h3 { font-size: 15px; margin: 0 0 14px; letter-spacing: 0.02em; line-height: 1.4; }
.ed-side {
  background: #fff;
  border-left: 1px solid #e6ebf3;
  overflow: auto;
  padding: 20px 18px 24px;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.ed-side h3 { font-size: 15px; margin: 0 0 14px; letter-spacing: 0.02em; line-height: 1.4; }
.side-cta { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; }

.ed-canvas {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #d8dde3;
  overflow: hidden;
}
.ed-stage-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  perspective: 1400px;
  min-height: 0;
  padding: 16px 128px 88px 16px;
}
.ed-canvas.is-3d .ed-stage-wrap { cursor: grab; }
.ed-canvas.is-3d .ed-stage-wrap:active { cursor: grabbing; }
.ed-stage {
  width: min(520px, 62vh);
  aspect-ratio: 1;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ed-canvas.is-3d .ed-stage { transition: transform 0.12s ease-out; }
.mock-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #d8dde3;
  isolation: isolate;
}
.ed-stage.is-preview .print-safe,
.ed-canvas.is-preview .print-safe,
.ed-stage.is-preview .print-safe.show-guides {
  outline: none !important;
  outline-offset: 0;
  background: transparent;
  box-shadow: none;
}
.ed-stage.is-preview .print-safe-label,
.ed-canvas.is-preview .print-safe-label,
.ed-stage.is-preview .obj-hand,
.ed-canvas.is-preview .obj-hand,
.ed-stage.is-preview .smart-guides,
.ed-stage.is-preview .sel-marquee,
.ed-canvas.is-preview .ctx-toolbar,
.ed-canvas.is-preview .draw-cursor {
  display: none !important;
}
.ed-stage.is-preview .ed-obj,
.ed-canvas.is-preview .ed-obj {
  pointer-events: none;
  cursor: default;
}
.ed-stage.is-preview .ed-obj.is-sel,
.ed-stage.is-preview .ed-obj.is-sel.is-lock,
.ed-canvas.is-preview .ed-obj.is-sel {
  box-shadow: none !important;
}
.ed-mock {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.mock-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  mix-blend-mode: multiply;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
  transition: background 0.25s ease;
}
.print-safe {
  position: absolute;
  overflow: hidden;
  outline: none;
  background: transparent;
  z-index: 4;
}
.print-safe.show-guides {
  outline: 1.6px dashed rgba(212, 64, 200, 0.75);
  outline-offset: 3px;
  border-radius: 4px;
  overflow: hidden;
}
.print-safe-label {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a21caf;
  background: rgba(255, 255, 255, 0.88);
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
  line-height: 1.3;
}
.ed-stage.is-preview .print-safe,
.ed-stage.is-preview .print-safe.show-guides {
  outline: none !important;
  background: transparent;
}
.ed-stage.is-preview .ed-obj { pointer-events: none; }
.ed-stage.is-preview .ed-obj.is-sel,
.ed-stage.is-preview .ed-obj.is-sel.is-lock { box-shadow: none !important; }
.ed-stage.is-preview .obj-hand,
.ed-stage.is-preview .print-safe-label,
.ed-stage.is-preview .smart-guides,
.ed-stage.is-preview .sel-marquee { display: none !important; }
.smart-guides {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}
.sg-v,
.sg-h,
.sg-gap {
  position: absolute;
  pointer-events: none;
  display: none;
}
.sg-v {
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1.5px solid #e11d8a;
  left: 50%;
}
.sg-h {
  left: 0;
  right: 0;
  height: 0;
  border-top: 1.5px solid #e11d8a;
  top: 50%;
}
.sg-gap {
  height: 0;
  border-top: 1.5px dashed #0ea5e9;
  transform: translateY(-50%);
}
.sg-gap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0ea5e9;
  transform: translateX(-50%);
}
.sg-v.is-on,
.sg-h.is-on,
.sg-gap.is-on { display: block; }
.sel-marquee {
  position: absolute;
  border: 1.5px solid var(--blue);
  background: rgba(37, 99, 235, 0.08);
  pointer-events: none;
  z-index: 7;
  border-radius: 2px;
}
.hint-3d { display: none !important; }
.orbit-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px 12px;
  background: #fff;
  border-top: 1px solid #e6ebf3;
  flex-wrap: wrap;
}
.orbit-bar em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-right: 8px;
}
.orbit-bar button {
  border: 1px solid #dbe2ea;
  background: #fff;
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--navy);
}
.orbit-bar button.is-on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.orbit-bar #btnResetView {
  margin-left: 4px;
  color: var(--slate);
}

.zone-rail {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  padding: 12px;
  z-index: 9;
  max-height: calc(100% - 140px);
  overflow: auto;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.zone-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  border: 2px solid transparent;
}
.zone-thumb:hover { background: #f4f6fb; }
.zone-thumb.is-on { border-color: var(--blue); background: #eef3ff; }
.zt-media {
  position: relative;
  isolation: isolate;
  width: 84px;
  height: 84px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.zt-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.zt-tint {
  position: absolute;
  inset: 0;
  z-index: 2;
  mix-blend-mode: multiply;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
}
.zone-thumb.is-on .zt-label { color: var(--blue); }
.zt-label { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; line-height: 1.3; color: var(--slate); }
#drawCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
  touch-action: none;
}
.ed-canvas.is-draw #drawCanvas {
  pointer-events: auto;
  z-index: 8;
  cursor: none;
}
.ed-canvas.is-draw .ed-obj { pointer-events: none; }
.draw-cursor {
  position: fixed;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 90;
  transform: translate(-3px, -25px);
  filter: drop-shadow(0 1px 0 #fff) drop-shadow(0 2px 4px rgba(15, 23, 42, 0.28));
}
.draw-cursor svg { width: 100%; height: 100%; display: block; }
.draw-cursor.is-down { transform: translate(-3px, -25px) scale(0.92); }
.draw-brush-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 1.5px solid #0f172a;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px #fff;
  display: none;
}
.draw-cursor[data-tool="eraser"],
.draw-cursor[data-tool="pen"],
.draw-cursor[data-tool="line"],
.draw-cursor[data-tool="dots"],
.draw-cursor[data-tool="marker"] {
  transform: none;
  width: 0;
  height: 0;
  filter: none;
}
.draw-cursor[data-tool="eraser"] .draw-pencil-ico,
.draw-cursor[data-tool="pen"] .draw-pencil-ico,
.draw-cursor[data-tool="line"] .draw-pencil-ico,
.draw-cursor[data-tool="dots"] .draw-pencil-ico,
.draw-cursor[data-tool="marker"] .draw-pencil-ico { display: none; }
.draw-cursor[data-tool="eraser"] .draw-brush-ring,
.draw-cursor[data-tool="pen"] .draw-brush-ring,
.draw-cursor[data-tool="line"] .draw-brush-ring,
.draw-cursor[data-tool="dots"] .draw-brush-ring,
.draw-cursor[data-tool="marker"] .draw-brush-ring { display: block; }
.draw-cursor[data-tool="eraser"] .draw-brush-ring {
  background: rgba(255, 255, 255, 0.55);
  border-color: #334155;
}
.draw-cursor[data-tool="pen"] .draw-brush-ring,
.draw-cursor[data-tool="line"] .draw-brush-ring {
  width: 10px !important;
  height: 10px !important;
  background: #2563eb;
  border-color: #fff;
}
.draw-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}
.draw-tools .chip {
  width: 100%;
  justify-content: center;
  text-align: center;
  border-radius: 10px;
}
.draw-swatches {
  display: flex;
  gap: 8px;
  margin: -4px 0 12px;
}
.draw-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.draw-swatch.is-on {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}
.draw-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  margin: 4px 0 12px;
}
.draw-actions { margin-top: 8px; }
.ed-obj {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 10;
  user-select: none;
  touch-action: none;
  pointer-events: auto;
}
.ed-obj:active { cursor: grabbing; }
.ed-obj.is-sel {
  box-shadow: 0 0 0 2px var(--blue), 0 0 0 4px rgba(55,100,216,0.2);
}
.ed-obj.is-sel.is-lock,
.ed-obj.is-lock.is-sel {
  box-shadow: 0 0 0 2px #94a3b8, 0 0 0 4px rgba(148, 163, 184, 0.25);
}
.ed-obj.is-lock { cursor: not-allowed; opacity: 0.7; }
.ed-obj-text,
.ed-obj-shape,
.ed-obj img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ed-obj img { object-fit: contain; display: block; }
/* Teks: box mengikuti ukuran konten, tapi membungkus (wrap) di lebar area
 * sablon agar tidak keluar dari #printSafe. */
.ed-obj.is-text {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
}
.ed-obj.is-text .ed-obj-text {
  width: max-content;
  max-width: 100%;
  height: auto;
  white-space: pre-wrap;
  overflow-wrap: normal;
  word-break: normal;
}
.obj-hand {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 50%;
  z-index: 12;
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
}
.obj-tl { left: -8px; top: -8px; cursor: nwse-resize; }
.obj-tr { right: -8px; top: -8px; cursor: nesw-resize; }
.obj-bl { left: -8px; bottom: -8px; cursor: nesw-resize; }
.obj-br { right: -8px; bottom: -8px; cursor: nwse-resize; }
.obj-rot {
  left: 50%; top: -30px; transform: translateX(-50%);
  cursor: grab;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 12px;
  color: var(--blue);
}
.obj-rot:active { cursor: grabbing; }
.ed-footer {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 12;
  width: max-content;
  max-width: calc(100% - 156px);
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
}
.ed-status {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  white-space: nowrap;
}
.ed-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  line-height: 1;
  color: var(--navy);
  background: none;
  border: 0;
  font: inherit;
}
.ed-chip em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.ed-chip b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ed-div {
  width: 1px;
  height: 18px;
  background: #e2e8f0;
  flex: none;
}
.ed-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  box-shadow: inset 0 0 0 1px #fff;
  flex: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ed-chip-color { cursor: pointer; border-radius: 8px; }
.ed-chip-color:hover,
.ed-color-pop[open] > summary {
  background: #f8fafc;
}
.ed-chip-color:hover .ed-swatch,
.ed-color-pop[open] .ed-swatch,
.ed-color-menu button.is-on .ed-swatch {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue);
}
.ed-chip-color.is-static { cursor: default; }
.ed-chip-color.is-static:hover { background: none; }
.ed-chip-color.is-static:hover .ed-swatch {
  transform: none;
  box-shadow: inset 0 0 0 1px #fff;
}
.ed-color-pop { position: relative; }
.ed-color-pop > summary { list-style: none; }
.ed-color-pop > summary::-webkit-details-marker { display: none; }
.ed-color-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 148px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  display: grid;
  gap: 2px;
  z-index: 14;
}
.ed-color-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  background: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
  text-align: left;
  color: var(--navy);
}
.ed-color-menu button:hover { background: #f1f5f9; }
.ed-color-menu button.is-on { background: #eef4ff; color: var(--blue); }
.ed-chip-btn { cursor: pointer; border-radius: 8px; }
.ed-chip-btn:hover { background: #f8fafc; }
.ed-chip-btn.is-warn b { color: var(--blue); }
.ed-obj-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.ed-obj-flag.is-ok {
  background: #f7fee7;
  color: #3f6212;
}
.ed-obj-meta {
  margin: 8px 10px 2px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}
.ed-more { display: none; position: relative; }
.ed-more > summary {
  list-style: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
}
.ed-more > summary::-webkit-details-marker { display: none; }
.ed-more > summary:hover { background: #f1f5f9; color: var(--navy); }
.ed-more-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 180px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  z-index: 14;
}
.ed-more-menu p { margin: 4px 0; color: #475569; }
@media (max-width: 1180px) {
  .ed-opt { display: none !important; }
  .ed-more { display: inline-flex; }
}

.orbit-bar { display: none; }
.canvas-meta { display: none; }
.preview-card {
  display: flex;
  gap: 14px;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}
.preview-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.preview-card strong { display: block; font-size: 15px; line-height: 1.4; letter-spacing: 0.02em; }
.preview-card p { font-size: 13px; color: var(--slate); margin: 4px 0; line-height: 1.45; }

/* Object inspector */
.obj-inspector { display: grid; gap: 16px; font-size: 13px; }
.obj-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.obj-head strong { text-transform: capitalize; letter-spacing: 0.02em; }
.obj-field { display: grid; gap: 8px; font-size: 13px; font-weight: 600; color: var(--slate); letter-spacing: 0.02em; line-height: 1.4; }
.obj-field input, .obj-field select {
  width: 100%;
  padding: 10px 12px;
  min-height: 40px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.ed-select-wrap {
  display: inline-flex;
  position: relative;
  max-width: 100%;
  width: fit-content;
}
.ed-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.ed-select,
.obj-field select.ed-select {
  appearance: none;
  -webkit-appearance: none;
  width: auto;
  max-width: 100%;
  min-width: 0;
  padding: 11px 34px 11px 14px;
  min-height: 44px;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.ed-select::-ms-expand { display: none; }
.ed-select:hover {
  background: #fff;
  border-color: #c9d4e5;
}
.ed-select:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(55, 100, 216, 0.16);
}
.obj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.obj-row { display: flex; gap: 8px; flex-wrap: wrap; }
.obj-row.align-row .chip {
  min-width: 40px;
  min-height: 38px;
  padding: 8px 10px;
}
.ed-side .obj-row .chip {
  padding: 8px 12px;
  line-height: 1.35;
}

/* Panels */
.swatch-row { display: flex; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  padding: 2px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.swatch i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.swatch.is-on { border: 0; box-shadow: none; }
.swatch.is-on i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.swatch span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-transform: capitalize;
  color: var(--slate);
}
.swatch.is-on span { color: var(--blue); }
.txt-presets { display: grid; gap: 12px; }
.txt-presets button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  text-align: left;
  line-height: 1.45;
}
.txt-presets button:hover { border-color: var(--blue); background: #f8fbff; }
.txt-presets button span { font-size: 20px; font-weight: 800; line-height: 1.2; }
.txt-presets button strong { display: block; font-size: 14px; letter-spacing: 0.02em; line-height: 1.4; }
.txt-presets button em { font-style: normal; font-size: 12px; color: var(--slate); line-height: 1.45; }
.obj-label {
  margin: 6px 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge-commission {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #92400e;
  background: #fef3c7;
  border-radius: 99px;
  padding: 2px 8px;
}
.obj-field textarea {
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  resize: vertical;
}
.tt-list { display: grid; gap: 12px; }
.tt-list button {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  background: #f8fafc;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tt-list button:hover { border-color: var(--blue); transform: translateY(-1px); }
.tt-preview {
  font-size: 20px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tt-meta { display: flex; align-items: baseline; gap: 10px; }
.tt-meta strong { font-size: 13px; line-height: 1.4; }
.tt-meta em { font-style: normal; font-size: 12px; color: var(--slate); line-height: 1.4; }
.shape-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.shape-grid button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border: 1px solid #e6ebf3; border-radius: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.shape-grid button:hover { border-color: var(--blue); transform: translateY(-1px); }
.shape-prev {
  width: 34px;
  height: 34px;
  background: #24314d;
  display: block;
}
.shape-grid button em { font-style: normal; font-size: 10px; color: var(--slate); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tool-grid button {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px; border: 1px solid #e6ebf3; border-radius: 10px;
  transition: border-color 0.15s ease;
}
.tool-grid button:hover { border-color: var(--blue); background: #f4f7ff; }
.tool-ico { font-size: 20px; line-height: 1; }
.tool-grid button span:last-child { font-size: 11px; font-weight: 600; }
[data-tip] { cursor: pointer; position: relative; }
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  z-index: 120;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  animation: tipIn 0.16s ease forwards;
  white-space: normal;
}
@keyframes tipIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.ai-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-act {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.ai-act:hover { border-color: var(--blue); background: #f4f7ff; }
.ai-act:hover span { color: var(--blue); }
.ai-act span {
  display: block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}
.ai-results { margin-top: 12px; display: grid; gap: 8px; }
.ai-row strong { display: block; font-size: 13px; }
.ai-var {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px; border: 1px solid #e6ebf3; border-radius: 10px;
  text-align: center;
  background: #fff; cursor: pointer;
}
.ai-var:hover { border-color: var(--blue); }
.ai-var img { width: 100%; height: 80px; object-fit: cover; border-radius: 6px; }
.ai-var span { font-size: 12px; font-weight: 600; color: var(--blue); }

/* ===== AI loading + hasil (v2) ===== */
.ai-vars { display: grid; gap: 8px; }
.ai-history { padding: 10px; border: 1px solid #e6ebf3; border-radius: 12px; background: #fff; }
.ai-history-head { margin-bottom: 8px; }
.ai-history-head strong { display: block; font-size: 12.5px; color: var(--navy); }
.ai-history-head .moq { margin: 2px 0 0; }
.ai-loading {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border: 1px solid #e6ebf3; border-radius: 12px;
  background: #f8faff;
}
.ai-loading strong { display: block; font-size: 13.5px; color: var(--navy); }
.ai-loading .moq { margin: 2px 0 0; }
.ai-spin {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid #dbe4fb;
  border-top-color: var(--blue, #3764d8);
  animation: dkSpin 0.8s linear infinite;
}

/* ===== Modal detail pratinjau AI ===== */
.ai-preview-modal { display: grid; gap: 12px; }
.ai-preview-fig {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e6ebf3;
  background: #f8faff;
  aspect-ratio: 1 / 1;
  max-height: 46vh;
  display: grid;
  place-items: center;
}
.ai-preview-fig img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ai-preview-prompt {
  margin: 0;
  font-size: 12.5px;
  color: #475569;
  background: #f8faff;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 10px 12px;
  line-height: 1.5;
  word-break: break-word;
}
.ai-preview-prompt strong { color: var(--navy); }

/* ===== Modal premium upsell ===== */
.pm-box { text-align: center; padding: 6px 4px 4px; }
.pm-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px;
  display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, #f5f0ff, #e7ecff);
}
.pm-box h4 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.pm-box .moq { margin: 0 auto 16px; max-width: 32ch; }
.pm-price { margin-bottom: 14px; }
.pm-price b { font-size: 30px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.pm-price span { font-size: 13px; color: #94a3b8; }
.pm-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.pm-list li {
  font-size: 13px; color: #475569;
  padding: 9px 12px; border-radius: 10px; background: #f8fafc;
  border: 1px solid #eef1f6;
}
.pm-list li::before { content: "✓"; color: #22c55e; font-weight: 700; margin-right: 8px; }
.layer-list { display: grid; gap: 6px; }
.layer-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid #e6ebf3; border-radius: 10px;
  font-size: 13px; cursor: pointer;
  background: #fff;
}
.layer-item.is-on { border-color: var(--blue); background: #eef3ff; }
.layer-item.is-base { background: #f7f9fc; color: var(--slate); cursor: default; }
.layer-item.is-hidden { opacity: 0.45; }
.layer-item.is-locked .layer-name::after { content: " 🔒"; font-size: 11px; }
.layer-item.is-dragging { opacity: 0.5; }
.layer-item.is-drop { border-color: var(--blue); background: #eef3ff; }
.layer-grip {
  color: #94a3b8;
  font-size: 10px;
  letter-spacing: -2px;
  cursor: grab;
  user-select: none;
}
.layer-grip:active { cursor: grabbing; }

/* Floating context toolbar */
.ed-canvas { position: relative; }
.ctx-toolbar {
  position: absolute;
  z-index: 35;
  pointer-events: none;
  left: 0;
  top: 0;
  transition: left 0.18s ease, top 0.18s ease;
  will-change: left, top;
}
.ctx-toolbar.is-following {
  transition: none;
}
.ctx-toolbar .ctx-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  animation: ctxIn 0.16s ease;
}
@keyframes ctxIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
.ctx-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #334155;
  background: transparent;
  border: 0;
  position: relative;
  flex: none;
}
.ctx-btn svg { width: 15px; height: 15px; }
.ctx-btn:hover { background: #f1f5f9; color: var(--ink); }
.ctx-btn.is-on { background: var(--soft-blue); color: var(--blue); }
.ctx-sep {
  width: 1px;
  height: 18px;
  background: #e2e8f0;
  margin: 0 3px;
  flex: none;
}
.ctx-pop { position: relative; }
.ctx-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 148px;
  padding: 5px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  display: none;
  gap: 2px;
  z-index: 40;
}
.ctx-menu:not([hidden]) {
  display: grid;
}
.ctx-menu[hidden] {
  display: none !important;
}
.ctx-menu.is-fixed {
  position: fixed;
  z-index: 60;
  transform: none;
}
.ctx-menu button {
  text-align: left;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 0;
  position: relative;
}
.ctx-menu button:hover { background: #f1f5f9; }
.ctx-menu-grid {
  grid-template-columns: repeat(4, 1fr);
  min-width: 156px;
}
.ctx-menu-grid button {
  text-align: center;
  padding: 8px 4px;
  font-size: 14px;
}
.ctx-opacity {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
}
.ctx-opacity input { width: 132px; }

/* Smart tips for contextual UI — never cover artwork via CSS ::after */
.ctx-toolbar [data-tip]:hover::after,
.ctx-toolbar [data-tip]:focus-visible::after,
.ctx-menu [data-tip]:hover::after,
.ctx-menu [data-tip]:focus-visible::after {
  content: none !important;
  display: none !important;
}
.ctx-float-tip {
  position: fixed;
  z-index: 70;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
  animation: tipInFixed 0.14s ease;
}
@keyframes tipInFixed {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}
.ed-snap-toggle.is-on {
  background: var(--soft-blue);
  color: var(--blue);
  border-color: #bfdbfe;
}

.tmpl-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 24px;
}
.tmpl-mode-card {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  display: grid;
  gap: 10px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.tmpl-mode-card h3 { margin: 0; font-size: 18px; }
.tmpl-mode-card p { margin: 0 0 6px; color: var(--slate); font-size: 14px; line-height: 1.5; }
.tmpl-mode-card .btn { width: 100%; }
.tmpl-mode-card .text-link { justify-self: center; margin-top: 4px; }

@media (max-width: 860px) {
  .ctx-toolbar .ctx-bar { max-width: calc(100vw - 24px); overflow-x: auto; }
}
.layer-thumb {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1f5f9;
  overflow: hidden;
}
.layer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.layer-thumb b { font-size: 17px; }
.layer-shape { width: 22px; height: 22px; display: block; }
.layer-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.layer-acts { display: flex; gap: 2px; }
.layer-acts button {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 6px;
  font-size: 11px;
  color: var(--slate);
}
.layer-acts button:hover { background: #e2e8f0; color: var(--navy); }

/* Vendor metrics */
.vendor-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.vendor-metrics div {
  background: #f7f9fc;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}
.vendor-metrics em { font-style: normal; font-size: 11px; color: var(--slate); display: block; }
.vendor-metrics strong { font-size: 13px; }
.vendor-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.method-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  background: #eef2f7;
  color: #33415c;
}
.vendor-actions { display: grid; gap: 8px; margin-top: auto; }

.vendor-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.vendor-skip-card {
  display: grid;
  gap: 3px;
  text-align: left;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, #10203f, #1c3a75);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(16, 32, 63, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vendor-skip-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16, 32, 63, 0.35); }
.vendor-skip-card .vs-title { font-size: 15px; font-weight: 800; }
.vendor-skip-card .vs-sub { font-size: 12px; color: #b9c8e6; }

.chip-geo,
.chip-top { display: inline-flex; align-items: center; gap: 6px; }
.chip-geo svg,
.chip-top svg { width: 15px; height: 15px; }
.chip-geo {
  background: #e7f0ff;
  border-color: #bcd4fb;
  color: #1d4ed8;
}
.chip-geo:hover { background: #d9e8ff; }
.chip-top {
  background: #fff5e6;
  border-color: #fbd9a5;
  color: #b45309;
}
.chip-top:hover, .chip-top.is-on { background: #ffe9c7; color: #92400e; border-color: #f4bf6c; }
.filter-sep { flex: 1; }
.sort-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
}
.sort-box select {
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}

.vendor-card header { display: flex; align-items: flex-start; gap: 10px; }
.vendor-card header > div { flex: 1; min-width: 0; }
.vendor-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1c3a75, #3764d8);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.loc-ico { width: 12px; height: 12px; vertical-align: -1.5px; margin-right: 2px; }
.vendor-card.is-rec {
  border: 2px solid #3764d8;
  box-shadow: 0 12px 30px rgba(55, 100, 216, 0.16);
}
.rec-ribbon {
  margin: -16px -16px 12px;
  padding: 8px 14px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(120deg, #1c3a75, #3764d8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.rec-ribbon em { font-style: normal; font-weight: 500; font-size: 10.5px; color: #c7d6f5; }

/* Order page */
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}
.order-card-mini {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.order-card-mini > img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.order-card-mini strong { display: block; font-size: 16px; color: var(--navy); }
.order-card-mini p { font-size: 12px; color: var(--slate); margin: 4px 0; }

/* ===== Seluruh stages (sisi) di order-card-mini ===== */
.order-card-mini--stages { display: block; margin-bottom: 10px; }
.order-stages { margin-bottom: 16px; }
.order-thumb--stages {
  width: auto !important;
  height: auto !important;
  display: block;
}
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
  justify-items: center;
}
.stage-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.stage-cell .design-thumb {
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.stage-cell .design-thumb img,
.stage-cell .design-thumb .dt-mock,
.stage-cell .design-thumb .dt-flat,
.stage-cell .design-thumb .dt-tint,
.stage-cell .design-thumb .dt-doodle {
  width: 100%; height: 100%; object-fit: cover;
}
.stage-cell em {
  font-size: 10px;
  font-style: normal;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.design-thumb {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 22%, rgba(199, 243, 107, 0.35), transparent 52%),
    radial-gradient(circle at 82% 78%, rgba(37, 99, 235, 0.16), transparent 48%),
    linear-gradient(165deg, #eef4ff 0%, #e7edf6 100%);
}
.design-thumb .dt-mock,
.design-thumb .dt-flat,
.design-thumb .dt-tint,
.design-thumb .dt-doodle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.design-thumb .dt-tint {
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.design-thumb .dt-safe {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}
.design-thumb .dt-obj {
  position: absolute;
  pointer-events: none;
}
.design-thumb .dt-obj img,
.design-thumb .dt-obj span,
.design-thumb .dt-obj b {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.05;
}
.design-preview-lg {
  display: grid;
  place-items: center;
  padding: 8px 0 4px;
}
.design-preview-lg .design-thumb {
  width: 220px;
  height: 220px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

@media (max-width: 1100px) {
  .hero-home, .grid-4 { grid-template-columns: 1fr 1fr; }
  .ed-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .ed-side { display: none; }
  .ed-toolbar { flex-wrap: nowrap; gap: 8px; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-rail {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    top: auto;
    height: auto;
    flex-direction: row;
    width: 100%;
    border-right: none;
    border-top: 1px solid #e6ebf3;
  }
  .rail-nav { flex-direction: row; margin: 0; justify-content: space-around; }
  .app-view { padding: 16px 16px 96px; }
  .app-view[data-view="editor"] { padding: 0; }
  .app-view[data-view="beranda"] { padding: 0 0 72px; background: var(--warm-white); }
  .hero-home, .grid-4, .grid-3, .grid-2, .ed-layout { grid-template-columns: 1fr; }
  .request-form { flex-direction: column; }
  .top-search { display: none; }
  .rail-user { display: none; }
  .ed-layout { display: flex; flex-direction: column; height: calc(100vh - var(--top) - 64px); }
  .ed-side { display: none; }
  .ed-canvas { flex: 1; min-height: 0; }
  .ed-panel {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 72px;
    max-height: 36vh;
    overflow: auto;
    border-top: 1px solid #e6ebf3;
    border-right: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08);
    z-index: 30;
  }
  .app-pembeli.is-editing .app-rail {
    z-index: 50;
    overflow: visible;
  }
  .zone-rail {
    left: 8px;
    right: 8px;
    top: 8px;
    bottom: auto;
    transform: none;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .zt-media { width: 56px; height: 56px; }
  .ed-stage-wrap { padding: 96px 12px 96px; }
  .ed-footer {
    max-width: calc(100% - 16px);
    bottom: 80px;
  }
  .hint-3d { bottom: 148px; width: max-content; max-width: 92%; }
  .order-grid { grid-template-columns: 1fr; }
  .tx-stepper { overflow-x: auto; padding: 12px 8px 10px; }
  .tx-step { min-width: 64px; }
  .tx-step span { font-size: 10px; }
  .coupon-row { flex-direction: column; }
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-box.is-pay { position: static; }
}

/* ===== Checkout / order UX ===== */
.tx-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 24px;
  padding: 16px 14px 14px;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.tx-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 0 4px;
  min-width: 76px;
  color: #94a3b8;
  font: inherit;
}
.tx-dot {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: #fff;
  color: #94a3b8;
  border: 2px solid #dbe3ee;
  box-sizing: border-box;
}
.tx-dot svg { width: 14px; height: 14px; display: block; }
.tx-step span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  color: #94a3b8;
}
.tx-step.is-done { color: #60a5fa; }
.tx-step.is-done .tx-dot {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}
.tx-step.is-done span { color: #60a5fa; font-weight: 600; }
.tx-step.is-on .tx-dot {
  background: #fff;
  border-color: var(--blue);
  color: var(--navy);
  font-weight: 800;
  animation: tx-glow 2.2s ease-in-out infinite;
}
.tx-step.is-on span { color: var(--navy); font-weight: 800; }
.tx-step[disabled] { pointer-events: none; }
.tx-rail {
  flex: 1;
  min-width: 20px;
  height: 3px;
  margin: 13px 6px 0;
  background: #e8eef8;
  border-radius: 99px;
  overflow: hidden;
  align-self: flex-start;
}
.tx-rail i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue), #93c5fd);
  border-radius: 99px;
  transition: width 0.45s ease, background 0.45s ease;
}
.tx-rail.is-done i {
  width: 100%;
  background: linear-gradient(90deg, var(--blue), #3b82f6);
}
.tx-rail.is-mid i {
  width: 58%;
  background: linear-gradient(90deg, var(--blue), #cbd5e1);
}
@keyframes tx-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.06); }
}
.app-pembeli.is-editing .tx-stepper {
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e6ebf3;
  border-radius: 0;
  padding: 8px 16px 10px;
  box-shadow: none;
}
.app-pembeli.is-editing .tx-step { min-width: 68px; }
.app-pembeli.is-editing .tx-dot { width: 24px; height: 24px; }
.block-h { font-size: 16px; margin: 18px 0 8px; }
.req { color: #dc2626; font-weight: 700; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin: 10px 0 6px;
}
.field-err {
  min-height: 16px;
  margin: 4px 0 0;
  font-size: 12px;
  color: #dc2626;
  font-weight: 600;
}
.ed-input.is-invalid,
.addr-form input.is-invalid,
.phone-field:has(.is-invalid),
.size-table input.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.phone-field {
  display: flex;
  align-items: stretch;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.phone-field .phone-prefix {
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: #f5f7fa;
  font-weight: 700;
  color: var(--navy);
  border-right: 1px solid #e6ebf3;
  font-size: 14px;
  white-space: nowrap;
}
.phone-field .ed-input,
.phone-field input {
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}
.phone-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.moq-note {
  font-size: 13px;
  color: var(--slate);
  margin: 0 0 10px;
}
.qty-total { font-size: 13px; font-weight: 700; color: var(--navy); margin: 10px 0 6px; }
.moq-progress { margin: 0 0 4px; }
.moq-progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 8px;
  font-weight: 600;
}
.moq-track {
  height: 8px;
  background: #e8eef8;
  border-radius: 99px;
  overflow: hidden;
}
.moq-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: 99px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s ease;
}
.moq-progress.is-near .moq-track i {
  background: linear-gradient(90deg, #2563eb, #c7f36b);
}
.moq-progress.is-ok .moq-track i {
  background: linear-gradient(90deg, #2563eb 10%, #c7f36b 100%);
}
.moq-progress.is-ok .moq-progress-top {
  color: #3f6212;
}
.ship-pending { color: var(--slate); font-weight: 600; }
.addr-add {
  width: 100%;
  border: 1.5px dashed #c9d4e5;
  background: #f8fbff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--blue);
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.addr-add:hover { border-color: var(--blue); background: #eef4ff; }
.addr-radio {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 99px;
  border: 2px solid #cbd5e1;
  background: #fff;
  box-sizing: border-box;
}
.addr-card.is-on .addr-radio {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 4px var(--blue);
}
.addr-body { min-width: 0; flex: 1; }
.addr-body strong { display: block; color: var(--navy); }
.addr-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  display: none;
  place-items: center;
  line-height: 1;
}
.addr-card.is-on .addr-check { display: grid; }
.coupon-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.coupon-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
}
.coupon-field.is-ok {
  border-color: #65a30d;
  background: #f7fee7;
  box-shadow: 0 0 0 3px rgba(199, 243, 107, 0.35);
}
.coupon-ico {
  width: 18px;
  height: 18px;
  flex: none;
  color: #64748b;
}
.coupon-field.is-ok .coupon-ico { color: #3f6212; }
.coupon-field input {
  flex: 1;
  border: 0;
  padding: 12px 0;
  font: inherit;
  text-transform: uppercase;
  background: transparent;
  outline: none;
}
.coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.coupon-ok { font-size: 13px; color: #3f6212; font-weight: 600; margin-top: 6px; }
.tc-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--navy);
  position: relative;
}
.tc-check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.tc-box {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tc-box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}
.tc-check input:checked + .tc-box {
  background: var(--blue);
  border-color: var(--blue);
}
.tc-check input:checked + .tc-box::after { transform: rotate(45deg) scale(1); }
.tc-check input:focus-visible + .tc-box { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25); }
.tc-check .text-link {
  display: inline;
  padding: 0;
  font-weight: 700;
}
.tc-check label { cursor: pointer; font: inherit; }
.btn-tip {
  display: block;
  position: relative;
  margin-top: 14px;
}
.btn-tip .btn { width: 100%; }
.btn-tip[data-tip]:hover::after,
.btn-tip[data-tip]:focus-within::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}
.pay-methods { margin-top: 6px; }
.pay-methods-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin: 0 0 8px; }
.pay-method {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 0.15s, background 0.15s;
}
.pay-method:has(input:checked) { border-color: var(--blue, #2563eb); background: rgba(37, 99, 235, 0.04); }
.pay-method input { margin-top: 3px; accent-color: var(--blue, #2563eb); }
.pay-method-body { display: flex; flex-direction: column; gap: 2px; }
.pay-method-body strong { font-size: 14px; color: var(--navy); font-weight: 700; }
.pay-method-body strong em { font-style: normal; font-weight: 500; color: var(--slate); font-size: 12px; }
.pay-method-body small { font-size: 12px; color: #94a3b8; }
.bank-card {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  background: #f8fafc;
}
.bank-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.bank-card-head strong { font-size: 13px; color: var(--navy); }
.bank-total { font-size: 14px; font-weight: 800; color: var(--navy); }
.bank-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed #e2e8f0;
}
.bank-logo { font-size: 11px; font-weight: 800; color: #fff; background: var(--navy); border-radius: 6px; padding: 4px 8px; letter-spacing: 0.04em; }
.bank-line div { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.bank-line div b { font-size: 14px; font-weight: 800; color: var(--navy); letter-spacing: 0.04em; }
.bank-line div small { font-size: 11px; color: #94a3b8; }
.bank-note { margin-top: 8px; font-size: 12px; color: var(--slate); }
.app-pembeli:not(.is-editing) .btn:disabled,
.app-pembeli:not(.is-editing) .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.project-card { position: relative; overflow: hidden; }
.proj-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}
.proj-badge.is-full { background: #dbeafe; color: var(--blue); }
.proj-badge.is-el { background: #ecfccb; color: #3f6212; }
.project-card-act { padding: 0 12px 12px; }
.dk-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: dkFadeIn 0.18s ease;
}
.dk-modal-overlay.is-closing { animation: dkFadeOut 0.18s ease forwards; }
.dk-modal-overlay.is-closing .dk-modal { animation: dkSlideDown 0.18s ease forwards; }
@keyframes dkFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dkFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes dkSlideUp { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes dkSlideDown { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(18px) scale(0.97); } }
.dk-modal {
  width: min(560px, 100%);
  max-height: min(88vh, 780px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(30, 41, 59, 0.18), 0 2px 8px rgba(30, 41, 59, 0.06);
  animation: dkSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.dk-modal header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid #f0f3f8;
  flex-shrink: 0;
  background: #fff;
}
.dk-modal-head h3 { font-size: 18px; margin: 0; color: var(--navy); letter-spacing: -0.01em; font-weight: 700; }
.dk-modal-sub { font-size: 12.5px; color: #64748b; margin: 5px 0 0; line-height: 1.45; }
.dk-modal-x {
  border: none;
  background: #f1f4f9;
  color: #64748b;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.dk-modal-x:hover { background: #e4e9f1; color: #0f172a; transform: scale(1.04); }
.dk-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1 1 auto;
  background: #fff;
}
.dk-modal footer {
  padding: 14px 22px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #f0f3f8;
  flex-shrink: 0;
  background: #fff;
}
body.dk-modal-open { overflow: hidden; }

/* ===== Modal pratinjau 3D (model-viewer) ===== */
.dk-modal.mv3d {
  width: min(920px, 100%);
  max-height: min(92vh, 860px);
}
.mv3d-wrap {
  position: relative;
  height: min(62vh, 560px);
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  touch-action: none;
  background:
    radial-gradient(120% 90% at 30% 12%, rgba(99, 130, 255, 0.16), transparent 55%),
    radial-gradient(100% 90% at 80% 90%, rgba(56, 189, 248, 0.14), transparent 55%),
    linear-gradient(160deg, #f7f9ff 0%, #eef2fb 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 8px 30px rgba(39, 60, 125, 0.12);
}
.mv3d-wrap model-viewer {
  --poster-color: transparent;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.mv3d-canvas {
  position: absolute;
  inset: 0;
}
.mv3d-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.mv3d-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(30,41,59,0.12);
  pointer-events: none;
}
.mv3d-badge .mv3d-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.22);
  animation: mv3dPulse 1.8s ease-in-out infinite;
}
@keyframes mv3dPulse { 0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.22); } 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.10); } }
.mv3d-meta {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 4px;
  flex-direction: column;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  color: #475569;
  box-shadow: 0 4px 14px rgba(30,41,59,0.10);
  pointer-events: none;
}
.mv3d-meta strong { font-size: 13px; color: var(--navy); font-weight: 700; }
.mv3d-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mv3d-fallback-err {
  color: #b91c1c;
  text-align: center;
  padding: 24px;
  line-height: 1.5;
}

/* ===== Form alamat di modal ===== */
.addr-form .field-label { margin-top: 4px; }
.addr-form input, .addr-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #dfe5ee;
  border-radius: 11px;
  font: inherit;
  font-size: 13.5px;
  color: var(--navy);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.addr-form input:focus, .addr-form select:focus {
  outline: none;
  border-color: var(--blue, #3764d8);
  box-shadow: 0 0 0 3px rgba(55, 100, 216, 0.12);
}
.addr-form input.is-invalid { border-color: var(--error, #dc2626); }
.addr-row { display: flex; gap: 14px; }
.addr-col { flex: 1; min-width: 0; }
.addr-col--grow { flex: 1.6; }
.addr-col--zip { flex: 0.6; }
.addr-submit { width: 100%; margin-top: 18px; padding: 12px; font-size: 14px; }

.tc-block { margin-bottom: 14px; }
.tc-block h4 { font-size: 14px; margin: 0 0 6px; }
.tc-block p { font-size: 13px; color: var(--slate); line-height: 1.55; margin: 0; }
.addr-form .field-label { margin-top: 12px; }
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.summary-box.is-pay {
  position: sticky;
  top: 72px;
  background: #f4f8ff;
  border-color: #d7e4fb;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  padding: 20px;
}
.sum-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 10px !important;
  display: block !important;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 7px 0;
  font-size: 13px;
  color: #64748b;
}
.sum-row b, .sum-row strong { color: var(--navy); font-weight: 700; }
.sum-row s { color: #94a3b8; font-weight: 500; margin-right: 6px; }
.sum-muted { font-size: 13px; color: #94a3b8; }
.sum-save { color: #3f6212; }
.sum-save b { color: #3f6212; }
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.sum-total span {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}
.sum-total strong {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
}
.summary-box.is-pay .sum-total { border-top-color: #d7e4fb; }
.sum-hint { margin-top: 10px !important; display: block !important; }
.block-h { color: var(--navy); }
.page-h1 { color: var(--navy); }

.toko-page { max-width: 1040px; }
.toko-hero {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #eceff4;
  border-radius: 16px;
  padding: 20px;
  margin: 12px 0 16px;
  box-shadow: var(--shadow-soft);
}
.toko-avatar {
  width: 88px; height: 88px; border-radius: 16px;
  background: #0f172a; color: #fff;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 700; font-family: Teachers, sans-serif;
}
.toko-id h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.03em; }
.toko-privacy {
  display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700;
  color: #9a3412; background: #fff7ed; padding: 2px 8px; border-radius: 99px;
}
.toko-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge-ok {
  font-size: 11px; font-weight: 700; background: #ecfdf3; color: #15803d;
  padding: 3px 8px; border-radius: 99px;
}
.toko-open {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: #15803d;
  background: #ecfdf3; padding: 3px 8px; border-radius: 99px;
}
.toko-open i { width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.toko-open.is-closed { color: #dc2626; background: #fef2f2; }
.toko-open.is-full { color: #d97706; background: #fff7ed; }
.toko-cta { text-align: right; }
.toko-bio { color: var(--slate); margin-bottom: 16px; max-width: 640px; }
.toko-meta {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px;
}
.toko-meta div {
  background: #fff; border: 1px solid #eceff4; border-radius: 12px; padding: 14px 16px;
}
.toko-meta em { display: block; font-size: 11px; color: var(--slate); font-style: normal; margin-bottom: 4px; }
.toko-h { font-size: 18px; margin: 8px 0 12px; }
.toko-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 28px; }
.toko-prod {
  display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center;
  background: #fff; border: 1px solid #eceff4; border-radius: 14px; padding: 10px;
}
.toko-prod img { width: 88px; height: 88px; object-fit: contain; background: #f8fafc; border-radius: 10px; }
.toko-prod strong { display: block; }
.toko-prod em { display: block; font-style: normal; font-weight: 700; }
.toko-prod small { display: block; color: var(--slate); }
.toko-port { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 28px; }
.toko-port figure { margin: 0; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eceff4; }
.toko-port img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #f8fafc; }
.toko-port figcaption { padding: 8px 10px; font-size: 12px; }
.toko-reviews { display: flex; flex-direction: column; gap: 10px; }
.toko-rev {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px;
  background: #fff; border: 1px solid #eceff4; border-radius: 14px; padding: 12px;
}
.toko-rev img { width: 72px; height: 72px; object-fit: contain; background: #f8fafc; border-radius: 10px; }
@media (max-width: 800px) {
  .toko-hero, .toko-meta, .toko-port { grid-template-columns: 1fr; }
  .toko-cta { text-align: left; }
}

/* ===== Aksi edit / hapus alamat ===== */
.addr-card .addr-body { flex: 1; min-width: 0; }
.addr-actions { display: flex; gap: 8px; margin-top: 8px; }
.addr-action {
  border: 1px solid #dfe5ee;
  background: #fff;
  color: #475569;
  border-radius: 9px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.addr-action:hover { border-color: var(--blue); color: var(--blue); background: #f4f8ff; }
.addr-action--danger:hover { border-color: var(--error, #dc2626); color: var(--error, #dc2626); background: #fef2f2; }
.addr-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue, #3764d8);
  background: #eef4ff;
  border-radius: 99px;
  padding: 2px 10px;
  flex-shrink: 0;
  align-self: center;
}
.addr-card.is-primary { border-color: #c7d7fb; background: #fbfcff; }

/* ===== Kartu pesanan: thumbnail, tanggal, progress, detail ===== */
.order-thumb { flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.order-card-actions { display: flex; gap: 8px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.order-progress {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef1f6;
}
.op-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; }
.op-step::before {
  content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: #e2e8f0; z-index: 0;
}
.op-step:first-child::before { display: none; }
.op-step i { width: 14px; height: 14px; border-radius: 50%; background: #e2e8f0; z-index: 1; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2e8f0; }
.op-step em { font-size: 10px; color: #94a3b8; font-style: normal; text-align: center; line-height: 1.2; z-index: 1; }
.op-step.is-done i { background: #22c55e; box-shadow: 0 0 0 1px #22c55e; }
.op-step.is-done::before { background: #22c55e; }
.op-step.is-done em { color: #16a34a; }
.op-step.is-current i { background: var(--blue, #3764d8); box-shadow: 0 0 0 1px var(--blue, #3764d8); }
.op-step.is-current em { color: var(--blue, #3764d8); font-weight: 700; }

/* ===== Modal detail pesanan ===== */
.od-hero { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.od-hero h4 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.od-hero .moq { margin: 2px 0; }
.od-timeline { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; padding: 14px; background: #f8fafc; border-radius: 12px; }
.od-step { display: flex; gap: 12px; align-items: flex-start; }
.od-dot { width: 16px; height: 16px; border-radius: 50%; background: #e2e8f0; margin-top: 2px; flex-shrink: 0; position: relative; }
.od-step.is-done .od-dot { background: #22c55e; }
.od-step.is-current .od-dot { background: var(--blue, #3764d8); box-shadow: 0 0 0 3px rgba(55,100,216,.18); }
.od-step b { font-size: 13px; color: var(--navy); }
.od-step em { display: block; font-style: normal; font-size: 11px; color: var(--blue, #3764d8); margin-top: 2px; }
.od-step.is-done b { color: #475569; }
.od-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 8px; }
.od-meta > div { background: #fff; border: 1px solid #eef1f6; border-radius: 10px; padding: 10px 12px; }
.od-meta span { display: block; font-size: 11px; color: #94a3b8; margin-bottom: 3px; }
.od-meta b { font-size: 14px; color: var(--navy); }

/* ===== Modal detail pesanan — tampilan baru (v2) ===== */
.od2-hero {
  display: flex; gap: 14px; align-items: center;
  padding: 16px; border-radius: 16px;
  background: linear-gradient(135deg, #f5f7ff 0%, #eef2ff 55%, #e7ecff 100%);
  border: 1px solid #e3e9fb;
  position: relative;
}
.od2-thumb { flex-shrink: 0; width: 120px; }
.od2-thumb .order-thumb { border-radius: 14px; }
.od2-thumb .stage-grid { grid-template-columns: repeat(2, 1fr); }
.od2-hero-info { min-width: 0; flex: 1; }
.od2-hero-info h4 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--navy); }
.od2-hero-info p { margin: 0 0 8px; font-size: 12.5px; color: #64748b; }
.od2-ids { display: flex; flex-wrap: wrap; gap: 6px; }
.od2-chip {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  background: #fff; color: #3764d8;
  border: 1px solid #dbe4fb;
}
.od2-chip--muted { color: #64748b; border-color: #e6ebf3; }
.od2-badge {
  position: absolute; top: 12px; right: 12px;
}
.od2-badge.status {
  font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.od2-badge.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.od2-progress { margin-top: 16px; }
.od2-progress-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.od2-progress-label span { font-size: 12.5px; font-weight: 600; color: var(--navy); }
.od2-progress-label b { font-size: 13px; color: var(--blue, #3764d8); font-weight: 800; }
.od2-bar {
  height: 8px; border-radius: 99px; background: #eceff5; overflow: hidden;
}
.od2-bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #3764d8, #6d8df0);
  transition: width 0.4s ease;
}
.od2-timeline {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-top: 14px; position: relative;
}
.od2-step { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; position: relative; }
.od2-step::before {
  content: ""; position: absolute; top: 14px; left: calc(-50% + 14px); right: calc(50% + 14px);
  height: 2px; background: #e2e8f0;
}
.od2-step:first-child::before { display: none; }
.od2-step.is-done::before, .od2-step.is-current::before { background: #22c55e; }
.od2-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid #dbe1ec; color: #94a3b8;
  font-size: 12px; font-weight: 700; position: relative; z-index: 1;
}
.od2-step.is-done .od2-dot { background: #22c55e; border-color: #22c55e; color: #fff; }
.od2-step.is-current .od2-dot { background: #3764d8; border-color: #3764d8; color: #fff; box-shadow: 0 0 0 4px rgba(55,100,216,.16); }
.od2-label { font-size: 11px; color: #64748b; font-weight: 600; text-align: center; }
.od2-step.is-done .od2-label, .od2-step.is-current .od2-label { color: var(--navy); }
.od2-now {
  font-size: 9.5px; font-weight: 800; color: #3764d8;
  background: #e7edff; padding: 2px 7px; border-radius: 999px;
}

.od2-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 16px; }
.od2-meta-card {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  background: #fbfcfe; border: 1px solid #eef1f6;
}
.od2-ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 17px;
  background: #fff; border: 1px solid #e6ebf3;
}
.od2-meta-card span:not(.od2-ico) { display: block; font-size: 10.5px; color: #94a3b8; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.03em; }
.od2-meta-card b { font-size: 14px; color: var(--navy); }

/* ===== Banner pembayaran tertunda (#pesanan) ===== */
.pay-pending-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.pay-pending-banner b { color: #9a3412; }
.pp-spin {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid #fdba74; border-top-color: #ea580c;
  border-radius: 50%;
  animation: dkSpin 0.9s linear infinite;
}
@keyframes dkSpin { to { transform: rotate(360deg); } }

/* ===== Chat dengan vendor (#chat) ===== */
.chat-head { margin-bottom: 16px; }
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: stretch; height: calc(100vh - 200px); min-height: 460px; }
.chat-layout > * { min-height: 0; }
@media (max-width: 760px) { .chat-layout { grid-template-columns: 1fr; height: calc(100vh - 120px); } }

.chat-threads {
  background: #fff; border: 1px solid #e6ebf3; border-radius: 16px;
  padding: 8px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  box-shadow: 0 8px 30px rgba(15,23,42,.05);
}
.chat-thread {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border: none; background: transparent; border-radius: 12px;
  cursor: pointer; text-align: left; transition: background .15s;
}
.chat-thread:hover { background: #f8fafc; }
.chat-thread.is-on { background: #eef2ff; }
.chat-ava {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#6366f1,#4338ca); color: #fff; font-weight: 700; font-size: 15px;
}
.chat-thread-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-thread-meta b { font-size: 13.5px; color: var(--navy,#0f172a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-thread-meta em { font-size: 11.5px; color: #94a3b8; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-window {
  background: #fff; border: 1px solid #e6ebf3; border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden; min-height: 0;
  box-shadow: 0 8px 30px rgba(15,23,42,.05);
}
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #94a3b8; text-align: center; padding: 30px; }
.chat-window-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #f0f0f1; }
.chat-window-head b { display: block; font-size: 14px; color: var(--navy,#0f172a); }
.chat-window-head em { font-size: 11.5px; color: #94a3b8; font-style: normal; }
.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #fafbfc; }
.chat-hint { text-align: center; color: #94a3b8; font-size: 12.5px; padding: 20px; }
.chat-bubble { max-width: 72%; display: flex; flex-direction: column; gap: 3px; }
.chat-bubble .chat-img { padding: 0; background: none; border-radius: 0; }
.chat-bubble .chat-img img { display: block; max-width: 220px; max-height: 220px; border-radius: 12px; object-fit: cover; }
.chat-bubble span { padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.chat-bubble em { font-size: 10px; color: #94a3b8; padding: 0 4px; }
.chat-bubble.is-me { align-self: flex-end; align-items: flex-end; }
.chat-bubble.is-me span { background: #3764d8; color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.is-them { align-self: flex-start; align-items: flex-start; }
.chat-bubble.is-them span { background: #eef1f6; color: #1d2327; border-bottom-left-radius: 4px; }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #f0f0f1; }
.chat-compose input { flex: 1; border: 1px solid #cbd5e1; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; }
.chat-compose input:focus { outline: none; border-color: #3764d8; box-shadow: 0 0 0 3px rgba(55,100,216,.12); }
.chat-attach-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 38px; height: 38px; border: 1px solid #cbd5e1; background: #fff; color: #64748b; border-radius: 10px; cursor: pointer; }
.chat-attach-btn:hover { background: #f1f5f9; color: #3764d8; }
.chat-attach-preview { display: flex; align-items: center; gap: 8px; padding: 0 12px 10px; }
.chat-attach-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid #e6ebf3; }
.chat-attach-clear { border: 1px solid #cbd5e1; background: #fff; color: #dc2626; border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; }

/* Badge pesan belum dibaca pada thread chat */
.chat-thread { position: relative; }
.chat-unread {
  margin-left: auto; flex-shrink: 0;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e5484d; color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.chat-read {
  margin-left: auto; flex-shrink: 0;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #d1fae5; color: #059669; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.chat-unread-inline {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  margin-left: 4px;
  background: #e5484d; color: #fff; border-radius: 999px;
  font-size: 10px; font-weight: 700; line-height: 1;
}
.premium-badge {
  display: inline-flex; align-items: center;
  margin-left: 6px; padding: 1px 8px;
  font-size: 9px; font-weight: 800; letter-spacing: 0.04em;
  color: #7c4a03;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  border-radius: 999px;
  text-transform: uppercase;
  vertical-align: middle;
}
