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

:root {
  --primary: #111111;
  --primary2: #2b2b2b;
  --gold: #c9a227;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --card-bg2: #f7f5ef;
  --text: #111111;
  --muted: #8b8b93;
  --border: rgba(0,0,0,0.08);
  --radius: 20px;
  --success: #2ecc71;
  --danger: #ff4d6d;
  --warn: #f5a623;
  --info: #4d9dff;
}

[data-theme="dark"] {
  --primary: #d4af37;
  --primary2: #b8941f;
  --gold: #d4af37;
  --bg: #0d0d0d;
  --card-bg: #161616;
  --card-bg2: #1f1f1f;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --border: rgba(212,175,55,0.18);
}

body {
  font-family: 'Manrope', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 10px;
  min-height: 100vh;
}
[data-theme="dark"] body { background: radial-gradient(circle at top, #1a1b3a 0%, var(--bg) 60%); }

/* ============ HEADER ============ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}
.header h1 {
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--primary2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header h1 i { color: var(--gold); -webkit-text-fill-color: var(--gold); }

.cart-btn {
  border: none;
  background: var(--primary);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ============ CATEGORIES ============ */
.categories {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.cat-btn {
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 9px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}
.cat-btn.active {
  background: var(--primary);
  color: var(--bg);
  border-color: transparent;
  box-shadow: none;
}

/* ============ PRODUCTS GRID ============ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px;
}
.loading { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .15s ease;
}
.product-card:active { transform: scale(0.97); }

.product-img-wrap { position: relative; background: var(--card-bg2); }
.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--danger), #c0264a);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(255,77,109,0.4);
}
.gallery-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-info { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.product-price { font-size: 16px; font-weight: 800; color: var(--gold); }
.old-price { font-size: 12px; color: var(--muted); text-decoration: line-through; }

.add-btn {
  margin-top: 8px;
  border: none;
  background: var(--primary);
  color: var(--bg);
  padding: 10px 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: none;
}

.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  background: var(--primary);
  border-radius: 10px;
  overflow: hidden;
}
.qty-control button { border: none; background: transparent; color: var(--bg); width: 34px; height: 34px; font-size: 14px; }
.qty-control span { color: var(--bg); font-weight: 700; font-size: 14px; }
.qty-control-lg { width: 140px; }
.qty-control-lg button { width: 44px; height: 44px; font-size: 16px; }
.qty-control-lg span { font-size: 16px; }

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  z-index: 15;
}
.nav-item {
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 20px;
}
.nav-item i { font-size: 19px; }
.nav-item.active { color: var(--primary); }

/* ============ OVERLAY & SHEETS ============ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,5,15,0.65);
  backdrop-filter: blur(3px);
  z-index: 20;
}
.overlay.show { display: block; }

.sheet-panel {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 30;
  padding: 18px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.sheet-panel.show { display: block; }

.sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-header h2 { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.sheet-header h2 i { color: var(--gold); }
.close-btn { border: none; background: var(--card-bg2); width: 34px; height: 34px; border-radius: 50%; color: var(--text); font-size: 15px; }

/* ============ CART ============ */
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item img { width: 58px; height: 58px; object-fit: cover; border-radius: 10px; background: var(--card-bg2); }
.cart-item-info { flex: 1; }
.cart-item-info .name { font-size: 14px; font-weight: 700; }
.cart-item-info .size-tag { display:inline-block; font-size: 11px; color: var(--gold); background: rgba(255,200,87,0.12); padding: 1px 8px; border-radius: 6px; margin-top: 3px; font-weight:700; }
.cart-item-info .price { font-size: 13px; color: var(--gold); font-weight: 600; margin-top: 4px; }
.cart-empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }
.cart-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 16px; font-weight: 600; }
.cart-total strong { color: var(--gold); font-size: 20px; }

.btn-primary {
  width: 100%;
  border: none;
  background: var(--primary);
  color: var(--bg);
  padding: 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: none;
}
.btn-outline {
  width: 100%;
  border: 1.5px solid var(--danger);
  background: transparent;
  color: var(--danger);
  padding: 13px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

/* ============ CHECKOUT / INFO BANNER ============ */
.info-banner {
  display: flex;
  gap: 10px;
  background: rgba(77,157,255,0.1);
  border: 1px solid rgba(77,157,255,0.3);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #cfd8e6;
}
.info-banner i { color: var(--info); font-size: 16px; margin-top: 2px; }
.info-banner b { display: block; margin-bottom: 4px; color: var(--text); font-size: 13px; }
.info-banner ol { padding-left: 18px; line-height: 1.6; }

.timer-box {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  background: var(--card-bg2);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
}
.timer-ring { transform: rotate(-90deg); }
.timer-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 6; }
.timer-fg {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 201;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke .3s;
}
.timer-text { text-align: left; }
.timer-count { font-size: 22px; font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.timer-label { font-size: 12px; color: var(--muted); }

.time-up-box { display: none; text-align: center; padding: 20px 10px; }
.time-up-box.show { display: block; }
.time-up-box i { font-size: 48px; color: var(--danger); margin-bottom: 12px; }
.time-up-box h3 { font-size: 18px; margin-bottom: 8px; }
.time-up-box p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

#orderForm { display: flex; flex-direction: column; gap: 12px; }
#orderForm.hide-form { display: none; }
#orderForm label { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
#orderForm label i { color: var(--gold); width: 14px; }
#orderForm input, #orderForm textarea {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  width: 100%;
  background: var(--card-bg2);
  color: var(--text);
}
#orderForm input::placeholder, #orderForm textarea::placeholder { color: #6a6a80; }
#orderForm input:focus, #orderForm textarea:focus { outline: none; border-color: var(--primary); }
#orderForm textarea { resize: none; min-height: 60px; }

.payment-box {
  background: var(--card-bg2);
  border: 1.5px dashed var(--primary);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  margin: 4px 0;
}
.payment-box p { font-size: 13px; color: #cfcfe0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.payment-box p i { color: var(--gold); }
.card-number { font-size: 22px; font-weight: 800; letter-spacing: 1.5px; margin: 8px 0; color: var(--gold); }
.card-owner { font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }

/* ============ DETAIL PANEL (galereya + size) ============ */
.detail-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; margin-bottom: 8px; }
.detail-gallery img { width: 100%; flex: 0 0 100%; scroll-snap-align: start; height: 260px; object-fit: cover; border-radius: 16px; background: var(--card-bg2); }
.detail-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 14px; }
.detail-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.detail-dots span.active { background: var(--gold); width: 16px; border-radius: 3px; }
.detail-name { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.detail-price-row { margin-bottom: 10px; }
.detail-price-row .product-price { font-size: 20px; }
.detail-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.detail-sizes { margin-bottom: 16px; }
.detail-sizes .size-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  border: 1.5px solid var(--border);
  background: var(--card-bg2);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.size-chip.active { background: var(--primary); border-color: transparent; color: var(--bg); }
.detail-qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 14px; font-weight: 700; color: var(--muted); }

/* ============ AUTH / PROFILE ============ */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 18px; background: var(--card-bg2); padding: 4px; border-radius: 12px; }
.auth-tab { flex: 1; border: none; background: transparent; color: var(--muted); padding: 10px; border-radius: 9px; font-weight: 700; font-size: 13px; }
.auth-tab.active { background: var(--primary); color: var(--bg); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form label { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.auth-form label i { color: var(--gold); width: 14px; }
.auth-form input {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: var(--card-bg2);
  color: var(--text);
}
.auth-form input:focus { outline: none; border-color: var(--primary); }
.auth-error { color: var(--danger); font-size: 12.5px; min-height: 14px; }

.profile-card { text-align: center; padding: 24px 0 16px; }
.profile-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: #fff; margin: 0 auto 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.profile-name { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.profile-phone { font-size: 14px; color: var(--muted); }

/* ============ ORDERS LIST ============ */
.status-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.status-legend span { display: flex; align-items: center; gap: 4px; }
.status-legend i { font-size: 8px; }

.order-card {
  background: var(--card-bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.order-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-id { font-weight: 800; font-size: 14px; }
.order-date { font-size: 11px; color: var(--muted); }
.order-status-badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 8px; display: inline-flex; align-items: center; gap: 5px; }
.status-yangi { background: rgba(255,176,32,0.15); color: var(--warn); }
.status-tasdiqlangan { background: rgba(46,204,113,0.15); color: var(--success); }
.status-yuborilgan { background: rgba(77,157,255,0.15); color: var(--info); }
.status-bekor_qilingan { background: rgba(255,77,109,0.15); color: var(--danger); }
.order-items-text { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.order-total-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; border-top: 1px dashed var(--border); padding-top: 8px; }
.order-total-row strong { color: var(--gold); }
.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; font-size: 14px; }
.empty-state i { font-size: 40px; margin-bottom: 12px; display: block; color: var(--border); }

/* ============ SUCCESS ============ */
.success-box { display: none; position: fixed; inset: 0; background: rgba(5,5,15,0.75); z-index: 40; align-items: center; justify-content: center; }
.success-box.show { display: flex; }
.success-content { background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 30px 24px; text-align: center; width: 85%; }
.success-icon { font-size: 52px; color: var(--success); margin-bottom: 12px; }
.success-content h2 { margin-bottom: 8px; font-size: 19px; font-weight: 800; }
.success-content p { margin-bottom: 20px; color: var(--muted); font-size: 14px; }

/* ============ TUNGI TEMA UCHUN QO'SHIMCHA SOZLAMALAR ============ */
[data-theme="dark"] body { }
[data-theme="dark"] .header { background: rgba(23,24,48,0.85); }
[data-theme="dark"] .sheet-panel { box-shadow: 0 -10px 40px rgba(0,0,0,0.5); }
[data-theme="dark"] .bottom-nav { background: rgba(23,24,48,0.92); }

.icon-btn {
  border: none;
  background: var(--card-bg2);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 15px;
}

/* ============ SEARCH BAR ============ */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 14px;
  margin: 4px 16px 0;
  color: var(--muted);
}
.search-bar input {
  border: none; background: transparent; outline: none;
  color: var(--text); font-size: 14px; flex: 1; font-family: inherit;
}
.search-bar input::placeholder { color: var(--muted); }

/* ============ WISHLIST HEART ============ */
.wish-heart {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,0.4); border: none;
  color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.wish-heart.active { color: #ff5c8a; }
#detailWishBtn.active i { color: #ff5c8a; }
#detailWishBtn.active i::before { font-weight: 900; }

/* ============ RATING ============ */
.detail-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.detail-rating .stars { color: var(--gold); }
.card-rating { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.card-rating i { color: var(--gold); font-size: 10px; }

/* ============ REVIEWS ============ */
.reviews-section { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 16px; }
.reviews-section h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.reviews-section h3 i { color: var(--gold); }
.review-item { background: var(--card-bg2); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.review-item .rname { font-weight: 700; font-size: 13px; }
.review-item .rstars { color: var(--gold); font-size: 12px; margin: 3px 0; }
.review-item .rcomment { font-size: 13px; color: var(--muted); line-height: 1.5; }
.review-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 16px 0; }

.star-input { display: flex; gap: 8px; font-size: 24px; color: var(--border); margin-bottom: 10px; justify-content: center; }
.star-input i { cursor: pointer; }
.star-input i.active { color: var(--gold); }

#reviewComment {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px;
  background: var(--card-bg2); color: var(--text); font-family: inherit; font-size: 13px; min-height: 60px; resize: none; margin-bottom: 10px;
}

.btn-outline-primary {
  width: 100%; border: 1.5px solid var(--primary); background: transparent; color: var(--primary);
  padding: 12px; border-radius: 12px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
[data-theme="light"] .btn-outline-primary { color: #4a3fd6; border-color: #4a3fd6; }

/* ============ PROMO & DELIVERY ============ */
.promo-result { font-size: 12.5px; margin-top: -4px; min-height: 14px; }
.promo-result.success { color: var(--success); }
.promo-result.error { color: var(--danger); }
.price-breakdown { font-size: 12px; color: var(--muted); text-align: left; margin: 8px 0; line-height: 1.8; }
.price-breakdown .pb-row { display: flex; justify-content: space-between; }
#orderForm select {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px;
  font-size: 14px; width: 100%; background: var(--card-bg2); color: var(--text); font-family: inherit;
}

/* ============ OTP ============ */
#otpBox { margin-top: 4px; }

/* ============ LANGUAGE SWITCH ============ */
.lang-switch { display: flex; gap: 6px; margin-bottom: 16px; }
.lang-btn { flex: 1; border: 1px solid var(--border); background: var(--card-bg2); color: var(--muted); padding: 8px; border-radius: 10px; font-weight: 700; font-size: 12px; }
.lang-btn.active { background: var(--primary); color: #fff; border-color: transparent; }

#getLocationBtn { margin-top: -2px; margin-bottom: 4px; }

/* ============ BELL / NOTIFICATION ============ */
.bell-dot {
  position: absolute; top: 6px; right: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger); display: none;
  box-shadow: 0 0 0 2px var(--card-bg);
}
.bell-dot.show { display: block; }
#bellBtn { position: relative; }

.news-item { background: var(--card-bg2); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.news-item img { width: 100%; border-radius: 10px; margin-bottom: 10px; max-height: 160px; object-fit: cover; }
.news-item h4 { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.news-item p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.news-item .news-date { font-size: 11px; color: var(--muted); margin-top: 8px; display: block; }

/* ============ SUPPORT CHAT ============ */
.chat-messages { display: flex; flex-direction: column; gap: 10px; min-height: 300px; max-height: 55vh; overflow-y: auto; padding: 4px 0 12px; }
.chat-bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.chat-bubble.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.admin { align-self: flex-start; background: var(--card-bg2); color: var(--text); border-bottom-left-radius: 4px; }
.chat-bubble .ctime { font-size: 10px; opacity: .65; margin-top: 4px; }
.chat-input-row { display: flex; gap: 8px; position: sticky; bottom: 0; background: var(--card-bg); padding-top: 8px; }
.chat-input-row input {
  flex: 1; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px;
  background: var(--card-bg2); color: var(--text); font-size: 14px; font-family: inherit;
}
.chat-input-row button { border: none; width: 46px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 16px; }
.chat-empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 13px; }

/* ============ PROFIL YANGI DIZAYN ============ */
.profile-hero {
  text-align: center; padding: 20px 0 18px;
  background: var(--card-bg2);
  border-radius: 18px; margin-bottom: 16px;
}
.profile-menu { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.profile-menu-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card-bg2); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; color: var(--text); font-size: 14px; font-weight: 700;
}
.profile-menu-item .pmi-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0;
}
.profile-menu-item .pmi-text { flex: 1; text-align: left; }
.profile-menu-item i.fa-chevron-right { color: var(--muted); font-size: 12px; }

/* ============ REGISTER HERO ============ */
.reg-hero {
  display: flex; align-items: center; gap: 10px;
  background: var(--card-bg2);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 4px;
  font-size: 13px; font-weight: 700; color: var(--text);
}
.reg-hero i { font-size: 20px; color: var(--gold); }

/* ============ ANIMATSIYALAR ============ */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(255,200,87,0.4); } 50% { box-shadow: 0 0 0 8px rgba(255,200,87,0); } }
@keyframes shimmer { 0% { transform: translateX(-100%) rotate(20deg); } 100% { transform: translateX(200%) rotate(20deg); } }
@keyframes cardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes checkPop { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

.sheet-panel.show { animation: fadeSlideUp .35s cubic-bezier(.2,.8,.2,1); }
.overlay.show { animation: fadeIn .25s ease; }
.product-card { animation: fadeIn .4s ease; }
.success-icon { animation: checkPop .5s cubic-bezier(.34,1.56,.64,1); }
#cartCount { transition: transform .2s ease; }

/* ============ PRO PAYMENT BOX ============ */
.pro-payment { position: relative; border: 1px solid var(--border); background: var(--card-bg2); animation: fadeSlideUp .4s ease; }
.pp-badge {
  position: absolute; top: -10px; right: 14px;
  background: linear-gradient(135deg, var(--success), #1ea058);
  color: #fff; font-size: 10px; font-weight: 800;
  padding: 5px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 3px 10px rgba(46,204,113,0.4);
  animation: pulseGlow 2.5s infinite;
}

.card-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #232449, #14152c 60%, #2a1b45);
  border-radius: 16px;
  padding: 18px;
  margin: 12px 0 8px;
  animation: cardFloat 4s ease-in-out infinite;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.card-visual-shine {
  position: absolute; top: 0; left: 0; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: shimmer 3.5s infinite;
}
.card-visual-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-chip-icon { font-size: 22px; color: var(--gold); transform: rotate(90deg); }
.card-type-badge { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #fff; opacity: .85; text-transform: uppercase; }
.card-visual .card-number { font-size: 21px; letter-spacing: 2px; color: #fff; margin: 0 0 10px; font-family: 'Courier New', monospace; }
.card-visual .card-owner { font-size: 12px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: .5px; margin: 0; }

.copy-card-btn {
  width: 100%; border: 1px solid var(--border); background: var(--card-bg2); color: var(--text);
  padding: 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.copy-card-btn.copied { background: rgba(46,204,113,0.15); color: var(--success); border-color: var(--success); }
.pay-amount-row { margin-top: 6px !important; }

/* ============ INPUT ICON GROUP (register/login) ============ */
.input-icon-group { position: relative; }
.input-icon-group .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--primary); font-size: 14px; pointer-events: none;
}
.input-icon-group input { padding-left: 40px !important; }
.otp-group .input-icon { color: var(--gold); }

.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shimmer 2.8s infinite;
}

.reg-benefits { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.reg-benefits div { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.reg-benefits i { color: var(--success); }

/* ============ XARITA PICKER ============ */
.map-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.map-hint i { color: var(--gold); }
#mapContainer { width: 100%; height: 320px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }

.map-error { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 13px; text-align: center; padding: 20px; gap: 10px; }
.map-error i { font-size: 32px; color: var(--warn); }

/* ============ PROGRESS STEPPER (Buyurtmalarim) ============ */
.stepper { display: flex; align-items: flex-start; margin: 14px 0; }
.step { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: 70px; }
.step-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; margin-bottom: 6px; border: 2px solid var(--border);
  background: var(--card-bg2); color: var(--muted); flex-shrink: 0;
}
.step.done .step-dot { background: var(--success); border-color: var(--success); color: #fff; }
.step.active .step-dot { background: var(--gold); border-color: var(--gold); color: #1a1a2e; animation: pulseGlow 1.8s infinite; }
.step-label { font-size: 10px; text-align: center; color: var(--muted); line-height: 1.3; }
.step.active .step-label, .step.done .step-label { color: var(--text); font-weight: 700; }
.step-line { flex: 1; height: 2px; background: var(--border); margin-top: 14px; }
.step-line.done { background: var(--success); }
.stepper-cancelled { display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: 13px; font-weight: 700; margin: 10px 0; background: rgba(255,77,109,0.1); padding: 10px; border-radius: 10px; }

/* ============ MINI STEPPER (Checkout) ============ */
.mini-stepper { display: flex; align-items: center; margin-bottom: 16px; }
.mini-step { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; font-weight: 700; }
.mini-step i { font-size: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--card-bg2); display: flex; align-items: center; justify-content: center; }
.mini-step.active i { background: var(--primary); color: var(--bg); }
.mini-step.active { color: var(--text); }
.mini-step-line { flex: 1; height: 2px; background: var(--border); margin: 0 2px 14px; }

/* ============ KUNLIK BANNER ============ */
.daily-banner {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--gold), #ff8a5c);
  border-radius: 16px; padding: 12px; margin: 12px 16px 4px; overflow: hidden;
  animation: fadeSlideUp .4s ease;
}
.daily-banner img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.daily-banner-text { flex: 1; display: flex; flex-direction: column; }
.daily-banner-text b { color: #1a1420; font-size: 14px; font-weight: 800; }
.daily-banner-text span { color: rgba(26,20,32,0.75); font-size: 11.5px; margin-top: 2px; }
.daily-banner-close { border: none; background: rgba(0,0,0,0.15); color: #1a1420; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; font-size: 12px; }

/* ============ ISH VAQTI YOPIQ BAR ============ */
.closed-bar {
  background: rgba(255,77,109,0.12); color: var(--danger); border-bottom: 1px solid rgba(255,77,109,0.25);
  padding: 10px 16px; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}

/* ============ OUT OF STOCK ============ */
.out-of-stock-overlay {
  position: absolute; inset: 0; background: rgba(10,10,20,0.55);
  display: flex; align-items: center; justify-content: center;
}
.out-of-stock-overlay span {
  background: var(--danger); color: #fff; font-size: 12px; font-weight: 800;
  padding: 6px 16px; border-radius: 8px; transform: rotate(-8deg);
}
.out-of-stock-btn { background: linear-gradient(135deg, #6b6b80, #4a4a5c) !important; box-shadow: none !important; }

/* ============ PDF CHEK TUGMASI ============ */
.pdf-receipt-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; padding: 10px; border-radius: 10px;
  background: rgba(255,77,77,0.1); color: #ff4d4d; text-decoration: none;
  font-size: 12.5px; font-weight: 700; border: 1px solid rgba(255,77,77,0.25);
}

/* ============ LINK BUTTON ============ */
.link-btn { border: none; background: transparent; color: var(--primary); font-size: 12.5px; font-weight: 700; text-align: center; padding: 4px; }
[data-theme="light"] .link-btn { color: #4a3fd6; }

/* ============ MINIMALIST QO'SHIMCHALAR (avatar, ranglar) ============ */
.profile-avatar {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-edit-badge {
  position: absolute; bottom: -2px; right: -2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; border: 2px solid var(--card-bg);
}

.detail-colors { margin-bottom: 16px; }
.detail-colors .size-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

/* Mahsulot kartalarini yanada minimalist qilish */
.product-card { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
[data-theme="dark"] .product-card { box-shadow: none; }
.product-price { color: var(--text); }
[data-theme="dark"] .product-price { color: var(--gold); }

.card-number, .card-owner { color: #fff; }

/* ============ AKSIO BREND LOGOTIPI ============ */
.brand-logo { display: flex; align-items: center; }
.brand-logo-img { height: 40px; width: auto; object-fit: contain; }
.auth-brand-logo { height: 58px; width: auto; object-fit: contain; margin: 0 auto; display: block; }
.brand-emblem {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 800; font-size: 17px; color: var(--gold);
  background: var(--card-bg);
  flex-shrink: 0;
}
.brand-emblem-img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 1.5px; color: var(--text); }
.brand-tagline { font-size: 8.5px; font-weight: 700; letter-spacing: 2px; color: var(--gold); }

/* ============ AUTH BRAND HEADER ============ */
.auth-brand-header { text-align: center; margin-bottom: 20px; }
.auth-brand-sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ============ SOZLAMALAR PANELI ============ */
.settings-block { margin-bottom: 20px; }
.settings-label { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.settings-label i { color: var(--gold); }
.settings-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card-bg2); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600;
}
.switch-toggle {
  width: 44px; height: 26px; border-radius: 20px; border: none;
  background: var(--border); position: relative; flex-shrink: 0;
}
.switch-toggle.on { background: var(--gold); }
.switch-dot {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .2s ease; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.switch-toggle.on .switch-dot { transform: translateX(18px); }
.settings-about { text-align: center; background: var(--card-bg2); border-radius: 12px; padding: 16px; font-size: 13px; line-height: 1.6; }
