/* ===========================
   CRYPTO STAKING PLATFORM
   Neon Space Theme - Dashboard
   =========================== */

:root {
  --csp-bg: #050816;
  --csp-bg-2: #0a0f24;
  --csp-surface: rgba(15, 22, 48, 0.7);
  --csp-surface-2: rgba(20, 28, 56, 0.85);
  --csp-border: rgba(140, 200, 255, 0.18);
  --csp-border-bright: rgba(140, 200, 255, 0.4);
  --csp-text: #e6f0ff;
  --csp-muted: #8a96b8;
  --csp-neon: #ffffff;
  --csp-neon-blue: #6cf0ff;
  --csp-neon-purple: #b56cff;
  --csp-neon-pink: #ff6cd4;
  --csp-glow: 0 0 18px rgba(108, 240, 255, 0.55), 0 0 38px rgba(181, 108, 255, 0.35);
  --csp-glow-soft: 0 0 12px rgba(108, 240, 255, 0.35);
  --csp-radius: 16px;
}

/* Dashboard page - body wrapper */
body.csp-dashboard-page {
  background: var(--csp-bg);
  color: var(--csp-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  margin: 0;
}

/* === SHELL === */
.csp-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.csp-mobile-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 100;
  width: 44px; height: 44px;
  background: var(--csp-surface);
  border: 1px solid var(--csp-border-bright);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(12px);
}
.csp-mobile-toggle span {
  width: 22px; height: 2px;
  background: var(--csp-neon);
  box-shadow: 0 0 8px var(--csp-neon-blue);
  transition: 0.3s;
}

/* === SIDEBAR === */
.csp-sidebar {
  background: linear-gradient(180deg, rgba(10, 15, 36, 0.95) 0%, rgba(5, 8, 22, 0.95) 100%);
  border-right: 1px solid var(--csp-border);
  padding: 28px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  backdrop-filter: blur(20px);
}

.csp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 0 8px;
}
.csp-brand-mark {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--csp-neon-blue), var(--csp-neon-purple));
  border-radius: 12px;
  font-size: 22px; font-weight: 700;
  color: #fff;
  box-shadow: var(--csp-glow);
}
.csp-brand-text {
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 0 10px var(--csp-neon-blue);
}

.csp-user-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--csp-surface);
  border: 1px solid var(--csp-border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 24px;
}
.csp-avatar {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--csp-neon-purple), var(--csp-neon-pink));
  border-radius: 50%;
  font-weight: 700; color: #fff;
  box-shadow: 0 0 12px rgba(181, 108, 255, 0.5);
}
.csp-user-name { font-weight: 600; font-size: 14px; }
.csp-balance { font-size: 12px; color: var(--csp-neon-blue); }

.csp-nav { display: flex; flex-direction: column; gap: 4px; }
.csp-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--csp-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.csp-nav-item:hover {
  background: rgba(108, 240, 255, 0.06);
  color: var(--csp-text);
}
.csp-nav-item.active {
  background: linear-gradient(90deg, rgba(108, 240, 255, 0.15), rgba(181, 108, 255, 0.05));
  border-color: var(--csp-border-bright);
  color: #fff;
  box-shadow: inset 0 0 20px rgba(108, 240, 255, 0.1);
}
.csp-nav-item.active .csp-icon {
  color: var(--csp-neon-blue);
  text-shadow: 0 0 8px var(--csp-neon-blue);
}
.csp-icon {
  width: 22px; text-align: center;
  font-size: 16px;
  font-weight: 600;
}
.csp-logout { margin-top: 12px; color: var(--csp-neon-pink); }

/* === MAIN === */
.csp-main {
  padding: 32px 36px;
  max-width: 1300px;
  width: 100%;
}
.csp-page-head { margin-bottom: 24px; }
.csp-page-head h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  background: linear-gradient(135deg, #fff 0%, var(--csp-neon-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.csp-muted { color: var(--csp-muted); margin: 0; }
.small { font-size: 12px; }

/* === CARDS === */
.csp-card {
  background: var(--csp-surface);
  border: 1px solid var(--csp-border);
  border-radius: var(--csp-radius);
  padding: 24px;
  margin-bottom: 20px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.csp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--csp-neon-blue), transparent);
  opacity: 0.5;
}
.csp-card h2 {
  font-size: 18px; font-weight: 600;
  margin: 0 0 16px; color: #fff;
}
.csp-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.csp-card-head h2 { margin: 0; }

/* === GRIDS / STATS === */
.csp-grid-3, .csp-grid-4 {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.csp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.csp-grid-4 { grid-template-columns: repeat(4, 1fr); }

.csp-stat {
  background: var(--csp-surface);
  border: 1px solid var(--csp-border);
  border-radius: var(--csp-radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}
.csp-stat:hover {
  border-color: var(--csp-border-bright);
  box-shadow: var(--csp-glow-soft);
  transform: translateY(-2px);
}
.csp-stat-label { font-size: 12px; color: var(--csp-muted); text-transform: uppercase; letter-spacing: 1px; }
.csp-stat-value {
  font-size: 28px; font-weight: 700; margin-top: 6px;
  color: #fff;
  text-shadow: 0 0 14px rgba(108, 240, 255, 0.3);
}
.csp-stat-icon {
  position: absolute; right: 18px; top: 18px;
  font-size: 26px; opacity: 0.25;
  color: var(--csp-neon-blue);
}

/* === FORMS === */
.csp-form { display: block; }
.csp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.csp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.csp-input-group { display: flex; flex-direction: column; gap: 6px; }
.csp-input-group.csp-full { grid-column: 1 / -1; }
.csp-input-group label { font-size: 12px; color: var(--csp-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.csp-input-group input,
.csp-input-group select,
.csp-input-group textarea {
  background: rgba(5, 8, 22, 0.7);
  border: 1px solid var(--csp-border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--csp-text);
  font-family: inherit; font-size: 14px;
  transition: 0.2s;
}
.csp-input-group input:focus,
.csp-input-group select:focus,
.csp-input-group textarea:focus {
  outline: none;
  border-color: var(--csp-neon-blue);
  box-shadow: 0 0 0 3px rgba(108, 240, 255, 0.15);
}
.csp-input-group textarea { resize: vertical; }

/* === BUTTONS === */
.csp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--csp-text);
  font-weight: 600; font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s;
}
.csp-btn-primary {
  background: linear-gradient(135deg, var(--csp-neon-blue), var(--csp-neon-purple));
  color: #fff;
  box-shadow: 0 0 18px rgba(108, 240, 255, 0.4);
}
.csp-btn-primary:hover {
  box-shadow: 0 0 28px rgba(108, 240, 255, 0.6), 0 0 42px rgba(181, 108, 255, 0.4);
  transform: translateY(-1px);
}
.csp-btn-ghost {
  background: rgba(108, 240, 255, 0.08);
  border-color: var(--csp-border);
  color: var(--csp-text);
}
.csp-btn-ghost:hover {
  border-color: var(--csp-neon-blue);
  background: rgba(108, 240, 255, 0.12);
}
.csp-btn-lg { padding: 14px 30px; font-size: 16px; }
.csp-btn-sm { padding: 7px 14px; font-size: 12px; }

/* === TABLES === */
.csp-table-wrap { overflow-x: auto; margin: 0 -8px; }
.csp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.csp-table th {
  text-align: left;
  font-weight: 600;
  color: var(--csp-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--csp-border);
}
.csp-table td {
  padding: 14px 10px;
  border-bottom: 1px solid rgba(140, 200, 255, 0.06);
}
.csp-table tr:hover td { background: rgba(108, 240, 255, 0.03); }
.csp-table tr.csp-me td {
  background: linear-gradient(90deg, rgba(108, 240, 255, 0.08), transparent);
}

/* === BADGES === */
.csp-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(108, 240, 255, 0.12);
  border: 1px solid var(--csp-border);
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.csp-badge-active, .csp-badge-completed, .csp-badge-approved, .csp-badge-answered { color: #6cffa8; border-color: rgba(108, 255, 168, 0.4); background: rgba(108, 255, 168, 0.1); }
.csp-badge-pending, .csp-badge-open { color: #ffd76c; border-color: rgba(255, 215, 108, 0.4); background: rgba(255, 215, 108, 0.1); }
.csp-badge-rejected, .csp-badge-failed, .csp-badge-closed { color: #ff6c8a; border-color: rgba(255, 108, 138, 0.4); background: rgba(255, 108, 138, 0.1); }

.csp-pos { color: #6cffa8; font-weight: 600; }
.csp-neg { color: #ff6c8a; font-weight: 600; }
.csp-mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }

/* === COPY ROW === */
.csp-copy-row {
  display: flex; gap: 10px;
  background: rgba(5, 8, 22, 0.7);
  border: 1px solid var(--csp-border);
  border-radius: 12px;
  padding: 6px;
}
.csp-copy-row input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--csp-neon-blue);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
}

/* === STEPS / RULES === */
.csp-steps, .csp-rules { padding-left: 20px; line-height: 1.8; color: var(--csp-text); }
.csp-steps li, .csp-rules li { margin-bottom: 6px; }
.csp-rules code { background: rgba(108, 240, 255, 0.1); padding: 2px 8px; border-radius: 6px; color: var(--csp-neon-blue); }

/* === LEADERBOARD === */
.csp-prizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.csp-prize-item {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(108, 240, 255, 0.06);
  border: 1px solid var(--csp-border);
  border-radius: 10px;
  padding: 10px 14px;
}
.csp-rank { font-weight: 700; color: var(--csp-neon-blue); }
.csp-amount { color: #6cffa8; font-weight: 600; }
.csp-medal { display: inline-block; margin-right: 4px; font-size: 14px; }
.csp-medal-1 { color: #ffd700; text-shadow: 0 0 8px #ffd700; }
.csp-medal-2 { color: #c0c0c0; text-shadow: 0 0 8px #c0c0c0; }
.csp-medal-3 { color: #cd7f32; text-shadow: 0 0 8px #cd7f32; }

/* === TICKETS === */
.csp-thread { display: flex; flex-direction: column; gap: 12px; }
.csp-msg {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--csp-border);
  background: var(--csp-surface-2);
}
.csp-msg-admin { border-color: rgba(108, 240, 255, 0.4); background: rgba(108, 240, 255, 0.05); }
.csp-msg-meta { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 12px; }
.csp-msg-body { line-height: 1.6; white-space: pre-wrap; }

/* === MISC === */
.csp-link { color: var(--csp-neon-blue); text-decoration: none; }
.csp-link:hover { text-shadow: 0 0 8px var(--csp-neon-blue); }
.csp-info-list { list-style: none; padding: 0; margin: 0; }
.csp-info-list li {
  display: flex; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--csp-border);
}
.csp-info-list li:last-child { border-bottom: none; }
.csp-info-list span { color: var(--csp-muted); }

.csp-notice {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid;
}
.csp-notice-success { background: rgba(108, 255, 168, 0.1); border-color: rgba(108, 255, 168, 0.4); color: #6cffa8; }
.csp-notice-error   { background: rgba(255, 108, 138, 0.1); border-color: rgba(255, 108, 138, 0.4); color: #ff6c8a; }

.csp-form-actions { display: flex; gap: 10px; margin-top: 12px; }
.csp-deposit-cta { text-align: center; }
.csp-deposit-cta .csp-btn { margin-top: 16px; }

.csp-login-required {
  max-width: 500px; margin: 80px auto;
  text-align: center;
  background: var(--csp-surface);
  border: 1px solid var(--csp-border);
  border-radius: var(--csp-radius);
  padding: 50px 30px;
}
.csp-login-required h2 { color: #fff; margin: 0 0 12px; }
.csp-login-required a { color: var(--csp-neon-blue); }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .csp-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .csp-grid-3 { grid-template-columns: 1fr; }
  .csp-grid-4 { grid-template-columns: 1fr 1fr; }
  .csp-form-row { grid-template-columns: 1fr; }
  .csp-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .csp-shell { grid-template-columns: 1fr; }
  .csp-mobile-toggle { display: flex; }
  .csp-sidebar {
    position: fixed;
    top: 0; left: -100%;
    width: 280px;
    z-index: 99;
    transition: left 0.3s ease;
  }
  .csp-sidebar.csp-open { left: 0; box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5); }
  .csp-main { padding: 80px 18px 30px; }
  .csp-page-head h1 { font-size: 22px; }
  .csp-grid-4 { grid-template-columns: 1fr; }
  .csp-table { font-size: 12px; }
  .csp-table th, .csp-table td { padding: 10px 6px; }
}

/* Scrollbar */
.csp-sidebar::-webkit-scrollbar { width: 6px; }
.csp-sidebar::-webkit-scrollbar-track { background: transparent; }
.csp-sidebar::-webkit-scrollbar-thumb { background: var(--csp-border); border-radius: 3px; }

/* ==========================================================================
   AUTH PAGES — Register / Login
   ========================================================================== */

.csp-auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  max-width: 1080px;
  margin: 60px auto;
  padding: 0 20px;
  min-height: 70vh;
  align-items: stretch;
}

.csp-auth-card {
  position: relative;
  background: var(--csp-surface);
  border: 1px solid var(--csp-border);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 48px);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
}
.csp-auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--csp-neon-blue), var(--csp-neon-purple), transparent);
  opacity: 0.6;
}
.csp-auth-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(108, 240, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 108, 212, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.csp-auth-card > * { position: relative; z-index: 1; }

.csp-auth-head { margin-bottom: 28px; }
.csp-auth-eyebrow {
  display: inline-block;
  font-family: 'Chakra Petch', 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--csp-neon-blue);
  padding: 4px 10px;
  border: 1px solid var(--csp-border-bright);
  border-radius: 4px;
  background: rgba(108, 240, 255, 0.05);
  margin-bottom: 14px;
}
.csp-auth-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--csp-text);
}
.csp-grad-text {
  background: linear-gradient(135deg, #6cf0ff 0%, #b56cff 50%, #ff6cd4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.csp-auth-lead {
  color: var(--csp-muted);
  font-size: 15px;
  margin: 0;
}

/* Sponsor bilgisi (referral link ile gelirse) */
.csp-auth-sponsor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(108, 240, 255, 0.10), rgba(181, 108, 255, 0.08));
  border: 1px solid var(--csp-border-bright);
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 14px;
}
.csp-sponsor-label { color: var(--csp-muted); }
.csp-auth-sponsor strong { color: var(--csp-text); }
.csp-sponsor-badge {
  margin-left: auto;
  padding: 3px 10px;
  background: linear-gradient(135deg, #ffd86c, #ff6cd4);
  color: #050816;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* Form */
.csp-auth-form { display: flex; flex-direction: column; gap: 18px; }
.csp-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.csp-auth-field { display: flex; flex-direction: column; gap: 8px; }
.csp-auth-field label {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--csp-muted);
}
.csp-auth-field input[type="text"],
.csp-auth-field input[type="email"],
.csp-auth-field input[type="password"] {
  width: 100%;
  background: rgba(8, 13, 34, 0.7);
  border: 1px solid var(--csp-border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--csp-text);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  transition: border-color 200ms, box-shadow 200ms;
  outline: none;
}
.csp-auth-field input::placeholder { color: rgba(138, 150, 184, 0.6); }
.csp-auth-field input:focus {
  border-color: var(--csp-neon-blue);
  box-shadow: 0 0 0 3px rgba(108, 240, 255, 0.15);
}

/* Password input + toggle */
.csp-auth-pwd { position: relative; }
.csp-auth-pwd input { padding-right: 46px; }
.csp-pwd-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  background: transparent;
  border: none;
  color: var(--csp-muted);
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: color 150ms, background 150ms;
}
.csp-pwd-toggle:hover { color: var(--csp-neon-blue); background: rgba(108, 240, 255, 0.06); }

/* Password strength meter */
.csp-pwd-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -2px;
}
.csp-pwd-bar {
  flex: 1;
  height: 4px;
  background: rgba(138, 150, 184, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.csp-pwd-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--csp-pwd-w, 0%);
  background: var(--csp-pwd-c, var(--csp-neon-blue));
  transition: width 220ms, background 220ms;
  border-radius: inherit;
}
.csp-pwd-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--csp-muted);
  min-width: 64px;
  text-align: right;
}

/* Checkbox */
.csp-auth-check label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 13px;
  color: var(--csp-muted);
  line-height: 1.5;
}
.csp-auth-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--csp-neon-blue);
  flex-shrink: 0;
}
.csp-auth-check a { color: var(--csp-neon-blue); }
.csp-auth-check a:hover { color: var(--csp-neon-pink); }
.csp-auth-check--inline label { font-size: 14px; color: var(--csp-text); }

.csp-auth-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.csp-forgot-trigger {
  font-size: 13px;
  color: var(--csp-neon-blue);
  text-decoration: none;
  transition: color 150ms;
}
.csp-forgot-trigger:hover { color: var(--csp-neon-pink); }

/* Submit button */
.csp-auth-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 22px;
  background: linear-gradient(135deg, #6cf0ff 0%, #b56cff 50%, #ff6cd4 100%);
  color: #050816;
  border: none;
  border-radius: 14px;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(108, 240, 255, 0.30), 0 0 30px rgba(181, 108, 255, 0.20);
  transition: transform 200ms, box-shadow 200ms;
}
.csp-auth-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.csp-auth-submit:hover::before { transform: translateX(100%); }
.csp-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(108, 240, 255, 0.40), 0 0 50px rgba(181, 108, 255, 0.30);
}
.csp-auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}
.csp-auth-submit--ghost {
  background: rgba(108, 240, 255, 0.08);
  border: 1px solid var(--csp-border-bright);
  color: var(--csp-text);
  box-shadow: none;
}
.csp-auth-submit--ghost:hover {
  background: rgba(108, 240, 255, 0.14);
  color: var(--csp-text);
  box-shadow: 0 0 24px rgba(108, 240, 255, 0.20);
}

/* Loader */
.csp-btn-loader {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(5, 8, 22, 0.3);
  border-top-color: #050816;
  border-radius: 50%;
  animation: csp-spin 0.7s linear infinite;
}
.csp-auth-submit.is-loading .csp-btn-loader { display: inline-block; }
.csp-auth-submit.is-loading .csp-btn-text,
.csp-auth-submit.is-loading svg { display: none; }
@keyframes csp-spin { to { transform: rotate(360deg); } }

/* Auth message */
.csp-auth-message {
  min-height: 0;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  transition: all 200ms;
}
.csp-auth-message.is-error {
  padding: 12px 14px;
  background: rgba(255, 108, 108, 0.08);
  border: 1px solid rgba(255, 108, 108, 0.4);
  color: #ffa5a5;
}
.csp-auth-message.is-success {
  padding: 12px 14px;
  background: rgba(108, 255, 175, 0.08);
  border: 1px solid rgba(108, 255, 175, 0.4);
  color: #a5ffce;
}

/* Footer of auth card */
.csp-auth-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--csp-border);
  text-align: center;
  color: var(--csp-muted);
  font-size: 14px;
}
.csp-auth-foot a {
  color: var(--csp-neon-blue);
  font-weight: 600;
  margin-left: 6px;
  text-decoration: none;
}
.csp-auth-foot a:hover { color: var(--csp-neon-pink); }

/* Forgot password panel */
.csp-forgot-panel {
  margin-top: 24px;
  padding: 24px;
  background: rgba(8, 13, 34, 0.6);
  border: 1px solid var(--csp-border);
  border-radius: 16px;
}
.csp-forgot-panel h3 {
  font-family: 'Chakra Petch', sans-serif;
  margin: 0 0 6px;
  font-size: 18px;
}
.csp-forgot-panel p { color: var(--csp-muted); font-size: 14px; margin: 0 0 16px; }
.csp-forgot-back {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--csp-muted);
  text-decoration: none;
}
.csp-forgot-back:hover { color: var(--csp-neon-blue); }

/* ----- SIDE PANEL ----- */
.csp-auth-side {
  position: relative;
  background: linear-gradient(160deg, rgba(15, 22, 48, 0.85), rgba(8, 13, 34, 0.95));
  border: 1px solid var(--csp-border);
  border-radius: 22px;
  padding: 40px 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.csp-auth-side-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(181, 108, 255, 0.25) 0%, transparent 60%);
  pointer-events: none;
  animation: csp-float-glow 8s ease-in-out infinite;
}
@keyframes csp-float-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20%, 20%); }
}

.csp-auth-perks {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.csp-auth-perks li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.csp-perk-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(108, 240, 255, 0.10);
  border: 1px solid var(--csp-border-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.csp-auth-perks strong {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--csp-text);
  margin-bottom: 2px;
}
.csp-auth-perks p {
  margin: 0;
  font-size: 13px;
  color: var(--csp-muted);
  line-height: 1.5;
}

/* Login side: quote + stats */
.csp-auth-quote {
  position: relative;
  z-index: 1;
  padding: 20px;
  background: rgba(108, 240, 255, 0.04);
  border: 1px solid var(--csp-border);
  border-radius: 14px;
  color: var(--csp-text);
}
.csp-auth-quote svg {
  color: var(--csp-neon-blue);
  margin-bottom: 8px;
}
.csp-auth-quote p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
  color: var(--csp-text);
}
.csp-auth-quote span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--csp-muted);
}

.csp-auth-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: relative;
  z-index: 1;
}
.csp-auth-stats > div {
  text-align: center;
  padding: 14px 8px;
  background: rgba(8, 13, 34, 0.6);
  border: 1px solid var(--csp-border);
  border-radius: 12px;
}
.csp-auth-stats strong {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(135deg, #6cf0ff, #b56cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 4px;
}
.csp-auth-stats span {
  font-size: 11px;
  color: var(--csp-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Responsive */
@media (max-width: 880px) {
  .csp-auth-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px auto;
  }
  .csp-auth-side { order: -1; padding: 28px 22px; }
  .csp-auth-row { grid-template-columns: 1fr; }
  .csp-auth-perks { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .csp-auth-perks li { flex: 1 1 calc(50% - 6px); min-width: 140px; }
}
@media (max-width: 480px) {
  .csp-auth-card { padding: 24px 18px; border-radius: 18px; }
  .csp-auth-side { padding: 22px 18px; border-radius: 18px; }
  .csp-auth-perks li { flex: 1 1 100%; }
}
