/* E'lon sahifasi: stavka vidjeti, egalik paneli */
.detail-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); flex-wrap: wrap; gap: 10px; }
.detail-username { font-size: 30px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-2); }
.detail-media { height: 220px; border-radius: var(--radius-lg); margin-bottom: var(--space-5); overflow: hidden; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .placeholder { font-size: 44px; font-weight: 800; color: var(--brand); }
.detail-stats-row { display: flex; gap: var(--space-6); padding-top: var(--space-4); margin-top: var(--space-4); border-top: 1px solid var(--border); }
.detail-stat-label { font-size: 12px; color: var(--text-2); margin-bottom: 2px; }
.detail-stat-value { font-weight: 700; font-size: 15px; }

.buy-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.buy-panel .price-big { font-size: 32px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.buy-panel .price-label { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.timer-row { display: flex; align-items: center; gap: 8px; color: var(--warning); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 20px; margin: var(--space-3) 0; }
.timer-sub { color: var(--text-2); font-size: 13px; font-weight: 500; margin-bottom: var(--space-4); }
.bid-count-row { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13.5px; font-weight: 600; margin-bottom: var(--space-4); }

.bid-history { margin-top: var(--space-5); }
.bid-history h3 { font-size: 14px; margin-bottom: var(--space-3); color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.bid-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.bid-row:last-child { border-bottom: none; }
.bid-row .bidder { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bid-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-2); }
.bid-row .amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.bid-row:first-child .amount { color: var(--brand); }

.seller-card { display: flex; align-items: center; gap: 12px; margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border); }
.seller-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--text-2); flex-shrink: 0; }
.seller-name { font-weight: 700; font-size: 14.5px; }
.seller-sub { font-size: 12.5px; color: var(--text-2); }
.seller-rating { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-top: 2px; }
.seller-rating .icon { width: 13px; height: 13px; color: var(--warning); fill: var(--warning); }
.fav-btn { border: none; cursor: pointer; color: var(--text-2); display: flex; align-items: center; justify-content: center; }
.fav-btn.active { color: var(--danger); }

.offers-list .offer-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); gap: 10px; }
.offers-list .offer-row:last-child { border-bottom: none; }

.mobile-sticky-bar { display: none; }
@media (max-width: 640px) {
  .buy-panel.card { position: static; }
  .mobile-sticky-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: var(--bottomnav-h); z-index: 240;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 10px var(--space-4); padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  body.no-bottom-nav .mobile-sticky-bar { bottom: 0; }
  .mobile-sticky-bar .price-big { font-size: 16px; }
  .mobile-sticky-bar .btn { flex-shrink: 0; }
  /* Narx va asosiy tugma orasida nafas olish joyi */
  .buy-panel .price-big { margin-bottom: 14px; }
  /* Sticky panel oxirgi kontentni yopmasin */
  body:has(.mobile-sticky-bar) .page { padding-bottom: calc(var(--bottomnav-h) + 96px); }
  .detail-only-desktop-panel { display: none; }

  /* ---------- Ilova uslubidagi zich tipografiya ---------- */
  .detail-username { font-size: 20px; gap: 6px; margin-bottom: 6px; }
  .detail-media { height: 150px; margin-bottom: var(--space-3); border-radius: 12px; }
  .detail-media .placeholder { font-size: 30px; }
  .detail-stats-row { gap: var(--space-4); padding-top: 10px; margin-top: 10px; }
  .detail-stat-label { font-size: 10.5px; }
  .detail-stat-value { font-size: 13px; }
  .buy-panel .price-big { font-size: 22px; }
  .buy-panel .price-label { font-size: 11.5px; }
  .timer-row { font-size: 16px; gap: 6px; margin: 8px 0; }
  .timer-sub { font-size: 11.5px; margin-bottom: 10px; }
  .bid-count-row { font-size: 12px; margin-bottom: 10px; }
  .bid-history h3 { font-size: 10.5px; }
  .bid-row { padding: 8px 0; font-size: 12.5px; }
  .bid-avatar, .seller-avatar { width: 22px; height: 22px; font-size: 9.5px; }
  .seller-card { gap: 8px; margin-top: var(--space-3); padding-top: var(--space-3); }
  .seller-name { font-size: 13px; }
  .seller-sub, .seller-rating { font-size: 11px; }
}
.attr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.attr-grid .detail-stat-value { word-break: break-word; font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-bottom: var(--space-4); }
.gallery a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.escrow-note { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--space-4); padding: 10px 12px; background: var(--brand-soft); border-radius: 10px; font-size: 12.5px; color: var(--text); line-height: 1.45; }
.escrow-note svg { flex-shrink: 0; color: var(--brand); }
@media (max-width: 640px) { .attr-grid { grid-template-columns: 1fr 1fr; gap: 8px 12px; } }
.leader-badge[hidden] { display: none; }
/* ---------- Stavka vidjeti: klaviaturasiz − / + va tezkor tugmalar ---------- */
.bid-widget { margin-top: var(--space-4); }
.bid-sheet-head, .bid-backdrop { display: none; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper-btn { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font-size: 26px; font-weight: 700; line-height: 1; cursor: pointer; flex-shrink: 0; touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; }
.stepper-btn:active { transform: scale(.96); background: var(--brand-soft); }
.stepper-btn { -webkit-user-select: none; -webkit-touch-callout: none; }
.stepper-btn:disabled { opacity: .35; cursor: default; }
.stepper-value { flex: 1; min-width: 0; text-align: center; font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stepper-value small { font-size: 13px; color: var(--text-2); font-weight: 600; margin-left: 5px; }
.bid-hint { text-align: center; font-size: 12.5px; color: var(--text-2); margin: 8px 0 12px; }
.quick-bids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.chip { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 10px; padding: 9px 2px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; touch-action: manipulation; white-space: nowrap; }
.chip.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.large-confirm { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; background: var(--warning-soft); padding: 10px; border-radius: 10px; margin: 0 0 12px; font-weight: 500; }
.large-confirm[hidden] { display: none; }
.large-confirm input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--brand); }
.large-confirm.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.bid-note { font-size: 11.5px; color: var(--text-2); text-align: center; margin-top: 8px; line-height: 1.4; }
.auto-btn { margin-top: 8px; }
.auto-help { font-size: 12.5px; margin-top: 8px; }
.auto-help summary { cursor: pointer; color: var(--brand); font-weight: 600; text-align: center; list-style: none; }
.auto-help summary::-webkit-details-marker { display: none; }
.auto-help p { color: var(--text-2); line-height: 1.5; margin-top: 6px; }
.auto-active { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px;
  background: var(--brand-soft); border-radius: 10px; font-size: 13px; }
.auto-active .link-btn { background: none; border: none; padding: 0; font: inherit; font-size: 13px; color: var(--danger); font-weight: 600; cursor: pointer; flex-shrink: 0; }
.auto-tag { font-size: 10px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
@media (max-width: 640px) {
  .bid-widget { display: none; position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 310; margin: 0;
    background: var(--surface); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.15);
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - var(--kb, 0px) - 24px); overflow-y: auto; overscroll-behavior: contain; }
  body.bid-open .bid-widget { display: block; }
  body.bid-open .bid-backdrop { display: block; position: fixed; inset: 0; z-index: 305; background: rgba(17,19,24,.45); }
  body.bid-open .mobile-sticky-bar, body.bid-open .bottom-nav { display: none; }
  body.bid-open { overflow: hidden; }
  .bid-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .bid-sheet-head h3 { font-size: 16px; }
  .bid-close { background: none; border: none; font-size: 26px; line-height: 1; color: var(--text-2); padding: 0 4px; min-width: 40px; min-height: 40px; }
  /* Tap target'lar: kamida 40px */
  .fav-btn { min-width: 40px; min-height: 40px; }
  .chip, .copy-btn, .doc-link, .auto-active .link-btn, .detail-header a.platform-badge { min-height: 40px; }
  .auto-help summary { min-height: 40px; display: flex; align-items: center; justify-content: center; }
}
.verify-panel { margin-top: var(--space-4); padding: var(--space-4); border: 1px dashed var(--brand); border-radius: var(--radius); background: var(--brand-soft); }
.verify-panel h3 { font-size: 15px; margin-bottom: 6px; }
.verify-panel p { font-size: 13.5px; color: var(--text); line-height: 1.5; margin-bottom: var(--space-3); }
.verify-panel.is-missing { border-color: var(--danger); background: var(--danger-soft); }
.verify-steps { padding-left: 18px; font-size: 13.5px; line-height: 1.5; margin-bottom: var(--space-3); display: grid; gap: 4px; }
.verify-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--surface); border-radius: 10px; border: 1px solid var(--border-strong); margin-bottom: var(--space-3); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.copy-btn { background: none; border: none; font: inherit; font-size: 12.5px; color: var(--brand); font-weight: 700; cursor: pointer; flex-shrink: 0; }
.verify-status { font-size: 13.5px; font-weight: 600; margin-bottom: var(--space-3); }
.verify-status.ok { color: var(--success); }
.verify-status.wait { color: var(--warning); }
.verify-actions { margin-bottom: var(--space-2); }
.verify-note { font-size: 12px !important; color: var(--text-2) !important; margin: 0 !important; }
.link-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--text-2); margin-bottom: var(--space-4); }
.link-proof { font-size: 13px; color: var(--success); font-weight: 600; margin-bottom: var(--space-4); }
.stat-verified { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--success); margin-left: 4px; }
.nda-box { margin-top: var(--space-4); padding: var(--space-4); border-radius: var(--radius); border: 1px solid var(--border-strong); }
.nda-box h3 { font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.nda-box ol { padding-left: 18px; font-size: 13px; color: var(--text-2); line-height: 1.55; margin-bottom: var(--space-3); }
.doc-link { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.doc-link:last-child { border-bottom: none; }
.leader-badge { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 700; }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: var(--warning-soft); } 100% { background: transparent; } }
