/* =====================================================
   STARPETS - SISTEMA DE DISEÑO GLOBAL
   Tema para niños: vibrante, alegre, con modo claro
   ===================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Fredoka+One&display=swap');

/* ── Variables: MODO OSCURO (default) ── */
:root {
  /* Colores de fondo */
  --bg-main:       #1a2035;
  --bg-secondary:  #222b45;
  --bg-card:       rgba(34, 47, 82, 0.92);
  --bg-card-hover: rgba(42, 58, 98, 0.97);

  /* Paleta arcoíris vibrante */
  --clr-pink:    #ff4da6;
  --clr-purple:  #a855f7;
  --clr-blue:    #3b82f6;
  --clr-cyan:    #06b6d4;
  --clr-green:   #22c55e;
  --clr-yellow:  #facc15;
  --clr-orange:  #fb923c;
  --clr-red:     #f87171;
  --clr-teal:    #2dd4bf;

  /* Accent principal */
  --accent-primary:  var(--clr-pink);
  --accent-hover:    #ff70b8;
  --accent-secondary: var(--clr-purple);
  --accent-danger:   var(--clr-red);

  /* Textos */
  --text-main:  #f0f4ff;
  --text-muted: #8b9cc8;
  --text-dim:   #4a5580;

  /* Glass */
  --glass-bg:        rgba(255,255,255,0.09);
  --glass-border:    rgba(255,255,255,0.13);
  --glass-highlight: rgba(255,255,255,0.07);
  --glass-strong:    rgba(255,255,255,0.16);

  /* Sombras */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.25);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg:  0 20px 50px rgba(0,0,0,0.5);
  --shadow-glow-pink:   0 0 20px rgba(255,77,166,0.4);
  --shadow-glow-purple: 0 0 20px rgba(168,85,247,0.4);
  --shadow-glow-blue:   0 0 20px rgba(59,130,246,0.4);

  /* Tipografía */
  --font-heading: 'Fredoka One', cursive;
  --font-body:    'Nunito', sans-serif;

  /* Layout */
  --sidebar-width: 280px;
  --header-height: 72px;
  --radius-xs:  0.5rem;
  --radius-sm:  0.75rem;
  --radius-md:  1rem;
  --radius-lg:  1.5rem;
  --radius-xl:  2rem;
  --radius-full: 999px;

  /* Animación */
  --transition-fast:   all 0.2s ease;
  --transition:        all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Colores semánticos */
  --color-success: var(--clr-green);
  --color-warning: var(--clr-yellow);
  --color-danger:  var(--clr-red);
  --color-info:    var(--clr-blue);
}

/* ── Variables: MODO CLARO ── */
[data-theme="light"] {
  --bg-main:       #f0f4ff;
  --bg-secondary:  #e2e8f8;
  --bg-card:       rgba(255,255,255,0.92);
  --bg-card-hover: rgba(255,255,255,1);

  --clr-pink:    #e91e8c;
  --clr-purple:  #7c3aed;
  --clr-blue:    #2563eb;
  --clr-cyan:    #0891b2;
  --clr-green:   #16a34a;
  --clr-yellow:  #ca8a04;
  --clr-orange:  #ea580c;
  --clr-red:     #dc2626;
  --clr-teal:    #0d9488;

  --accent-primary:  var(--clr-pink);
  --accent-hover:    #c0176f;
  --accent-secondary: var(--clr-purple);
  --accent-danger:   var(--clr-red);

  --text-main:  #1e1b4b;
  --text-muted: #4a5580;
  --text-dim:   #8b9cc8;

  --glass-bg:        rgba(255,255,255,0.7);
  --glass-border:    rgba(0,0,0,0.08);
  --glass-highlight: rgba(0,0,0,0.04);
  --glass-strong:    rgba(0,0,0,0.10);

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg:  0 20px 50px rgba(0,0,0,0.18);
  --shadow-glow-pink:   0 0 20px rgba(233,30,140,0.25);
  --shadow-glow-purple: 0 0 20px rgba(124,58,237,0.25);
  --shadow-glow-blue:   0 0 20px rgba(37,99,235,0.25);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--glass-strong);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

html { scrollbar-width: thin; scrollbar-color: var(--glass-strong) transparent; }

body {
  background-color: var(--bg-main);
  background-image:
    radial-gradient(ellipse at 0% 0%,   rgba(255,77,166,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%,  rgba(59,130,246,0.10) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 500;
  height: 100dvh;
  overflow: hidden;
  line-height: 1.5;
  transition: background-color 0.4s ease, color 0.4s ease;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(ellipse at 0% 0%,   rgba(233,30,140,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 0%,  rgba(37,99,235,0.12)  0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%,  rgba(124,58,237,0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 0% 100%,  rgba(22,163,74,0.08)  0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%,rgba(202,138,4,0.08)  0%, transparent 50%);
}

/* =====================================================
   LAYOUT
   ===================================================== */
.app-container {
  display: flex;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar {
  width: var(--sidebar-width);
  background: linear-gradient(180deg,
    rgba(16,22,38,0.97) 0%,
    rgba(22,30,52,0.95) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1.5px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  transition: var(--transition-smooth);
  overflow: hidden;
  box-shadow: 2px 0 20px rgba(0,0,0,0.2);
}

[data-theme="light"] .sidebar {
  background: linear-gradient(180deg,
    rgba(240,244,255,0.96) 0%,
    rgba(226,232,248,0.94) 100%);
}

/* Decoración fondo sidebar */
.sidebar::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,77,166,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.sidebar::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.logo { height: 46px; }

.close-sidebar-btn {
  display: none;
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  transition: var(--transition);
}
.close-sidebar-btn:hover { background: var(--glass-strong); }

/* ── User mini profile ── */
.user-mini-profile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, rgba(255,77,166,0.12) 0%, rgba(168,85,247,0.08) 100%);
  border: 1.5px solid rgba(255,77,166,0.25);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition);
  z-index: 1;
}
.user-mini-profile::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.5s ease;
}
.user-mini-profile:hover::before { left: 150%; }
.user-mini-profile:hover {
  border-color: rgba(255,77,166,0.5);
  box-shadow: var(--shadow-glow-pink);
  transform: translateY(-2px) scale(1.01);
}

[data-theme="light"] .user-mini-profile {
  background: linear-gradient(135deg, rgba(233,30,140,0.08) 0%, rgba(124,58,237,0.06) 100%);
  border-color: rgba(233,30,140,0.2);
}

.avatar-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--clr-pink), var(--clr-purple), var(--clr-blue));
  box-shadow: 0 0 14px rgba(255,77,166,0.5);
  transition: var(--transition);
  flex-shrink: 0;
}
.user-mini-profile:hover .avatar-circle { transform: rotate(8deg) scale(1.08); }
.avatar-circle img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--bg-main);
}
[data-theme="light"] .avatar-circle img { border-color: var(--bg-secondary); }

.user-info { flex: 1; min-width: 0; }
.user-info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.user-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Navegación ── */
.nav-links {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.nav-links li a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.nav-links li a i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
}
.nav-links li a:hover {
  background: var(--glass-strong);
  color: var(--text-main);
  transform: translateX(5px);
}

/* Unique color accents per nav item on hover */
.nav-links li:nth-child(1) a:hover { background: rgba(255,77,166,0.12); color: var(--clr-pink); }
.nav-links li:nth-child(2) a:hover { background: rgba(168,85,247,0.12); color: var(--clr-purple); }
.nav-links li:nth-child(3) a:hover { background: rgba(59,130,246,0.12); color: var(--clr-blue); }
.nav-links li:nth-child(4) a:hover { background: rgba(34,197,94,0.12);  color: var(--clr-green); }
.nav-links li:nth-child(5) a:hover { background: rgba(250,204,21,0.12); color: var(--clr-yellow); }
.nav-links li:nth-child(6) a:hover { background: rgba(251,146,60,0.12); color: var(--clr-orange); }
.nav-links li:nth-child(7) a:hover { background: rgba(6,182,212,0.12);  color: var(--clr-cyan); }
.nav-links li:nth-child(8) a:hover { background: rgba(45,212,191,0.12); color: var(--clr-teal); }

.nav-links li.active a {
  background: linear-gradient(135deg, rgba(255,77,166,0.20) 0%, rgba(168,85,247,0.14) 100%);
  color: var(--accent-primary);
  border: 1.5px solid rgba(255,77,166,0.28);
  box-shadow: inset 0 0 16px rgba(255,77,166,0.07), 0 2px 8px rgba(255,77,166,0.12);
}
.nav-links li.active a::before {
  content: '';
  position: absolute;
  left: 0; top: 15%; bottom: 15%;
  width: 3px;
  background: linear-gradient(180deg, var(--clr-pink), var(--clr-purple));
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 10px rgba(255,77,166,0.6);
}

/* ── Sidebar footer ── */
.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

/* Botón tema claro/oscuro */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem;
  background: linear-gradient(135deg, rgba(250,204,21,0.12) 0%, rgba(251,146,60,0.12) 100%);
  border: 1.5px solid rgba(250,204,21,0.25);
  border-radius: var(--radius-md);
  color: var(--clr-yellow);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}
.theme-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(250,204,21,0.2) 0%, rgba(251,146,60,0.2) 100%);
  box-shadow: 0 0 16px rgba(250,204,21,0.3);
  transform: translateY(-2px);
}
[data-theme="light"] .theme-toggle-btn {
  background: linear-gradient(135deg, rgba(30,27,75,0.08) 0%, rgba(88,28,135,0.08) 100%);
  border-color: rgba(124,58,237,0.25);
  color: var(--clr-purple);
}
.theme-toggle-btn .icon-moon { display: block; }
.theme-toggle-btn .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle-btn .icon-moon { display: none; }
[data-theme="light"] .theme-toggle-btn .icon-sun  { display: block; }

.logout-btn, .login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem;
  border: 1.5px solid rgba(248,113,113,0.3);
  border-radius: var(--radius-md);
  background: rgba(248,113,113,0.08);
  color: var(--clr-red);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}
.logout-btn:hover, .login-btn:hover {
  background: rgba(248,113,113,0.18);
  box-shadow: 0 0 14px rgba(248,113,113,0.3);
  transform: translateY(-2px);
}
.login-btn { border-color: rgba(255,77,166,0.3); background: rgba(255,77,166,0.08); color: var(--accent-primary); }
.login-btn:hover { background: rgba(255,77,166,0.18); box-shadow: var(--shadow-glow-pink); }

.sidebar-legal {
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}
.sidebar-legal-links { display: flex; gap: 1rem; }
.sidebar-legal-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: var(--transition-fast);
}
.sidebar-legal-links a:hover { color: var(--accent-primary); }
.sidebar-legal-copyright { color: var(--text-dim); font-size: 0.68rem; }

.trustpilot-container { margin-top: 0.5rem; }

/* =====================================================
   MAIN CONTENT & HEADER
   ===================================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.top-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1.5px solid var(--glass-border);
  background: rgba(20, 29, 46, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-shrink: 0;
  gap: 0.75rem;
  transition: background-color 0.4s ease;
  position: relative;
  z-index: 200;
  /* Subtle bottom glow line */
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 20px rgba(0,0,0,0.2);
}

[data-theme="light"] .top-header {
  background: rgba(255,255,255,0.90);
  border-bottom-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.menu-btn {
  display: none;
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.menu-btn:hover { background: var(--glass-strong); }

.page-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--clr-pink) 0%, var(--clr-purple) 55%, var(--clr-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

/* Balance card — premium pill */
.balance-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg,
    rgba(250,204,21,0.08) 0%,
    rgba(255,77,166,0.06) 100%);
  border: 1.5px solid rgba(250,204,21,0.20);
  padding: 0.35rem 0.35rem 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
  transition: var(--transition);
  flex-shrink: 0;
}
.balance-card:hover {
  border-color: rgba(250,204,21,0.4);
  box-shadow: 0 0 18px rgba(250,204,21,0.18), var(--shadow-glow-pink);
  transform: translateY(-1px);
}

.balance-icon {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #facc15, #fb923c);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #431407;
  font-size: 0.75rem;
  box-shadow: 0 2px 10px rgba(250,204,21,0.45);
  flex-shrink: 0;
}
.balance-info { display: flex; flex-direction: column; line-height: 1; }
.balance-info span {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}
.balance-amount {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 700;
}
.add-money-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--clr-yellow), var(--clr-orange));
  color: #431407;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(250,204,21,0.4);
  flex-shrink: 0;
}
.add-money-btn:hover {
  transform: rotate(90deg) scale(1.12);
  box-shadow: 0 4px 16px rgba(250,204,21,0.6);
}

/* =====================================================
   CONTENT AREA
   ===================================================== */
.content-area {
  flex: 1;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  position: relative;
  scroll-behavior: smooth;
}

/* Thin scrollbar for content-area */
.content-area::-webkit-scrollbar { width: 4px; }
.content-area::-webkit-scrollbar-track { background: transparent; }
.content-area::-webkit-scrollbar-thumb {
  background: var(--glass-strong);
  border-radius: var(--radius-full);
}
.content-area::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* =====================================================
   CARDS GENÉRICOS
   ===================================================== */
.card {
  background: var(--bg-card);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}
.card:hover {
  border-color: var(--glass-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--clr-pink), var(--clr-purple));
  color: white;
  box-shadow: 0 4px 16px rgba(255,77,166,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,77,166,0.5); }
.btn-secondary {
  background: var(--glass-highlight);
  border: 1.5px solid var(--glass-border);
  color: var(--text-main);
}
.btn-secondary:hover { background: var(--glass-strong); transform: translateY(-2px); }
.btn-danger {
  background: rgba(248,113,113,0.12);
  border: 1.5px solid rgba(248,113,113,0.3);
  color: var(--clr-red);
}
.btn-danger:hover { background: rgba(248,113,113,0.22); transform: translateY(-2px); }
.btn-success {
  background: linear-gradient(135deg, var(--clr-green), var(--clr-teal));
  color: white;
  box-shadow: 0 4px 16px rgba(34,197,94,0.3);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34,197,94,0.45); }
.full-width { width: 100%; }

/* =====================================================
   INPUTS / FORMS
   ===================================================== */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--glass-highlight);
  border: 1.5px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-smooth);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255,77,166,0.15);
  background: var(--glass-strong);
}
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(255,255,255,0.7);
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  background: white;
}

/* =====================================================
   MODAL DE AUTH
   ===================================================== */
.auth-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.auth-modal:not(.hidden) { opacity: 1; pointer-events: auto; }

.auth-modal .modal-card {
  background: var(--bg-card);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-xl);
  width: 90%; max-width: 420px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalPop {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0);       opacity: 1; }
}
/* Decoración top del modal */
.auth-modal .modal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-pink), var(--clr-purple), var(--clr-blue), var(--clr-cyan));
}

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--glass-highlight);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.modal-close:hover { color: var(--text-main); background: var(--glass-strong); }

.auth-tabs {
  display: flex;
  background: var(--glass-highlight);
  border-bottom: 1.5px solid var(--glass-border);
}
.auth-tab {
  flex: 1; padding: 0.9rem;
  background: transparent; border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-bottom: 2.5px solid transparent;
}
.auth-tab:hover { color: var(--text-main); }
.auth-tab.active { color: var(--accent-primary); border-bottom-color: var(--accent-primary); }

.auth-content { padding: 1.5rem; }
.auth-form { display: none; flex-direction: column; gap: 1rem; }
.auth-form.active { display: flex; }

/* =====================================================
   PÁGINA LOADER
   ===================================================== */
#page-loader {
  position: fixed; inset: 0;
  background: var(--bg-main);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
}
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.premium-spinner { position: relative; width: 60px; height: 60px; }
.spinner-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: spinRing 1.2s linear infinite;
}
.spinner-ring:nth-child(1) {
  border-top-color: var(--clr-pink);
  animation-duration: 1s;
}
.spinner-ring:nth-child(2) {
  border-bottom-color: var(--clr-purple);
  inset: 8px;
  animation-duration: 0.8s;
  animation-direction: reverse;
}
@keyframes spinRing { to { transform: rotate(360deg); } }
.loader-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-muted);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* =====================================================
   MARKETPLACE HERO (index) — compact, below grid
   ===================================================== */
.marketplace-hero {
  background: linear-gradient(135deg, rgba(255,77,166,0.10) 0%, rgba(168,85,247,0.07) 50%, rgba(59,130,246,0.07) 100%);
  border: 1.5px solid rgba(255,77,166,0.18);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.marketplace-hero::before {
  content: '🐾';
  position: absolute;
  font-size: 6rem;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.15;
  pointer-events: none;
}
.hero-left h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--clr-pink), var(--clr-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}
.hero-left p { color: var(--text-muted); font-size: 0.9rem; }

/* =====================================================
   MARKETPLACE CONTROLS / FILTROS
   ===================================================== */
.marketplace-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  align-items: center;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.75rem;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--glass-highlight);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  flex: 1;
  min-width: 200px;
  transition: var(--transition-smooth);
}
.search-bar:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(255,77,166,0.12);
  background: var(--glass-strong);
}
.search-bar i { color: var(--text-muted); font-size: 0.9rem; }
.search-bar input {
  background: none; border: none; outline: none;
  color: var(--text-main); font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 500; width: 100%;
}
.search-bar input::placeholder { color: var(--text-muted); }

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--glass-border);
  background: var(--glass-highlight);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.83rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.filter-btn:hover { background: var(--glass-strong); color: var(--text-main); transform: translateY(-1px); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--clr-pink), var(--clr-purple));
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(255,77,166,0.4);
}

/* Pet property toggles */
.pet-filters-section {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  width: 100%;
}

.filter-toggle {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--glass-border);
  background: var(--glass-highlight);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.filter-toggle:hover { background: var(--glass-strong); color: var(--text-main); }
.filter-toggle.active { border-color: transparent; color: white; }
.filter-toggle[data-prop="neon"].active  { background: linear-gradient(135deg,#a855f7,#ec4899); box-shadow: 0 0 14px rgba(168,85,247,0.5); }
.filter-toggle[data-prop="mega"].active  { background: linear-gradient(135deg,#facc15,#fb923c); color: #1a0700; box-shadow: 0 0 14px rgba(250,204,21,0.5); }
.filter-toggle[data-prop="fly"].active   { background: linear-gradient(135deg,#3b82f6,#06b6d4); box-shadow: 0 0 14px rgba(59,130,246,0.5); }
.filter-toggle[data-prop="ride"].active  { background: linear-gradient(135deg,#22c55e,#2dd4bf); color: #011a0a; box-shadow: 0 0 14px rgba(34,197,94,0.5); }

.t-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  font-size: 0.65rem; font-weight: 900;
}
.badge-n { background: rgba(168,85,247,0.3); color: #d8b4fe; }
.badge-m { background: rgba(250,204,21,0.3); color: #fef08a; }
.badge-f { background: rgba(59,130,246,0.3);  color: #93c5fd; }
.badge-r { background: rgba(34,197,94,0.3);   color: #86efac; }

/* =====================================================
   TARJETAS DE PETS
   ===================================================== */
.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.pet-card {
  background: var(--bg-card);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(8px);
}
.pet-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255,77,166,0.4);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3), var(--shadow-glow-pink);
}
.pet-card-image-wrapper {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(255,77,166,0.06) 0%, rgba(168,85,247,0.06) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pet-card-image-wrapper img {
  width: 80%; height: 80%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pet-card:hover .pet-card-image-wrapper img { transform: scale(1.12) rotate(-3deg); }

.pet-card-badges {
  position: absolute; top: 6px; left: 6px;
  display: flex; gap: 3px; flex-wrap: wrap;
}
.pet-badge {
  font-size: 0.6rem; font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  line-height: 1;
}
.pet-badge.neon   { background: rgba(168,85,247,0.85); color: white; }
.pet-badge.mega   { background: rgba(250,204,21,0.9);  color: #1a0700; }
.pet-badge.fly    { background: rgba(59,130,246,0.85); color: white; }
.pet-badge.ride   { background: rgba(34,197,94,0.85);  color: #001a06; }

.pet-card-info {
  padding: 0.75rem;
}
.pet-card-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pet-card-price {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--clr-yellow), var(--clr-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pet-card-seller {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* =====================================================
   SELLER PROFILE BANNER
   ===================================================== */
.seller-profile-card {
  background: linear-gradient(135deg, rgba(255,77,166,0.10) 0%, rgba(168,85,247,0.08) 100%);
  border: 1.5px solid rgba(255,77,166,0.2);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.seller-card-header { display: flex; align-items: center; gap: 1rem; }
.seller-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-pink), var(--clr-purple));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem;
  box-shadow: 0 0 16px rgba(255,77,166,0.4);
}
.seller-details h2 { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-main); }
.seller-details p  { font-size: 0.82rem; color: var(--text-muted); }
.back-marketplace-btn {
  margin-left: auto;
  background: var(--glass-highlight);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; gap: 0.4rem;
  transition: var(--transition);
}
.back-marketplace-btn:hover { color: var(--text-main); background: var(--glass-strong); }

/* =====================================================
   SORT / PAGINATION CONTROLES
   ===================================================== */
.sort-controls {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.sort-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--glass-border);
  background: var(--glass-highlight);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: var(--transition);
}
.sort-btn:hover { background: var(--glass-strong); color: var(--text-main); }
.sort-btn.active {
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(6,182,212,0.2));
  border-color: rgba(59,130,246,0.4);
  color: var(--clr-blue);
}

.pagination { display: flex; gap: 0.5rem; align-items: center; margin-top: 1.25rem; justify-content: center; }
.page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--glass-border);
  background: var(--glass-highlight);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.page-btn:hover { background: var(--glass-strong); color: var(--text-main); }
.page-btn.active {
  background: linear-gradient(135deg, var(--clr-pink), var(--clr-purple));
  border-color: transparent; color: white;
  box-shadow: 0 4px 14px rgba(255,77,166,0.4);
}

/* =====================================================
   PRICE RANGE
   ===================================================== */
.price-range-container {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--glass-highlight);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  flex-wrap: wrap;
}
.price-range-container input[type="number"] {
  background: none; border: none; outline: none;
  color: var(--text-main); font-family: var(--font-body);
  font-weight: 700; font-size: 0.85rem;
  width: 60px; text-align: center;
}
.price-range-container span { color: var(--text-dim); font-size: 0.8rem; }

/* =====================================================
   POP-UP / MODAL DE PET
   ===================================================== */
.pet-popup {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(14px);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.popup-card {
  background: var(--bg-card);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 480px; width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.popup-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-pink), var(--clr-purple), var(--clr-blue), var(--clr-cyan), var(--clr-green));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* =====================================================
   TOASTS / NOTIFICACIONES
   ===================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 9000;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--bg-card);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  min-width: 260px; max-width: 360px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  animation: toastIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.toast-icon { font-size: 1.2rem; flex-shrink: 0; }
.toast.success { border-color: rgba(34,197,94,0.35); }
.toast.success .toast-icon { color: var(--clr-green); }
.toast.error   { border-color: rgba(248,113,113,0.35); }
.toast.error   .toast-icon { color: var(--clr-red); }
.toast.info    { border-color: rgba(59,130,246,0.35); }
.toast.info    .toast-icon { color: var(--clr-blue); }
.toast.warning { border-color: rgba(250,204,21,0.35); }
.toast.warning .toast-icon { color: var(--clr-yellow); }
.toast-content { flex: 1; font-size: 0.88rem; font-weight: 600; line-height: 1.4; }

/* =====================================================
   RAINBOW DIVIDER (decorativo)
   ===================================================== */
.rainbow-line {
  height: 3px;
  background: linear-gradient(90deg, var(--clr-pink), var(--clr-purple), var(--clr-blue), var(--clr-cyan), var(--clr-green), var(--clr-yellow), var(--clr-orange));
  border-radius: var(--radius-full);
  margin: 1rem 0;
  opacity: 0.6;
}

/* =====================================================
   TAGS / BADGES
   ===================================================== */
.tag {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700;
}
.tag-pink   { background: rgba(255,77,166,0.15); color: var(--clr-pink);   border: 1px solid rgba(255,77,166,0.25); }
.tag-purple { background: rgba(168,85,247,0.15); color: var(--clr-purple); border: 1px solid rgba(168,85,247,0.25); }
.tag-blue   { background: rgba(59,130,246,0.15); color: var(--clr-blue);   border: 1px solid rgba(59,130,246,0.25); }
.tag-green  { background: rgba(34,197,94,0.15);  color: var(--clr-green);  border: 1px solid rgba(34,197,94,0.25);  }
.tag-yellow { background: rgba(250,204,21,0.15); color: var(--clr-yellow); border: 1px solid rgba(250,204,21,0.25); }
.tag-orange { background: rgba(251,146,60,0.15); color: var(--clr-orange); border: 1px solid rgba(251,146,60,0.25); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
/* Sidebar collapses to overlay at 1200px */
@media (max-width: 1200px) {
  .sidebar {
    position: fixed; top: 0; left: 0;
    height: 100dvh; width: 280px;
    transform: translateX(-100%);
    z-index: 1000;
    box-shadow: 6px 0 40px rgba(0,0,0,0.6);
  }
  .sidebar.open { transform: translateX(0); }
  .close-sidebar-btn { display: flex !important; }
  .menu-btn { display: flex !important; }
}

@media (max-width: 768px) {
  .app-container { overflow-x: hidden; }

  .top-header {
    padding: 0 0.85rem;
    gap: 0.5rem;
    height: 60px;
  }
  .page-title { font-size: 1.15rem; flex-shrink: 0; }
  .content-area { padding: 0.85rem; }
  .pets-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
  .header-actions { gap: 0.4rem; }
}

@media (max-width: 480px) {
  .balance-info span { display: none; }
  .balance-amount { font-size: 0.9rem; }
  .balance-icon { display: none; }
  .balance-card { padding: 0.35rem 0.35rem 0.35rem 0.6rem; }
  .pets-grid { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 1rem; }
}

/* ===================================================
   NOTIFICATION BELL
   =================================================== */
.notif-bell-wrapper {
  position: relative;
}

.notif-bell-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.notif-bell-btn:hover {
  background: rgba(255, 77, 166, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 9px;
  font-size: 0.62rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  pointer-events: none;
  border: 2px solid var(--bg-main);
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-height: 480px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.notif-panel.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.notif-mark-all {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}

.notif-mark-all:hover {
  background: rgba(255, 77, 166, 0.12);
}

.notif-list {
  overflow-y: auto;
  flex: 1;
}

.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }
.notif-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255, 255, 255, 0.04); }
.notif-item.unread { background: rgba(255, 77, 166, 0.05); }

.notif-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

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

.notif-title {
  font-weight: 600;
  font-size: 0.83rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-msg {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  opacity: 0.65;
}

.notif-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-primary);
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
}

.notif-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--text-muted);
  gap: 10px;
}

.notif-empty i { font-size: 2rem; opacity: 0.4; }
.notif-empty p { font-size: 0.82rem; opacity: 0.6; margin: 0; }

@media (max-width: 480px) {
  .notif-panel { width: calc(100vw - 32px); right: -60px; }
}
