
:root {
  --brand: #0d2137;
  --brand-light: #1a3a5c;
  --primary: #0d2137;
  --primary-light: #1a3a5c;
  --accent: #FFD700;
  --accent-dark: #FFA000;
  --red: #E91E63;
  --bg: #f2f4f5;
  --white: #fff;
  --text: #0d2137;
  --text-light: #4a6580;
  --text-muted: #8b9fa2;
  --border: #e8e8e8;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 25px rgba(13,33,55,0.12);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --input-bg: #f0f0f0;
  --card-bg: #fff;
  --radius: 12px;

  /* ── Design Tokens ── */
  --cta-bg:     linear-gradient(135deg, #FFA000, #FFD700);
  --cta-text:   #0d2137;
  --cta-shadow: 0 2px 10px rgba(255,160,0,.30);
  --btn2-border: #0d2137;
  --btn2-text:   #0d2137;
  --btn3-border: #E0E0E0;
  --btn3-text:   #777777;
  /* Type scale */
  --text-xs:    11px;
  --text-sm:    13px;
  --text-base:  15px;
  --text-lg:    17px;
  --text-xl:    20px;
  --text-price: 16px;
  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-pill: 24px;
}

/* Dark mode */
[data-theme="dark"] {
  --primary: #4a90d9;
  --primary-light: #5ba3e8;
  --bg: #121212;
  --white: #1e1e1e;
  --text: #e0e0e0;
  --text-light: #adbfc2;
  --text-muted: #777;
  --border: #333;
  --shadow: 0 2px 8px rgba(0,0,0,.3);
  --shadow-lg: 0 8px 25px rgba(0,0,0,.4);
  --input-bg: #2a2a2a;
  --card-bg: #1e1e1e;
  --accent: #FFD700;
  --accent-dark: #FFA000;
  --red: #E91E63;
  /* Dark mode tokens */
  --cta-shadow: 0 2px 10px rgba(255,193,7,.22);
  --btn2-border: #adbfc2;
  --btn2-text:   #e0e0e0;
  --btn3-border: #444444;
  --btn3-text:   #999999;
}
[data-theme="dark"] img { opacity: .92; }
[data-theme="dark"] .logo-icon { color: #0d2137 !important; }

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  overflow-x: hidden; width: 100%;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%; max-width: 100vw;
  padding-top: calc(72px + var(--safe-top));
  padding-bottom: calc(60px + var(--safe-bottom));
  word-break: break-word;
  -webkit-text-size-adjust: 100%;
}
body.page-profile, body.page-chat, body.page-myads, body.page-favorites, body.page-messages, body.page-post, body.page-edit { padding-top: 0; }
/* Page-specific body padding */
body.page-detail { padding-bottom: 0; padding-top: 0; margin-top: 0; background: #000; }
body.page-chat { padding-bottom: 0; padding-top: 0; }
body.page-profile { padding-top: 0; }
body.page-wallet, body.page-topup, body.page-paymenthistory, body.page-editprofile, body.page-services, body.page-shoppage, body.page-verifypage, body.page-about, body.page-howworks, body.page-safety, body.page-terms, body.page-privacy, body.page-seller, body.page-notifications { padding-bottom: 0; padding-top: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { max-width: 100%; }
main { overflow-x: hidden; width: 100%; }

/* ========== HEADER ========== */
.header {
  background: var(--white);
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding-top: var(--safe-top);
  width: 100%; max-width: 100vw;
  border-bottom: 1px solid var(--border);
  transition: background .3s ease, border-radius .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* Row 1: Hudud + Bell */
.hd-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 6px;
  max-height: 60px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .3s ease, opacity .25s ease, padding .3s ease;
}
.hd-region {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--text);
  font-family: inherit; padding: 2px 0;
  -webkit-tap-highlight-color: transparent;
}
.hd-region-name {
  max-width: 180px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.hd-region-arrow { color: var(--text-muted); flex-shrink: 0; }
.hd-region:active { opacity: .6; }

.hd-bell {
  position: relative; background: none; border: none;
  cursor: pointer; padding: 4px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); -webkit-tap-highlight-color: transparent;
}
.hd-bell:active { opacity: .5; }
.notif-badge {
  position: absolute; top: -1px; right: -3px;
  background: #FF3B30; color: #fff;
  font-size: 9px; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1; border: 2px solid var(--white);
}

/* Row 2: Search pill */
.hd-bottom {
  padding: 0 16px 10px;
  transition: padding .3s ease;
}
/* Normal holat: yumaloq pill */
.hd-search-pill {
  width: 100%; height: 44px;
  display: flex; align-items: center; gap: 10px;
  background: #EBEBEB; border: none;
  border-radius: 22px; padding: 0 16px;
  cursor: pointer; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: border-radius .3s ease, background .3s ease, height .3s ease, box-shadow .3s ease;
}
.hd-search-pill:active { opacity: .8; }
.hd-search-pill-icon { color: #6B7B7E; flex-shrink: 0; }
.hd-search-pill-text {
  flex: 1; font-size: 14px; color: #6B7B7E;
  font-weight: 400; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Eski header elementlar (hide) ── */
.hd-row1, .hd-row2, .hd-row3 { display: none; }
.hd-brand, .hd-logo, .hd-logo-text, .hd-right { display: none; }
.hd-search, .hd-search-icon, .hd-search-text { display: none; }
.hd-cat-btn { display: none; }
.header-top, .header-row, .header-sub, .header-search-row { display: none; }
.header-search-icon { display: none; }
.header-brand, .header-region-btn, .header-bell, .header-search, .header-search-btn, .header-search-text { display: none; }
.header-brand {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.header-brand .logo-icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #0d2137;
}
.header-brand .logo-text { font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -.3px; }
.header-region-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--input-bg); cursor: pointer;
  font-size: 12px; color: var(--text); font-weight: 600;
  transition: background .2s; border: 1px solid var(--border);
}
.header-region-btn:active { background: var(--border); }
.header-region-btn span { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Search page overlay */
.sp-cat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--white); cursor: pointer;
  border-bottom: 1px solid #f0f0f0; transition: background .15s;
}
.sp-cat-item:active { background: var(--input-bg); }
.sp-cat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.sp-cat-info { flex: 1; min-width: 0; }
.sp-cat-name { font-size: 14px; font-weight: 600; color: var(--text); }

/* Region modal */
.rm-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; cursor: pointer; border-bottom: 1px solid #f5f5f5;
  transition: background .15s;
}
.rm-item:active { background: var(--input-bg); }
.rm-item.active { background: rgba(255,215,0,.1); }
.rm-item.active .rm-name { color: var(--primary); }
.rm-name { font-size: 15px; color: var(--text); }
.rm-check { width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.btn-post { display: none; }

/* ========== CONTAINER ========== */
#app { overflow-x: hidden; width: 100%; max-width: 100vw; }
.container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 8px;
  width: 100%;
  overflow-x: hidden; overflow-wrap: break-word;
}

/* ========== CATEGORIES ========== */
.categories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 6px; padding: 10px 0; width: 100%;
}
.cat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 4px;
  cursor: pointer; text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 4px; overflow: hidden;
}
.cat-card:active { background: var(--input-bg); transform: scale(.97); }
.cat-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.cat-name {
  font-size: 9px; font-weight: 700;
  color: var(--text); line-height: 1.2;
  word-wrap: break-word; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis;
}

/* ========== SECTIONS ========== */
.section-title {
  font-size: 15px; font-weight: 800;
  color: var(--text); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.badge-vip {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 7px; border-radius: 4px;
}

/* ========== ADS GRID ========== */
.ads-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 6px; padding-bottom: 14px; width: 100%;
}
.ad-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  cursor: pointer; position: relative;
}
.ad-card:active { transform: scale(.98); }
.ad-card.vip { /* ribbon badge instead */ }
.ad-image {
  height: 170px; background: var(--input-bg);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.ad-image img:not(.cs-ava) { width: 100%; height: 100%; object-fit: cover; }
.ad-image .emoji-placeholder { font-size: 36px; }
.ad-badge { display: none; }
.ad-fav { display: none; }
.ad-info { padding: 10px 10px 8px; }
.ad-price-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.ad-price { font-size: 14px; font-weight: 900; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 32px); }
.ad-fav-inline {
  background: rgba(255,255,255,.8); border: none; cursor: pointer;
  padding: 0; flex-shrink: 0; line-height: 1;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); transition: transform .15s;
}
.ad-fav-inline:active { transform: scale(1.15); }
.ad-title {
  font-size: 14px; color: var(--text); font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin: 0 0 4px; min-height: 28px;
}
.card-tags { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.card-tag {
  font-size: 9px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; line-height: 1.3; white-space: nowrap;
}
.card-tag.vip { background: linear-gradient(135deg, rgba(255,215,0,.2), rgba(255,160,0,.15)); color: #F57F17; }
.card-tag.top { background: rgba(33,150,243,.12); color: #1976D2; }
.card-tag.shop { background: rgba(13,33,55,.08); color: var(--text-muted); }
.ad-meta { display: flex; justify-content: space-between; font-size: 9px; color: var(--text-muted); }

/* ========== SHOP SEARCH RESULTS ========== */
.sr-shops { margin-bottom: 14px; }
.sr-shop {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; cursor: pointer;
  border-radius: 12px; transition: background .15s;
}
.sr-shop:active { background: var(--input-bg); }
.sr-shop-ava {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.sr-shop-fb {
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff; border-color: transparent;
}
.sr-shop-info { flex: 1; min-width: 0; }
.sr-shop-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sr-shop-meta { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ========== MODAL ========== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 200;
  align-items: flex-end; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: 18px 18px 0 0;
  width: 100%; max-width: 480px;
  max-height: 90vh;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: 0 -10px 40px rgba(0,0,0,.15);
  animation: slideUp .3s ease;
  padding-bottom: var(--safe-bottom);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-handle { width: 36px; height: 4px; background: #ddd; border-radius: 2px; margin: 10px auto 0; }
.modal-header {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-header h2 { font-size: 17px; font-weight: 800; }
.modal-close {
  background: var(--bg); border: none; font-size: 16px;
  cursor: pointer; color: var(--text-muted);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 14px; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.form-input, .form-select {
  width: 100%; padding: 11px 10px;
  border: 2px solid var(--border);
  border-radius: 8px; font-size: 16px;
  outline: none; font-family: inherit;
  -webkit-appearance: none; appearance: none;
  background: var(--white); color: var(--text);
  max-width: 100%;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus { border-color: var(--accent); }
/* Form validation errors */
.form-error { border-color: #E53935 !important; background: rgba(229,57,53,.04) !important; animation: formShake .4s ease; }
.form-error:focus { border-color: #E53935 !important; box-shadow: 0 0 0 3px rgba(229,57,53,.15); }
.upload-area.form-error { border-color: #E53935 !important; background: rgba(229,57,53,.04) !important; animation: formShake .4s ease; }
.field-error-msg { font-size: 12px; color: #E53935; font-weight: 600; margin-top: 4px; padding-left: 2px; }
@keyframes formShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%230d2137' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
textarea.form-input { resize: vertical; min-height: 80px; }

.btn-primary {
  width: 100%; padding: 13px;
  background: var(--cta-bg);
  color: var(--cta-text); border: none; border-radius: var(--r-sm);
  font-size: var(--text-base); font-weight: 800; cursor: pointer; font-family: inherit;
  box-shadow: var(--cta-shadow);
  transition: opacity .2s, transform .15s;
}
.btn-primary:hover  { opacity: .92; }
.btn-primary:active { opacity: .82; transform: scale(.98); }
.btn-dark {
  width: 100%; padding: 13px;
  background: var(--primary); color: #fff; border: none;
  border-radius: var(--r-sm); font-size: var(--text-base); font-weight: 700;
  cursor: pointer; font-family: inherit; margin-bottom: 8px;
  transition: opacity .2s;
}
.btn-dark:hover  { opacity: .9; }
.btn-dark:active { opacity: .78; transform: scale(.98); }
.btn-accent-outline {
  width: 100%; padding: 13px;
  background: transparent; color: var(--btn2-text);
  border: 1.5px solid var(--btn2-border); border-radius: var(--r-sm);
  font-size: var(--text-base); font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .2s;
}
.btn-accent-outline:hover  { background: rgba(13,33,55,.06); }
.btn-accent-outline:active { background: rgba(13,33,55,.12); transform: scale(.98); }
.form-switch { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-light); }
.form-switch a { color: var(--accent-dark); font-weight: 700; cursor: pointer; }
/* Auth tabs */
.auth-tabs { display: flex; border-bottom: 1px solid #e0e0e0; margin-bottom: 20px; }
.auth-tab { flex: 1; padding: 16px 8px; background: none; border: none; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 600; color: var(--text-light); cursor: pointer; transition: all .2s; margin-bottom: -1px; }
.auth-tab.active { color: var(--text); border-bottom-color: var(--text); }
.auth-privacy { margin-top: 14px; font-size: 12px; color: var(--text-muted); text-align: center; line-height: 1.5; }
[data-theme="dark"] .auth-tabs { border-bottom-color: #333; }
[data-theme="dark"] .auth-tab.active { color: #fff; border-bottom-color: #fff; }
.alert { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 12px; font-weight: 600; }
.alert-error { background: rgba(198,40,40,.12); color: #EF5350; }
.alert-success { background: rgba(46,125,50,.12); color: #66BB6A; }

.price-types { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.price-type-btn {
  padding: 6px 12px; border: 2px solid var(--border);
  border-radius: 18px; background: var(--white); cursor: pointer;
  font-size: 12px; font-weight: 600; font-family: inherit; color: var(--text);
}
.price-type-btn.active { border-color: var(--accent); background: rgba(255,215,0,.08); color: var(--accent-dark); }
.desc-counter-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; min-height: 18px; }
.desc-hint { font-size: 12px; font-weight: 500; }
.desc-counter { font-size: 11px; color: var(--text-muted); }
.price-currency-toggle {
  display: flex; gap: 4px; margin-top: 8px;
}
.pcur-btn {
  flex: 1; padding: 8px 0; border: 2px solid var(--border);
  border-radius: 10px; background: var(--white); cursor: pointer;
  font-size: 13px; font-weight: 700; font-family: inherit; color: var(--text-muted);
  transition: all .15s;
}
.pcur-btn.active {
  border-color: var(--accent); background: rgba(255,215,0,.1);
  color: var(--accent-dark);
}

/* ========== DETAIL PAGE — OLX STYLE ========== */
.dt { background: var(--bg); min-height: 100vh; min-height: 100dvh; }
.dt-carousel-wrap { position: relative; background: #000; margin-top: 0; }

/* Seller overlay on carousel */
/* Detail page seller overlay — pill with blurred bg */
.dt-seller-overlay {
  position: absolute; bottom: 36px; left: 14px; z-index: 5;
  display: flex; align-items: center; gap: 7px; cursor: pointer;
}
.dt-so-ava {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.7);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.dt-so-name {
  font-size: 14px; font-weight: 700; color: #fff;
  
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 6px rgba(0,0,0,.8), 0 0 3px rgba(0,0,0,.5);
}
.dt-back {
  position: absolute; top: calc(12px + var(--safe-top)); left: 12px; z-index: 10;
  background: rgba(0,0,0,.35); border: none; border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(6px);
}
.dt-share {
  position: absolute; top: calc(12px + var(--safe-top)); right: 12px; z-index: 10;
  background: rgba(0,0,0,.35); border: none; border-radius: 50%;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(6px);
}
.dt-share:active, .dt-back:active { background: rgba(0,0,0,.55); }
.dt-no-img { height: 280px; display: flex; align-items: center; justify-content: center; font-size: 64px; }

/* Carousel */
.carousel { position: relative; background: #000; touch-action: pan-y; overflow: hidden; }
.carousel-track { display: flex; transition: transform .3s ease; will-change: transform; }
.carousel-slide {
  min-width: 100%; height: 320px;
  display: flex; align-items: center; justify-content: center;
  background: #000; overflow: hidden;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; cursor: pointer; }
.carousel-dots {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  border: none; padding: 0; transition: all .2s;
}
.carousel-dot.active { background: #fff; width: 20px; border-radius: 4px; }
.carousel-arr {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.8); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 20px; cursor: pointer; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.15); color: #333;
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
@media (max-width: 767px) { .carousel-arr { display: none; } }

/* Content card */
.dt-content {
  position: relative; background: var(--white);
  border-radius: 18px 18px 0 0; margin-top: -16px;
  padding: 20px 16px 14px; z-index: 5;
}
.dt-fav-float {
  position: absolute; top: -24px; right: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: inherit; box-shadow: 0 4px 14px rgba(0,0,0,.12);
  z-index: 6; transition: transform .15s;
  backdrop-filter: blur(8px);
}
.dt-fav-float:active { transform: scale(.88); }
.dt-fav-btn { display: none; }
.dt-fav { display: none; }
.dt-meta-top { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cond-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.cond-new { background: #e8f5e9; color: #2e7d32; }
.cond-used { background: #fff3e0; color: #e65100; }
[data-theme="dark"] .cond-new { background: #1b3a1f; color: #81c784; }
[data-theme="dark"] .cond-used { background: #3e2400; color: #ffb74d; }
.dt-title { font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--text); margin-bottom: 6px; word-break: break-word; }
.dt-price { font-size: 22px; font-weight: 900; color: var(--text); margin-bottom: 10px; }
.dt-cat-tag {
  display: inline-block; padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 700; margin-right: 6px; margin-bottom: 4px;
  background: var(--input-bg); color: var(--text); border: 1px solid var(--border);
}
.dt-cat-tag.vip { background: rgba(255,215,0,.15); color: #F57F17; border-color: rgba(255,215,0,.3); }
.dt-cat-tag.top { background: rgba(33,150,243,.1); color: #1976D2; border-color: rgba(33,150,243,.2); }

/* Sections */
.dt-section { background: var(--white); padding: 16px; margin-top: 8px; }
.dt-section-title { font-size: 13px; font-weight: 800; color: var(--text-muted); letter-spacing: .5px; margin-bottom: 10px; }

/* Description collapse */
.dt-desc { font-size: 14px; line-height: 1.7; color: var(--text-light); word-break: break-word; }
.dt-desc.collapsed {
  max-height: 100px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.dt-more-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--text);
  font-size: 14px; font-weight: 700; cursor: pointer;
  margin-top: 8px; padding: 6px 0; font-family: inherit;
}

/* Seller */
.dt-seller { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 4px 0; }
.dt-seller-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--input-bg); display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.dt-seller-info { flex: 1; min-width: 0; }
.dt-seller-name { font-size: 14px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 1px; flex-wrap: wrap; }
.dt-seller-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.dt-shop-badge { background: linear-gradient(135deg,#FFD700,#FFA000); color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 4px; font-weight: 800; }

/* Related */
.dt-related { padding: 16px; margin-top: 8px; background: var(--bg); }
.dt-related-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 12px; }

/* ========== AD CARD SELLER OVERLAY ========== */
/* ========== AD CARD SELLER OVERLAY ========== */
/* Shop badge — rasm tepasida, gradient bilan */
.cs {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
  pointer-events: none;
}
.cs-ava {
  width: 18px; height: 18px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.cs-fb {
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #fff; background: var(--accent-dark);
}
.cs-name {
  font-size: 12px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  letter-spacing: .2px;
}
.cs-top { display: none; }

/* Diagonal ribbon badge - burchakda */
.cs-ribbon {
  position: absolute; top: 0; right: 0;
  width: 48px; height: 48px;
  overflow: hidden; z-index: 3;
  pointer-events: none;
}
.cs-ribbon span {
  position: absolute;
  display: block; width: 68px; text-align: center;
  font-size: 9px; font-weight: 900; letter-spacing: .5px;
  padding: 3px 0;
  transform: rotate(45deg);
  top: 10px; right: -18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.20);
}
.cs-ribbon-vip span {
  background: linear-gradient(135deg, #FFD700, #FFC107);
  color: #1a1a2e;
}
.cs-ribbon-top span {
  background: linear-gradient(135deg, #2196F3, #1565C0);
  color: #fff;
}

/* ========== SELLER PROFILE PAGE ========== */
.sp { max-width: 800px; margin: 0 auto; padding-bottom: 30px; }

.sp-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; position: sticky; top: 0; z-index: 10;
  background: var(--white);
}
.sp-back, .sp-share {
  background: none; border: none; cursor: pointer; padding: 4px;
  display: flex; align-items: center; color: var(--text);
}
.sp-username { font-size: 17px; font-weight: 800; color: var(--text); }

/* Header: Avatar + 3 Stats */
.sp-header {
  display: flex; align-items: center; padding: 12px 20px 16px; gap: 20px;
}
.sp-ava-wrap { flex-shrink: 0; }
.sp-ava {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #888; overflow: hidden;
  border: 3px solid #e0e0e0;
}
.sp-stats { display: flex; gap: 20px; flex: 1; }
.sp-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.sp-stat-n { font-size: 18px; font-weight: 900; color: var(--text); }
.sp-stat-l { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* Info */
.sp-info { padding: 0 20px 14px; }
.sp-name { font-size: 16px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 4px; }
.sp-bio { font-size: 13px; color: var(--text-light); line-height: 1.5; margin-top: 6px; white-space: pre-line; }
.sp-bio.collapsed { max-height: 40px; overflow: hidden; }
.sp-bio-more { background: none; border: none; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; font-family: inherit; }
.sp-since { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Action buttons — Instagram Follow style */
.sp-actions { display: flex; gap: 6px; padding: 0 20px 16px; align-items: stretch; }
.sp-btn {
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; text-align: center; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; white-space: nowrap;
}
.sp-btn.follow { flex: 1; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #0d2137; border: none; }
.sp-btn.follow.subscribed { background: #efefef; color: #262626; }
.sp-btn.share-btn {
  width: 44px; min-width: 44px; flex: 0; padding: 0;
  background: #efefef; color: #262626; border: none; border-radius: 10px;
}
.sp-btn:active { transform: scale(.97); opacity: .85; }

.sp-username { font-size: 17px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 4px; }

/* Divider + Ads */
.sp-divider { height: 8px; background: var(--bg); }
.sp-ads { padding: 12px; }

/* Dark mode seller page */
[data-theme="dark"] .sp-top { background: var(--white); }
[data-theme="dark"] .sp-ava { border-color: #444; background: linear-gradient(135deg,#2a2a2a,#333); }
[data-theme="dark"] .sp-btn.follow { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #0d2137; }
[data-theme="dark"] .sp-btn.follow.subscribed { background: #333; color: #ccc; }
[data-theme="dark"] .sp-btn.share-btn { background: #333; color: #ccc; }
[data-theme="dark"] .sp-divider { background: #111; }
[data-theme="dark"] .sp-username { color: #e8e8e8; }

/* Button card */
.dt-btn-card { display: flex; flex-direction: column; gap: 8px; }
.dt-btn-call {
  display: block; width: 100%; padding: 13px; text-align: center;
  background: var(--cta-bg); color: var(--cta-text); border: none;
  border-radius: var(--r-sm); font-size: var(--text-base); font-weight: 800;
  cursor: pointer; font-family: inherit; text-decoration: none;
  box-shadow: var(--cta-shadow); transition: opacity .2s, transform .15s;
}
.dt-btn-call:hover  { opacity: .92; }
.dt-btn-msg {
  width: 100%; padding: 13px;
  background: transparent; color: var(--btn2-text);
  border: 1.5px solid var(--btn2-border); border-radius: var(--r-sm);
  font-size: var(--text-base); font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .2s;
}
.dt-btn-msg:hover  { background: rgba(13,33,55,.06); }
.dt-btn-report {
  width: 100%; padding: 11px;
  background: rgba(255,152,0,.06); color: #E65100;
  border: 1.5px solid #FFB74D; border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background .2s;
}
.dt-btn-report:hover { background: rgba(255,152,0,.12); }
.dt-btn-call:active, .dt-btn-msg:active, .dt-btn-report:active { opacity: .8; transform: scale(.98); }
.btn-primary:hover { opacity: .92; }
.prof-cta-btn:hover { opacity: .92; }
.pac-gbtn-promo:hover { opacity: .92; }
.wallet-topup-btn:hover { opacity: .92; }

/* Hide old */
.dt-action-btn { display: none; }

/* Hide old */
.dt-bottom-bar { display: none; }
.ad-detail { display: none; }
.detail-bottom-bar { display: none; }
.btn-back { display: none; }

/* ========== UPLOAD ========== */
.upload-area {
  display: block;
  border: 2px dashed var(--border); border-radius: 14px;
  padding: 28px 20px; text-align: center; cursor: pointer; background: var(--input-bg);
  transition: border-color .2s, background .2s;
}
.upload-area:active { border-color: var(--accent); background: rgba(255,215,0,.06); }
.upload-area .icon { font-size: 36px; margin-bottom: 6px; }
.upload-area .text { font-size: 14px; color: var(--text); font-weight: 600; }
.upload-area .hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.upload-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid var(--border); }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb .remove {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,.6); color: #fff; border: none;
  width: 18px; height: 18px; border-radius: 50%; font-size: 10px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ========== TAGS ========== */
.tags-section {
  background: var(--white); border-radius: 12px; padding: 12px;
  margin-bottom: 16px; border: 1px solid var(--border);
}
.tags-wrap { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 18px; padding: 5px 10px; font-size: 11px;
  color: var(--text-light); cursor: pointer; font-family: inherit; white-space: nowrap;
}
.tag:active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Breadcrumbs */
.breadcrumb {
  padding: 8px 0; display: flex; align-items: center;
  gap: 5px; font-size: 12px; overflow-x: auto;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb a { color: var(--accent-dark); font-weight: 600; cursor: pointer; white-space: nowrap; }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { font-weight: 700; white-space: nowrap; }
.breadcrumb .count { background: var(--border); padding: 2px 6px; border-radius: 10px; font-size: 10px; color: #666; }

/* ========== MISC ========== */
.no-results { text-align: center; padding: 40px 14px; color: var(--text-muted); }
.no-results .icon { font-size: 38px; margin-bottom: 6px; }

.toast {
  position: fixed; bottom: calc(70px + var(--safe-bottom));
  left: 50%; transform: translateX(-50%);
  padding: 10px 20px; border-radius: 24px;
  color: #fff; font-weight: 600; font-size: 13px;
  z-index: 300; white-space: nowrap; max-width: 90vw;
  animation: toastIn .3s ease, toastOut .3s ease 2.2s forwards;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.toast.success { background: #2E7D32; }
.toast.error { background: #C62828; }
@keyframes toastIn { from { transform: translateX(-50%) translateY(20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; } }

/* Dropdown */
.dropdown-menu {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,.15);
  padding: 6px 0 calc(6px + var(--safe-bottom)); z-index: 200;
}
.dropdown-menu.active { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: block; width: 100%; text-align: left;
  padding: 13px 18px; font-size: 14px;
  color: var(--text) !important; opacity: 1 !important;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.dropdown-menu a:active, .dropdown-menu button:active { background: var(--bg); }
.dropdown-menu .sep { height: 1px; background: var(--border); margin: 4px 14px; }
.dropdown-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.4); z-index: 199;
}
.dropdown-backdrop.active { display: block; }

/* ========== MY ADS / MESSAGES LIST ========== */
.my-ads-list { display: flex; flex-direction: column; gap: 8px; }
.my-ad-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px;
  display: flex; align-items: center; gap: 8px;
  overflow: hidden;
}
.my-ad-thumb {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--bg); display: flex;
  align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; overflow: hidden;
}
.my-ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-ad-info { flex: 1; min-width: 0; overflow: hidden; }
.my-ad-info h3 {
  font-size: 13px; font-weight: 700; margin-bottom: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.my-ad-info .price { font-size: 13px; font-weight: 800; color: var(--accent-dark); }
.my-ad-info .meta { font-size: 10px; color: var(--text-muted); margin-top: 1px; }
.btn-delete {
  background: #FFEBEE; color: #C62828; border: none;
  padding: 6px 10px; border-radius: 8px; font-size: 10px;
  font-weight: 600; cursor: pointer; font-family: inherit;
  white-space: nowrap; flex-shrink: 0;
}

.loading { text-align: center; padding: 30px; color: var(--text-muted); }
.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite;
  margin: 0 auto 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== BOTTOM NAVIGATION ========== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; width: 100%;
  background: #fff; z-index: 99;
  box-shadow: 0 -1px 8px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-nav-inner {
  display: grid; grid-template-columns: repeat(5, 1fr);
  width: 100%; height: 56px; max-width: 520px; margin: 0 auto;
  background: #fff;
}
.bnav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 2px; cursor: pointer; border: none; background: none;
  font-family: inherit; text-decoration: none; text-align: center;
  color: #0d2137; font-size: 11px; font-weight: 500;
  position: relative; gap: 2px;
  -webkit-tap-highlight-color: transparent;
}
.bnav-item svg { display: block; margin: 0 auto; width: 26px; height: 26px; }
.bnav-item span { display: block; line-height: 1; }
.bnav-item.active { color: #0d2137; font-weight: 700; }

/* Center add button */
.bnav-add { color: #0d2137; }

/* Badge */
.bnav-badge {
  position: absolute; top: -2px; right: 50%; transform: translateX(14px);
  background: #E91E63; color: #fff; font-size: 9px;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; font-weight: 700;
}

/* ========== FOOTER ========== */
.footer {
  background: #0d2137; color: #fff; margin-top: 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px; padding: 20px 0 10px;
}
.footer h4 { font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.footer a { color: rgba(255,255,255,.6); font-size: 11px; display: block; margin-bottom: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 10px 0; font-size: 10px; opacity: .4; text-align: center; color: #fff;
}
.app-badge {
  background: rgba(255,255,255,.1); border-radius: 8px;
  padding: 6px 10px; display: inline-flex; align-items: center;
  gap: 6px; cursor: pointer; margin: 0 4px 4px 0;
}
.app-badge .icon { font-size: 16px; }
.app-badge .label { font-size: 8px; opacity: .7; }
.app-badge .name { font-size: 11px; font-weight: 700; }

/* ===================== */
/* TABLET 768px+         */
/* ===================== */
@media (min-width: 768px) {
  .logo-icon { width: 34px; height: 34px; font-size: 16px; }
  .logo-text { font-size: 16px; }
  .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cat-icon { width: 42px; height: 42px; font-size: 20px; }
  .cat-name { font-size: 10px; }
  .ads-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ad-image { height: 220px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-slide { height: 380px; }
  .detail-main-image { height: 380px; font-size: 80px; }
  .header-row { max-width: 600px; }
  .header-sub { max-width: 1200px; margin: 0 auto; }
}

/* ===================== */
/* DESKTOP 1024px+       */
/* ===================== */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  body.page-detail { padding-bottom: 0; }
  body.page-wallet, body.page-topup, body.page-paymenthistory, body.page-editprofile, body.page-services, body.page-about, body.page-howworks, body.page-safety, body.page-terms, body.page-privacy { padding-bottom: 0; }
  .bottom-nav { display: none !important; }
  .detail-bottom-bar { display: none !important; }
  .logo-sub { display: block; }
  .btn-user-menu { max-width: 200px; font-size: 12px; }
  .btn-post {
    display: inline-flex;
    background: linear-gradient(135deg, var(--accent), #FFC107);
    color: #0d2137; border: none; padding: 9px 20px;
    border-radius: 8px; font-size: 14px; font-weight: 800;
    cursor: pointer; font-family: inherit; white-space: nowrap; flex-shrink: 0;
  }

  .dropdown-menu {
    position: absolute; top: 100%; bottom: auto; left: auto; right: 0;
    border-radius: var(--radius); min-width: 200px; max-width: 260px;
    padding: 6px 0; margin-top: 6px; box-shadow: var(--shadow-lg);
  }
  .dropdown-menu a, .dropdown-menu button { padding: 11px 16px; font-size: 14px; }
  .dropdown-backdrop { display: none !important; }

  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .cat-card { padding: 14px 8px; }
  .cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent); }

  .ads-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .ad-image { height: 220px; }
  .ad-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .ad-info { padding: 10px 12px; }
  .ad-price { font-size: 15px; }
  .ad-title { font-size: 11px; min-height: 28px; }

  .detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
  .carousel-slide { height: 450px; }
  .detail-main-image { height: 450px; font-size: 90px; }
  .detail-sidebar { position: sticky; top: 110px; }
  .detail-desc h1 { font-size: 20px; }
  .detail-price { font-size: 26px; }

  .modal-overlay.active { align-items: center; padding: 20px; }
  .modal { border-radius: 16px; max-width: 440px; animation: modalIn .3s ease; }
  .modal-handle { display: none; }
  @keyframes modalIn { from { transform: translateY(20px) scale(.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }

  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg); }
  .tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
}

/* Safe areas */
@supports (padding: max(0px)) {
  .header { padding-top: max(var(--safe-top), 0px); }
  .detail-bottom-bar { padding-bottom: max(calc(8px + var(--safe-bottom)), 8px); }
  .modal { padding-bottom: max(var(--safe-bottom), 0px); }
}

/* ========== PROFILE SHEET ITEMS ========== */
.ps-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 14px 4px; border: none;
  background: none; font-size: 15px; cursor: pointer;
  font-family: inherit; color: var(--text); text-align: left;
}
.ps-badge {
  background: var(--accent); color: #0d2137;
  font-size: 10px; font-weight: 800; padding: 1px 6px;
  border-radius: 8px; margin-left: 4px;
}
.ps-vip-banner {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 16px; margin: 6px 0 10px;
  border: none; border-radius: 14px; cursor: pointer;
  font-family: inherit; text-align: left;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}
.ps-vip-stars { font-size: 22px; flex-shrink: 0; }
.ps-vip-info { flex: 1; }
.ps-vip-title { color: #FFD700; font-size: 14px; font-weight: 800; }
.ps-vip-sub { color: rgba(255,255,255,.55); font-size: 11px; margin-top: 2px; }
@keyframes vipGlow {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,215,0,.2); }
  50% { box-shadow: 0 0 16px 2px rgba(255,215,0,.15); }
}

/* ========== AD CARD PROMOTE BUTTON ========== */
.ad-promote { display: none; }

/* ========== SERVICES PAGE ========== */
.svc-hero {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 16px; padding: 28px 20px; text-align: center;
  color: #fff; margin-bottom: 20px;
}
.svc-hero-icon { font-size: 42px; margin-bottom: 8px; }
.svc-hero h2 { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.svc-hero p { font-size: 13px; opacity: .65; }

.svc-section { margin-bottom: 20px; }
.svc-section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px; padding: 10px 0;
}
.svc-emoji { font-size: 32px; }
.svc-section-head h3 { font-size: 17px; font-weight: 800; color: var(--text); }
.svc-section-head p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.svc-benefits {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.svc-benefits span {
  font-size: 12px; color: var(--accent-dark); font-weight: 600;
  background: #E8F5E9; padding: 4px 10px; border-radius: 6px;
}

.svc-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.svc-price-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 14px; padding: 16px 8px; text-align: center;
  cursor: pointer; position: relative; transition: all .15s;
}
.svc-price-card:active { border-color: var(--accent); transform: scale(.97); }
.svc-price-card.popular { border-color: #FFD54F; background: rgba(255,213,79,.1); }
.svc-price-card.top { border-color: #90CAF9; background: rgba(144,202,249,.1); }
.svc-popular-tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #FFD700, #FFA000);
  color: #fff; font-size: 8px; font-weight: 900;
  padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}
.svc-days { font-size: 18px; font-weight: 900; color: var(--text); margin-bottom: 4px; }
.svc-amount { font-size: 13px; font-weight: 800; color: var(--accent-dark); }
.svc-amount small { font-size: 10px; font-weight: 600; }

.svc-ads-list { display: flex; flex-direction: column; gap: 8px; }
.svc-ad-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px; display: flex;
  align-items: center; gap: 10px;
}
.svc-ad-thumb {
  width: 48px; height: 48px; border-radius: 8px;
  background: var(--bg); display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0; overflow: hidden;
}
.svc-ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.svc-ad-info { flex: 1; min-width: 0; }
.svc-ad-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-ad-price { font-size: 12px; font-weight: 800; color: var(--accent-dark); margin-top: 2px; }
.svc-ad-btns { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.svc-btn-vip {
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  color: #F57F17; border: 1px solid #FFD54F;
  padding: 6px 12px; border-radius: 8px;
  font-size: 11px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.svc-btn-top {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  color: #1565C0; border: 1px solid #90CAF9;
  padding: 6px 12px; border-radius: 8px;
  font-size: 11px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.svc-active { font-size: 10px; color: #2E7D32; font-weight: 700; }

/* ========== VIP PROMOTIONS ========== */
.vip-promo-banner {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 14px; padding: 16px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; gap: 12px;
}
.vip-promo-banner:active { opacity: .9; }
.vip-promo-left { display: flex; align-items: center; gap: 12px; }
.vip-promo-icon { font-size: 28px; }
.vip-promo-title { color: #FFD700; font-size: 15px; font-weight: 800; }
.vip-promo-desc { color: rgba(255,255,255,.65); font-size: 12px; margin-top: 2px; }

/* My Ad Card (redesigned) */
.my-ad-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 8px;
}
.my-ad-main {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; cursor: pointer;
}
.my-ad-card .my-ad-thumb {
  width: 56px; height: 56px; border-radius: 10px;
  background: var(--bg); display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0; overflow: hidden;
}
.my-ad-card .my-ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-ad-card .my-ad-info { flex: 1; min-width: 0; }
.my-ad-card .my-ad-info h3 { font-size: 13px; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-ad-card .my-ad-info .price { font-size: 14px; font-weight: 800; color: var(--accent-dark); }
.my-ad-card .my-ad-info .meta { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

.my-ad-actions {
  display: flex; gap: 6px; padding: 0 10px 10px;
  flex-wrap: wrap;
}
.my-ad-btn {
  padding: 8px 14px; border: none; border-radius: 8px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: inherit; display: flex; align-items: center; gap: 4px;
}
.my-ad-btn.edit { background: var(--bg); color: var(--text); }
.my-ad-btn.vip {
  background: var(--white);
  color: #F57F17; font-weight: 800;
  border: 2px dashed #FFD54F;
}
.my-ad-btn.top {
  background: var(--white);
  color: #1565C0; font-weight: 800;
  border: 2px dashed #90CAF9;
}
.my-ad-btn.del { background: #FFEBEE; color: #C62828; }
@keyframes vipPulse { 0%,100%{box-shadow:0 0 0 0 rgba(255,215,0,.3)} 50%{box-shadow:0 0 0 6px rgba(255,215,0,0)} }

/* VIP Promote Bar (detail page) */
.vip-promote-bar {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; margin-top: 10px;
}
.vip-promote-bar:active { opacity: .9; }
.vip-promote-stars { font-size: 24px; }
.vip-promote-title { color: #FFD700; font-size: 14px; font-weight: 800; }
.vip-promote-sub { color: rgba(255,255,255,.6); font-size: 11px; margin-top: 1px; }

/* VIP Modal Options (redesigned) */
.vip-options { display: flex; flex-direction: column; gap: 8px; }
.vip-opt {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; position: relative; transition: all .15s;
}
.vip-opt:active { border-color: var(--accent); background: rgba(255,215,0,.08); transform: scale(.98); }
.vip-opt.popular { border-color: #FFD54F; background: rgba(255,213,79,.1); }
.vip-opt.top-opt { border-color: #90CAF9; background: rgba(144,202,249,.1); }
.vip-opt-badge {
  position: absolute; top: -8px; right: 12px;
  background: linear-gradient(135deg, #FFD700, #FFA000);
  color: #fff; font-size: 9px; font-weight: 900;
  padding: 2px 8px; border-radius: 4px; white-space: nowrap;
}
.vip-opt-info { display: flex; flex-direction: column; }
.vip-opt-name { font-size: 15px; font-weight: 800; color: var(--text); }
.vip-opt-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.vip-opt-price { font-size: 16px; font-weight: 900; color: var(--accent-dark); white-space: nowrap; }
.vip-opt-price small { font-size: 11px; font-weight: 600; }

/* VIP After Post */
/* ===== POST SUCCESS MODAL ===== */
.psm-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity .25s ease;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.psm-overlay.psm-show { opacity: 1; }
.psm-overlay.psm-show .psm-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.psm-modal {
  background: var(--white);
  border-radius: 24px;
  padding: 32px 24px 24px;
  width: 100%; max-width: 340px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.08);
  transform: scale(.9) translateY(20px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.psm-visual {
  position: relative;
  width: 96px; height: 96px;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.psm-circle {
  width: 96px; height: 96px; border-radius: 50%;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.psm-dot, .psm-dot-1, .psm-dot-2, .psm-dot-3, .psm-dot-4, .psm-dot-5 { display: none !important; }
@keyframes psmFloat {
  0%, 100% { transform: translateY(0); opacity: .8; }
  50% { transform: translateY(-6px); opacity: 1; }
}
.psm-title {
  font-size: 22px; font-weight: 900; color: var(--text);
  margin: 0 0 8px; line-height: 1.3;
}
.psm-desc {
  font-size: 15px; color: var(--text-muted);
  margin: 0 0 28px; line-height: 1.5;
  font-weight: 500;
}
.psm-desc2 {
  font-size: 20px; color: var(--text);
  margin: 0 0 32px; line-height: 1.4;
  font-weight: 800;
}
.psm-btn-primary {
  display: block; width: 100%;
  background: var(--cta-bg);
  color: var(--cta-text); border: none;
  padding: 16px; border-radius: 14px;
  font-size: 16px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  margin-bottom: 10px;
  transition: opacity .15s;
  box-shadow: var(--cta-shadow);
}
.psm-btn-primary:hover  { opacity: .92; }
.psm-btn-primary:active { opacity: .82; transform: scale(.98); }
.psm-btn-secondary {
  display: block; width: 100%;
  background: transparent;
  color: var(--btn3-text); border: 1.5px solid var(--btn3-border);
  padding: 15px; border-radius: 14px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.psm-btn-secondary:hover  { background: var(--input-bg); }
.psm-btn-secondary:active { background: var(--border); }

[data-theme="dark"] .psm-modal {
  background: #1e1e1e;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

[data-theme="dark"] .psm-btn-secondary { background: #2a2a2a; color: #999999; border-color: #444; }

/* Home page VIP CTA */
.home-vip-cta {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 12px; padding: 14px 16px; margin: 10px 0;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.home-vip-cta:active { opacity: .9; }
.home-vip-icon { font-size: 28px; }
.home-vip-text { flex: 1; }
.home-vip-title { color: #FFD700; font-size: 14px; font-weight: 800; }
.home-vip-sub { color: rgba(255,255,255,.6); font-size: 11px; margin-top: 2px; }

/* ========== OLX PROFILE PAGE ========== */
.olx-profile { max-width:600px; margin:0 auto; padding:0 0 20px; }
.prof-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 24px 16px 20px; color: #fff;
  display: flex; gap: 16px; align-items: flex-start;
  border-radius: 0 0 16px 16px; margin-bottom: 12px;
}
.avatar-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: #444; display: flex; align-items: center;
  justify-content: center; font-size: 32px; flex-shrink: 0;
}
.prof-edit-btn {
  background: none; border: none; color: var(--accent);
  font-size: 11px; font-weight: 800; cursor: pointer;
  margin-top: 6px; font-family: inherit;
}
.prof-avatar { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.prof-info h1 { font-size: 22px; font-weight: 900; margin-bottom: 2px; }
.prof-id { font-size: 12px; opacity: .5; margin-bottom: 6px; }
.prof-balance { font-size: 13px; opacity: .6; }

.prof-buttons { padding: 0 10px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.prof-big-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 16px; border: none; border-radius: 14px;
  font-size: 17px; font-weight: 800; cursor: pointer;
  font-family: inherit; color: #fff; position: relative; overflow: hidden;
}
.prof-big-btn.gold { background: linear-gradient(135deg, #FFD700, #FFA000); color: #0d2137; }
.prof-big-btn.teal { background: linear-gradient(135deg, #FFA000, #FFD700); color: #0d2137; }
.prof-big-btn .btn-icon { position: absolute; left: 12px; font-size: 24px; opacity: .6; }
.prof-big-btn .btn-icon-r { position: absolute; right: 12px; font-size: 24px; opacity: .6; }
.prof-big-btn .btn-label { z-index: 1; }

.prof-section { padding: 0 10px; margin-bottom: 8px; }
.prof-section-title { font-size: 17px; font-weight: 800; color: var(--text); padding: 14px 0 6px; }
.prof-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; border-bottom: 1px solid var(--border);
  font-size: 15px; cursor: pointer; color: var(--text);
}
.prof-row:active { background: var(--bg); }
.row-arrow { color: var(--text-muted); font-size: 18px; display: flex; align-items: center; gap: 6px; }
.row-badge {
  background: var(--accent); color: #0d2137;
  font-size: 11px; font-weight: 800; min-width: 20px; height: 20px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 6px;
}
.prof-logout {
  background: none; border: none; color: var(--text);
  font-size: 16px; font-weight: 700; cursor: pointer;
  font-family: inherit; padding: 10px 20px;
  border-bottom: 2px solid var(--text);
}

/* ========== INNER PAGES (wallet, topup, etc.) ========== */
.inner-page { min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.inner-header {
  background: var(--white); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  padding-top: calc(12px + var(--safe-top));
}
.inner-back {
  background: none; border: none; font-size: 22px;
  cursor: pointer; color: var(--text); padding: 4px;
}
.inner-header h2 { font-size: 17px; font-weight: 800; flex: 1; }
.info-content h2 { font-size: 18px; font-weight: 900; color: var(--text); margin-bottom: 12px; }
.info-content h3 { font-size: 15px; font-weight: 800; color: var(--text); margin: 18px 0 8px; }
.info-content p { color: var(--text-light); margin-bottom: 10px; }
.inner-cancel {
  background: none; border: none; font-size: 12px;
  font-weight: 800; color: var(--text); cursor: pointer; font-family: inherit;
}
.inner-body { padding: 14px; max-width: 600px; margin: 0 auto; }

/* Wallet card */
.wallet-card {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 16px; padding: 24px 20px; color: #0d2137; margin-bottom: 12px;
}
.wallet-amount { font-size: 32px; font-weight: 900; margin-bottom: 16px; }
.wallet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.wallet-label { font-size: 12px; color: rgba(13,33,55,.6); }
.wallet-val { font-size: 13px; font-weight: 700; }
.wallet-topup-btn {
  background: #0d2137; color: #fff; border: none;
  padding: 14px 28px; border-radius: var(--r-sm);
  font-size: var(--text-base); font-weight: 700; cursor: pointer; font-family: inherit;
  transition: opacity .2s; width: 100%;
}

.bonus-table { background: var(--white); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.bonus-header {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 12px 14px; font-size: 13px; color: var(--text-muted);
  background: var(--bg); font-weight: 600;
}

/* Top-up options */
.topup-options { display: flex; flex-direction: column; gap: 12px; }
.topup-opt {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 12px; padding: 20px 18px;
  font-size: 18px; font-weight: 800; text-align: left;
  cursor: pointer; font-family: inherit; color: var(--text);
}
.topup-opt:active { border-color: var(--accent); background: rgba(255,215,0,.06); }

/* Payment history */
.payment-list { display: flex; flex-direction: column; gap: 8px; }
.payment-item {
  background: var(--white); border-radius: 12px;
  padding: 14px; border: 1px solid var(--border);
}
.payment-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.payment-type { font-size: 12px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; }
.payment-badge { font-size: 11px; font-weight: 600; }
.payment-badge.completed { color: #2E7D32; }
.payment-badge.pending { color: #E65100; }
.payment-badge.failed { color: #C62828; }
.payment-amount { font-size: 17px; font-weight: 800; margin-bottom: 2px; }
.payment-meta { font-size: 12px; color: var(--text-muted); }

.empty-history {
  text-align: center; padding: 50px 20px;
  background: var(--white); border-radius: 16px;
  border: 1px solid var(--border); margin-top: 12px;
}
.empty-icon { font-size: 60px; margin-bottom: 12px; }
.empty-history h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.empty-history p { font-size: 13px; color: var(--text-muted); line-height: 1.5; max-width: 300px; margin: 0 auto; }

/* ========== RESPONSIVE FORM FIXES ========== */
.form-input, .form-select {
  width: 100%; max-width: 100%;
  box-sizing: border-box;
}
textarea.form-input { resize: vertical; }

/* Breadcrumb & filter bar */
.breadcrumb {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%;
}

/* Tags / filter pills scroll */
.tags-wrap, .tags-section .tags-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.tags-wrap::-webkit-scrollbar { display: none; }

/* Detail page mobile fixes */
.ad-detail { overflow-x: hidden; max-width: 100%; }

/* Modal body scroll fix */
.modal-body { max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Small screen adjustments (320px) */
@media (max-width: 359px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .cat-card { padding: 8px 2px; }
  .cat-icon { width: 30px; height: 30px; font-size: 15px; }
  .cat-name { font-size: 8px; }
  .ads-grid { gap: 4px; }
  .ad-image { height: 140px; }
  .ad-info { padding: 6px; }
  .ad-price { font-size: 13px; }
  .ad-title { font-size: 10px; }
  .search-bar select { width: 65px; padding: 8px 16px 8px 4px; font-size: 10px; }
  .header-main { gap: 6px; padding: 4px 6px 6px; }
  .container { padding: 0 6px; }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  .bnav-item { font-size: 10px; }
}

/* Telegram-style verified badge */
.verified-badge { display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;margin-left:1px; }
.verified-badge svg { display:block; }

/* ========== DARK MODE OVERRIDES ========== */
[data-theme="dark"] .header { background: #111; border-bottom-color: #222; }
[data-theme="dark"] .hd-region { color: #e8e8e8; }
[data-theme="dark"] .hd-bell { color: #ddd; }
[data-theme="dark"] .notif-badge { border-color: #111; }
[data-theme="dark"] .hd-search-pill { background: #2a2a2a; }
[data-theme="dark"] .hd-search-pill:active { opacity: .7; }
[data-theme="dark"] .hd-search-pill-icon { color: #999; }
[data-theme="dark"] .hd-search-pill-text { color: #999; }
[data-theme="dark"] .header.compact { box-shadow: none; border-bottom: none; }
[data-theme="dark"] .header.compact .hd-search-pill {
  background: #2a2a2a;
  border-radius: 14px;
}
[data-theme="dark"] .header-region-btn { background: #2a2a2a; border-color: #3a3a3a; color: var(--text); }
[data-theme="dark"] .header-brand .logo-text { color: var(--text); }
[data-theme="dark"] .bottom-nav { background: #2b2b2b; box-shadow: 0 -1px 8px rgba(0,0,0,.5); }
[data-theme="dark"] .bottom-nav-inner { background: #2b2b2b; }
[data-theme="dark"] .bnav-item { color: rgba(255,255,255,.85); }
[data-theme="dark"] .bnav-item.active { color: #fff; }
[data-theme="dark"] .modal { background: #1e1e1e; }
[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,.7); }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: var(--input-bg); color: var(--text); border-color: var(--border);
}
[data-theme="dark"] .section-title { color: var(--text); }
[data-theme="dark"] .cat-card { background: var(--card-bg); border-color: var(--border); }
[data-theme="dark"] .cat-name { color: var(--text); }
[data-theme="dark"] .ad-card { background: var(--card-bg); }
[data-theme="dark"] .ad-title { color: var(--text); }
[data-theme="dark"] .ad-price { color: var(--text); }
[data-theme="dark"] .ad-meta { color: var(--text-muted); }
[data-theme="dark"] .ad-fav-inline { background: rgba(30,30,30,.85); }
[data-theme="dark"] .prof-section { background: var(--card-bg); }
[data-theme="dark"] .prof-row { border-color: var(--border); color: var(--text); }
[data-theme="dark"] .prof-header { background: linear-gradient(135deg, #1a2a3d, #0d1a2e); }
[data-theme="dark"] .footer { background: #0a1628; }
[data-theme="dark"] .no-results { color: var(--text-muted); }
[data-theme="dark"] .toast { background: #333; color: #fff; }
[data-theme="dark"] .home-vip-cta { background: linear-gradient(135deg, #1a3a1a, #0d280d); }
[data-theme="dark"] .rm-item { border-color: var(--border); }
[data-theme="dark"] .sp-cat-item { background: var(--card-bg); border-color: var(--border); }
[data-theme="dark"] .badge-vip { background: #3d3100; color: var(--accent); }
[data-theme="dark"] .notif-item { background: var(--card-bg); border-color: var(--border); }
[data-theme="dark"] .notif-item.unread { background: #1a2a2a; }

/* ========== NOTIFICATIONS ========== */
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.notif-item:active { opacity: .85; }
.notif-item.unread { background: #e8f5f5; }
.notif-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--input-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.notif-msg { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; opacity: .7; }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  margin-top: 6px;
}

[data-theme="dark"] .detail-bottom-bar .btn-chat { color: #0d2137; }

[data-theme="dark"] .btn-primary { color: #0d2137; }
[data-theme="dark"] .dt-btn-call { background: var(--cta-bg); color: #0d2137; }
[data-theme="dark"] .dt-btn-msg { border-color: var(--btn2-border); color: var(--btn2-text); }
[data-theme="dark"] .vip-opt-badge { color: #fff; }
[data-theme="dark"] .svc-popular-tag { color: #fff; }

[data-theme="dark"] .tag { border-color: var(--border); color: var(--text-muted); }
[data-theme="dark"] .upload-area { border-color: var(--border); background: var(--input-bg); }
[data-theme="dark"] .carousel { background: var(--input-bg); }
[data-theme="dark"] .topup-opt { color: var(--text); }
[data-theme="dark"] .payment-item { background: var(--card-bg); }
[data-theme="dark"] .form-select { color: var(--text); }
[data-theme="dark"] .btn-dark { background: linear-gradient(135deg, #FFD700, #FFA000); color: #0d2137; }
[data-theme="dark"] .detail-bottom-bar .btn-call { background: var(--accent-dark); }
[data-theme="dark"] .svc-active { color: #66BB6A; }
[data-theme="dark"] .payment-badge.completed { color: #66BB6A; }
[data-theme="dark"] .rm-check { background: var(--accent-dark); }
[data-theme="dark"] .card-tag.vip { background: rgba(255,215,0,.15); color: #FFD54F; }
[data-theme="dark"] .card-tag.top { background: rgba(33,150,243,.15); color: #64B5F6; }
[data-theme="dark"] .card-tag.shop { background: rgba(255,255,255,.08); color: var(--text-muted); }
[data-theme="dark"] .ad-fav-inline { background: rgba(0,0,0,.5); }
[data-theme="dark"] .dt-carousel-wrap { background: #111; }
[data-theme="dark"] .dt-fav-float { background: rgba(50,50,50,.85); }
[data-theme="dark"] .carousel { background: #111; }
[data-theme="dark"] .carousel-slide { background: #111; }
[data-theme="dark"] .dt-btn-call { background: linear-gradient(135deg, #FFD700, #FFA000); color: #0d2137; }
[data-theme="dark"] .dt-btn-msg { border-color: var(--accent-dark); color: var(--accent); }
[data-theme="dark"] .dt-btn-report { background: rgba(255,152,0,.08); border-color: #FF9800; color: #FFB74D; }


/* ============ PROMO AD CARDS (OLX Style) ============ */
.pac-count{font-size:13px;font-weight:700;color:var(--text-muted);margin-bottom:12px}
.pac-list{display:flex;flex-direction:column;gap:16px}
.promo-ad-card{background:var(--card-bg);border-radius:16px;border:1px solid var(--border);overflow:hidden}
.pac-top{display:flex;gap:14px;padding:16px;cursor:pointer}
.pac-img{width:110px;height:90px;border-radius:12px;overflow:hidden;flex-shrink:0;background:var(--input-bg)}
.pac-img img{width:100%;height:100%;object-fit:cover}
.pac-info{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center}
.pac-price{font-size:20px;font-weight:900;color:var(--text);letter-spacing:-.3px}
.pac-title{font-size:14px;color:var(--text);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pac-date{font-size:12px;color:var(--text-muted);margin-top:4px}

/* Active promo status */
.pac-status{display:flex;align-items:center;gap:10px;padding:10px 16px;border-top:1px solid var(--border)}
.pac-status-icon{font-size:18px}
.pac-status-info{flex:1;display:flex;flex-direction:column}
.pac-status-label{font-size:13px;font-weight:700;color:var(--text)}
.pac-status-exp{font-size:11px;color:var(--text-muted)}
.pac-status-badge{font-size:10px;font-weight:800;padding:3px 10px;border-radius:6px;background:#E8F5E9;color:#2E7D32;letter-spacing:.5px}
.pac-status-badge.top{background:#E3F2FD;color:#1565C0}
[data-theme="dark"] .pac-status-badge{background:rgba(46,125,50,.2);color:#66BB6A}
[data-theme="dark"] .pac-status-badge.top{background:rgba(21,101,192,.2);color:#64B5F6}

/* Auto-renewal */
.pac-autorenew{display:flex;align-items:center;gap:6px;padding:8px 16px;font-size:12px;color:var(--text-muted);border-top:1px solid var(--border)}
.pac-autorenew strong{color:var(--text)}

/* Stats row */
.pac-stats{display:flex;justify-content:space-around;padding:12px 16px;border-top:1px solid var(--border)}
.pac-stat{display:flex;align-items:center;gap:5px;font-size:14px;font-weight:700;color:var(--text)}
.pac-stat svg{color:var(--text-muted)}

/* Promo buttons */
.pac-btn-promo{display:block;width:calc(100% - 32px);margin:0 16px 10px;padding:14px;border:none;border-radius:12px;background:var(--white);font-size:15px;font-weight:800;color:var(--text);cursor:pointer;border:1.5px solid var(--border);transition:all .15s}
.pac-btn-promo:active{transform:scale(.98);background:var(--input-bg)}
[data-theme="dark"] .pac-btn-promo{background:var(--card-bg);border-color:var(--border)}

.pac-bottom-row{display:flex;gap:10px;padding:0 16px 14px;align-items:center}
.pac-btn-boost{flex:1;padding:14px;border:1.5px solid var(--border);border-radius:12px;background:var(--white);font-size:15px;font-weight:800;color:var(--text);cursor:pointer;transition:all .15s}
.pac-btn-boost:active{transform:scale(.98);background:var(--input-bg)}
[data-theme="dark"] .pac-btn-boost{background:var(--card-bg);border-color:var(--border)}

.pac-btn-menu{width:50px;height:50px;border:1.5px solid var(--border);border-radius:12px;background:var(--white);font-size:20px;font-weight:900;color:var(--text-muted);cursor:pointer;display:flex;align-items:center;justify-content:center;letter-spacing:2px;transition:all .15s}
.pac-btn-menu:active{background:var(--input-bg)}
[data-theme="dark"] .pac-btn-menu{background:var(--card-bg);border-color:var(--border)}

/* Ad Menu */
.am-item{display:flex;align-items:center;gap:12px;width:100%;padding:14px 20px;border:none;background:none;font-size:15px;font-weight:600;color:var(--text);cursor:pointer;text-align:left}
.am-item:active{background:var(--input-bg)}
.am-item span{font-size:18px;width:24px;text-align:center}
.am-del{color:#E53935}

/* ============ PROMO MODAL (Premium) ============ */
.pm-balance{display:flex;align-items:center;justify-content:space-between;background:var(--input-bg);border-radius:12px;padding:12px 14px;margin-bottom:14px}
.pm-bal-label{font-size:11px;color:var(--text-muted)}
.pm-bal-amount{font-size:17px;font-weight:900;color:var(--accent-dark)}
.pm-bal-btn{padding:7px 14px;border-radius:8px;border:none;background:var(--accent);color:#0d2137;font-size:12px;font-weight:700;cursor:pointer}

.pm-tabs{display:flex;gap:6px;margin-bottom:16px;background:var(--input-bg);border-radius:10px;padding:3px}
.pm-tab{flex:1;padding:10px;border:none;border-radius:8px;background:transparent;font-size:13px;font-weight:700;color:var(--text-muted);cursor:pointer;transition:all .2s}
.pm-tab.active{background:var(--white);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.08)}
[data-theme="dark"] .pm-tab.active{background:var(--card-bg)}

.pm-section{}
.pm-hero{text-align:center;padding:20px 16px;border-radius:14px;margin-bottom:14px}
.pm-hero-vip{background:linear-gradient(135deg,#FF8F00,#FFB300)}
.pm-hero-top{background:linear-gradient(135deg,#1565C0,#1E88E5)}
.pm-hero-icon{font-size:32px;margin-bottom:6px}
.pm-hero-title{font-size:18px;font-weight:900;color:#fff}
.pm-hero-desc{font-size:12px;color:rgba(255,255,255,.8);margin-top:4px}

.pm-features{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.pm-feat{font-size:12px;font-weight:600;padding:5px 10px;border-radius:20px;background:rgba(14,140,127,.08);color:var(--accent-dark)}
.pm-feat-icon{margin-right:2px}

.pm-tariffs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.pm-tariff{position:relative;padding:16px 8px;text-align:center;border:2px solid var(--border);border-radius:14px;cursor:pointer;background:var(--white);transition:all .15s}
.pm-tariff:active{transform:scale(.96)}
.pm-tariff-hot{border-color:#FFB300;background:rgba(255,179,0,.08)}
[data-theme="dark"] .pm-tariff{background:var(--card-bg)}
[data-theme="dark"] .pm-tariff-hot{background:rgba(255,179,0,.15)}

.pm-t-badge{position:absolute;top:-9px;left:50%;transform:translateX(-50%);background:linear-gradient(135deg,#FF8F00,#FFB300);color:#fff;font-size:9px;font-weight:800;padding:2px 10px;border-radius:10px;white-space:nowrap;letter-spacing:.5px}
.pm-t-days{font-size:18px;font-weight:900;color:var(--text);margin-top:2px}
.pm-t-price{font-size:14px;font-weight:800;color:var(--accent-dark);margin-top:5px}
.pm-t-save{font-size:10px;color:#2E7D32;font-weight:700;margin-top:3px}
[data-theme="dark"] .pm-t-save{color:#66BB6A}

.pm-note{font-size:11px;color:var(--text-muted);text-align:center;margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}

/* ============ PROFILE CTA BUTTONS (OLX Style) ============ */
.prof-cta-btn{width:100%;padding:16px 20px;border-radius:14px;border:none;font-size:16px;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;position:relative;overflow:hidden;color:#fff}
.prof-cta-post{background:var(--cta-bg);color:var(--cta-text);box-shadow:var(--cta-shadow)}
.prof-cta-packs{background:var(--cta-bg);color:var(--cta-text);box-shadow:var(--cta-shadow)}
.prof-cta-emoji-l{position:absolute;left:14px;font-size:22px;opacity:.7}
.prof-cta-emoji-r{position:absolute;right:14px;font-size:22px;opacity:.7}

/* Profile row count badge */
.row-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 8px;border-radius:12px;background:var(--accent);color:#0d2137;font-size:12px;font-weight:800;margin-right:8px}


/* ============ TARIFF CARD ACTIONS (Buy + Info) ============ */
.pm-t-unit{font-size:10px;color:var(--text-muted);margin-top:1px}
.pm-t-actions{display:flex;gap:4px;margin-top:8px;justify-content:center}
.pm-t-buy{flex:1;padding:7px 4px;border:none;border-radius:8px;background:var(--accent);color:#0d2137;font-size:11px;font-weight:800;cursor:pointer;transition:transform .1s}
.pm-t-buy:active{transform:scale(.95)}
.pm-t-info{width:28px;height:28px;border:1.5px solid var(--border);border-radius:8px;background:var(--white);color:var(--text-muted);font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;padding:0;line-height:1}
.pm-t-info:active{background:var(--input-bg)}
[data-theme="dark"] .pm-t-info{background:var(--card-bg);border-color:var(--border)}

/* Features row in promo modal */
.pm-feats{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.pm-feats span{font-size:11px;font-weight:600;padding:4px 10px;border-radius:20px;background:rgba(14,140,127,.08);color:var(--accent-dark)}

/* ============ TARIFF INFO MODAL ============ */
.ti-header{display:flex;align-items:center;gap:12px;padding:20px 16px 12px}
.ti-icon-wrap{width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#FFB300,#FF8F00);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ti-icon{font-size:26px}
.ti-meta{flex:1;min-width:0}
.ti-title{font-size:18px;font-weight:900;color:var(--text)}
.ti-price-tag{font-size:14px;font-weight:800;color:var(--accent-dark);margin-top:2px}
.ti-perday{text-align:center;padding:8px 16px;font-size:13px;font-weight:700;color:#2E7D32;background:rgba(46,125,50,.06);border-radius:10px;margin:0 16px 12px}
[data-theme="dark"] .ti-perday{background:rgba(46,125,50,.15);color:#66BB6A}
.ti-divider{height:1px;background:var(--border);margin:0 16px}
.ti-features{padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.ti-feat{font-size:14px;color:var(--text);line-height:1.4;display:flex;align-items:flex-start;gap:8px}
.ti-footer{padding:12px 16px 20px}
.ti-buy{width:100%;padding:15px;border:none;border-radius:14px;background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#0d2137;font-size:16px;font-weight:800;cursor:pointer;transition:transform .1s}
.ti-buy:active{transform:scale(.97)}



/* ============ PREMIUM TARIFF CARDS ============ */
.pm-section-title{font-size:16px;font-weight:900;color:var(--text);margin:18px 0 10px;padding-left:2px}
.pm-section-title:first-child{margin-top:4px}

.ptc{background:var(--card-bg);border:1.5px solid var(--border);border-radius:16px;padding:18px;margin-bottom:12px;position:relative;transition:all .15s}
.ptc:active{transform:scale(.99)}
.ptc-hot{border-color:#FF8F00;border-width:2px;background:linear-gradient(180deg,rgba(255,143,0,.04) 0%,transparent 40%)}
[data-theme="dark"] .ptc-hot{background:linear-gradient(180deg,rgba(255,143,0,.08) 0%,transparent 40%)}

.ptc-badge{position:absolute;top:-10px;right:16px;background:linear-gradient(135deg,#FF6F00,#FF8F00);color:#fff;font-size:10px;font-weight:800;padding:3px 12px;border-radius:10px;letter-spacing:.5px;box-shadow:0 2px 8px rgba(255,111,0,.3)}

/* Card header */
.ptc-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.ptc-icon{font-size:28px;width:44px;height:44px;border-radius:12px;background:var(--input-bg);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ptc-head-info{flex:1;min-width:0}
.ptc-name{font-size:17px;font-weight:900;color:var(--text)}
.ptc-dur{font-size:13px;color:var(--text-muted);font-weight:600}
.ptc-price-col{text-align:right;flex-shrink:0}
.ptc-price{font-size:22px;font-weight:900;color:var(--accent-dark);letter-spacing:-.5px}
.ptc-cur{font-size:11px;color:var(--text-muted);font-weight:600;margin-top:-2px}

/* Description */
.ptc-desc{font-size:13.5px;line-height:1.6;color:var(--text);margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid var(--border)}

/* Features */
.ptc-feats{margin-bottom:12px}
.ptc-feat{font-size:13px;color:var(--text);padding:4px 0;font-weight:500}
.ptc-feat::before{content:none}

/* Savings badge */
.ptc-saving{display:inline-block;font-size:12px;font-weight:700;color:#2E7D32;background:rgba(46,125,50,.08);padding:4px 10px;border-radius:8px;margin-bottom:10px}
[data-theme="dark"] .ptc-saving{color:#66BB6A;background:rgba(46,125,50,.15)}

/* Per day */
.ptc-perday{font-size:12px;color:var(--text);margin-bottom:10px;font-weight:700}

/* Buy button */
.ptc-buy{display:block;width:100%;padding:14px;border:none;border-radius:12px;background:linear-gradient(135deg,var(--accent),var(--accent-dark));color:#fff;font-size:15px;font-weight:800;cursor:pointer;text-align:center;letter-spacing:.2px}
.ptc-buy:active{opacity:.88;transform:scale(.98)}
.ptc-hot .ptc-buy{background:linear-gradient(135deg,#FF6F00,#FF8F00)}

/* Auto-renewal */
.ptc-auto{text-align:center;font-size:11px;color:var(--text-muted);margin-top:8px}

/* New Standart/Turbo/Premium tier cards */
.tier-card{background:#fff;border-radius:16px;padding:22px 20px;margin-bottom:14px;position:relative;border:1px solid #e0e0e0;box-shadow:0 2px 10px rgba(0,0,0,0.07)}
.tier-hot{border:2px solid #FF8F00;background:linear-gradient(180deg,rgba(255,143,0,.04) 0%,transparent 40%)}
.tier-badge{position:absolute;top:-10px;right:16px;background:linear-gradient(135deg,#FF6F00,#FF8F00);color:#fff;font-size:10px;font-weight:800;padding:3px 12px;border-radius:10px;letter-spacing:.5px}
.tier-name{font-size:20px;font-weight:900;color:var(--text);margin-bottom:12px}
.tier-desc{font-size:15px;line-height:1.7;color:var(--text);margin-bottom:18px;font-weight:500}
.tier-buy{display:block;width:100%;padding:12px;border:none;border-radius:10px;background:linear-gradient(135deg,#FFA000,#FFD700);color:#0d2137;font-size:14px;font-weight:700;cursor:pointer;text-align:center;transition:all .15s}
.tier-buy:active{opacity:.85;transform:scale(.98)}
.tier-topup-btn{padding:10px 20px;border-radius:24px;border:none;background:linear-gradient(135deg, var(--accent), var(--accent-dark));color:#0d2137;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.tier-topup-btn:active{opacity:.85}
[data-theme="dark"] .tier-card{background:#1e1e2e;border-color:#2a2a3e}
[data-theme="dark"] .tier-hot{background:linear-gradient(180deg,rgba(255,143,0,.08) 0%,transparent 40%)}
[data-theme="dark"] .tier-buy{background:linear-gradient(135deg,#FFA000,#FFD700);color:#0d2137}

.tier-info-btn{position:absolute;top:14px;right:14px;width:28px;height:28px;border-radius:50%;border:none;background:none;color:#999;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:color .15s}
.tier-info-btn:active{color:#333;transform:scale(.9)}
[data-theme="dark"] .tier-info-btn{color:#666}
[data-theme="dark"] .tier-info-btn:active{color:#ccc}

/* Tier Info Modal — OLX dark slider */
.ti-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:300;display:flex;align-items:flex-end;justify-content:center}
.ti-modal{background:#1a1a2e;color:#fff;width:100%;max-width:480px;border-radius:20px 20px 0 0;min-height:80vh;max-height:95vh;display:flex;flex-direction:column;position:relative;overflow:hidden;animation:tiSlideUp .3s ease}
@keyframes tiSlideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.ti-handle{width:40px;height:4px;background:rgba(255,255,255,.25);border-radius:4px;margin:12px auto 0}
#tiSlider{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;transition:opacity .15s;padding:0 28px}
.ti-content{position:relative;padding:20px 0 10px;text-align:center}
.ti-illust{margin:20px auto 28px;display:flex;justify-content:center}
.ti-title{font-size:24px;font-weight:900;color:#fff;margin-bottom:20px}
.ti-desc{font-size:15px;line-height:1.65;color:rgba(255,255,255,.6);margin-bottom:16px;padding:0 4px}
.ti-checks{text-align:left;margin:24px 0 16px;padding:0 4px}
.ti-check{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}
.ti-check svg{flex-shrink:0;margin-top:2px}
.ti-check span{font-size:16px;font-weight:600;color:rgba(255,255,255,.85);line-height:1.45}
.ti-dots{display:flex;justify-content:center;gap:8px;margin:20px 0 0}
.ti-dot{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.25);transition:all .2s}
.ti-dot.active{background:#fff;transform:scale(1.15)}
.ti-arrow{position:absolute;top:50%;transform:translateY(-50%);background:none;border:none;color:rgba(255,255,255,.5);font-size:36px;font-weight:300;cursor:pointer;padding:10px;z-index:2;line-height:1}
.ti-arrow:active{color:#fff}
.ti-arrow-l{left:-12px}
.ti-arrow-r{right:-12px}
.ti-close{display:block;width:100%;padding:18px;border:none;background:transparent;color:#fff;font-size:16px;font-weight:800;cursor:pointer;text-decoration:underline;text-underline-offset:6px;flex-shrink:0;padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}
.ti-close:active{opacity:.7}

/* Light mode overrides */
:root .ti-modal{background:#fff;color:#1a1a1a}
:root .ti-handle{background:rgba(0,0,0,.15)}
:root .ti-title{color:#1a1a1a}
:root .ti-desc{color:rgba(0,0,0,.5)}
:root .ti-check span{color:rgba(0,0,0,.8)}
:root .ti-dot{background:rgba(0,0,0,.18)}
:root .ti-dot.active{background:#1a1a1a}
:root .ti-arrow{color:rgba(0,0,0,.35)}
:root .ti-arrow:active{color:#1a1a1a}
:root .ti-close{color:#1a1a1a}

/* Dark mode — restore dark */
[data-theme="dark"] .ti-modal{background:#1a1a2e;color:#fff}
[data-theme="dark"] .ti-handle{background:rgba(255,255,255,.25)}
[data-theme="dark"] .ti-title{color:#fff}
[data-theme="dark"] .ti-desc{color:rgba(255,255,255,.6)}
[data-theme="dark"] .ti-check span{color:rgba(255,255,255,.85)}
[data-theme="dark"] .ti-dot{background:rgba(255,255,255,.25)}
[data-theme="dark"] .ti-dot.active{background:#fff}
[data-theme="dark"] .ti-arrow{color:rgba(255,255,255,.5)}
[data-theme="dark"] .ti-arrow:active{color:#fff}
[data-theme="dark"] .ti-close{color:#fff}

/* Balance bar in modal */
.pm-balance{display:flex;align-items:center;justify-content:space-between;background:var(--input-bg);border-radius:12px;padding:12px 14px;margin-bottom:16px}
.pm-bal-label{font-size:11px;color:var(--text-muted)}
.pm-bal-amount{font-size:17px;font-weight:900;color:var(--accent-dark)}
.pm-bal-btn{padding:8px 16px;border-radius:10px;border:none;background:var(--accent);color:#fff;font-size:13px;font-weight:700;cursor:pointer}
.pm-bal-btn:active{opacity:.85}
.pm-note{font-size:11px;color:var(--text-muted);text-align:center;margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}

/* ============ MYADS CARD - STATUS BADGE ============ */
.pac-badge{padding:8px 14px;border-radius:12px 12px 0 0;font-size:12px;font-weight:800;text-align:center;letter-spacing:.3px}
.pac-badge-vip{background:linear-gradient(135deg,#FFF8E1,#FFECB3);color:#F57F17;border-bottom:2px solid #FFD54F}
.pac-badge-top{background:linear-gradient(135deg,#E3F2FD,#BBDEFB);color:#1565C0;border-bottom:2px solid #64B5F6}
.pac-badge-both{background:linear-gradient(135deg,#FFF8E1,#E3F2FD);color:#FF6F00;border-bottom:2px solid #FFB74D}
[data-theme="dark"] .pac-badge-vip{background:linear-gradient(135deg,rgba(255,213,79,.15),rgba(255,183,77,.1));color:#FFD54F;border-color:rgba(255,213,79,.3)}
[data-theme="dark"] .pac-badge-top{background:linear-gradient(135deg,rgba(100,181,246,.12),rgba(66,165,245,.08));color:#64B5F6;border-color:rgba(100,181,246,.3)}
[data-theme="dark"] .pac-badge-both{background:linear-gradient(135deg,rgba(255,213,79,.12),rgba(100,181,246,.08));color:#FFB74D;border-color:rgba(255,183,77,.3)}

/* MYADS CARD - ACTION ICONS */
.pac-actions{display:flex;flex-direction:column;gap:6px;flex-shrink:0;margin-left:4px}
.pac-act-btn{width:34px;height:34px;border-radius:10px;border:1.5px solid var(--border);background:var(--white);display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-muted);padding:0;transition:all .15s}
.pac-act-btn:active{transform:scale(.9);opacity:.7}
.pac-act-edit:hover{color:var(--accent-dark);border-color:var(--accent)}
.pac-act-del:hover{color:#e53935;border-color:#e53935}
[data-theme="dark"] .pac-act-btn{background:var(--card-bg);border-color:var(--border)}

/* MYADS CARD - GOLDEN PROMO BUTTON */
.pac-btn-gold{display:block;width:100%;padding:14px;border:none;border-radius:var(--r-md);background:var(--cta-bg);color:var(--cta-text);font-size:var(--text-base);font-weight:800;cursor:pointer;text-align:center;letter-spacing:.3px;box-shadow:var(--cta-shadow);margin-top:2px;transition:opacity .2s}
.pac-btn-gold:hover{opacity:.92}
.pac-btn-gold:active{opacity:.82;transform:scale(.98)}

/* MyAds 4-button grid */
.pac-btns-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px 12px;
}
.pac-gbtn {
  padding: 12px 8px; border: none; border-radius: 14px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; text-align: center;
  transition: opacity .15s, transform .1s;
}
.pac-gbtn:active { opacity: .85; transform: scale(.97); }
.pac-gbtn-edit { background: #f0f0f0; color: #1a1a1a; }
.pac-gbtn-promo { background: var(--cta-bg); color: var(--cta-text); box-shadow: var(--cta-shadow); }
.pac-gbtn-deact { background: #37474F; color: #fff; }
.pac-gbtn-del { background: #B71C1C; color: #fff; }
[data-theme="dark"] .pac-gbtn-edit { background: #333; color: #eee; }
[data-theme="dark"] .pac-gbtn-promo { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
[data-theme="dark"] .pac-gbtn-deact { background: #2E7D32; }
[data-theme="dark"] .pac-gbtn-del { background: #C62828; }

/* Post success modal extra button styles */
.psm-btn-gold {
  display: block; width: 100%; padding: 16px; border: none;
  border-radius: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; margin-bottom: 10px;
  background: linear-gradient(135deg, #FFD700, #FFA000); color: #1a1a1a;
  transition: opacity .15s;
}
.psm-btn-gold:active { opacity: .85; transform: scale(.98); }
.psm-btn-dark {
  display: block; width: 100%; padding: 16px; border: none;
  border-radius: 14px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; margin-bottom: 10px;
  background: #1a1a1a; color: #fff;
  transition: opacity .15s;
}
.psm-btn-dark:active { opacity: .85; transform: scale(.98); }
[data-theme="dark"] .psm-btn-gold { background: #FFC107; color: #1a1a1a; }
[data-theme="dark"] .psm-btn-dark { background: #333; color: #eee; }

/* Fix: card with badge at top */
.promo-ad-card:has(.pac-badge){border-radius:12px;overflow:hidden}
.promo-ad-card:has(.pac-badge) .pac-top{border-radius:0}

/* Push notification bell shake */
@keyframes bellShake{0%{transform:rotate(0)}15%{transform:rotate(15deg)}30%{transform:rotate(-15deg)}45%{transform:rotate(10deg)}60%{transform:rotate(-5deg)}75%{transform:rotate(3deg)}100%{transform:rotate(0)}}
.bell-shake{animation:bellShake .6s ease-in-out}
@keyframes notifPulse{0%{box-shadow:0 0 0 0 rgba(244,67,54,.5)}70%{box-shadow:0 0 0 8px rgba(244,67,54,0)}100%{box-shadow:0 0 0 0 rgba(244,67,54,0)}}

/* ===== INFO BADGE ===== */
.info-badge {
  cursor: pointer;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  font-family: Georgia, serif;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s, border-color .2s;
  position: relative;
  z-index: 1;
  vertical-align: middle;
}
.info-badge:hover, .info-badge:active {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== SHOP INFO MODAL ===== */
.shop-info-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.shop-info-modal {
  background: var(--card-bg, #fff);
  border-radius: 20px 20px 0 0;
  padding: 12px 20px 32px;
  width: 100%;
  max-width: 480px;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,1,.4,1);
}
.shop-info-modal.active { transform: translateY(0); }
.shop-info-handle {
  width: 36px; height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto 20px;
}
.shop-info-icon { font-size: 36px; text-align: center; margin-bottom: 10px; }
.shop-info-title {
  font-size: 17px; font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: 16px;
}
.shop-info-list {
  list-style: none;
  padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.shop-info-list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  background: var(--bg, #f5f5f5);
  border-radius: 10px;
  padding: 10px 14px;
}
.shop-info-close {
  width: 100%;
  padding: 14px;
  background: var(--accent-dark, #1B5E20);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
[data-theme="dark"] .shop-info-modal { background: #1e1e1e; }
[data-theme="dark"] .shop-info-list li { background: #2a2a2a; }


/* ===== OTP & PASSWORD STRENGTH ===== */
.otp-input { font-size: 24px !important; letter-spacing: 8px; font-weight: 700; text-align: center; }
.pw-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px; padding: 0; line-height: 1;
}
.pw-hint { margin-top: 8px; }
.pw-bar { height: 4px; background: var(--border,#e0e0e0); border-radius: 2px; margin: 6px 0 4px; overflow: hidden; }
.pw-bar-fill { height: 100%; width: 0; border-radius: 2px; transition: width .3s, background .3s; }
.pw-rules { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-rules span { font-size: 11px; color: var(--text-muted); transition: color .2s; }

/* ========== COMPACT HEADER (scroll) ========== */
.header.compact .hd-top {
  max-height: 0;
  padding-top: 0; padding-bottom: 0;
  opacity: 0; pointer-events: none;
}
.header.compact .hd-bottom {
  padding: 4px 16px 6px;        /* ← tepa va pastdan kichik */
}
.header.compact .hd-search-pill {
  height: 38px;                 /* ← 46px dan 38px ga */
  border-radius: 12px;
  background: var(--input-bg);
}
.header.compact {
  border-bottom: none;
  box-shadow: none;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}


/* ========== FAVORITES PAGE (OZON style) ========== */
.fav-page {
  min-height: 100vh; min-height: 100dvh;
  background: var(--white);
  padding-bottom: calc(70px + var(--safe-bottom));
}

/* Header */
.fav-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: calc(14px + var(--safe-top)) 16px 14px;
}
.fav-back {
  background: none; border: none; cursor: pointer;
  color: var(--text); padding: 2px;
  display: flex; align-items: center; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.fav-header-title {
  font-size: 19px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.fav-count {
  font-size: 12px; font-weight: 700;
  background: var(--primary); color: #fff;
  padding: 2px 8px; border-radius: 10px; line-height: 1.6;
}
[data-theme="dark"] .fav-count { background: var(--accent-dark); color: #0d2137; }

/* Search bar */
.fav-search {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 14px 0;
  background: var(--input-bg);
  border-radius: var(--r-pill);
  padding: 11px 16px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}
.fav-search:active { opacity: .7; }

/* Body */
.fav-body { padding: 0 14px 12px; max-width: 900px; margin: 0 auto; }
.fav-list-header {
  font-size: 13px; color: var(--text-muted);
  font-weight: 600; margin-bottom: 10px; padding: 12px 2px 0;
}

/* Empty state — kartasiz, OZON uslubi */
.fav-empty {
  background: transparent;
  border-radius: 0;
  padding-top: 40px;
  padding-bottom: 24px;
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
  margin-bottom: 0;
}
.fav-empty-img {
  width: 120px; height: 120px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}
.fav-empty-title {
  font-size: 17px; font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 8px;
}
.fav-empty-sub {
  font-size: 13px; font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 250px;
  margin: 0 auto;
}

/* Grid */
.fav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 12px;
}

/* Recommended */
.fav-rec-section {
  margin-top: 20px;
  border-top: 6px solid var(--bg);
  padding-top: 16px;
}
.fav-rec-title {
  font-size: 17px; font-weight: 800;
  color: var(--text); margin-bottom: 0;
  padding: 0 2px;
}

[data-theme="dark"] .fav-page    { background: var(--bg); }
[data-theme="dark"] .fav-empty   { background: transparent; }
[data-theme="dark"] .fav-search  { background: var(--input-bg); }
[data-theme="dark"] .fav-rec-section { border-color: #1a1a1a; }
