:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-inner: #1a1a24;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(168, 85, 247, 0.25);
  --purple: #a855f7;
  --purple-dark: #7c3aed;
  --purple-glow: rgba(168, 85, 247, 0.15);
  --indigo: #6366f1;
  --discord: #5865f2;
  --pink: #d946a6;
  --pink-dark: #be185d;
  --pink-glow: rgba(217, 70, 166, 0.15);
  --text: #f4f4f5;
  --text-muted: #71717a;
  --success: #22c55e;
  --warning: #eab308;
  --danger: #ef4444;
  --radius: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ── Intro ── */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.intro.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.intro-glow-1 { width: 400px; height: 400px; background: rgba(168,85,247,0.2); top: -10%; left: -5%; animation: float 6s ease-in-out infinite; }
.intro-glow-2 { width: 350px; height: 350px; background: rgba(99,102,241,0.15); bottom: -10%; right: -5%; animation: float 6s ease-in-out infinite reverse; }

@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-20px); } }

.intro-content { text-align: center; z-index: 1; }
.intro-logo { margin-bottom: 1.5rem; animation: fadeUp 0.8s ease; }
.intro-title {
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: fadeUp 0.8s ease 0.2s both;
}
.intro-sub { color: var(--text-muted); font-size: 1.1rem; margin-top: 0.5rem; animation: fadeUp 0.8s ease 0.4s both; }
.intro-loader { display: flex; gap: 6px; justify-content: center; margin-top: 2rem; animation: fadeUp 0.8s ease 0.6s both; }
.intro-loader span { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); animation: bounce 1.4s ease-in-out infinite; }
.intro-loader span:nth-child(2) { animation-delay: 0.2s; }
.intro-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%,80%,100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

/* ── Login ── */
.page { min-height: 100vh; }

.login-bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(168,85,247,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, rgba(99,102,241,0.1) 0%, transparent 50%),
    var(--bg);
}

.login-card {
  position: relative; z-index: 1;
  max-width: 520px; margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}

.login-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.1rem; color: var(--text-muted); margin-bottom: 2rem;
}
.login-brand strong { color: var(--text); font-weight: 700; }

.login-card > h2 {
  font-size: 1.75rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.75rem;
}

.login-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 2rem; }

.login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.login-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.login-hint { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

.btn-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  width: 100%; padding: 0.875rem 1.5rem;
  background: var(--discord); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-discord:hover { background: #4752c4; transform: translateY(-1px); }

.login-legal { margin-top: 1.25rem; font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }
.login-legal a { color: var(--purple); text-decoration: none; }
.login-legal a:hover { text-decoration: underline; }

/* ── Dashboard Layout ── */
#dashboard-page { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px; min-height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1.5rem 1.25rem;
  font-size: 1rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.sidebar-brand strong { color: var(--text); }

.sidebar-nav { flex: 1; padding: 1rem 0.75rem; display: flex; flex-direction: column; gap: 0.25rem; }

.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: none; border: none; border-radius: var(--radius);
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s; text-align: left; width: 100%;
}
.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.nav-item.active { background: var(--purple-glow); color: var(--purple); }

.sidebar-user {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.sidebar-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.sidebar-username { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.btn-logout { background: none; border: none; color: var(--text-muted); font-size: 0.75rem; cursor: pointer; padding: 0; margin-top: 2px; }
.btn-logout:hover { color: var(--danger); }

.main { flex: 1; margin-left: 260px; padding: 0 2rem 2rem; min-height: 100vh; }

/* ── Topbar ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0; margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 50;
}

.breadcrumb { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.875rem; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }

.balance-chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.875rem; font-weight: 600;
}

.profile-chip {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.875rem; font-weight: 500;
}
.profile-chip img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* ── Content ── */
.page-header { margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
.page-header p { color: var(--text-muted); font-size: 0.9rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }

.stat-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-hover); }

.stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--purple-glow); color: var(--purple);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.15rem; }
.stat-value { font-size: 1.1rem; font-weight: 700; }
.stat-value.purple { color: var(--purple); }

.table-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.table-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.table-header h2 { font-size: 1.1rem; font-weight: 700; }
.table-header p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.15rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th {
  text-align: left; padding: 0.875rem 1.25rem;
  color: var(--text-muted); font-weight: 500; font-size: 0.8rem;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

.status-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.75rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.status-badge.active { background: rgba(34,197,94,0.15); color: var(--success); }

.btn-manage {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--purple); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.btn-manage:hover { background: var(--purple-dark); }

.btn-renew {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(34,197,94,0.15); color: var(--success);
  border: 1px solid rgba(34,197,94,0.3); border-radius: var(--radius);
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.btn-renew:hover { background: rgba(34,197,94,0.25); }

.empty-state { padding: 3rem; text-align: center; color: var(--text-muted); }

/* ── Forms ── */
.form-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; max-width: 520px;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--text-muted); }
.form-group input, .form-group select {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg-card-inner); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.9rem;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--purple); }
.form-group input:disabled { opacity: 0.5; }

.btn-primary {
  padding: 0.75rem 1.5rem;
  background: var(--purple); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--purple-dark); }

.payment-methods { display: flex; flex-direction: column; gap: 0.75rem; }
.payment-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card-inner); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  cursor: pointer; transition: all 0.15s; text-align: left; width: 100%;
}
.payment-btn:hover { border-color: var(--purple); background: var(--purple-glow); }
.payment-btn small { color: var(--text-muted); font-size: 0.75rem; }
.payment-icon { font-size: 1.25rem; margin-bottom: 0.25rem; }

.pull-result { margin-top: 1rem; padding: 1rem; border-radius: var(--radius); background: var(--purple-glow); font-size: 0.875rem; }

/* ── Modals ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto;
}
.modal h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.modal p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }

.warning-box {
  background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.3);
  border-radius: var(--radius); padding: 0.875rem 1rem;
  color: var(--warning); font-size: 0.85rem; margin-bottom: 1rem; line-height: 1.5;
}

.note-box {
  background: var(--bg-card-inner); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.875rem 1rem;
  font-family: monospace; font-size: 1rem; text-align: center;
  color: var(--purple); margin: 1rem 0; font-weight: 600;
}

.modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.modal-actions button { flex: 1; padding: 0.75rem; border-radius: var(--radius); font-weight: 600; font-size: 0.875rem; cursor: pointer; border: none; }
.btn-modal-primary { background: var(--purple); color: #fff; }
.btn-modal-primary:hover { background: var(--purple-dark); }
.btn-modal-secondary { background: var(--bg-card-inner); color: var(--text); border: 1px solid var(--border) !important; }
.btn-modal-discord { background: var(--discord); color: #fff; }

.paysafe-input { margin-bottom: 0.5rem; }
.paysafe-input input { width: 100%; padding: 0.75rem; background: var(--bg-card-inner); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: monospace; }

.checkbox-row { display: flex; align-items: flex-start; gap: 0.75rem; margin: 1rem 0; }
.checkbox-row input { margin-top: 3px; accent-color: var(--purple); }
.checkbox-row label { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.server-detail-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.server-detail-row:last-child { border-bottom: none; }
.server-detail-row span:first-child { color: var(--text-muted); }

@media (max-width: 768px) {
  .sidebar { width: 100%; position: relative; min-height: auto; }
  .main { margin-left: 0; padding: 0 1rem 1rem; }
  #dashboard-page { flex-direction: column; }
  .topbar { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

/* ── Selection Page ── */
.selection-bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(217,70,166,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(168,85,247,0.12) 0%, transparent 50%),
    var(--bg);
  z-index: 0;
}

.selection-container {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}

.selection-header {
  text-align: center; margin-bottom: 3rem;
}

.selection-header h1 {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.selection-header p {
  color: var(--text-muted); font-size: 1.1rem;
}

.selection-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; margin-bottom: 2rem;
}

.selection-button-wrapper {
  display: flex; flex-direction: column; gap: 0.75rem;
}

.selection-card {
  padding: 2rem; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border);
  text-align: center; cursor: pointer;
  transition: all 0.3s ease;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 1rem;
}

.selection-card:hover {
  border-color: var(--pink);
  background: var(--pink-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(217,70,166,0.2);
}

.selection-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.selection-card:disabled:hover {
  border-color: var(--border);
  background: var(--bg-card);
  transform: none;
  box-shadow: none;
}

.button-disabled-reason {
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.5;
}

.button-disabled-reason.hidden {
  display: none;
}

.selection-icon {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

.selection-card h3 {
  font-size: 1.3rem; font-weight: 700; line-height: 1.3;
  color: var(--text); margin: 0;
}

.selection-card p {
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0;
}

.btn-logout-selection {
  align-self: center;
  padding: 0.75rem 2rem;
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
}

.btn-logout-selection:hover {
  border-color: var(--danger); color: var(--danger);
}

/* ── Leak Panel ── */
#leak-panel-page {
  display: flex; flex-direction: column; min-height: 100vh;
}

.leak-panel-header {
  background: linear-gradient(135deg, rgba(217,70,166,0.1) 0%, rgba(168,85,247,0.05) 100%);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky; top: 0; z-index: 50;
}

.leak-header-content {
  max-width: 1600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap;
}

.leak-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 1.1rem; color: var(--text); font-weight: 700;
}

.leak-logo strong { background: linear-gradient(135deg, var(--pink), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.leak-controls {
  display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 300px;
}

.leak-search {
  display: flex; align-items: center; gap: 0.5rem; flex: 1;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem 1rem;
}

.leak-search input {
  flex: 1; background: none; border: none; color: var(--text);
  font-size: 0.9rem; outline: none;
}

.leak-search svg { color: var(--text-muted); }

.leak-btn {
  padding: 0.6rem 1.2rem; border-radius: var(--radius);
  border: none; cursor: pointer; font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

.leak-btn-filter {
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
}

.leak-btn-filter:hover {
  border-color: var(--pink); background: var(--pink-glow);
}

.leak-btn-new, .leak-btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
}

.leak-btn-new:hover, .leak-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.leak-btn-download-go {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff; padding: 0.75rem 2rem;
}

.leak-user-info {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--text-muted);
}

.leak-user-info img {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
}

.leak-main {
  flex: 1; max-width: 1600px; margin: 0 auto; width: 100%;
  padding: 2rem 1.5rem;
}

.leak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.leak-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s ease; cursor: pointer;
  display: flex; flex-direction: column;
}

.leak-card:hover {
  border-color: var(--pink); transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(217,70,166,0.2);
}

.leak-card-booster {
  border-color: rgba(217,70,166,0.5);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(217,70,166,0.05) 100%);
}

.leak-card-image {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: var(--bg-card-inner); overflow: hidden;
}

.leak-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}

.leak-card:hover .leak-card-image img {
  transform: scale(1.05);
}

.leak-badge {
  position: absolute; top: 0.5rem; right: 0.5rem;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(217,70,166,0.9); color: #fff;
  font-size: 0.7rem; font-weight: 700; backdrop-filter: blur(10px);
}

.leak-badge-public {
  background: rgba(99,102,241,0.8);
}

.leak-card-content {
  padding: 1rem; display: flex; flex-direction: column; flex: 1;
}

.leak-card-category {
  font-size: 0.7rem; font-weight: 700;
  color: var(--pink); text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.leak-card-content h3 {
  font-size: 0.95rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 0.5rem;
  color: var(--text);
}

.leak-card-content p {
  font-size: 0.8rem; color: var(--text-muted);
  line-height: 1.4; flex: 1; margin-bottom: 0.75rem;
}

.leak-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
}

.leak-card-leaker {
  font-size: 0.75rem; color: var(--text-muted); white-space: nowrap;
}

.leak-btn-download {
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff; border: none; border-radius: var(--radius);
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}

.leak-btn-download:hover {
  filter: brightness(1.1);
}

.leak-empty-state {
  text-align: center; padding: 3rem;
  color: var(--text-muted); font-size: 1rem;
}

.btn-back-to-selection {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff; border: none; font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(217,70,166,0.3);
  z-index: 100;
}

.btn-back-to-selection:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,70,166,0.4);
}

/* ── Download Countdown ── */
.countdown-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}

.countdown-card {
  text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 3rem 2rem;
  max-width: 300px;
}

.countdown-card h2 { font-size: 1.5rem; margin-bottom: 2rem; font-weight: 700; }

.countdown-circle {
  position: relative; width: 140px; height: 140px;
  margin: 0 auto 1.5rem; display: flex;
  align-items: center; justify-content: center;
}

.countdown-number {
  font-size: 2.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  position: relative; z-index: 2;
}

.countdown-svg {
  position: absolute; inset: 0; transform: rotate(-90deg);
}

.countdown-ring {
  animation: countdown-fill 10s linear forwards;
  stroke-dasharray: 282;
  stroke-dashoffset: 282;
}

@keyframes countdown-fill {
  from { stroke-dashoffset: 282; }
  to { stroke-dashoffset: 0; }
}

.countdown-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Download Ready Page ── */
.download-ready-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}

.download-ready-card {
  text-align: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 3rem 2rem;
  max-width: 400px;
}

.download-ready-icon {
  font-size: 3.5rem; margin-bottom: 1rem;
  color: var(--success);
}

.download-ready-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; }

.download-ready-card p {
  color: var(--text-muted); font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.download-ready-card .leak-btn-download-go {
  width: 100%; margin-bottom: 0.75rem;
}

.btn-secondary {
  width: 100%; padding: 0.6rem 1.2rem;
  background: var(--bg-card-inner); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; font-weight: 600; font-size: 0.9rem;
}

.btn-secondary:hover {
  border-color: var(--text); background: rgba(255,255,255,0.05);
}

/* ── Booster Page ── */
.booster-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}

.booster-card {
  text-align: center;
  background: linear-gradient(135deg, var(--pink-glow) 0%, var(--purple-glow) 100%);
  border: 1px solid rgba(217,70,166,0.3);
  border-radius: var(--radius-lg); padding: 3rem 2rem;
  max-width: 450px;
}

.booster-icon {
  font-size: 3rem; margin-bottom: 1rem;
}

.booster-card h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }

.booster-card p { color: var(--text); font-size: 0.95rem; margin-bottom: 0.75rem; }

.booster-message {
  font-size: 1.1rem; font-weight: 500; color: var(--text);
  margin: 1rem 0;
}

.booster-countdown {
  color: var(--text-muted); font-size: 0.85rem; margin-top: 1rem;
}

/* ── Filter Modal ── */
.filter-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}

.filter-modal.hidden { display: none; }

.filter-modal-content {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 350px; width: 100%;
}

.filter-modal-content h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }

.filter-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; max-height: 400px; overflow-y: auto; }

.filter-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: var(--radius);
  background: var(--bg-card-inner); cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.filter-item:hover {
  background: var(--pink-glow); border-color: var(--pink);
}

.filter-item input { accent-color: var(--pink); cursor: pointer; }

.filter-buttons { display: flex; gap: 0.75rem; }

.filter-buttons button {
  flex: 1; padding: 0.6rem;
  border: none; border-radius: var(--radius);
  cursor: pointer; font-weight: 600; font-size: 0.85rem;
}

#btn-filter-apply {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
}

/* ── New Leak Modal ── */
.new-leak-modal {
  max-height: 85vh; overflow-y: auto;
}

.new-leak-modal h3 {
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.new-leak-modal .form-group {
  margin-bottom: 1.25rem;
}

.new-leak-modal label {
  display: block; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; color: var(--pink);
  margin-bottom: 0.5rem; letter-spacing: 0.5px;
}

.new-leak-modal input, .new-leak-modal select, .new-leak-modal textarea {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg-card-inner); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.9rem; font-family: inherit;
}

.new-leak-modal input:focus, .new-leak-modal select:focus, .new-leak-modal textarea:focus {
  outline: none; border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(217,70,166,0.1);
}

.new-leak-modal textarea {
  resize: vertical; min-height: 80px;
}

.image-upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--bg-card-inner);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem;
}

.image-upload-area:hover {
  border-color: var(--pink); background: var(--pink-glow);
}

.image-upload-area svg { color: var(--text-muted); }

.image-upload-area p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

.checkbox-group {
  display: flex; flex-direction: column; gap: 0.75rem;
  margin: 1.5rem 0;
}

.checkbox-group label {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; text-transform: none; color: var(--text);
  cursor: pointer; font-weight: 500;
}

.checkbox-group input[type="checkbox"] {
  width: auto; accent-color: var(--pink);
}

.btn-leak-panel-switch {
  width: 100%;
  padding: 0.75rem; margin-top: 1rem;
  background: var(--pink-glow); color: var(--pink);
  border: 1px solid rgba(217,70,166,0.3); border-radius: var(--radius);
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
  transition: all 0.2s;
}

.btn-leak-panel-switch:hover {
  background: var(--pink); color: #fff; border-color: var(--pink);
}

#link-warning {
  display: block !important; color: var(--danger);
  font-size: 0.8rem; margin-top: 0.35rem;
}
