/* ====================================
   CheckArch Payment Page — v3 (2026-05-12)
   Unified glass surface, single accent (--a1)
   ==================================== */

/* === PAGE LAYOUT === */
.payment-page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 36px) 20px 80px;
  position: relative;
  z-index: 1;
}

.payment-container {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* === HEADER === */
.payment-header {
  text-align: center;
  margin-bottom: 8px;
}

.payment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--bg-elev-1);
  border: 1px solid var(--stroke);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--a1);
  margin-bottom: 14px;
}

.payment-title {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  background: linear-gradient(135deg, var(--text) 30%, var(--a1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.payment-subtitle {
  font-size: 15px;
  color: var(--text-3);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.5;
}

/* === BALANCE CARD === */
.balance-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--a1) 14%, transparent), transparent 60%);
  pointer-events: none;
}

.balance-main,
.balance-preview {
  position: relative;
  z-index: 1;
}

.balance-main {
  flex: 1;
  min-width: 0;
}

.balance-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 6px;
}

.balance-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}

.balance-amount > span:first-child {
  font-size: clamp(34px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.balance-currency {
  font-size: 16px;
  font-weight: 700;
  color: var(--a1);
  letter-spacing: 0.02em;
}

.balance-rub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.balance-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: color-mix(in srgb, var(--a1) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--a1) 32%, transparent);
  border-radius: var(--radius-lg);
  animation: previewIn 0.25s var(--ease);
}

.balance-preview[hidden] { display: none; }

.balance-preview-arrow {
  color: var(--a1);
  font-size: 14px;
  opacity: 0.7;
}

.balance-preview-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 2px;
}

.balance-preview-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}

.balance-preview-amount .balance-currency {
  font-size: 12px;
}

@keyframes previewIn {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* === RATE STRIP === */
.rate-strip {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 22px;
  background: var(--bg-elev-1);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
}

.rate-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rate-stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.rate-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.rate-stat-unit {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}

.rate-stat.highlight .rate-stat-value {
  color: var(--a1);
}

.rate-divider {
  width: 1px;
  height: 28px;
  background: var(--stroke);
  margin: 0 14px;
}

/* === USAGE CHIPS === */
.usage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-elev-1);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1;
}

.chip i {
  color: var(--text-3);
  font-size: 11px;
}

/* === PAYMENT FORM CARD === */
.payment-form-card {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.form-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* === QUICK AMOUNTS (radio cards) === */
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

.quick-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 12px;
  background: var(--bg-elev-1);
  border: 1.5px solid var(--stroke);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.18s var(--ease),
              background 0.18s var(--ease),
              transform 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
  font-family: inherit;
}

.quick-btn:hover {
  border-color: var(--stroke-strong);
  background: var(--bg-elev-2);
  transform: translateY(-1px);
}

.quick-btn.active,
.quick-btn[aria-checked="true"] {
  border-color: var(--a1);
  background: color-mix(in srgb, var(--a1) 12%, var(--bg-elev-1));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1) 18%, transparent),
              0 8px 24px color-mix(in srgb, var(--a1) 22%, transparent);
}

.quick-btn.popular {
  border-color: color-mix(in srgb, var(--a1) 50%, var(--stroke));
}

.popular-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--a1), color-mix(in srgb, var(--a1) 60%, var(--a3)));
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--a1) 35%, transparent);
}

.quick-rub {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.quick-arc {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.4;
}

/* === CUSTOM AMOUNT === */
.custom-amount-section {
  margin-bottom: 22px;
}

.input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.amount-input {
  width: 100%;
  padding: 16px 50px 16px 18px;
  background: var(--bg-elev-1);
  border: 1.5px solid var(--stroke);
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  -moz-appearance: textfield;
  appearance: textfield;
  font-family: inherit;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.amount-input::placeholder {
  color: var(--text-3);
  font-weight: 500;
}

.amount-input:focus {
  outline: none;
  border-color: var(--a1);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--a1) 18%, transparent);
}

.input-suffix {
  position: absolute;
  right: 18px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-3);
  pointer-events: none;
}

.input-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* === CALCULATOR === */
.calculator {
  background: var(--bg-elev-1);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 4px 16px;
  margin-bottom: 22px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--stroke);
}

.calc-row:last-child {
  border-bottom: none;
}

.calc-label {
  font-size: 13px;
  color: var(--text-3);
}

.calc-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.calc-row.highlight .calc-value {
  font-size: 17px;
  color: var(--a1);
}

/* === PAYMENT METHODS === */
.payment-methods {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-top: 4px;
  flex-wrap: wrap;
}

.methods-label {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

.methods-row {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.method-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-elev-1);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  cursor: default;
}

.method-chip i {
  font-size: 11px;
  color: var(--text-3);
}

/* === AGREEMENT === */
.agreement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
  cursor: pointer;
}

.agreement input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--stroke-strong);
  border-radius: 7px;
  background: var(--bg-elev-1);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
  position: relative;
  margin-top: 1px;
}

.checkbox-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease);
}

.agreement input:checked + .checkbox-custom {
  background: var(--a1);
  border-color: var(--a1);
}

.agreement input:checked + .checkbox-custom::after {
  transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.agreement input:focus-visible + .checkbox-custom {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1) 30%, transparent);
}

.checkbox-text {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--a1);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-text a:hover {
  text-decoration: underline;
}

/* === PAY BUTTON === */
.pay-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--a1), color-mix(in srgb, var(--a1) 65%, var(--a2)));
  border: none;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), opacity 0.18s var(--ease);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.pay-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--a1) 32%, transparent);
}

.pay-btn:active:not(:disabled) {
  transform: translateY(0);
}

.pay-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pay-btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === ERROR === */
.error-message {
  margin-top: 14px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--error) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--error) 35%, transparent);
  border-radius: var(--radius-md);
  color: var(--error);
  font-size: 13px;
  text-align: center;
}

/* === HISTORY === */
.history-card {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.history-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.history-list::-webkit-scrollbar { width: 6px; }
.history-list::-webkit-scrollbar-thumb {
  background: var(--stroke);
  border-radius: 3px;
}

.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 12px;
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
}

.history-empty-icon {
  font-size: 28px;
  opacity: 0.4;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-elev-1);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: border-color 0.18s var(--ease);
}

.history-item:hover {
  border-color: var(--stroke);
}

.history-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.history-item-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  flex-shrink: 0;
}

.history-item-icon.deposit {
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
}

.history-item-icon.adjustment {
  background: color-mix(in srgb, var(--warning) 18%, transparent);
  color: var(--warning);
}

.history-item-icon.purchase,
.history-item-icon.usage {
  background: color-mix(in srgb, var(--text-3) 14%, transparent);
  color: var(--text-2);
}

.history-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.history-item-type {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.history-item-date {
  font-size: 11px;
  color: var(--text-3);
}

.history-item-desc {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.35;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  flex-shrink: 0;
}

.history-item-amount {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.history-item-amount.positive { color: var(--success); }
.history-item-amount.negative { color: var(--error); }

.history-item-status {
  font-size: 11px;
  color: var(--text-3);
}

.history-item-balance {
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* === SECURITY CARD === */
.security-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  background: color-mix(in srgb, var(--success) 8%, var(--bg-elev-1));
  border: 1px solid color-mix(in srgb, var(--success) 25%, var(--stroke));
  border-radius: var(--radius-lg);
}

.security-icon {
  font-size: 22px;
  color: var(--success);
  margin-top: 2px;
  flex-shrink: 0;
}

.security-body { flex: 1; }

.security-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.security-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.security-list li {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.security-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--text-3);
  font-weight: 700;
}

.security-list strong {
  color: var(--text);
  font-weight: 600;
}

/* === BACK LINK === */
.back-link {
  text-align: center;
  margin-top: 4px;
}

.back-link .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* === MODALS === */
.success-modal,
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 8, 17, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

.success-modal[hidden],
.auth-modal[hidden] {
  display: none !important;
}

.success-dialog,
.auth-dialog {
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 420px;
  width: calc(100% - 40px);
  margin: 20px;
  box-shadow: var(--shadow);
}

.success-dialog {
  text-align: center;
  padding: 44px 36px;
}

.success-icon {
  font-size: 56px;
  color: var(--success);
  margin-bottom: 18px;
  line-height: 1;
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.success-text {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 22px;
}

.success-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-elev-1);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 12px;
}

.success-loader .spinner {
  border-color: color-mix(in srgb, var(--a1) 30%, transparent);
  border-top-color: var(--a1);
  width: 12px;
  height: 12px;
  border-width: 2px;
}

.auth-dialog-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-header h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.auth-info {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form-row label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-form-row input {
  padding: 12px 14px;
  background: var(--bg-elev-1);
  border: 1.5px solid var(--stroke);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  font-family: inherit;
}

.auth-form-row input:focus {
  outline: none;
  border-color: var(--a1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--a1) 20%, transparent);
}

.auth-actions {
  display: flex;
  justify-content: stretch;
}

.auth-actions .btn-primary {
  width: 100%;
  padding: 12px 20px;
}

.auth-status {
  font-size: 13px;
  text-align: center;
  color: var(--text-3);
  min-height: 18px;
}

.auth-status.error { color: var(--error); }
.auth-status.success { color: var(--success); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  background: var(--bg-elev-1);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  background: var(--bg-elev-2);
  border-color: var(--stroke-strong);
}

.btn-primary {
  background: linear-gradient(135deg, var(--a1), color-mix(in srgb, var(--a1) 65%, var(--a2)));
  border-color: transparent;
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.05);
  border-color: transparent;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  background: var(--bg-elev-1);
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  background: var(--glass-bg-soft);
  border-bottom: 1px solid var(--stroke);
}

.nav-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elev-2);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--text-3);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.18s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.btn-icon-glyph { line-height: 1; }

/* === TOAST === */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 18px;
  background: var(--card-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: toastIn 0.28s var(--ease);
  pointer-events: auto;
  max-width: 360px;
}

.toast.success {
  border-color: color-mix(in srgb, var(--success) 40%, transparent);
  background: color-mix(in srgb, var(--success) 10%, var(--card-bg));
}

.toast.error {
  border-color: color-mix(in srgb, var(--error) 40%, transparent);
  background: color-mix(in srgb, var(--error) 10%, var(--card-bg));
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 720px) {
  .payment-page {
    padding: calc(var(--nav-h) + 20px) 12px 60px;
  }

  .payment-container { gap: 14px; }

  .balance-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .balance-preview {
    align-self: stretch;
  }

  .rate-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 18px;
  }

  .rate-divider { display: none; }
  .rate-stat { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }

  .quick-amounts {
    grid-template-columns: repeat(2, 1fr);
  }

  .payment-form-card { padding: 22px 18px; }

  .history-card { padding: 18px; }

  .nav-links { display: none; }

  .nav-inner { padding: 0 16px; }
}

@media (max-width: 420px) {
  .quick-amounts { grid-template-columns: 1fr; }
  .payment-methods { gap: 8px; }
  .methods-label { display: none; }
}
