/* IronVPN — success page styles (Claude redesign).
   Token-driven, so it follows the same light/dark theme as redesign.css.
   Classes here match the ones success.js creates dynamically, so the JS
   stays untouched. Load AFTER redesign.css. */

/* --------------------------------------------------------------- hero */
.success-hero { display: flex; flex-direction: column; gap: 14px; }
.success-hero h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.08;
  color: var(--ink);
  text-wrap: balance;
}
.success-hero .lead { color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 17px); max-width: 62ch; }

/* ---------------------------------------------------------- result card */
.result-card {
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-margin-top: 24px;
}
.status-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(25, 192, 138, 0.12);
  border: 1px solid rgba(25, 192, 138, 0.28);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
:root[data-theme="light"] .status-pill {
  background: rgba(7, 131, 92, 0.10);
  border-color: rgba(7, 131, 92, 0.24);
}
.muted-text { color: var(--ink-soft); font-size: 14.5px; }
.mail-note {
  color: var(--ink-soft);
  font-size: 13.5px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------- buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.2px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.button:active { transform: translateY(1px) scale(0.99); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 16px 34px -16px var(--accent-glow);
}
.button-primary:hover { transform: translateY(-1px); box-shadow: 0 20px 42px -14px var(--accent-glow); }
.button-secondary {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--ink);
}
.button-secondary:hover { background: var(--surface-strong); border-color: var(--border-strong); transform: translateY(-1px); }
.button-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.button-danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: var(--danger); }

.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-actions .button { flex: 1 1 150px; }

/* -------------------------------------------------------- vpn link cards */
.vpn-link-list { display: flex; flex-direction: column; gap: 16px; }
.vpn-link-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.vpn-link-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.vpn-link-head strong { font-size: 16px; font-weight: 800; color: var(--ink); display: block; }
.vpn-link-head small { color: var(--ink-faint); font-size: 13px; font-weight: 600; }
.vpn-link-head b { color: var(--accent); font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }

.vpn-link-box {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink-soft);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  word-break: break-all;
}
:root[data-theme="light"] .vpn-link-box { background: #f4f8f9; color: var(--ink); }
.vpn-link-box:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.vpn-launch-button { width: 100%; min-height: 54px; font-size: 16px; }
.vpn-launch-hint { color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.vpn-launch-options { display: flex; flex-wrap: wrap; gap: 10px; }
.vpn-launch-options .button { flex: 1 1 120px; }
.telegram-proxy-button { width: 100%; }

.vpn-link-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.vpn-link-actions .button { width: 100%; padding-inline: 10px; }
.config-note { color: var(--ink-faint); font-size: 12.5px; line-height: 1.45; }

/* ------------------------------------------------------------ renew */
.renew-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.renew-options > p { font-weight: 800; color: var(--ink); }
.renew-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.renew-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.renew-option:hover { border-color: var(--accent); background: var(--surface-strong); transform: translateY(-1px); }
.renew-option strong { font-size: 14px; font-weight: 800; }
.renew-option span { color: var(--accent); font-weight: 900; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 560px) {
  .vpn-link-actions { grid-template-columns: 1fr; }
  .renew-plan-grid { grid-template-columns: 1fr; }
  .result-actions .button { flex: 1 1 100%; }
}
