.content { padding: 24px 0 60px; }
.noscript { padding: 24px; text-align: center; }
.panel {
  width: calc(100% - 108px);
  max-width: 1080px;
  margin: 0 auto 24px;
  padding: 28px 22px 26px;
  background: var(--panel-bg);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
}
.panel h1, .panel h2 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.lead { margin-top: 8px; color: var(--muted); font-size: 12px; }
.note { margin-top: 14px; color: var(--muted); font-size: 11px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}
.btn-light { background: var(--light); color: var(--light-text); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #4a4a50; }
.btn-block { width: 100%; }

/* ---------- панель инструментов: вкладки и списки ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.chip {
  height: 31px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  color: #a9a9b1;
  font-size: 11.5px;
  font-weight: 600;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: #4b3f9e; color: #fff; }
.select {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--raised);
  font-size: 11.5px;
  font-weight: 600;
}
.select option { background: var(--raised); }
.select-location { min-width: 132px; }

/* ---------- прокси ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.card { display: flex; flex-direction: column; padding: 16px 17px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.badge { align-self: flex-start; padding: 2px 9px; border-radius: 20px; background: var(--badge-bg); color: #9a9aa2; font-size: 10.5px; font-weight: 500; }
.card h3 { margin-top: 8px; font-size: 16px; font-weight: 600; }
.price { margin-top: 5px; }
.price strong { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.price span { margin-left: 5px; color: var(--muted); font-size: 11.5px; }
.features { flex: 1; list-style: none; margin: 11px 0 15px; color: var(--muted); font-size: 12px; }
.features li { line-height: 22px; }
.features li::before { content: "✓ "; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-row .select { width: 150px; height: 35px; font-size: 12px; }
.card-total { font-size: 20px; font-weight: 700; }
.card .btn { min-height: 36px; }

/* ---------- серверы ---------- */
.toolbar-split { justify-content: space-between; }
.toolbar-split .note { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.table { width: 100%; margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.table th { height: 31px; padding: 0 8px; background: var(--raised); color: var(--muted); font-size: 10.5px; font-weight: 500; text-align: left; }
.table td { height: 58px; padding: 6px 8px; border-top: 1px solid var(--line-soft); background: var(--bg); font-size: 11.5px; font-weight: 600; }
.table tr > :first-child { padding-left: 14px; width: 26%; }
.table tbody tr:hover td { background: #212124; }
.table tr.is-popular td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.server-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.server-sub { display: block; color: var(--muted); font-size: 10.5px; font-weight: 400; }
.tag { padding: 0 7px; border: 1px solid #4b3f9e; border-radius: 20px; color: #8f82ff; font-size: 9.5px; font-weight: 500; line-height: 14px; }
.row-price strong { font-size: 15px; font-weight: 700; }
.row-price span { margin-left: 4px; color: var(--muted); font-size: 10.5px; font-weight: 400; }
.table .btn { min-height: 29px; }

/* ---------- главная, кабинет, локации, FAQ, преимущества ---------- */
.hero h1 { max-width: 560px; font-size: 36px; }
.hero .lead { max-width: 520px; font-size: 13.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.actions .btn { min-height: 36px; padding: 0 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 20px; }
.tile { padding: 15px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.tile h3 { font-size: 13.5px; font-weight: 600; }
.tile p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.empty { margin-top: 20px; padding: 26px 16px; border: 1px dashed #36363a; border-radius: 12px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 12px; }
.faq { margin-top: 20px; }
.faq details { margin-bottom: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.faq summary { padding: 12px 15px; cursor: pointer; font-weight: 600; }
.faq p { padding: 0 15px 13px; color: var(--muted); font-size: 12px; }

/* ---------- модальные окна ---------- */
.modal {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 20px;
  background: var(--panel-bg);
  border: 1px solid #34343a;
  border-radius: 14px;
  color: var(--text);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(3px); }
.modal h2 { font-size: 18px; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; margin: 15px 0; font-size: 12.5px; }
.summary dt { color: var(--muted); }
.summary dd { text-align: right; font-weight: 600; }
.modal .select { width: 100%; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.modal-actions .btn { flex: 1; min-height: 36px; }
.status { margin-top: 10px; color: var(--muted); font-size: 11.5px; }
.status:empty { display: none; }
.status-error { color: #ff8a8a; }
.status-ok { color: #6fe08f; }
.pay-group { margin: 4px 0 -2px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.wallet { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 10px; padding: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.copy-row { display: flex; flex-direction: column; gap: 4px; }
.copy-label { color: var(--muted); font-size: 11px; }
.copy-value { display: flex; align-items: center; gap: 8px; }
.copy-value code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 600 12.5px/1.4 ui-monospace, Consolas, monospace; }
.copy-value code.amount { font-size: 18px; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #7a6bff; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.pay-grid .btn { flex-direction: column; align-items: flex-start; gap: 1px; min-height: 44px; padding: 6px 10px; text-align: left; }
.pay-grid .btn strong { font-size: 12.5px; }
.pay-grid .btn small { color: var(--muted); font-size: 10px; font-weight: 500; }
.pay-grid .btn:hover { border-color: var(--accent); }
.wallet-head { display: flex; gap: 14px; align-items: center; }
.qr { flex: none; width: 168px; height: 168px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(103, 86, 250, 0.35), 0 10px 30px rgba(103, 86, 250, 0.25); }
.wallet-sum { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wallet-sum strong { font-size: 13px; }
.big-amount { font: 700 17px/1.3 ui-monospace, Consolas, monospace; color: #fff; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .wallet-head { flex-direction: column; align-items: stretch; }
  .qr { align-self: center; width: 200px; height: 200px; }
}
.btn-small { min-height: 26px; padding: 0 10px; font-size: 11px; flex: none; }
.warn { padding: 9px 11px; border-radius: 8px; background: rgba(255, 184, 0, 0.1); color: #ffcc55; font-size: 11.5px; }
.state-expired { background: var(--badge-bg); color: #8e8e96; }
.state-checking { background: rgba(103, 86, 250, 0.18); color: #b3a9ff; }
.modal-actions-stack { flex-direction: column; }
.modal-actions-stack .btn { width: 100%; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.field .search-input { color: var(--text); font-size: 13px; }
.field .search-input:focus { border-color: var(--accent); outline: none; }
.hint { margin-top: -6px; color: var(--muted); font-size: 11px; }
.link-btn { align-self: center; color: #a99fff; font-size: 12px; }
.link-btn:hover { text-decoration: underline; }
.btn:disabled { opacity: 0.55; cursor: wait; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.account { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.account-email { overflow-wrap: anywhere; }
.subhead { margin-top: 20px; font-size: 15px; font-weight: 600; }
.actions-center { justify-content: center; }
.state { padding: 2px 8px; border-radius: 20px; font-size: 10.5px; font-weight: 600; background: var(--badge-bg); color: #b9b9c0; }
.state-paid { background: rgba(52, 199, 89, 0.15); color: #6fe08f; }
.state-pending { background: rgba(255, 184, 0, 0.13); color: #ffcc55; }
.state-failed { background: rgba(255, 90, 90, 0.13); color: #ff8a8a; }
.status { white-space: pre-line; user-select: text; }
[tabindex="-1"]:focus { outline: none; }
.modal-search { width: min(500px, calc(100vw - 32px)); margin-top: 12vh; padding: 12px; }
.search-input { width: 100%; height: 38px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.results { margin-top: 8px; max-height: 320px; overflow-y: auto; list-style: none; }
.results button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 11px; border-radius: 8px; text-align: left; }
.results button:hover, .results button:focus-visible { background: var(--accent-soft); }
.results small { color: var(--muted); }
.results-empty { padding: 12px; color: var(--muted); text-align: center; }

.is-highlighted td, .is-highlighted.card { background: var(--accent-soft) !important; }

@media (max-width: 1080px) {
  .panel { width: calc(100% - 32px); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 700px) {
  .content { padding: 12px 0 calc(40px + env(safe-area-inset-bottom)); }
  .panel { width: calc(100% - 20px); padding: 20px 14px; border-radius: 16px; }
  .card-row .select { width: 120px; }
  .modal { width: calc(100vw - 20px); padding: 18px 16px; }
  .panel h2 { font-size: 24px; }
  .hero h1 { font-size: 27px; }
  .table { display: block; border: 0; }
  .table thead { display: none; }
  .table tbody { display: grid; gap: 10px; }
  .table tr { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; }
  .table tr.is-popular { border-color: #4b3f9e; }
  .table td, .table tr > :first-child { width: auto; height: auto; padding: 5px 10px; border: 0; background: transparent !important; box-shadow: none !important; }
  .table td:first-child { grid-column: 1 / -1; }
  .table td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; font-weight: 400; }
  .table td:last-child .btn { width: 100%; }
  .is-highlighted { outline: 2px solid var(--accent); }
}
