/* ===== SCREENS: profil, buyurtmalar, referral, promo, yordam, sozlamalar ===== */

/* ---------- ikonka katagi (rasm bo'lsa rasm, bo'lmasa gradient + ikonka) ---------- */
.ico {
  position: relative; width: 44px; height: 44px; flex: none; overflow: hidden;
  display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(135deg, #2f6bff, #6a3cff);
}
.ico .ic { width: 22px; height: 22px; }
.ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.ico.has-img { background: rgba(75, 141, 255, .12); }
.ico.has-img .ic { display: none; }
.ico.has-img img { opacity: 1; }
.ico.xl { width: 96px; height: 96px; border-radius: 26px; }
.ico.xl .ic { width: 48px; height: 48px; }

/* ---------- profil ---------- */
.prof-head { display: grid; justify-items: center; gap: 4px; padding: 8px 0 16px; text-align: center; }
.prof-avatar {
  position: relative; width: 104px; height: 104px; margin-bottom: 8px; overflow: hidden;
  display: grid; place-items: center; border-radius: 50%; font-size: 40px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--violet));
  border: 3px solid rgba(255, 255, 255, .18); box-shadow: var(--glow);
}
.prof-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.prof-avatar.has-img img { opacity: 1; }
.prof-avatar.has-img .prof-initial { display: none; }
.prof-name { max-width: 100%; font-size: 21px; font-weight: 800; overflow-wrap: anywhere; }
.prof-user { color: var(--neon); font-weight: 600; }
.prof-id { color: var(--muted); font-size: 13px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.mini-stat { padding: 12px 6px; text-align: center; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.mini-stat b { display: block; font-size: 20px; }
.mini-stat small { color: var(--muted); font-size: 12px; }

/* ---------- menyu qatorlari ---------- */
.menu { display: grid; gap: 10px; margin-top: 14px; }
.menu-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px;
  text-align: left; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
button.menu-row { transition: transform .12s, border-color .2s; }
button.menu-row:active { transform: scale(.985); }
button.menu-row:hover { border-color: var(--line-strong); }
.menu-txt { flex: 1; min-width: 0; display: grid; }
.menu-txt b { font-size: 15px; }
.menu-txt small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.menu-row > .ic:last-child { color: var(--muted); }
.menu-row.danger .menu-txt b { color: #ff9db1; }

/* ---------- buyurtmalar ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); transition: color .2s;
}
.tab[aria-selected="true"] {
  color: #fff; border-color: transparent; box-shadow: var(--glow);
  background: linear-gradient(135deg, #2f6bff, #4b8dff);
}
.olist { display: grid; gap: 10px; }
.ocard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; text-align: left; transition: transform .12s, border-color .2s; }
.ocard:active { transform: scale(.985); }
.o-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.o-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.o-game { color: #c2cdf5; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-amt { font-size: 17px; }
.o-body small { color: var(--muted); font-size: 12px; }
.actions { display: grid; gap: 10px; margin-top: 16px; }

/* ---------- referral ---------- */
.ref-hero {
  display: grid; justify-items: center; gap: 12px; padding: 20px 14px; margin-bottom: 14px; text-align: center;
  border-radius: 22px; border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(106, 60, 255, .4), transparent 60%),
    linear-gradient(145deg, rgba(27, 59, 214, .45), rgba(10, 17, 48, .7));
}
.ref-hero h2 { font-size: 19px; line-height: 1.25; }
.copy-field {
  display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 14px;
  border-radius: 14px; background: rgba(8, 14, 38, .78); border: 1px solid var(--line);
}
.copy-field .val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.copy-field .val.mono { letter-spacing: .08em; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.stat-box { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stat-box small { display: block; color: var(--muted); font-size: 12px; }
.stat-box b { font-size: 22px; }
.ref-empty { padding: 8px 0 6px; }
.ref-empty .empty-ic { font-size: 36px; }

/* ---------- promo ---------- */
.plist { display: grid; gap: 10px; }
.pcard { display: flex; align-items: flex-start; gap: 12px; padding: 14px; }
.p-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.p-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-code { font-size: 16px; font-weight: 800; letter-spacing: .04em; }
.p-desc { color: #c2cdf5; font-size: 14px; overflow-wrap: anywhere; }
.p-rule { color: var(--muted); font-size: 12px; }
.checker .field:last-of-type { margin-bottom: 14px; }

/* ---------- yordam markazi ---------- */
.faq-list { display: grid; gap: 10px; margin-bottom: 16px; }
.faq { overflow: hidden; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 12px 14px; text-align: left; font-weight: 600;
}
.faq-q .ic { color: var(--neon); transition: transform .2s; }
.faq-q[aria-expanded="true"] .ic { transform: rotate(180deg); }
.faq-a { padding: 12px 14px 14px; color: #c2cdf5; border-top: 1px solid rgba(96, 132, 255, .12); }
.faq-a p { white-space: pre-line; overflow-wrap: anywhere; }

/* ---------- sozlamalar ---------- */
.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.lang-btn {
  display: grid; justify-items: center; gap: 2px; min-height: 62px; padding: 10px 6px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.lang-btn b { font-size: 16px; }
.lang-btn small { color: var(--muted); font-size: 12px; }
.lang-btn[aria-pressed="true"] {
  border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon), var(--glow);
  background: linear-gradient(180deg, rgba(47, 107, 255, .38), rgba(47, 107, 255, .12));
}   