/* ==========================================================================
   DONATE PAGE — DESIGN SYSTEM
   ========================================================================== */
:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-input: #0d0d0d;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(30, 95, 158, 0.4);
  --primary: #1E5F9E;
  --primary-hover: #2772bf;
  --accent: #297acc;
  --accent-light: #4395ec;
  --text: #f0f2f5;
  --text-muted: #8b95a5;
  --text-dim: #555d6e;
  --success: #22c55e;
  --error: #ef4444;
  --gold: #f59e0b;
  --silver: #94a3b8;
  --bronze: #cd7f32;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #1a1a1a #0a0a0a;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: #60a5fa; }

img { max-width: 100%; height: auto; }

/* ==========================================================================
   AMBIENT BACKGROUND
   ========================================================================== */
.donate-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.donate-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.donate-bg-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(30, 95, 158, 0.15), transparent 70%);
  top: -200px;
  right: -100px;
  animation: driftGlow 18s ease-in-out infinite alternate;
}

.donate-bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(41, 122, 204, 0.1), transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: driftGlow 22s ease-in-out infinite alternate-reverse;
}

.donate-bg-glow-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(30, 95, 158, 0.08), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: driftGlow 14s ease-in-out infinite alternate;
}

@keyframes driftGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(40px, 20px) scale(1.15); opacity: 1; }
}

.donate-bg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
.donate-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.donate-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.donate-logo {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.donate-logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.donate-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.donate-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.donate-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.donate-nav a:hover,
.donate-nav a.active {
  color: #fff;
}

.donate-nav-discord {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: 8px;
  color: #7289da !important;
  font-size: 13px !important;
}

.donate-nav-discord:hover {
  background: rgba(88, 101, 242, 0.2);
  color: #98aef3 !important;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.donate-hero {
  text-align: center;
  padding: 64px 0 32px;
}

.donate-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(30, 95, 158, 0.1);
  border: 1px solid rgba(30, 95, 158, 0.25);
  border-radius: 9999px;
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-title);
  margin-bottom: 20px;
}

.donate-hero-title {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-light), var(--primary), var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.donate-hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================================================
   LAYOUT (2 columns: form + sidebar)
   ========================================================================== */
.donate-main {
  padding: 0 0 80px;
}

.donate-layout {
  display: flex;
  justify-content: center;
  align-items: start;
}

/* ==========================================================================
   FORM PANEL
   ========================================================================== */
.donate-form-panel {
  width: 100%;
  max-width: 760px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Tabs */
.donate-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.donate-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
}

.donate-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.donate-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.donate-tab.active {
  color: #fff;
}

.donate-tab.active::after {
  transform: scaleX(1);
}

.donate-tab svg {
  opacity: 0.6;
}

.donate-tab.active svg {
  opacity: 1;
  stroke: var(--accent-light);
}

/* Tab panes */
.donate-tab-pane {
  display: none;
  padding: 28px;
}

.donate-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* ==========================================================================
   FORM FIELDS
   ========================================================================== */
.donate-field {
  margin-bottom: 20px;
}

.donate-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.donate-field label svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.donate-label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}

.donate-field input[type="text"],
.donate-field input[type="email"],
.donate-field input[type="number"],
.donate-field select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.donate-field input:focus,
.donate-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 95, 158, 0.15);
}

.donate-field input::placeholder {
  color: var(--text-dim);
}

.donate-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Input with action button */
.donate-input-action {
  display: flex;
  gap: 8px;
}

.donate-input-action input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.donate-input-action input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 95, 158, 0.15);
}

.donate-btn-verify {
  padding: 10px 20px;
  background: rgba(30, 95, 158, 0.15);
  border: 1px solid rgba(30, 95, 158, 0.3);
  border-radius: var(--radius-md);
  color: var(--accent-light);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s var(--ease);
}

.donate-btn-verify:hover {
  background: rgba(30, 95, 158, 0.25);
  border-color: rgba(30, 95, 158, 0.5);
  transform: translateY(-1px);
}

/* Remove native number input spin buttons */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Input with suffix (₽) */
.donate-input-suffix {
  position: relative;
}

.donate-input-suffix input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.donate-input-suffix input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 95, 158, 0.15);
}

.donate-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-weight: 600;
  pointer-events: none;
}

/* Quick amounts */
.donate-quick-amounts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.donate-quick-amounts button {
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.donate-quick-amounts button:hover {
  background: rgba(30, 95, 158, 0.1);
  border-color: rgba(30, 95, 158, 0.3);
  color: var(--text);
}

.donate-quick-amounts button.active {
  background: rgba(30, 95, 158, 0.2);
  border-color: var(--primary);
  color: #fff;
}

/* Verification Status */
.donate-verify-status,
.donate-promo-status {
  display: none;
  font-size: 12px;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.donate-verify-status.success,
.donate-promo-status.success {
  display: block;
  color: var(--success);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.donate-verify-status.error,
.donate-promo-status.error {
  display: block;
  color: var(--error);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   CUSTOM SELECT UI
   ========================================================================== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: all 0.25s var(--ease);
}

.custom-select-trigger:hover,
.custom-select-trigger:focus,
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--primary);
  background: #111111;
  box-shadow: 0 0 0 3px rgba(30, 95, 158, 0.2);
}

.custom-select-value {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.custom-select-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.custom-select-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-select-price {
  padding: 3px 10px;
  background: rgba(30, 95, 158, 0.2);
  border: 1px solid rgba(30, 95, 158, 0.35);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-light);
}

.custom-select-arrow {
  color: var(--text-dim);
  transition: transform 0.25s var(--ease);
}

.custom-select-wrapper.open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--accent-light);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  padding: 6px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  backdrop-filter: blur(12px);
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.custom-select-option:hover {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.08);
}

.custom-select-option.selected {
  background: rgba(30, 95, 158, 0.2);
  border: 1px solid rgba(30, 95, 158, 0.45);
}

.custom-option-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.custom-option-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ==========================================================================
   CALCULATOR WIDGET
   ========================================================================== */
.donate-calc {
  background: rgba(30, 95, 158, 0.06);
  border: 1px solid rgba(30, 95, 158, 0.15);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.donate-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.donate-calc-row span { color: var(--text-muted); }
.donate-calc-row strong { color: var(--text); }

.donate-calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

.donate-calc-highlight {
  padding: 10px 0 6px;
}

.donate-calc-highlight strong {
  font-size: 20px;
  background: linear-gradient(135deg, var(--accent-light), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.donate-calc-bonus { display: flex; }

.donate-bonus-tag {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success) !important;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}

/* ==========================================================================
   PAYMENT METHOD SELECTOR
   ========================================================================== */
.donate-payment-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.donate-payment-method.active {
  border-color: var(--primary);
  background: rgba(30, 95, 158, 0.06);
}

.donate-pm-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 95, 158, 0.12);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  flex-shrink: 0;
}

.donate-pm-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.donate-pm-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.donate-pm-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.donate-pm-check {
  color: var(--success);
  opacity: 0;
  transition: opacity 0.2s;
}

.donate-payment-method.active .donate-pm-check {
  opacity: 1;
}

/* ==========================================================================
   PACKAGE DETAILS CARD
   ========================================================================== */
.donate-pkg-details {
  background: rgba(30, 95, 158, 0.06);
  border: 1px solid rgba(30, 95, 158, 0.15);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.donate-pkg-details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.donate-pkg-details h4 {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--text);
}

.donate-pkg-price-badge {
  padding: 4px 12px;
  background: rgba(30, 95, 158, 0.2);
  border: 1px solid rgba(30, 95, 158, 0.3);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light);
}

.donate-pkg-details p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CHECKBOX & DISCLAIMER
   ========================================================================== */
.donate-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.donate-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.donate-checkbox-row label {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  cursor: pointer;
}

.donate-checkbox-row a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(67, 149, 236, 0.3);
  text-underline-offset: 2px;
}

.donate-disclaimer {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

/* ==========================================================================
   SUBMIT BUTTON
   ========================================================================== */
.donate-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.donate-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
}

.donate-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 95, 158, 0.35);
}

.donate-submit-btn:hover::before {
  transform: translateX(100%);
}

.donate-submit-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.donate-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

.donate-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.donate-sidebar-card h3 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.donate-sidebar-card h3 svg {
  color: var(--accent-light);
  opacity: 0.8;
}

/* VIP Tiers */
.donate-vip-tiers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.donate-vip-tier {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
}

.donate-vip-tier:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-1px);
}

.donate-vip-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.donate-vip-tier-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
}

.donate-vip-bronze .donate-vip-tier-name { color: var(--bronze); }
.donate-vip-silver .donate-vip-tier-name { color: var(--silver); }
.donate-vip-gold .donate-vip-tier-name { color: var(--gold); }

.donate-vip-bronze { border-color: rgba(205, 127, 50, 0.15); }
.donate-vip-silver { border-color: rgba(148, 163, 184, 0.15); }
.donate-vip-gold { border-color: rgba(245, 158, 11, 0.2); background: rgba(245, 158, 11, 0.03); }

.donate-vip-tier-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
}

.donate-vip-tier ul {
  list-style: none;
  padding: 0;
}

.donate-vip-tier li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 0;
  padding-left: 16px;
  position: relative;
}

.donate-vip-tier li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateY(-50%);
}

.donate-vip-bronze li::before { background: var(--bronze); opacity: 0.5; }
.donate-vip-silver li::before { background: var(--silver); opacity: 0.5; }
.donate-vip-gold li::before { background: var(--gold); opacity: 0.7; }

/* Bonus Tiers */
.donate-bonus-tiers {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.donate-bonus-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.donate-bonus-tier-amount {
  font-size: 13px;
  color: var(--text-muted);
}

.donate-bonus-tier-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}

.donate-bonus-tier-pct.highlight {
  color: var(--gold);
}

.donate-sidebar-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.5;
}

/* Security Card */
.donate-security-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donate-security-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.donate-security-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.08);
  border-radius: var(--radius-sm);
  color: var(--success);
  flex-shrink: 0;
}

.donate-security-item strong {
  font-size: 13px;
  color: var(--text);
  display: block;
}

.donate-security-item span {
  font-size: 11px;
  color: var(--text-dim);
}

/* FAQ */
.donate-faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.donate-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.donate-faq-item[open] {
  border-color: var(--border-hover);
}

.donate-faq-item summary {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.donate-faq-item summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.donate-faq-item summary::after {
  content: '+';
  color: var(--text-dim);
  font-size: 16px;
  font-weight: 400;
  flex-shrink: 0;
}

.donate-faq-item[open] summary::after {
  content: '−';
  color: var(--accent-light);
}

.donate-faq-item summary::-webkit-details-marker {
  display: none;
}

.donate-faq-item p {
  padding: 0 14px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.donate-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.donate-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.donate-footer-left p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

.donate-footer-disclaimer {
  max-width: 400px;
}

.donate-footer-devs {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-dim);
}

.donate-footer-devs a {
  color: var(--accent-light);
  font-weight: 600;
}

.donate-footer-devs a:hover {
  color: #60a5fa;
}

.donate-logo-footer {
  font-size: 16px !important;
}

.donate-footer-links {
  display: flex;
  gap: 24px;
}

.donate-footer-links a {
  font-size: 12px;
  color: var(--text-dim);
}

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

/* ==========================================================================
   MODAL
   ========================================================================== */
.donate-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.donate-modal.active {
  display: flex;
}

.donate-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.donate-modal-content h3 {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
}

.donate-modal-content p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.donate-modal-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(30, 95, 158, 0.15);
  border-radius: 50%;
  border-top-color: var(--primary);
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

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

.donate-modal-close-btn {
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.donate-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .donate-layout {
    grid-template-columns: 1fr;
  }

  .donate-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .donate-hero-title {
    font-size: 30px;
  }

  .donate-nav {
    display: none;
  }

  .donate-tab-pane {
    padding: 20px;
  }

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

  .donate-footer-inner {
    flex-direction: column;
    gap: 20px;
  }

  .donate-footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .donate-hero-title {
    font-size: 26px;
  }

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

  .donate-tab-pane {
    padding: 16px;
  }

  .donate-sidebar-card {
    padding: 18px;
  }
}
