/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface2: #1a1a1a;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #888888;
  --accent: #e91e8c;
  --accent-hover: #c41870;
  --accent-light: rgba(233, 30, 140, 0.15);
  --success: #10b981;
  --error: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all .15s ease;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -0.1px;
}

.btn-primary {
  background: #fff;
  color: #000;
}
.btn-primary:hover { background: #e8e8e8; }

.btn-secondary {
  background: #111;
  color: #aaa;
  border: 1px solid #1e1e1e;
}
.btn-secondary:hover { border-color: #2a2a2a; color: #ccc; }

.btn-ghost {
  background: transparent;
  color: #444;
  border: 1px solid #1e1e1e;
}
.btn-ghost:hover { color: #aaa; border-color: #2a2a2a; }

.btn-danger {
  background: transparent;
  color: var(--error);
  border: 1px solid transparent;
}
.btn-danger:hover { background: rgba(239,68,68,0.08); }

.btn-full { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ── Forms ───────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  transition: border-color var(--transition);
  resize: vertical;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.label-hint { color: var(--text-muted); font-weight: 400; font-size: 12px; }

.form-error {
  color: var(--error);
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}

.form-switch { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.form-switch a { color: var(--accent); }

.input-with-status { position: relative; display: flex; align-items: center; }
.input-with-status input { flex: 1; padding-right: 36px; }
.input-status {
  position: absolute;
  right: 12px;
  font-size: 16px;
}

.char-count { text-align: right; font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Toast ───────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  border: 1px solid #1e1e1e;
  color: #aaa;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
  max-width: 280px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: #1e2e1e; color: #4ade80; }
.toast.error   { border-color: #2e1e1e; color: #f87171; }
.toast.info    { border-color: #1e2a3e; color: #60a5fa; }

/* ── Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 16px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--text); }

.modal-header { margin-bottom: 24px; }
.modal-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.modal-header p { color: var(--text-muted); font-size: 14px; }

/* ── Landing Page ────────────────────────────────────────────────── */
.landing-page { overflow-x: hidden; }

/* Animated bg */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(233,30,140,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,30,140,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; background: rgba(233,30,140,0.25); top: -200px; left: -100px; animation-delay: 0s; }
.orb-2 { width: 400px; height: 400px; background: rgba(255,110,180,0.15); top: 60%; right: -100px; animation-delay: -3s; }
.orb-3 { width: 300px; height: 300px; background: rgba(233,30,140,0.15); bottom: -100px; left: 40%; animation-delay: -6s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  border: 1px solid rgba(233,30,140,0.3);
  color: #e91e8c;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #e91e8c, #ff6eb4, #c41870);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-cta { width: 100%; max-width: 520px; margin-bottom: 60px; }

.claim-input-wrap {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 6px 6px 16px;
  gap: 8px;
  transition: border-color var(--transition);
}
.claim-input-wrap:focus-within { border-color: var(--accent); }

.claim-prefix { color: var(--text-muted); font-size: 15px; white-space: nowrap; }

.claim-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  min-width: 0;
}

.claim-hint { margin-top: 10px; font-size: 13px; height: 18px; transition: color 0.2s; }
.claim-hint.available { color: var(--success); }
.claim-hint.taken { color: var(--error); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-size: 24px; font-weight: 800; }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-div { width: 1px; height: 40px; background: var(--border); }

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Spinner */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideIn { from { transform: translateY(80px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateY(0); opacity: 1; } to { transform: translateY(80px); opacity: 0; } }

/* ═══════════════════════════════════════════════════════════════
   AUTH MODALS — New Design (matching screenshot)
═══════════════════════════════════════════════════════════════ */

/* Override modal sizing for auth panels */
.auth-modal {
  background: #0f0f13;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px;
  padding: 36px 32px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04) inset;
}

.auth-modal-header {
  margin-bottom: 28px;
}
.auth-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.auth-modal-header p {
  font-size: 13px;
  color: rgba(255,255,255,.42);
  line-height: 1.55;
}

/* Auth field groups */
.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.auth-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Auth input wrapper with icon */
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  overflow: hidden;
}
.auth-input-wrap:focus-within {
  border-color: rgba(233,30,140,.6);
  box-shadow: 0 0 0 3px rgba(233,30,140,.12);
}
.auth-input-icon {
  position: absolute;
  left: 14px;
  color: rgba(255,255,255,.3);
  pointer-events: none;
  flex-shrink: 0;
}
.auth-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 14px 12px 40px;
  width: 100%;
}
.auth-input-wrap input::placeholder { color: rgba(255,255,255,.25); }

/* Prefix text in input (e.g. "flussy.lol/") */
.auth-prefix {
  padding-left: 14px;
  font-size: 13px;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
  flex-shrink: 0;
}
.auth-input-wrap .auth-prefix ~ input {
  padding-left: 6px;
}

/* Primary auth button (pink pill) */
.auth-btn-primary {
  width: 100%;
  padding: 13px 20px;
  background: #e91e8c;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: -0.1px;
  margin-top: 4px;
}
.auth-btn-primary:hover {
  background: #c41870;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233,30,140,.35);
}
.auth-btn-primary:active { transform: translateY(0); }
.auth-btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: rgba(255,255,255,.2);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.07);
}

/* Social buttons */
.auth-social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: rgba(255,255,255,.8);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  margin-bottom: 10px;
  text-align: left;
}
.auth-social-btn:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.auth-social-btn svg { flex-shrink: 0; }

/* "Usado recientemente" badge */
.auth-social-badge {
  position: absolute;
  right: 12px;
  top: -8px;
  background: #9d0f5a;
  color: #f9c0dd;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(233,30,140,.25);
  white-space: nowrap;
}

/* Auth footer links */
.auth-footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  text-align: center;
}
.auth-footer-links span {
  font-size: 12.5px;
  color: rgba(255,255,255,.35);
}
.auth-link {
  color: #e91e8c;
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.auth-link:hover { color: #ff6eb4; }

/* ═══ Google Picker Modal ═══ */
.google-picker-modal {
  background: #202124;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 0;
  max-width: 380px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.gpicker-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.gpicker-title {
  font-size: 15px;
  font-weight: 600;
  color: #e8eaed;
  margin-bottom: 2px;
}
.gpicker-sub {
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.gpicker-accounts {
  padding: 8px 0;
}
.gpicker-account {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background .15s;
}
.gpicker-account:hover { background: rgba(255,255,255,.05); }
.gpicker-account-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
  overflow: hidden;
}
.gpicker-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gpicker-account-info { flex: 1; min-width: 0; }
.gpicker-account-name {
  font-size: 14px;
  font-weight: 500;
  color: #e8eaed;
  margin-bottom: 2px;
}
.gpicker-account-email {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gpicker-account-check {
  color: #4285F4;
}
.gpicker-add {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  cursor: pointer;
  border-top: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.gpicker-add:hover { background: rgba(255,255,255,.04); }

/* ═══ Discord Auth Modal ═══ */
.discord-auth-modal {
  background: #313338;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 28px 28px 24px;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.discord-auth-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.discord-auth-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.discord-auth-sub {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.discord-perms {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.discord-perm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.discord-auth-accounts {
  margin-bottom: 20px;
}
.discord-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  background: rgba(255,255,255,.03);
}
.discord-account-item:hover { background: rgba(255,255,255,.06); border-color: #5865F2; }
.discord-account-item.selected { border-color: #5865F2; background: rgba(88,101,242,.12); }
.discord-account-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.discord-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.discord-account-name { font-size: 14px; font-weight: 600; color: #fff; }
.discord-account-tag { font-size: 12px; color: rgba(255,255,255,.4); }
.discord-auth-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.auth-btn-cancel {
  padding: 10px 20px;
  background: transparent;
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.auth-btn-cancel:hover { background: rgba(255,255,255,.05); color: #fff; }
.auth-btn-discord-confirm {
  padding: 10px 24px;
  background: #5865F2;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.auth-btn-discord-confirm:hover { background: #4752c4; }

/* ═══ Username Setup ═══ */
.username-setup-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(233,30,140,.15);
  border: 1px solid rgba(233,30,140,.25);
  display: flex; align-items: center; justify-content: center;
  color: #e91e8c;
  margin: 0 auto 16px;
}

/* ═══ Recover Account Icons ═══ */
.recover-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(233,30,140,.1);
  border: 1px solid rgba(233,30,140,.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.recover-icon-blue { background: rgba(96,165,250,.1); border-color: rgba(96,165,250,.2); }
.recover-icon-green { background: rgba(74,222,128,.1); border-color: rgba(74,222,128,.2); }

/* ═══ OTP Code Digit Inputs ═══ */
.auth-code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}
.code-digit {
  width: 50px !important;
  height: 56px !important;
  text-align: center !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  background: rgba(255,255,255,.04) !important;
  border: 2px solid rgba(255,255,255,.1) !important;
  border-radius: 12px !important;
  color: #fff !important;
  outline: none !important;
  padding: 0 !important;
  transition: border-color .2s, box-shadow .2s !important;
  font-family: inherit !important;
  caret-color: transparent !important;
}
.code-digit:focus {
  border-color: #e91e8c !important;
  box-shadow: 0 0 0 3px rgba(233,30,140,.2) !important;
}
.code-digit.filled {
  border-color: rgba(233,30,140,.5) !important;
  background: rgba(233,30,140,.08) !important;
}

/* Smooth Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Glow follow cursor — landing (light bg) uses pink glow, dashboard uses its own */
.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(233, 30, 140, 0.06), rgba(255, 110, 180, 0.02) 40%, transparent 80%);
  z-index: 0;
  transition: opacity 0.3s;
}
.dashboard-body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mouse-x, -1000px) var(--mouse-y, -1000px), rgba(233, 30, 140, 0.1), rgba(255, 110, 180, 0.04) 40%, transparent 80%);
  z-index: 0;
  transition: opacity 0.3s;
}

