/* Kirish va profil sahifasi (Q15). Umumiy uslublar style.css'da. */

.prof h2 {
  margin-top: 2.2em;
}
.prof-why {
  margin: 1em 0 1.4em;
  padding-left: 1.2em;
}
.prof-why li {
  margin: 0.3em 0;
}

.prof-bal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0.8em 0 1em;
}
.prof-bal > div {
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--sheet);
  padding: 14px 16px;
}
.prof-bal p {
  margin: 0;
}
.prof-num {
  font: 700 1.35rem/1.25 var(--font-h, inherit);
  margin-top: 4px !important;
}

.table-wrap {
  overflow-x: auto;
}
.prof-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.prof-table th,
.prof-table td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--line);
}
.prof-table thead th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
}
.prof-table td:last-child {
  text-align: right;
  padding-right: 0;
}
.prof-buy td {
  white-space: nowrap;
}
.prof-hist td:first-child {
  white-space: nowrap;
  color: var(--muted);
}
.prof-hist td:nth-child(2) {
  overflow-wrap: anywhere;
}

.st {
  display: inline-block;
  font-size: 0.82rem;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  white-space: nowrap;
}
.st-done {
  border-color: transparent;
  background: var(--ink);
  color: var(--sheet);
}
.st-failed {
  border-color: var(--magenta);
  color: var(--magenta);
}

.prof-keys {
  list-style: none;
  margin: 0.8em 0;
  padding: 0;
}
.prof-keys li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.prof-keyform {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0.8em 0;
}
.prof-keyform input {
  flex: 1 1 220px;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
}
.prof-newkey {
  border: 1px solid var(--magenta);
  border-radius: var(--r-ctl);
  padding: 12px 14px;
  margin: 0.8em 0;
}
.prof-newkey p {
  margin: 0.3em 0;
}
.keybox {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.keybox code {
  overflow-wrap: anywhere;
  user-select: all;
}

.prof-out {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .prof-bal {
    grid-template-columns: 1fr;
  }
  .prof-table {
    font-size: 0.9rem;
  }
  .prof-hist th:nth-child(3),
  .prof-hist td:nth-child(3) {
    display: none;
  }
}

/* To'lov usuli (Q17): Click, Payme, Uzum, karta, Telegram Stars */
.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  margin: 0.6em 0 1em;
  padding: 0;
}
.pay-methods legend {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
  padding: 0;
}
.pay-m {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-ctl);
  background: var(--sheet);
  cursor: pointer;
}
.pay-m input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-m img,
.pay-m svg {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: none;
}
.pay-m > span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.pay-m small {
  font-size: 0.75rem;
}
.prof-buy:not([data-method="stars"]) .stars-col {
  display: none;
}
.pay-m:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.pay-m:has(input:focus-visible) {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}
