:root {
  --bg: #090b12;
  --card: rgba(255, 255, 255, 0.075);
  --card-strong: rgba(255, 255, 255, 0.12);
  --text: #f9fafb;
  --muted: #a7b0c3;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f7c85f;
  --orange: #ff8f3d;
  --danger: #ff5f6d;
  --success: #45df91;
  --shadow: 0 26px 80px rgba(0, 0, 0, .35);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(247, 200, 95, .14), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255, 143, 61, .12), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(78, 70, 229, .10), transparent 32%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(9, 11, 18, .72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.02em; }
.brand img { width: 130px; height: 44px; object-fit: contain; border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 18px; color: var(--muted); }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(247, 200, 95, .45); background: var(--card-strong); box-shadow: 0 12px 34px rgba(247, 200, 95, .08); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { border: 0; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #11131d; font-weight: 900; }
.btn-danger { border: 0; background: linear-gradient(135deg, #ff5f6d, #ff9154); color: white; font-weight: 800; }
.btn-success { border: 0; background: linear-gradient(135deg, #45df91, #4ac4ff); color: #071019; font-weight: 900; }
.btn-small { padding: 9px 12px; min-height: 36px; font-size: 13px; }
.btn-wide { width: 100%; }
.ripple {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, .55);
  animation: ripple .65s ease-out forwards;
}
@keyframes ripple { to { width: 260px; height: 260px; opacity: 0; } }

.hero { padding: 72px 0 42px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 34px; align-items: center; }
.badge {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid rgba(247, 200, 95, .28);
  background: rgba(247, 200, 95, .09);
  color: #ffe9aa;
  border-radius: 999px;
  margin-bottom: 18px;
  gap: 8px;
}
h1 { font-size: clamp(38px, 6vw, 74px); line-height: .95; letter-spacing: -.06em; margin: 0 0 18px; }
.gradient-text { background: linear-gradient(135deg, var(--gold), var(--orange)); -webkit-background-clip: text; color: transparent; }
.lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 720px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-card {
  position: relative;
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; min-height: 440px; opacity: .94; }
.hero-floating {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  background: rgba(9, 11, 18, .78);
  backdrop-filter: blur(12px);
}
.hero-floating strong { display: block; margin-bottom: 4px; }
.hero-floating span { color: var(--muted); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.section { padding: 58px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-title h2 { margin: 0; font-size: clamp(26px, 4vw, 42px); letter-spacing: -.04em; }
.section-title p { margin: 6px 0 0; color: var(--muted); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 13px 15px;
  border-radius: 16px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input:focus, .select:focus, .textarea:focus { border-color: rgba(247,200,95,.6); box-shadow: 0 0 0 4px rgba(247,200,95,.12); background: rgba(255,255,255,.1); }
.select option { background: #111827; color: white; }
.textarea { min-height: 100px; resize: vertical; }
.search-input { max-width: 380px; }

.grid { display: grid; gap: 18px; }
.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(247,200,95,.35); background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.055)); }
.product-img { height: 205px; width: 100%; object-fit: cover; background: rgba(255,255,255,.05); }
.card-body { padding: 18px; }
.kicker { color: var(--gold); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.product-name { margin: 7px 0 9px; font-size: 20px; font-weight: 900; letter-spacing: -.02em; }
.product-desc { color: var(--muted); line-height: 1.55; min-height: 74px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 16px 0; }
.price { font-size: 21px; font-weight: 1000; color: #fff; }
.stock { font-size: 13px; color: var(--muted); padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.07); }
.stock.out { color: #ffc2c8; background: rgba(255, 95, 109, .1); }

.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { padding: 22px; }
.feature-icon { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: rgba(247,200,95,.12); margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.6; }

.cart-fab {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 80;
  box-shadow: var(--shadow);
}
.chat-toggle {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 90;
  box-shadow: var(--shadow);
}
.drawer, .chat-widget {
  position: fixed;
  right: 18px;
  z-index: 100;
  width: min(430px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(13, 16, 28, .95);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px) scale(.96);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.drawer.open, .chat-widget.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.drawer { bottom: 150px; max-height: min(620px, calc(100vh - 170px)); overflow: hidden; }
.drawer-header, .chat-header { padding: 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer-body, .chat-body { padding: 16px; overflow: auto; }
.drawer-body { max-height: 420px; }
.cart-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; }
.qty-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-row button { width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--line); font-weight: 900; }
.drawer-footer { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

.chat-widget { bottom: 88px; height: min(610px, calc(100vh - 110px)); display: flex; flex-direction: column; overflow: hidden; }
.chat-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 12px 14px; border-radius: 18px; line-height: 1.5; max-width: 88%; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #11131d; font-weight: 700; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: rgba(255,255,255,.08); color: var(--text); border-bottom-left-radius: 6px; }
.msg.ai.typing-indicator { padding: 10px 12px; min-width: 58px; max-width: 72px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border-radius: 16px; }
.typing-dots { display: inline-flex; align-items: flex-end; justify-content: center; gap: 6px; min-height: 14px; }
.typing-dots span { width: 9px; height: 9px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), var(--orange)); box-shadow: 0 4px 10px rgba(242,154,74,.24); animation: aiTypingBounce 1s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes aiTypingBounce {
  0%, 80%, 100% { transform: translateY(0) scale(.88); opacity: .55; }
  40% { transform: translateY(-8px) scale(1.08); opacity: 1; }
}
.chat-input { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; }

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}
.auth-card {
  width: min(980px, 100%);
  isolation: isolate;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.075);
  box-shadow: var(--shadow);
}
.auth-art {
  padding: 34px;
  background:
    linear-gradient(160deg, rgba(247,200,95,.2), rgba(255,143,61,.08)),
    url('../assets/banner.svg') center/cover;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-panel { padding: 34px; background: rgba(9, 11, 18, .82); }
.auth-tabs { display: flex; gap: 10px; margin: 22px 0; }
.auth-form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 7px; }
.form-row label { color: var(--muted); font-size: 14px; }
.password-wrap {
  position: relative;
  width: 100%;
}
.password-wrap .input {
  padding-right: 58px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.08);
  color: var(--gold);
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.password-toggle:hover {
  background: rgba(247,200,95,.14);
  border-color: rgba(247,200,95,.35);
}
.auth-panel .ripple { display: none; }
.btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.help { color: var(--muted); font-size: 13px; line-height: 1.5; }
.alert { padding: 12px 14px; border-radius: 16px; background: rgba(247, 200, 95, .12); color: #ffe7a1; border: 1px solid rgba(247, 200, 95, .22); }
.alert.error { background: rgba(255, 95, 109, .1); color: #ffc2c8; border-color: rgba(255, 95, 109, .22); }
.hidden { display: none !important; }

.admin-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px; border-right: 1px solid var(--line); background: rgba(9, 11, 18, .82); backdrop-filter: blur(18px); }
.sidebar .brand { margin-bottom: 26px; }
.side-menu { display: grid; gap: 10px; }
.side-menu a { padding: 12px 14px; border-radius: 16px; color: var(--muted); transition: .18s ease; }
.side-menu a.active, .side-menu a:hover { color: #11131d; background: linear-gradient(135deg, var(--gold), var(--orange)); font-weight: 900; }
.admin-main { padding: 28px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 24px; }
.stat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: 18px; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { display: block; margin-top: 8px; font-size: 28px; }
.panel { padding: 22px; margin-bottom: 22px; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-form .full { grid-column: 1 / -1; }
.table-wrap { overflow: auto; border-radius: 20px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #ffe7a1; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.05); }
td { color: #e5e7eb; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* v27: tabel order admin dibuat bisa scroll horizontal agar kolom tidak bertabrakan */
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(247,200,95,.22);
  background: rgba(247,200,95,.08);
  color: #ffe7a1;
  font-size: 13px;
}
.scroll-hint::before { content: '↔'; font-weight: 900; }
.order-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(247,200,95,.55) rgba(255,255,255,.06);
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.order-table-wrap::-webkit-scrollbar { height: 12px; }
.order-table-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 999px; }
.order-table-wrap::-webkit-scrollbar-thumb { background: linear-gradient(135deg, var(--gold), var(--orange)); border-radius: 999px; }
.orders-table {
  width: 1760px;
  min-width: 1760px;
  max-width: none;
  table-layout: fixed;
}
.orders-table th,
.orders-table td {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.orders-table th:nth-child(1), .orders-table td:nth-child(1) { width: 210px; }
.orders-table th:nth-child(2), .orders-table td:nth-child(2) { width: 520px; }
.orders-table th:nth-child(3), .orders-table td:nth-child(3) { width: 230px; }
.orders-table th:nth-child(4), .orders-table td:nth-child(4) { width: 150px; }
.orders-table th:nth-child(5), .orders-table td:nth-child(5) { width: 170px; }
.orders-table th:nth-child(6), .orders-table td:nth-child(6) { width: 190px; }
.orders-table th:nth-child(7), .orders-table td:nth-child(7) { width: 150px; }
.orders-table th:nth-child(8), .orders-table td:nth-child(8) { width: 140px; }
.order-customer-cell .help,
.order-payment-cell .help {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}
.order-status-cell .select { min-width: 118px; }
@media (max-width: 900px) {
  .orders-table { width: 1500px; min-width: 1500px; }
  .orders-table th:nth-child(2), .orders-table td:nth-child(2) { width: 420px; }
}

.footer { padding: 42px 0; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp .7s ease forwards; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .hero-grid, .auth-card, .admin-shell { grid-template-columns: 1fr; }
  .hero-card { min-height: 320px; }
  .hero-card img { min-height: 320px; }
  .product-grid, .feature-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: relative; height: auto; }
  .admin-form { grid-template-columns: 1fr; }
  .auth-art { min-height: 300px; }
}
@media (max-width: 680px) {
  .nav-inner { height: auto; padding: 14px 0; align-items: flex-start; }
  .nav-links { display: none; }
  .brand img { width: 112px; }
  .hero { padding-top: 42px; }
  .product-grid, .feature-grid, .stat-grid { grid-template-columns: 1fr; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .toolbar .input, .toolbar .select { max-width: 100%; }
  .auth-panel, .auth-art { padding: 24px; }
  .drawer, .chat-widget { right: 10px; width: calc(100vw - 20px); }
}

/* v8: semua gambar produk/banner/logo di admin memakai upload file, bukan input URL. */
.upload-box {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: center;
}
.upload-preview {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  padding: 8px;
}
.logo-upload-preview {
  height: 72px;
  object-fit: contain;
}
.banner-upload-preview {
  width: 220px;
  height: 124px;
}
.table-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}
.table-product img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  flex: 0 0 auto;
}
input[type="file"].input {
  cursor: pointer;
}
@media (max-width: 680px) {
  .upload-box { grid-template-columns: 1fr; }
  .upload-preview, .banner-upload-preview { width: 100%; height: 170px; }
  .logo-upload-preview { height: 90px; }
}

/* v11: logo lebih rapat, banner carousel otomatis, dan restok modal modern */
.brand {
  gap: 10px;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  flex: 0 0 auto;
}
.navbar .brand img {
  width: 50px;
  height: 50px;
}
.navbar .brand span,
.sidebar .brand span {
  white-space: nowrap;
}
.sidebar .brand {
  gap: 10px;
}
.sidebar .brand img {
  width: 58px;
  height: 46px;
  padding: 5px;
}

.hero-slider {
  padding: 0;
  touch-action: pan-y;
  user-select: none;
}
.hero-track {
  height: 100%;
  min-height: 440px;
  display: flex;
  transition: transform .62s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.hero-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  min-height: 440px;
  display: block;
  overflow: hidden;
}
.hero-slide img,
.hero-card.hero-slider img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  opacity: .94;
  transform: scale(1.02);
  transition: transform 1.4s ease, opacity .3s ease;
}
.hero-slide.active img {
  transform: scale(1.06);
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(9,11,18,.6);
  color: white;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  transition: .2s ease;
}
.slider-btn:hover {
  background: linear-gradient(135deg, rgba(247,200,95,.95), rgba(255,143,61,.95));
  color: #11131d;
  transform: translateY(-50%) scale(1.06);
}
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(9,11,18,.52);
  backdrop-filter: blur(12px);
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.38);
  cursor: pointer;
  transition: .22s ease;
  padding: 0;
}
.slider-dot.active {
  width: 28px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}
.hero-slider.single .slider-btn,
.hero-slider.single .slider-dots {
  display: none;
}

.btn-stock {
  border: 0;
  background: linear-gradient(135deg, #36e6a3, #4dc7ff);
  color: #061018;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(77,199,255,.12);
}
.btn-stock::before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(6,16,24,.16);
  font-weight: 1000;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(12px);
}
.modal-backdrop.open { display: flex; }
.modal-card {
  width: min(520px, 100%);
  border: 1px solid rgba(247,200,95,.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(247,200,95,.16), transparent 36%),
    linear-gradient(160deg, rgba(32,35,48,.96), rgba(11,13,22,.98));
  box-shadow: 0 34px 120px rgba(0,0,0,.56);
  overflow: hidden;
  animation: modalPop .22s ease both;
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 14px;
}
.modal-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #11131d;
  font-size: 24px;
  box-shadow: 0 16px 34px rgba(247,200,95,.18);
}
.modal-head h3 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.modal-body { padding: 0 22px 22px; }
.stock-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.stock-box {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line);
}
.stock-box span { color: var(--muted); font-size: 12px; display: block; margin-bottom: 6px; }
.stock-box strong { font-size: 22px; }
.quick-restock {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}
.quick-restock button {
  border: 1px solid rgba(247,200,95,.22);
  color: #ffe7a1;
  background: rgba(247,200,95,.08);
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 14px;
}
@media (max-width: 680px) {
  .navbar .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 14px; }
  .hero-track, .hero-slide, .hero-slide img, .hero-card.hero-slider img { min-height: 320px; }
  .slider-btn { width: 38px; height: 38px; font-size: 26px; }
  .stock-preview { grid-template-columns: 1fr; }
}


/* v12: login page lebih rapi, reset password pindah ke bawah tombol login */
.auth-card {
  width: min(1020px, 100%);
}
.auth-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 32%, rgba(247, 200, 95, .28), transparent 28%),
    radial-gradient(circle at 18% 70%, rgba(255, 143, 61, .14), transparent 38%),
    linear-gradient(155deg, rgba(33, 35, 45, .96), rgba(48, 38, 30, .92));
}
.auth-art::before {
  content: "";
  position: absolute;
  inset: 24px -90px auto auto;
  width: 300px;
  height: 300px;
  border: 10px solid rgba(247, 200, 95, .28);
  border-radius: 42px;
  transform: rotate(10deg);
  filter: blur(.2px);
}
.auth-art::after {
  content: "AI CS";
  position: absolute;
  left: 28px;
  bottom: 54px;
  font-weight: 1000;
  font-size: clamp(52px, 9vw, 104px);
  line-height: .82;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.055);
  pointer-events: none;
}
.auth-art > * {
  position: relative;
  z-index: 1;
}
.auth-art .brand {
  width: fit-content;
  padding: 8px 12px 8px 8px;
  border-radius: 18px;
  background: rgba(9, 11, 18, .32);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.auth-art .brand img {
  width: 46px;
  height: 46px;
}
.auth-art h1 {
  max-width: 360px;
  margin: 18px 0 14px;
  font-size: clamp(48px, 6vw, 72px);
  line-height: .96;
  letter-spacing: -.06em;
}
.auth-art .lead {
  max-width: 390px;
}
.auth-tabs-clean {
  gap: 12px;
  flex-wrap: wrap;
  margin: 22px 0 24px;
}
.auth-tabs-clean .btn {
  min-width: 92px;
}
.forgot-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: -2px 0 4px;
  color: var(--muted);
  font-size: 14px;
}
.forgot-link {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 900;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 10px;
}
.forgot-link:hover {
  color: var(--orange);
  text-decoration: underline;
}
.auth-section-title h2 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -.04em;
}
.auth-section-title .help {
  margin: 0 0 4px;
}
@media (max-width: 680px) {
  .auth-tabs-clean .btn { flex: 1 1 auto; min-width: 100px; }
  .forgot-row { flex-direction: column; gap: 2px; }
}


/* v13: homepage langsung toko + tombol panah banner lebih rapi */
.hero-card.hero-slider {
  overflow: hidden;
  isolation: isolate;
}
.hero-slider::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 122px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(9,11,18,.78), transparent);
}
.hero-slide img,
.hero-card.hero-slider img {
  object-position: center center;
}
.hero-floating {
  z-index: 3;
  left: 24px;
  right: 96px;
  bottom: 24px;
}
.slider-btn {
  width: 42px;
  height: 42px;
  font-size: 28px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(9,11,18,.62);
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.slider-prev {
  left: 18px;
}
.slider-next {
  right: 18px;
}
.slider-btn:hover,
.slider-btn:focus-visible {
  border-color: rgba(247,200,95,.58);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #11131d;
}
.slider-dots {
  bottom: 18px;
  padding: 7px 9px;
  z-index: 4;
}
.hero-slider.single .slider-btn,
.hero-slider.single .slider-dots {
  display: none;
}
@media (max-width: 920px) {
  .hero-floating {
    right: 24px;
    bottom: 76px;
  }
  .slider-btn {
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .slider-btn:hover,
  .slider-btn:focus-visible {
    transform: translateY(-2px);
  }
  .slider-prev { left: 24px; }
  .slider-next { right: 24px; }
  .slider-dots { bottom: 23px; }
}
@media (max-width: 680px) {
  .hero-floating {
    left: 16px;
    right: 16px;
    bottom: 72px;
    padding: 14px;
    border-radius: 18px;
  }
  .slider-btn {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 24px;
  }
  .slider-prev { left: 18px; }
  .slider-next { right: 18px; }
}

/* v14: profil user modern di halaman utama, tanpa prompt browser */
body.modal-lock {
  overflow: hidden;
}
.profile-modal .profile-card {
  width: min(720px, 100%);
  max-height: min(92vh, 780px);
  overflow: auto;
}
.profile-head {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 22px 22px 12px;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #11131d;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 18px 38px rgba(247,200,95,.18);
  font-size: 25px;
}
.mini-label {
  margin: 0 0 4px;
  color: #ffe9aa;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.profile-head h3 {
  margin: 0 0 4px;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -.045em;
}
.profile-x {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}
.profile-user-summary {
  margin: 8px 22px 14px;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(247,200,95,.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(247,200,95,.12), transparent 40%),
    rgba(255,255,255,.06);
}
.profile-user-summary strong {
  font-size: 20px;
  letter-spacing: -.025em;
}
.profile-user-summary span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  color: #bfffd7;
  background: rgba(69,223,145,.1);
  border: 1px solid rgba(69,223,145,.18);
  overflow-wrap: anywhere;
}
.profile-user-summary span.missing {
  color: #ffd5d8;
  background: rgba(255,95,109,.1);
  border-color: rgba(255,95,109,.2);
}
.profile-card #profileAlert {
  margin: 0 22px 14px;
}
.profile-form {
  display: grid;
  gap: 14px;
  padding: 0 22px 22px;
}
.profile-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.password-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
}
.password-panel strong {
  font-size: 18px;
}
.password-panel .help {
  margin: 4px 0 0;
}
.profile-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 2px;
}
.profile-actions .btn-primary {
  min-width: 190px;
}
@media (max-width: 720px) {
  .profile-head {
    grid-template-columns: 48px 1fr auto;
    padding: 18px 18px 10px;
  }
  .profile-avatar { width: 48px; height: 48px; border-radius: 17px; }
  .profile-user-summary { margin: 8px 18px 14px; }
  .profile-card #profileAlert { margin: 0 18px 14px; }
  .profile-form { padding: 0 18px 18px; }
  .profile-grid-2 { grid-template-columns: 1fr; }
  .profile-actions { grid-template-columns: 1fr; }
  .profile-actions .btn { width: 100%; }
}

/* v15: logo tanpa garis/bingkai + OTP pindah ke halaman Daftar */
.brand {
  gap: 8px;
  align-items: center;
}
.brand img,
.navbar .brand img,
.sidebar .brand img,
.auth-art .brand img {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 10px;
  object-fit: contain;
}
.navbar .brand {
  gap: 9px;
}
.navbar .brand span,
.auth-art .brand span {
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.auth-art .brand {
  gap: 9px;
  padding: 6px 8px;
  border: 0;
  background: rgba(9, 11, 18, .18);
}
.auth-tabs-clean .btn[data-tab="phone"] {
  display: none !important;
}
.otp-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}
.btn-otp {
  min-width: 120px;
  white-space: nowrap;
  font-weight: 800;
  border-color: rgba(247, 200, 95, .22);
  color: #ffe9aa;
}
#registerOtpArea:not(.hidden) {
  animation: fadeUp .2s ease both;
}
@media (max-width: 680px) {
  .otp-line {
    grid-template-columns: 1fr;
  }
  .btn-otp {
    width: 100%;
  }
  .brand img,
  .navbar .brand img,
  .auth-art .brand img {
    width: 42px;
    height: 42px;
  }
}

/* v16: profile verified icon, close button rapi, dan modal admin user modern */
.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;
}
.profile-head {
  align-items: center;
}
.profile-head > div:nth-child(2) {
  min-width: 0;
}
.profile-x,
.modal-close-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.profile-x:hover,
.modal-close-btn:hover {
  transform: translateY(-1px) rotate(3deg);
  background: rgba(255,255,255,.13);
  border-color: rgba(247,200,95,.34);
}
.profile-user-summary {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 14px;
}
.profile-user-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-verified-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.profile-user-summary span.verified-chip,
.verified-chip {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  color: #061510;
  background: linear-gradient(135deg, #34f58f, #14d37a);
  border: 1px solid rgba(102,255,177,.45);
  box-shadow: 0 10px 28px rgba(20,211,122,.22), inset 0 1px 0 rgba(255,255,255,.45);
  font-size: 0;
}
.verified-chip svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}
.profile-user-summary span.verified-chip.missing,
.verified-chip.missing {
  color: rgba(255,255,255,.46);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
  font-size: 16px;
}
.profile-form .input {
  border-color: rgba(255,255,255,.14);
}
.profile-form .input:focus {
  border-color: rgba(69,223,145,.46);
  box-shadow: 0 0 0 4px rgba(69,223,145,.08);
}
.admin-user-modal .admin-user-card {
  width: min(620px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
}
.modern-modal-head {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.user-modal-icon {
  background: linear-gradient(135deg, #34f58f, #14d37a);
  color: #061510;
}
.admin-user-body {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}
.user-edit-summary {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(69,223,145,.18);
  background:
    radial-gradient(circle at top right, rgba(69,223,145,.12), transparent 42%),
    rgba(255,255,255,.055);
}
.user-edit-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #34f58f, #14d37a);
  color: #071611;
  font-weight: 1000;
  font-size: 22px;
  box-shadow: 0 16px 32px rgba(20,211,122,.18);
}
.user-edit-summary strong {
  display: block;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.user-edit-summary p {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.admin-user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.admin-user-grid .form-row:only-child,
.admin-user-grid .form-row:not(.hidden):last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.admin-user-actions {
  margin-top: 4px;
}
.admin-user-actions .btn-primary {
  min-width: 190px;
}
#adminUserAlert {
  margin: 0;
}
@media (max-width: 720px) {
  .profile-user-summary {
    grid-template-columns: 1fr;
  }
  .profile-verified-row {
    justify-content: flex-start;
  }
  .modern-modal-head {
    grid-template-columns: 48px 1fr auto;
    gap: 10px;
  }
  .admin-user-grid {
    grid-template-columns: 1fr;
  }
  .admin-user-actions {
    justify-content: stretch;
  }
  .admin-user-actions .btn {
    width: 100%;
  }
}
.user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.user-action-btn {
  border-radius: 999px;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.user-action-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(247,200,95,.32);
}

/* v17: keranjang bisa scroll + pilihan payment modern */
.drawer {
  top: 88px;
  bottom: 18px;
  max-height: none;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer-header,
.cart-total,
.drawer-footer {
  flex-shrink: 0;
}
.drawer-body {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer-footer {
  max-height: min(430px, 46vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-bottom: 18px;
}
.drawer-footer::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar { width: 8px; }
.drawer-footer::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}
.cart-item {
  align-items: center;
}
.qty-row button:last-child {
  width: auto;
  padding: 0 10px;
  font-weight: 800;
}
.payment-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(247,200,95,.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(247,200,95,.10), transparent 42%),
    rgba(255,255,255,.045);
}
.payment-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.payment-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.payment-option {
  position: relative;
  min-height: 44px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 9px 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.055);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-option:hover {
  transform: translateY(-1px);
  border-color: rgba(247,200,95,.36);
}
.payment-option.active,
.payment-option:has(input:checked) {
  color: #121420;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: 0 12px 28px rgba(255,169,70,.20);
}
.payment-detail {
  min-height: 44px;
}
.checkout-sticky {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -10px 24px rgba(13,16,28,.28), 0 16px 34px rgba(255,169,70,.14);
}
.payment-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(247,200,95,.12);
  border: 1px solid rgba(247,200,95,.22);
  color: #ffe19b;
  font-weight: 900;
  white-space: nowrap;
}
.payment-badge::before {
  content: '💳';
}
@media (max-width: 720px) {
  .drawer {
    left: 12px;
    right: 12px;
    top: 74px;
    bottom: 12px;
    width: auto;
    border-radius: 24px;
  }
  .drawer-footer {
    max-height: 52vh;
  }
  .payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v18: Iklan/banner bisa foto saja tanpa judul dan subtitle */
.optional-label {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #b8c2d6;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.hero-slide.image-only img,
.hero-slide.image-only.active img {
  opacity: 1;
}
.hero-slide.image-only::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,.10));
}

/* v22: footer full custom + checkout success notice */
.footer-modern {
  margin-top: 56px;
  padding: 46px 0 22px;
  border-top: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at top left, rgba(247,200,95,.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255,143,61,.10), transparent 32%),
    rgba(5,7,13,.72);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(2, minmax(190px, .7fr));
  gap: 22px;
  align-items: start;
}
.footer-brand-card,
.footer-col {
  min-height: 210px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: 0 20px 55px rgba(0,0,0,.18);
}
.footer-brand {
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
}
.footer-brand span {
  font-size: 18px;
  font-weight: 1000;
}
#footerDescription {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}
.footer-col h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: #ffe6a7;
}
.footer-links,
.footer-col {
  display: grid;
  gap: 10px;
}
.footer-links a,
.footer-contact {
  width: fit-content;
  color: var(--muted);
  line-height: 1.45;
  transition: color .18s ease, transform .18s ease;
}

.footer-contacts {
  display: grid;
  gap: 10px;
}
.footer-contacts .footer-contact {
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover,
.footer-contact:hover {
  color: var(--gold);
  transform: translateX(3px);
}
.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.065);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.social-link:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(247,200,95,.38);
  background: rgba(255,255,255,.11);
}
.social-link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 10px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: var(--muted);
  font-size: 14px;
}
.footer-bottom a {
  color: #ffe2a3;
  font-weight: 900;
}
.muted-text { color: var(--muted); }
.footer-editor-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.footer-editor-head h3 {
  margin: 0;
  font-size: 18px;
}
.footer-link-editor {
  display: grid;
  gap: 10px;
}
.footer-editor-row {
  display: grid;
  grid-template-columns: .9fr 1.35fr;
  gap: 10px;
}
.dynamic-footer-row {
  grid-template-columns: .9fr 1.35fr auto;
  align-items: center;
}
.footer-add-btn {
  width: fit-content;
  margin-top: 10px;
}
.footer-remove-btn {
  min-width: 72px;
  height: 42px;
}
.social-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.social-editor-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  background: rgba(255,255,255,.045);
}
.social-preview {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 18px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
}
.footer-admin-panel .textarea {
  min-height: 88px;
}
@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand-card {
    grid-column: 1 / -1;
  }
  .social-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .footer-main,
  .footer-editor-row,
  .dynamic-footer-row,
  .social-editor-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* v23: halaman login bisa diubah dari dashboard admin */
.auth-art::after {
  content: var(--login-watermark, "AI CS");
}
.auth-art.has-custom-bg {
  background:
    linear-gradient(155deg, rgba(8, 10, 17, .74), rgba(48, 38, 30, .78)),
    var(--login-bg-image) center/cover no-repeat,
    radial-gradient(circle at 82% 32%, rgba(247, 200, 95, .28), transparent 28%),
    linear-gradient(155deg, rgba(33, 35, 45, .96), rgba(48, 38, 30, .92));
}
.login-admin-panel h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
}
.login-admin-panel .form-row.full h3 {
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.login-admin-panel .form-row.full:first-child h3 {
  border-top: 0;
  padding-top: 0;
}
#loginBgPreview {
  object-fit: cover;
}


/* v28: scrollbar order dibuat terlihat di atas dan bawah + tombol kiri kanan */
.order-scroll-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  margin: 12px 0 12px;
  max-width: 100%;
}
.order-scroll-btn {
  width: 44px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 900;
}
.order-scrollbar-top {
  width: 100%;
  max-width: 100%;
  height: 28px;
  overflow-x: scroll;
  overflow-y: hidden;
  border: 1px solid rgba(247,200,95,.28);
  border-radius: 999px;
  background: rgba(247,200,95,.08);
  padding: 5px;
  scrollbar-color: rgba(247,200,95,.85) rgba(255,255,255,.08);
  scrollbar-width: auto;
}
.order-scrollbar-inner {
  height: 1px;
  width: 1760px;
}
.order-scrollbar-top::-webkit-scrollbar,
.order-table-wrap::-webkit-scrollbar {
  height: 16px;
}
.order-scrollbar-top::-webkit-scrollbar-track,
.order-table-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
}
.order-scrollbar-top::-webkit-scrollbar-thumb,
.order-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-radius: 999px;
  border: 3px solid rgba(10,12,20,.85);
}
.order-table-wrap {
  display: block;
  width: 100%;
  max-width: calc(100vw - 340px);
  overflow-x: scroll !important;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(247,200,95,.85) rgba(255,255,255,.08);
  scrollbar-width: auto;
  padding-bottom: 14px;
}
.order-table-wrap .orders-table {
  width: 1760px !important;
  min-width: 1760px !important;
  max-width: none !important;
}
@media (max-width: 980px) {
  .order-table-wrap { max-width: calc(100vw - 56px); }
  .order-scroll-controls { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .order-scroll-btn { width: 40px; }
}


/* v36: optimasi tampilan mobile / HP */
@media (max-width: 760px) {
  :root {
    --radius: 20px;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 14px;
    background:
      radial-gradient(circle at 0% 0%, rgba(247, 200, 95, .12), transparent 26%),
      radial-gradient(circle at 100% 14%, rgba(255, 143, 61, .10), transparent 30%),
      var(--bg);
  }

  .container {
    width: min(100% - 22px, 1180px);
  }

  .navbar {
    position: sticky;
  }

  .nav-inner {
    min-height: 66px;
    padding: 10px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand img,
  .navbar .brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex: 0 0 auto;
  }

  .brand span {
    font-size: 14px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions {
    gap: 7px;
    justify-content: flex-end;
  }

  .nav-actions .btn {
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
  }

  #userBtn {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    padding: 30px 0 22px;
  }

  .hero-grid {
    gap: 22px;
  }

  .badge {
    max-width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.35;
    border-radius: 16px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 46px);
    line-height: .98;
    letter-spacing: -.055em;
    margin-bottom: 12px;
  }

  .lead {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-actions .btn,
  .section-title .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-card,
  .hero-track,
  .hero-slide,
  .hero-slide img,
  .hero-card.hero-slider img {
    min-height: 245px !important;
    height: 245px;
    border-radius: 22px;
  }

  .hero-card {
    border-radius: 24px;
  }

  .hero-floating {
    left: 12px;
    right: 12px;
    bottom: 42px;
    padding: 13px 14px;
    border-radius: 18px;
  }

  .hero-floating strong {
    font-size: 14px;
  }

  .hero-floating span {
    font-size: 12px;
    line-height: 1.4;
  }

  .slider-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 22px !important;
  }

  .slider-prev { left: 10px; }
  .slider-next { right: 10px; }

  .slider-dots {
    bottom: 14px !important;
    padding: 6px 9px;
  }

  .slider-dot {
    height: 8px;
    width: 8px;
  }

  .slider-dot.active {
    width: 24px;
  }

  .section {
    padding: 34px 0;
  }

  .section-title {
    gap: 14px;
    margin-bottom: 16px;
  }

  .section-title h2 {
    font-size: 28px;
    line-height: 1.05;
  }

  .section-title p {
    font-size: 14px;
    line-height: 1.5;
  }

  .toolbar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 14px;
  }

  .search-input,
  .toolbar .input,
  .toolbar .select {
    max-width: none;
    min-height: 46px;
  }

  .grid {
    gap: 14px;
  }

  .feature {
    padding: 18px;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .card {
    border-radius: 20px;
  }

  .product-img {
    height: 180px;
  }

  .card-body {
    padding: 15px;
  }

  .product-name {
    font-size: 18px;
    line-height: 1.2;
  }

  .product-desc {
    min-height: auto;
    font-size: 14px;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin: 13px 0;
  }

  .price {
    font-size: 19px;
  }

  .card-body .btn {
    width: 100%;
    justify-content: center;
  }

  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  .cart-fab,
  .chat-toggle {
    right: 12px;
    border-radius: 999px;
    font-size: 13px;
    padding: 11px 14px;
  }

  .cart-fab {
    bottom: 74px;
  }

  .chat-toggle {
    bottom: 16px;
  }

  .drawer,
  .chat-widget {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    border-radius: 22px;
  }

  .drawer {
    top: 72px;
    bottom: 10px;
    max-height: none;
  }

  .drawer-header,
  .chat-header {
    padding: 13px;
  }

  .drawer-body,
  .chat-body {
    padding: 13px;
  }

  .cart-item {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .cart-item img {
    width: 52px;
    height: 52px;
    border-radius: 13px;
  }

  .drawer-footer {
    padding: 12px;
    max-height: 50vh;
    overflow: auto;
  }

  .payment-section {
    padding: 12px;
    border-radius: 18px;
  }

  .payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .payment-option {
    min-height: 44px;
    justify-content: center;
    padding: 10px;
  }

  .checkout-sticky {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  .chat-widget {
    top: 78px;
    bottom: 10px;
    height: auto !important;
    max-height: none;
  }

  .chat-header .actions {
    gap: 6px;
  }

  .chat-header .btn-small {
    padding: 8px 10px;
    font-size: 12px;
  }

  .msg {
    max-width: 92%;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 14px;
  }

  .chat-input {
    padding: 10px;
    gap: 8px;
  }

  .chat-input .input {
    min-height: 46px;
    padding: 11px 12px;
  }

  .chat-input .btn {
    min-height: 46px;
    padding: 10px 14px;
  }

  .msg.ai.typing-indicator {
    min-width: 52px;
    max-width: 62px;
    padding: 9px 11px;
    border-radius: 15px;
  }

  .typing-dots {
    gap: 5px;
    min-height: 12px;
  }

  .typing-dots span {
    width: 8px;
    height: 8px;
  }

  .profile-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding: 18px;
    border-radius: 24px;
  }

  .profile-head {
    grid-template-columns: 44px 1fr 40px;
    gap: 10px;
  }

  .profile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

  .profile-head h3 {
    font-size: 24px;
    line-height: 1.05;
  }

  .profile-grid-2,
  .profile-actions {
    grid-template-columns: 1fr;
  }

  .profile-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-modern {
    margin-top: 34px;
    padding: 28px 0 18px;
  }

  .footer-brand-card,
  .footer-col {
    min-height: auto;
    padding: 18px;
    border-radius: 22px;
  }

  .footer-brand img {
    width: 46px;
    height: 46px;
  }

  .footer-bottom {
    gap: 12px;
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .auth-wrap {
    padding: 12px;
    min-height: 100svh;
    align-items: stretch;
  }

  .auth-card {
    width: 100%;
    min-height: calc(100svh - 24px);
    border-radius: 26px;
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 220px;
    padding: 22px;
  }

  .auth-art::before {
    width: 180px;
    height: 180px;
    inset: 18px -80px auto auto;
    border-width: 7px;
    border-radius: 34px;
  }

  .auth-art::after {
    font-size: 58px;
    bottom: 24px;
    left: 18px;
  }

  .auth-art h1 {
    font-size: 38px;
  }

  .auth-panel {
    padding: 20px;
  }

  .auth-tabs,
  .auth-tabs-clean {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .auth-tabs::-webkit-scrollbar,
  .auth-tabs-clean::-webkit-scrollbar {
    display: none;
  }

  .auth-tabs .btn,
  .auth-tabs-clean .btn {
    flex: 0 0 auto;
    min-width: 86px;
    padding: 11px 14px;
  }

  .auth-form {
    gap: 11px;
  }

  .input,
  .select,
  .textarea {
    min-height: 46px;
    padding: 12px 14px;
    border-radius: 15px;
  }

  .btn-wide,
  .auth-form .btn-primary {
    min-height: 48px;
  }

  .password-toggle {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 760px) {
  .admin-shell {
    display: block;
    min-height: 100vh;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: auto;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar .brand {
    margin-bottom: 10px;
  }

  .sidebar .brand img {
    width: 40px;
    height: 40px;
  }

  .side-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .side-menu a {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .admin-main {
    padding: 16px 12px 26px;
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .admin-top h1,
  .admin-main h1 {
    font-size: 30px;
    line-height: 1.05;
    margin: 0;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    padding: 14px;
    border-radius: 18px;
  }

  .stat strong {
    font-size: 22px;
  }

  .admin-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .panel {
    padding: 16px;
    margin-bottom: 16px;
  }

  .upload-box {
    grid-template-columns: 1fr;
  }

  .upload-preview,
  .banner-upload-preview {
    width: 100%;
    height: 160px;
  }

  .logo-upload-preview {
    height: 84px;
  }

  .table-wrap,
  .order-table-wrap {
    border-radius: 18px;
    max-width: calc(100vw - 24px) !important;
  }

  table {
    min-width: 760px;
  }

  th,
  td {
    padding: 11px 12px;
    font-size: 13px;
  }

  .order-scroll-controls {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .order-scroll-btn {
    width: 40px;
    height: 38px;
  }

  .orders-table {
    min-width: 1580px !important;
    width: 1580px !important;
  }

  .footer-admin-panel,
  .login-admin-panel {
    padding: 16px;
  }

  .modal-card,
  .modern-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 24px;
  }
}

@media (max-width: 420px) {
  .nav-actions .btn {
    padding: 9px 10px;
    font-size: 12px;
  }

  #userBtn {
    max-width: 96px;
  }

  h1 {
    font-size: clamp(31px, 12vw, 42px);
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .hero-track,
  .hero-slide,
  .hero-slide img,
  .hero-card.hero-slider img {
    min-height: 220px !important;
    height: 220px;
  }

  .product-img {
    height: 165px;
  }

  .cart-fab,
  .chat-toggle {
    font-size: 12px;
    padding: 10px 12px;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }
}


/* v37: tampilan mobile ala toko online, desktop tetap tidak berubah */
@media (max-width: 760px) {
  :root {
    --mobile-bg: #f6f7fb;
    --mobile-card: #ffffff;
    --mobile-text: #121722;
    --mobile-muted: #6b7280;
    --mobile-line: #e7eaf0;
    --mobile-accent: #ff8f3d;
    --mobile-accent-2: #f7c85f;
  }

  body {
    background: var(--mobile-bg);
    color: var(--mobile-text);
    font-size: 14px;
  }

  .container {
    width: min(100% - 18px, 520px);
  }

  .navbar {
    position: sticky;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--mobile-line);
    box-shadow: 0 8px 26px rgba(17,24,39,.07);
  }

  .nav-inner {
    height: auto;
    min-height: 62px;
    padding: 8px 0 9px;
    align-items: center;
    gap: 8px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 7px;
    color: var(--mobile-text);
  }

  .brand::before {
    content: '☰';
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    color: #1f2937;
    background: #f3f4f6;
    border: 1px solid var(--mobile-line);
    font-size: 15px;
    flex: 0 0 auto;
  }

  .brand img,
  .navbar .brand img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(17,24,39,.08);
  }

  .brand span,
  #storeName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: -.02em;
  }

  .nav-links { display: none !important; }

  .nav-actions {
    gap: 6px;
    flex: 0 0 auto;
  }

  .nav-actions .btn {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: #fff;
    color: var(--mobile-text);
    border: 1px solid var(--mobile-line);
    box-shadow: 0 6px 14px rgba(17,24,39,.06);
  }

  #userBtn {
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #cartToggle {
    background: linear-gradient(135deg, var(--mobile-accent-2), var(--mobile-accent));
    border: 0;
    color: #161616;
    font-weight: 900;
  }

  .hero {
    padding: 14px 0 8px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .hero-grid > .hero-card {
    order: 1;
  }

  .hero-grid > .fade-up:not(.hero-card) {
    order: 2;
    background: var(--mobile-card);
    border: 1px solid var(--mobile-line);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(17,24,39,.07);
  }

  .badge {
    margin: 0 0 8px;
    padding: 7px 10px;
    font-size: 12px;
    border-color: rgba(255,143,61,.24);
    background: #fff7ed;
    color: #c2410c;
  }

  h1 {
    font-size: 24px !important;
    line-height: 1.1;
    letter-spacing: -.04em;
    color: var(--mobile-text);
    margin-bottom: 8px;
  }

  .lead {
    font-size: 13px;
    line-height: 1.45;
    color: var(--mobile-muted);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
  }

  .hero-actions .btn {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 12px;
    border-radius: 12px;
  }

  .hero-card,
  .hero-track,
  .hero-slide,
  .hero-slide img,
  .hero-card.hero-slider img {
    min-height: 168px !important;
    height: 168px !important;
    border-radius: 18px;
  }

  .hero-card {
    border-color: var(--mobile-line);
    box-shadow: 0 14px 30px rgba(17,24,39,.10);
    animation: none;
    background: #fff;
  }

  .hero-slide img {
    object-fit: cover;
  }

  .hero-floating {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(17,24,39,.88);
    color: #fff;
  }

  .hero-floating strong {
    font-size: 13px;
  }

  .hero-floating span {
    font-size: 12px;
    color: #d1d5db;
  }

  .slider-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 999px !important;
    background: rgba(17,24,39,.78) !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
  }

  .slider-prev { left: 8px !important; }
  .slider-next { right: 8px !important; }

  .slider-dots {
    bottom: 7px !important;
    padding: 4px 7px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(17,24,39,.08);
  }

  .section {
    padding: 18px 0;
  }

  .section-title {
    margin-bottom: 10px;
    gap: 10px;
  }

  .section-title h2 {
    font-size: 16px;
    letter-spacing: -.02em;
    color: #2563eb;
  }

  .section-title p {
    font-size: 12px;
    color: var(--mobile-muted);
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr 132px;
    width: 100%;
    gap: 8px;
    margin-bottom: 12px;
  }

  .toolbar .input,
  .toolbar .select {
    min-height: 38px;
    border-radius: 12px;
    font-size: 12px;
    background: #fff;
    border: 1px solid var(--mobile-line);
    color: var(--mobile-text);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }

  .card {
    background: var(--mobile-card);
    color: var(--mobile-text);
    border: 1px solid var(--mobile-line);
    border-radius: 14px;
    box-shadow: 0 9px 22px rgba(17,24,39,.07);
  }

  .card:hover {
    transform: none;
    background: #fff;
    border-color: var(--mobile-line);
  }

  .product-img {
    height: 116px !important;
    object-fit: contain;
    padding: 8px;
    background: #fff;
  }

  .card-body {
    padding: 9px;
  }

  .kicker {
    display: block;
    font-size: 9px;
    color: #64748b;
    height: 13px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .product-name {
    font-size: 11px;
    line-height: 1.25;
    min-height: 30px;
    margin: 4px 0 4px;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-desc {
    display: none;
  }

  .price-row {
    display: block;
    margin: 4px 0 8px;
  }

  .price {
    color: #dc2626;
    font-size: 12px;
    font-weight: 900;
  }

  .stock {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 6px;
    font-size: 9px;
    color: #16a34a;
    background: #dcfce7;
  }

  .product-grid .btn-wide {
    min-height: 30px;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 11px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff;
    box-shadow: none;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .feature {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    margin: 0;
    grid-row: span 2;
  }

  .feature h3 {
    font-size: 14px;
    color: var(--mobile-text);
  }

  .feature p {
    font-size: 12px;
    line-height: 1.4;
    color: var(--mobile-muted);
  }

  #ai .panel {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
  }

  #ai .section-title h2,
  #ai .section-title p,
  #ai .help {
    color: #fff;
  }

  #ai .btn-primary {
    background: #fff;
    color: #1d4ed8;
    min-height: 40px;
  }

  .footer-modern {
    margin-top: 18px;
    padding: 24px 0 18px;
    background: linear-gradient(180deg, #ff3b30, #e11d1d);
    color: #fff;
    border-top: 0;
  }

  .footer-main {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .footer-brand-card,
  .footer-col {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: #fff;
  }

  .footer-brand img,
  .footer-brand-card .brand img {
    width: 42px !important;
    height: 42px !important;
    background: #fff;
    border-radius: 10px;
  }

  .footer-brand .brand::before,
  .footer-brand::before {
    display: none !important;
    content: none !important;
  }

  .footer-brand-card p,
  .footer-links a,
  .footer-contacts a,
  .footer-contact,
  .footer-bottom {
    color: rgba(255,255,255,.92) !important;
    font-size: 12px;
  }

  .footer-col h3,
  .footer-brand span {
    color: #fff7d6 !important;
    font-size: 14px;
  }

  .footer-links,
  .footer-contacts {
    display: grid;
    gap: 6px;
  }

  .footer-socials {
    gap: 8px;
  }

  .social-link {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
  }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.22);
    padding-top: 12px;
    margin-top: 14px;
  }

  .footer-bottom a {
    color: #fff7d6 !important;
  }

  .cart-fab,
  .chat-toggle {
    right: 12px;
    border-radius: 999px;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 12px;
    box-shadow: 0 10px 24px rgba(17,24,39,.18);
  }

  .cart-fab { bottom: 72px; }
  .chat-toggle { bottom: 18px; }

  .drawer,
  .chat-widget {
    right: 8px;
    width: calc(100vw - 16px);
    border-radius: 18px;
    background: rgba(255,255,255,.98);
    color: var(--mobile-text);
    border: 1px solid var(--mobile-line);
  }

  .drawer { bottom: 124px; max-height: min(78vh, 650px); }
  .chat-widget { bottom: 70px; height: min(76vh, 610px); }

  .drawer-header,
  .chat-header,
  .drawer-footer,
  .chat-input,
  .cart-total {
    border-color: var(--mobile-line);
  }

  .msg.ai {
    background: #f1f5f9;
    color: var(--mobile-text);
  }

  .msg.user {
    background: linear-gradient(135deg, var(--mobile-accent-2), var(--mobile-accent));
    color: #161616;
  }

  .drawer .input,
  .drawer .textarea,
  .chat-widget .input {
    background: #fff;
    color: var(--mobile-text);
    border: 1px solid var(--mobile-line);
  }

  .payment-section {
    background: #fff7ed;
    border-color: #fed7aa;
  }

  .payment-option {
    background: #fff;
    color: var(--mobile-text);
    border-color: var(--mobile-line);
  }

  .payment-option.active {
    background: linear-gradient(135deg, var(--mobile-accent-2), var(--mobile-accent));
    color: #161616;
  }

  .profile-modal .profile-card,
  .modal-card {
    width: calc(100vw - 14px);
    border-radius: 18px;
    background: #fff;
    color: var(--mobile-text);
  }
}

@media (max-width: 380px) {
  .toolbar { grid-template-columns: 1fr; }
  .product-grid { gap: 8px; }
  .product-img { height: 104px !important; }
  .product-name { font-size: 10.5px; }
  .price { font-size: 11px; }
}


/* v38: mobile tetap tata letak marketplace, warna balik mengikuti tema desktop LYWBU */
@media (max-width: 760px) {
  :root {
    --mobile-bg: var(--bg);
    --mobile-card: var(--card);
    --mobile-text: var(--text);
    --mobile-muted: var(--muted);
    --mobile-line: var(--line);
    --mobile-accent: var(--orange);
    --mobile-accent-2: var(--gold);
  }

  body {
    background: radial-gradient(circle at 15% 0%, rgba(255,183,77,.12), transparent 34%), var(--bg);
    color: var(--text);
  }

  .navbar {
    background: rgba(10, 12, 20, .94);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
    backdrop-filter: blur(14px);
  }

  .brand,
  .brand span,
  #storeName {
    color: var(--text);
  }

  .brand::before,
  .nav-actions .btn {
    background: rgba(255,255,255,.06);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
  }

  .brand img,
  .navbar .brand img {
    background: transparent;
    box-shadow: none;
  }

  #cartToggle,
  .hero-actions .btn-primary,
  .product-grid .btn-wide,
  .cart-fab,
  .chat-toggle,
  .payment-option.active,
  #ai .btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--orange)) !important;
    color: #11131d !important;
  }

  .hero-grid > .fade-up:not(.hero-card),
  .card,
  .feature,
  .drawer,
  .chat-widget,
  .profile-modal .profile-card,
  .modal-card {
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .hero-card {
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,183,77,.08));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .badge {
    background: rgba(255, 183, 77, .10);
    border-color: rgba(255, 183, 77, .28);
    color: var(--gold);
  }

  h1,
  .section-title h2,
  .product-name,
  .feature h3,
  .footer-col h3,
  .footer-brand span {
    color: var(--text) !important;
  }

  .lead,
  .section-title p,
  .feature p,
  .kicker,
  .footer-brand-card p,
  .footer-links a,
  .footer-contacts a,
  .footer-contact,
  .footer-bottom {
    color: var(--muted) !important;
  }

  .toolbar .input,
  .toolbar .select,
  .drawer .input,
  .drawer .textarea,
  .chat-widget .input,
  .payment-option {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    color: var(--text);
  }

  .card:hover {
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
    border-color: rgba(255,183,77,.28);
  }

  .product-img {
    background: rgba(255,255,255,.04);
  }

  .price {
    color: var(--gold);
  }

  .stock {
    color: #bbf7d0;
    background: rgba(34, 197, 94, .15);
    border: 1px solid rgba(34, 197, 94, .22);
  }

  #ai .panel {
    background: linear-gradient(135deg, rgba(255,183,77,.14), rgba(255,255,255,.05));
    border: 1px solid var(--line);
    color: var(--text);
  }

  #ai .section-title h2,
  #ai .section-title p,
  #ai .help {
    color: var(--text) !important;
  }

  .footer-modern {
    background: linear-gradient(180deg, rgba(255,183,77,.06), rgba(0,0,0,.12)), var(--bg);
    color: var(--text);
    border-top: 1px solid var(--line);
  }

  .footer-brand-card,
  .footer-col {
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .footer-col h3 {
    color: var(--gold) !important;
  }

  .social-link {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
  }

  .footer-bottom {
    border-top: 1px solid var(--line);
  }

  .footer-bottom a {
    color: var(--gold) !important;
  }

  .drawer-header,
  .chat-header,
  .drawer-footer,
  .chat-input,
  .cart-total {
    border-color: var(--line);
  }

  .msg.ai {
    background: rgba(255,255,255,.08);
    color: var(--text);
  }

  .msg.user {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #11131d;
  }

  .payment-section {
    background: rgba(255,183,77,.08);
    border-color: rgba(255,183,77,.20);
  }
}


/* v39: mobile marketplace layout tetap tema desktop + banner terlihat + tombol menu aktif */
.mobile-menu-btn { display: none; }
@media (max-width: 760px) {
  .navbar { z-index: 80; }
  .nav-inner { position: relative; }
  .mobile-menu-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.07);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    transition: .18s ease;
  }
  .mobile-menu-btn.active,
  .mobile-menu-btn:active {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #11131d;
    transform: translateY(1px);
  }
  .brand::before { display: none !important; content: none !important; }
  .brand { flex: 1 1 auto; min-width: 0; }
  .brand img,
  .navbar .brand img { width: 44px !important; height: 44px !important; }
  .brand span,
  #storeName { font-size: 17px; }

  .nav-links {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 120;
    padding: 10px;
    border-radius: 18px;
    background: rgba(14,16,25,.96);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0,0,0,.42);
    backdrop-filter: blur(14px);
  }
  .nav-links.mobile-open {
    display: grid !important;
    gap: 8px;
  }
  .nav-links.mobile-open a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 13px;
    color: var(--text);
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    font-weight: 800;
  }
  .nav-links.mobile-open a:active,
  .nav-links.mobile-open a:hover {
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: #11131d;
  }

  .hero { padding: 12px 0 18px !important; }
  .hero-grid { display: flex !important; flex-direction: column !important; gap: 14px !important; }
  .hero-grid > .hero-card,
  .hero-grid > .hero-card.hero-slider {
    order: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    margin: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    background: url('../assets/banner.svg') center/cover no-repeat, linear-gradient(135deg, rgba(255,183,77,.12), rgba(255,255,255,.05)) !important;
    border: 1px solid var(--line) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .hero-grid > .fade-up:not(.hero-card) { order: 2 !important; }
  .hero-track,
  .hero-slide,
  .hero-slide img,
  .hero-card.hero-slider img {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .hero-track { display: flex !important; }
  .hero-slide { display: block !important; flex: 0 0 100% !important; min-width: 100% !important; }
  .hero-slide img,
  .hero-card.hero-slider img {
    width: 100% !important;
    object-fit: cover !important;
    transform: none !important;
  }
  .hero-floating {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 9px 11px !important;
    border-radius: 14px !important;
    background: rgba(9, 11, 18, .82) !important;
    backdrop-filter: blur(10px);
  }
  .hero-floating strong { font-size: 12px !important; }
  .hero-floating span { font-size: 11px !important; }
  .slider-btn {
    display: grid !important;
    top: 50% !important;
    width: 30px !important;
    height: 30px !important;
    font-size: 24px !important;
  }
  .hero-slider.single .slider-btn { display: none !important; }
  .slider-dots { bottom: 8px !important; }
  .hero-slider.single .slider-dots { display: none !important; }
}


/* v40: halaman login bagian atas cukup logo + nama toko, badge AI dihapus */
.auth-art .badge { display: none !important; }
.auth-art .brand { gap: 10px; align-items: center; }
.auth-hero-copy { display: grid; gap: 8px; margin-top: 18px; }
@media (max-width: 760px) {
  .auth-art .brand { padding: 7px 11px 7px 7px; border-radius: 18px; }
  .auth-hero-copy { margin-top: 20px; }
}


/* v42: mobile header desktop-like + catatan checkout lebih rapi */
@media (max-width: 760px) {
  .navbar .container.nav-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 12px 0 !important;
  }

  .mobile-menu-btn {
    order: 1;
    flex: 0 0 44px;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
  }

  .navbar .brand {
    order: 2;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 162px);
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .navbar .brand img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
  }

  .navbar .brand span,
  #storeName {
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .nav-actions {
    order: 3;
    margin-left: auto !important;
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .nav-actions .btn {
    min-height: 42px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  #userBtn {
    max-width: 92px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding: 0 12px !important;
  }

  #cartToggle {
    min-width: 64px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
  }

  #cartToggle span {
    font-size: 13px !important;
  }

  .drawer-footer .help,
  .checkout-sticky + .help {
    display: block !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    margin-top: 6px !important;
    white-space: normal !important;
  }
}


/* v44: Redeem code ditambahkan tanpa mengubah tampilan utama website */
.redeem-fab {
  position: fixed;
  right: 20px;
  bottom: 57px;
  z-index: 85;
  box-shadow: var(--shadow);
}
.redeem-card { width: min(540px, 100%); }
.redeem-body { display: grid; gap: 14px; }
.redeem-input { text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.redeem-result {
  padding: 16px;
  border-radius: 18px;
  background: rgba(247,200,95,.09);
  border: 1px solid rgba(247,200,95,.20);
}
.redeem-result strong {
  display: block;
  margin: 5px 0 6px;
  font-size: clamp(24px, 5vw, 34px);
  letter-spacing: .04em;
}
.redeem-result p { margin: 0; color: var(--muted); line-height: 1.55; }
.redeem-actions { justify-content: flex-start; }
.redeem-modal .modal-close-btn {
  margin-left: auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
  font-size: 24px;
  display: grid;
  place-items: center;
}
@media (max-width: 760px) {
  .redeem-fab {
    right: 12px;
    bottom: 45px;
    border-radius: 999px;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 12px;
    box-shadow: 0 10px 24px rgba(17,24,39,.18);
    background: linear-gradient(135deg, var(--gold), var(--orange)) !important;
    color: #11131d !important;
  }
  .cart-fab { bottom: 84px !important; }
  .chat-toggle { bottom: 8px !important; }
  .redeem-card { max-height: calc(100vh - 24px); overflow: auto; }
}


/* v45: rapikan floating quick actions + tombol login fallback */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.floating-actions .cart-fab,
.floating-actions .redeem-fab,
.floating-actions .chat-toggle {
  position: static !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  width: auto;
  max-width: min(240px, calc(100vw - 24px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.floating-actions .cart-fab span,
.floating-actions .redeem-fab span,
.floating-actions .chat-toggle span {
  white-space: nowrap;
}

#userBtn {
  text-decoration: none;
}

@media (max-width: 760px) {
  .floating-actions {
    right: 12px;
    bottom: 14px;
    gap: 8px;
  }

  .floating-actions .cart-fab,
  .floating-actions .redeem-fab,
  .floating-actions .chat-toggle {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 12px;
    max-width: calc(100vw - 24px);
  }

  .drawer {
    bottom: 178px;
    max-height: min(72vh, 620px);
  }

  .chat-widget {
    bottom: 178px;
    height: min(68vh, 580px);
  }
}
