/* ============================================================
   DIGITAL LICENSE KH — FULL REFERENCE UI DESIGN SYSTEM
   ============================================================ */

:root {
  --bg-body: #0d1017;
  --bg-card: #151a24;
  --bg-card-hover: #1c2230;
  --bg-input: #0f131c;
  --bg-modal: #161b26;

  --accent-orange: #f97316;
  --accent-orange-dark: #ea580c;
  --accent-orange-glow: rgba(249, 115, 22, 0.28);
  --accent-green: #22c55e;
  --accent-gold: #f59e0b;
  --accent-yellow: #fbbf24;

  --text-white: #ffffff;
  --text-muted: #8b949e;
  --text-sub: #6e7681;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-card: rgba(255, 255, 255, 0.08);

  --font-km: 'Kantumruy Pro', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-km);
  background-color: var(--bg-body);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-body);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
  padding-bottom: 90px;
}

/* ── TOP HEADER ─────────────────────────────────────────────── */
.app-header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--bg-body);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon-back {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
}

.user-avatar-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.user-info-meta {
  display: flex;
  flex-direction: column;
}

.user-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-display-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.user-lock-icon {
  font-size: 13px;
}

.user-handle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.user-handle {
  font-size: 11px;
  color: var(--text-muted);
}

/* TOP RIGHT GOLD BALANCE PILL */
.balance-gold-pill {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
  transition: transform 0.15s;
}

.balance-gold-pill:active {
  transform: scale(0.96);
}

.medal-icon {
  font-size: 14px;
}

.balance-gold-val {
  font-family: var(--font-km);
}

.arrow-icon {
  font-size: 10px;
  opacity: 0.8;
}

/* ── APP MAIN CONTENT ────────────────────────────────────────── */
.app-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeInTab 0.2s ease;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Header Titles */
.section-top-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.label-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(249, 115, 22, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.label-text-box {
  display: flex;
  flex-direction: column;
}

.sub-txt {
  font-size: 10px;
  color: var(--accent-orange);
  font-weight: 700;
  text-transform: uppercase;
}

.main-txt {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

/* ── ORANGE HERO BANNER (TAB 1) ──────────────────────────────── */
.orange-hero-card {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.25);
  margin-bottom: 14px;
}

.hero-brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.hero-brand-sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.95;
}

/* ── SEARCH & FILTER BOX ─────────────────────────────────────── */
.search-filter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}

.card-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-icon-badge {
  font-size: 16px;
}

.user-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
}

.section-title-text {
  display: flex;
  flex-direction: column;
}

.sub-label {
  font-size: 10px;
  color: var(--accent-orange);
  text-transform: uppercase;
  font-weight: 700;
}

.main-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.search-lens {
  position: absolute;
  left: 14px;
  color: var(--text-sub);
  font-size: 14px;
}

.search-input-wrap input {
  width: 100%;
  height: 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 14px 0 40px;
  color: #fff;
  font-family: var(--font-km);
  font-size: 13px;
  outline: none;
}

.search-input-wrap input:focus {
  border-color: var(--accent-orange);
}

.filter-pills-row {
  display: flex;
  gap: 8px;
}

.filter-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-km);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.filter-pill.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
}

/* ── PRODUCT ROWS LIST ───────────────────────────────────────── */
.product-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.sec-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sec-icon {
  font-size: 14px;
}

.sec-labels {
  display: flex;
  flex-direction: column;
}

.sec-sub {
  font-size: 9px;
  color: var(--accent-orange);
  text-transform: uppercase;
  font-weight: 700;
}

.sec-main {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.sec-count {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 600;
}

.product-list-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-row-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, background 0.15s;
}

.product-row-card:active {
  transform: scale(0.98);
  background: var(--bg-card-hover);
}

.corner-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-bottom-left-radius: 8px;
}

.row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.row-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

/* Brand App Icon Card System */
.brand-logo-card {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  background: #141822;
  transition: transform 0.2s;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.brand-svg {
  width: 26px;
  height: 26px;
}

.brand-win {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
}
.brand-capcut {
  background: #111;
  border-color: rgba(255, 255, 255, 0.15);
}
.brand-office {
  background: linear-gradient(135deg, #eb3c00 0%, #b82d00 100%);
}
.brand-outlook {
  background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
}
.brand-gmail {
  background: #1f232e;
}
.brand-acrobat {
  background: linear-gradient(135deg, #ff2d55 0%, #d81138 100%);
}
.brand-adobe {
  background: linear-gradient(135deg, #2b1020 0%, #170b14 100%);
  border-color: rgba(250, 15, 0, 0.3);
}
.brand-pikbest {
  background: linear-gradient(135deg, #ff4757 0%, #c41c2c 100%);
}
.brand-corel {
  background: linear-gradient(135deg, #2ed573 0%, #1a9c50 100%);
}
.brand-miro {
  background: #ffd02f;
}
.brand-notion {
  background: #ffffff;
}
.brand-claude {
  background: linear-gradient(135deg, #d97757 0%, #b85d3f 100%);
}
.brand-chatgpt {
  background: linear-gradient(135deg, #10a37f 0%, #0d7e62 100%);
}
.brand-music {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.brand-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}
.brand-security {
  background: linear-gradient(135deg, #00a88e 0%, #007a68 100%);
}
.brand-generic {
  background: #1c2230;
}

.detail-cover-banner-wrap {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.detail-cover-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-icon-wrap .brand-logo-card {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.detail-icon-wrap .brand-svg {
  width: 44px;
  height: 44px;
}

.row-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.row-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.row-meta-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  display: inline-block;
}

.row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-left: 8px;
}

.row-price-green {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent-green);
  font-family: var(--font-km);
}

.pin-icon {
  font-size: 12px;
  color: var(--text-sub);
}

.row-skeleton {
  height: 68px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* ── TAB 2: EMPTY ORDERS BOX ─────────────────────────────────── */
.empty-orders-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 48px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-icon-3d {
  font-size: 54px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
}

.btn-view-store {
  max-width: 280px;
  font-size: 14px;
}

/* ── TAB 3: ACCOUNT VIEW ─────────────────────────────────────── */
.acc-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.acc-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.acc-user-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.acc-username-text {
  font-size: 17px;
  font-weight: 700;
}

.membership-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.acc-handle-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.acc-balance-section {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bal-sub-title {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.bal-huge-amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: var(--font-km);
  margin-bottom: 8px;
}

.member-since-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-sub);
}

.content-block-card, .deposit-history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.stat-rows-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-label {
  color: var(--text-muted);
}

.stat-val {
  font-weight: 700;
  color: #fff;
}

.stat-val.green {
  color: var(--accent-green);
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.empty-history-txt {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 8px;
}

/* ── TAB 4: SUPPORT VIEW ─────────────────────────────────────── */
.support-info-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.supp-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.supp-lbl {
  color: var(--text-sub);
}

.supp-notice-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 4px;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.chk-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-id-box-wrap {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.uid-label {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 700;
}

.uid-input-display {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 6px 0;
}

.btn-copy-uid {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-km);
  cursor: pointer;
}

.support-tip-note {
  font-size: 11px;
  color: var(--text-sub);
  line-height: 1.5;
  margin-top: 12px;
}

.btn-chat-admin {
  text-decoration: none;
}

/* ── PRODUCT DETAIL VIEW STYLES (MATCHING SCREENSHOTS) ───────── */
.product-detail-header-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px 14px 12px;
}

.detail-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.detail-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.detail-huge-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-green);
  font-family: var(--font-km);
  margin-bottom: 12px;
}

.detail-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.badge-tag-pill.green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
  color: var(--accent-green);
}

.badge-tag-pill.blue {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.badge-tag-pill.orange {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.25);
  color: var(--accent-orange);
}

/* Step Description */
.product-desc-content {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.6;
  white-space: pre-line;
}

/* Step 2: Stepper */
.stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.btn-step {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-step:active {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(0.94);
}

.step-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.step-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-km);
}

.step-limit {
  font-size: 11px;
  color: var(--text-sub);
}

/* Step 2: Quick Qty Chips Grid */
.qty-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qty-chip {
  flex: 1 0 calc(25% - 8px);
  min-width: 44px;
  height: 38px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-km);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.qty-chip:active, .qty-chip.active {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

/* Step 3: Payment Calculation Rows */
.payment-calc-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.pay-row strong {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.pay-row.deficit {
  color: #f87171;
  font-weight: 700;
}

.pay-row .deficit-val {
  color: #ef4444;
  font-size: 14px;
  font-weight: 800;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn-orange-full {
  width: 100%;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #fff;
  border: none;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-km);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--accent-orange-glow);
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}

.btn-orange-full:active {
  transform: scale(0.98);
}

/* ── BOTTOM NAVIGATION BAR ───────────────────────────────────── */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: 64px;
  background: #0e1118;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
  padding: 0 8px;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-sub);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
}

.tab-icon-box {
  font-size: 16px;
}

.tab-label {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-km);
}

.nav-tab-btn.active {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent-orange);
}

.footer-bot-tag {
  text-align: center;
  padding: 12px 0;
  font-size: 11px;
  color: var(--text-sub);
}

/* ── MODALS ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 400px;
  background: var(--bg-modal);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-head h3 {
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 22px;
  cursor: pointer;
}

.prod-confirm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-input);
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.confirm-icon {
  font-size: 24px;
  color: var(--accent-orange);
}

.confirm-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-green);
}

.balance-breakdown {
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 12px;
}

.b-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.b-row.total {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.b-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

.alert-box-warn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  margin-top: 10px;
}

.key-box-display {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 8px;
}

.key-box-label {
  font-size: 11px;
  color: var(--accent-orange);
  font-weight: 700;
}

.key-box-val {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 8px 0;
  word-break: break-all;
}

.btn-copy-gold {
  background: var(--accent-orange);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.preset-btn {
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.preset-btn.active {
  background: rgba(249, 115, 22, 0.2);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.custom-input-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 12px;
}

.custom-input-box input {
  width: 100%;
  height: 40px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
  padding-left: 6px;
}

.khqr-card-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.khqr-qr-img-wrap {
  width: 200px;
  height: 200px;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.khqr-qr-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.khqr-amount-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 4px;
}

.khqr-countdown-text {
  font-size: 12px;
  color: var(--accent-gold);
}

.btn-cancel-link {
  background: transparent;
  border: none;
  color: var(--text-sub);
  font-size: 12px;
  cursor: pointer;
}

/* Toast */
.toast-popup {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 27, 38, 0.95);
  border: 1px solid var(--accent-orange);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  display: none;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

/* ── PRODUCT DETAIL VIEW STYLES ──────────────────────────────── */
.product-detail-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-icon-wrap {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.detail-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.detail-huge-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 14px;
}

.detail-tags-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-tag-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-tag-pill.green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-tag-pill.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-tag-pill.orange {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.content-block-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.content-block-card .card-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.section-title-text .sub-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.section-title-text .main-label {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

/* Beautiful Rich Product Description */
.product-desc-content {
  font-size: 13.5px;
  line-height: 1.7;
  color: #e2e8f0;
}

.desc-section-head {
  margin: 12px 0 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.desc-section-head:first-child {
  margin-top: 0;
}

.desc-head-underline {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.desc-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.desc-item-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #e2e8f0;
}

.desc-item-icon {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1.4;
}

.desc-item-text {
  flex: 1;
  line-height: 1.5;
}

.desc-note-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
}

.desc-note-box strong {
  color: #fff;
}

.stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f131c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
}

.btn-step {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-step:active {
  transform: scale(0.94);
}

.step-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.step-limit {
  font-size: 10px;
  color: var(--text-muted);
}

.qty-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.qty-chip {
  padding: 8px;
  background: #0f131c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.qty-chip.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.payment-calc-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.pay-row strong {
  color: #fff;
  font-weight: 700;
}

.pay-row.deficit {
  color: #f87171;
  font-weight: 700;
}

.deficit-val {
  color: #f87171;
  font-weight: 800;
}

