/* ============================================================
   EASY SHOP — Talabalar bozori
   Design tokens: "elon taxtasi" — real kampus e'lon taxtasidan
   ilhomlangan raqamli bozor. Har bir karta — stikerlangan qog'oz.
   ============================================================ */

/* Qorong'i rejim (standart) */
:root,
:root[data-theme="dark"] {
  --bg-page: #14102B;
  --bg-page-alt: #100C24;
  --bg-card: #1E1840;
  --bg-card-hover: #251D4D;
  --bg-input: #241D4A;
  --bg-nav: #1A1538;

  --accent-hot: #FF6B4A;
  --accent-hot-dim: #7A3324;
  --accent-gold: #FFB020;
  --accent-gold-dim: #6B4F17;
  --accent-green: #4ADE80;
  --accent-green-dim: #1F5C3A;
  --accent-red: #FB5C5C;
  --accent-blue: #6BA5FF;

  --text-primary: #F5F3FF;
  --text-secondary: #A6A0C9;
  --text-muted: #6E6795;

  --border: #322A5C;
  --border-strong: #453B7C;

  --overlay-bg: rgba(10, 8, 24, 0.72);
  --img-placeholder-bg: #0f0d24;
  --img-track-bg: #12102a;
  --skeleton-base: #241d4a;
  --skeleton-shine: #2f2760;

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.28);
  --shadow-lift: 0 14px 34px rgba(0, 0, 0, 0.38);
  --shadow-pin: 0 2px 0 rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

/* Yorug' rejim */
:root[data-theme="light"] {
  --bg-page: #F6F4FB;
  --bg-page-alt: #EFEBFA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1EEFA;
  --bg-input: #F1EFF9;
  --bg-nav: #FFFFFF;

  --accent-hot: #E85A3B;
  --accent-hot-dim: #FDE1D8;
  --accent-gold: #C87F0A;
  --accent-gold-dim: #FBEACB;
  --accent-green: #1C9A57;
  --accent-green-dim: #DAF3E5;
  --accent-red: #DC3E3E;
  --accent-blue: #2563EB;

  --text-primary: #1C1730;
  --text-secondary: #5B5578;
  --text-muted: #8B84A8;

  --border: #E3DFF0;
  --border-strong: #CBC4E3;

  --overlay-bg: rgba(28, 23, 48, 0.45);
  --img-placeholder-bg: #ECE9F6;
  --img-track-bg: #ECE9F6;
  --skeleton-base: #ECE9F6;
  --skeleton-shine: #F7F5FC;

  --shadow-card: 0 4px 20px rgba(28, 23, 48, 0.08);
  --shadow-lift: 0 14px 34px rgba(28, 23, 48, 0.14);
  --shadow-pin: 0 2px 0 rgba(28, 23, 48, 0.08);
  color-scheme: light;
}

:root {
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --nav-width: 224px;
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html, body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}

body {
  background-image:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 28px 28px;
  background-attachment: fixed;
  opacity: 0;
  animation: page-in .5s var(--ease-out) forwards;
}

:root[data-theme="light"] body { background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0); }

@keyframes page-in { to { opacity: 1; } }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

::selection { background: var(--accent-gold); color: #2A1D02; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.listing-card:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ------------------------------------------------------------
   Layout — app shell
   ------------------------------------------------------------ */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--nav-width);
  flex-shrink: 0;
  background: var(--bg-nav);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 10;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 8px 28px;
}

.sidebar-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 3px 10px rgba(255, 107, 74, 0.35);
  transform: rotate(-4deg);
  transition: transform .25s var(--ease-pop);
}

.sidebar-brand:hover .logo-mark { transform: rotate(2deg) scale(1.05); }

.logo-mark svg { width: 18px; height: 18px; color: #2A1002; }

.theme-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color .15s, border-color .15s, transform .2s var(--ease-pop);
}

.theme-toggle-btn:hover { color: var(--accent-gold); border-color: var(--accent-gold); transform: rotate(14deg); }
.theme-toggle-btn:active { transform: scale(.9); }
.theme-toggle-btn svg { width: 17px; height: 17px; }

.nav-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s, color .15s, transform .15s;
  position: relative;
}

.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s var(--ease-pop); }
.nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.nav-item:hover svg { transform: translateY(-1px); }
.nav-item.active { background: var(--bg-card); color: var(--accent-gold); }

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-gold);
}

.nav-badge {
  margin-left: auto;
  background: var(--accent-hot);
  color: #2A0F04;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }

.post-btn-side {
  width: 100%;
  background: var(--accent-gold);
  color: #2A1D02;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .15s, transform .15s var(--ease-pop);
}

.post-btn-side:hover { opacity: .92; transform: translateY(-1px); }
.post-btn-side:active { transform: translateY(0) scale(.98); }

.main-content { flex: 1; min-width: 0; padding: 28px 32px 100px; max-width: 1180px; }

.mobile-topbar { display: none; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mobile-topbar .sidebar-brand-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.mobile-topbar .logo-mark { width: 30px; height: 30px; }

/* ------------------------------------------------------------
   Valyuta tickeri
   ------------------------------------------------------------ */
.rate-ticker {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  animation: slide-down .4s var(--ease-out) .05s both;
}

.rate-ticker::-webkit-scrollbar { display: none; }

@keyframes slide-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.rate-item { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.rate-item .pair { color: var(--text-secondary); font-weight: 500; }
.rate-item .value { font-weight: 700; color: var(--text-primary); font-family: var(--font-display); font-variant-numeric: tabular-nums; }

.rate-item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-green); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .55);
  animation: pulse-dot 2.2s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.rate-updated { margin-left: auto; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* ------------------------------------------------------------
   Page header / search / chips
   ------------------------------------------------------------ */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; animation: rise-in .4s var(--ease-out) both; }
.page-header h1 { font-size: 26px; }
.page-header p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 10px 16px;
  width: 100%; max-width: 420px;
  transition: border-color .15s, box-shadow .15s;
}

.search-bar:focus-within { border-color: var(--accent-gold); box-shadow: 0 0 0 3px var(--accent-gold-dim); }
.search-bar input { background: none; border: none; outline: none; color: var(--text-primary); font-size: 14px; width: 100%; }
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }

.category-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px; scrollbar-width: none; }
.category-chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
  transition: all .15s var(--ease-pop);
}

.chip:hover { border-color: var(--border-strong); color: var(--text-primary); transform: translateY(-1px); }
.chip.active { background: var(--accent-gold-dim); border-color: var(--accent-gold); color: var(--accent-gold); }
.chip:active { transform: scale(.96); }

/* ------------------------------------------------------------
   Hot strip
   ------------------------------------------------------------ */
.section-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.section-label.hot { color: var(--accent-hot); }
.section-label svg { width: 16px; height: 16px; }
.section-label.hot svg { animation: flicker 1.8s ease-in-out infinite; }

@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.08) rotate(-3deg); } }

.hot-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 12px; margin-bottom: 32px; scrollbar-width: thin; }
.hot-strip .listing-card { width: 200px; flex-shrink: 0; }

.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

/* ------------------------------------------------------------
   Listing card — "stikerlangan e'lon" signature
   ------------------------------------------------------------ */
.listing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s var(--ease-pop), border-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: card-pin .35s var(--ease-pop) forwards;
  animation-delay: calc(var(--i, 0) * 35ms);
  will-change: transform;
}

@keyframes card-pin {
  from { opacity: 0; transform: translateY(10px) scale(.97) rotate(0deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(var(--tilt, 0deg)); }
}

.listing-card:nth-child(5n+1) { --tilt: -0.6deg; }
.listing-card:nth-child(5n+2) { --tilt: 0.5deg; }
.listing-card:nth-child(5n+3) { --tilt: -0.3deg; }
.listing-card:nth-child(5n+4) { --tilt: 0.7deg; }
.listing-card:nth-child(5n+5) { --tilt: -0.5deg; }

.listing-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px) rotate(0deg) scale(1.015);
  box-shadow: var(--shadow-lift);
  z-index: 2;
}

.listing-card.is-hot { border-color: var(--accent-hot-dim); }
.listing-card.is-hot:hover { border-color: var(--accent-hot); }

.listing-img-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; background: var(--img-track-bg); overflow: hidden; }
.listing-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-out); }
.listing-card:hover .listing-img-wrap img { transform: scale(1.06); }

.listing-img-wrap .no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }

.hot-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent-hot); color: #2A0F04;
  font-size: 11px; font-weight: 700; padding: 4px 9px;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 2px 8px rgba(255, 107, 74, .4);
}

.hot-badge svg { width: 11px; height: 11px; }

.like-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(20, 16, 43, .75);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  padding: 6px 10px;
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: #F5F3FF;
  transition: background .15s, transform .15s var(--ease-pop);
  font-variant-numeric: tabular-nums;
}

:root[data-theme="light"] .like-btn { background: rgba(255, 255, 255, .82); color: #1C1730; }

.like-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; transition: fill .15s, stroke .15s, transform .3s var(--ease-pop); }
.like-btn:hover { background: rgba(20, 16, 43, .95); transform: scale(1.05); }
:root[data-theme="light"] .like-btn:hover { background: rgba(255, 255, 255, .95); }

.like-btn.liked svg { fill: var(--accent-hot); stroke: var(--accent-hot); animation: heart-pop .35s var(--ease-pop); }
.like-btn.liked { color: var(--accent-hot); }
.like-btn:disabled { opacity: .6; cursor: default; }

@keyframes heart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

.listing-info { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }

.listing-title {
  font-size: 14px; font-weight: 500; color: var(--text-primary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35; min-height: 38px;
}

.listing-price { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--accent-gold); margin-top: 2px; font-variant-numeric: tabular-nums; }

.listing-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.listing-meta .seller { display: flex; align-items: center; gap: 5px; overflow: hidden; }
.listing-meta .seller-avatar { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-hot), var(--accent-gold)); flex-shrink: 0; }

/* Skeleton loading kartalar */
.listing-card.skeleton { cursor: default; animation: card-pin .3s var(--ease-out) forwards; }
.skeleton-block { background: linear-gradient(100deg, var(--skeleton-base) 30%, var(--skeleton-shine) 50%, var(--skeleton-base) 70%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.skeleton .listing-img-wrap { background: var(--skeleton-base); }
.skeleton .listing-img-wrap.skeleton-block {}
.skeleton-line { height: 12px; border-radius: 4px; margin-bottom: 8px; }

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: opacity .15s, background .15s, transform .15s var(--ease-pop); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }
.btn:active:not(:disabled) { transform: scale(.97); }

.btn-primary { background: var(--accent-gold); color: #2A1D02; }
.btn-primary:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }

.btn-secondary { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); }
.btn-secondary:hover:not(:disabled) { border-color: var(--border-strong); }

.btn-danger { background: var(--accent-red); color: #2A0505; }
:root[data-theme="light"] .btn-danger { color: #FFF3F3; }
.btn-danger:hover:not(:disabled) { opacity: .9; }

.btn-full { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong); border-top-color: var(--accent-gold); animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.spinner-lg { width: 30px; height: 30px; border-width: 3px; margin: 40px auto; display: block; }

/* ------------------------------------------------------------
   Formalar
   ------------------------------------------------------------ */
.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; max-width: 560px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }

.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px var(--accent-gold-dim); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group .char-count { text-align: right; font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238B84A8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

.image-drop { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); padding: 24px; text-align: center; color: var(--text-secondary); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.image-drop:hover { border-color: var(--accent-gold); background: var(--bg-input); }
.image-drop.drag-over { border-color: var(--accent-gold); background: var(--accent-gold-dim); transform: scale(1.01); }
.image-drop svg { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--text-muted); }
.image-drop input[type="file"] { display: none; }

.image-preview-strip { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.image-preview-strip .preview-thumb { position: relative; width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); animation: pop-in .25s var(--ease-pop); }
@keyframes pop-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
.image-preview-strip .preview-thumb img { width: 100%; height: 100%; object-fit: cover; }

.preview-thumb .remove-thumb { position: absolute; top: 2px; right: 2px; background: rgba(20,16,43,.85); border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; color: #F5F3FF; transition: transform .15s; }
:root[data-theme="light"] .preview-thumb .remove-thumb { background: rgba(28,23,48,.7); }
.preview-thumb .remove-thumb:hover { transform: scale(1.15); }
.preview-thumb .remove-thumb svg { width: 12px; height: 12px; }

.contact-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.contact-toggle button { flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-input); font-size: 13px; font-weight: 500; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .15s; }
.contact-toggle button.active { border-color: var(--accent-gold); color: var(--accent-gold); background: var(--accent-gold-dim); }

/* ------------------------------------------------------------
   Profile
   ------------------------------------------------------------ */
.profile-header { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; animation: rise-in .4s var(--ease-out) both; }

.profile-avatar {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 26px; color: #2A1D02;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(255, 107, 74, .3);
}

.profile-name { font-size: 20px; }
.profile-country { color: var(--text-secondary); font-size: 13px; margin-top: 2px; display: flex; align-items: center; }

.profile-contacts { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.contact-pill { display: flex; align-items: center; gap: 6px; background: var(--bg-input); border: 1px solid var(--border); padding: 6px 12px; border-radius: var(--radius-pill); font-size: 13px; }
.contact-pill svg { width: 14px; height: 14px; }

.stat-row { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.stat-pill { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 16px; min-width: 84px; }
.stat-pill .stat-num { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--accent-gold); font-variant-numeric: tabular-nums; }
.stat-pill .stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }

/* ------------------------------------------------------------
   Bo'sh holat
   ------------------------------------------------------------ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-secondary); animation: rise-in .4s var(--ease-out) both; }
.empty-state svg { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--text-muted); animation: float-y 3s ease-in-out infinite; }
.empty-state h3 { color: var(--text-primary); font-size: 16px; margin-bottom: 6px; }
.empty-state p { font-size: 13px; margin-bottom: 18px; }

@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ------------------------------------------------------------
   Modal
   ------------------------------------------------------------ */
.modal-overlay { position: fixed; inset: 0; background: var(--overlay-bg); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; backdrop-filter: blur(2px); animation: fade-in .2s var(--ease-out); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-box { background: var(--bg-card); border-radius: var(--radius-lg); max-width: 720px; width: 100%; max-height: 88vh; overflow-y: auto; border: 1px solid var(--border); animation: modal-in .28s var(--ease-pop); box-shadow: var(--shadow-lift); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-close { position: absolute; top: 14px; right: 14px; background: rgba(20,16,43,.7); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #F5F3FF; z-index: 2; transition: transform .15s var(--ease-pop); }
:root[data-theme="light"] .modal-close { background: rgba(28,23,48,.55); }
.modal-close:hover { transform: rotate(90deg); }
.modal-close svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------
   Toast
   ------------------------------------------------------------ */
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(10px); background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 12px 20px; font-size: 13px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-card); max-width: calc(100vw - 40px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.toast svg { width: 16px; height: 16px; color: var(--accent-green); flex-shrink: 0; }
.toast.toast-error { border-color: var(--accent-red); }
.toast.toast-error svg { color: var(--accent-red); }

/* ------------------------------------------------------------
   Mobile bottom nav + FAB
   ------------------------------------------------------------ */
.mobile-nav { display: none; }

.mobile-fab {
  position: fixed; bottom: 74px; right: 16px; width: 52px; height: 52px;
  border-radius: 50%; background: var(--accent-gold); color: #2A1D02;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card); z-index: 91;
  transition: transform .2s var(--ease-pop);
}
.mobile-fab:active { transform: scale(.92); }
.mobile-fab svg { width: 24px; height: 24px; }

@media (min-width: 861px) { .post-btn-mobile-only { display: none; } }

@media (max-width: 860px) {
  .sidebar { display: none; }
  .mobile-topbar { display: flex; }
  .main-content { padding: 18px 16px 90px; max-width: 100%; }

  .mobile-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-nav); border-top: 1px solid var(--border);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 90;
  }

  .mobile-nav .nav-item { flex-direction: column; flex: 1; gap: 4px; font-size: 11px; padding: 6px 4px; text-align: center; border-radius: var(--radius-sm); color: var(--text-muted); }
  .mobile-nav .nav-item.active { background: none; color: var(--accent-gold); }
  .mobile-nav .nav-item.active::before { display: none; }
  .mobile-nav .nav-item svg { width: 22px; height: 22px; }

  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hot-strip .listing-card { width: 160px; }
  .form-row { flex-direction: column; gap: 0; }
  .page-header { flex-direction: column; align-items: stretch; }
  .search-bar { max-width: 100%; }
}

/* ------------------------------------------------------------
   Admin panel
   ------------------------------------------------------------ */
.admin-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--accent-blue); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: .03em; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th { text-align: left; padding: 10px 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .04em; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr { transition: background .15s; }
.admin-table tbody tr:hover { background: var(--bg-card-hover); }

.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; }
.status-pill.active { background: var(--accent-green-dim); color: var(--accent-green); }
.status-pill.sold { background: var(--border); color: var(--text-muted); }
.status-pill.blocked { background: var(--accent-hot-dim); color: var(--accent-hot); }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 28px; }
.admin-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; animation: card-pin .3s var(--ease-pop) both; animation-delay: calc(var(--i, 0) * 60ms); }
.admin-stat-card .num { font-family: var(--font-display); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.admin-stat-card .label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.admin-stat-card svg { width: 20px; height: 20px; color: var(--accent-gold); margin-bottom: 10px; }
