/* ============================================================
   Token tizimi — qora + tilla ("black & gold") mavzu
   ============================================================ */
:root {
  --bg: #0a0a0c;
  --surface: #141218;
  --surface-2: #1d1a22;
  --gold: #c9a227;
  --gold-bright: #e9c666;
  --gold-dim: rgba(201, 162, 39, 0.28);
  --text: #f1ede2;
  --text-muted: #948f83;
  --danger: #e15b5b;

  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

body {
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(201, 162, 39, 0.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

/* ============================================================
   Brand header
   ============================================================ */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 65%, #8a6c15);
  color: #17140a;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.35);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__title {
  font-weight: 800;
  font-size: 16.5px;
  color: var(--text);
}

.brand__sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============================================================
   Foydalanuvchi kartasi — Telegram profil rasmi + ismi
   ============================================================ */
.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 10px;
}

.user-card__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  display: none; /* rasm muvaffaqiyatli yuklansa JS orqali "block" qilinadi */
}

.user-card__avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 70%);
  color: #17140a;
  font-family: var(--font-display);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-card__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   Tezkor tugmalar — Yordam / Akkaunt sotish
   ============================================================ */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--gold-dim);
  background: var(--surface);
  color: var(--gold-bright);
  border-radius: 10px;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.quick-btn:active {
  transform: scale(0.96);
}

/* ============================================================
   Umumiy ekran holatlari
   ============================================================ */
.screen--hidden {
  display: none;
}

.screen__lead {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 2px 12px;
}

/* ============================================================
   Akkaunt sotish — sotib oluvchi adminlar ro'yxati
   ============================================================ */
.seller-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.12s ease;
}

.seller-item:active {
  transform: scale(0.98);
}

.seller-item__name {
  font-size: 14.5px;
  font-weight: 700;
}

.seller-item__chevron {
  color: var(--gold);
  font-size: 18px;
}

/* ============================================================
   Bosh banner — bosilganda admin lichkasiga o'tadi
   ============================================================ */
.banner {
  display: block;
  position: relative;
  aspect-ratio: 2 / 1;
  max-height: 220px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--gold-dim);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease;
}

.banner:active {
  transform: scale(0.98);
}

.banner__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner__caption {
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.all-accounts-btn {
  display: block;
  width: 100%;
  border: 1px solid var(--gold-dim);
  background: var(--surface);
  color: var(--gold-bright);
  border-radius: 12px;
  padding: 13px 0;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}

.all-accounts-btn:active {
  transform: scale(0.97);
}

.section-heading {
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.3px;
  color: var(--gold-bright);
  margin: 4px 0 16px;
}

.sort-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.sort-tab {
  border: 1px solid var(--gold-dim);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 10px 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.sort-tab:active {
  transform: scale(0.96);
}

.sort-tab--active {
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 70%);
  color: #17140a;
  border-color: transparent;
}

.nav-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0 4px;
}

.nav-tabs--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.nav-tab {
  border: 1px solid var(--gold-dim);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.nav-tab:active {
  transform: scale(0.96);
}

.nav-tab--active {
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 70%);
  color: #17140a;
  border-color: transparent;
}

/* ============================================================
   Kategoriya "ticket" ro'yxati
   Narx oralig'ini stub/chipta ko'rinishida, gold chiziq bilan
   ============================================================ */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.ticket:active {
  transform: scale(0.98);
  border-left-color: var(--gold-bright);
}

.ticket__range {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.3px;
  line-height: 1;
  color: var(--text);
}

.ticket__sum {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

.ticket__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ticket__count {
  font-size: 12px;
  font-weight: 700;
  color: #17140a;
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 9px;
  min-width: 20px;
  text-align: center;
}

.ticket__count--zero {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ticket__chevron {
  color: var(--gold);
  font-size: 18px;
}

/* ============================================================
   Ro'yxat ekrani — akkaunt kartalari
   ============================================================ */
.back-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.account-card:active {
  transform: scale(0.97);
}

.account-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--surface-2);
  display: block;
}

.account-card__body {
  padding: 10px 11px 12px;
}

.account-card__price {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--gold-bright);
  line-height: 1;
}

.account-card__level {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 5px;
}

.account-card__likes {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 10, 12, 0.65);
  backdrop-filter: blur(2px);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}

.account-card__badge-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 70%);
  color: #17140a;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  z-index: 1;
}

.account-card {
  position: relative;
}

.account-card--sold {
  cursor: default;
}

.account-card--sold .account-card__img {
  filter: grayscale(1) brightness(0.55);
}

.account-card__sold-ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  background: rgba(10, 10, 12, 0.85);
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 6px;
  z-index: 1;
  pointer-events: none;
}

.account-card__old-price {
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}

.account-card__btn {
  margin-top: 9px;
  width: 100%;
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  background: transparent;
  border-radius: 9px;
  padding: 7px 0;
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-body);
}

.account-card--sold .account-card__btn {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.1);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 60px;
  line-height: 1.6;
}

.empty-state--hidden {
  display: none;
}

/* ============================================================
   Batafsil (detail) ekrani
   ============================================================ */
.carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--surface-2);
  scroll-snap-align: start;
}

.carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.carousel__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease, width 0.15s ease;
}

.carousel__dot--active {
  background: var(--gold-bright);
  width: 16px;
  border-radius: 3px;
}

.sold-ribbon {
  position: absolute;
  top: 16px;
  right: -32px;
  transform: rotate(35deg);
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 70%);
  color: #17140a;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 4px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.sold-ribbon--hidden {
  display: none;
}

.detail {
  margin-top: 18px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.detail__old-price {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail__price {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--gold-bright);
  line-height: 1;
}

.detail__cat {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.like-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gold-dim);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.like-btn:active {
  transform: scale(0.96);
}

.like-btn__heart {
  font-size: 16px;
  line-height: 1;
}

.like-btn--liked {
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 70%);
  color: #17140a;
  border-color: transparent;
}

.like-btn--disabled {
  opacity: 0.85;
  cursor: default;
}

.spec-sheet {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13.5px;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-row__label {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.spec-row__value {
  color: var(--text);
  text-align: right;
  word-break: break-word;
}

.cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  padding: 14px 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(155deg, var(--gold-bright), var(--gold) 70%);
  color: #17140a;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.25);
}

.cta:active {
  transform: scale(0.98);
}

.cta--sold {
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  pointer-events: none;
}

/* ============================================================
   Almazlar bo'limi
   ============================================================ */
.diamond-product {
  margin-bottom: 16px;
}

.diamond-product__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.diamond-tier-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diamond-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.diamond-tier:active {
  transform: scale(0.98);
}

.diamond-tier__label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.diamond-tier__price {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-bright);
  white-space: nowrap;
}

.back-link {
  display: inline-block;
  background: none;
  border: none;
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  margin-bottom: 16px;
  cursor: pointer;
}

.order-summary {
  background: var(--surface);
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.order-summary__product {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.order-summary__tier {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
}

.order-summary__price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-bright);
  margin-top: 4px;
}

.order-label {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.order-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 4px;
}

.order-textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
}

.order-textarea::placeholder {
  color: var(--text-muted);
}

.order-success {
  text-align: center;
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-top: 40px;
}

/* ============================================================
   Almaz ID tekshiruvi natijasi
   ============================================================ */
.lookup-result {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 4px 0 16px;
  font-size: 13.5px;
  line-height: 1.6;
}

.lookup-result p {
  margin: 0 0 6px;
}

.lookup-result p:last-child {
  margin-bottom: 0;
}

.lookup-result--success {
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: var(--text);
}

.lookup-result--success strong {
  color: var(--gold-bright);
  font-size: 15px;
}

.lookup-result--error {
  background: rgba(225, 91, 91, 0.12);
  border: 1px solid rgba(225, 91, 91, 0.4);
  color: var(--text);
}

.lookup-result--warn {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--gold-dim);
  color: var(--text);
}

.lookup-confirm-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.lookup-confirm-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

/* ============================================================
   Sharhlar ekrani
   ============================================================ */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 14px 16px;
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.review-card__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.review-card__stars {
  font-size: 12.5px;
  letter-spacing: 1px;
}

.review-card__comment {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
