/* Личный кабинет — дополнение к ../styles.css */

.cabinet-body {
  min-height: 100vh;
}

.header-cabinet {
  max-width: 960px;
}

.link-back {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.link-back:hover {
  color: var(--accent);
}

.cabinet-main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.cabinet-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 100px);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.auth-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
}

.auth-title {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth-lead {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.field input {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.field input::placeholder {
  color: #5c6570;
}

.field input:focus {
  outline: none;
  border-color: rgba(61, 255, 186, 0.4);
  box-shadow: 0 0 0 3px rgba(61, 255, 186, 0.08);
}

.btn-block {
  width: 100%;
  margin-top: 0.25rem;
}

.auth-foot {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.auth-foot a {
  color: var(--accent);
  text-decoration: none;
}

.auth-foot a:hover {
  text-decoration: underline;
}

/* Dashboard */
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.dash-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dash-sub {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.tg-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  background: rgba(100, 140, 255, 0.08);
  border: 1px solid rgba(100, 140, 255, 0.2);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.tg-banner strong {
  color: var(--text);
}

.dash-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dash-card {
  padding: 1.5rem 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.dash-card h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-pill.ok {
  background: rgba(61, 255, 186, 0.12);
  color: var(--accent);
  border: 1px solid rgba(61, 255, 186, 0.25);
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.expires-line {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.expires-line strong {
  color: var(--text);
}

.sub-url-box {
  position: relative;
}

.sub-url-box pre {
  margin: 0;
  padding: 1rem 1rem 3rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--muted);
  overflow-x: auto;
  word-break: break-all;
  white-space: pre-wrap;
}

.sub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.btn-copy {
  background: rgba(61, 255, 186, 0.1);
  color: var(--accent);
  border: 1px solid rgba(61, 255, 186, 0.25);
}

.btn-copy:hover {
  background: rgba(61, 255, 186, 0.18);
}

.copy-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 200;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.order-card .order-placeholder {
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 180, 80, 0.06);
  border: 1px dashed rgba(255, 180, 80, 0.25);
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.order-card .order-placeholder strong {
  color: #ffb450;
}

/* Оплата переводом */
.pay-section h2 {
  margin: 0 0 0.75rem;
}

.pay-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.tariff-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tariff-pick label {
  cursor: pointer;
}

.tariff-pick input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.tariff-chip {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tariff-pick input:focus-visible + .tariff-chip {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tariff-pick input:checked + .tariff-chip {
  border-color: rgba(61, 255, 186, 0.45);
  background: rgba(61, 255, 186, 0.1);
  color: var(--accent);
}

.req-box {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  line-height: 1.65;
}

.req-box dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.req-box dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.req-box dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text);
}

.order-code {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(61, 255, 186, 0.06);
  border: 1px dashed rgba(61, 255, 186, 0.25);
  font-size: 0.88rem;
  color: var(--muted);
}

.order-code strong {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
}

.btn-paid {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
}

.pay-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-overlay.show .modal-box {
  transform: translateY(0);
}

.modal-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-box p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.modal-box .btn-block {
  margin: 0;
}


.auth-error {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  color: #ffb4b4;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.35);
  border-radius: var(--radius-sm);
}
