/* ── SimpleProxy cabinet page ── */

[hidden] { display: none !important; }

button, input { font: inherit; }

/* ── topbar additions ── */
.account-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px 0 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.top-email {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.top-balance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(116, 135, 155, 0.12);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.top-balance.ok  { color: var(--green); background: rgba(116, 213, 138, 0.10); border-color: rgba(116, 213, 138, 0.25); }
.top-balance.low { color: #ff7070;      background: rgba(255, 99, 89, 0.10);  border-color: rgba(255, 99, 89, 0.25);  }

.top-actions .primary-link.is-hidden { display: none; }

/* ── buttons ── */
.btn,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.icon-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  color: var(--text);
  background: rgba(116, 135, 155, 0.10);
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 32px;
}

.icon-button svg { width: 14px; height: 14px; display: block; }

.ghost-link,
.btn-secondary {
  color: var(--muted);
  background: rgba(116, 135, 155, 0.08);
  border: 1px solid var(--line);
}

.ghost-link:hover, .btn-secondary:hover { color: var(--text); opacity: 1; }

.btn:hover,
.icon-button:hover { transform: translateY(-1px); opacity: 0.88; }

/* ── layout shells ── */
.login-shell,
.dashboard-grid,
.info-grid { display: grid; gap: 22px; }

.login-shell {
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: start;
  padding: 56px 0 34px;
}

.login-copy { padding: 20px 0; }

h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 780px;
}

.lead {
  margin: 20px 0 0;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

.login-tags, .status-row { display: flex; flex-wrap: wrap; gap: 10px; }
.login-tags { margin-top: 26px; }

.tag, .status-pill {
  border-radius: 999px;
  background: rgba(116, 135, 155, 0.08);
  border: 1px solid var(--line);
  color: var(--muted);
}

.tag { padding: 10px 14px; font-size: 14px; }

.status-pill {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
}

.status-pill.ok   { color: var(--green); }
.status-pill.warn { color: #ffd060; }

/* ── panel overrides ── */
.panel h2, .panel h3 { margin: 0; letter-spacing: -0.03em; }
.panel h2 { font-size: 30px; }
.panel h3 { font-size: 22px; }

/* ── form fields (cabinet-specific sizing) ── */
.field { margin-top: 20px; }

label { font-size: 13px; font-weight: 700; color: var(--muted); }

input:not([type=checkbox]):not([type=radio]) { min-height: 52px; }

/* ── login panel ── */
.login-panel { margin-top: 70px; }
.login-panel .btn { width: 100%; min-height: 52px; margin-top: 16px; }

.message {
  margin: 16px 0 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(116, 135, 155, 0.08);
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.message.error { color: #ff9090; }

/* ── magic-result / payment-login ── */
.magic-result { display: grid; gap: 12px; margin-top: 16px; }

.payment-login-code { margin-top: 16px; }
.payment-login-actions { display: flex; justify-content: center; margin-top: 12px; }

.payment-login-actions .ghost-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.payment-login-actions .ghost-button:disabled { cursor: default; opacity: 0.62; }

/* ── dashboard ── */
.dashboard { display: flex; flex-direction: column; padding: 32px 0 42px; }

.dashboard-grid {
  order: 0;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: start;
  margin-bottom: 22px;
}

.account-title { padding: 24px 0; }
.account-title h1 { font-size: clamp(34px, 5vw, 58px); }

/* ── subscription panel ── */
.subscription-panel { display: grid; gap: 18px; }

.subscription-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.subscription-details span {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.subscription-details strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}

.subscription-detail {
  padding: 15px;
  border-radius: 16px;
  background: rgba(116, 135, 155, 0.06);
  border: 1px solid var(--line);
}

.subscription-detail.wide { grid-column: 1 / -1; }

.discount-note {
  display: none;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(116, 213, 138, 0.08);
  border: 1px solid rgba(116, 213, 138, 0.22);
  line-height: 1.5;
  font-size: 14px;
}

.discount-note.is-visible { display: block; }

.plain-text { margin: 14px 0 0; color: var(--muted); line-height: 1.65; }

.devices-panel { margin-bottom: 22px; }

#tariffPanel    { order: 1; }
#operationsPanel{ order: 3; }
#devicesPanel   { order: 4; }
#supportPanel   { order: 5; }

/* ── collapsible panels ── */
.collapsible-panel { padding: 0; overflow: hidden; }

.collapse-toggle {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 26px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.collapse-toggle h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }

.collapse-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(116, 135, 155, 0.10);
  border: 1px solid var(--line);
  flex: 0 0 32px;
  transition: transform 0.18s ease;
}

.collapse-icon svg { width: 16px; height: 16px; display: block; }
.collapsible-panel.is-open .collapse-icon { transform: rotate(180deg); }

.collapse-content {
  height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 26px 26px;
  transition: height 0.36s ease, opacity 0.28s ease;
}

.collapsible-panel.is-open .collapse-content { opacity: 1; }

/* ── app panel ── */
.app-panel { order: 2; margin-bottom: 22px; }
.apps-grid { margin-top: 18px; }

/* ── operations ── */
.operation-list { margin: 18px 0 0; display: grid; gap: 0; color: var(--text); }

.operation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

.operation-row:first-child { border-top: 0; }

.operation-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.operation-amount { font-weight: 800; white-space: nowrap; }
.operation-amount.plus    { color: var(--green); }
.operation-amount.minus   { color: var(--text); }
.operation-amount.pending { color: #ffd060; }
.operation-amount.failed  { color: #ff7070; }

.operation-actions { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }

.receipt-link {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: var(--muted);
  background: rgba(116, 135, 155, 0.08);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.receipt-link:hover { transform: translateY(-1px); opacity: 0.80; }
.receipt-link svg { width: 15px; height: 15px; display: block; flex: 0 0 15px; }

.recheck-link { color: var(--muted); }
.recheck-link svg { width: 18px; height: 18px; flex-basis: 18px; overflow: visible; transform: translate(-1.75px, -2.5px); }

/* ── devices ── */
.device-list { margin: 18px 0 0; display: grid; gap: 0; color: var(--text); }

.device-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, auto) minmax(150px, auto) auto;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
  align-items: center;
}

.device-row:first-child { border-top: 0; }
.device-row span { color: var(--muted); font-size: 14px; }

.device-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(116, 135, 155, 0.08);
  color: var(--muted);
  border-radius: 999px;
  flex: 0 0 32px;
  font-size: 0;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.device-logout-button::before { content: "×"; font-size: 18px; line-height: 1; font-weight: 700; }
.device-logout-button:hover:not(:disabled) { transform: translateY(-1px); opacity: 0.80; }
.device-logout-button:disabled { opacity: 0.40; cursor: default; }

.empty-devices { margin: 16px 0 0; color: var(--muted); line-height: 1.65; }

/* ── tariff switch (in-panel plan selector) ── */
.tariff-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.tariff-option-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-light);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tariff-option-card:hover {
  transform: translateY(-3px);
  border-color: rgba(116, 135, 155, 0.60);
}

.tariff-option-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(116, 213, 138, 0.45);
  background: rgba(116, 213, 138, 0.05);
}

.tariff-option-badge,
.tariff-option-price,
.tariff-option-title,
.tariff-option-note { position: relative; z-index: 1; }

.tariff-option-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(116, 135, 155, 0.10);
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.tariff-option-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.tariff-option-price strong { font-size: 30px; line-height: 1; letter-spacing: -0.04em; }
.tariff-option-price span  { color: var(--muted); font-size: 13px; }
.tariff-option-title { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.03em; }
.tariff-option-note  { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }

.tariff-change-copy { margin: 16px 0 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.tariff-change-copy strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; }

.tariff-action { width: 100%; margin-top: 16px; }
.tariff-action.is-disabled { pointer-events: none; cursor: default; opacity: 0.82; }

/* ── billing modal ── */
.billing-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 14, 22, 0.85);
}

.billing-modal.is-open { display: flex; }

.billing-dialog {
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 24px;
  background: #16203a;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(0, 6, 18, 0.55);
  color: var(--text);
}

.billing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.billing-head h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; }
.billing-head p  { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

.billing-close {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(116, 135, 155, 0.10);
  color: var(--text);
  cursor: pointer;
  flex: 0 0 34px;
}

.billing-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.billing-option {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-light);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.billing-option strong { display: block; margin-bottom: 3px; color: var(--text); }
.billing-option span   { display: block; color: var(--muted); font-size: 13px; }

.billing-option.is-active {
  transform: translateY(-2px);
  border-color: rgba(116, 135, 155, 0.60);
}

/* ── billing toggle (year switch) ── */
.billing-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(116, 135, 155, 0.06);
  cursor: pointer;
}

.billing-toggle[hidden] { display: none !important; }
.billing-toggle strong, .billing-toggle span { display: block; }
.billing-toggle strong { color: var(--text); font-size: 15px; }
.billing-toggle span   { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.billing-toggle input { position: absolute; opacity: 0; pointer-events: none; }

.billing-toggle-control {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(116, 135, 155, 0.14);
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.billing-toggle-control::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 2px;
  top: 2px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.billing-toggle input:checked + .billing-toggle-control {
  background: rgba(116, 213, 138, 0.30);
  border-color: rgba(116, 213, 138, 0.55);
}

.billing-toggle input:checked + .billing-toggle-control::after {
  transform: translateX(20px);
  background: var(--green);
}

.billing-summary { margin: 14px 0 0; color: var(--muted); line-height: 1.6; font-size: 14px; min-height: calc(1.6em * 4); }

.billing-promo { display: grid; gap: 8px; margin-top: 14px; }
.billing-promo label { color: var(--muted); font-size: 13px; font-weight: 700; }

.billing-promo input {
  min-height: 48px;
  border-radius: 999px;
}

.billing-offer-consent {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.billing-offer-consent input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  display: block;
  flex: 0 0 16px;
  align-self: flex-start;
  accent-color: var(--blue);
  cursor: pointer;
}

.billing-offer-consent a { color: var(--text); text-underline-offset: 2px; }

.billing-submit {
  width: 100%;
  margin-top: 18px;
  background: rgba(116, 135, 155, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
  opacity: 0.55;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.18s ease;
}

.billing-dialog:has(#billingOfferConsentInput:checked) .billing-submit {
  background: var(--green);
  border-color: transparent;
  color: #0e1a2b;
  opacity: 1;
}

.billing-error {
  display: none;
  margin: 12px 0 0;
  color: #ff9090;
  line-height: 1.5;
  font-size: 14px;
}

.billing-error.is-info { color: var(--muted); }

/* ── support chat ── */
.support-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  grid-template-rows: 690px;
  height: 690px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 16px;
}

/* left sidebar */
.support-sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: rgba(30, 42, 64, 0.55);
}

.support-sidebar-header {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.support-new-btn {
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 12px;
}

.support-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.support-empty-list {
  padding: 16px 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* right main panel */
.support-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.support-view { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }

/* placeholder (empty state) */
.support-placeholder {
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  padding: 40px 24px;
  text-align: center;
}

.support-placeholder svg {
  width: 36px; height: 36px;
  stroke: var(--line);
  stroke-width: 1.3;
  fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* header inside right panel */
.support-main-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.support-main-title {
  font-size: 14px; font-weight: 700; color: var(--text);
}

.support-thread-subject {
  flex: 1; font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text);
}

/* body area inside right panel */
.support-main-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

/* compose form */
.support-compose-form { display: grid; gap: 14px; }
.support-compose-form .btn { justify-self: start; }

/* chat list rows */
.support-chat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px;
  border-radius: 12px;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.14s, border-color 0.14s;
  text-align: left;
  width: 100%;
  color: var(--text);
  font: inherit;
}

.support-chat-row:hover { background: rgba(116, 135, 155, 0.07); border-color: var(--line); }
.support-chat-row.active { background: rgba(116, 135, 155, 0.12); border-color: var(--line); }
.support-chat-row.has-reply { background: rgba(116, 135, 155, 0.05); border-color: var(--line); }

.support-chat-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(116, 135, 155, 0.10);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.support-chat-avatar svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.support-chat-body { flex: 1; min-width: 0; }

.support-chat-subject {
  display: block;
  font-size: 13px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}

.support-chat-row.has-reply .support-chat-subject { color: var(--blue); }

.support-chat-meta { font-size: 11px; color: var(--muted); display: flex; gap: 6px; }

/* status badge */
.support-ticket-status {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(116, 135, 155, 0.08);
  border: 1px solid var(--line);
  font-size: 11px; font-weight: 700;
  white-space: nowrap; color: var(--muted);
  flex-shrink: 0;
}

.support-ticket-status.open    { color: #ffd060; }
.support-ticket-status.pending { color: #7eb8f7; }
.support-ticket-status.closed  { color: var(--green); }

/* messages area */
.support-messages {
  flex: 1;
  display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 0;
}

.support-message { display: flex; flex-direction: column; gap: 3px; max-width: 80%; }
.support-message.user  { align-self: flex-end;  align-items: flex-end; }
.support-message.admin { align-self: flex-start; align-items: flex-start; }

.support-message-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 14px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
}

.support-message.user  .support-message-bubble { background: var(--blue); color: var(--text); border-bottom-right-radius: 4px; }
.support-message.admin .support-message-bubble { background: var(--panel-light); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }

.support-message-meta { font-size: 11px; color: var(--muted); padding: 0 4px; }

/* reply form */
.support-reply-form {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  display: grid; gap: 10px;
  flex-shrink: 0;
}

.support-reply-form textarea { border-radius: 16px; min-height: 72px; resize: none; }

.support-reply-actions { display: flex; gap: 10px; align-items: center; }

.support-close-btn {
  font-size: 13px; min-height: 40px; padding: 0 16px;
  color: var(--muted); background: transparent;
  border: 1px solid var(--line); border-radius: 12px;
}

.support-close-btn:hover { color: #ff7070; border-color: rgba(255, 112, 112, 0.40); }

.support-closed-note {
  margin: 0 20px 14px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(116, 135, 155, 0.06); border: 1px solid var(--line);
  font-size: 13px; color: var(--muted); text-align: center;
}

/* responsive: stack on narrow */
@media (max-width: 640px) {
  .support-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .support-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 200px;
  }
  .support-chat-list { max-height: 140px; }
}

/* ── referral ── */
.referral-copy-link {
  display: inline;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(116, 135, 155, 0.4);
  text-underline-offset: 3px;
  transition: color 0.14s, text-decoration-color 0.14s;
}

.referral-copy-link:hover {
  color: var(--text);
  text-decoration-color: rgba(244, 247, 255, 0.4);
}

/* ── misc ── */
.info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

footer { padding: 24px 0 46px; }

body.modal-open { overflow: hidden; padding-right: var(--scrollbar-compensation, 0px); }

/* ── responsive ── */
@media (max-width: 1024px) {
  .login-shell,
  .dashboard-grid,
  .info-grid { grid-template-columns: 1fr; }

  .apps-grid { grid-template-columns: 1fr 1fr; }
  .login-shell { padding-top: 30px; }
  .login-panel { margin-top: 0; }
}

@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .top-actions,
  .top-actions .ghost-link,
  .top-actions .primary-link { width: 100%; }
  .account-menu { width: 100%; }
  .top-email { max-width: none; flex: 1; }
  .top-balance { margin-left: auto; }

  .panel { padding: 20px; border-radius: 20px; }
  .collapsible-panel { padding: 0; }
  .collapse-toggle { height: 52px; padding: 14px 20px 0; }
  .collapse-toggle h2 { font-size: 22px; }
  .collapse-content { padding: 0 20px 20px; }

  .subscription-details,
  .device-row,
  .operation-row,
  .tariff-switch { grid-template-columns: 1fr; gap: 4px; }

  .device-logout-button { justify-self: start; margin-top: 8px; }
  .billing-options { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .lead, .panel-copy, .app-link p { font-size: 14px; line-height: 1.55; }
}
