/* ============================================================
   KotakKita — Frontend Dark Premium Theme
   ============================================================ */

:root {
  --bg:       #0d0d0d;
  --bg2:      #141414;
  --bg3:      #1a1a1a;
  --bg4:      #222222;
  --border:   #2a2a2a;
  --gold:     #f0c040;
  --gold2:    #d4a520;
  --text:     #f0f0f0;
  --text2:    #aaaaaa;
  --text3:    #666666;
  --green:    #22c55e;
  --red:      #ef4444;
  --purple:   #a78bfa;
  --blue:     #60a5fa;
  --radius:   12px;
  --nav-h:    56px;
  --bottom-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding-top: var(--nav-h);
  padding-bottom: calc(var(--bottom-h) + 16px);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.gold { color: var(--gold) !important; }
.flex-1 { flex: 1; }

/* ── NAVBAR TOP ─────────────────────────────────────────── */
.navbar-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(13,13,13,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.brand-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 18px;
  color: var(--gold);
  display: flex; align-items: center; gap: 6px;
}
.brand-box {
  width: 28px; height: 28px;
  background: var(--gold); color: #000;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}

.search-bar {
  flex: 1; max-width: 360px; margin: 0 16px;
  display: flex; align-items: center;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); padding: 8px 12px; font-size: 13px;
}
.search-bar button {
  background: none; border: none; color: var(--text3);
  padding: 8px 12px; cursor: pointer;
}
.search-bar button:hover { color: var(--gold); }

.nav-icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 15px;
  transition: background .15s, color .15s;
}
.nav-icon-btn:hover { background: var(--bg4); color: var(--gold); }

.badge-dot {
  position: absolute; top: -4px; right: -4px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--gold); color: #000;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg3); border: 2px solid var(--gold);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--gold);
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: #000; font-weight: 700; border: none;
  border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .15s, transform .1s;
  font-family: 'Inter', sans-serif; font-size: 14px;
}
.btn-gold:hover { opacity: .9; color: #000; }
.btn-gold:active { transform: scale(.98); }

.btn-outline-gold {
  background: transparent;
  border: 1.5px solid var(--gold); color: var(--gold);
  font-weight: 600; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s; font-size: 14px;
}
.btn-outline-gold:hover { background: var(--gold); color: #000; }

.link-gold { color: var(--gold); font-weight: 600; }
.link-gold:hover { color: var(--gold2); }

/* ── FLASH ALERTS ────────────────────────────────────────── */
.flash-alert {
  position: fixed; top: calc(var(--nav-h) + 8px); left: 12px; right: 12px;
  z-index: 1100; border-radius: 10px;
  padding: 12px 16px; display: flex; align-items: center;
  font-size: 13px; font-weight: 500;
  animation: slideDown .3s ease;
}
.flash-success { background: #052e1620; border: 1px solid var(--green); color: var(--green); }
.flash-error   { background: #2e050520; border: 1px solid var(--red);   color: var(--red); }
.flash-close   { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; }
@keyframes slideDown { from { transform: translateY(-10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── BOTTOM NAV ──────────────────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--bottom-h); z-index: 1000;
  background: rgba(13,13,13,.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
}
.bottom-nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  color: var(--text3); font-size: 10px; transition: color .15s;
  padding: 8px 0;
}
.bottom-nav-item i { font-size: 18px; }
.bottom-nav-item.active, .bottom-nav-item:hover { color: var(--gold); }

/* ── HERO ────────────────────────────────────────────────── */
.hero-slider { position: relative; overflow: hidden; aspect-ratio: 16/7; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s, width .2s; }
.hero-dot.active { background: var(--gold); width: 20px; border-radius: 3px; }

.hero-default {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1400 100%);
  padding: 60px 24px; text-align: center;
}
.hero-default h1 { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; }
.hero-default p  { color: var(--text2); margin-top: 8px; }

/* ── SECTION ─────────────────────────────────────────────── */
.section-pad { padding: 20px 0 4px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; margin: 0; }

/* ── CATEGORY PILLS ─────────────────────────────────────── */
.category-pills { scrollbar-width: none; }
.category-pills::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); padding: 6px 14px;
  border-radius: 20px; font-size: 12px; font-weight: 500;
  white-space: nowrap; transition: all .15s;
}
.cat-pill:hover { border-color: var(--gold); color: var(--gold); }

/* ── PRODUCT CARD ────────────────────────────────────────── */
.card-product {
  display: block; background: var(--bg2);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color .15s, transform .15s;
}
.card-product:hover { border-color: var(--gold); transform: translateY(-2px); }
.card-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg3); }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-product:hover .card-img-wrap img { transform: scale(1.04); }
.card-info { padding: 10px; }
.card-name { font-size: 12px; font-weight: 600; margin-bottom: 2px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-grade { font-size: 11px; color: var(--gold); margin-bottom: 2px; }
.card-price { font-size: 13px; font-weight: 700; color: var(--gold); }
.card-market { font-size: 10px; color: var(--text3); }
.card-sub { font-size: 11px; color: var(--text2); margin: 2px 0; }
.label-grey { font-size: 10px; color: var(--text3); margin-bottom: 2px; }
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 24px; }

/* ── RARITY BADGES ───────────────────────────────────────── */
.rarity-badge, .badge-rarity {
  position: absolute; top: 6px; left: 6px;
  font-size: 9px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .5px;
}
.rarity-micro {
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; display: inline-block;
}
.rarity-common        { background: #33333388; color: #aaa; }
.rarity-uncommon      { background: #1a3a1a88; color: var(--green); }
.rarity-rare          { background: #1a1a3a88; color: var(--blue); }
.rarity-super-rare    { background: #2a1a3a88; color: var(--purple); }
.rarity-ultra-rare    { background: #3a2a0088; color: var(--gold); }
.rarity-secret-rare   { background: #3a001a88; color: #f9a8d4; }
.rarity-limited       { background: #3a100088; color: #fb923c; border: 1px solid #fb923c44; }

.sold-out-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.65);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; letter-spacing: 1px;
}

/* ── AUCTION BADGES ──────────────────────────────────────── */
.auction-live-badge {
  position: absolute; top: 6px; right: 6px;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 800; padding: 2px 6px;
  border-radius: 4px; display: flex; align-items: center; gap: 3px;
}
.auction-live-badge i { font-size: 6px; animation: pulse 1s infinite; }
.auction-live-badge-lg {
  position: absolute; top: 12px; left: 12px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 800; padding: 4px 10px;
  border-radius: 6px; display: flex; align-items: center; gap: 4px;
}
.buy-now-badge {
  position: absolute; bottom: 6px; right: 6px;
  background: var(--gold); color: #000;
  font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── AUCTION COUNTDOWN ───────────────────────────────────── */
.auction-countdown { color: var(--text2); }

/* ── PAWN PROMO BANNER ───────────────────────────────────── */
.pawn-promo-banner { background: linear-gradient(135deg, #1a1200 0%, #2a1e00 100%); border: 1px solid var(--gold); }
.pawn-promo-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px; }
.pawn-promo-inner h3 { font-family: 'Space Grotesk',sans-serif; font-size: 18px; color: var(--gold); }
.pawn-promo-inner p { font-size: 13px; color: var(--text2); margin-top: 4px; }
.pawn-promo-icon { font-size: 48px; color: var(--gold); opacity: .3; }

/* ── PAGE HEADING ────────────────────────────────────────── */
.page-heading { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; }

/* ── FILTER BAR ──────────────────────────────────────────── */
.filter-bar { scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-search, .filter-select {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 8px 12px;
  font-size: 13px; outline: none; flex-shrink: 0;
}
.filter-search { min-width: 140px; }
.filter-btn {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); border-radius: 8px; padding: 8px 12px;
  font-size: 13px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}

/* ── PRODUCT DETAIL ──────────────────────────────────────── */
.product-gallery { background: var(--bg2); }
.gallery-main { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg3); max-height: 380px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 60px; height: 60px; flex-shrink: 0;
  border: 2px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer;
}
.gallery-thumb.active { border-color: var(--gold); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.auth-badge-corner {
  position: absolute; top: 10px; right: 10px;
  background: rgba(34,197,94,.15); border: 1px solid var(--green);
  color: var(--green); font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  display: flex; align-items: center; gap: 4px;
}

.product-title { font-family: 'Space Grotesk',sans-serif; font-size: 20px; font-weight: 700; }
.badge-grade { background: #1a1a00; border: 1px solid var(--gold); color: var(--gold); padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.badge-condition { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); padding: 3px 8px; border-radius: 6px; font-size: 12px; }

.product-price-block { display: flex; align-items: baseline; gap: 8px; }
.product-price { font-size: 24px; font-weight: 800; color: var(--gold); }
.market-price { font-size: 13px; color: var(--text3); }

.stock-info { font-size: 13px; }
.qty-picker { background: var(--bg3); border-radius: 10px; padding: 8px 12px; display: inline-flex; }
.qty-btn { background: var(--bg4); border: none; color: var(--text); width: 30px; height: 30px; border-radius: 6px; font-size: 16px; cursor: pointer; }
.qty-val { min-width: 32px; text-align: center; font-weight: 700; }

.btn-wishlist { background: var(--bg3); border: 1px solid var(--border); color: var(--text3); width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; flex-shrink: 0; }
.btn-wishlist.active { border-color: var(--red); color: var(--red); }

.product-desc { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.desc-title { font-size: 13px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.desc-body { font-size: 13px; color: var(--text2); line-height: 1.7; }

.auth-card-block { background: #001a0888; border: 1px solid var(--green); border-radius: 12px; padding: 14px; }
.auth-code-box { background: var(--bg3); border-radius: 8px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.auth-label { font-size: 11px; color: var(--text3); }
.auth-val { font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--green); }

/* ── BID BLOCK ───────────────────────────────────────────── */
.bid-block { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.bid-stat { padding: 12px 16px; }
.bid-stat-label { font-size: 11px; color: var(--text3); margin-bottom: 2px; }
.bid-stat-val { font-size: 16px; font-weight: 700; margin: 0; }
.border-end-dark { border-right: 1px solid var(--border) !important; }
.border-bottom-dark { border-bottom: 1px solid var(--border) !important; }

.bid-form { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.input-group-dark { display: flex; align-items: center; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.input-prefix { padding: 10px 12px; color: var(--text3); font-size: 13px; border-right: 1px solid var(--border); }
.input-group-dark input { flex: 1; background: none; border: none; outline: none; padding: 10px 12px; color: var(--text); font-size: 14px; }

.bid-history-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.bid-list { display: flex; flex-direction: column; gap: 8px; }
.bid-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: var(--bg3); border-radius: 8px; }
.bid-row.winning { border: 1px solid var(--gold); }
.bid-name { font-size: 13px; font-weight: 500; }
.bid-leading-tag { background: var(--gold); color: #000; font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 3px; margin-left: 6px; }
.bid-price { font-size: 13px; font-weight: 700; margin: 0; }
.bid-time { font-size: 11px; color: var(--text3); margin: 0; }

.auction-ended-box { background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 14px; color: var(--text2); font-size: 13px; }

/* ── CART ────────────────────────────────────────────────── */
.cart-list { display: flex; flex-direction: column; gap: 10px; }
.cart-item { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.cart-item-price { font-size: 13px; color: var(--gold); font-weight: 700; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item-sub { font-size: 13px; font-weight: 700; color: var(--gold); margin: 0; }
.cart-remove-btn { color: var(--red); font-size: 14px; }
.qty-btn-sm { width: 28px; height: 28px; background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 6px; cursor: pointer; font-size: 14px; }
.qty-val-sm { min-width: 24px; text-align: center; font-weight: 700; font-size: 13px; }
.cart-summary { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

/* ── CHECKOUT ────────────────────────────────────────────── */
.checkout-section { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.checkout-section-title { font-size: 13px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.checkout-summary { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.total-row { border-top: 1px solid var(--border); padding-top: 8px; }
.kurir-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
.kurir-option input { accent-color: var(--gold); }

/* ── CHECKOUT SUCCESS ────────────────────────────────────── */
.success-icon i { font-size: 64px; color: var(--green); }
.order-code-display { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--gold); background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 20px; display: inline-block; }
.order-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

/* ── PAWN ────────────────────────────────────────────────── */
.pawn-list { display: flex; flex-direction: column; gap: 10px; }
.pawn-item-card { display: block; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; position: relative; }
.pawn-code { font-size: 15px; font-weight: 700; }
.pawn-date { font-size: 12px; color: var(--text3); }
.pawn-loan-info { font-size: 13px; }
.pawn-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text3); }

.pawn-status {
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
.status-pending        { background: #33290088; color: var(--gold); border: 1px solid var(--gold); }
.status-shipping       { background: #0a1a2a; color: #7eb8f7; border: 1px solid #7eb8f760; }
.status-item_received  { background: #0a2a0a; color: var(--green); border: 1px solid var(--green); }
.status-under_review   { background: #0033aa22; color: var(--blue); border: 1px solid var(--blue); }
.status-approved       { background: #00330022; color: var(--green); border: 1px solid var(--green); }
.status-rejected       { background: #33000022; color: var(--red); border: 1px solid var(--red); }
.status-active         { background: #0a331a; color: var(--green); border: 1px solid var(--green); }
.status-repaid         { background: #1a1a3a; color: var(--purple); border: 1px solid var(--purple); }
.status-returning      { background: #1a1400; color: #e8b800; border: 1px solid #e8b80060; }
.status-defaulted      { background: #330000; color: var(--red); border: 1px solid var(--red); }

.steps-indicator { display: flex; align-items: center; justify-content: center; gap: 0; }
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.step span { width: 28px; height: 28px; border-radius: 50%; background: var(--bg3); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.step.active span { background: var(--gold); border-color: var(--gold); color: #000; }
.step p { font-size: 10px; color: var(--text3); white-space: nowrap; }
.step-line { flex: 1; height: 2px; background: var(--border); max-width: 40px; }

.photo-upload-box { border: 2px dashed var(--border); border-radius: 10px; aspect-ratio: 1; cursor: pointer; overflow: hidden; }
.photo-upload-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text3); gap: 4px; }
.photo-upload-inner i { font-size: 20px; }
.photo-upload-inner p { font-size: 11px; }

.pawn-detail-header { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.info-table { border-collapse: collapse; }
.info-table td { padding: 6px 0; font-size: 13px; }
.info-table td:first-child { color: var(--text3); min-width: 100px; }
.info-banner { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }

/* ── ACCOUNT ─────────────────────────────────────────────── */
.profile-header { display: flex; align-items: center; gap: 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; position: relative; }
.profile-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--bg3); border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: var(--gold); overflow: hidden; flex-shrink: 0; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 16px; font-weight: 700; margin: 0; }
.profile-email { font-size: 12px; color: var(--text3); margin: 2px 0 0; }
.edit-profile-btn { position: absolute; right: 14px; top: 14px; background: var(--bg3); border: 1px solid var(--border); color: var(--text2); width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }

.stat-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 8px; text-align: center; }
.stat-card i { font-size: 20px; }
.stat-val { font-size: 20px; font-weight: 800; margin: 0; }
.stat-label { font-size: 11px; color: var(--text3); margin: 0; }

.menu-list { display: flex; flex-direction: column; gap: 2px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.menu-item i:first-child { width: 20px; text-align: center; }
.menu-item span { flex: 1; font-size: 14px; }
.menu-item:hover { background: var(--bg3); }

.order-card-list { display: block; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
.order-code { font-size: 14px; font-weight: 700; }
.order-date { font-size: 12px; color: var(--text3); }
.order-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.pay-pending  { background: #33290044; color: var(--gold); }
.pay-paid     { background: #00330044; color: var(--green); }
.pay-failed   { background: #33000044; color: var(--red); }
.pay-refunded { background: #1a1a3a44; color: var(--purple); }
.ship-pending     { background: #1a1a1a; color: var(--text3); }
.ship-processing  { background: #001a3344; color: var(--blue); }
.ship-packed      { background: #001a1a44; color: #22d3ee; }
.ship-shipped     { background: #00330044; color: var(--green); }
.ship-delivered   { background: #0a330a; color: var(--green); }
.ship-cancelled   { background: #33000044; color: var(--red); }

.collection-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.collection-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.collection-img-placeholder { width: 100%; aspect-ratio: 1; background: var(--bg3); display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 24px; }

.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif-item { display: flex; align-items: flex-start; gap: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.notif-item.read { opacity: .6; }
.notif-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.notif-title { font-size: 13px; font-weight: 600; margin: 0; }
.notif-msg { font-size: 12px; color: var(--text2); margin: 2px 0; }
.notif-time { font-size: 11px; color: var(--text3); margin: 0; }
.notif-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; flex-shrink: 0; margin-top: 4px; }

/* ── AVATAR UPLOAD ───────────────────────────────────────── */
.avatar-upload-wrap { position: relative; width: 90px; height: 90px; margin: 0 auto; cursor: pointer; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); }
.avatar-placeholder { width: 100%; height: 100%; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: var(--gold); }
.avatar-upload-wrap img { width: 100%; height: 100%; object-fit: cover; }
.avatar-edit-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 6px; color: var(--gold); font-size: 14px; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group-dark label { font-size: 12px; font-weight: 600; color: var(--text2); display: block; margin-bottom: 4px; }
.form-control-dark {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 10px 12px;
  font-size: 14px; outline: none; font-family: 'Inter', sans-serif;
}
.form-control-dark:focus { border-color: var(--gold); }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 14px; pointer-events: none; }
.input-icon .form-control-dark { padding-left: 36px; }
.input-icon .toggle-pwd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text3); cursor: pointer; }

/* ── AUTH ────────────────────────────────────────────────── */
.auth-page { padding: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.auth-container { width: 100%; max-width: 400px; padding: 24px 16px; }
.brand-logo-lg { display: flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; color: var(--gold); }
.brand-box-lg { width: 36px; height: 36px; background: var(--gold); color: #000; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; }
.auth-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.auth-card h5 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; }
.alert-dark-error { background: #33000022; border: 1px solid var(--red); color: var(--red); border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.alert-dark-success { background: #00330022; border: 1px solid var(--green); color: var(--green); border-radius: 8px; padding: 10px 14px; font-size: 13px; }

/* ── MODAL ───────────────────────────────────────────────── */
.modal-dark { background: var(--bg2); color: var(--text); border: 1px solid var(--border); }
.modal-header-dark { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px; }
.btn-close-dark { background: none; border: none; color: var(--text2); font-size: 16px; cursor: pointer; }

/* ── FILTER OFFCANVAS ────────────────────────────────────── */
.filter-offcanvas { background: var(--bg2); color: var(--text); border-left: 1px solid var(--border); }
.filter-label { font-size: 12px; font-weight: 700; color: var(--text2); display: block; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.filter-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; font-size: 13px; }
.filter-check input { accent-color: var(--gold); }

/* ── PAGINATION ──────────────────────────────────────────── */
.page-btn { width: 36px; height: 36px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--border); color: var(--text2); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.page-btn.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }

/* ── TABS ────────────────────────────────────────────────── */
.tab-pills { display: flex; gap: 8px; }
.tab-pill { background: var(--bg3); border: 1px solid var(--border); color: var(--text2); padding: 7px 16px; border-radius: 20px; font-size: 13px; cursor: pointer; }
.tab-pill.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }
.badge-count { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 8px; margin-left: 4px; }

/* ── MISC ────────────────────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 0; color: var(--text3); }
.empty-state i { font-size: 48px; }
.empty-state p { font-size: 14px; }
.back-btn { width: 36px; height: 36px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text2); }

/* ── TOAST ───────────────────────────────────────────────── */
.kk-toast {
  position: fixed; bottom: calc(var(--bottom-h) + 12px); left: 50%; transform: translateX(-50%);
  background: #222; border: 1px solid var(--border); color: var(--text);
  padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 500;
  z-index: 2000; white-space: nowrap;
  animation: toastIn .25s ease;
}
.kk-toast.error { border-color: var(--red); color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
