/**
 * LYVORA - MAIN.CSS
 * Sistema de diseño unificado para todas las páginas
 * Este archivo debe ser importado en TODOS los HTML
 */

/* ═══════════════════════════════════════════════════════════════
   IMPORTS
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ═══════════════════════════════════════════════════════════════
   CSS VARIABLES - Sistema de diseño unificado
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* ── FONTS ── */
  --font-display: 'Outfit', 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ── PRIMARY COLORS (Violet/Morado) ── */
  --primary: #7B3FF2;
  --primary-600: #6e37ff;
  --primary-700: #5a1fd9;
  --primary-400: #8b5fff;
  --primary-300: #a78bfa;
  --primary-200: #c4b5fd;
  --primary-100: #e0d7fe;
  --primary-glow: rgba(123, 63, 242, 0.35);
  --primary-dim: rgba(123, 63, 242, 0.15);

  /* ── ACCENT COLORS (Teal/Cyan) ── */
  --accent: #00D4B8;
  --accent-400: #00f0c8;
  --accent-600: #00B8A0;
  --accent-glow: rgba(0, 212, 184, 0.35);
  --accent-dim: rgba(0, 212, 184, 0.08);
  --accent-dim2: rgba(0, 212, 184, 0.14);
  --accent-border: rgba(0, 212, 184, 0.22);

  /* ── SEMANTIC ALIASES (para compatibilidad) ── */
  --teal: var(--accent);
  --teal-2: var(--accent-600);
  --teal-dim: var(--accent-dim);
  --teal-dim2: var(--accent-dim2);
  --teal-border: var(--accent-border);
  --teal-glow: var(--accent-glow);
  --v: var(--primary);
  --v2: var(--primary-700);
  --v3: var(--primary-300);
  --v4: var(--primary-200);
  --vg: var(--primary-dim);
  --neon-cyan: var(--accent);
  --neon-purple: var(--primary);
  --neon-pink: #ff3d5a;

  /* ── BACKGROUNDS ── */
  --bg: #05050a;
  --bg-dark: #08080f;
  --bg-darker: #050508;

  --surface: #0d0d14;
  --surface-2: #0d0d1a;
  --surface-3: #13131c;
  --surface-4: #1a1a26;
  --surface-5: #1a1a28;
  --surface-6: #20202e;

  /* Compat aliases */
  --s1: var(--surface-2);
  --s2: var(--surface-3);
  --s3: var(--surface-4);
  --s4: var(--surface-5);
  --s5: var(--surface-6);
  --base1: var(--bg-dark);
  --base2: var(--surface-2);
  --base: #0F0F12;
  --base3: #1E1E26;
  --base4: #252530;

  /* ── TEXT COLORS ── */
  --text: rgba(255, 255, 255, 0.92);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dim: rgba(255, 255, 255, 0.25);
  --text-main: var(--text);
  --text-sub: rgba(238, 238, 248, 0.65);
  --text2: var(--text-muted);
  --text3: #44445a;
  --text4: #22223a;

  /* ── UTILITY COLORS ── */
  --live-red: #ff3d5a;
  --success: #00e5a0;
  --green: #34d399;
  --error: #ff3d5a;
  --red: #f87171;
  --warning: #ffb547;
  --yellow: #fbbf24;
  --orange: #fb923c;
  --pink: #f472b6;
  --gold: #ffc145;
  --cyan: #22d3ee;
  --cyan2: #0891b2;
  --purple: var(--primary);

  /* ── BORDERS ── */
  --border: rgba(255, 255, 255, 0.06);
  --border-2: rgba(255, 255, 255, 0.09);
  --border-3: rgba(255, 255, 255, 0.16);
  --border-hover: rgba(255, 255, 255, 0.10);
  --border-glow: rgba(110, 55, 255, 0.55);

  /* ── RADIUS ── */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-xs: 6px;
  --r: var(--radius);
  --rs: var(--radius-sm);
  --r2: 18px;
  --r3: 24px;

  /* ── TRANSITIONS ── */
  --trans: cubic-bezier(0.22, 1, 0.36, 1);
  --trans-fast: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* ── LAYOUT ── */
  --sidebar-width: 240px;
  --navbar-height: 60px;
  --mobile-tabbar-height: 62px;
  --nav-h: 64px;
  --sidebar: var(--sidebar-width);
}

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

* {
  font-family: var(--font-body);
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--base4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--accent); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(123, 63, 242, 0.3); }
  50% { box-shadow: 0 0 36px rgba(123, 63, 242, 0.65); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 0.4; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes panelIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes panelBack {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes iconPop {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.65); }
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   BACKGROUND EFFECTS
   ═══════════════════════════════════════════════════════════════ */
.bg-orbs::before {
  content: '';
  position: absolute;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 80vh;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 184, 0.06) 0%, transparent 65%);
}

.bg-orbs::after {
  content: '';
  position: absolute;
  bottom: -20vh;
  right: -10vw;
  width: 70vw;
  height: 70vh;
  background: radial-gradient(ellipse, rgba(123, 63, 242, 0.05) 0%, transparent 65%);
}

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% -10%, rgba(123, 63, 242, 0.18) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 110%, rgba(0, 240, 200, 0.10) 0%, transparent 60%),
              radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 77, 141, 0.05) 0%, transparent 70%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 80%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: particleFloat linear infinite;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR - Principal
   ═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background: rgba(8, 8, 16, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 184, 0.1);
  padding: 0 1.25rem;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 0 1rem;
  gap: 0.5rem;
  transition: all 0.2s;
}

.nav-search:focus-within {
  border-color: var(--accent);
  background: rgba(0, 212, 184, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 212, 184, 0.1),
              0 0 20px rgba(0, 212, 184, 0.2);
}

.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.875rem;
  width: 100%;
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  font-family: var(--font-body);
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.search-icon {
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  flex-shrink: 0;
}

#navActions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
}

.nav-icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 10px rgba(0, 212, 184, 0.3),
              0 0 20px rgba(0, 212, 184, 0.15);
}

.nav-back {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-back:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   USER MENU
   ═══════════════════════════════════════════════════════════════ */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  transition: all 0.2s;
}

.user-menu-trigger:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.user-menu-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
}

.user-menu-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-menu-name {
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #111120;
  border: 1px solid rgba(0, 212, 184, 0.2);
  border-radius: 14px;
  overflow: hidden;
  min-width: 185px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(0, 212, 184, 0.15);
  z-index: 400;
  display: none;
}

.user-menu-dropdown.open {
  display: block;
  border-color: rgba(0, 212, 184, 0.4);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5),
              0 0 40px rgba(0, 212, 184, 0.25);
}

.user-menu-dropdown a,
.user-menu-dropdown button {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.15s;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.25rem 0;
}

/* ═══════════════════════════════════════════════════════════════
   NOTIFICATION MODAL
   ═══════════════════════════════════════════════════════════════ */
.notif-modal-wrap {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 360px;
  background: #111120;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 500;
  display: none;
  animation: dropIn 0.2s ease;
}

.notif-modal-wrap.open {
  display: block;
  border-color: rgba(0, 212, 184, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
              0 0 40px rgba(0, 212, 184, 0.2);
}

.notif-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.notif-modal-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
}

.notif-mark-all {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.notif-modal-body {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: none;
}

.notif-modal-body::-webkit-scrollbar {
  display: none;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
  position: relative;
  cursor: pointer;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.notif-item.unread {
  background: rgba(0, 212, 184, 0.04);
}

.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.notif-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.notif-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notif-ava-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  border: 2px solid #111120;
}

.notif-ava-icon.follow {
  background: var(--accent);
  color: #050d0b;
}

.notif-ava-icon.sub {
  background: var(--primary);
  color: #fff;
}

.notif-ava-icon.gift {
  background: #ff3d5a;
  color: #fff;
}

.notif-ava-icon.level {
  background: #f59e0b;
  color: #050d0b;
}

.notif-ava-icon.video {
  background: #3b82f6;
  color: #fff;
}

.notif-text {
  flex: 1;
  min-width: 0;
}

.notif-text strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.notif-text span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}

.notif-time {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 0.2rem;
}

.notif-empty {
  padding: 2.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
}

.notif-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.notif-empty p {
  font-size: 0.82rem;
}

.notif-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--live-red);
  border-radius: 50%;
}

.notif-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.notif-btn-accept,
.notif-btn-reject {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  font-family: var(--font-body);
}

.notif-btn-accept {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.notif-btn-accept:hover {
  background: rgba(34, 197, 94, 0.25);
}

.notif-btn-reject {
  background: rgba(255, 61, 90, 0.1);
  color: #ff3d5a;
}

.notif-btn-reject:hover {
  background: rgba(255, 61, 90, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-image: linear-gradient(180deg, rgba(123, 63, 242, 0.04) 0%, transparent 40%);
}

.sb-top {
  padding: 1rem 0.75rem 0.875rem;
  border-bottom: 1px solid var(--border);
}

.sb-nav {
  flex: 1;
  padding: 0.375rem;
  overflow-y: auto;
}

.sb-footer {
  padding: 0.625rem 0.75rem;
  border-top: 1px solid var(--border);
}

.sb-agency {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 10px;
  padding: 4px;
  transition: background 0.15s;
}

.sb-agency:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sb-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(123, 63, 242, 0.38);
}

.sb-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-agency-info h3 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 168px;
  letter-spacing: -0.2px;
}

.sb-agency-info span {
  font-size: 0.6rem;
  color: var(--primary-300);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-family: var(--font-mono);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
  margin-bottom: 1px;
  position: relative;
  font-family: var(--font-body);
  text-decoration: none;
}

.nav-link i {
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s, color 0.15s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-link.active {
  background: rgba(123, 63, 242, 0.13);
  color: var(--primary-200);
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(to bottom, var(--primary), var(--primary-300));
}

.nav-link.active i {
  color: var(--primary-300);
}

.sb-section-label {
  font-size: 0.57rem;
  color: var(--text4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 0.875rem 0.625rem 0.3rem;
  margin-top: 0.125rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sb-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.nav-badge.green {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.nav-badge.yellow {
  background: rgba(251, 191, 36, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.nav-badge.red {
  background: rgba(248, 113, 113, 0.12);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.22);
}

.sb-user {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
}

.sb-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.sb-user-info p:first-child {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.sb-user-info p:last-child {
  font-size: 0.64rem;
  color: var(--text-muted);
}

.btn-logout {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.btn-logout:hover {
  border-color: rgba(248, 113, 113, 0.45);
  color: var(--red);
  background: rgba(248, 113, 113, 0.05);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-display);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 28px rgba(123, 63, 242, 0.38);
}

.btn-primary:hover {
  background: var(--primary-400);
  box-shadow: 0 12px 40px rgba(123, 63, 242, 0.55);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-accent,
.btn-teal {
  background: var(--accent);
  color: #050d0b;
  font-weight: 700;
}

.btn-accent:hover,
.btn-teal:hover {
  background: #00edd0;
  box-shadow: 0 0 15px rgba(0, 212, 184, 0.5),
              0 0 30px rgba(0, 212, 184, 0.3),
              0 6px 20px rgba(0, 212, 184, 0.2);
  transform: translateY(-1px);
}

.btn-crear-pc {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.5rem 1.15rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-family: var(--font-display);
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0, 212, 184, 0.28);
  position: relative;
  overflow: hidden;
}

.btn-crear-pc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-crear-pc:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(0, 212, 184, 0.5),
              0 0 40px rgba(123, 63, 242, 0.3),
              0 8px 28px rgba(0, 212, 184, 0.3);
}

.btn-crear-pc:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--error);
  color: var(--error);
  background: rgba(248, 113, 113, 0.05);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--border-2);
}

.card-elevated {
  background: var(--surface-3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.card-glow {
  box-shadow: 0 0 0 1px rgba(123, 63, 242, 0.04),
              0 40px 100px rgba(0, 0, 0, 0.65),
              0 0 140px rgba(123, 63, 242, 0.06);
}

.card-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
}

.form-input {
  width: 100%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.2s;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
  border-color: rgba(123, 63, 242, 0.65);
  box-shadow: 0 0 0 3px rgba(123, 63, 242, 0.12);
  background: rgba(123, 63, 242, 0.04);
}

.form-input-icon {
  position: relative;
}

.form-input-icon i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-dim);
  pointer-events: none;
  transition: color 0.2s;
}

.form-input-icon input {
  padding-left: 2.5rem;
}

.form-input-icon input:focus + i {
  color: var(--primary);
}

/* Float label variant */
.float-label-wrap {
  position: relative;
}

.float-label-wrap .form-input {
  padding-top: 1.3rem;
  padding-bottom: 0.35rem;
}

.float-label {
  position: absolute;
  left: 2.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--text-dim);
  pointer-events: none;
  transition: all 0.2s var(--trans-fast);
  transform-origin: left top;
  z-index: 3;
  white-space: nowrap;
}

.float-label-wrap .form-input:focus ~ .float-label,
.float-label-wrap .form-input.has-value ~ .float-label {
  top: 0.52rem;
  transform: translateY(0) scale(0.75);
  color: var(--primary-400);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-weight: 700;
  padding: 0.125rem 0.45rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: var(--primary);
  color: #fff;
}

.badge-success {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.badge-error {
  background: rgba(248, 113, 113, 0.12);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.22);
}

/* ═══════════════════════════════════════════════════════════════
   LOADING STATES
   ═══════════════════════════════════════════════════════════════ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  gap: 24px;
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(123, 63, 242, 0.18) 0%, transparent 70%);
  transition: opacity 0.4s ease;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.81rem;
}

.alert-error {
  background: rgba(248, 113, 113, 0.07);
  border: 1px solid rgba(248, 113, 113, 0.22);
  color: var(--red);
}

.alert-success {
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: var(--green);
}

.alert-warning {
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: var(--yellow);
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════════ */
.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

/* ═══════════════════════════════════════════════════════════════
   GRADIENT TEXT
   ═══════════════════════════════════════════════════════════════ */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-300), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-violet {
  background: linear-gradient(135deg, #c4a0ff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ═══════════════════════════════════════════════════════════════
   PAGE LAYOUTS
   ═══════════════════════════════════════════════════════════════ */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.page-content {
  padding-top: calc(var(--navbar-height) + 1.5rem);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 2rem;
}

.page-content.with-sidebar {
  margin-left: var(--sidebar-width);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .navbar {
    padding: 0 0.75rem;
  }

  .nav-logo {
    width: auto;
    font-size: 1.25rem;
  }

  .nav-search {
    max-width: none;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .page-content.with-sidebar {
    margin-left: 0;
  }
}

/* Mobile tabbar */
.mobile-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-tabbar-height);
  background: rgba(8, 8, 16, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: none;
  z-index: 400;
}

@media (max-width: 768px) {
  .mobile-tabbar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
  }

  body {
    padding-bottom: var(--mobile-tabbar-height);
  }
}

.mobile-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.65rem;
  padding: 0.5rem;
  flex: 1;
  transition: color 0.2s;
}

.mobile-tabbar-item i {
  font-size: 1.25rem;
}

.mobile-tabbar-item.active,
.mobile-tabbar-item:hover {
  color: var(--accent);
}
