  /* ========== TIPOGRAFÍA DE TÍTULOS (cambia según el tema elegido) ========== */
  h1, h2, h3, .login-title, .text-xl.font-bold, .font-display{
    font-family:var(--t-font-display);
    letter-spacing:0.01em;
  }

  /* ========== SELECTOR DE TEMAS (rediseñado - compacto + estilo discoteca) ========== */
  .theme-swatch-wrap{
    display:flex; flex-direction:column; align-items:center; gap:3px;
  }
  .theme-swatch{
    position:relative; width:28px; height:28px; border-radius:50%; cursor:pointer;
    padding:0; border:none;
    display:flex; align-items:center; justify-content:center;
  }
  .theme-swatch::before{
    content:''; position:absolute; inset:-3px; border-radius:50%;
    background:var(--ring-gradient);
    opacity:0.55;
    animation:swatchRingSpin 5s linear infinite;
    transition:opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  }
  .theme-swatch-wrap.selected .theme-swatch::before{
    opacity:1; transform:scale(1.1);
    box-shadow:0 0 10px var(--ring-glow), 0 0 2px var(--ring-glow);
  }
  @keyframes swatchRingSpin{ to{ transform:rotate(360deg); } }
  .theme-swatch-fill{
    position:relative; width:23px; height:23px; border-radius:50%;
    background:var(--fill-gradient);
    border:1.5px solid rgba(20,5,5,0.9);
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
  }
  /* destello tipo bola de espejos: un brillo diagonal que cruza el círculo */
  .theme-swatch-fill::after{
    content:''; position:absolute; inset:0;
    background:linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.75) 48%, transparent 62%);
    background-size:220% 220%;
    background-position:120% -20%;
    animation:swatchSparkle 3.4s ease-in-out infinite;
    mix-blend-mode:overlay;
    pointer-events:none;
  }
  @keyframes swatchSparkle{
    0%,100%{ background-position:130% -30%; opacity:.5; }
    50%{ background-position:-30% 130%; opacity:1; }
  }
  .theme-swatch-check{
    position:relative; z-index:1;
    opacity:0; transform:scale(0.4);
    color:white; font-size:11px; font-weight:800;
    filter:drop-shadow(0 1px 2px rgba(0,0,0,0.6));
  }
  .theme-swatch-wrap.selected .theme-swatch-check{ opacity:1; transform:scale(1); }
  .theme-swatch-label{
    font-size:8.5px; color:#9ca3af; text-align:center; max-width:40px; line-height:1.2;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    letter-spacing:0.01em;
  }
  .theme-swatch-wrap.selected .theme-swatch-label{ color:white; font-weight:600; }
  @media (prefers-reduced-motion: reduce){
    .theme-swatch::before, .theme-swatch-fill::after{ animation:none !important; }
  }

  /* ---- panel contenedor: glassmorphism + borde neón + apertura animada ---- */
  .theme-panel{
    display:flex; flex-direction:column;
    position:fixed; top:calc(var(--header-h) + 8px); right:clamp(12px, 4vw, 18px);
    background:linear-gradient(160deg, rgba(18,4,28,0.94), rgba(8,2,14,0.97));
    backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
    border:1px solid color-mix(in srgb, var(--t-primary) 45%, transparent);
    border-radius:16px; padding:12px; z-index:200; width:216px;
    box-shadow:0 8px 28px rgba(0,0,0,0.55),
      0 0 0 1px color-mix(in srgb, var(--t-glow) 12%, transparent) inset,
      0 0 18px color-mix(in srgb, var(--t-secondary) 22%, transparent);
    opacity:0; visibility:hidden; transform:translateY(-8px) scale(0.94);
    transform-origin:top right;
    transition:opacity .2s ease, transform .22s cubic-bezier(.34,1.56,.64,1), visibility .2s;
  }
  .theme-panel.open{ opacity:1; visibility:visible; transform:translateY(0) scale(1); }
  .theme-panel-title{
    font-size:10px; color:#c4b5fd; margin:0 0 8px; letter-spacing:0.08em;
    display:flex; align-items:center; gap:5px; font-weight:700;
  }
  .theme-panel-title .sparkle{
    animation:titleSparkleSpin 3s linear infinite;
    display:inline-block; font-size:11px;
  }
  @keyframes titleSparkleSpin{ to{ transform:rotate(360deg); } }
  #themeGrid{ display:grid; grid-template-columns:repeat(6,1fr); gap:8px 3px; }
  @media (prefers-reduced-motion: reduce){
    .theme-panel-title .sparkle{ animation:none; }
  }


