/* ============================================================
   ITEMKUH GAME STORE — MODERN ITEMKU-INSPIRED CSS
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --blue-bg:       #0a47b8;
  --blue-gradient: linear-gradient(180deg, #072f80 0%, #0a47b8 40%, #1565c0 100%);
  --header-bg:     #062c76;
  --subnav-bg:     #052461;
  
  --card-bg:       #ffffff;
  --card-text:     #1e293b;
  --card-border:   #e2e8f0;
  --card-shadow:   0 12px 36px rgba(0, 20, 60, 0.15);

  --primary:       #0d6efd;
  --primary-h:     #0b5ed7;
  --primary-light: rgba(13, 110, 253, 0.1);
  --emerald:       #10b981;
  --emerald-light: rgba(16, 185, 129, 0.12);
  --amber:         #f59e0b;
  --amber-light:   rgba(245, 158, 11, 0.15);
  --danger:        #ef4444;
  --danger-light:  rgba(239, 68, 68, 0.12);

  --text-muted:    #64748b;
  --text-dim:      #94a3b8;

  --font-h:        'Outfit', sans-serif;
  --font-b:        'Inter', sans-serif;

  --r-card:        14px;
  --r-input:       8px;
  --r-btn:         8px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a { color: var(--primary); text-decoration: none; }
button { cursor: pointer; font-family: var(--font-b); }
input, select, textarea { font-family: var(--font-b); }

body {
  background: var(--blue-bg) var(--blue-gradient);
  color: #ffffff;
  font-family: var(--font-b);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Canvas (Hyper option) ---------- */
canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  display: none;
}

/* ---------- Theme Switcher ---------- */
#theme-switcher-wrap {
  position: fixed; bottom: 20px; left: 20px; z-index: 300;
}
.theme-toggle-circle {
  background: #ffffff; color: var(--header-bg);
  border: none; width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  font-size: 18px; transition: transform .2s, box-shadow .2s;
}
.theme-toggle-circle:hover { transform: scale(1.08); }
#theme-panel {
  display: none; position: absolute; bottom: 54px; left: 0;
  background: #ffffff; border-radius: 12px;
  padding: 8px; min-width: 160px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
#theme-panel.open { display: flex; flex-direction: column; gap: 4px; }
.theme-opt {
  background: transparent; border: none;
  color: #334155; text-align: left;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.theme-opt:hover, .theme-opt.active {
  background: var(--primary-light); color: var(--primary);
}

/* ---------- ITEMKU TOP NAVBAR ---------- */
.itemku-navbar-wrapper {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.itemku-top-bar {
  background: var(--header-bg);
  padding: 12px 0 8px;
}
.top-bar-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}

/* Brand */
.itemku-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.brand-logomark {
  width: 38px; height: 38px; border-radius: 10px;
  background: #ffffff; color: var(--header-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.brand-title {
  font-family: var(--font-h); font-size: 26px;
  font-weight: 900; color: #ffffff; letter-spacing: -0.5px;
}
.brand-title span { color: #facc15; }
.brand-vip-badge {
  background: #facc15; color: #000;
  font-size: 10px; font-weight: 900;
  padding: 2px 6px; border-radius: 4px;
  letter-spacing: 1px;
}

/* Search Container */
.itemku-search-container {
  flex: 1; max-width: 620px;
  display: flex; flex-direction: column; gap: 8px;
}
.itemku-search-input-wrap {
  position: relative; width: 100%;
  display: flex; align-items: center;
}
.search-lens-icon {
  position: absolute; left: 16px;
  color: #94a3b8; font-size: 16px;
  pointer-events: none;
}
#itemku-search-input {
  width: 100%; height: 44px;
  padding: 0 90px 0 44px;
  border-radius: 24px; border: none;
  font-size: 14px; font-weight: 500;
  color: #1e293b; background: #ffffff;
  outline: none; box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: box-shadow .2s;
}
#itemku-search-input:focus {
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.4), 0 4px 16px rgba(0,0,0,0.2);
}
#itemku-search-input::placeholder { color: #94a3b8; }
.enter-badge {
  position: absolute; right: 8px;
  font-size: 11px; font-weight: 700;
  background: #f1f5f9; color: #64748b;
  padding: 4px 8px; border-radius: 12px;
  pointer-events: none;
}

/* Trending Tags directly under search */
.itemku-trending-tags {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding-bottom: 2px;
}
.search-tag-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff; border: 1px solid rgba(255,255,255,0.25);
  border-radius: 14px; padding: 3px 12px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  transition: all .2s;
}
.search-tag-pill:hover {
  background: #ffffff; color: var(--header-bg);
}

/* Right Header History Button */
.btn-itemku-history {
  display: inline-flex; align-items: center; gap: 8px;
  background: #ffffff; color: var(--header-bg);
  border: none; padding: 10px 18px;
  border-radius: 22px; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform .15s, background .15s;
  flex-shrink: 0;
}
.btn-itemku-history:hover { transform: translateY(-1px); background: #f8fafc; }

/* Subnav Bar */
.itemku-subnav-bar {
  background: var(--subnav-bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0;
}
.subnav-inner-container {
  max-width: 1240px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; gap: 10px;
  overflow-x: auto;
}
.subnav-category-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; color: #facc15;
  padding-right: 12px; border-right: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap;
}
.subnav-link {
  background: transparent; border: none;
  color: #cbd5e1; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px;
  white-space: nowrap; transition: all .15s;
}
.subnav-link:hover, .subnav-link.active {
  background: rgba(255,255,255,0.15); color: #ffffff;
}

/* ---------- MAIN CONTAINER ---------- */
.itemku-main-content {
  max-width: 1240px; margin: 0 auto;
  padding: 30px 20px 60px;
}

/* ---------- HERO SHOWCASE (ITEMKU 3 CARDS) ---------- */
.itemku-hero-showcase {
  margin-bottom: 40px;
}
.hero-header-line {
  margin-bottom: 20px; text-align: center;
}
.hero-header-line h2 {
  font-size: 26px; font-weight: 800; color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 6px;
}
.hero-header-line p {
  color: #e2e8f0; font-size: 14px;
}

/* 3 Cards Showcase Grid */
.itemku-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* ITEMKU GAME CARD (VERTICAL POSTER) */
.itemku-game-card {
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 10, 40, 0.4);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  border: 3px solid transparent;
  height: 380px;
  background: #0f172a;
}
.itemku-game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  border-color: #60a5fa;
}
.itemku-game-card.active-card, .itemku-game-card.selected {
  transform: translateY(-4px);
  border-color: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.35), 0 20px 48px rgba(0, 0, 0, 0.5);
}

/* Poster Wrap */
.itemku-poster-wrap {
  width: 100%; height: 100%;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  justify-content: space-between;
}
.itemku-poster-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .4s ease;
  z-index: 1;
}
.itemku-game-card:hover .itemku-poster-img {
  transform: scale(1.06);
}

/* Gradient Overlay from bottom to top */
.itemku-poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 40%, rgba(5,15,40,0.92) 80%, rgba(5,15,40,0.98) 100%);
  z-index: 2;
}

/* Poster Top Area */
.itemku-poster-top {
  position: relative; z-index: 3;
  padding: 14px;
  display: flex; align-items: center;
  justify-content: space-between;
}
.game-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  backdrop-filter: blur(8px);
}
.game-status-pill.ready {
  background: rgba(16, 185, 129, 0.85);
  color: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.game-status-pill.maint {
  background: rgba(239, 68, 68, 0.85);
  color: #ffffff;
}
.game-server-tag {
  font-size: 10px; font-weight: 700;
  background: rgba(0,0,0,0.55); color: #e2e8f0;
  padding: 3px 8px; border-radius: 12px;
  backdrop-filter: blur(6px);
}

/* Poster Bottom Area (Content) */
.itemku-poster-bottom {
  position: relative; z-index: 3;
  padding: 18px 16px;
  display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 8px;
}
.itemku-game-titles { margin-bottom: 2px; }
.itemku-game-title {
  font-family: var(--font-h); font-size: 18px;
  font-weight: 900; color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  letter-spacing: 0.2px;
}
.itemku-game-sub {
  font-size: 12px; color: #cbd5e1; font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.itemku-badge-row { margin: 2px 0; }
.itemku-card-badge {
  display: inline-block;
  background: #f59e0b; color: #111827;
  font-family: var(--font-h); font-size: 11px;
  font-weight: 900; letter-spacing: 0.5px;
  padding: 4px 14px; border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.itemku-btn-action {
  width: 100%; max-width: 180px;
  padding: 9px 18px; font-size: 13px; font-weight: 700;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff; border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.itemku-game-card:hover .itemku-btn-action,
.itemku-game-card.active-card .itemku-btn-action,
.itemku-game-card.selected .itemku-btn-action {
  background: var(--primary);
  border-color: #60a5fa; color: #ffffff;
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.5);
}

/* Trust Badges Bar (Directly below cards) */
.itemku-trust-badges {
  background: rgba(5, 30, 80, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 16px 28px;
  display: flex; align-items: center;
  justify-content: space-around; gap: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.trust-badge-item {
  display: flex; align-items: center; gap: 14px;
}
.trust-ico {
  font-size: 26px; color: #facc15;
}
.trust-txt {
  display: flex; flex-direction: column; text-align: left;
}
.trust-txt strong { font-size: 13px; color: #ffffff; font-weight: 700; }
.trust-txt span { font-size: 11px; color: #cbd5e1; }

/* ---------- CHECKOUT WIZARD LAYOUT ---------- */
.checkout-layout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: flex-start;
  margin-top: 30px;
}
.checkout-steps-panel { min-width: 0; }
.checkout-summary-panel { position: sticky; top: 120px; }

/* Card Common */
.card {
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
}

/* Connected Step Wizard Bar */
.step-wizard-container {
  background: #ffffff;
  border-radius: var(--r-card);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--card-shadow);
  margin-bottom: 8px;
}
.step-wizard-node {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.step-bar-circle {
  width: 34px; height: 34px; border-radius: 50%;
  background: #f1f5f9; color: #64748b;
  border: 2px solid #cbd5e1;
  font-family: var(--font-h); font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s; flex-shrink: 0;
}
.step-wizard-node.active .step-bar-circle {
  background: var(--primary); color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.2);
}
.step-wizard-node.completed .step-bar-circle {
  background: var(--emerald); color: #ffffff;
  border-color: var(--emerald);
}
.step-node-label {
  font-size: 13px; font-weight: 700; color: #64748b;
}
.step-wizard-node.active .step-node-label { color: var(--primary); }
.step-wizard-node.completed .step-node-label { color: #1e293b; }

.step-wizard-line {
  flex: 1; height: 3px;
  background: #e2e8f0; margin: 0 12px;
  transition: background .3s;
}
.step-wizard-line.active { background: var(--emerald); }
.step-indicator-chip {
  font-size: 12px; color: #ffffff; font-weight: 700;
  background: rgba(255,255,255,0.15);
  display: inline-block; padding: 4px 12px;
  border-radius: 12px; margin-bottom: 16px;
}

/* Step Form Section Cards */
.form-step-section {
  display: none; /* hidden by default, active class reveals */
}
.form-step-section.active { display: block; }

.card-step-title {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}
.step-num-pill {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  font-family: var(--font-h); font-size: 18px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-step-title h3 {
  font-size: 18px; color: #0f172a; margin-bottom: 2px;
}
.card-step-title p {
  font-size: 13px; color: #64748b; margin: 0;
}
.discount-badge-chip {
  margin-left: auto;
  background: var(--emerald-light); color: var(--emerald);
  font-weight: 800; font-size: 12px;
  padding: 5px 12px; border-radius: 16px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 700;
  color: #334155; margin-bottom: 6px;
}
.form-input-control {
  width: 100%; height: 44px; padding: 0 14px;
  border-radius: var(--r-input);
  border: 1.5px solid #cbd5e1;
  background: #f8fafc; color: #0f172a;
  font-size: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input-control:focus {
  border-color: var(--primary); background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
select.form-input-control { cursor: pointer; }

/* Voucher Container */
.voucher-input-row { display: flex; gap: 8px; }
.voucher-input-row .form-input-control { flex: 1; }
.btn-voucher-submit {
  background: #0f172a; color: #ffffff;
  border: none; padding: 0 20px;
  border-radius: var(--r-btn); font-size: 13px; font-weight: 700;
  transition: background .2s;
}
.btn-voucher-submit:hover { background: #334155; }
.btn-show-promos {
  background: none; border: none;
  color: var(--primary); font-size: 12px; font-weight: 600;
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px;
}
.btn-show-promos:hover { text-decoration: underline; }
.voucher-feedback-box {
  margin-top: 10px; padding: 10px 14px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
}
.voucher-ok { color: var(--emerald); display: flex; align-items: center; gap: 6px; }
.voucher-err { color: var(--danger); }

/* Step Actions Buttons */
.step-actions-footer {
  display: flex; gap: 12px;
  padding-top: 20px; border-top: 1px solid #f1f5f9;
}
.step-actions-footer.right { justify-content: flex-end; }
.step-actions-footer.split { justify-content: space-between; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 700; border: none;
  transition: all .2s; text-decoration: none;
}
.btn-primary-action {
  background: var(--primary); color: #ffffff;
}
.btn-primary-action:hover { background: var(--primary-h); transform: translateY(-1px); }
.btn-outline-action {
  background: #f8fafc; color: #334155;
  border: 1.5px solid #cbd5e1;
}
.btn-outline-action:hover { background: #f1f5f9; border-color: #94a3b8; }
.btn-pay-now-action {
  background: linear-gradient(135deg, #0d6efd 0%, #2563eb 100%);
  color: #ffffff; font-size: 15px; padding: 12px 28px;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.4);
}
.btn-pay-now-action:hover { opacity: 0.95; transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-danger-action { background: var(--danger-light); color: var(--danger); }

/* ---------- STEP 2: PAKET CARDS GRID ---------- */
.paket-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px; margin-bottom: 8px;
}
.paket-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px; padding: 14px 16px;
  background: #f8fafc; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: all .2s;
}
.paket-card:hover {
  border-color: var(--primary); background: #ffffff;
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(13,110,253,0.1);
}
.paket-card.active, .paket-card.selected {
  border-color: var(--primary); background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary);
}
.paket-card-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: #ffffff; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.paket-card.active .paket-card-icon { background: var(--primary); color: #ffffff; }
.paket-card-info {
  display: flex; flex-direction: column; text-align: left; flex: 1;
}
.paket-duration { font-size: 14px; font-weight: 800; color: #0f172a; }
.paket-bonus { font-size: 11px; font-weight: 700; color: var(--emerald); margin-top: 2px; }
.paket-radio {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex; align-items: center; justify-content: center;
}
.paket-card.active .paket-radio { border-color: var(--primary); }
.paket-card.active .radio-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.no-paket {
  grid-column: 1/-1; padding: 24px; text-align: center; color: #64748b; font-size: 13px;
}

/* ---------- STEP 4: PAYMENT METHODS ---------- */
.pay-category-title {
  font-size: 12px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; color: #475569;
  display: flex; align-items: center; gap: 8px; margin: 16px 0 10px;
}

/* QRIS Featured Card */
.method-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px; padding: 14px 16px;
  background: #f8fafc; cursor: pointer;
  transition: all .2s; position: relative;
}
.method-card:hover {
  border-color: var(--primary); background: #ffffff;
}
.method-card.active {
  border-color: var(--primary); background: var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary);
}
.featured-card-badge {
  position: absolute; right: 14px; top: 12px;
  background: var(--emerald); color: #ffffff;
  font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 4px;
}
.method-card-header-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.qris-brand-logo-txt {
  font-family: var(--font-h); font-size: 20px; font-weight: 900;
  display: flex; align-items: center; gap: 3px;
}
.qr-red { color: #dc2626; }
.is-blue { color: #0d6efd; }
.instant-chip {
  font-size: 10px; font-weight: 700;
  background: var(--emerald-light); color: var(--emerald);
  padding: 2px 6px; border-radius: 4px; margin-left: 6px;
}
.method-radio-box {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex; align-items: center; justify-content: center;
}
.method-card.active .method-radio-box { border-color: var(--primary); }
.method-card.active .radio-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.qris-headline { font-size: 14px; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.qris-sub-desc { font-size: 12px; color: #64748b; margin: 0; }

.retail-cards-grid, .va-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.retail-name-label { font-size: 13px; font-weight: 700; color: #0f172a; display: flex; align-items: center; gap: 6px; }
.method-sub-desc { font-size: 11px; color: #64748b; margin-top: 4px; }

/* ---------- ORDER SUMMARY SIDEBAR ---------- */
.summary-card { padding: 24px; }
.summary-card-title {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px; border-bottom: 1px solid #f1f5f9;
  margin-bottom: 16px;
}
.summary-card-title h3 { font-size: 17px; color: #0f172a; }
.summary-field-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13px;
}
.summary-field-row .f-label { color: #64748b; display: flex; align-items: center; gap: 6px; }
.summary-field-row .f-value { font-weight: 700; color: #0f172a; max-width: 55%; text-align: right; word-break: break-all; }
.code-box { font-family: monospace; font-size: 11px; }
.summary-split-line { border-top: 1px dashed #e2e8f0; margin: 10px 0; }
.chip-promo {
  background: var(--emerald-light); color: var(--emerald);
  font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 800;
}
.summary-total-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0 4px;
}
.summary-total-price-row .t-label { font-size: 14px; font-weight: 800; color: #0f172a; }
.summary-total-price-row .t-price {
  font-family: var(--font-h); font-size: 22px; font-weight: 900; color: var(--primary);
}
.summary-guarantee-note {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 10px 12px; margin-top: 14px;
  font-size: 11px; color: #64748b; display: flex; align-items: center; gap: 8px;
}

/* Client Downloads Section */
.client-downloads-section {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9;
}
.downloads-section-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  color: #475569; display: flex; align-items: center; gap: 6px; margin-bottom: 12px;
}
.download-client-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid #f8fafc;
}
.download-client-card:last-child { border-bottom: none; }
.dl-client-info strong { display: block; font-size: 13px; color: #0f172a; }
.dl-client-info span { font-size: 11px; color: #64748b; }
.btn-download-pill {
  background: var(--primary-light); color: var(--primary);
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 16px;
  display: inline-flex; align-items: center; gap: 4px; transition: all .15s;
}
.btn-download-pill:hover { background: var(--primary); color: #ffffff; }

/* ---------- INVOICE SECTION ---------- */
.invoice-container { margin-top: 20px; }
.demo-banner-box {
  background: #fffbeb; border: 1px solid #fef3c7;
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  color: #b45309; font-size: 13px;
}
.btn-demo-sim {
  background: #f59e0b; color: #ffffff; border: none;
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 6px;
}
.invoice-header-box {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; border-bottom: 1px solid #f1f5f9; margin-bottom: 20px;
}
.invoice-status-chip {
  display: inline-block; background: #fef3c7; color: #b45309;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 14px; margin-bottom: 6px;
}
.invoice-code { color: var(--primary); }
.invoice-top-buttons { display: flex; gap: 8px; }

.invoice-timer-card {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 16px; margin-bottom: 24px;
}
.timer-card-content {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-size: 13px; font-weight: 700; color: #334155;
}
.countdown-clock-digits {
  font-family: var(--font-h); font-size: 26px; font-weight: 900; color: #dc2626;
}
.timer-progress-track {
  height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden;
}
.timer-progress-fill-bar {
  height: 100%; background: #dc2626; transition: width .5s linear;
}

.invoice-content-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.payment-qr-area {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 24px; text-align: center;
}
.qr-canvas-box {
  background: #ffffff; border: 1px solid #cbd5e1;
  border-radius: 12px; padding: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; min-height: 200px; margin-bottom: 14px;
}
.qr-note-instruction { font-size: 12px; color: #64748b; margin: 0; }
.invoice-summary-area h4 { font-size: 16px; color: #0f172a; margin-bottom: 14px; }
.invoice-detail-table { display: flex; flex-direction: column; gap: 10px; }
.inv-table-row {
  display: flex; justify-content: space-between; font-size: 13px;
  padding-bottom: 8px; border-bottom: 1px solid #f1f5f9;
}
.inv-total-highlight {
  padding-top: 8px; border-bottom: none;
}
.inv-final-amount {
  font-family: var(--font-h); font-size: 22px; font-weight: 900; color: var(--primary);
}
.poller-status-box {
  margin-top: 20px; background: #f8fafc; border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.poller-spinner-row {
  display: flex; align-items: center; gap: 10px; font-size: 12px; color: #64748b;
}
.poller-circle-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #cbd5e1; border-top-color: var(--primary);
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- SUCCESS RECEIPT SECTION ---------- */
.success-container {
  max-width: 600px; margin: 30px auto; text-align: center;
}
.success-check-badge {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--emerald-light); color: var(--emerald);
  font-size: 38px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.success-subtext-msg { font-size: 14px; color: #64748b; margin-bottom: 24px; }
.member-key-showcase {
  background: #f0fdf4; border: 2px dashed #86efac;
  border-radius: 12px; padding: 18px; margin-bottom: 24px;
}
.key-intro-lbl { font-size: 12px; font-weight: 700; color: #15803d; text-transform: uppercase; }
.key-box-inner {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 6px;
}
.key-box-inner h3 {
  font-family: monospace; font-size: 24px; font-weight: 900; color: #166534; letter-spacing: 2px;
}
.btn-copy-member-key {
  background: #16a34a; color: #ffffff; border: none;
  padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 700;
}
.success-table-breakdown {
  display: flex; flex-direction: column; gap: 8px; text-align: left;
  background: #f8fafc; border-radius: 10px; padding: 16px; margin-bottom: 24px;
}
.rc-item-row {
  display: flex; justify-content: space-between; font-size: 13px;
}
.success-buttons-grid { display: flex; flex-direction: column; gap: 10px; }

/* ---------- MODALS ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5, 20, 60, 0.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-window, .modal-card {
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  background: #ffffff; color: #1e293b; border-radius: 16px;
  padding: 24px; box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}
.modal-window-wide, .modal-wide { max-width: 760px; }
.modal-compact-card, .modal-compact { max-width: 420px; }
.modal-header-bar, .modal-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid #f1f5f9; margin-bottom: 18px;
}
.modal-header-title, .modal-title-with-icon {
  display: flex; align-items: center; gap: 12px;
}
.modal-header-title h3, .modal-title-with-icon h3 { font-size: 17px; margin: 0; }
.modal-header-title p, .modal-title-with-icon p { font-size: 12px; color: #64748b; margin: 0; }
.modal-close-icon-btn, .modal-btn-close {
  background: #f1f5f9; border: none; width: 32px; height: 32px;
  border-radius: 50%; color: #64748b; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close-icon-btn:hover, .modal-btn-close:hover { background: #fee2e2; color: #ef4444; }
.modal-window-footer, .modal-card-footer {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid #f1f5f9;
  font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 6px;
}

/* History Modal Tabs */
.modal-navigation-tabs, .modal-tab-bar {
  display: flex; gap: 8px; border-bottom: 2px solid #f1f5f9; margin-bottom: 16px;
}
.tab-button, .tab-item {
  background: transparent; border: none;
  font-size: 13px; font-weight: 700; color: #64748b;
  padding: 10px 16px; border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab-button.active, .tab-item.active {
  color: var(--primary); border-bottom-color: var(--primary);
}
.tab-count, .tab-badge-counter {
  background: #f1f5f9; color: #64748b; font-size: 11px; padding: 2px 6px; border-radius: 10px;
}
.history-controls-row, .history-filter-bar {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px;
}
.history-search-field, .search-input-wrap {
  position: relative; display: flex; align-items: center;
}
.history-search-field i, .search-input-wrap i {
  position: absolute; left: 14px; color: #94a3b8;
}
.history-search-field input, .search-input-wrap input {
  width: 100%; height: 40px; padding: 0 14px 0 40px;
  border-radius: 8px; border: 1.5px solid #cbd5e1; background: #f8fafc; font-size: 13px;
}
.history-status-chips, .filter-chips-row {
  display: flex; gap: 6px;
}
.filter-chip {
  background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 16px;
  padding: 4px 12px; font-size: 12px; font-weight: 700; color: #64748b;
}
.filter-chip.active { background: var(--primary); color: #ffffff; border-color: var(--primary); }
.filter-chip.chip-paid.active { background: var(--emerald); border-color: var(--emerald); }
.filter-chip.chip-pending.active { background: var(--amber); border-color: var(--amber); color: #000; }
.history-scrollable-list, .history-cards-scroll {
  display: flex; flex-direction: column; gap: 10px; max-height: 380px; overflow-y: auto;
}

/* Edit Form Grid */
.form-grid-columns, .form-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

/* ---------- ITEMKU FOOTER ---------- */
.itemku-footer-wrapper, .itemku-footer {
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0; margin-top: 60px; text-align: center;
}
.footer-container, .footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 20px;
  font-size: 13px; color: #cbd5e1;
}

/* ---------- UTILITY CLASSES ---------- */
.text-gold { color: #facc15; }
.text-blue { color: var(--primary); }
.text-green { color: var(--emerald); }
.text-sm { font-size: 12px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 18px; }
.mt-5 { margin-top: 24px; }
.hidden { display: none !important; }

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 960px) {
  .itemku-cards-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto 24px; }
  .checkout-layout-grid { grid-template-columns: 1fr; }
  .checkout-summary-panel { position: static; }
  .invoice-content-grid { grid-template-columns: 1fr; }
  .itemku-trust-badges { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .top-bar-inner { flex-wrap: wrap; }
  .itemku-search-container { order: 3; max-width: 100%; width: 100%; }
  .form-grid-columns, .form-grid-2 { grid-template-columns: 1fr; }
  .step-wizard-container { flex-direction: column; gap: 12px; align-items: flex-start; }
  .step-wizard-line { display: none; }
}
