/* Balance Card (Premium glossy) */
.balance-card {
  position: relative; border-radius: var(--radius-lg); padding: 24px 20px;
  color: #fff; background: var(--grad-primary);
  box-shadow: var(--shadow-lg); overflow: hidden;
  margin-bottom: 18px;
}
.balance-card::before { content:''; position:absolute; inset:0; background: var(--grad-shine); }
.balance-card-glow {
  position:absolute; width: 220px; height: 220px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 60%);
  top: -40px; right: -50px; pointer-events: none;
}
.balance-meta { display:flex; align-items:center; justify-content: space-between; position: relative; }
.badge-gold {
  background: rgba(255,255,255,.25); color:#fff; font-size:11px; font-weight:700; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.35);
}
.balance-amount { margin: 14px 0 18px; position:relative; }
.balance-amount small { opacity:.85; font-size: 12px; letter-spacing:.05em; }
.balance-amount h2 { font-size: 30px; margin: 6px 0 0; letter-spacing: -.01em; }
.balance-row { display:flex; gap: 8px; position:relative; }
.balance-row .qa {
  flex: 1; display:flex; align-items:center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,.18); color:#fff; border:1px solid rgba(255,255,255,.25);
  padding: 10px; border-radius: 12px; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(8px); cursor:pointer; text-decoration: none;
  transition: background .15s;
}
.balance-row .qa:hover { background: rgba(255,255,255,.28); }
.balance-card--showcase { padding: 28px; max-width: 360px; transform: rotate(-2deg); }
.balance-card--mini { padding: 20px; }

/* Search */
.search-wrap {
  position: relative; margin: 0 0 16px;
  background: var(--c-surface); border-radius: 16px; padding: 12px 16px 12px 44px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--c-border);
}
.search-wrap i { position:absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-muted); font-size: 18px; }
.search-wrap input { width: 100%; border: none; background: transparent; font-size: 15px; color: var(--c-text); outline:none; }
.search-results { background: var(--c-surface); border:1px solid var(--c-border); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-md); margin-bottom: 16px; max-height: 360px; overflow-y: auto; }
.search-results .item { padding: 10px 12px; border-radius: 10px; display:flex; justify-content: space-between; align-items: center; cursor: pointer; }
.search-results .item:hover { background: var(--c-soft); }

/* Promo slider */
.promo-slider { overflow-x: auto; margin: 8px -16px 18px; padding: 0 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.promo-slider::-webkit-scrollbar { display:none; }
.promo-track { display:flex; gap: 12px; }
.promo-card {
  flex: 0 0 100%; min-width: 100%; max-width: 100%;
  border-radius: var(--radius); overflow: hidden; position: relative;
  scroll-snap-align: center; aspect-ratio: 16/8; box-shadow: var(--shadow-md);
  background: var(--grad-primary); color:#fff; padding: 18px; display:flex; flex-direction: column; justify-content: flex-end;
}
.promo-card::after { content:''; position:absolute; inset:0; background: var(--grad-shine); pointer-events:none; }
.promo-card--img { background-size: cover; background-position: center; padding: 0; }
.promo-card--img::after { display:none; }
.promo-card .badge {
  position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.25); color: #fff;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; backdrop-filter: blur(6px);
}
.promo-card h4 { margin: 0 0 4px; font-size: 16px; }
.promo-card p { margin: 0; opacity: .9; font-size: 13px; }

.block { margin-top: 22px; }
.block-head { display:flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.block-head h3 { margin: 0; font-size: 17px; }

/* Category grid */
.category-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-tile {
  background: var(--c-surface); border:1px solid var(--c-border); border-radius: 16px;
  padding: 14px 8px; text-align: center; box-shadow: var(--shadow-sm);
  display:flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .12s ease;
  text-decoration: none; color: var(--c-text);
}
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile .ic {
  width: 44px; height: 44px; border-radius: 14px; display:grid; place-items: center;
  background: var(--grad-primary); color:#fff; font-size: 20px;
  box-shadow: var(--shadow-sm); position: relative; overflow:hidden;
}
.cat-tile .ic::after { content:''; position:absolute; inset:0; background: var(--grad-shine); }
.cat-tile span { font-size: 12px; font-weight: 600; line-height: 1.2; }
.cat-tile small { font-size: 10px; color: var(--c-muted); }

/* Brand tabs */
.brand-tabs { display:flex; gap: 8px; overflow-x:auto; padding: 4px 0 12px; margin: 0 -16px; padding-left:16px; padding-right:16px; }
.brand-tabs::-webkit-scrollbar { display:none; }
.brand-tab {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  background: var(--c-surface); border:1px solid var(--c-border); color: var(--c-text); font-size: 13px;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.brand-tab.active { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

/* Product list */
.product-list { display:grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.product-card {
  background: var(--c-surface); border:1px solid var(--c-border); border-radius: 14px;
  padding: 14px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .2s;
  text-decoration: none; color: var(--c-text); display:flex; flex-direction: column; justify-content: space-between; min-height: 100px;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-card .pn { font-size: 13px; font-weight: 600; line-height: 1.3; min-height: 36px; }
.product-card .pp { margin-top: 8px; font-weight: 800; color: var(--c-orange-1); }

/* Order */
.order-card { background: var(--c-surface); border:1px solid var(--c-border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-md); }
.order-hero { display:flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.order-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-primary); color:#fff; display:grid; place-items:center; font-size: 22px; box-shadow: var(--shadow-sm); }
.order-hero h2 { margin: 0; font-size: 18px; }
.price-pill { display:inline-block; background: var(--c-soft); color: var(--c-orange-1); font-weight: 800; padding: 4px 10px; border-radius: 999px; font-size: 13px; margin-top: 6px; }

/* Card */
.card { background: var(--c-surface); border:1px solid var(--c-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }

/* Page head */
.page-head { display:flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.page-head h1 { font-size: 22px; margin: 0; }
.page-head p { margin: 2px 0 0; font-size: 13px; }
.back-link { width:40px; height:40px; border-radius: 12px; background: var(--c-surface); border:1px solid var(--c-border); display:grid; place-items:center; color: var(--c-text); }

/* Nominal grid */
.nominal-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.nominal-tile { padding: 14px 8px; border-radius: 12px; background: var(--c-surface); border:1px solid var(--c-border); cursor:pointer; font-weight: 700; font-size: 14px; color: var(--c-text); text-align: center; transition: all .15s; }
.nominal-tile.selected { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

/* Tx list */
.tx-list { display:flex; flex-direction: column; gap: 8px; }
.tx-list a.tx-row { color: inherit; text-decoration: none; }
.tx-row {
  background: var(--c-surface); border:1px solid var(--c-border); border-radius: 14px; padding: 12px 14px;
  display:flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); cursor: pointer;
  text-decoration: none; color: var(--c-text);
}
.tx-row .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--c-soft); color: var(--c-orange-1); display:grid; place-items:center; font-size: 18px; flex: 0 0 auto; }
.tx-row .info { flex: 1 1 0; min-width: 0; overflow: hidden; }
.tx-row .info b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word; font-size: 14px; line-height: 1.35;
}
.tx-row .info small {
  display: block; color: var(--c-muted); font-size: 12px; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tx-row .right { text-align: right; flex: 0 0 auto; min-width: 80px; padding-left: 6px; }
.tx-row .right b { display: block; font-size: 14px; white-space: nowrap; }
.tx-row .right small { font-size: 11px; }
.tx-row .right .status-pill { margin-top: 4px; }
.status-pill { display:inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.s-success { background: #E6F8EE; color: #18A957; }
.s-failed, .s-refunded { background: #FDE9E8; color: #E0322B; }
.s-pending, .s-processing { background: #FFF1D6; color: #B97800; }
.s-partial { background: #E8F4FE; color: #1A6FA8; }
.s-expired { background: #ECECEC; color: #777; }

/* Profile (avatar styles live in main.css under .profile-avatar-wrap) */
.kv { display:flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--c-border); font-size: 14px; }
.kv:last-child { border: none; }
.kv span { color: var(--c-muted); }

/* Seg tabs */
.seg-tabs { display:flex; gap: 6px; background: var(--c-surface); padding: 6px; border-radius: 14px; border: 1px solid var(--c-border); margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.seg { flex: 1; padding: 10px; border-radius: 10px; border: none; background: transparent; color: var(--c-muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.seg.active { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-sm); }

/* Loading */
.loading { display:flex; justify-content: center; padding: 24px; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--c-border); border-top-color: var(--c-orange-1); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast-wrap { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 100; display:flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow-md); font-size: 14px; min-width: 220px; max-width: 360px; }
.toast.ok { border-left: 4px solid var(--c-success); }
.toast.err { border-left: 4px solid var(--c-danger); }
.toast.info { border-left: 4px solid var(--c-info); }

/* QR */
.qr-box { padding: 16px; background: #fff; border-radius: 12px; display: inline-block; box-shadow: var(--shadow-sm); }
.qr-box img { width: 240px; height: 240px; }

/* ============================================================
 * Top Up & PPOB hub
 * ============================================================ */
.hub-card {
  background: var(--c-surface); border:1px solid var(--c-border);
  border-radius: 22px; padding: 18px 14px 16px; box-shadow: var(--shadow-sm);
}
.hub-card-head {
  display:flex; align-items:center; justify-content: space-between;
  margin-bottom: 14px; padding: 0 4px;
}
.hub-card-title { font-size: 16px; font-weight: 700; display:inline-flex; align-items:center; gap:8px; }
.hub-card-title i { color: var(--c-primary); }

.hub-grid {
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px 6px;
}
.hub-tile {
  display:flex; flex-direction:column; align-items:center; gap: 6px;
  text-decoration:none; color: var(--c-text);
  padding: 6px 4px; border-radius: 14px;
  transition: transform .15s ease;
  position: relative;
}
.hub-tile:hover { transform: translateY(-2px); }
.hub-tile-ic {
  width: 56px; height: 56px; border-radius: 50%; display:grid; place-items:center;
  font-size: 26px; transition: box-shadow .15s ease;
}
.hub-tile:hover .hub-tile-ic { box-shadow: 0 6px 16px -6px rgba(0,0,0,.18); }
.hub-tile-name { font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align:center; }
.hub-tile-badge {
  position:absolute; top: -2px; right: 6px;
  background: #FEE2E2; color: #B91C1C;
  font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 999px;
}
.hub-tile.is-soon { opacity: .85; }

/* ----- Hub page ----- */
.page-head { display:flex; align-items:center; gap: 12px; padding: 4px 0 18px; }
.page-head .back-link {
  width: 38px; height: 38px; border-radius: 12px; background: var(--c-surface);
  border:1px solid var(--c-border); display:grid; place-items:center; color: var(--c-text);
  text-decoration:none; font-size: 18px;
}
.page-head h1 { margin: 0; font-size: 20px; }
.page-head .muted { margin: 2px 0 0; font-size: 13px; }

.hub-step { background: var(--c-surface); border:1px solid var(--c-border); border-radius: 18px; padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.hub-step-head { display:flex; align-items:center; gap: 10px; margin-bottom: 12px; }
.hub-step-head h3 { margin: 0; font-size: 15px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; display:grid; place-items:center; font-weight: 700; font-size: 13px; }

.brand-chips { display:flex; flex-wrap:wrap; gap: 8px; }
.brand-chip {
  --ac: var(--c-primary);
  background: var(--c-bg); border:1px solid var(--c-border); color: var(--c-text);
  font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: all .15s ease;
}
.brand-chip small { color: var(--c-muted); font-weight: 500; margin-left: 2px; }
.brand-chip.active { background: var(--ac); color:#fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.brand-chip.active small { color: rgba(255,255,255,.85); }

.game-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.game-chip {
  --ac: var(--c-primary);
  display:flex; flex-direction:column; align-items:center; gap: 6px;
  background: var(--c-bg); border:2px solid transparent; border-radius: 14px; padding: 12px 8px; cursor: pointer;
  transition: all .15s ease;
}
.game-chip-ic { width: 44px; height: 44px; border-radius: 12px; display:grid; place-items:center; font-size: 22px; }
.game-chip b { font-size: 12.5px; line-height: 1.2; text-align:center; }
.game-chip small { font-size: 10.5px; color: var(--c-muted); }
.game-chip.active { border-color: var(--ac); background: var(--c-surface); }

.hub-input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border:1px solid var(--c-border); background: var(--c-bg); color: var(--c-text);
  font-size: 15px; outline: none; transition: border .15s ease, box-shadow .15s ease;
}
.hub-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(139,105,20,.12); }
.hub-hint { margin: 6px 2px 0; color: var(--c-muted); font-size: 12px; }

.field { display:block; margin-bottom: 10px; }
.field span { display:block; font-size: 12.5px; color: var(--c-muted); margin-bottom: 4px; padding-left: 2px; }
.field select { width:100%; padding: 12px 14px; border-radius: 12px; border:1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); font-size: 14px; }

.nominal-grid.hub-nominal { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.nominal-tile {
  background: var(--c-bg); border:2px solid var(--c-border); border-radius: 14px;
  padding: 14px 10px; cursor:pointer; text-align:left; display:flex; flex-direction:column; gap: 4px;
  color: var(--c-text);
  transition: all .15s ease;
}
.nominal-tile b { font-size: 14px; color: var(--c-text); }
.nominal-tile span { color: var(--c-primary); font-weight: 700; font-size: 15px; }
.nominal-tile.selected,
.nominal-grid .nominal-tile.selected {
  border-color: var(--c-primary);
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.nominal-tile.selected b,
.nominal-tile.selected span { color: #fff; }

.hub-products { display:grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.product-tile {
  background: var(--c-bg); border:2px solid var(--c-border); border-radius: 14px;
  padding: 12px; cursor:pointer; text-align:left; display:flex; flex-direction:column; gap: 6px;
  color: var(--c-text);
  transition: all .15s ease;
}
.product-tile-img {
  width: 100%; aspect-ratio: 16/10; border-radius: 10px;
  background: var(--c-soft) center/cover no-repeat; margin-bottom: 4px;
  display: grid; place-items: center; color: var(--c-muted); font-size: 22px;
}
.product-tile b { font-size: 13px; line-height: 1.25; color: var(--c-text); }
.product-tile span { color: var(--c-primary); font-weight: 700; font-size: 14px; }
.product-tile.selected {
  border-color: var(--c-primary);
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.product-tile.selected b,
.product-tile.selected span { color: #fff; }

.nominal-tile-img {
  width: 100%; aspect-ratio: 16/9; border-radius: 8px;
  background: var(--c-soft) center/cover no-repeat; margin-bottom: 4px;
}

.smm-list { display:flex; flex-direction:column; gap: 6px; max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.smm-row {
  width: 100%; display:flex; align-items:center; justify-content: space-between; gap: 10px;
  background: var(--c-bg); border:1px solid var(--c-border); border-radius: 12px; padding: 10px 12px;
  cursor:pointer; text-align:left; color: var(--c-text); transition: all .12s ease;
}
.smm-row:hover { background: var(--c-surface); }
.smm-row.selected {
  border-color: var(--c-primary);
  background: var(--grad-primary);
  color: #fff;
}
.smm-row.selected .smm-row-name b,
.smm-row.selected .smm-row-name small,
.smm-row.selected i { color: #fff; }
.smm-row.selected .smm-row-name small { color: rgba(255,255,255,.85); }
.smm-row-name b { display:block; font-size: 13px; line-height: 1.3; color: var(--c-text); }
.smm-row-name small { color: var(--c-muted); font-size: 11.5px; }
.smm-row i { color: var(--c-muted); font-size: 18px; flex-shrink:0; }

.smm-detail h4 { margin: 0 0 4px; font-size: 14px; }
.smm-meta { display:flex; flex-wrap:wrap; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--c-muted); }
.smm-meta b { color: var(--c-text); margin-right: 4px; }

.order-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 92px;
  width: calc(100% - 24px); max-width: 460px;
  z-index: 55;
  background: var(--c-surface); border:1px solid var(--c-border); border-radius: 18px;
  padding: 12px 14px; display:flex; align-items:center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -6px 22px -10px rgba(0,0,0,.18), var(--shadow-md);
  animation: lt-slide-up-centered .3s ease both;
}
.order-bar-info { min-width: 0; }
.order-bar-info small { display:block; font-size: 11px; color: var(--c-muted); }
.order-bar-info b { font-size: 16px; color: var(--c-primary); }
.order-bar .btn { white-space: nowrap; padding: 10px 14px; font-size: 14px; }
.has-bottomnav.has-orderbar { padding-bottom: 180px; }
.has-orderbar { padding-bottom: 180px; }

.form-msg.err { color: #B91C1C; }
.form-msg.ok { color: #047857; }
.form-msg { margin: 10px 2px 0; font-size: 13px; }

.hub-empty { text-align:center; padding: 30px 18px; }
.hub-empty-ic { width: 72px; height: 72px; border-radius: 50%; display:grid; place-items:center; font-size: 32px; margin: 0 auto 14px; }
.hub-empty h3 { margin: 0 0 6px; font-size: 17px; }
.hub-empty p { margin: 0 0 18px; }

/* ===== Card-grid hubs (Top Up Game, Apk Premium) ===== */
.bg-search {
  position: relative; margin-bottom: 12px;
}
.bg-search i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--c-muted); font-size: 18px;
}
.bg-search input {
  width: 100%; padding: 13px 14px 13px 42px; border-radius: 14px;
  border: 1px solid var(--c-border); background: var(--c-surface);
  color: var(--c-text); font-size: 14px; outline: none;
  box-shadow: var(--shadow-sm);
}
.bg-search input:focus { border-color: var(--c-primary); }

.genre-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.genre-chips::-webkit-scrollbar { display: none; }
.genre-chip {
  --ac: var(--c-primary); --bg: var(--c-soft);
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  color: var(--c-text); font-size: 13px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  transition: all .15s ease; white-space: nowrap;
}
.genre-chip i { font-size: 15px; color: var(--c-muted); }
.genre-chip.active {
  background: var(--ac); color: #fff; border-color: transparent;
  box-shadow: 0 4px 12px -4px var(--ac);
}
.genre-chip.active i { color: #fff; }

.brand-card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
@media (min-width: 480px) { .brand-card-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) { .brand-card-grid { grid-template-columns: repeat(5, 1fr); } }
.brand-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 14px; padding: 8px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--c-text); transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
}
.brand-card:hover, .brand-card:active { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.brand-card-img {
  position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 10px;
  overflow: hidden; display: grid; place-items: center; background: var(--c-soft);
}
.brand-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  position: relative; z-index: 1;
}
.brand-card-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 22px; opacity: .9;
}
.brand-card:not(.no-img) .brand-card-fallback { display: none; }
.brand-card-name {
  font-size: 13px; font-weight: 600; line-height: 1.25; padding: 0 4px 4px;
  text-align: left; min-height: 2.4em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ==== Rich brand card (used on /games) ==== */
.brand-card--rich {
  padding: 6px;
  border-radius: 16px;
  border: 1.5px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-surface) 0%,
    color-mix(in srgb, var(--c-soft) 35%, var(--c-surface)) 100%);
  transition: all .18s ease;
}
.brand-card--rich:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-border));
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--c-primary) 50%, transparent);
}
.brand-card--rich .brand-card-img {
  border-radius: 12px;
  position: relative;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--c-primary) 18%, var(--c-soft)),
    color-mix(in srgb, var(--c-primary) 4%, var(--c-soft)));
}
.brand-card--rich .brand-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35) 100%);
  z-index: 2; pointer-events: none;
}
.brand-card--rich .brand-card-fallback {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: color-mix(in srgb, var(--c-primary) 75%, var(--c-text));
  text-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.brand-card--rich .brand-card-body {
  padding: 8px 4px 4px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.brand-card--rich .brand-card-name {
  padding: 0;
  font-size: 12.5px;
  font-weight: 700;
  min-height: 2.6em;
  line-height: 1.3;
}
.brand-card-meta {
  display: flex; flex-direction: column;
  gap: 2px;
}
.brand-card-meta .bc-price {
  font-size: 11px;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1.2;
}
.brand-card-meta .bc-price::before {
  content: 'Mulai ';
  font-weight: 600;
  font-size: 9px;
  color: var(--c-muted);
  letter-spacing: .02em;
}
.brand-card-meta .bc-count {
  font-size: 10px;
  color: var(--c-muted);
  font-weight: 600;
}

/* genre chip emoji */
.genre-chip-emoji { font-size: 14px; line-height: 1; }
.genre-chip.active .genre-chip-emoji {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

/* ===== Bottom-sheet ===== */
.sheet {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, .55);
  opacity: 0; transition: opacity .2s ease;
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-card {
  position: relative; width: 100%; max-width: 520px;
  max-height: 92vh; display: flex; flex-direction: column;
  background: var(--c-surface); color: var(--c-text);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,.18);
  transform: translateY(100%); transition: transform .25s cubic-bezier(.2,.8,.25,1);
}
.sheet.open .sheet-card { transform: translateY(0); }
.sheet-grab {
  width: 44px; height: 5px; background: var(--c-border); border-radius: 999px;
  margin: 8px auto 0; cursor: pointer;
}
.sheet-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--c-border);
}
.sheet-head-ic {
  width: 52px; height: 52px; border-radius: 14px; overflow: hidden;
  background: var(--c-soft); display: grid; place-items: center; flex-shrink: 0;
}
.sheet-head-ic img { width: 100%; height: 100%; object-fit: cover; }
.sheet-head-txt { flex: 1; min-width: 0; }
.sheet-head-txt h3 { margin: 0; font-size: 17px; line-height: 1.2; }
.sheet-head-txt small { color: var(--c-muted); font-size: 12px; }
.sheet-x {
  background: rgba(255,255,255,.6); border: 0; width: 32px; height: 32px; border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer; color: #555;
}
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 16px 4px; }
.sheet-section { margin-bottom: 16px; }
.sheet-section h4 {
  margin: 0 0 8px; font-size: 13px; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.sheet-products {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 38vh; overflow-y: auto;
}
.sht-prod {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--c-bg); border: 2px solid var(--c-border); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; text-align: left; color: var(--c-text);
  transition: all .12s ease;
}
.sht-prod:hover { border-color: var(--c-primary); }
.sht-prod-name { min-width: 0; }
.sht-prod-name b { display: block; font-size: 13.5px; line-height: 1.3; }
.sht-prod-name small { display: block; color: var(--c-muted); font-size: 11.5px; margin-top: 2px; }
.sht-prod-price { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sht-prod-price span { color: var(--c-primary); font-weight: 700; font-size: 14px; }
.sht-prod-price i { color: transparent; font-size: 16px; }
.sht-prod.selected {
  border-color: var(--c-primary); background: var(--grad-primary); color: #fff;
}
.sht-prod.selected .sht-prod-name b,
.sht-prod.selected .sht-prod-name small,
.sht-prod.selected .sht-prod-price span { color: #fff; }
.sht-prod.selected .sht-prod-price small { color: rgba(255,255,255,.85); }
.sht-prod.selected .sht-prod-price i { color: #fff; }
.sheet-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-top: 1px solid var(--c-border); background: var(--c-surface);
}
.sheet-foot .btn { padding: 11px 16px; font-size: 14px; }

/* Mobile-tighter hub grid */
@media (max-width: 380px) {
  .hub-grid { gap: 12px 4px; }
  .hub-tile-ic { width: 50px; height: 50px; font-size: 22px; }
  .hub-tile-name { font-size: 11.5px; }
}

/* ============== New Order page (SMM panel) ============== */
.order-card { background: var(--c-surface); border:1px solid var(--c-border); border-radius: 18px; padding: 18px 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm, 0 2px 8px -4px rgba(0,0,0,.08)); }
.order-card .field { display:block; margin-bottom: 16px; position: relative; }
.order-card .field-label { display:block; font-weight:600; font-size: 14px; color: var(--c-text); margin-bottom: 6px; }
.order-card .field-label .req { color: #DC2626; margin-left: 2px; }
.order-card .field-hint { display:block; margin-top: 6px; font-size: 12px; color: var(--c-muted); }

.select-trigger {
  width: 100%; display:flex; align-items:center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--c-border); background: var(--c-surface);
  font-size: 15px; color: var(--c-text); cursor: pointer; transition: border-color .15s, box-shadow .15s;
  text-align: left; min-height: 48px;
}
.select-trigger:not(:disabled):hover { border-color: var(--c-primary, #6366F1); }
.select-trigger[aria-expanded="true"] { border-color: var(--c-primary, #6366F1); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.select-trigger:disabled { opacity: .55; cursor: not-allowed; }
.select-trigger > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-trigger > i { color: var(--c-muted); font-size: 20px; flex-shrink: 0; }
.select-placeholder { color: var(--c-muted); }

.select-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--c-surface); border: 1.5px solid var(--c-primary, #6366F1); border-radius: 12px;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,.18);
  max-height: 340px; display: flex; flex-direction: column; overflow: hidden;
  animation: lt-fade-down .14s ease both;
}
@keyframes lt-fade-down { from { opacity: 0; transform: translateY(-4px);} to { opacity:1; transform: none;} }
.select-search { display:flex; align-items:center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--c-border); }
.select-search i { color: var(--c-muted); }
.select-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 14px; color: var(--c-text); }
.select-list { overflow-y: auto; padding: 4px; }
.select-item {
  width:100%; display:flex; align-items:center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 8px; border:none; background: transparent;
  text-align: left; cursor: pointer; font-size: 14px; color: var(--c-text); font-weight: 500;
}
.select-item:hover { background: var(--c-soft, #F4F1EA); }
.select-item.is-active { background: rgba(99,102,241,.10); color: var(--c-primary, #6366F1); }
.select-item small { color: var(--c-muted); font-weight: 500; flex-shrink: 0; }
.select-item.svc-item { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; }
.select-item.svc-item .svc-name { white-space: normal; line-height: 1.35; word-break: break-word; }
.select-item.svc-item .svc-meta { color: var(--c-muted); font-size: 12px; }
.select-empty, .select-loading { padding: 22px 12px; text-align:center; color: var(--c-muted); font-size: 13px; }
.select-loading .spinner { margin: 0 auto; }

.text-input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--c-border); background: var(--c-surface);
  font-size: 15px; color: var(--c-text); font-family: inherit;
  transition: border-color .15s, box-shadow .15s; min-height: 48px;
}
.text-input:focus { outline: none; border-color: var(--c-primary, #6366F1); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }

.qty-input { display:flex; align-items: stretch; border: 1.5px solid var(--c-border); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.qty-input:focus-within { border-color: var(--c-primary, #6366F1); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.qty-input input { flex: 1; padding: 12px 14px; border: none; outline: none; background: transparent; font-size: 15px; color: var(--c-text); min-height: 48px; }
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input input[type=number] { -moz-appearance: textfield; }
.qty-suffix { display:flex; align-items:center; justify-content:center; padding: 0 18px; background: var(--c-soft, #F4F1EA); color: var(--c-muted); font-weight: 600; font-size: 14px; border-left: 1.5px solid var(--c-border); }

.total-box { background: var(--c-soft, #F4F1EA); border-radius: 12px; padding: 14px 16px; display:flex; align-items:center; justify-content: space-between; margin: 18px 0; }
.total-label { color: var(--c-muted); font-weight: 500; font-size: 14px; }
.total-amount { font-size: 22px; font-weight: 800; color: var(--c-primary, #2A88E0); letter-spacing: -.01em; }

.btn-order { background: var(--grad-primary, linear-gradient(135deg, #7C8CF8, #6366F1)); color: #fff; border: none; padding: 14px 18px; font-size: 16px; border-radius: 14px; display:flex; align-items:center; justify-content:center; gap: 8px; }
.btn-order:disabled { opacity: .55; cursor: not-allowed; }
.btn-order .spin { animation: lt-spin 1s linear infinite; }
@keyframes lt-spin { to { transform: rotate(360deg); } }

.legal-note { margin: 16px 4px 0; font-size: 12px; color: var(--c-muted); line-height: 1.55; text-align: center; }
.legal-note a { color: var(--c-primary, #6366F1); text-decoration: underline; }

.info-card h3 { display:flex; align-items:center; gap: 6px; margin: 0 0 12px; font-size: 15px; color: var(--c-text); }
.info-card h3 i { color: var(--c-primary, #6366F1); }
.info-row { display:flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--c-border); font-size: 13.5px; }
.info-row:last-of-type { border-bottom: none; }
.info-row b { text-align: right; }
.info-note { margin-top: 10px; padding: 10px 12px; background: var(--c-soft, #F4F1EA); border-radius: 10px; font-size: 12.5px; line-height: 1.55; color: var(--c-muted); max-height: 180px; overflow: auto; }

/* ========================================================================
   Hub directory (/hubs) — bigger tile grid
   ======================================================================== */
.hub-grid--lg { grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 8px 0 4px; }
@media (max-width: 520px) { .hub-grid--lg { grid-template-columns: repeat(4, 1fr); gap: 14px 6px; } }
.hub-grid--lg .hub-tile-ic { width: 58px; height: 58px; font-size: 26px; border-radius: 18px; }
.hub-tile-meta { display:block; margin-top: 2px; font-size: 11px; color: var(--c-muted); }

/* ========================================================================
   Daftar Harga (/pricelist)
   ======================================================================== */
.pl-block { margin-bottom: 18px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden; }
.pl-block-head { display:flex; align-items:center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--c-border); background: var(--c-soft); }
.pl-block-head h3 { margin: 0; font-size: 14px; }
.pl-rows { display:flex; flex-direction: column; }
.pl-row { display:grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--c-border); color: inherit; }
.pl-row:last-child { border-bottom: 0; }
.pl-thumb { width:44px; height:44px; border-radius: 10px; background: var(--c-soft); display:flex; align-items:center; justify-content:center; overflow: hidden; color: var(--c-muted); flex-shrink:0; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-thumb i { font-size: 20px; }
.pl-info { min-width: 0; display:flex; flex-direction: column; gap: 2px; }
.pl-info b { font-size: 14px; line-height: 1.25; word-break: break-word; }
.pl-info small { font-size: 11.5px; }
.pl-price { font-weight: 700; font-size: 14px; color: var(--c-orange-1, var(--c-text)); white-space: nowrap; }

/* ========================================================================
   Leaderboard (/leaderboard)
   ======================================================================== */
.lb-podium { display:grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; align-items: end; margin: 14px 0 22px; }
.lb-pos { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; padding: 14px 10px 16px; text-align:center; display:flex; flex-direction:column; align-items:center; gap: 6px; position: relative; }
.lb-pos-1 { padding-top: 24px; transform: translateY(-12px); border-color: #F59E0B; box-shadow: 0 8px 22px -8px rgba(245,158,11,.45); }
.lb-pos-2 { background: linear-gradient(180deg, #F8FAFC, var(--c-surface)); }
.lb-pos-3 { background: linear-gradient(180deg, #FFF7ED, var(--c-surface)); }
.lb-pos.is-me { outline: 2px solid var(--c-orange-1, #F59E0B); }
.lb-rank { font-weight: 800; font-size: 18px; color: var(--c-muted); display:flex; align-items:center; justify-content:center; gap: 4px; }
.lb-pos-1 .lb-rank { font-size: 26px; color: #F59E0B; }
.lb-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--c-soft); display:flex; align-items:center; justify-content:center; overflow: hidden; border: 3px solid var(--c-surface); box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.lb-pos-1 .lb-avatar { width: 70px; height: 70px; border-color: #FCD34D; }
.lb-avatar img { width:100%; height:100%; object-fit: cover; }
.lb-init { font-size: 18px; font-weight: 700; color: var(--c-muted); }
.lb-pos b.lb-name { font-size: 13px; word-break: break-word; }
.lb-pos small.lb-amt { font-size: 12px; color: var(--c-muted); font-weight: 600; }

.lb-list { list-style: none; padding: 0; margin: 0; display:flex; flex-direction:column; gap: 8px; }
.lb-row { display:grid; grid-template-columns: 36px 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px; }
.lb-row.is-me { outline: 2px solid var(--c-orange-1, #F59E0B); background: #FFF7ED; }
.lb-rank-num { font-weight: 700; text-align: center; color: var(--c-muted); font-size: 14px; }
.lb-rank-num i { font-size: 18px; }
.lb-row .lb-avatar { width: 44px; height: 44px; }
.lb-row .lb-init { font-size: 14px; }
.lb-info { min-width: 0; display:flex; flex-direction:column; gap: 2px; }
.lb-info b { font-size: 13.5px; display:flex; align-items:center; gap: 6px; flex-wrap: wrap; }
.lb-info small { font-size: 11.5px; }
.lb-amt { font-weight: 700; font-size: 14px; white-space: nowrap; }
.lb-lvl { display:inline-block; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.lb-lvl.lvl-bronze { background:#FEF3C7; color:#B45309; }
.lb-lvl.lvl-silver { background:#E5E7EB; color:#475569; }
.lb-lvl.lvl-gold   { background:#FEF3C7; color:#A16207; }
.lb-lvl.lvl-platinum { background:#EDE9FE; color:#6D28D9; }
.lb-me { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--c-border); }
.lb-me small.muted { display:block; margin-bottom: 6px; }

/* ===== Cek Akun ===== */
.ck-tabs { display:flex; gap:8px; padding: 12px 14px 0; flex-wrap:wrap; }
.ck-tab { display:inline-flex; align-items:center; gap:6px; padding: 8px 14px; border-radius: 999px; border:1px solid var(--c-border); background: var(--c-soft); color: var(--c-text); font-weight: 600; font-size:13px; cursor:pointer; }
.ck-tab.active { background: linear-gradient(135deg, #6B5010, #8B6914); color:#fff; border-color: transparent; }
.ck-form { padding: 14px; display:flex; flex-direction: column; gap: 12px; }
.ck-check { display:flex; align-items:center; gap:8px; font-size:13px; color: var(--c-muted); cursor:pointer; }
.ck-check input { width:16px; height:16px; }
.ck-result { padding: 14px; display:flex; flex-direction: column; gap: 14px; }
.ck-card { background: var(--c-soft); border:1px solid var(--c-border); border-radius: 14px; padding: 12px 14px; display:flex; flex-direction: column; gap:8px; }
.ck-row { display:flex; align-items:center; justify-content: space-between; gap:12px; padding: 6px 0; border-bottom: 1px dashed var(--c-border); }
.ck-row:last-child { border-bottom: 0; }
.ck-row small { color: var(--c-muted); font-size:12px; }
.ck-row b { font-size: 14px; text-align: right; word-break: break-word; }
.ck-row--hl b { color: #B45309; font-size: 16px; }
.ck-shelves { display:flex; flex-direction: column; gap: 12px; }
.ck-shelf { background: var(--c-surface); border:1px solid var(--c-border); border-radius: 14px; padding: 12px 14px; }
.ck-shelf h4 { margin: 0 0 8px; font-size: 13px; color: var(--c-muted); }
.ck-chips { display:flex; flex-wrap:wrap; gap:6px; }
.ck-chip { padding: 5px 10px; border-radius: 999px; background: var(--c-soft); border:1px solid var(--c-border); font-size: 12px; }

/* ===== News feed ===== */
.news-feed { display:flex; flex-direction: column; gap: 14px; padding: 6px 0 24px; }
.news-card { background: var(--c-surface); border:1px solid var(--c-border); border-radius: 16px; padding: 14px 16px; box-shadow: 0 4px 14px rgba(60,45,10,.05); }
.news-card--pin { border-color: #F4DDA0; background: linear-gradient(180deg, #FFF7E6, var(--c-surface)); }
.news-head { display:flex; align-items:center; gap: 10px; margin-bottom: 10px; }
.news-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#7A5C12,#B68A1F); color:#fff; display:flex; align-items:center; justify-content:center; font-size: 18px; flex-shrink:0; }
.news-meta b { display:block; font-size: 14px; }
.news-meta small { color: var(--c-muted); font-size: 12px; }
.news-pin { color:#B45309; font-weight:600; }
.news-title { margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.news-body { font-size: 14px; line-height: 1.55; color: var(--c-text); white-space: pre-wrap; word-break: break-word; }
.news-body a { color: var(--c-orange-1); word-break: break-all; }
.news-media { margin-top: 12px; border-radius: 12px; overflow: hidden; background: var(--c-soft); }
.news-media img { display:block; width: 100%; height: auto; }
.news-media video { display:block; width: 100%; height: auto; background: #000; }
.news-media--16x9 { position: relative; padding-top: 56.25%; }
.news-media--16x9 iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.news-media--audio { padding: 12px; }
.news-media--audio audio { width: 100%; }
.news-empty { text-align:center; padding: 40px 14px; color: var(--c-muted); }
.news-empty i { font-size: 42px; display:block; margin-bottom: 8px; opacity: .5; }
.news-more { display:flex; justify-content:center; padding: 10px 0 24px; }

/* ===== Admin badges (reuse existing if present) ===== */
.badge { display:inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-ok { background: #D1FAE5; color: #047857; }
.badge-warn { background: #FEF3C7; color: #92400E; }

/* === Halaman Struk Transfer === */
.rcpt-card {
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.rcpt-status {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #a7f3d0;
}
.rcpt-status-ic {
  width: 48px; height: 48px; border-radius: 50%;
  background: #059669; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.rcpt-status small { color: #047857; font-size: 12px; font-weight: 500; }
.rcpt-status h2 { margin: 2px 0 0; color: #065f46; font-size: 20px; }
.rcpt-fav {
  margin-left: auto; background: transparent; border: none; cursor: pointer;
  color: #059669; font-size: 22px; padding: 6px;
}
.rcpt-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px 0; gap: 12px; border-bottom: 1px dashed rgba(0,0,0,.05);
}
.rcpt-row:last-child { border-bottom: 0; }
.rcpt-row small { color: #6b7280; font-size: 13px; flex-shrink: 0; }
.rcpt-row b { font-weight: 600; text-align: right; word-break: break-word; }
.rcpt-card-h {
  margin: 0 0 8px; font-size: 15px; font-weight: 600; color: #111827;
  display: flex; align-items: center; gap: 6px;
}
.rcpt-copy {
  background: transparent; border: none; cursor: pointer;
  color: #059669; padding: 0 4px; font-size: 16px; vertical-align: middle;
}
.rcpt-total { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.rcpt-total small { color: #6b7280; font-size: 13px; }
.rcpt-total-amt { font-size: 20px; font-weight: 700; }
.rcpt-total-amt.is-out { color: #dc2626; }
.rcpt-total-amt.is-in  { color: #059669; }
.rcpt-info {
  background: #f0fdf4; border-color: #bbf7d0;
}
.rcpt-info p { margin: 0; color: #166534; font-size: 13px; line-height: 1.55; }
.rcpt-actions { display: flex; gap: 10px; margin-top: 16px; }
.rcpt-actions .btn { flex: 1; }

@media print {
  .topbar, .bottomnav, .page-head .back-link, .icon-btn, .rcpt-actions, .rcpt-fav { display: none !important; }
  body { background: #fff; }
}

/* === Katalog Akun (Stok Akun) === */
.ak-search-bar { margin: 14px 0 10px; }
.ak-search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 10px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ak-search i { color: #9ca3af; font-size: 18px; }
.ak-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; color: #111827; }

.ak-cats {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 14px;
  scrollbar-width: none;
}
.ak-cats::-webkit-scrollbar { display: none; }
.ak-cat {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid #e5e7eb;
  background: #fff; color: #4b5563; font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all .15s;
}
.ak-cat i { font-size: 15px; }
.ak-cat:hover { border-color: #d1d5db; }
.ak-cat.active { background: #111827; color: #fff; border-color: #111827; }

.ak-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 640px) { .ak-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .ak-grid { grid-template-columns: repeat(4, 1fr); } }

.ak-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  border: 1px solid #f3f4f6; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.ak-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.ak-card-img {
  position: relative; aspect-ratio: 1 / 1;
  background: #f3f4f6 center/cover no-repeat;
}
.ak-badge {
  position: absolute; top: 8px; left: 8px;
  background: #111827; color: #fff; padding: 3px 8px;
  border-radius: 6px; font-size: 11px; font-weight: 600;
}
.ak-badge-feat { left: auto; right: 8px; background: #f59e0b; }
.ak-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ak-card-title {
  font-size: 13px; font-weight: 600; color: #111827; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35; min-height: 2.7em;
}
.ak-card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ak-cat-pill {
  font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
  background: #eef2ff; color: #4338ca; font-weight: 600; text-transform: capitalize;
}
.ak-stock-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; padding: 2px 7px; border-radius: 999px;
  background: #ecfdf5; color: #047857; font-weight: 600;
}
.ak-stock-pill i { font-size: 11px; }
.ak-stock-pill.low { background: #fef3c7; color: #b45309; }
.ak-stock-pill.out { background: #fee2e2; color: #b91c1c; }
.ak-card-foot {
  margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
}
.ak-card-price { font-size: 14px; color: #b91c1c; font-weight: 700; }
.ak-card-foot small { font-size: 11px; }

.ak-empty {
  grid-column: 1 / -1; text-align: center; padding: 40px 16px; color: #9ca3af;
}
.ak-empty i { font-size: 40px; display: block; margin-bottom: 10px; }

/* Detail */
.ak-detail { display: grid; gap: 18px; }
@media (min-width: 760px) {
  .ak-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.ak-gallery-main {
  aspect-ratio: 1 / 1; background: #f3f4f6 center/cover no-repeat;
  border-radius: 16px; border: 1px solid #f3f4f6;
}
.ak-gallery-thumbs {
  display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.ak-gallery-thumbs::-webkit-scrollbar { display: none; }
.ak-thumb {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 10px;
  background: #f3f4f6 center/cover no-repeat; border: 2px solid transparent; cursor: pointer; padding: 0;
}
.ak-thumb.active { border-color: #111827; }

.ak-info { display: flex; flex-direction: column; gap: 10px; }
.ak-title { margin: 0; font-size: 20px; line-height: 1.3; color: #111827; }
.ak-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ak-price {
  margin: 6px 0; font-size: 26px; font-weight: 800; color: #b91c1c;
}
.ak-specs {
  list-style: none; padding: 12px 14px; margin: 0;
  background: #fafafa; border: 1px solid #f3f4f6; border-radius: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.ak-specs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.ak-specs li b { text-align: right; font-weight: 600; color: #111827; }

.ak-desc {
  font-size: 13.5px; color: #374151; line-height: 1.65;
  background: #fff; border: 1px solid #f3f4f6; border-radius: 12px; padding: 12px 14px;
}
.ak-divider { height: 1px; background: #f3f4f6; margin: 6px 0; }

.ak-form {
  background: #fff; border: 1px solid #f3f4f6; border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ak-form-title { margin: 0; font-size: 15px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 6px; }
.ak-form .field { display: flex; flex-direction: column; gap: 4px; }
.ak-form .field span { font-size: 12px; color: #6b7280; font-weight: 500; }
.ak-form .field input, .ak-form .field textarea {
  padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px;
  font-size: 14px; outline: 0; background: #fff; color: #111827; font-family: inherit;
}
.ak-form .field input:focus, .ak-form .field textarea:focus { border-color: #b91c1c; }
.ak-form--out { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* === Admin Stock Account === */
.adm-ak-toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 14px;
}
.adm-ak-toolbar .search { flex: 1; min-width: 200px; }
.adm-ak-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .adm-ak-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .adm-ak-grid { grid-template-columns: repeat(3, 1fr); } }
.adm-ak-row {
  display: flex; gap: 12px; padding: 12px; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 12px;
}
.adm-ak-row-img {
  width: 78px; height: 78px; border-radius: 10px;
  background: #f3f4f6 center/cover no-repeat; flex-shrink: 0;
}
.adm-ak-row-body { flex: 1; min-width: 0; }
.adm-ak-row-body h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #111827; }
.adm-ak-row-body small { color: #6b7280; font-size: 12px; }
.adm-ak-row-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.adm-ak-row-meta span { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: #f3f4f6; color: #4b5563; }
.adm-ak-row-meta span.ok { background: #dcfce7; color: #166534; }
.adm-ak-row-meta span.bad { background: #fee2e2; color: #991b1b; }
.adm-ak-row-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.adm-ak-row-actions button {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--c-border); background: var(--c-soft);
  color: var(--c-text); cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  transition: background .15s, border-color .15s, color .15s;
}
.adm-ak-row-actions button i { font-size: 14px; line-height: 1; }
.adm-ak-row-actions button:hover { background: var(--c-surface); border-color: var(--c-orange-1); color: var(--c-orange-1); }
.adm-ak-row-actions button.danger { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.adm-ak-row-actions button.danger:hover { background: #fee2e2; border-color: #f87171; color: #991b1b; }

.adm-modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center; padding: 30px 12px;
  overflow-y: auto;
}
.adm-modal {
  background: #fff; border-radius: 14px; max-width: 720px; width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,.2); overflow: hidden;
}
.adm-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #f3f4f6;
}
.adm-modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.adm-modal-head button { background: transparent; border: 0; font-size: 22px; cursor: pointer; color: #6b7280; }
.adm-modal-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.adm-modal-body .row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.adm-modal-body .field { display: flex; flex-direction: column; gap: 4px; }
.adm-modal-body .field span { font-size: 12px; color: #6b7280; font-weight: 500; }
.adm-modal-body .field input,
.adm-modal-body .field textarea,
.adm-modal-body .field select {
  padding: 9px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; outline: 0; font-family: inherit;
}
.adm-modal-body .field input:focus,
.adm-modal-body .field textarea:focus,
.adm-modal-body .field select:focus { border-color: #b91c1c; }
.adm-modal-foot { padding: 12px 18px; border-top: 1px solid #f3f4f6; display: flex; gap: 10px; justify-content: flex-end; }

.adm-img-list { display: flex; flex-direction: column; gap: 6px; }
.adm-img-row { display: flex; gap: 6px; align-items: center; }
.adm-img-row input { flex: 1; }
.adm-img-row .preview { width: 36px; height: 36px; border-radius: 6px; background: #f3f4f6 center/cover no-repeat; flex-shrink: 0; }
.adm-img-row button { background: transparent; border: 0; color: #b91c1c; cursor: pointer; font-size: 16px; padding: 4px 8px; }
.adm-add-link { background: transparent; border: 1px dashed #d1d5db; padding: 6px; border-radius: 8px; cursor: pointer; color: #4b5563; font-size: 12px; }
