/* ============================================================
   QWEN HOME APPLIANCES — Main Stylesheet
   Design: Modern Elegant • Navy / Gold / Black / White
   ============================================================ */

/* ---- Accessibility: skip link & global focus ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: #0a1530;
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 8px 8px;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease-out;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #c9a961;
  outline-offset: 2px;
}

/* Visible focus indicator untuk keyboard users (semua elemen interaktif) */
:focus-visible {
  outline: 3px solid #c9a961;
  outline-offset: 2px;
  border-radius: 4px;
}
/* Hilangkan default focus untuk mouse user, tapi keep untuk keyboard */
:focus:not(:focus-visible) { outline: none; }

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


/* ---- CUSTOM PROPERTIES ---- */
:root {
  /* Core neutrals */
  --black:       #050810;
  --white:       #ffffff;
  --cream:       #faf7f2;        /* off-white luxe */
  --gray-50:     #f7f7f9;
  --gray-100:    #eeeef2;
  --gray-200:    #e1e1e8;
  --gray-400:    #9999a6;
  --gray-600:    #555566;
  --gray-800:    #1f2233;

  /* Navy palette (deep & elegant) */
  --navy-900:    #060d1c;
  --navy-800:    #0a1530;
  --navy-700:    #0f1f44;
  --navy-600:    #182d5e;
  --navy-500:    #243f7a;

  /* Gold palette (champagne, not garish) */
  --gold:        #c9a961;
  --gold-light:  #e2c577;
  --gold-soft:   #f3e6c3;
  --gold-dark:   #a08438;
  --gold-tint:   #fbf6e7;

  /* Accent aliases (used across the app) */
  --accent:      var(--gold);
  --accent-dark: var(--gold-dark);
  --accent-light:var(--gold-tint);

  /* Marketplace brand colors (kept) */
  --shopee:      #ee4d2d;
  --tokopedia:   #03ac0e;
  --lazada:      #1a0dab;
  --tiktok:      #010101;

  /* Radii & shadows */
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(10,21,48,.08), 0 1px 2px rgba(10,21,48,.05);
  --shadow:      0 6px 20px rgba(10,21,48,.10), 0 2px 6px rgba(10,21,48,.06);
  --shadow-lg:   0 24px 60px rgba(10,21,48,.18), 0 8px 24px rgba(10,21,48,.10);
  --shadow-gold: 0 8px 24px rgba(201,169,97,.28);

  --nav-h:       72px;
  --font-display:'Outfit', sans-serif;
  --font-body:   'Plus Jakarta Sans', sans-serif;
  --transition:  .25s cubic-bezier(.4,0,.2,1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid rgba(10,21,48,.06);
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.96);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.03em;
  color: var(--navy-800);
  flex-shrink: 0;
}
.logo-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy-700);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-dark);
  background: var(--gold-tint);
}
.dropdown-arrow { font-size: .7rem; transition: transform var(--transition); }
.nav-item:hover .dropdown-arrow,
.nav-item:focus-within .dropdown-arrow { transform: rotate(180deg); }

/* ---- Dropdown (FIXED: bridge gap so hover doesn't break) ---- */
.nav-item.has-dropdown::after {
  /* Invisible hover-bridge between nav-link and dropdown-menu.
     Keeps :hover alive while the cursor crosses the visual gap. */
  content: '';
  position: absolute;
  top: 100%;
  left: -8px;
  right: -8px;
  height: 14px;
  pointer-events: none;
}
.nav-item.has-dropdown:hover::after,
.nav-item.has-dropdown:focus-within::after { pointer-events: auto; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid rgba(10,21,48,.08);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-lg);
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy-700);
  white-space: normal;
  line-height: 1.4;
  transition: all var(--transition);
}
.dropdown-menu li a:hover {
  background: var(--gold-tint);
  color: var(--gold-dark);
  padding-left: 18px;
}

/* Right-edge dropdown alignment for last items (avoid viewport clip) */
.nav-item:nth-last-child(-n+2) .dropdown-menu {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-6px);
}
.nav-item:nth-last-child(-n+2):hover .dropdown-menu,
.nav-item:nth-last-child(-n+2):focus-within .dropdown-menu {
  transform: translateX(0) translateY(0);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 999;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: -.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-900);
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  border: 1.5px solid var(--navy-700);
  color: var(--navy-800);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-tint);
  transform: translateY(-1px);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .82rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background:
    radial-gradient(ellipse at top right, var(--navy-700) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, var(--navy-600) 0%, transparent 55%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--black) 100%);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .45;
}
.orb1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 65%);
  top: -120px; right: -140px;
  opacity: .25;
}
.orb2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--navy-500) 0%, transparent 65%);
  bottom: -80px; left: -80px;
  opacity: .55;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,97,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,97,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Floating home appliance icons in hero (decorative) */
.hero-appliances {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-appliance {
  position: absolute;
  font-size: clamp(2rem, 5vw, 4rem);
  filter: drop-shadow(0 10px 30px rgba(201,169,97,.25));
  opacity: .14;
  animation: floatSlow 12s ease-in-out infinite;
}
.hero-appliance.a1 { top: 18%; right: 8%;  animation-delay: 0s; }
.hero-appliance.a2 { top: 62%; right: 18%; animation-delay: -3s; }
.hero-appliance.a3 { top: 35%; right: 28%; animation-delay: -6s; font-size: clamp(1.6rem, 4vw, 3rem); }
.hero-appliance.a4 { top: 75%; right: 4%;  animation-delay: -9s; font-size: clamp(1.6rem, 4vw, 3rem); }
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-22px) rotate(3deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-block: 80px;
  animation: fadeUp .8s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(201,169,97,.12);
  border: 1px solid rgba(201,169,97,.45);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--gold-light);
  margin-bottom: 24px;
  letter-spacing: .04em;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.04em;
  margin-bottom: 24px;
  color: var(--white);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.65);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-actions .btn-outline {
  border-color: rgba(255,255,255,.25);
  color: var(--white);
}
.hero-actions .btn-outline:hover {
  border-color: rgba(255,255,255,.6);
  color: var(--white);
  background: rgba(255,255,255,.05);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.03em;
}
.stat-label {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(201,169,97,.4), transparent);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(226,197,119,.6);
  font-size: .68rem;
  letter-spacing: .18em;
  font-weight: 500;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding-block: clamp(60px, 8vw, 100px);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  background: var(--gold-tint);
  color: var(--gold-dark);
  border: 1px solid rgba(201,169,97,.35);
  border-radius: 100px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--gold-dark);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--navy-900);
}
.section-sub {
  color: var(--gray-600);
  font-size: 1rem;
  max-width: 500px;
  margin-inline: auto;
}
.section-cta { text-align: center; margin-top: 48px; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  position: relative;
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  background:
    radial-gradient(ellipse at top, var(--navy-700) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-bottom: 1px solid rgba(201,169,97,.2);
  text-align: center;
  color: var(--white);
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,97,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,97,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
  color: var(--white);
}
.page-header p { color: rgba(255,255,255,.7); }
.page-header .section-tag {
  background: rgba(201,169,97,.12);
  border-color: rgba(201,169,97,.4);
  color: var(--gold-light);
}
.page-header .section-tag::before { background: var(--gold-light); }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-grid-full {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: default;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
}
.product-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.product-card:hover::before { opacity: 1; }

.product-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
  cursor: pointer;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray-400);
  font-size: .8rem;
}
.product-img-placeholder svg { width: 48px; height: 48px; }
.product-img-placeholder.large svg { width: 80px; height: 80px; }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-900);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(201,169,97,.4);
  z-index: 1;
}
.product-img-wrap { position: relative; }

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.3;
}
.product-desc {
  font-size: .82rem;
  color: var(--gray-600);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-dark);
  letter-spacing: -.01em;
}
.product-marketplaces {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.mp-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}
.mp-badge.shopee    { background: var(--shopee); }
.mp-badge.tokopedia { background: var(--tokopedia); }
.mp-badge.lazada    { background: var(--lazada); }
.mp-badge.tiktok    { background: var(--tiktok); }

/* ============================================================
   ABOUT SNIPPET
   ============================================================ */
.about-snippet {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  position: relative;
}
.about-snippet::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .4;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-card-stack {
  position: relative;
  height: 320px;
}
.about-card {
  position: absolute;
  background: var(--white);
  border: 1px solid rgba(10,21,48,.08);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-800);
  box-shadow: var(--shadow);
  white-space: nowrap;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  border-radius: 3px 0 0 3px;
}
.card-icon { font-size: 1.6rem; line-height: 1; }
.card-1 { top: 20px; left: 0; animation: float1 4s ease-in-out infinite; }
.card-2 { top: 50%; left: 40px; transform: translateY(-50%); animation: float2 5s ease-in-out infinite; }
.card-3 { bottom: 20px; left: 0; animation: float3 4.5s ease-in-out infinite; }

@keyframes float1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 6px)) translateX(4px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   PARTNERS STRIP
   ============================================================ */
.partners-strip {
  padding-block: 56px;
  background: var(--cream);
  border-top: 1px solid rgba(201,169,97,.18);
  border-bottom: 1px solid rgba(201,169,97,.18);
  position: relative;
}
.partners-strip::before,
.partners-strip::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--gold);
}
.partners-strip::before { top: -1px; }
.partners-strip::after  { bottom: -1px; }

.partners-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.partners-label::before,
.partners-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: .5;
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  align-items: center;
}
.partner-logo-item {
  opacity: .5;
  transition: opacity var(--transition);
}
.partner-logo-item:hover { opacity: 1; }
.partner-logo-item img { height: 40px; max-width: 120px; object-fit: contain; }
.partner-name-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-700);
  letter-spacing: -.01em;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-snippet {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.faq-intro { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq-intro p { color: var(--gray-600); margin-bottom: 24px; line-height: 1.7; }

.faq-full, .faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201,169,97,.12);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy-900);
  transition: color var(--transition);
}
.faq-q.open { color: var(--gold-dark); }
.faq-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--gold);
}
.faq-q.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s ease;
  padding: 0 24px;
}
.faq-a.open { max-height: 500px; padding: 0 24px 20px; }
.faq-a p { color: var(--gray-600); line-height: 1.7; font-size: .9rem; }

.faq-cta {
  text-align: center;
  padding: 48px;
  margin-top: 48px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}
.faq-cta h3 { font-size: 1.4rem; margin-bottom: 8px; }
.faq-cta p { color: var(--gray-600); margin-bottom: 24px; }

/* ============================================================
   MARKETPLACE CTA
   ============================================================ */
.cta-box {
  position: relative;
  background:
    radial-gradient(ellipse at top right, var(--navy-600) 0%, transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  color: var(--white);
  overflow: hidden;
  border: 1px solid rgba(201,169,97,.15);
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,97,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,97,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 12px;
  color: var(--white);
}
.cta-box p { color: rgba(255,255,255,.6); margin-bottom: 36px; }

.marketplace-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.mp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
  transition: all var(--transition);
  color: var(--white);
}
.shopee-btn   { background: var(--shopee); }
.tokopedia-btn { background: var(--tokopedia); }
.lazada-btn   { background: var(--lazada); }
.tiktok-btn   { background: #333; }
.mp-btn:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 8px 20px rgba(0,0,0,.3); }

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.breadcrumb-bar {
  padding: calc(var(--nav-h) + 16px) 0 16px;
  background: var(--cream);
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--gray-400);
}
.breadcrumb a { color: var(--gold-dark); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.product-detail-section { padding-top: 48px; }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 1;
  margin-bottom: 12px;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .2s ease;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--gray-200);
  transition: border-color var(--transition);
  cursor: pointer;
}
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 8px;
}
.product-detail-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-dark);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.product-detail-short {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}
.product-detail-desc h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--gray-800);
}
.desc-content {
  color: var(--gray-600);
  font-size: .9rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.marketplace-section h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--gray-800);
}
.marketplace-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.mp-buy-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  background: var(--white);
  color: var(--navy-800);
}
.mp-buy-btn:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.mp-icon { font-size: 1.4rem; }
.mp-buy-btn div { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.mp-name { font-weight: 700; font-size: .9rem; }
.mp-sub { font-size: .75rem; color: var(--gray-400); }
.mp-arrow { font-size: .9rem; color: var(--gray-400); }

.shopee-buy:hover    { border-color: var(--shopee); background: #fff5f3; }
.tokopedia-buy:hover { border-color: var(--tokopedia); background: #f0fff2; }
.lazada-buy:hover    { border-color: var(--lazada); background: #f0f1ff; }
.tiktok-buy:hover    { border-color: #555; background: #f5f5f5; }

.no-links { color: var(--gray-400); font-size: .9rem; font-style: italic; }
.back-btn { margin-top: 8px; }

/* ============================================================
   PAGES (ABOUT, CONTENT PAGES)
   ============================================================ */
.content-page { max-width: 860px; margin-inline: auto; }
.subpage-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
}
.subpage-link {
  padding: 6px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}
.subpage-link:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-tint);
}

.about-full .about-main-text {
  margin-bottom: 48px;
}
.about-full .about-main-text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.about-full .about-main-text p {
  color: var(--gray-600);
  line-height: 1.8;
  font-size: 1rem;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.value-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,169,97,.12);
}
.value-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--gold-tint), var(--gold-soft));
  border-radius: 50%;
  border: 1px solid rgba(201,169,97,.3);
}
.value-card h3 { margin-bottom: 8px; font-size: 1rem; }
.value-card p { font-size: .85rem; color: var(--gray-600); line-height: 1.6; }

.rich-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600);
}
.rich-text h2, .rich-text h3 {
  color: var(--black);
  margin-top: 32px;
  margin-bottom: 12px;
}
.rich-text p { margin-bottom: 16px; }
.rich-text ul, .rich-text ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.rich-text li { margin-bottom: 8px; }

.page-back { margin-top: 48px; }

/* ============================================================
   PARTNERS PAGE
   ============================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.partner-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.partner-card img { max-height: 60px; max-width: 120px; object-fit: contain; margin: 0 auto 16px; }
.partner-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-tint) 0%, var(--gold-soft) 100%);
  color: var(--gold-dark);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  border-radius: var(--radius);
  margin: 0 auto 16px;
  border: 1px solid rgba(201,169,97,.3);
}
.partner-card h4 { font-size: .95rem; margin-bottom: 8px; color: var(--navy-900); }
.partner-link {
  font-size: .8rem;
  color: var(--gold-dark);
  font-weight: 600;
}
.partner-link:hover { text-decoration: underline; }

/* ============================================================
   TOOLS PAGE
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.tool-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.tool-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold-tint) 0%, var(--gold-soft) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(201,169,97,.25);
}
.tool-info h3 { font-size: 1rem; margin-bottom: 6px; color: var(--navy-900); }
.tool-info p { font-size: .85rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; }
.tool-link { font-size: .82rem; color: var(--gold-dark); font-weight: 700; }
.tool-link:hover { text-decoration: underline; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 8px; }
.empty-state p { color: var(--gray-600); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background:
    radial-gradient(ellipse at top, var(--navy-700) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--black) 100%);
  color: rgba(255,255,255,.72);
  padding-top: 80px;
  border-top: 1px solid rgba(201,169,97,.18);
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -.02em;
}
.footer-logo .logo-icon {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
}
.footer-desc { font-size: .85rem; line-height: 1.7; max-width: 260px; }
.footer-socials { display: flex; gap: 8px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  border: none;
  box-shadow: 0 4px 12px rgba(201,169,97,.35);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
  position: relative;
  padding-left: 14px;
}
.footer-heading::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 1px;
  background: var(--gold);
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
}

.footer-bottom {
  border-top: 1px solid rgba(201,169,97,.12);
  padding-block: 24px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   AI IMAGE GENERATOR
   ============================================================ */
.ai-section {
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 60px;
  background: var(--cream);
  min-height: calc(100vh - var(--nav-h));
}
.ai-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.ai-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.02em;
  margin: 8px 0 4px;
}
.ai-head p { color: var(--gray-600); font-size: .95rem; }

.ai-balance {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,169,97,.25);
  color: var(--white);
}
.ai-balance-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-light);
  display: block;
}
.ai-balance-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: -.02em;
  line-height: 1.05;
}
.ai-balance-value span {
  font-size: .65rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}
.ai-balance-topup {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform var(--transition);
}
.ai-balance-topup:hover { transform: translateY(-1px); }

.ai-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) { .ai-layout { grid-template-columns: 1fr; } }

/* === Form card === */
.ai-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.ai-form-group { margin-bottom: 18px; }
.ai-form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--navy-900);
  margin-bottom: 8px;
}
.ai-form-group textarea,
.ai-form-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--navy-900);
  background: var(--white);
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ai-form-group textarea:focus,
.ai-form-group input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-tint);
}
.ai-hint { font-size: .76rem; color: var(--gray-400); margin-top: 4px; display: block; }

.ai-advanced {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.ai-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy-700);
}
.ai-advanced[open] summary { color: var(--gold-dark); }

/* Pill group */
.ai-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-pill input { display: none; }
.ai-pill span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.ai-pill span small {
  font-size: .68rem;
  color: var(--gray-400);
  font-weight: 400;
}
.ai-pill span:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
}
.ai-pill.active span {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  border-color: var(--gold-dark);
  box-shadow: 0 2px 8px rgba(201,169,97,.3);
}
.ai-pill.active span small { color: rgba(6,13,28,.65); }

/* Cost row */
.ai-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--gold-tint);
  border: 1px solid rgba(201,169,97,.3);
  border-radius: 12px;
  margin-top: 8px;
}
.ai-cost-label { color: var(--gray-700); font-size: .88rem; }
.ai-cost-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--gold-dark);
  margin-left: 4px;
}

/* Status box */
.ai-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  border: 1px solid;
}
.ai-status-pending { background: var(--gold-tint); border-color: rgba(201,169,97,.3); color: var(--gold-dark); }
.ai-status-success { background: #f0fdf4; border-color: rgba(22,163,74,.3); color: #166534; }
.ai-status-error   { background: #fef2f2; border-color: rgba(220,38,38,.3); color: #991b1b; }

/* === Result card === */
.ai-result-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-result-empty,
.ai-result-loading {
  text-align: center;
  color: var(--gray-600);
}
.ai-result-empty h3,
.ai-result-loading h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 12px 0 6px;
  font-size: 1.1rem;
}
.ai-result-img {
  display: block;
  width: 100%;
  text-align: center;
  position: relative;
}
.ai-result-img img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  cursor: zoom-in;
}
.ai-result-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ai-spinner-lg {
  width: 56px; height: 56px;
  border: 4px solid var(--gold-tint);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 1s linear infinite;
}
.ai-spinner {
  display: inline-block;
  width: 24px; height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

/* ============================================================
   3-Mode Picker — Phase 9 redesign (clean, minimalis + ⓘ popover)
   Responsive 4 breakpoint:
     ≥901px        → 3 kolom kartu, layout horizontal (emoji atas, title bawah)
     701-900px     → 3 kolom tetapi kartu lebih compact
     401-700px     → 1 kolom, layout horizontal (emoji kiri, title kanan)
     ≤400px       → 1 kolom, emoji & title disusun rapat
   ============================================================ */
.ai-mode-picker {
  margin-bottom: 24px;
}
.ai-mode-picker-head {
  text-align: center;
  margin-bottom: 18px;
}
.ai-mode-picker-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ai-mode-picker-head p {
  color: var(--gray-600);
  font-size: .9rem;
  margin: 0;
}

.ai-mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Card itu sendiri — layout HORIZONTAL (emoji kiri + title kanan) di semua viewport
   untuk feel compact + elegant + tab-like. ⓘ icon kanan-tengah.
   Pakai <div role="button"> supaya bebas dari user-agent button defaults. */
.ai-mode-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 11px 38px 11px 14px;
  cursor: pointer;
  text-align: left;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  user-select: none;
  overflow: visible;
  box-sizing: border-box;
  min-width: 0;
}
.ai-mode-card:hover {
  border-color: rgba(201, 169, 97, 0.55);
  background: linear-gradient(135deg, #fffefb 0%, #fffaeb 100%);
}
.ai-mode-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.ai-mode-card.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fffaeb 0%, #fff5d6 100%);
  box-shadow: 0 2px 10px rgba(201, 169, 97, 0.18);
}

.ai-mode-card-emoji {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}
.ai-mode-card:hover .ai-mode-card-emoji { transform: scale(1.12) rotate(-4deg); }
.ai-mode-card.active .ai-mode-card-emoji { transform: scale(1.06); }

.ai-mode-card-title {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.005em;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}
.ai-mode-card-subtitle {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0;
  margin-top: 2px;
}
.ai-mode-card.active .ai-mode-card-subtitle { color: var(--gold-dark, #a8881f); }

/* ⓘ info button — kanan tengah, kecil & subtle */
.ai-mode-info-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  z-index: 2;
}
.ai-mode-info-btn:hover {
  background: var(--gold);
  color: var(--navy-900);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.15);
}
.ai-mode-info-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Info panel — muncul di bawah grid saat klik ⓘ */
.ai-mode-info-panel {
  position: relative;
  margin-top: 14px;
  padding: 16px 44px 16px 18px;
  background: linear-gradient(135deg, #fffaeb 0%, var(--cream, #fbf6e7) 100%);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-left: 4px solid var(--gold, #c9a961);
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--navy-800, #0a1530);
  animation: aiInfoPanelIn 0.25s cubic-bezier(.4, 0, .2, 1);
}
.ai-mode-info-content { margin: 0; }
.ai-mode-info-content strong { color: var(--gold-dark, #a8881f); }
.ai-mode-info-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--gray-500);
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-mode-info-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--navy-900);
}
@keyframes aiInfoPanelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Responsive: 4 breakpoint === */

/* Tablet 701-900px — 3 kolom tetap, sedikit lebih tight */
@media (max-width: 900px) {
  .ai-mode-picker-head h2 { font-size: 1.25rem; }
  .ai-mode-cards { gap: 8px; }
  .ai-mode-card {
    padding: 10px 32px 10px 11px;
    gap: 9px;
  }
  .ai-mode-card-emoji { font-size: 1.35rem; }
  .ai-mode-card-title { font-size: .77rem; }
  .ai-mode-card-subtitle { font-size: .65rem; }
}

/* Mobile besar 401-700px — 1 kolom (stack vertikal), tetap horizontal di dalam kartu */
@media (max-width: 700px) {
  .ai-mode-picker-head h2 { font-size: 1.15rem; }
  .ai-mode-picker-head p { font-size: .8rem; }
  .ai-mode-cards {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .ai-mode-card {
    padding: 12px 36px 12px 14px;
    gap: 12px;
  }
  .ai-mode-card-emoji { font-size: 1.55rem; }
  .ai-mode-card-title { font-size: .9rem; }
  .ai-mode-card-subtitle { font-size: .72rem; }
  .ai-mode-info-panel { padding: 14px 40px 14px 14px; font-size: .85rem; }
}

/* Mobile kecil ≤400px — compact tight */
@media (max-width: 400px) {
  .ai-mode-picker-head h2 { font-size: 1.05rem; }
  .ai-mode-card { padding: 10px 34px 10px 12px; gap: 10px; }
  .ai-mode-card-emoji { font-size: 1.4rem; }
  .ai-mode-card-title { font-size: .85rem; }
  .ai-mode-card-subtitle { font-size: .68rem; }
}

/* === Form intro header (di dalam tiap form card) === */
.ai-form-intro {
  background: linear-gradient(135deg, var(--cream, #fbf6e7) 0%, var(--white) 100%);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.ai-form-intro h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.ai-form-intro p {
  font-size: .82rem;
  color: var(--gray-700, #4b5563);
  margin: 0;
  line-height: 1.5;
}

/* === Font picker (brand mode + brand kit page) === */
.ai-font-grid,
.bk-font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}
.ai-font-pill,
.bk-font-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.ai-font-pill input,
.bk-font-pill input { display: none; }
.ai-font-pill > span:first-of-type,
.bk-font-pill .bk-font-preview,
.bk-font-pill > span:first-of-type {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.2;
}
.ai-font-pill > small,
.bk-font-pill > small {
  font-size: .68rem;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ai-font-pill:hover,
.bk-font-pill:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
}
.ai-font-pill.active,
.bk-font-pill.active {
  background: linear-gradient(135deg, var(--gold-tint), var(--gold-soft));
  border-color: var(--gold);
  border-width: 2px;
  padding: 9px 13px;
  box-shadow: 0 4px 12px rgba(201,169,97,.18);
}
.ai-font-inherit > span:first-of-type {
  font-family: var(--font-display) !important;
}

/* === Onboarding banner === */
.onboarding-banner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border: 1px solid rgba(201,169,97,.3);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.onboarding-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ob-step {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(201,169,97,.4);
}
.ob-content { flex: 1; }
.ob-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.ob-content p { color: rgba(255,255,255,.75); margin-bottom: 14px; font-size: .9rem; }
.ob-steps { display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
.ob-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  font-size: .88rem;
  color: rgba(255,255,255,.85);
}
.ob-steps li.done {
  background: rgba(22,163,74,.15);
  border-color: rgba(22,163,74,.3);
}
.ob-steps li strong { color: var(--white); }
.ob-steps li a {
  margin-left: auto;
  font-size: .82rem;
  white-space: nowrap;
}

/* === Edit Brand Kit prominent button === */
.ai-edit-kit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-900);
  border: 1.5px solid var(--gold-dark);
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(201,169,97,.35);
}
.ai-edit-kit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201,169,97,.5);
  filter: brightness(1.05);
}

/* === Reference images upload === */
.ai-ref-section {
  background: var(--gray-50);
  border: 1px dashed var(--gray-200);
  border-radius: 10px;
  padding: 14px;
}
.ai-ref-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.ai-ref-card {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
}
.ai-ref-card img { width: 100%; height: 100%; object-fit: cover; }
.ai-ref-remove {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--danger);
  color: white;
  border: 2px solid white;
  width: 22px; height: 22px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
  font-size: .75rem;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.ai-ref-add-btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px dashed var(--gray-300);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.ai-ref-add-btn:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--gold-dark);
}

/* ============================================================
   Add button modern — untuk upload OPSIONAL (foto fitur, dll).
   Single-line dashed button dengan circular ⊕ icon, hover gold tint.
   Lebih subtle dari .ai-multi-upload tapi tetap clear sebagai action.
   ============================================================ */
.ai-add-btn-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  background: var(--white);
  border: 1.5px dashed rgba(201, 169, 97, 0.4);
  border-radius: 11px;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-800, #0a1530);
  gap: 9px;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
  box-sizing: border-box;
}
.ai-add-btn-modern:hover {
  border-color: var(--gold, #c9a961);
  background: linear-gradient(135deg, #fffaeb 0%, #fbf6e7 100%);
  color: var(--gold-dark, #a8881f);
}
.ai-add-btn-modern:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.ai-add-btn-modern-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.15);
  color: var(--gold-dark, #a8881f);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.2s cubic-bezier(.34, 1.56, .64, 1);
}
.ai-add-btn-modern:hover .ai-add-btn-modern-icon {
  background: var(--gold, #c9a961);
  color: var(--navy-900, #0a1530);
  transform: rotate(90deg);
}

@media (max-width: 700px) {
  .ai-add-btn-modern { padding: 11px 14px; font-size: .82rem; }
  .ai-add-btn-modern-icon { width: 20px; height: 20px; font-size: 12px; }
}

/* ============================================================
   Multi-upload zone — versi prominent untuk upload WAJIB
   (foto produk utama). Big dashed drop zone dengan icon + hint.
   ============================================================ */
.ai-multi-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 130px;
  padding: 22px 18px;
  border: 2px dashed rgba(201, 169, 97, 0.45);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffbf0 0%, #fafaf7 100%);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.15s ease;
  text-align: center;
  gap: 8px;
  box-sizing: border-box;
}
.ai-multi-upload:hover,
.ai-multi-upload:focus-within {
  border-color: var(--gold, #c9a961);
  background: linear-gradient(180deg, #fff7e0 0%, #fffaeb 100%);
}
.ai-multi-upload.drag-over {
  border-color: var(--gold-dark, #a8881f);
  background: #fff3c4;
  transform: scale(1.005);
}
.ai-multi-upload-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.ai-multi-upload-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ai-multi-upload-text strong {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: .98rem;
  font-weight: 700;
  color: var(--navy-900, #0a1530);
  letter-spacing: -0.005em;
}
.ai-multi-upload-text small {
  font-size: .78rem;
  color: var(--gray-600);
  line-height: 1.4;
}
.ai-multi-upload-text small .gold {
  color: var(--gold-dark, #a8881f);
  font-weight: 600;
}

@media (max-width: 700px) {
  .ai-multi-upload { min-height: 110px; padding: 18px 14px; }
  .ai-multi-upload-icon { font-size: 2rem; }
  .ai-multi-upload-text strong { font-size: .92rem; }
  .ai-multi-upload-text small { font-size: .74rem; }
}

/* === Brand Kit color extras (page) === */
.bk-color-extra label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bk-remove-btn {
  width: 22px; height: 22px;
  background: rgba(220,38,38,.1);
  color: var(--danger);
  border: 1px solid rgba(220,38,38,.3);
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: .8rem;
  line-height: 1;
  padding: 0;
  transition: all .15s;
}
.bk-remove-btn:hover {
  background: var(--danger);
  color: white;
}

/* === Brand Kit summary card (di atas form Brand Mode) === */
.ai-brand-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border: 1px solid rgba(201,169,97,.25);
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--white);
}
.ai-brand-summary > div:nth-child(2) > div:first-child { color: var(--gold-light) !important; }
.ai-brand-logo-thumb {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--gold);
}
.ai-brand-logo-thumb img {
  width: 100%; height: 100%; object-fit: contain;
}
.ai-brand-logo-thumb span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--navy-900);
}
.ai-brand-colors {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.ai-brand-colors > span {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.3);
  display: inline-block;
}

/* === No brand kit prompt === */
.ai-no-kit {
  text-align: center;
  padding: 40px 20px;
}
.ai-no-kit h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy-900);
  margin: 12px 0 8px;
}
.ai-no-kit p {
  color: var(--gray-600);
  max-width: 360px;
  margin: 0 auto;
}

/* === Aspect ratio grid (6 options) === */
.ai-aspect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
@media (max-width: 480px) { .ai-aspect-grid { grid-template-columns: repeat(2, 1fr); } }
.ai-aspect-pill input { display: none; }
.ai-aspect-pill > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-700);
  cursor: pointer;
  transition: all var(--transition);
}
.ai-aspect-pill > span small { font-size: .68rem; color: var(--gray-400); font-weight: 500; }
.ai-aspect-pill > span:hover { border-color: var(--gold); background: var(--gold-tint); }
.ai-aspect-pill.active > span {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  border-color: var(--gold-dark);
  box-shadow: 0 2px 8px rgba(201,169,97,.3);
}
.ai-aspect-pill.active > span small { color: rgba(6,13,28,.7); }

/* === Logo position grid === */
.ai-pos-grid,
.bk-logo-position-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
@media (max-width: 600px) {
  .ai-pos-grid,
  .bk-logo-position-grid { grid-template-columns: repeat(3, 1fr); }
}
.ai-pos-pill,
.bk-pos-pill {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  background: var(--white);
  transition: all var(--transition);
}
.ai-pos-pill input,
.bk-pos-pill input { display: none; }
.ai-pos-pill .ai-pos-icon,
.bk-pos-pill span:first-of-type { font-size: 1.2rem; }
.ai-pos-pill small,
.bk-pos-pill span:nth-of-type(2),
.bk-pos-pill > span:last-child {
  font-size: .68rem;
  font-weight: 600;
  color: var(--gray-600);
  text-align: center;
}
.ai-pos-pill:hover,
.bk-pos-pill:hover { border-color: var(--gold); background: var(--gold-tint); }
.ai-pos-pill.active,
.bk-pos-pill.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold-dark);
  color: var(--navy-900);
  box-shadow: 0 2px 8px rgba(201,169,97,.3);
}
.ai-pos-pill.active small,
.bk-pos-pill.active span:nth-of-type(2),
.bk-pos-pill.active > span:last-child { color: rgba(6,13,28,.75); }

/* === Selling points count === */
.ai-sp-count {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-sp-pill input { display: none; }
.ai-sp-pill > span {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  background: var(--white);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-700);
  cursor: pointer;
  transition: all var(--transition);
}
.ai-sp-pill:hover > span { border-color: var(--gold); background: var(--gold-tint); }
.ai-sp-pill.active > span {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  border-color: var(--gold-dark);
}

/* === Product image upload === */
.ai-product-upload {
  position: relative;
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  background: var(--gray-50);
  cursor: pointer;
  transition: all var(--transition);
  min-height: 200px;
  overflow: hidden;
}
.ai-product-upload:hover { border-color: var(--gold); background: var(--gold-tint); }
.ai-product-upload.drag-over {
  border-color: var(--gold-dark);
  background: var(--gold-soft);
  border-style: solid;
}
.ai-product-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 36px 20px;
  text-align: center;
}
.ai-product-ph strong { color: var(--navy-900); font-size: .92rem; }
.ai-product-ph small { color: var(--gray-600); font-size: .76rem; }
.ai-product-preview {
  position: relative;
  background: var(--white);
}
.ai-product-preview img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
}
.ai-product-remove {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--danger);
  color: white;
  border: 2px solid white;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* === Mode badge on history thumbnail === */
.ai-mode-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(255,255,255,.95);
  border-radius: 100px;
  padding: 4px 8px;
  font-size: .82rem;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.ai-history-img { position: relative; }

/* === Brand Kit Manager UI === */
.bk-field { display: flex; flex-direction: column; gap: 6px; }
.bk-field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--navy-900);
}
.bk-field input[type="text"],
.bk-field input[type="email"],
.bk-field input[type="url"],
.bk-field input[type="number"],
.bk-field input[type="password"],
.bk-field input[type="tel"],
.bk-field input[type="search"],
.bk-field input[type="date"],
.bk-field select,
.bk-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--navy-900);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.bk-field input:focus,
.bk-field select:focus,
.bk-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-tint);
}
.bk-field input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px dashed var(--gray-200);
  border-radius: 10px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: .85rem;
  cursor: pointer;
}
.bk-field input[type="file"]:hover { border-color: var(--gold); background: var(--gold-tint); }
.bk-field small { color: var(--gray-600); font-size: .76rem; line-height: 1.5; }

/* === Section / form grid helpers untuk account pages === */
.acct-form-grid {
  display: grid;
  gap: 14px;
}
.acct-form-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) {
  .acct-form-grid.two { grid-template-columns: 1fr; }
}
.acct-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
  flex-wrap: wrap;
}
.acct-card-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.acct-card-head-sub {
  font-size: .78rem;
  color: var(--gray-500);
}
.acct-help-banner {
  background: linear-gradient(135deg, #fbf6e7 0%, #fff 100%);
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: .88rem;
  color: var(--navy-800);
  line-height: 1.6;
}
.acct-help-banner-icon { font-size: 1.4rem; flex-shrink: 0; }

/* === Multi-image upload grid (untuk /account/products/) === */
.mp-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 480px) {
  .mp-upload-grid { grid-template-columns: repeat(2, 1fr); }
}
.mp-upload-slot {
  aspect-ratio: 1;
  border: 2px dashed var(--gray-200);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
}
.mp-upload-slot:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
  transform: scale(1.02);
}
.mp-upload-slot input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}
.mp-upload-slot-icon { font-size: 1.8rem; color: var(--gray-400); }
.mp-upload-slot:hover .mp-upload-slot-icon { color: var(--gold-dark); }
.mp-upload-slot-text {
  font-size: .72rem;
  color: var(--gray-600);
  font-weight: 600;
  text-align: center;
}
.mp-upload-slot-preview { position: absolute; inset: 0; display: none; }
.mp-upload-slot-preview img { width: 100%; height: 100%; object-fit: cover; }
.mp-upload-slot-del {
  position: absolute;
  top: 6px; right: 6px;
  background: #c0392b;
  color: white;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: .8rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid white;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.mp-upload-slot.has-image .mp-upload-slot-preview { display: block; }
.mp-upload-slot.has-image .mp-upload-slot-del { display: flex; }
.mp-upload-slot.has-image .mp-upload-slot-icon,
.mp-upload-slot.has-image .mp-upload-slot-text { display: none; }

.mp-upload-slot:first-child:not(.logo-slot)::after {
  content: 'UTAMA';
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: .58rem;
  font-weight: 800;
  text-align: center;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .12em;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(201,169,97,.4);
  pointer-events: none;
}

/* === Price input with auto-format === */
.mp-price-input {
  position: relative;
}
.mp-price-input input {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding-left: 42px !important;
}
.mp-price-input::before {
  content: 'Rp';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--gold-dark);
  font-size: .95rem;
  pointer-events: none;
  z-index: 2;
}
.mp-price-input.has-error input {
  border-color: #c0392b !important;
  background: #fef2f2;
  animation: shake .25s;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.mp-price-error {
  display: none;
  margin-top: 6px;
  color: #c0392b;
  font-size: .78rem;
  font-weight: 600;
}
.mp-price-input.has-error + .mp-price-error { display: block; }
.mp-price-preview {
  margin-top: 6px;
  font-size: .78rem;
  color: var(--gray-600);
}
.mp-price-preview strong { color: var(--gold-dark); font-family: 'Outfit', sans-serif; }

.bk-logo-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.bk-logo-preview {
  width: 140px; height: 140px;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.bk-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.bk-logo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--gray-400);
  font-size: .78rem;
}
.bk-logo-actions { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 200px; }

.bk-colors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.bk-color-field { display: flex; flex-direction: column; gap: 6px; }
.bk-color-field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--navy-900);
}
.bk-color-field small { color: var(--gray-600); font-size: .74rem; }
.bk-color-input {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  padding: 4px;
  background: var(--white);
}
.bk-color-input input[type="color"] {
  width: 48px; height: 48px;
  border: none;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  background: transparent;
}
.bk-color-input input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-family: ui-monospace, monospace;
  font-size: .9rem;
  text-transform: uppercase;
  color: var(--navy-900);
  padding: 8px 4px;
}

.bk-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bk-pill { cursor: pointer; }
.bk-pill input { display: none; }
.bk-pill > span {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  background: var(--white);
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy-700);
  transition: all var(--transition);
}
.bk-pill:hover > span { border-color: var(--gold); background: var(--gold-tint); }
.bk-pill.active > span {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  border-color: var(--gold-dark);
}

/* === History === */
.ai-history-section { margin-top: 48px; }
.ai-history-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.ai-history-head h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.02em;
}
.ai-history-meta {
  font-size: .8rem;
  color: var(--gray-600);
  background: var(--gold-tint);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(201,169,97,.3);
  font-weight: 600;
}
.ai-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.ai-history-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.ai-history-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.ai-history-img {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}
.ai-history-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ai-history-card:hover .ai-history-img img { transform: scale(1.05); }
.ai-history-loading,
.ai-history-failed {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  font-size: 2rem;
  color: var(--gray-400);
}
.ai-history-info { padding: 10px 12px; }
.ai-history-prompt {
  font-size: .82rem;
  color: var(--navy-900);
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.ai-history-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .7rem;
}
.ai-history-date { color: var(--gray-400); }
.ai-history-status {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ai-history-status.ai-status-done       { background: #f0fdf4; color: #166534; }
.ai-history-status.ai-status-processing,
.ai-history-status.ai-status-queued     { background: var(--gold-tint); color: var(--gold-dark); }

/* ============================================================
   Download button — modern ghost outline dengan micro-interaction
   (icon "drop" animation saat hover, subtle bg fade-in)
   ============================================================ */
.ai-history-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  width: 100%;
  padding: 9px 14px;

  background: rgba(251, 246, 231, 0.4);
  color: var(--navy-800, #0a1530);
  border: 1px solid rgba(201, 169, 97, 0.28);
  border-radius: 10px;

  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;

  cursor: pointer;
  transition:
    background-color .2s cubic-bezier(.4, 0, .2, 1),
    border-color    .2s cubic-bezier(.4, 0, .2, 1),
    color           .2s cubic-bezier(.4, 0, .2, 1),
    box-shadow      .2s cubic-bezier(.4, 0, .2, 1),
    transform       .12s ease-out;
}
.ai-history-dl-btn svg {
  width: 14px;
  height: 14px;
  color: var(--gold-dark, #a8881f);
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.ai-history-dl-btn:hover {
  background: linear-gradient(135deg, #fffaeb 0%, #fbf6e7 100%);
  border-color: rgba(201, 169, 97, 0.55);
  color: var(--navy-900, #060d1c);
  box-shadow: 0 2px 10px rgba(201, 169, 97, 0.12), 0 0 0 1px rgba(201, 169, 97, 0.08);
}
.ai-history-dl-btn:hover svg {
  transform: translateY(2px);
  color: var(--gold-dark, #a8881f);
}
.ai-history-dl-btn:active {
  transform: scale(0.985);
  box-shadow: 0 1px 4px rgba(201, 169, 97, 0.15);
}
.ai-history-dl-btn:focus-visible {
  outline: 2px solid var(--gold, #c9a961);
  outline-offset: 2px;
}

/* Multi-image variant — compact buttons di satu row */
.ai-history-dl-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.ai-history-dl-btn-multi {
  flex: 1;
  margin-top: 0;
  padding: 7px 4px;
  font-size: .73rem;
  gap: 4px;
}
.ai-history-dl-btn-multi svg {
  width: 12px;
  height: 12px;
}

/* ============================================================
   Action row: download (flex 1) + delete (icon-only) di history card
   ============================================================ */
.ai-history-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  align-items: stretch;
}
.ai-history-actions .ai-history-dl-btn {
  flex: 1;
  margin-top: 0;
}
.ai-history-actions .ai-history-dl-row {
  flex: 1;
  margin-top: 0;
}

/* Delete button — icon-only, danger color, subtle until hover */
.ai-history-del-btn {
  flex-shrink: 0;
  width: 38px;
  height: auto;
  min-height: 38px;
  padding: 0;
  background: rgba(254, 242, 242, 0.55);
  color: var(--danger, #dc2626);
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease-out;
}
.ai-history-del-btn svg {
  width: 15px;
  height: 15px;
}
.ai-history-del-btn:hover {
  background: var(--danger, #dc2626);
  color: white;
  border-color: var(--danger, #dc2626);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.18);
}
.ai-history-del-btn:active {
  transform: scale(0.96);
}
.ai-history-del-btn:focus-visible {
  outline: 2px solid var(--danger, #dc2626);
  outline-offset: 2px;
}
.ai-history-del-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}
.ai-history-del-btn:disabled:hover {
  background: rgba(254, 242, 242, 0.55);
  color: var(--danger, #dc2626);
  border-color: rgba(220, 38, 38, 0.22);
  transform: none;
  box-shadow: none;
}

/* Mobile: tetap dalam row, delete button slightly lebih kecil */
@media (max-width: 600px) {
  .ai-history-del-btn { width: 34px; min-height: 34px; }
  .ai-history-del-btn svg { width: 13px; height: 13px; }
}
.ai-history-status.ai-status-failed     { background: #fef2f2; color: #991b1b; }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-section {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  background:
    radial-gradient(ellipse at 50% 0%, var(--gold-tint), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.pricing-alert {
  max-width: 700px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,169,97,.25);
  font-size: .95rem;
}
.pricing-alert strong { color: var(--gold-light); display: block; margin-bottom: 2px; font-size: 1rem; }
.pricing-alert > span:first-child { font-size: 1.6rem; }

.pricing-head { text-align: center; margin-bottom: 48px; }
.pricing-head h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.02em;
  margin: 14px 0 12px;
}
.pricing-head p { color: var(--gray-600); font-size: 1rem; max-width: 580px; margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.pricing-card.pricing-pro {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #fdfcf6 0%, var(--white) 100%);
  box-shadow: 0 16px 40px rgba(201,169,97,.18);
  transform: translateY(-4px);
}
.pricing-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.pricing-tag-best {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  box-shadow: 0 4px 12px rgba(201,169,97,.4);
}
.pricing-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.price-currency { font-size: 1.1rem; color: var(--gray-600); font-weight: 600; }
.price-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--navy-900);
  letter-spacing: -.03em;
  line-height: 1;
}
.price-unit { font-size: .88rem; color: var(--gray-600); }

.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-features li {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.5;
  padding-left: 0;
}
.pricing-features li.muted { color: var(--gray-400); font-size: .82rem; }
.pricing-features strong { color: var(--navy-900); }

.pricing-cta { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 28px; font-size: .95rem; }

/* FAQ singkat */
.pricing-faq { max-width: 760px; margin: 64px auto 0; }
.pricing-faq h3 {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy-900);
  margin-bottom: 24px;
}
.pricing-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) { .pricing-faq-grid { grid-template-columns: 1fr; } }
.pricing-faq-grid > div {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.pricing-faq-grid strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: .92rem;
}
.pricing-faq-grid p { color: var(--gray-600); font-size: .85rem; line-height: 1.55; }

/* ============================================================
   PAYMENT RETURN PAGE
   ============================================================ */
.payment-status { text-align: center; padding: 16px 0; }
.payment-status h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
  margin: 12px 0 8px;
  letter-spacing: -.02em;
}
.payment-status p { color: var(--gray-600); margin-bottom: 8px; line-height: 1.6; }
.ps-icon {
  font-size: 4rem;
  display: inline-block;
  width: 96px; height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}
.payment-success .ps-icon { background: #f0fdf4; }
.payment-pending .ps-icon { background: var(--gold-tint); animation: spin 3s linear infinite; }
.payment-failed  .ps-icon { background: #fef2f2; }
.payment-unknown .ps-icon { background: var(--gray-100); }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============================================================
   ACCOUNT — Subscription page
   ============================================================ */
.sub-status {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--cream);
}
.sub-status-active {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfccb 100%);
  border-color: rgba(22,163,74,.3);
}
.sub-status-inactive {
  background: var(--gray-50);
}
.sub-status-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--success);
  color: white;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.sub-status-badge-off {
  background: var(--gray-400);
}
.sub-status h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.sub-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: var(--white);
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.5);
}
@media (max-width: 600px) { .sub-meta { grid-template-columns: 1fr; } }
.sub-meta > div { display: flex; flex-direction: column; gap: 2px; }
.sub-meta span { font-size: .72rem; color: var(--gray-600); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sub-meta strong { font-family: var(--font-display); color: var(--navy-900); font-size: .95rem; }

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.history-table thead th {
  text-align: left;
  padding: 8px 12px;
  background: var(--cream);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}
.history-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.history-table tbody tr:last-child td { border-bottom: none; }
.history-table strong { color: var(--navy-900); }

.sub-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid;
}
.sub-pill-active   { background: #f0fdf4; color: #166534; border-color: rgba(22,163,74,.3); }
.sub-pill-paid     { background: #f0fdf4; color: #166534; border-color: rgba(22,163,74,.3); }
.sub-pill-pending  { background: var(--gold-tint); color: var(--gold-dark); border-color: rgba(201,169,97,.3); }
.sub-pill-expired  { background: var(--gray-100); color: var(--gray-600); border-color: var(--gray-200); }
.sub-pill-canceled,
.sub-pill-failed,
.sub-pill-refunded { background: #fef2f2; color: #991b1b; border-color: rgba(220,38,38,.3); }

/* ============================================================
   AUTH (Login) PAGE & MEMBER NAV BUTTON
   ============================================================ */
.nav-auth { margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--gray-200); }

.btn-login-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-900);
  border-radius: 100px;
  font-weight: 700;
  font-size: .85rem;
  font-family: var(--font-display);
  letter-spacing: -.005em;
  transition: all var(--transition);
  border: 1.5px solid var(--gold-dark);
}
.btn-login-nav:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.nav-member-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 100px;
  background: var(--gold-tint);
  border: 1.5px solid rgba(201,169,97,.35);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-900);
  transition: all var(--transition);
}
.nav-member-btn:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(10,21,48,.15);
}
.nav-avatar-fallback {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  font-weight: 800;
  font-size: .75rem;
  border: 2px solid var(--white);
}
.nav-member-name { line-height: 1; }
.nav-member .dropdown-menu { min-width: 220px; }

/* === Login page === */
.auth-section {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 80px;
  min-height: calc(100vh - var(--nav-h));
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,169,97,.10), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 20px 20px 0 0;
}
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 28px;
}
.auth-brand .logo-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.auth-sub {
  color: var(--gray-600);
  font-size: .92rem;
  margin-bottom: 28px;
}
.auth-google-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.auth-divider {
  position: relative;
  text-align: center;
  margin: 16px 0 24px;
  color: var(--gray-400);
  font-size: .78rem;
  font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 28px);
  height: 1px;
  background: var(--gray-200);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-divider span { background: var(--white); padding: 0 14px; position: relative; }
.auth-benefits {
  text-align: left;
  background: var(--gold-tint);
  border: 1px solid rgba(201,169,97,.25);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.auth-benefits h3 {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
  letter-spacing: -.005em;
}
.auth-benefits ul { display: flex; flex-direction: column; gap: 8px; }
.auth-benefits li {
  font-size: .85rem;
  color: var(--gray-700);
  line-height: 1.5;
}
.auth-benefits strong { color: var(--navy-900); }
.auth-tos {
  font-size: .72rem;
  color: var(--gray-400);
  line-height: 1.5;
}
.auth-tos a { color: var(--gold-dark); font-weight: 600; }

/* ============================================================
   ACCOUNT (Member Dashboard)
   ============================================================ */
.account-section {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 60px;
  background: var(--cream);
  min-height: calc(100vh - var(--nav-h));
}
.account-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
/* Cegah grid item membesar mengikuti min-content children (mis. tabel min-width:560px
   di history-table). Tanpa ini, grid item default min-width:auto, sehingga child
   yang lebar memaksa kolom lebih lebar dari track 1fr → overflow viewport mobile. */
.account-grid > * { min-width: 0; }
.account-main    { min-width: 0; }
.account-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}
.account-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.account-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.account-avatar-fallback {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
}
.account-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy-900); }
.account-email { font-size: .78rem; color: var(--gray-600); }

.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}
.account-nav a:hover { background: var(--gold-tint); color: var(--gold-dark); }
.account-nav a.active {
  background: var(--gold-tint);
  color: var(--gold-dark);
  font-weight: 700;
  border-left: 3px solid var(--gold);
  padding-left: 11px;
}
.account-nav a.acct-cta {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy-900) !important;
  font-weight: 700;
  text-align: center;
  border-left: 0 !important;
  padding-left: 14px !important;
}
.account-nav a.acct-cta:hover { filter: brightness(1.05); }
.account-nav a.acct-logout { color: #dc2626; }
.account-nav a.acct-logout:hover { background: rgba(220,38,38,.08); }

.account-main h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.account-greeting { color: var(--gray-600); margin-bottom: 24px; }

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.acct-stat {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: all var(--transition);
}
.acct-stat:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 16px rgba(201,169,97,.12);
}
.acct-stat-icon {
  width: 44px; height: 44px;
  background: var(--gold-tint);
  border: 1px solid rgba(201,169,97,.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.acct-stat-label {
  font-size: .76rem;
  color: var(--gray-600);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.acct-stat-value {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.1;
  margin-bottom: 4px;
}
.acct-stat-sub { font-size: .76rem; color: var(--gray-600); }

.acct-upsell {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--white);
  border: 1px solid rgba(201,169,97,.2);
  position: relative;
  overflow: hidden;
}
.acct-upsell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.acct-upsell h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}
.acct-upsell p { color: rgba(255,255,255,.7); font-size: .88rem; }

.acct-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.acct-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--navy-900);
}
.acct-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.acct-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--navy-900);
  font-size: .88rem;
  transition: all var(--transition);
}
.acct-quick-link:hover {
  border-color: var(--gold);
  background: var(--gold-tint);
  color: var(--gold-dark);
  transform: translateX(4px);
}
.acct-quick-link span:first-child { font-size: 1.2rem; }

/* Mobile collapsible toggle — hidden di desktop */
.account-mobile-toggle { display: none; }
.account-sidebar-backdrop { display: none; }

/* =========================================================
   Account page layout helpers — added to fix mobile rendering
   on /account/credits.php, /account/partner/, /account/stats.php
   (Sebelumnya inline style hardcoded grid-template-columns
    sehingga override media query → tidak responsive.)
   ========================================================= */

/* Stats page — 4-col grid di desktop (stats.php) */
.account-stats-4 { grid-template-columns: repeat(4, 1fr); }

/* Stats page — 2-col secondary section (Style Favorit / Aspect Favorit) */
.stats-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

/* Credits page — wrapper untuk history-table supaya bisa scroll horizontal di mobile
   tanpa overflow seluruh halaman.
   PENTING: min-width:0 + max-width:100% mencegah wrap menarik parent ikut lebar
   karena child <table min-width:560px>. overflow-x:auto saja TIDAK cukup di grid item. */
.history-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
}
.history-table-wrap > .history-table { min-width: 560px; }

/* Partner page — story image card layout */
.story-card-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: flex-start;
}
.story-preview-wrap {
  width: 324px;
  height: 576px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(10,21,48,.15);
  background: #000;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; gap: 16px; }
  .account-stats { grid-template-columns: 1fr; }

  /* === Mobile adaptations untuk halaman account === */
  /* stats.php — 4 stat cards → 2 kolom di tablet, 1 kolom di phone */
  .account-stats-4 { grid-template-columns: repeat(2, 1fr); }
  /* stats.php — 2-col secondary → stack jadi 1 kolom */
  .stats-two-col   { grid-template-columns: 1fr; gap: 14px; }

  /* partner/index.php — story card grid stack vertical */
  .story-card-grid { grid-template-columns: 1fr; gap: 18px; }
  /* Shrink story preview supaya muat viewport mobile */
  .story-preview-wrap {
    width: 240px;
    height: 427px;       /* 240 × 16/9 ratio */
    margin: 0 auto;
  }
  /* Scale story-card content 1080×1920 sesuai shrunk wrap (240/1080 ≈ 0.222) */
  .story-preview-wrap > #story-card {
    transform: scale(0.222) !important;
    transform-origin: top left;
  }

  /* credits.php — topup cards lebih kompak di tablet/phone */
  .topup-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 520px) {
  /* Phone kecil — 4 stat cards stack 1 kolom (biar tidak terlalu mungil) */
  .account-stats-4 { grid-template-columns: 1fr; }
  /* Topup grid juga stack di phone kecil */
  .topup-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {

  /* ============================================================
     Sidebar collapsible (Stripe-style sticky dropdown)
     ============================================================ */
  .account-sidebar {
    position: sticky;
    top: var(--nav-h, 60px);
    z-index: 50;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 14px 14px 0;
    box-shadow: 0 2px 8px rgba(10,21,48,.04);
    overflow: hidden;
    transition: box-shadow .25s;
  }
  .account-sidebar.is-open {
    box-shadow: 0 12px 32px rgba(10,21,48,.12);
  }

  /* User card jadi compact horizontal */
  .account-user {
    padding: 0 0 12px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 0;
  }
  .account-user .account-avatar,
  .account-user .account-avatar-fallback { width: 36px; height: 36px; font-size: .9rem; }
  .account-name { font-size: .92rem; }
  .account-email { font-size: .72rem; }

  /* Toggle button = pill yang nampilkan current page */
  .account-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 4px;
    background: transparent;
    border: none;
    color: var(--navy-800);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    text-align: left;
    transition: opacity .15s;
  }
  .account-mobile-toggle:hover { opacity: .8; }
  .account-mobile-toggle .amt-icon { font-size: 1.1rem; flex-shrink: 0; }
  .account-mobile-toggle .amt-label { flex: 1; color: var(--gold-dark); }
  .account-mobile-toggle .amt-chevron {
    font-size: 1rem;
    color: var(--gray-500);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
  }
  .account-sidebar.is-open .amt-chevron { transform: rotate(180deg); }

  /* Nav list — hidden by default, slide-down saat is-open */
  .account-sidebar .account-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .2s;
    opacity: 0;
    padding: 0 !important;
    margin: 0 !important;
    gap: 2px;
  }
  .account-sidebar.is-open .account-nav {
    max-height: 800px;       /* enough untuk 10 item */
    opacity: 1;
    padding: 8px 0 14px !important;
  }

  .account-sidebar .account-nav a {
    padding: 11px 12px;
    font-size: .9rem;
    border-radius: 8px;
  }

  /* Backdrop saat open (klik = close) */
  .account-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,21,48,.35);
    z-index: 49;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
  }
  .account-sidebar-backdrop.is-show {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================================
   Sidebar JS toggle (lightweight, no library needed)
   Auto-loaded via inline script di footer atau bisa di main.js
   ============================================================ */

/* ============================================================
   PRODUCTS PAGE — Marketplace UI (search, filter, sort)
   ============================================================ */
.products-search-bar {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  border-bottom: 1px solid rgba(201,169,97,.18);
  padding-block: 28px;
}
.products-search-form { width: 100%; }
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 100px;
  overflow: hidden;
  transition: all var(--transition);
  max-width: 720px;
  margin: 0 auto;
}
.search-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-tint);
}
.search-icon {
  padding-left: 22px;
  font-size: 1.05rem;
  color: var(--gray-400);
  flex-shrink: 0;
}
.search-input-wrap input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font-size: .95rem;
  color: var(--navy-900);
  background: transparent;
  font-family: var(--font-body);
}
.search-input-wrap input[type="search"]::placeholder { color: var(--gray-400); }
.search-clear {
  font-size: 1.2rem;
  color: var(--gray-400);
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 6px;
  transition: all var(--transition);
}
.search-clear:hover { background: var(--gray-100); color: var(--navy-700); }
.search-submit {
  border-radius: 0 100px 100px 0 !important;
  padding: 12px 28px !important;
  margin: 3px;
  border: none !important;
}

/* ===== Layout: filter sidebar + main grid ===== */
.products-section { padding-block: 32px clamp(40px, 6vw, 80px) !important; }
.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px 22px 28px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
}
.filter-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.filter-sidebar-head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -.02em;
}
.filter-reset {
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-dark);
  padding: 4px 12px;
  border: 1px solid rgba(201,169,97,.3);
  border-radius: 100px;
  transition: all var(--transition);
}
.filter-reset:hover { background: var(--gold-tint); }

.filter-group { padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 12px;
}

.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: .85rem;
  color: var(--gray-700);
  transition: all var(--transition);
}
.filter-list a:hover {
  background: var(--gold-tint);
  color: var(--gold-dark);
}
.filter-list a.active {
  background: var(--gold-tint);
  color: var(--gold-dark);
  font-weight: 600;
  border-left: 3px solid var(--gold);
  padding-left: 7px;
}
.filter-count {
  font-size: .72rem;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 1px 8px;
  border-radius: 100px;
  font-weight: 600;
}
.filter-list a.active .filter-count {
  background: var(--gold);
  color: var(--navy-900);
}

/* Marketplace links with brand color */
.mp-link.mp-shopee:hover, .mp-link.mp-shopee.active   { background: rgba(238,77,45,.08); color: var(--shopee); border-left-color: var(--shopee); }
.mp-link.mp-toped:hover,  .mp-link.mp-toped.active    { background: rgba(3,172,14,.08);  color: var(--tokopedia); border-left-color: var(--tokopedia); }
.mp-link.mp-lazada:hover, .mp-link.mp-lazada.active   { background: rgba(26,13,171,.08); color: var(--lazada); border-left-color: var(--lazada); }
.mp-link.mp-tiktok:hover, .mp-link.mp-tiktok.active   { background: rgba(0,0,0,.06);     color: var(--tiktok); border-left-color: var(--tiktok); }

/* Price range */
.price-range-form { margin-bottom: 12px; }
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-range-inputs input {
  flex: 1;
  padding: 8px 10px;
  border: 1.5px solid var(--gray-200);
  border-radius: 6px;
  font-size: .82rem;
  font-family: var(--font-body);
  color: var(--navy-900);
  width: 0;
  min-width: 0;
}
.price-range-inputs input:focus {
  outline: none;
  border-color: var(--gold);
}
.price-range-inputs span { color: var(--gray-400); font-weight: 600; }
.price-shortcut { display: flex; flex-wrap: wrap; gap: 6px; }
.price-chip {
  padding: 4px 10px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  transition: all var(--transition);
}
.price-chip:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  background: var(--gold-tint);
}

/* Filter checkbox */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  font-size: .88rem;
  color: var(--navy-700);
  font-weight: 500;
  transition: background var(--transition);
}
.filter-checkbox:hover { background: var(--gold-tint); }
.filter-checkbox input { accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer; }

/* ===== Products main toolbar ===== */
.products-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}
.result-count {
  font-size: .88rem;
  color: var(--gray-700);
}
.result-count strong { color: var(--navy-900); font-weight: 700; }
.result-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-tint);
  color: var(--gold-dark);
  border: 1px solid rgba(201,169,97,.3);
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  margin-left: 6px;
}
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
}
.sort-wrap label { font-weight: 600; color: var(--navy-700); }
.sort-wrap select {
  padding: 8px 32px 8px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: .85rem;
  background-color: var(--white);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231f2233' d='M6 8L0 2l1.5-1.5L6 5l4.5-4.5L12 2z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--navy-900);
  font-weight: 600;
  transition: border-color var(--transition);
}
.sort-wrap select:hover { border-color: var(--gold); }

/* ===== Product card brand label ===== */
.product-brand {
  font-size: .68rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: -2px;
}

/* ===== Mobile filter toggle (hidden on desktop) ===== */
.filter-toggle-mobile {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: var(--navy-800);
  color: var(--gold-light);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  margin-bottom: 16px;
}
.filter-toggle-mobile:hover { background: var(--navy-700); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .products-layout { grid-template-columns: 1fr; }
  .filter-toggle-mobile { display: block; }
  .filter-sidebar {
    position: fixed;
    top: 0; right: -100%;
    bottom: 0;
    width: min(360px, 88vw);
    max-height: 100vh;
    border-radius: 0;
    z-index: 1100;
    transition: right .3s ease;
    box-shadow: -16px 0 48px rgba(10,21,48,.18);
    border-left: 2px solid var(--gold);
  }
  .filter-sidebar.open { right: 0; }
  body.no-scroll { overflow: hidden; }
}
@media (max-width: 600px) {
  .products-toolbar-top { flex-direction: column; align-items: stretch; }
  .sort-wrap { width: 100%; }
  .sort-wrap select { flex: 1; }
  .search-submit { padding: 10px 18px !important; }
}

/* ============================================================
   EMBED SHELL (tool / partner HTML di-inject inline ke page)
   ============================================================ */

/* Breadcrumb bar di atas tool content */
.embed-bar {
  margin-top: var(--nav-h);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-bottom: 1px solid rgba(201,169,97,.2);
  padding-block: 12px;
}
.embed-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.embed-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--gray-600);
  flex-wrap: wrap;
}
.embed-crumb a {
  color: var(--gold-dark);
  font-weight: 600;
  transition: color var(--transition);
}
.embed-crumb a:hover { color: var(--navy-700); }
.embed-sep { color: var(--gold); font-weight: 700; }
.embed-current {
  color: var(--navy-900);
  font-weight: 600;
}
/* Wrapper tool — Tailwind classes asli body diaplikasikan di sini. */
.embed-tool-wrap {
  width: 100%;
}
/* Pastikan min-h-screen di wrapper tidak menendang footer terlalu jauh */
.embed-tool-wrap.min-h-screen { min-height: auto; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ---- ≤ 1024px : small laptop / large tablet landscape ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-detail-grid { gap: 40px; }
  .about-grid { gap: 48px; }
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-intro { position: static; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
}

/* ---- ≤ 900px : tablet / small laptop — hamburger nav ---- */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-hamburger span { background: var(--navy-900); }

  .nav-menu {
    position: fixed;
    top: 0; right: -360px;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--nav-h) + 16px) 20px 40px;
    gap: 2px;
    z-index: 1001;
    transition: right .3s cubic-bezier(.4,0,.2,1);
    box-shadow: -16px 0 48px rgba(10,21,48,.18);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-left: 2px solid var(--gold);
  }
  .nav-menu.open { right: 0; }
  .nav-overlay.open { display: block; }

  .nav-item { width: 100%; }
  .nav-link {
    width: 100%;
    padding: 12px 14px;
    font-size: .95rem;
    border-radius: var(--radius-sm);
    justify-content: space-between;
  }

  /* Mobile dropdown — bridge & viewport positioning irrelevant; reset */
  .nav-item.has-dropdown::after { display: none; }

  /* Drawer container — pastikan tidak ada child yang overflow horizontal */
  .nav-menu { overflow-x: hidden; }
  .nav-item {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .dropdown-menu {
    position: static !important;
    inset: auto !important;        /* reset left/right/top dari desktop rule */
    transform: none !important;
    opacity: 1;
    pointer-events: all;
    background: transparent;
    border: none;
    border-top: 1px dashed rgba(201,169,97,.25);
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 4px 14px;
    margin: 4px 0 8px;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    display: none;
    transition: none;
  }
  /* Override desktop's right-edge dropdown alignment (last 2 items) */
  .nav-item:nth-last-child(-n+2) .dropdown-menu {
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  .nav-item.dropdown-open .dropdown-menu { display: block; }
  .nav-item.dropdown-open > .nav-link .dropdown-arrow { transform: rotate(180deg); }

  .dropdown-menu li {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .dropdown-menu li a {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    font-size: .85rem;
    color: var(--navy-700);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.4;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }
  .dropdown-menu li a:hover {
    background: var(--gold-tint);
    border-left-color: var(--gold);
    padding-left: 14px;
  }
}

/* ---- ≤ 768px : tablet portrait / large phone ---- */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Layouts */
  .about-grid { grid-template-columns: 1fr; }
  .about-card-stack { height: 220px; }
  .about-values { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { gap: 20px; }
  .stat-number { font-size: 1.3rem; }

  /* 2-column partners */
  .partners-grid { grid-template-columns: repeat(2, 1fr); }

  /* Tools single column */
  .tools-grid { grid-template-columns: 1fr; }

  /* Gallery thumbs slightly smaller */
  .gallery-thumb { width: 60px; height: 60px; }

  /* CTA box */
  .cta-box { padding: clamp(28px, 5vw, 48px); }
}

/* ---- ≤ 480px : standard phone ---- */
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .marketplace-buttons { flex-direction: column; align-items: stretch; }
  .faq-grid { grid-template-columns: 1fr; }
  .gallery-thumb { width: 52px; height: 52px; }
  .faq-q { padding: 16px 20px; }
  .faq-a.open { padding: 0 20px 16px; }
  .partners-logos { gap: 20px; }
  .footer-grid { gap: 32px; }
}

/* ---- ≤ 380px : small / compact phone ---- */
@media (max-width: 380px) {
  .hero-title { font-size: 2.2rem; }
  .hero-badge { font-size: .72rem; padding: 5px 12px; }
  .about-card { font-size: .82rem; padding: 12px 14px; gap: 8px; }
  .partners-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
}
