/* ============================================================================
   VALPO ADMIN — LOGIN & SELECT STYLES
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #06080f;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(124,58,237,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 80% 70%, rgba(6,182,212,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- LOGIN CARD ---- */
.card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 48px 44px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
}

.logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(124,58,237,.4);
  overflow: hidden;
}

/* Imagen del bot sin marco (transparencia natural) */
.bot-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 24px;
  object-fit: cover;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}
h1 span { color: #7c3aed; }

.subtitle {
  font-size: .9rem;
  color: #94a3b8;
  margin-bottom: 36px;
  line-height: 1.5;
}

.alert {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .85rem;
  color: #fca5a5;
  margin-bottom: 20px;
}

.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  background: #5865F2;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(88,101,242,.4);
}
.btn-discord:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(88,101,242,.5);
}
.btn-discord:active { transform: translateY(0); }

.discord-icon { width: 22px; height: 22px; flex-shrink: 0; }

.divider {
  margin: 28px 0 20px;
  border: none;
  border-top: 1px solid rgba(255,255,255,.07);
}

.note { font-size: .78rem; color: #64748b; line-height: 1.6; }
.note a { color: #7c3aed; text-decoration: none; }
.note a:hover { text-decoration: underline; }

/* ---- SELECT PAGE ---- */
.select-page {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  backdrop-filter: blur(12px);
}

.admin-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .7rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-family: 'Material Symbols Rounded', sans-serif;
}
.admin-badge .ms-badge {
  font-family: 'Material Symbols Rounded';
  font-size: 13px;
}
.admin-badge span:last-child {
  font-family: 'Inter', sans-serif;
}
.admin-header h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}
.admin-header p { font-size: .83rem; color: #64748b; }

.user-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 20px;
}
.user-row img, .avatar-ph {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.avatar-ph {
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.user-name  { font-size: .85rem; color: #cbd5e1; font-weight: 600; }
.user-sub   { font-size: .7rem;  color: #475569; margin-top: 1px; }
.logout-btn {
  margin-left: auto;
  font-size: .71rem;
  color: #475569;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.logout-btn:hover { color: #ef4444; border-color: rgba(239,68,68,.3); }

.servers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.servers-list.scroll {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,.4) transparent;
}
.servers-list.scroll::-webkit-scrollbar { width: 4px; }
.servers-list.scroll::-webkit-scrollbar-thumb { background: rgba(124,58,237,.4); border-radius: 4px; }

.server-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  color: #e2e8f0;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .12s;
  overflow: hidden;
}
.server-btn:hover {
  background: rgba(124,58,237,.12);
  border-color: rgba(124,58,237,.4);
  transform: translateX(3px);
}

.server-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.server-icon img { width: 100%; height: 100%; object-fit: cover; }
.server-icon-letter { font-size: .95rem; font-weight: 700; color: #fff; }

.server-info { flex: 1; min-width: 0; }
.server-name { font-size: .9rem; font-weight: 600; color: #f1f5f9; }
.server-meta { font-size: .72rem; color: #475569; margin-top: 2px; }

.server-arrow {
  font-family: 'Material Symbols Rounded';
  font-size: 1.1rem;
  color: #334155;
  flex-shrink: 0;
}

.server-loading {
  position: absolute; inset: 0;
  background: rgba(6,8,15,.72);
  display: none; align-items: center; justify-content: center;
  border-radius: 14px;
}
.server-loading.visible { display: flex; }
.spin {
  font-family: 'Material Symbols Rounded';
  font-size: 1.3rem;
  color: #7c3aed;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.no-servers {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  margin-bottom: 16px;
  color: #475569;
  font-size: .83rem;
  line-height: 1.6;
}
.no-servers strong { display: block; color: #94a3b8; margin-bottom: 8px; font-size: .88rem; }

.select-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
}
.select-footer .note { font-size: .73rem; color: #334155; }
.select-footer .note a { color: #7c3aed; text-decoration: none; }
.select-footer .note a:hover { text-decoration: underline; }

/* ---- BOTÓN INVITAR BOT ---- */
.invite-bot-wrap {
  margin: 16px 0 4px;
}
.btn-invite-bot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,58,237,.35);
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.btn-invite-bot:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(124,58,237,.5);
}
.btn-invite-bot:active { transform: translateY(0); }