/* =====================================================================
   EKAPRATAMA STORE — STYLE
   Ubah warna utama di :root
   ===================================================================== */
:root {
  --navy: #17181c; --navy-2: #26282e; --navy-3: #3a3d45;
  --accent: #d7141f; --accent-d: #b00f18; --accent-soft: #fdeceb; --gold: #e0a72c;
  --bg: #f3f5f8; --card: #fff; --line: #e3e7ee; --line-2: #eef1f5;
  --ink: #101828; --text: #344054; --muted: #6b7689;
  --ok: #15803d; --ok-soft: #e8f6ee; --warn: #b45309; --warn-soft: #fff6e0;
  --bad: #c62828; --bad-soft: #fdecec; --info: #1d4ed8; --info-soft: #eaf0ff;
  --r: 10px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-lg: 0 12px 32px rgba(11,37,69,.16);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.55; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--navy-3); text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .r { text-align: right; }
.hidden { display: none !important; }

/* ---------- Tombol & form ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--r);
  padding: 10px 18px; font-weight: 600; cursor: pointer; transition: .15s; white-space: nowrap; background: #fff; line-height: 1.2; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover:not(:disabled) { background: var(--accent-d); }
.btn-navy { background: var(--navy); color: #fff; } .btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); } .btn-ghost:hover { border-color: #c7cdd8; background: #fafbfc; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: #fff; } .btn-outline:hover { background: var(--accent-soft); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-sm { padding: 7px 12px; font-size: 13px; } .btn-lg { padding: 14px 24px; font-size: 16px; } .btn-block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: #fff; outline: none; transition: .15s; }
.input:focus { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(58,61,69,.15); }
textarea.input { min-height: 90px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- Header ---------- */
.topbar { background: var(--navy); color: #c8d3e6; font-size: 12.5px; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; }
.header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand-text { font-weight: 800; color: var(--navy); line-height: 1.1; font-size: 15px; }
.brand-text small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 600; font-size: 14px; }
.nav a:hover, .nav a.active { color: var(--navy); background: var(--line-2); }
.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; }
.search input { flex: 1; border: 2px solid var(--accent); border-right: 0; border-radius: var(--r) 0 0 var(--r); padding: 9px 14px; outline: none; min-width: 0; }
.search button { border: 0; background: var(--accent); color: #fff; padding: 0 16px; border-radius: 0 var(--r) var(--r) 0; cursor: pointer; }
.head-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; color: var(--navy); background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--line-2); }
.icon-btn svg { width: 24px; height: 24px; }
.badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.demo-bar { background: #fff6e0; color: #7a4a00; font-size: 13px; text-align: center; padding: 7px 12px; border-bottom: 1px solid #f3dfae; }

/* ---------- Bottom nav (HP / aplikasi) ---------- */
.bottom-nav { display: none; }
@media (max-width: 820px) {
  .nav, .topbar, .brand-text small { display: none; }
  .header .container { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 10px; }
  .brand img { height: 30px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .head-actions .hide-m { display: none; }
  body.has-bnav { padding-bottom: 68px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; background: #fff; border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); font-weight: 600; position: relative; }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--accent); }
  .bottom-nav .badge { top: -4px; right: calc(50% - 22px); }
}

/* ---------- Hero & section profil ---------- */
.hero { position: relative; color: #fff; background: radial-gradient(1200px 500px at 85% 10%, rgba(215,20,31,.28), transparent 60%), linear-gradient(135deg, var(--navy) 0%, #0c0c0e 100%); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: #c9d4e6; font-size: 17px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.08); }
.hero-img { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); aspect-ratio: 4/4.4; background: #26282e; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; gap: 12px; align-items: center; padding: 20px 16px; border-right: 1px solid var(--line-2); }
.trust-item:last-child { border-right: 0; }
.trust-item .ti-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-item b { display: block; color: var(--ink); font-size: 14px; } .trust-item span { font-size: 12.5px; color: var(--muted); }
.section { padding: 64px 0; } .section-alt { background: #fff; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-img { border-radius: var(--r-lg); overflow: hidden; background: #e9eef5; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--line-2); color: var(--navy); font-weight: 600; font-size: 13px; }
.vm { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.vm-card { border-radius: var(--r-lg); padding: 28px; background: var(--navy); color: #c9d4e6; }
.vm-card h3 { color: #fff; } .vm-card .big { font-size: 20px; color: #fff; font-weight: 700; line-height: 1.4; }
.vm-list { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.vm-list ol { margin: 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 14px; }
.vm-list li { counter-increment: m; display: flex; gap: 14px; align-items: flex-start; }
.vm-list li::before { content: counter(m, decimal-leading-zero); font-weight: 800; color: var(--accent); font-size: 14px; min-width: 24px; padding-top: 1px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.feature .f-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature h3 { font-size: 17px; } .feature p { margin: 0; font-size: 14px; color: var(--muted); }
.network { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.network-img { border-radius: var(--r-lg); overflow: hidden; background: #0c0c0e; }
.cta-band { background: linear-gradient(135deg, var(--accent) 0%, #8f0c13 100%); color: #fff; border-radius: 20px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; } .cta-band p { margin: 0; color: #ffe7d8; }
.cta-band .btn { background: #fff; color: var(--accent-d); }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.contact-item .ci-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item b { display: block; color: var(--ink); }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: #e9eef5; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
.footer { background: #0c0c0e; color: #9fb0c8; padding: 48px 0 24px; font-size: 14px; }
.footer .container > .fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 15px; } .footer a { color: #c9d4e6; display: block; padding: 3px 0; }
.footer .copy { border-top: 1px solid #26282e; margin-top: 32px; padding-top: 18px; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; } .footer-logo img { height: 32px; }

/* ---------- Kartu produk (gaya marketplace) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.pcard { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: .15s; color: var(--text); position: relative; }
.pcard:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pcard .pimg { aspect-ratio: 1; background: #f5f7fa; }
.pcard .pimg img { width: 100%; height: 100%; object-fit: contain; }
.pcard .pbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .pname { font-size: 13px; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.pcard .psku { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, Menlo, Consolas, monospace; }
.pcard .pprice { color: var(--accent); font-weight: 800; font-size: 16px; margin-top: auto; padding-top: 4px; }
.pcard .pmeta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.ptag { position: absolute; top: 8px; left: 8px; background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 5px; letter-spacing: .02em; }
.ptag.out { background: #6b7689; }
.pcard.is-out .pimg { opacity: .5; }

/* ---------- Katalog ---------- */
.shop { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; padding: 20px 0 40px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: sticky; top: 84px; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.flist { display: flex; flex-direction: column; gap: 2px; }
.flist button { text-align: left; background: none; border: 0; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text); }
.flist button:hover { background: var(--line-2); } .flist button.on { background: var(--accent-soft); color: var(--accent-d); font-weight: 700; }
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin-bottom: 12px; flex-wrap: wrap; }
.shop-bar select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.mobile-filters { display: none; }
@media (max-width: 820px) {
  .shop { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .filters { display: none; }
  .mobile-filters { display: block; margin-bottom: 10px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
.load-more { display: flex; justify-content: center; margin-top: 20px; }
.empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty svg { width: 56px; height: 56px; color: #b7c0cf; margin: 0 auto 12px; }
.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f7f9fb 50%, #eef1f5 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Detail produk ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--accent); }
.pdetail { display: grid; grid-template-columns: 440px 1fr; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.gallery .main { aspect-ratio: 1; background: #f5f7fa; border-radius: var(--r); overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery .thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; background: #f5f7fa; }
.gallery .thumbs img.on { border-color: var(--accent); }
.pinfo h1 { font-size: 21px; font-weight: 700; line-height: 1.4; }
.pinfo .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.pinfo .meta b { color: var(--ink); }
.price-box { background: #fafbfc; border-radius: var(--r); padding: 14px 18px; margin-bottom: 18px; }
.price-box .price { font-size: 30px; font-weight: 800; color: var(--accent); }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 18px; }
.spec td { padding: 8px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec td:first-child { color: var(--muted); width: 150px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.qty button { width: 38px; height: 38px; border: 0; background: #fff; cursor: pointer; font-size: 18px; color: var(--navy); }
.qty button:hover { background: var(--line-2); }
.qty input { width: 54px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); outline: none; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.desc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-top: 16px; white-space: pre-line; }
.sticky-buy { display: none; }
@media (max-width: 900px) {
  .pdetail { grid-template-columns: 1fr; padding: 14px; gap: 16px; }
  .pinfo .buy-row { display: none; }
  .sticky-buy { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; background: #fff; border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .sticky-buy .btn { flex: 1; }
}

/* ---------- Kartu umum, keranjang, checkout ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card + .card { margin-top: 14px; }
.card-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.page-title { font-size: 22px; font-weight: 800; margin: 20px 0 14px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; padding-bottom: 40px; }
.two-col .side { position: sticky; top: 84px; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } .two-col .side { position: static; } }
.cart-item { display: grid; grid-template-columns: 24px 72px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #f5f7fa; }
.cart-item .ci-name { font-size: 14px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item .ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0; }
.link-btn:hover { color: var(--bad); }
@media (max-width: 600px) { .cart-item { grid-template-columns: 22px 60px 1fr; } .cart-item img { width: 60px; height: 60px; } .cart-item .ci-right { grid-column: 3; flex-direction: row; justify-content: space-between; align-items: center; } }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 17px; font-weight: 800; color: var(--ink); }
.sum-row.total span:last-child { color: var(--accent); }
.addr-card { border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; position: relative; }
.addr-card.on { border-color: var(--accent); background: var(--accent-soft); }
.addr-card + .addr-card { margin-top: 10px; }
.addr-card .tag { font-size: 11px; font-weight: 700; color: var(--accent-d); border: 1px solid var(--accent); padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
.courier { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; }
.courier + .courier { margin-top: 8px; }
.courier.on { border-color: var(--accent); background: var(--accent-soft); }
.courier b { color: var(--ink); } .courier .c-price { font-weight: 800; color: var(--ink); }
.dest-results { border: 1px solid var(--line); border-radius: var(--r); max-height: 240px; overflow: auto; margin-top: -8px; margin-bottom: 14px; }
.dest-results button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 10px 12px; cursor: pointer; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.dest-results button:hover { background: var(--line-2); }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pay-methods span { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--line-2); color: var(--navy); }

/* ---------- Pesanan ---------- */
.tabs { display: flex; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1; min-width: max-content; border: 0; background: none; padding: 13px 16px; font-weight: 600; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; font-size: 14px; }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .cnt { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.order-card .oc-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; flex-wrap: wrap; }
.order-card .oc-body { padding: 12px 16px; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.order-card .oc-body img { width: 60px; height: 60px; border-radius: 8px; object-fit: contain; background: #f5f7fa; }
.order-card .oc-foot { padding: 12px 16px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.st-wait { background: var(--warn-soft); color: var(--warn); } .st-paid { background: var(--info-soft); color: var(--info); }
.st-ship { background: #efe9ff; color: #5b21b6; } .st-done { background: var(--ok-soft); color: var(--ok); } .st-cancel { background: #f1f2f4; color: #6b7280; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 6px 0 4px; }
.tl-step { text-align: center; position: relative; font-size: 12px; color: var(--muted); }
.tl-step::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.tl-step:first-child::before { display: none; }
.tl-step .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--line); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; position: relative; z-index: 1; font-weight: 700; }
.tl-step.done { color: var(--ink); font-weight: 600; } .tl-step.done .dot { background: var(--ok); } .tl-step.done::before { background: var(--ok); }
.success-hero { text-align: center; padding: 18px 10px; }
.success-hero .ok-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.pay-demo { display: flex; justify-content: space-between; align-items: center; background: var(--line-2); border-radius: var(--r); padding: 14px 16px; margin: 14px 0; }
.pay-demo b { font-size: 22px; color: var(--accent); }

/* ---------- Login ---------- */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 30px 16px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; text-align: center; box-shadow: var(--shadow); }
.auth-card img.logo { height: 44px; margin: 0 auto 18px; }
.btn-google { width: 100%; background: #fff; border: 1px solid #dadce0; color: #3c4043; padding: 12px; font-weight: 600; }
.btn-google:hover { background: #f8f9fa; }
.btn-google svg { width: 20px; height: 20px; }

/* ---------- Modal & toast ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(8,25,47,.55); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.modal { position: relative; background: #fff; border-radius: var(--r-lg); padding: 24px; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal-wide { max-width: 860px; }
.modal-title { margin: 0 0 12px; font-size: 18px; padding-right: 30px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--line-2); cursor: pointer; font-size: 20px; line-height: 1; z-index: 2; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); width: 360px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: 14px; transition: .35s; border-left: 4px solid #8aa0c0; }
.toast-ok { border-left-color: #22c55e; } .toast-err { border-left-color: #ef4444; } .toast-pay { background: var(--ok); border-left-color: #fff; }
.toast.out { opacity: 0; transform: translateX(20px); }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
.loading-block { padding: 60px 0; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Invoice & label cetak ---------- */
.print-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -4px 40px 16px 0; }
.invoice { font-size: 13px; color: #111; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid var(--navy); padding-bottom: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.inv-logo { height: 40px; margin-bottom: 8px; }
.inv-title h2 { color: var(--navy); letter-spacing: .1em; margin: 0 0 6px; font-size: 26px; text-align: right; }
.inv-title td { padding: 2px 0 2px 14px; } .inv-title td:first-child { color: #666; padding-left: 0; }
.inv-to { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.inv-to small { color: #666; }
.inv-items { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.inv-items th { background: var(--navy); color: #fff; text-align: left; padding: 8px; font-size: 12px; }
.inv-items td { padding: 8px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.inv-items .r, .inv-items th.r { text-align: right; }
.inv-sum { margin-left: auto; width: 320px; max-width: 100%; border-collapse: collapse; }
.inv-sum td { padding: 6px 0; } .inv-sum td:last-child { text-align: right; }
.inv-sum .grand td { border-top: 2px solid var(--navy); font-weight: 800; font-size: 16px; padding-top: 10px; }
.inv-note { margin-top: 24px; color: #555; font-style: italic; }
.ship-label { width: 100%; max-width: 420px; margin: 0 auto; border: 2px solid #000; font-size: 13px; color: #000; }
.sl-top { display: flex; justify-content: space-between; padding: 10px; border-bottom: 2px solid #000; font-size: 15px; }
.sl-box { padding: 10px; border-bottom: 1px dashed #000; } .sl-box p { margin: 2px 0; } .sl-box h3 { margin: 2px 0; font-size: 18px; }
.sl-box small { font-weight: 700; letter-spacing: .08em; }
.sl-resi { padding: 10px; font-size: 18px; font-weight: 800; text-align: center; letter-spacing: .05em; }
@media print {
  body * { visibility: hidden !important; }
  .print-area, .print-area * { visibility: visible !important; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; }
  .modal-wrap { position: static; background: none; } .modal { box-shadow: none; max-height: none; overflow: visible; }
  @page { margin: 12mm; }
}

/* ---------- Responsif profil ---------- */
@media (max-width: 900px) {
  .hero .container, .about, .network, .contact, .vm { grid-template-columns: 1fr; }
  .hero .container { padding-top: 36px; padding-bottom: 40px; gap: 28px; }
  .hero-img { aspect-ratio: 16/11; }
  .trust .container { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item { padding: 14px 10px; border-bottom: 1px solid var(--line-2); }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .footer .container > .fgrid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .cta-band { padding: 28px; }
}
@media (max-width: 560px) {
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .inv-to { grid-template-columns: 1fr; }
  .modal { padding: 18px; }
  .trust-item .ti-ic { width: 36px; height: 36px; }
}

.brand-fallback { font-weight: 800; color: var(--navy); font-size: 16px; line-height: 1.1; }
.brand-fallback small { display: block; font-size: 10.5px; color: var(--accent); letter-spacing: .08em; }
