/* JUBELDL — design system themed to the logo (azure #1683D6 / navy #0E2A54 / gold #E7A81E).
   Brand token names below are kept for stability; only their values changed from the
   original pink/maroon palette to the ice-blue + navy + gold of the JUBELDL crest. */

:root {
  --pink: #1683D6;        /* primary azure — buttons, links, active states */
  --pink-dark: #0B5FA6;   /* deep azure — pressed shadow, hover text */
  --pink-mid: #46A6E6;    /* mid azure — gradients */
  --pink-soft: #8FCBEF;   /* soft ice-blue — hover borders, highlights */
  --maroon: #0E2A54;      /* navy — footer, buyback, dark banners, gate */
  --gold: #E7A81E;        /* logo gold — DL wordmark accent, hot badge */
  --gold-dark: #B8830F;   /* deep gold — gold-button shadow */
  --ink: #0C2340;         /* deep navy ink — primary text */
  --bg: #EFF6FD;          /* light ice background */
  --card: #FFFFFF;
  --line: #C9E1F4;        /* light blue border */
  --line-soft: #E2EFFA;   /* softer blue border */
  --fill: #F4FAFE;        /* light blue fill */
  --fill-pink: #E9F3FC;   /* light blue tinted fill (name kept) */
  --muted: #5C7186;       /* blue-gray text */
  --muted-2: #7E93A6;
  --muted-3: #A9BDCE;
  --sub: #405A72;         /* body sub text — blue-gray */
  --green: #0E9F6E;
  --green-dark: #0E7A57;
  --green-bg: #E9FBF3;
  --green-border: #B7EAD5;
  --amber: #A66A00;
  --amber-bg: #FFF6E5;
  --amber-border: #FBE0AE;
  --red: #C42222;
  --red-2: #E02424;
  --red-bg: #FDECEC;
  --red-border: #F7C4C4;
  --wa: #25D366;
  --wa-dark: #148A43;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(900px 420px at 85% -8%, rgba(22,131,214,.16), transparent 62%),
              radial-gradient(700px 360px at 5% 4%, rgba(143,203,239,.22), transparent 60%),
              var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-dark); }
img { image-rendering: pixelated; }
input, button, select { font-family: inherit; }
input:focus, select:focus { outline: none; }
::placeholder { color: var(--muted-3); }

h1, h2, h3 { font-family: 'Archivo', sans-serif; }

@keyframes bl-pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes bl-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes bl-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bl-spin { to { transform: rotate(360deg); } }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.rise { animation: bl-rise .25s ease; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.9);
  border-bottom: 2px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pink); image-rendering: auto; }
.brand-name { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -.01em; line-height: 1; }
.brand-name span { color: var(--gold); }
.brand-tag { font-size: 10.5px; color: #5C7186; font-weight: 700; letter-spacing: .1em; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.nav-item { padding: 9px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 700; cursor: pointer; color: var(--muted); background: transparent; }
.nav-item:hover { background: #E2EFFA; }
.nav-item.on { color: #fff; background: var(--pink); }

/* ---------- promo banner ---------- */
.promo { background: linear-gradient(90deg, var(--pink), var(--pink-mid)); }
.promo-inner { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 9px 20px; font-size: 13px; color: #fff; font-weight: 600; }
.promo-pill { padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--pink-dark); font-weight: 800; font-size: 11px; letter-spacing: .06em; }

/* ---------- generic cards / sections ---------- */
.card { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 22px; }
.section-head { display: flex; align-items: center; gap: 11px; margin-bottom: 15px; }
.step-badge { width: 26px; height: 26px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
h2.section-title { margin: 0; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }

.hint { font-size: 12.5px; color: var(--muted-2); }
.field-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; font-weight: 700; }
.input {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: var(--fill);
  border: 2px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600;
}
.input.world { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.input.ok { border-color: var(--green); }
.input.bad { border-color: var(--red-2); }
.msg-error { margin-top: 9px; font-size: 13px; font-weight: 600; color: var(--red); }

/* ---------- home hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; margin-bottom: 32px; }
.hero-left { flex: 1 1 420px; min-width: 280px; }
.badge-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: #fff; border: 2px solid var(--line); font-size: 12.5px; color: var(--pink-dark); font-weight: 700; margin-bottom: 16px; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: bl-pulse 1.8s infinite; }
.hero h1 { font-size: 46px; line-height: 1.02; margin: 0 0 14px; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
.hero h1 span { color: var(--pink); }
.hero p { margin: 0; color: var(--sub); font-size: 16px; line-height: 1.6; max-width: 520px; }
.hero-stats { flex: 0 1 300px; display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; }
.stat { padding: 15px 16px; border-radius: 16px; background: #fff; border: 2px solid var(--line); }
.stat-value { font-family: 'Archivo', sans-serif; font-size: 23px; font-weight: 800; color: var(--pink); }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 2px; font-weight: 600; }

.columns { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.col-main { flex: 1 1 560px; min-width: 300px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- drop boxes / choice grids ---------- */
.grid-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 9px; }
.choice { padding: 14px 16px; border-radius: 13px; cursor: pointer; background: #fff; border: 2px solid var(--line-soft); }
.choice.on { background: var(--fill-pink); border-color: var(--pink); }
.choice-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.choice.on .choice-title { color: var(--pink-dark); }
.choice-note { font-size: 12px; color: var(--muted-2); margin-top: 3px; }

.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.pay-opt { padding: 11px 12px; border-radius: 11px; cursor: pointer; text-align: center; font-size: 13.5px; font-weight: 700; background: #fff; color: var(--muted); border: 2px solid var(--line-soft); }
.pay-opt.on { background: var(--fill-pink); color: var(--pink-dark); border-color: var(--pink); }

/* ---------- product qty cards ---------- */
.qty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 14px; }
.qcard { position: relative; padding: 18px; border-radius: 18px; background: #fff; border: 2px solid var(--line-soft); }
.qcard.on { background: var(--fill-pink); border-color: var(--pink); }
.qcard.off { opacity: .6; }
.qcard-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.qcard-thumb { width: 76px; height: 76px; flex: none; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.qcard-thumb.dl { background: #EFFCFD; }
.qcard-thumb.bgl { background: #EEF4FF; }
.qcard-thumb img { object-fit: contain; animation: bl-float 4.5s ease-in-out infinite; }
.qcard-thumb.dl img { width: 62px; height: 62px; }
.qcard-thumb.bgl img { width: 70px; height: 70px; animation-delay: .6s; }
.qcard-kind { font-size: 11px; color: var(--muted); letter-spacing: .1em; font-weight: 800; }
.qcard-name { font-family: 'Archivo', sans-serif; font-size: 20px; font-weight: 800; line-height: 1.15; }
.qcard-price { font-size: 13.5px; font-weight: 800; color: var(--pink); margin-top: 3px; }
.qcard-price span { color: var(--muted-2); font-weight: 600; }
.stepper { display: flex; align-items: center; gap: 9px; }
.step-btn { width: 38px; height: 38px; border-radius: 11px; flex: none; cursor: pointer; background: var(--fill-pink); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: var(--pink-dark); }
.step-btn:hover { background: var(--line); }
.qty-input { flex: 1; min-width: 0; padding: 10px; text-align: center; border-radius: 11px; background: var(--fill); border: 2px solid var(--line); color: var(--ink); font-family: 'Archivo', sans-serif; font-size: 17px; font-weight: 800; }
.qcard-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 13px; gap: 10px; flex-wrap: wrap; }
.detail-link { font-size: 12.5px; font-weight: 700; color: var(--pink-dark); cursor: pointer; }
.subtotal { font-size: 14px; font-weight: 800; color: var(--pink); }
.subtotal.zero { color: var(--muted-3); }
.badge-hot { position: absolute; top: -11px; right: 14px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: #0C2340; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; }

/* ---------- buyback banner ---------- */
.buyback { background: var(--maroon); border-radius: 20px; padding: 20px 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; cursor: pointer; }
.buyback:hover { filter: brightness(1.08); }
.buyback img { width: 54px; height: 54px; flex: none; object-fit: contain; }
.buyback-title { font-family: 'Archivo', sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 3px; color: #fff; text-transform: uppercase; }
.buyback-title span { color: var(--pink-soft); }
.buyback-sub { font-size: 13.5px; color: #BFD6EE; line-height: 1.5; }
.buyback-cta { flex: none; padding: 12px 20px; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 800; font-size: 13.5px; }

/* ---------- transaction tabs (Beli / Jual) ---------- */
.trade-tabs { display: flex; gap: 6px; padding: 6px; margin: 4px 0 22px; background: var(--fill-pink); border: 2px solid var(--line); border-radius: 16px; scroll-margin-top: 88px; }
.trade-tab { flex: 1 1 0; padding: 12px 16px; border: 0; border-radius: 11px; cursor: pointer; background: transparent; color: var(--pink-dark); font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .01em; transition: background .15s, color .15s, box-shadow .15s; }
.trade-tab:hover { color: var(--maroon); }
.trade-tab.on { background: var(--pink); color: #fff; box-shadow: 0 3px 0 var(--pink-dark); }

/* ---------- summary sidebar ---------- */
.aside { flex: 1 1 320px; min-width: 280px; position: sticky; top: 92px; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: 0 10px 30px rgba(22,131,214,.14); }
.aside h3 { margin: 0 0 15px; font-size: 17px; font-weight: 800; text-transform: uppercase; }
.rows { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row .k { color: var(--muted); }
.row .v { font-weight: 700; text-align: right; word-break: break-all; }
.row .v.dim { color: var(--muted-3); }
.divider { height: 2px; background: var(--line-soft); margin: 5px 0; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total-amt { font-family: 'Archivo', sans-serif; font-size: 25px; font-weight: 800; color: var(--pink); }
.cta { width: 100%; margin-top: 18px; padding: 14px; border-radius: 13px; border: none; cursor: pointer; background: var(--pink); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 4px 0 var(--pink-dark); }
.cta:hover { filter: brightness(1.06); }
.cta.disabled { background: var(--line-soft); color: var(--muted-3); box-shadow: none; cursor: not-allowed; }
.badges { margin-top: 15px; display: flex; gap: 7px; flex-wrap: wrap; }
.badge { padding: 5px 10px; border-radius: 8px; background: var(--fill-pink); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); font-weight: 700; }

/* ---------- detail ---------- */
.back-link { display: inline-block; font-size: 13.5px; color: var(--muted); cursor: pointer; margin-bottom: 18px; font-weight: 700; }
.detail-media { flex: 1 1 300px; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; min-height: 260px; }
.detail-media img { width: 150px; height: 150px; object-fit: contain; animation: bl-float 4.5s ease-in-out infinite; }
.detail-info { flex: 1 1 340px; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 26px; }
.detail-info h1 { margin: 0 0 8px; font-size: 28px; font-weight: 800; text-transform: uppercase; }
.detail-info p { margin: 0 0 18px; color: var(--sub); font-size: 14.5px; line-height: 1.6; }
.detail-price { font-family: 'Archivo', sans-serif; font-size: 31px; font-weight: 800; color: var(--pink); }
.points { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.point { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: #33506B; }
.point span.ck { color: var(--green); font-weight: 800; }

/* ---------- checkout steps ---------- */
.steps { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.stepbox { flex: 1 1 180px; padding: 13px 15px; border-radius: 14px; background: var(--fill); border: 2px solid var(--line-soft); display: flex; align-items: center; gap: 11px; }
.stepbox.active { background: #fff; border-color: var(--pink); }
.stepbox .num { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; background: var(--line-soft); color: var(--muted-2); }
.stepbox.active .num, .stepbox.done .num { background: var(--pink); color: #fff; }
.stepbox .lab { font-size: 13.5px; font-weight: 700; color: var(--muted-2); }
.stepbox.active .lab { color: var(--ink); }
.stepbox.done .lab { color: #33506B; }
.stepbox .sub { font-size: 11.5px; color: var(--muted-2); }

.wa-preview { padding: 16px; border-radius: 14px; background: var(--fill-pink); border: 2px dashed var(--pink-soft); margin-bottom: 15px; }
.wa-preview .cap { font-size: 11.5px; color: var(--muted-2); font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; }
.wa-preview .text { font-size: 13.5px; color: var(--ink); line-height: 1.7; white-space: pre-line; font-weight: 600; }
.wa-btn { display: block; text-align: center; padding: 15px; border-radius: 13px; background: var(--wa); color: #053B21; font-weight: 800; font-size: 15.5px; box-shadow: 0 4px 0 var(--wa-dark); }
.wa-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: var(--maroon); margin: 15px 0; flex-wrap: wrap; }
.wa-line .l { font-size: 13px; color: #BFD6EE; font-weight: 600; }
.wa-line .r { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 800; color: #fff; }
.wa-steps { display: flex; flex-direction: column; gap: 8px; }
.wa-step { display: flex; gap: 10px; font-size: 13.5px; color: #33506B; line-height: 1.55; }
.wa-step .n { color: var(--pink); font-weight: 800; flex: none; }
.btn-secondary { width: 100%; margin-top: 10px; padding: 11px; border-radius: 13px; cursor: pointer; background: var(--fill-pink); border: 2px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13.5px; }
.btn-secondary:hover { color: var(--ink); }

/* ---------- status ---------- */
.status-search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.status-search .input { flex: 1 1 240px; }
.btn-primary { padding: 13px 26px; border-radius: 12px; border: none; cursor: pointer; background: var(--pink); color: #fff; font-weight: 800; font-size: 14.5px; box-shadow: 0 4px 0 var(--pink-dark); }
.btn-primary:hover { filter: brightness(1.06); }
.alert-error { padding: 14px 16px; border-radius: 12px; background: var(--red-bg); border: 2px solid var(--red-border); color: #B31B1B; font-size: 13.5px; font-weight: 600; }
.status-card { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 26px; margin-top: 20px; }
.status-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 20px; }
.pill { padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 800; border: 2px solid; }
.pill.Berhasil { background: var(--green-bg); color: var(--green-dark); border-color: var(--green-border); }
.pill.Menunggu { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); }
.pill.Gagal { background: var(--red-bg); color: var(--red); border-color: var(--red-border); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 20px; }
.field .fl { font-size: 12px; color: var(--muted-2); margin-bottom: 3px; font-weight: 600; }
.field .fv { font-size: 14.5px; font-weight: 700; word-break: break-all; }
.timeline { display: flex; flex-direction: column; }
.tl { display: flex; gap: 13px; }
.tl-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; margin-top: 4px; background: var(--line); }
.tl-dot.done { background: var(--green); }
.tl-dot.failed { background: var(--red-2); }
.tl-line { width: 2px; flex: 1; background: var(--line-soft); min-height: 26px; }
.tl-line.done { background: var(--green-border); }
.tl-line.last { background: transparent; }
.tl-body { padding-bottom: 14px; }
.tl-label { font-size: 14px; font-weight: 700; color: var(--muted-2); }
.tl-label.done { color: var(--ink); }
.tl-label.failed { color: var(--red); }
.tl-time { font-size: 12.5px; color: var(--muted-2); }

/* ---------- history ---------- */
.history-head { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.filters { display: flex; gap: 7px; flex-wrap: wrap; }
.filter { padding: 8px 15px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; background: #fff; color: var(--muted); border: 2px solid var(--line); }
.filter.on { background: var(--pink); color: #fff; border-color: var(--pink); }
.hist-list { display: flex; flex-direction: column; gap: 11px; }
.hist-row { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 15px 19px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; cursor: pointer; }
.hist-row:hover { border-color: var(--pink-soft); }
.hist-row img { width: 38px; height: 38px; flex: none; object-fit: contain; }
.hist-id { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 800; }
.hist-meta { font-size: 12.5px; color: var(--muted-2); }
.hist-amt { flex: 0 1 130px; text-align: right; font-size: 15px; font-weight: 800; }
.hist-amt.sell { color: var(--green-dark); }
.status-badge { flex: none; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; border: 2px solid; }
.status-badge.Berhasil { background: var(--green-bg); color: var(--green-dark); border-color: var(--green-border); }
.status-badge.Menunggu { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); }
.status-badge.Gagal { background: var(--red-bg); color: var(--red); border-color: var(--red-border); }
.empty { padding: 44px; text-align: center; color: var(--muted-2); font-size: 14px; border: 2px dashed var(--line); border-radius: 16px; }

/* ---------- sell ---------- */
.sell-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.sell-head img { width: 56px; height: 56px; object-fit: contain; }
.sell-head h1 { margin: 0 0 4px; font-size: 29px; font-weight: 800; text-transform: uppercase; }
.sell-head h1 span { color: var(--pink); }
.sell-head p { margin: 0; color: var(--sub); font-size: 14.5px; }
.ticket-ok { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--green-bg); border: 2px solid var(--green-border); font-size: 13px; color: #12684B; line-height: 1.55; }
.wa-btn-sm { display: block; margin-top: 10px; text-align: center; padding: 13px; border-radius: 12px; background: var(--wa); color: #053B21; font-weight: 800; font-size: 14.5px; }

/* ---------- footer ---------- */
.footer { background: var(--maroon); padding: 26px 20px; margin-top: 20px; }
.footer-inner { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: #AECBE8; }
.footer-inner .grow { margin-right: auto; }
.footer-inner a { color: #CFE3F7; }

/* ---------- loading / toast ---------- */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: bl-spin .7s linear infinite; vertical-align: -3px; }
.page-loading { padding: 60px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- page titles (generic) ---------- */
.page-title { margin: 0 0 6px; font-size: 29px; font-weight: 800; text-transform: uppercase; }
.page-sub { margin: 0 0 20px; color: var(--sub); font-size: 14.5px; }

/* ---------- content sections (how it works / article / faq) ---------- */
.section-block { margin-top: 42px; scroll-margin-top: 88px; }
.sec-title { font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 6px; }
.sec-sub { margin: 0 0 20px; color: var(--sub); font-size: 14.5px; max-width: 660px; line-height: 1.6; }

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.how-card { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 20px; }
.how-num { width: 34px; height: 34px; border-radius: 50%; background: var(--fill-pink); border: 2px solid var(--pink); color: var(--pink-dark); font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.how-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.how-card p { margin: 0; color: var(--sub); font-size: 13.5px; line-height: 1.6; }

.article { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 26px; }
.article h2 { font-size: 22px; font-weight: 800; margin: 0 0 12px; letter-spacing: -.01em; }
.article h3 { font-size: 16.5px; font-weight: 800; margin: 22px 0 8px; }
.article p { color: var(--sub); font-size: 14.5px; line-height: 1.75; margin: 0 0 12px; }
.article strong { color: var(--ink); font-weight: 700; }
.article ul { margin: 0 0 12px; padding-left: 20px; }
.article li { color: var(--sub); font-size: 14.5px; line-height: 1.75; margin: 0 0 7px; }
.terms-updated { color: var(--muted); font-size: 13px; font-weight: 700; margin: 0 0 16px; }
.kurs { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.kurs .k-item { flex: 1 1 160px; background: var(--fill-pink); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kurs .k-item .big { font-family: 'Archivo', sans-serif; font-size: 17px; font-weight: 800; color: var(--pink-dark); }
.kurs .k-item .lbl { font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 3px; }

.faq { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 2px 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 800; font-size: 14.5px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 21px; font-weight: 800; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--sub); font-size: 13.5px; line-height: 1.7; }

/* ---------- testimonials (illustrative) ---------- */
.testi-note { display: inline-block; background: var(--amber-bg); border: 1px solid var(--amber-border); color: var(--amber); font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 4px; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.testi-card { margin: 0; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.testi-card blockquote { margin: 0; font-size: 14.5px; line-height: 1.65; color: #33506B; font-weight: 600; }
.testi-card figcaption { display: flex; align-items: center; gap: 11px; }
.testi-card figcaption img { width: 34px; height: 34px; flex: none; object-fit: contain; }
.testi-name { font-family: 'Archivo', sans-serif; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.testi-grow { font-size: 12px; color: var(--muted-2); font-weight: 700; }

/* +Rep wall — real approved counter, submit form, and moderated feed */
.rep-wrap { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 18px; align-items: start; }
.rep-side { display: flex; flex-direction: column; gap: 14px; }
.rep-stat {
  border-radius: 18px; padding: 20px 22px; color: #EAF3FF;
  background: linear-gradient(150deg, var(--maroon), #16407A);
  border: 2px solid #123761; box-shadow: 0 10px 26px rgba(14, 42, 84, .18);
}
.rep-stat-num { font-family: 'Archivo', sans-serif; font-size: 40px; font-weight: 800; line-height: 1; color: var(--gold); }
.rep-stat-lbl { margin-top: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #B8D2F0; }
.rep-form { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 20px; }
.rep-form-title { font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.rep-lbl { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; }
.rep-lbl:first-of-type { margin-top: 0; }
.rep-inp {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 2px solid var(--line);
  color: var(--ink); font-size: 14.5px; font-weight: 600; font-family: inherit; background: #fff;
}
.rep-inp:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(22, 131, 214, .14); }
.rep-area { resize: vertical; min-height: 74px; line-height: 1.55; }
.rep-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rep-chip {
  padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line-soft); background: #fff;
  color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; transition: .12s;
}
.rep-chip:hover { border-color: var(--pink-soft); color: var(--pink-dark); }
.rep-chip.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.rep-note { margin-top: 12px; padding: 9px 12px; border-radius: 11px; font-size: 12.5px; font-weight: 700; }
.rep-note.ok { background: #E7F6EC; border: 1.6px solid #A9DCB8; color: #1B7A3D; }
.rep-note.err { background: #FCECEC; border: 1.6px solid #F0BEBE; color: #B4322F; }
.rep-submit {
  margin-top: 14px; width: 100%; padding: 12px 16px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(90deg, var(--pink), var(--pink-mid)); color: #fff;
  font-family: 'Archivo', sans-serif; font-size: 14.5px; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(22, 131, 214, .28);
}
.rep-submit:hover { filter: brightness(1.04); }
.rep-submit:disabled { opacity: .6; cursor: default; box-shadow: none; }
.rep-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; align-content: start; }
.rep-card {
  margin: 0; background: #fff; border: 2px solid var(--line); border-left: 5px solid var(--pink);
  border-radius: 14px; padding: 15px 16px; display: flex; flex-direction: column; gap: 9px;
}
.rep-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rep-plus {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  background: #FCF0D2; color: var(--gold-dark); font-family: 'Archivo', sans-serif;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.rep-badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.rep-badge.dl { background: #E7F1FB; color: var(--pink-dark); }
.rep-badge.bgl { background: #EAF7FF; color: #1E7BB8; }
.rep-msg { margin: 0; font-size: 13.5px; line-height: 1.6; color: #33506B; font-weight: 600; }
.rep-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rep-grow { font-size: 12px; font-weight: 800; color: var(--ink); }
.rep-date { font-size: 11.5px; font-weight: 600; color: var(--muted-2); }
.rep-empty {
  border: 2px dashed var(--line); border-radius: 16px; padding: 30px 22px; text-align: center;
  color: var(--muted); font-size: 14px; font-weight: 600; background: var(--bg);
}
@media (max-width: 720px) {
  .rep-wrap { grid-template-columns: 1fr; }
  .rep-stat-num { font-size: 34px; }
}

/* accepted payment methods — informational badges (no gateway, arranged in chat) */
.pay-methods { margin-top: 16px; }
.pay-methods .pm-label { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.pay-methods .pm-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-methods .pm { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--fill-pink); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; }

/* security / anti-scam section */
.sec-guard { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 4px; }
.guard-item { display: flex; gap: 13px; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.guard-item .gi-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; background: var(--fill-pink); color: var(--pink-dark); }
.guard-item .gi-ic.warn { background: #FFF4D9; color: #9A6B00; }
.guard-item h3 { margin: 0 0 3px; font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 800; color: var(--ink); }
.guard-item p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.guard-wa { margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--maroon); border-radius: 16px; padding: 15px 18px; color: #fff; }
.guard-wa .gw-num { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.guard-wa .gw-txt { font-size: 12.5px; line-height: 1.5; opacity: .92; margin-top: 2px; }

/* floating WhatsApp button — persistent contact shortcut on every page */
.fab-wa { position: fixed; right: 20px; bottom: 22px; z-index: 55; display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--wa); color: #053B21; font-weight: 800; font-size: 14px; box-shadow: 0 8px 22px rgba(5,59,33,.28); }
.fab-wa svg { width: 22px; height: 22px; flex: none; }
.fab-wa:hover { filter: brightness(1.05); }

/* mobile sticky order bar — hidden on desktop, shown ≤640px so the order total
   and checkout button stay reachable without scrolling to the summary aside */
.mobile-buybar { display: none; }

/* ---------- language selector (ID/EN) ---------- */
.lang-select { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.lang-cap { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang-globe { width: 17px; height: 17px; flex: none; color: var(--pink-dark); }
.lang-cap-txt { display: none; } /* desktop: globe only, keeps header compact — full label shows in mobile dropdown */
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; border: 2px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; flex: none; }
.lang-pill { border: none; background: transparent; cursor: pointer; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--muted); letter-spacing: .03em; }
.lang-pill:hover { color: var(--pink-dark); }
.lang-pill.on { background: var(--pink); color: #fff; }

/* ---------- language gate (first screen: choose ID/EN before viewing) ---------- */
body.gate-open { overflow: hidden; }
.lang-gate { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(160deg, var(--maroon), var(--pink-dark)); overflow-y: auto; }
.lang-gate-card { background: #fff; border-radius: 24px; padding: 34px 28px 30px; width: 100%; max-width: 420px; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.lang-gate-logo { width: 74px; height: 74px; border-radius: 18px; object-fit: cover; }
.lang-gate-brand { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 22px; color: var(--ink); margin-top: 12px; }
.lang-gate-brand span { color: var(--gold); }
.lang-gate-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); margin-top: 14px; }
.lang-gate-title span { color: var(--pink-soft); margin: 0 4px; }
.lang-gate-sub { font-size: 12.5px; color: var(--sub); line-height: 1.55; margin-top: 8px; }
.lang-gate-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.lang-gate-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border: 2px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease; }
.lang-gate-btn:hover { border-color: var(--pink); background: var(--fill-pink); }
.lang-gate-btn:active { transform: translateY(1px); }
.lang-gate-btn.on { border-color: var(--pink); background: var(--fill-pink); }
.lang-gate-code { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 19px; color: #fff; background: var(--pink); width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.lang-gate-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
@media (max-width: 360px) { .lang-gate-btns { grid-template-columns: 1fr; } }

/* ---------- mobile nav hamburger + dropdown ---------- */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; padding: 0 11px; flex: none; }
.nav-toggle span { display: block; height: 2.5px; border-radius: 2px; background: var(--maroon); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-drop { display: none; }

/* ---------- account catalog (Katalog Akun) ---------- */
.acc-shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.acc-shop-card { background: #fff; border: 2px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.acc-shop-card.is-sold { opacity: .72; }
.acc-shop-media { position: relative; aspect-ratio: 4 / 3; background: var(--fill-pink); display: flex; align-items: center; justify-content: center; }
.acc-shop-media img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.acc-shop-noimg { font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--pink-soft); font-size: 18px; letter-spacing: .02em; }
.acc-shop-badge { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px; }
.acc-shop-badge.ready { background: var(--green-bg); color: var(--green-dark); border: 1px solid var(--green-border); }
.acc-shop-badge.sold { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.acc-shop-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.acc-shop-title { margin: 0; font-family: 'Archivo', sans-serif; font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.acc-shop-price { font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--pink-dark); font-size: 18px; }
.acc-shop-desc { margin: 0; font-size: 13px; color: var(--sub); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acc-shop-buy { display: block; margin-top: auto; text-align: center; padding: 12px; border-radius: 12px; background: var(--wa); color: #053B21; font-weight: 800; font-size: 14px; }
.acc-shop-buy:hover { filter: brightness(1.05); color: #053B21; }
.acc-shop-buy.sold { background: var(--fill-pink); color: var(--muted-2); cursor: not-allowed; border: 2px solid var(--line); filter: none; }
.acc-empty { background: #fff; border: 2px dashed var(--line); border-radius: 16px; padding: 28px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- contact us ---------- */
.contact-card { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--maroon); color: #fff; border-radius: 18px; padding: 20px 22px; }
.contact-info { flex: 1 1 240px; min-width: 0; }
.contact-num { font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.contact-txt { font-size: 13px; line-height: 1.55; opacity: .92; margin-top: 4px; }
.foot-link { cursor: pointer; color: #CFE3F7; }
.foot-link:hover { color: #fff; }

/* PWA install pill — rendered only when the browser offers installation */
.pwa-install {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  border: 2px solid var(--pink); background: var(--fill-pink); color: var(--pink-dark);
  font-family: inherit; font-weight: 800; font-size: 13px; cursor: pointer; white-space: nowrap; flex: none;
}
.pwa-install:hover { background: var(--pink); color: #fff; }
.pwa-install svg { width: 16px; height: 16px; flex: none; }
.pwa-mobile { display: none; }

/* ---------- responsive: nav collapses to hamburger ---------- */
@media (max-width: 860px) {
  .header-inner .nav { display: none; }
  .lang-desktop { display: none; }
  .pwa-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-drop.open { display: flex; flex-direction: column; gap: 4px; padding: 4px 20px 16px; }
  .nav-drop .nav-item { padding: 12px 14px; border-radius: 12px; font-size: 15px; }
  .nav-drop .pwa-mobile { display: inline-flex; align-self: stretch; justify-content: center; margin-top: 10px; padding: 12px 14px; font-size: 15px; }
  .nav-drop .lang-select { align-self: stretch; margin-top: 12px; justify-content: space-between; }
  .nav-drop .lang-cap { font-size: 13px; }
  .nav-drop .lang-cap-txt { display: inline; }
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .aside { position: static; }
  .sec-title { font-size: 22px; }

  .mobile-buybar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.97); backdrop-filter: blur(8px);
    border-top: 2px solid var(--line); box-shadow: 0 -8px 24px rgba(14,42,84,.16);
  }
  .mobile-buybar .mb-info { display: flex; flex-direction: column; line-height: 1.15; flex: none; }
  .mobile-buybar .mb-label { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
  .mobile-buybar .mb-total { font-family: 'Archivo', sans-serif; font-size: 19px; font-weight: 800; color: var(--maroon); }
  .mobile-buybar.off .mb-total { color: var(--muted-2); }
  .mobile-buybar .cta { flex: 1 1 auto; width: auto; margin-top: 0; padding: 13px; box-shadow: 0 3px 0 var(--pink-dark); }
  /* keep the fixed bar from covering the footer / FAQ at the end of the page */
  .footer { padding-bottom: 82px; }

  /* raise the floating WhatsApp button above the sticky order bar, icon-only */
  .fab-wa { bottom: 84px; right: 14px; padding: 12px; }
  .fab-wa span { display: none; }
}

/* ---------- standalone pages: bilingual ID/EN toggle ---------- */
/* Active only on the static pages (/akun, /syarat-ketentuan, /kebijakan-privasi),
   which stamp data-lang on <html>. The SPA home never sets data-lang and never
   puts a lang attribute on child elements, so these rules have zero effect there. */
[data-lang="id"] [lang="en"] { display: none; }
[data-lang="en"] [lang="id"] { display: none; }

/* Brand wordmark keeps its ink color even when the brand is an <a> on static pages
   (the ".ID" accent stays pink via the more specific .brand-name span rule). */
.brand-name { color: var(--ink); }

/* Account grid gets a little breathing room below the intro on the /akun page. */
#accGrid { margin-top: 18px; }
