/* GENERADO por scripts/build-css-shell.js -- NO editar a mano.
   Fuentes: public/css/{tokens,global,mobile,ui-upgrade,section-polish,navigation-auth-modern,design-system,content-rail,components,components-core,birthday-modal,credentials-completion-modal,weekly-banner,mobile-app-foundation}.css */

/* ===== css/tokens.css ===== */
/*
 * tokens.css  --  INVENTARIO CANONICO DE DESIGN TOKENS  (Fase 1a, no-destructivo)
 * ---------------------------------------------------------------------------
 * Fuente unica de verdad HACIA LA QUE MIGRAR. Hoy NO cambia nada: se carga
 * primero dentro de @layer vsg-universal, asi que CUALQUIER definicion de
 * :root en global.css / design-system.css / ui-upgrade.css / etc. la pisa
 * (misma capa, cargada despues) o la pisa la "capa cero" (hojas sin @layer).
 * Los valores de abajo son el valor COMPUTADO real hoy en la app corriendo
 * (scripts/css-tokens-baseline.js, ruta / , viewport desktop) -- no una
 * transcripcion a mano.
 *
 * Plan:
 *  - Fase 1a (esto): existe el inventario. Cero riesgo visual.
 *  - Fase 1b: borrar los :root dispersos de los otros archivos y dejar SOLO
 *    este. Antes: node scripts/css-tokens-baseline.js ; despues del cambio:
 *    node scripts/css-tokens-baseline.js --check  (falla si algun token
 *    cambio de valor computado).
 *  - Fase 4: cada seccion migra sus literales a estos tokens.
 *
 * NO agregar tokens nuevos sin entrada aca. NO usar !important en este archivo.
 * Los --vsg-mobile-* viven solo en @media (mobile) y NO van aca a proposito:
 * definirlos sin condicion romperia los var(--x, fallback) en desktop.
 */
@layer vsg-universal {
  :root {

  /* Marca y color */
  --accent-color: #818cf8;
  --bg-card: rgba(12, 20, 36, 0.85);
  --bg-card-hover: rgba(16, 28, 50, 0.95);
  --bg-color: #1a1a2e;
  --bg-input: rgba(6, 12, 24, 0.85);
  --bg-page: #060b14;
  --border-color: rgba(255, 255, 255, 0.1);
  --border-danger: rgba(248, 113, 113, 0.35);
  --border-focus: #38bdf8;
  --border-hover: rgba(56, 189, 248, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.05);
  --focus-ring: 0 0 0 2px rgba(56, 189, 248, 0.45);
  --focus-ring-strong: 0 0 0 1px rgba(186,230,253,0.25), 0 0 0 4px rgba(56,189,248,0.24);
  --primary-color: #38bdf8;
  --primary-hover: #7dd3fc;
  --surface-1: rgba(15, 23, 42, 0.72);
  --surface-2: rgba(30, 41, 59, 0.72);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;  /* hoy: design-system.css + global.css */
  --text-primary: #ffffff;
  --text-sub: #94a3b8;
  --vsg-blue: #2589dc;  /* hoy: design-system.css + navigation-auth-modern.css */
  --vsg-border: rgba(125, 168, 218, 0.16);
  --vsg-cyan: #4ed2ff;  /* hoy: design-system.css + navigation-auth-modern.css */
  --vsg-hue-primary: 198deg;
  --vsg-light-primary: 50%;
  --vsg-primary: hsl(198deg 100% 50%);
  --vsg-primary-glow: hsl(198deg 100% 65% / 0.25);
  --vsg-sat-primary: 100%;
  --vsg-surface: hsl(221deg 65% 9%);
  --vsg-surface-2: hsl(222deg 58% 12%);
  --vsg-surface-hsl: 221deg 65% 9%;

  /* Tipografia */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ui: 'Inter', 'Segoe UI', sans-serif;
  --fs-2xl: 1.8rem;
  --fs-2xs: 0.66rem;
  --fs-base: 0.85rem;
  --fs-lg: 1.1rem;
  --fs-md: 0.95rem;
  --fs-sm: 0.78rem;
  --fs-xl: 1.35rem;
  --fs-xs: 0.72rem;
  --text-2xl: 1.5rem;
  --text-2xs: 0.625rem;
  --text-3xl: 1.85rem;
  --text-4xl: 2.25rem;
  --text-base: 0.92rem;
  --text-lg: 1.05rem;  /* hoy: design-system.css + global.css */
  --text-md: clamp(0.95rem, 0.3vw + 0.9rem, 1.05rem);
  --text-sm: 0.84rem;  /* hoy: design-system.css + global.css */
  --text-xl: 1.25rem;
  --text-xs: 0.75rem;  /* hoy: design-system.css + global.css */
  --type-body: 0.9rem;
  --type-card-title: clamp(0.98rem, 1.08vw, 1.12rem);
  --type-kicker: 0.67rem;
  --type-page-title: clamp(1.5rem, 1.9vw, 1.85rem);
  --type-section-title: clamp(1.2rem, 1.45vw, 1.48rem);

  /* Espaciado */
  --space-1: clamp(6px, 0.35vw, 8px);
  --space-2: clamp(8px, 0.5vw, 12px);
  --space-2xs: clamp(0.25rem, 0.2rem + 0.2vw, 0.4rem);
  --space-3: clamp(12px, 0.8vw, 16px);
  --space-4: clamp(16px, 1.1vw, 22px);
  --space-5: clamp(22px, 1.5vw, 30px);
  --space-6: 24px;
  --space-8: 32px;
  --space-lg: clamp(1.3rem, 1rem + 0.9vw, 1.9rem);
  --space-md: clamp(0.95rem, 0.75rem + 0.6vw, 1.3rem);
  --space-sm: clamp(0.7rem, 0.55rem + 0.4vw, 0.95rem);
  --space-xs: clamp(0.45rem, 0.35rem + 0.3vw, 0.65rem);

  /* Radios */
  --border-radius: 16px;
  --radius-full: 9999px;
  --radius-lg: 16px;  /* hoy: design-system.css + global.css + ui-upgrade.css */
  --radius-md: 12px;  /* hoy: design-system.css + global.css + ui-upgrade.css */
  --radius-pill: 999px;
  --radius-sm: 8px;  /* hoy: design-system.css + global.css + ui-upgrade.css */
  --radius-xl: 20px;
  --radius-xs: 6px;  /* hoy: design-system.css + global.css */
  --vsg-radius: 18px;

  /* Elevacion / sombra */
  --elev-1: 0 6px 18px rgba(0,0,0,0.18);
  --elev-2: 0 12px 26px rgba(0,0,0,0.24);
  --elev-3: 0 18px 40px rgba(0,0,0,0.3);
  --shadow-1: 0 4px 12px rgba(0, 0, 0, .18);
  --shadow-2: 0 12px 28px rgba(0, 0, 0, .28);
  --shadow-3: 0 20px 48px rgba(0, 0, 0, .42);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);  /* hoy: design-system.css + ui-upgrade.css */
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.08);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 8px 24px rgba(2, 6, 23, 0.25);
  --vsg-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-base: 220ms;
  --motion-fast: 140ms;
  --transition-base: 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-speed: 0.3s;

  /* Layout */
  --sidebar-width: clamp(220px, 14.5vw, 252px);  /* hoy: global.css + navigation-auth-modern.css + navigation-auth-modern.css @media; mobile 250px */
  --vsg-banner-height: 144px;
  --vsg-banner-max-width: 1400px;
  --vsg-content-rail-width: min(100%, 1400px);

  /* Capas (z-index) */
  --z-base: 1;
  --z-bottom-nav: 600;
  --z-drawer: 800;
  --z-elevated: 10;
  --z-header: 500;
  --z-modal: 1050;
  --z-modal-backdrop: 1000;
  --z-sticky: 100;
  --z-toast: 2000;
  --z-tooltip: 3000;

  /* Glass / skeleton */
  --vsg-glass-bg: linear-gradient(145deg, rgba(13, 24, 49, 0.78), rgba(5, 11, 27, 0.88));
  --vsg-glass-blur: none;
  --vsg-glass-border: 1px solid rgba(125, 168, 218, 0.18);
  --vsg-skeleton-bg: rgba(255, 255, 255, 0.05);
  --vsg-skeleton-shimmer: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);

  /* Otros */
  --vsg-font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --vsg-line: rgba(148, 163, 184, 0.16);
  --vsg-panel: rgba(8, 13, 31, 0.92);
  --vsg-violet: #8b5cf6;
  }
}

/* ===== css/global.css ===== */
@layer vsg-universal {
select.form-control:not([multiple], [size]) {
    min-height: 38px !important;
    padding: 5px 38px 5px 12px !important;
    line-height: 1.3 !important;
    vertical-align: middle;
    background-position: right 13px center !important;
    background-size: 13px 13px;
}
select.form-control:not([multiple], [size]) option {
    line-height: 1.35;
}
@media (max-width: 992px) {
    select.form-control:not([multiple], [size]) {
        min-height: 48px !important;
    }
}
.gp-page-shell {
    width: min(1240px, 100%);
    margin: 0;
    display: grid;
    gap: 16px;
    padding: 4px 0 28px;
}
.gp-page-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 16px;
    background: linear-gradient(120deg, rgba(7, 27, 52, .92), rgba(13, 20, 46, .94));
    box-shadow: 0 12px 30px rgba(1, 5, 18, .22);
}
.gp-page-brand, .gp-page-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gp-page-brand img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; flex: 0 0 auto; }
.gp-page-brand span { display: block; color: var(--primary-color); font-size: .66rem; font-weight: 800; letter-spacing: .12em; }
.gp-page-brand h1 { margin: 2px 0 0; color: var(--text-main); font-size: clamp(1rem, 2vw, 1.32rem); line-height: 1.05; }
.gp-page-tier { color: #c4b5fd; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.gp-page-back, .gp-page-share { width: auto; min-height: 34px; padding: 7px 12px; white-space: nowrap; }
.gp-page-loading, .gp-page-shell > .gp-empty { margin: 0; padding: 34px; border: 1px solid rgba(125, 211, 252, .14); border-radius: 16px; text-align: center; }
.gp-page-shell .gp-shell-v2 { width: 100%; height: auto; min-height: 0; }
.gp-page-shell .gp-tab-panel { flex: 0 0 auto; min-height: 0; overflow: visible; padding: 8px 2px 2px; }
.gp-page-shell .gp-characters { max-height: none; }
.gp-page-shell .gp-tabs {
    width: fit-content;
    max-width: 100%;
    padding: 4px;
    border: 1px solid rgba(125, 211, 252, .16);
    border-radius: 12px;
    background: rgba(2, 8, 23, .68);
}
.gp-page-shell .gp-tab-btn { flex: 0 0 auto; border-radius: 8px; padding: 8px 13px; }
.gp-page-shell .gp-tab-btn.is-active { border-bottom-color: rgba(56, 189, 248, .25); }
@media (max-width: 760px) {
    .gp-page-shell { width: min(100% - 18px, 620px); gap: 10px; padding-bottom: 18px; }
    .gp-page-top { padding: 11px; border-radius: 14px; align-items: flex-start; flex-wrap: wrap; }
    .gp-page-brand { flex: 1 1 180px; }
    .gp-page-brand img { width: 32px; height: 32px; }
    .gp-page-brand span { font-size: .58rem; }
    .gp-page-brand h1 { font-size: 1.04rem; }
    .gp-page-actions { flex: 0 1 auto; gap: 7px; }
    .gp-page-tier { display: none; }
    .gp-page-back, .gp-page-share { min-height: 32px; padding: 6px 9px; font-size: .74rem; }
    .gp-page-shell .gp-shell-v2 { gap: 10px; }
    .gp-page-shell .gp-banner { min-height: 122px; border-radius: 14px; }
    .gp-page-shell .gp-hero { padding: 14px; }
    .gp-page-shell .gp-tabs { gap: 4px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .gp-page-shell .gp-tabs::-webkit-scrollbar { display: none; }
    .gp-page-shell .gp-tab-btn { flex: 0 0 auto; padding: 7px 10px; font-size: .73rem; }
    .gp-page-shell .gp-tab-panel { padding-top: 2px; }
}
@layer vsg-universal {
    html[data-vsg-palette] body {
        background: var(--bg-color) !important;
        color: var(--text-primary) !important;
    }
    html[data-vsg-palette] body::before {
        background: radial-gradient(circle at 17% 18%, var(--vsg-theme-wash) 0%, transparent 29%), radial-gradient(circle at 86% 74%, color-mix(in srgb, var(--accent-color) 20%, transparent) 0%, transparent 32%) !important;
    }
    html[data-vsg-palette] .sidebar,
    html[data-vsg-palette] .mobile-header {
        background: var(--vsg-theme-sidebar) !important;
        border-color: var(--vsg-theme-border) !important;
        box-shadow: 10px 0 34px color-mix(in srgb, var(--primary-color) 12%, rgba(0,0,0,.62)) !important;
    }
    html[data-vsg-palette] .nav-btn,
    html[data-vsg-palette] .account-tab,
    html[data-vsg-palette] .universal-tab-btn,
    html[data-vsg-palette] .btn-outline {
        background: color-mix(in srgb, var(--primary-color) 8%, #0b1224) !important;
        border-color: color-mix(in srgb, var(--primary-color) 28%, rgba(148,163,184,.28)) !important;
        color: var(--text-muted) !important;
    }
    html[data-vsg-palette] .nav-btn:hover,
    html[data-vsg-palette] .account-tab:hover,
    html[data-vsg-palette] .universal-tab-btn:hover,
    html[data-vsg-palette] .btn-outline:hover {
        background: var(--vsg-theme-hover) !important;
        border-color: var(--primary-hover) !important;
        color: var(--text-primary) !important;
    }
    html[data-vsg-palette] .nav-btn.active,
    html[data-vsg-palette] .account-tab.is-active,
    html[data-vsg-palette] .universal-tab-btn.active,
    html[data-vsg-palette] .universal-tab-btn.is-active,
    html[data-vsg-palette] .btn-primary {
        background: linear-gradient(135deg, var(--primary-color), var(--vsg-theme-strong)) !important;
        border-color: var(--primary-hover) !important;
        color: var(--vsg-button-text, var(--text-primary)) !important;
        text-shadow: var(--vsg-button-text-shadow, 0 1px 2px rgba(0,0,0,.36));
        box-shadow: 0 9px 24px var(--vsg-theme-wash) !important;
    }
    html[data-vsg-palette] .card,
    html[data-vsg-palette] [class~="acc-card"],
    html[data-vsg-palette] .modal-content,
    html[data-vsg-palette] .universal-top-container,
    html[data-vsg-palette] .store-item,
    html[data-vsg-palette] .data-table tr {
        background: var(--card-bg) !important;
        border-color: var(--vsg-theme-border) !important;
        box-shadow: 0 14px 34px color-mix(in srgb, var(--primary-color) 9%, rgba(0,0,0,.42)) !important;
    }
    html[data-vsg-palette] .modal-header,
    html[data-vsg-palette] .data-table th,
    html[data-vsg-palette] .section-header {
        background: color-mix(in srgb, var(--primary-color) 13%, #080e20) !important;
        border-color: var(--vsg-theme-border) !important;
    }
    html[data-vsg-palette] .form-control,
    html[data-vsg-palette] input:not([type="checkbox"], [type="radio"]),
    html[data-vsg-palette] textarea,
    html[data-vsg-palette] select {
        background-color: var(--vsg-theme-input) !important;
        border-color: color-mix(in srgb, var(--primary-color) 32%, rgba(148,163,184,.3)) !important;
        color: var(--text-primary) !important;
    }
    html[data-vsg-palette] .form-control::placeholder,
    html[data-vsg-palette] input::placeholder,
    html[data-vsg-palette] textarea::placeholder { color: var(--text-muted) !important; opacity: .68; }
    html[data-vsg-palette] .form-control:focus,
    html[data-vsg-palette] input:focus,
    html[data-vsg-palette] textarea:focus,
    html[data-vsg-palette] select:focus { border-color: var(--primary-hover) !important; box-shadow: var(--focus-ring) !important; }
    html[data-vsg-palette] h1,
    html[data-vsg-palette] h2,
    html[data-vsg-palette] h3,
    html[data-vsg-palette] h4,
    html[data-vsg-palette] h5,
    html[data-vsg-palette] h6,
    html[data-vsg-palette] th,
    html[data-vsg-palette] strong { color: var(--text-primary); }
    html[data-vsg-palette] p,
    html[data-vsg-palette] small,
    html[data-vsg-palette] label,
    html[data-vsg-palette] td { color: var(--text-muted); }
    html[data-vsg-palette] a:not(.btn-primary, .btn-outline) { color: var(--primary-hover); }
    html[data-vsg-palette] ::selection { background: var(--primary-color); color: var(--text-primary); }
}
@layer vsg-universal {
    html[data-vsg-palette] body {
        background-image: radial-gradient(circle at 84% -10%, var(--vsg-theme-wash, rgba(56,189,248,.15)), transparent 34%);
    }
    html[data-vsg-palette] .sidebar,
    html[data-vsg-palette] .universal-top-container,
    html[data-vsg-palette] .card,
    html[data-vsg-palette] .modal-content {
        border-color: var(--vsg-theme-border, rgba(56,189,248,.42));
    }
    html[data-vsg-palette] .btn-primary,
    html[data-vsg-palette] .nav-btn.active,
    html[data-vsg-palette] .account-tab.is-active {
        border-color: var(--primary-hover) !important;
        background: linear-gradient(135deg, var(--primary-color), var(--vsg-theme-strong, #2563eb)) !important;
        box-shadow: 0 9px 22px var(--vsg-theme-wash, rgba(56,189,248,.24));
    }
    html[data-vsg-palette] a:hover,
    html[data-vsg-palette] .u-primary,
    html[data-vsg-palette] .universal-top-title span { color: var(--primary-hover); }
}
/* Este tramo (hasta la próxima @layer vsg-universal más abajo) NO se envuelve
   en un @layer propio a propósito: el @layer vsg-universal de la línea 1
   nunca se cierra en este archivo (sigue "abierto" hasta cerca del final) --
   así que este contenido "suelto" ya cae dentro de esa MISMA capa, como
   contenido directo, sin necesitar (ni convenir) un @layer nuevo acá.
   Envolverlo en uno propio lo anidaría en un sub-layer con nombre, y un
   sub-layer con nombre pierde SIEMPRE contra el contenido directo de la
   misma capa en otro archivo (ahí vive .sidebar.open, más abajo, contra
   .sidebar de mobile.css) sin importar la especificidad -- eso rompía el
   cierre del sidebar. Mismo patrón que ya usa el resto de este archivo. */
body { margin: 0; font-family: 'Inter', sans-serif; background: var(--bg-color); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; overflow-x: clip; position: relative; z-index: 0; }
*,
*::before,
*::after { box-sizing: border-box; }
@keyframes vsgFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
body::before { 
    content: ''; position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; 
    background: radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.2) 0%, transparent 20%), 
                radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.2) 0%, transparent 20%); 
    z-index: -2; 
    will-change: transform;
}
.loader-wrapper { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 0.95; contain: layout paint; }
.custom-loader-img {
    width: 350px;
    max-width: 80vw;
    height: auto;
    animation: pulseLoader 1.05s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.5));
    will-change: transform, opacity;
}
@keyframes pulseLoader {
    0%, 100% { transform: translateZ(0) scale(.96); opacity: .8; }
    50% { transform: translateZ(0) scale(1.03); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .custom-loader-img { animation: none; } }
.mobile-header { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 68px; background: rgba(26, 26, 46, 0.8); backdrop-filter: none; z-index: 1500; border-bottom: 1px solid var(--border-color); justify-content: space-between; align-items: center; padding: 0 5%; box-sizing: border-box; overflow: hidden; }
.mobile-header-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; opacity: .38; z-index: 0; pointer-events: none; }
.mobile-header-overlay { display: none !important; }
.mobile-header .mobile-brand-summary,
.mobile-header > .u-row-gap-8 { position: relative; z-index: 2; }
.mobile-brand-kicker { display: block; color: var(--primary-hover); font-size: .56rem; font-weight: 800; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }
#mobileMenuBtn { background: transparent; border: none; font-size: 1.8rem; color: var(--text-primary); cursor: pointer; padding: 0; }
.close-mobile-menu { display: none; position: absolute; top: 15px; right: 15px; background: transparent; border: none; font-size: 2rem; color: var(--text-muted); z-index: 10; cursor: pointer; }
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1998; opacity: 0; transition: opacity 0.3s ease; }
.sidebar-overlay.show { display: block; opacity: 1; }
.app-layout { display: flex; width: 100%; }
.sidebar { width: var(--sidebar-width); height: 100dvh; position: fixed; top: 0; left: 0; z-index: 1999; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5vw; box-sizing: border-box; border-right: 1px solid var(--border-color); background: rgba(26, 26, 46, 0.9); box-shadow: 10px 0 30px rgba(0,0,0,0.2); transition: transform 0.3s ease; }
#sidebar-snow-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.snow-particle { position: absolute; pointer-events: none; border-radius: 50%;  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5); z-index: 1; will-change: transform; }
.sidebar-top, .sidebar-bottom { z-index: 2; position: relative; }
.logo-container { text-align: center; margin-bottom: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.main-logo { max-height: 60px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); }
.logo-text { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); letter-spacing: 1px; text-transform: uppercase; text-align: center; }
.main-nav { display: flex; flex-direction: column; gap: 8px; }
.admin-menu { display: flex; flex-direction: column; gap: 8px; }
.admin-menu-toggle {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 7px;
    width: 86%;
    min-height: 36px;
    margin: 7px auto 2px;
    padding: 6px 9px 6px 7px;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(99, 102, 241, .08));
    color: #d9f4ff;
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .075em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(255,255,255,.07), 0 9px 20px rgba(1, 6, 20, .18);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.admin-menu-toggle::before { content: ''; display:grid; place-items:center; width:22px; height:22px; border:1px solid rgba(125,211,252,.25); border-radius:7px; background-color:rgba(56,189,248,.12); background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%2378ddff'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D%22M12%202l3%206.5%207%201-5%205%201.2%207L12%2018l-6.2%203.5L7%2014.5l-5-5%207-1L12%202z%22%2F%3E%3C%2Fsvg%3E"); background-repeat:no-repeat; background-position:center; background-size:60%; }
.admin-menu-toggle:hover { border-color: rgba(56, 189, 248, .52); color: #f1fbff; background: linear-gradient(135deg, rgba(14, 165, 233, .2), rgba(99, 102, 241, .14)); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 12px 24px rgba(14, 165, 233, .16); transform: translateY(-1px); }
.admin-menu-toggle-icon { display:grid; place-items:center; width:18px; height:18px; border-radius:6px; background:rgba(2,6,23,.34); color:var(--primary-hover); font-size:1rem; line-height:1; transition: transform .2s ease, background .2s ease; }
.admin-menu:not(.is-collapsed) .admin-menu-toggle-icon { transform: rotate(180deg); }
.admin-menu:not(.is-collapsed) .admin-menu-toggle { border-color:rgba(125,211,252,.52); }
.admin-menu-content { display: flex; flex-direction: column; gap: 6px; padding:5px 0 2px; border-left:1px solid rgba(56,189,248,.16); }
.admin-menu-content[hidden] { display: none !important; }
#guestControls, #userControls { display: flex; flex-direction: column; gap: 8px; }
.nav-btn { background: rgba(255,255,255,0.03); border: 1px solid transparent; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; padding: 3px 10px; cursor: pointer; border-radius: 8px; transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; text-align: left; width: 86%; margin: 0 auto; box-sizing: border-box; min-height: 24px; }
.nav-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); transform: translateX(4px); }
.nav-btn.active { background: rgba(255,255,255,0.15); color: var(--text-primary); border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.menu-divider { color: var(--text-muted); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; margin: 16px 0 8px 10px; font-weight: 700; opacity: 0.6; }
.bottom-btn { margin-top: 4px; }
#userAccountBtn {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(14, 165, 233, 0.16));
    border: 1px solid rgba(125, 211, 252, 0.5);
    color: #e0f2fe;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2), 0 10px 22px rgba(14, 165, 233, 0.2);
    display: grid;
    grid-template-columns: 18px 1fr;
    grid-template-areas:
        "logo label"
        "logo name"
        "logo role";
    align-items: center;
    column-gap: 8px;
    row-gap: 1px;
    padding: 7px 10px;
    min-height: 52px;
}
#userAccountBtn::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--vsg-account-avatar, url("https://i.imgur.com/2aTRnRn.png")) center/cover no-repeat;
    border: 1px solid rgba(224, 242, 254, 0.65);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
    grid-area: logo;
}
#userAccountBtn:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(14, 165, 233, 0.24));
    border-color: rgba(125, 211, 252, 0.75);
    color: #f0f9ff;
}
#accountName {
    grid-area: name;
    font-weight: 600;
    font-size: 0.74rem;
    line-height: 1.2;
    color: #eaf6ff;
    opacity: 0.96;
    white-space: normal;
    overflow-wrap: anywhere;
}
.account-btn-label {
    grid-area: label;
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(224, 242, 254, 0.9);
}
#accountRole {
    grid-area: role;
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
    color: #bae6fd;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.danger-text { color: #fca5a5; }
.danger-text:hover { background: rgba(248, 113, 113, 0.2); color: #fef2f2; }
.btn-outline.danger-text, .btn-primary.danger-text { border-color: #ef4444; }
.content-container { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); padding: 2%; box-sizing: border-box; min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; }
.universal-top-container {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}
.universal-top-container {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 14, 34, 0.96), rgba(20, 26, 56, 0.9));
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 0;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 26px rgba(0,0,0,0.24);
    padding: 14px 18px;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.universal-top-container > .ut-left-accent,
.universal-top-container::marker {
    display: none;
}
.universal-top-title {
    font-size: clamp(1.5rem, 0.9vw + 1.2rem, 2rem);
    line-height: 1.15;
}
.gp-shell { width: min(980px, 92vw); display: grid; gap: 18px; }
.gp-hero { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; align-items: center; padding: 20px; border: 1px solid rgb(56 189 248 / 22%); border-radius: 18px; background: linear-gradient(135deg, rgb(14 30 57 / 92%), rgb(8 15 32 / 96%)); }
.gp-hero > img { width: 84px; height: 84px; object-fit: cover; border-radius: 18px; border: 2px solid rgb(56 189 248 / 55%); }
.gp-hero h2 { margin: 3px 0; font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1; }
.gp-hero span,.gp-hero p,.gp-points span { color: var(--text-muted); }
.gp-points { min-width: 110px; text-align: right; }
.gp-points strong { display: block; color: var(--primary-color); font-size: 2rem; }
.gp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gp-stats > div { padding: 14px 16px; border: 1px solid rgb(148 163 184 / 15%); border-radius: 14px; background: rgb(9 18 38 / 76%); }
.gp-stats strong,.gp-stats span { display: block; }
.gp-stats strong { font-size: 1.35rem; color: var(--text-main); }
.gp-stats span { color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.gp-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(390px, 1.2fr); gap: 14px; }
.gp-grid > section { min-width: 0; padding: 16px; border: 1px solid rgb(148 163 184 / 15%); border-radius: 16px; background: rgb(7 14 30 / 82%); }
.gp-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--text-main); font-weight: 800; }
.gp-heading strong { color: var(--primary-color); font-size: .78rem; text-transform: uppercase; }
.gp-characters { display: grid; gap: 8px; max-height: 330px; overflow: auto; }
.gp-character { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: rgb(30 41 59 / 48%); }
.gp-character img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.gp-character strong,.gp-character span { display: block; }
.gp-character span { margin-top: 3px; color: var(--text-muted); font-size: .78rem; }
.gp-messages { height: 245px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding-right: 5px; }
.gp-message { max-width: 84%; padding: 10px 12px; align-self: flex-start; border-radius: 13px 13px 13px 4px; background: rgb(30 41 59 / 84%); }
.gp-message.is-mine { align-self: flex-end; border-radius: 13px 13px 4px; background: rgb(3 105 161 / 32%); }
.gp-message header { display: flex; justify-content: space-between; gap: 12px; font-size: .75rem; }
.gp-message time { color: var(--text-muted); }
.gp-message p { margin: 5px 0 0; white-space: pre-wrap; }
.gp-message-body { margin:5px 0 0; overflow-wrap:anywhere; }
.gp-message-body p { margin:.2em 0; }
.gp-message-body ul,.gp-message-body ol { margin:.3em 0; padding-left:1.25rem; }
.gp-message img { max-width: 220px; max-height: 180px; margin-top: 7px; object-fit: contain; border-radius: 10px; }
.gp-compose { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }
.gp-compose textarea { grid-column: 1 / -1; min-height: 68px; resize: vertical; }
.gp-emojis { display: flex; gap: 5px; }
.gp-emojis button,.gp-gifs button { border: 1px solid rgb(148 163 184 / 20%); border-radius: 8px; background: rgb(15 23 42 / 82%); color: var(--text-primary); cursor: pointer; }
.gp-gifs { display: flex; gap: 7px; overflow-x: auto; }
.gp-gifs button { flex: 0 0 92px; padding: 3px; }
.gp-gifs button.is-selected { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgb(56 189 248 / 20%); }
.gp-gifs img { width: 100%; height: 66px; object-fit: cover; border-radius: 6px; }
.gp-empty,.gp-loading { padding: 28px; color: var(--text-muted); text-align: center; }
.gp-chat.is-hidden { display: none; }
.gp-inbox { min-height: 360px; padding: 16px; }
.gp-inbox-list { display: grid; gap: 8px; }
.gp-inbox-item { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 11px; border: 1px solid rgb(148 163 184 / 15%); border-radius: 13px; background: rgb(9 18 38 / 78%); color: var(--text-primary); text-align: left; cursor: pointer; }
.gp-inbox-item:hover { border-color: rgb(56 189 248 / 55%); transform: translateY(-1px); }
.gp-inbox-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 11px; }
.gp-inbox-item strong,.gp-inbox-item small { display: block; }
.gp-inbox-item small { max-width: 54ch; margin-top: 4px; overflow: hidden; color: var(--text-muted); text-overflow: ellipsis; white-space: nowrap; }
.gp-inbox-item em { min-width: 24px; padding: 4px 7px; border-radius: 999px; background: #0ea5e9; font-size: .75rem; font-style: normal; text-align: center; }
[data-guild-player-id] { cursor: pointer; }
.gp-realname { color: var(--text-muted); font-size: .58em; font-weight: 600; }
.gp-bnet { grid-column: 1 / -1; }
.gp-bnet-body { display: flex; align-items: center; gap: 14px; }
.gp-bnet-render { width: 90px; height: 90px; object-fit: contain; border-radius: 12px; background: rgb(15 23 42 / 60%); }
.gp-bnet-alters { color: var(--text-muted); font-size: .85rem; }
@media (max-width: 760px) { .gp-grid { grid-template-columns: 1fr; } .gp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gp-hero { grid-template-columns: 64px 1fr; } .gp-hero > img { width: 64px; height: 64px; } .gp-points { grid-column: 1 / -1; text-align: left; } }
.gp-banner { border-radius: 18px; padding: 3px; position: relative; overflow: hidden; }
.gp-banner-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,8,15,0.15), rgba(5,8,15,0.72)); pointer-events: none; }
.gp-banner-effect-particles::after { content:''; position:absolute; inset:0; pointer-events:none; opacity:.55; background-image:radial-gradient(circle at 18% 22%,rgba(255,255,255,.55) 0 1px,transparent 2px),radial-gradient(circle at 74% 36%,rgba(125,211,252,.72) 0 1px,transparent 2px),radial-gradient(circle at 52% 76%,rgba(255,255,255,.45) 0 1px,transparent 2px); background-size:58px 58px,78px 78px,92px 92px;  }.gp-banner-effect-parallax { background-attachment:fixed; background-size:cover; }
@keyframes gpBannerParticles { to { background-position:58px -58px,-78px 78px,92px -92px; } } @keyframes gpBannerGlow { 50% { box-shadow:inset 0 0 42px rgba(125,211,252,.34),0 0 23px rgba(56,189,248,.18); } }
.gp-hero-v2 { position: relative; background: transparent; border: none; grid-template-columns: auto 1fr auto; z-index: 1; }
.gp-avatar-wrap { position: relative; width: 90px; height: 90px; border-radius: 20px; overflow: hidden; border: 3px solid var(--gp-accent, var(--primary-color)); box-shadow: 0 6px 18px rgba(0,0,0,0.35); flex-shrink: 0; }
.gp-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-avatar-wrap.gp-frame-bronze { border-color: #b45309; }
.gp-avatar-wrap.gp-frame-silver { border-color: var(--text-muted); }
.gp-avatar-wrap.gp-frame-gold { border-color: #eab308; box-shadow: 0 0 14px rgba(234,179,8,0.45); }
.gp-avatar-wrap.gp-frame-runic { border-color: #22d3ee; border-style: double; border-width: 5px; }
.gp-avatar-wrap.gp-frame-thorns { border-color: #7f1d1d; border-style: dashed; }
.gp-avatar-wrap.gp-avatar-glow { box-shadow: 0 0 10px rgba(56,189,248,0.4); }
@keyframes gpAvatarGlowPulse {
    0%, 100% { box-shadow: 0 0 8px 0 var(--gp-accent, var(--primary-color)); }
    50% { box-shadow: 0 0 24px 6px var(--gp-accent, var(--primary-color)); }
}
.gp-hero-info { min-width: 0; }
.gp-hero-role { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.gp-hero-title-badge { display: inline-block; margin: 2px 0 4px; padding: 2px 10px; border-radius: 999px; background: rgba(251,191,36,0.14); border: 1px solid rgba(251,191,36,0.4); color: #fde68a; font-size: 0.72rem; font-weight: 700; }
.gp-hero-motto { font-style: italic; color: var(--text-muted); margin-top: 4px; }
.gp-bio { padding: 12px 16px; border-radius: 12px; background: rgba(148,163,184,0.06); border: 1px solid rgba(148,163,184,0.12); font-size: 0.88rem; color: #e2e8f0; }
.gp-bio p { margin: 0; }
.gp-featured-ach { padding: 10px 14px; border-radius: 12px; background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.3); color: #fde68a; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.gp-featured-ach span { color: var(--text-muted); font-weight: 400; }
.gp-featured-ach-img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.gp-achievements { grid-column: 1 / -1; }
.gp-ach-strip { display: flex; flex-wrap: wrap; gap: 7px; }
.gp-ach-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3); color: #fde68a; font-size: 0.75rem; font-weight: 600; }
.gp-ach-chip-img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.gp-mounts { grid-column: 1 / -1; }
.gp-mounts-grid { display: flex; flex-wrap: wrap; gap: 7px; max-height: 140px; overflow-y: auto; }
.gp-mount-chip { padding: 5px 11px; border-radius: 999px; background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.25); color: #bae6fd; font-size: 0.75rem; }
.gp-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 4px; border-bottom: 1px solid rgba(148,163,184,0.14); }
.gp-tab-btn { padding: 8px 16px; border: 1px solid transparent; border-radius: 10px 10px 0 0; background: transparent; color: var(--text-muted); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: color .15s ease, background .15s ease; }
.gp-tab-btn:hover { color: #e2e8f0; }
.gp-tab-btn.is-active { color: var(--primary-color); background: rgba(56,189,248,0.1); border-color: rgba(56,189,248,0.25); border-bottom-color: transparent; }
.gp-tab-btn.is-hidden { display: none; }
.gp-tab-panel { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.gp-tab-panel.is-hidden { display: none; }
.gp-logros-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.gp-logros-head select { min-width: 200px; }
.gp-ach-filter { display:flex; gap:4px; padding:4px; border:1px solid rgba(148,163,184,.14); border-radius:10px; background:rgba(2,6,23,.36); }.gp-ach-filter-btn { padding:6px 9px; border:0; border-radius:7px; background:transparent; color:var(--text-sub); font-size:.7rem; font-weight:800; cursor:pointer; }.gp-ach-filter-btn.is-active,.gp-ach-filter-btn:hover { color:#e0f2fe; background:rgba(56,189,248,.16); }
@media (max-width: 760px) { .gp-tab-btn { flex: 1 1 auto; text-align: center; padding: 8px 10px; } }
#universalModal:has(.gp-shell) .modal-content { width:min(1120px,94vw); max-width:min(1120px,94vw); height:min(820px,88dvh); max-height:min(820px,88dvh); }
#universalModal:has(.gp-shell) .modal-body { padding:16px; overflow:hidden; }
#universalModal.gp-modal-active .modal-content { display:flex; flex-direction:column; width:min(1120px,94vw); max-width:min(1120px,94vw); height:min(820px,88dvh); max-height:min(820px,88dvh); min-height:0; }
#universalModal.gp-modal-active .modal-header { flex:0 0 auto; }
#universalModal.gp-modal-active .modal-body { display:flex; flex:1 1 auto; height:auto; min-height:0; padding:16px; overflow:hidden; box-sizing:border-box; }
.gp-shell-v2 { width:100%; height:100%; min-height:0; display:flex; flex-direction:column; gap:14px; }
.gp-shell-v2 .gp-banner { min-height:164px; display:flex; align-items:center; }
.gp-shell-v2 .gp-hero { width:100%; padding:22px 24px; }
.gp-shell-v2 .gp-tab-panel { flex:1 1 0; min-height:0; overflow:auto; padding:8px 2px 2px; scrollbar-gutter:stable; }
.gp-shell-v2 .gp-grid { align-items:start; }
.gp-shell-v2.gp-shell--compact { gap:10px; }.gp-shell-v2.gp-shell--compact .gp-banner { min-height:132px; }.gp-shell-v2.gp-shell--compact .gp-hero { padding:16px 20px; }.gp-shell-v2.gp-shell--showcase .gp-featured-ach { order:-1; box-shadow:0 10px 24px rgba(234,179,8,.12); }
.gp-shell-v2 .gp-characters { max-height:300px; }
.gp-ach-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px; }
.gp-ach-card { display:flex; align-items:center; gap:10px; min-height:68px; padding:10px; border:1px solid rgba(148,163,184,.16); border-radius:12px; background:rgba(7,14,30,.7); }
.gp-ach-card img { width:44px; height:44px; object-fit:contain; flex:0 0 auto; }
.gp-ach-card strong,.gp-ach-card small { display:block; }
.gp-ach-card strong { color:#f1f5f9; font-size:.8rem; }
.gp-ach-card small { margin-top:3px; color:#92a4bc; font-size:.7rem; }
.gp-ach-card.is-locked { opacity:.62; }
.gp-ach-card.is-locked img { filter:grayscale(1) contrast(.82) brightness(.72); }
.gp-ach-card-top { border-color:rgba(251,191,36,.42); background:linear-gradient(135deg,rgba(251,191,36,.12),rgba(7,14,30,.76)); }
.gp-ach-card-top strong { color:#fef3c7; }
.gp-messages-panel { overflow:hidden; }.gp-chat { display:grid; grid-template-rows:auto minmax(110px,1fr) auto; min-height:0; height:100%; padding:14px; border:1px solid rgba(125,211,252,.16); border-radius:16px; background:linear-gradient(145deg,rgba(15,23,42,.72),rgba(5,11,24,.86)); box-shadow:inset 0 1px 0 rgba(255,255,255,.04); }.gp-message-head { display:flex; align-items:center; gap:10px; padding:0 2px 12px; border-bottom:1px solid rgba(148,163,184,.13); }.gp-message-head img { width:38px; height:38px; border:2px solid rgba(56,189,248,.45); border-radius:12px; object-fit:cover; }.gp-message-head strong,.gp-message-head span { display:block; }.gp-message-head strong { color:#e0f2fe; font-size:.92rem; }.gp-message-head span { margin-top:2px; color:#8fa1b8; font-size:.7rem; }.gp-message-private { margin-left:auto; padding:4px 8px; border:1px solid rgba(52,211,153,.24); border-radius:999px; background:rgba(52,211,153,.08); color:#6ee7b7; font-size:.63rem; font-weight:800; }.gp-messages { height:auto; min-height:0; padding:14px 5px 12px 0; overflow-y:auto; scrollbar-width:none; -ms-overflow-style:none; }.gp-messages::-webkit-scrollbar { display:none; }.gp-message { max-width:min(78%,620px); padding:10px 12px; border:1px solid rgba(148,163,184,.12); box-shadow:0 5px 14px rgba(0,0,0,.13); }.gp-compose { align-self:end; display:grid; grid-template-columns:1fr auto; gap:8px; margin-top:0; padding:11px; border:1px solid rgba(125,211,252,.16); border-radius:13px; background:rgba(2,6,23,.42); }.gp-compose-toolbar { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:10px; color:#8fa1b8; font-size:.67rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }.gp-emojis { display:flex; gap:4px; }.gp-emojis button { width:27px; height:27px; padding:0; border:1px solid rgba(148,163,184,.15); border-radius:7px; background:rgba(255,255,255,.04); cursor:pointer; }.gp-emojis button:hover { border-color:rgba(125,211,252,.45); background:rgba(56,189,248,.1); }.gp-gif-search { grid-column:1/-1; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }.gp-gif-search .btn-outline { white-space:nowrap; }.gp-gifs { grid-column:1/-1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; min-height:0; max-height:76px; overflow:hidden; }.gp-gifs button { min-width:0; height:70px; padding:2px; border:1px solid rgba(148,163,184,.14); border-radius:8px; background:rgba(255,255,255,.03); }.gp-gifs button:nth-child(n+5) { display:none; }.gp-gifs img { width:100%; height:64px; object-fit:cover; border-radius:6px; }.gp-gif-loading { grid-column:1/-1; color:var(--text-sub); font-size:.76rem; }.gp-compose #gpSendMessage { min-width:130px; }
.gp-compose .tox-tinymce { grid-column:1/-1; border-radius:12px; border-color:rgba(56,189,248,.34); overflow:hidden; }
@media (max-width:760px) {
  #universalModal:has(.gp-shell) .modal-content { width:calc(100vw - 12px); max-width:calc(100vw - 12px); height:calc(100dvh - 12px); max-height:calc(100dvh - 12px); }
  #universalModal:has(.gp-shell) .modal-body { padding:10px; }
  #universalModal.gp-modal-active .modal-content { width:calc(100vw - 12px); max-width:calc(100vw - 12px); height:calc(100dvh - 12px); max-height:calc(100dvh - 12px); }
  #universalModal.gp-modal-active .modal-body { height:auto; padding:10px; }
  .gp-shell-v2 { gap:10px; }
  .gp-shell-v2 .gp-banner { min-height:132px; border-radius:14px; }
  .gp-shell-v2 .gp-hero { grid-template-columns:64px minmax(0,1fr); gap:12px; padding:16px; }
  .gp-shell-v2 .gp-avatar-wrap { width:64px; height:64px; border-radius:16px; }
  .gp-shell-v2 .gp-hero h2 { font-size:clamp(1.5rem,8vw,2rem); overflow-wrap:anywhere; }
  .gp-shell-v2 .gp-points { grid-column:2; grid-row:1; align-self:start; min-width:0; }
  .gp-shell-v2 .gp-points strong { font-size:1.55rem; }
  .gp-shell-v2 .gp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:8px; }
  .gp-shell-v2 .gp-stats > div { padding:11px; }
  .gp-shell-v2 .gp-grid { grid-template-columns:1fr; }
  .gp-shell-v2 .gp-grid > section { padding:12px; }
  .gp-ach-grid { grid-template-columns:1fr; }
  .gp-logros-head select { min-width:0; width:100%; }
  .gp-tab-btn { padding:9px 7px; font-size:.75rem; }
  .gp-messages { height:clamp(180px,31dvh,290px); }
  .gp-gif-search { grid-template-columns:1fr; }.gp-gif-search .btn-outline { width:100%; }.gp-compose #gpSendMessage { width:100%; grid-column:1/-1; }
}
.universal-top-header {
    margin-bottom: 6px;
    border-radius: 10px;
    overflow: hidden;
}
.universal-top-container::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #fea0c5;
    border-radius: 10px 0 0 10px;
    z-index: 2;
}
.universal-top-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(254,160,197,0.12) 45%, transparent 75%);
    transform: translateX(-120%);
    pointer-events: none;
}
@keyframes topHeaderSheen {
    0%, 72%, 100% { transform: translateX(-120%); }
    84% { transform: translateX(120%); }
}
.universal-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.universal-top-title {
    margin: 0;
    font-weight: 700;
    font-size: 1.48rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.universal-top-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.universal-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
}
.universal-tab-btn {
    background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: transform .2s ease, box-shadow .22s ease, border-color .22s ease, color .2s ease, background .22s ease;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.universal-tab-btn::after {
    content: '';
    position: absolute;
    inset: auto 12% 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity .2s ease;
}
.universal-tab-btn:hover {
    background: linear-gradient(160deg, rgba(56, 189, 248, 0.16), rgba(255,255,255,0.04));
    color: var(--text-primary);
    transform: translateY(-1px);
    border-color: rgba(125,211,252,0.65);
    box-shadow: 0 10px 22px rgba(56,189,248,0.16);
}
.universal-tab-btn.active { 
    background: linear-gradient(160deg, rgba(56, 189, 248, 0.24), rgba(30,64,175,0.16)) !important;
    border-color: var(--primary-color) !important;
    color: #dff4ff !important;
    box-shadow: inset 0 0 0 1px rgba(186,230,253,0.18), 0 12px 26px rgba(56, 189, 248, 0.24);
}
.universal-tab-btn.active::after { opacity: 1; }
.roster-wrapper, .mg-wrapper, .ap-wrapper, .pt-wrapper, .rd-wrapper, .nw-wrapper, .debug-wrapper, .gd-wrapper, .at-wrapper, .cal-wrapper, .mn-wrapper, .wt-wrapper, .rules-wrapper, .cons-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 0 50px 0; 
    box-sizing: border-box;
}
.prog-banner-container { position:absolute; inset:0; display:grid; align-items:stretch; width:100%; height:100%; padding:0; overflow:hidden; isolation:isolate; }
.prog-banner-container::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(3,8,22,.97) 0%,rgba(5,12,30,.84) 48%,rgba(3,8,22,.58) 100%); }
.prog-banner-bg { position:absolute; inset:0; width:100%; height:100%; background-size:cover; background-position:center; opacity:.56; z-index:-2; filter:saturate(.85) contrast(1.08); }
.prog-banner-header { display:flex; flex-direction:column; width:100%; height:100%; min-width:0; padding:13px 16px; gap:9px; z-index:1; box-sizing:border-box; justify-content:center; }
.prog-header-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; min-width:0; }
.prog-header-top-left { display:flex; align-items:center; gap:12px; min-width:0; flex:1 1 auto; }
.prog-season-logo { width:42px; height:42px; object-fit:contain; flex-shrink:0; border-radius:8px; filter:drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.prog-banner-titles { display:flex; flex-direction:column; min-width:0; gap:4px; flex:1 1 auto; }
.prog-season-name { color:var(--primary-hover); font-size:.6rem; font-weight:850; line-height:1.2; text-transform:uppercase; letter-spacing:.14em; }
.prog-raid-name { margin:0; color:#f8fbff; font-size:clamp(1rem,1.35vw,1.32rem); font-weight:850; line-height:1.1; letter-spacing:-.03em; text-shadow:0 3px 14px rgba(0,0,0,.75); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.prog-boss-panel { min-width:0; width:100%; box-sizing:border-box; padding:9px 12px; border:1px solid rgba(148,163,184,.14); border-radius:12px; background:rgba(2,6,23,.46); backdrop-filter: none; display:flex; align-items:stretch; gap:12px; }
.prog-boss-main { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:7px; }
.prog-boss-panel-label { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; }
.prog-progress-label { flex:0 0 auto; color:#aab8cc; font-size:.62rem; font-weight:800; letter-spacing:.02em; white-space:nowrap; text-transform:uppercase; }
.prog-progress-bar { position:relative; flex:1 1 auto; min-width:40px; height:6px; border-radius:99px; background:rgba(148,163,184,.16); overflow:hidden; }
.prog-progress-fill { height:100%; width:0%; border-radius:99px; background:var(--primary-color); transition:width .4s cubic-bezier(.2,.8,.2,1),background .3s; }
.prog-bosses-grid { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0; }
.prog-boss-icon { width:32px; height:32px; flex:0 0 32px; border-radius:8px; border:1px solid rgba(148,163,184,.2); object-fit:cover; transition:transform .25s cubic-bezier(.2,.8,.2,1),filter .25s,border-color .25s,box-shadow .25s; }
.prog-boss-icon:hover { transform:translateY(-2px) scale(1.06); }
.prog-boss-icon.alive { filter:grayscale(1) brightness(.48); border-color:rgba(148,163,184,.16); }
.prog-boss-icon.dead { filter:saturate(1.08) contrast(1.04); border-color:var(--primary-color); box-shadow:0 0 0 1px rgba(56,189,248,.18),0 6px 14px rgba(14,165,233,.2); }
.prog-next-box { flex:0 0 280px; min-width:0; display:flex; align-items:center; gap:10px; padding-left:14px; border-left:1px solid rgba(148,163,184,.16); }
.prog-next-icon { width:38px; height:38px; flex:0 0 38px; border-radius:9px; border:1px solid rgba(56,189,248,.35); object-fit:cover; filter:grayscale(.4) brightness(.75); box-shadow:0 0 0 3px rgba(56,189,248,.08); }
.prog-next-info { display:flex; flex-direction:column; min-width:0; gap:2px; }
.prog-next-kicker { color:var(--primary-hover); font-size:.56rem; font-weight:850; text-transform:uppercase; letter-spacing:.1em; }
.prog-next-name { overflow:hidden; color:#f4f8ff; font-size:.82rem; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.prog-next-meta { overflow:hidden; color:#8fa0ba; font-size:.6rem; text-overflow:ellipsis; white-space:nowrap; }
.prog-next-cleared { display:flex; flex-direction:column; gap:3px; }
.prog-next-cleared .prog-next-kicker { color:#6ee7b7; }
.prog-next-cleared strong { color:#f4f8ff; font-size:.78rem; font-weight:800; }
.prog-stats-row { display:flex; gap:6px; flex:0 0 auto; }
.prog-stat-badge { display:grid; grid-template-rows:auto auto; place-items:center; min-width:60px; padding:8px 10px 7px; border:1px solid rgba(148,163,184,.18); border-radius:10px; background:rgba(2,6,23,.68); cursor:pointer; opacity:.72; transition:transform .2s ease,opacity .2s,border-color .2s,background .2s,box-shadow .2s; }
.prog-stat-badge strong { color:currentColor; font-size:.96rem; line-height:1; }
.prog-stat-badge small { margin-top:3px; color:#8fa0ba; font-size:.5rem; font-weight:800; text-transform:uppercase; letter-spacing:.1em; }
.prog-stat-badge:hover { opacity:1; transform:translateY(-1px); }
.prog-stat-badge.active { opacity:1; border-color:currentColor; background:rgba(8,18,40,.92); box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 25%,transparent),0 7px 18px rgba(0,0,0,.25); }
.content-wrapper { width: 100%; margin: 0; display: none; }
.card { background: var(--card-bg); border-radius: var(--border-radius); padding: var(--space-5); border: 1px solid var(--border-color); box-shadow: var(--shadow-2); width: 100%; box-sizing: border-box; }
.btn-primary { display: inline-block; width: fit-content; background: linear-gradient(135deg, rgba(56,189,248,0.22), rgba(37,99,235,0.18)); border: 1px solid rgba(125,211,252,0.5); color: #eaf8ff; padding: 10px 20px; border-radius: var(--radius-md); cursor: pointer; font-size: var(--fs-md); font-weight: 700; transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; font-family: 'Inter', sans-serif;  }
.btn-primary:hover { background: linear-gradient(135deg, rgba(56,189,248,0.3), rgba(37,99,235,0.24)); transform: translateY(-2px); }
.btn-primary, .btn-outline, .nav-btn { transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn-primary:hover, .btn-outline:hover, .nav-btn:hover { box-shadow: 0 8px 22px rgba(56, 189, 248, 0.2); }
.btn-primary:focus-visible, .btn-outline:focus-visible, .nav-btn:focus-visible, .form-control:focus-visible, .universal-tab-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
[tabindex]:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, [contenteditable="true"]:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}
.btn-outline { display: inline-block; width: fit-content; background: rgba(255,255,255,0.04); border: 1px solid rgba(148,163,184,0.4); color: var(--text-primary); padding: 8px 16px; border-radius: var(--radius-md); cursor: pointer; font-size: var(--fs-base); font-weight: 650; transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;  }
.btn-outline:hover { background: rgba(56,189,248,0.2); border-color: var(--primary-color); color: #e8f7ff; box-shadow: 0 6px 16px rgba(56, 189, 248, 0.26); }
.universal-top-actions .form-control,
.universal-top-actions select.form-control,
.rc-filters .form-control,
.rc-filters select.form-control,
.nw-inline-actions .form-control,
.nw-inline-actions select.form-control {
    width: auto;
    min-width: 180px;
    max-width: 320px;
}
.universal-top-actions .btn-primary,
.universal-top-actions .btn-outline,
.mg-bulk-actions .btn-primary,
.mg-bulk-actions .btn-outline,
.attendance-actions .btn-primary,
.attendance-actions .btn-outline,
.topgun-zone .rc-btn {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}
.table-responsive .btn-primary,
.table-responsive .btn-outline,
.modal-body .btn-primary,
.modal-body .btn-outline {
    width: auto;
    max-width: 100%;
}
.table-responsive .form-control {
    max-width: 100%;
}
.np-form-group { margin-bottom: 15px; width: 100%; min-width: 0; box-sizing: border-box; }
.np-form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.form-control { width: 100%; padding: 10px 12px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-family: 'Inter', sans-serif; box-sizing: border-box; transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; font-size: 0.9rem; }
.form-control:focus { outline: none; border-color: rgba(255,255,255,0.3); background: rgba(0,0,0,0.4); }
select.form-control { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23cbd5e1' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4H4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 30px; }
select.form-control option { background-color: var(--bg-color); color: var(--text-primary); padding: 10px; }
.table-responsive { 
    width: 100%; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    scroll-behavior: smooth;
}
.table-responsive::-webkit-scrollbar { height: 6px; }
.table-responsive::-webkit-scrollbar-track { background: transparent; }
.table-responsive::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 10px; min-width: 600px; }
.data-table th, .data-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border-color); }
.data-table th { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
@media (max-width: 820px) {
    .data-table.dt-cards {
        display: block;
        width: 100%;
        min-width: 0;
        background: transparent;
    }
    .data-table.dt-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .data-table.dt-cards tbody { display: grid; gap: 9px; }
    .data-table.dt-cards tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 10px;
        padding: 10px 11px;
        border: 1px solid rgba(148,163,184,.14);
        border-radius: 12px;
        background: linear-gradient(145deg, rgba(15,23,42,.82), rgba(5,10,25,.88));
        box-shadow: 0 8px 18px rgba(0,0,0,.16);
    }
    .data-table.dt-cards td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        min-height: 36px;
        padding: 6px 0;
        white-space: normal;
        border: 0;
        background: transparent;
        text-align: right;
    }
    .data-table.dt-cards td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        margin-right: 9px;
        color: #7f91aa;
        font-size: .56rem;
        font-weight: 850;
        letter-spacing: .08em;
        text-align: left;
        text-transform: uppercase;
    }
    .data-table.dt-cards td:not([data-label])::before { content: none; }
    .data-table.dt-cards td:first-child {
        grid-column: 1 / -1;
        justify-content: flex-start;
        min-height: 42px;
        margin-bottom: 3px;
        padding-bottom: 9px;
        border-bottom: 1px solid rgba(148,163,184,.13);
    }
}
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 2000; align-items: center; justify-content: center; padding: 2%; box-sizing: border-box; }
.modal.visible { display: flex; }
.modal-content { width: 100%; max-width: 800px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; position: relative; overflow: hidden; margin: auto; box-sizing: border-box; }
.modal-content::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url('../img/fonlo.jpeg'); background-size: cover; background-position: center; opacity: 0.2; z-index: 0; pointer-events: none; }
.modal-header, .modal-body { position: relative; z-index: 1; box-sizing: border-box; }
.modal-header { padding: 15px 20px; border-bottom: 1px solid var(--border-color); background: rgba(0, 0, 0, 0.2); display: flex; align-items: center; gap: 15px; }
.modal-logo { height: 30px; }
.modal-header-text { display: flex; flex-direction: column; flex: 1; }
.modal-guild-name { font-size: 0.65rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2px; }
.modal-title { margin: 0; color: var(--text-primary); font-size: 1.2rem; font-weight: 600; }
.close-modal-x { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.16); border-radius: 6px; background: rgba(255,255,255,0.08); color: var(--text-primary); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease; position: relative; z-index: 2; }
.close-modal-x:hover { background: rgba(239,68,68,0.16); border-color: rgba(248,113,113,0.55); color: #fecaca; transform: translateY(-1px); }
#mgMediaBrowserModal .modal-content > * { position: relative; z-index: 1; }
#mgMediaBrowserModal {
    align-items: center;
    justify-content: center;
}
.table-responsive > .data-table { margin-top: 0; }
#mgMediaBrowserModal .modal-content {
    width: min(1560px, 99vw);
    max-width: min(1560px, 99vw);
    min-width: min(1560px, 99vw);
    height: min(94vh, 1020px);
    min-height: min(94vh, 1020px);
    max-height: min(94vh, 1020px);
}
#mgMediaBrowserModal.is-picker { z-index: 100050; }
#mgMediaBrowserModal.is-picker .mg-media-item { cursor: pointer; }
#mgMediaBrowserModal.is-picker .mg-media-item:hover { border-color: rgba(125,211,252,.62); box-shadow: 0 0 0 2px rgba(56,189,248,.12), 0 14px 28px rgba(1,5,18,.3); }
.mg-media-modal-shell {
    width: min(1560px, 99vw);
    max-width: min(1560px, 99vw);
    height: min(94vh, 1020px);
    background: #111a38;
    display: flex;
    flex-direction: column;
}
.mg-media-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}
.mg-media-toolbar {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.24);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "path actions"
        "search actions";
    gap: 10px 16px;
    align-items: center;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}
#mgMediaBreadcrumb {
    grid-area: path;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.85rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mg-media-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.mg-media-search-wrap {
    grid-area: search;
    max-width: 360px;
}
#mgMediaBrowserGrid {
    position: relative;
    z-index: 1;
    min-height: 160px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    align-content: start;
}
.mg-media-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}
.mg-media-main.with-editor { grid-template-columns: 1fr 290px; }
.mg-media-main.edit-only {
    grid-template-columns: 1fr;
}
.mg-media-main.edit-only #mgMediaBrowserGrid {
    display: none;
}
.mg-media-editor-panel {
    border-left: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, rgba(8,15,34,0.94), rgba(5,12,28,0.9));
    padding: 14px;
    overflow-y: auto;
    min-width: 0;
}
.mg-media-editor-panel.solo {
    width: calc(100% - 28px);
    max-width: none;
    margin: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0,0,0,0.35);
}
.mg-editor-topbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}
.mg-editor-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.35fr) minmax(280px, 1fr);
    gap: 16px;
    align-items: start;
    min-height: 68vh;
}
.mg-editor-left,
.mg-editor-right { min-width: 0; }
.mg-media-editor-panel.is-hidden { display: none; }
.mg-media-editor-panel h4 { margin: 4px 0 10px; font-size: 0.95rem; color: #d9f6ff; text-transform: uppercase; letter-spacing: 0.6px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.mg-editor-preview-wrap {
    width: 100%;
    height: clamp(240px, 46vh, 500px);
    min-height: 0;
    max-height: 50vh;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.mg-editor-preview-wrap img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; display: none; }
#mgMediaBrowserModal .mg-media-editor-panel { min-width: 0; overflow-x: hidden; }
#mgMediaBrowserModal .mg-editor-layout { min-height: 0; }
#mgMediaBrowserModal .mg-draw-crop-stage,
#mgMediaBrowserModal .mg-draw-crop-stage img { max-width: 100%; max-height: 50vh; object-fit: contain; }
.mg-editor-row { margin-bottom: 10px; }
.mg-editor-row label { font-size: 0.76rem; color: #93a4c7; display: block; margin-bottom: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
#mgEditorPercent {
    height: 40px;
    border-radius: 10px;
    border-color: rgba(148,163,184,0.3);
    background: rgba(2,8,26,0.85);
}
.mg-size-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.mg-chip {
    border: 1px solid rgba(148,163,184,0.35);
    background: rgba(15,23,42,0.7);
    color: #dbe7ff;
    border-radius: 999px;
    height: 30px;
    padding: 0 12px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.mg-chip:hover {
    border-color: rgba(56,189,248,0.7);
    color: var(--primary-hover);
}
.mg-chip.active {
    border-color: var(--primary-color);
    background: rgba(56,189,248,0.2);
    color: var(--primary-hover);
}
.mg-editor-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.mg-editor-actions .btn-outline { width: auto; min-width: 138px; min-height: 34px; padding: 6px 12px; font-size: 0.78rem; }
.mg-editor-actions .btn-primary { width: auto; min-width: 156px; min-height: 36px; padding: 6px 14px; font-size: 0.8rem; background: linear-gradient(135deg, #0ea5e9, #2563eb); border-color: var(--primary-color); }
.mg-editor-actions-primary { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); justify-content: flex-end; }
.mg-crop-tool {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(148,163,184,0.25);
    border-radius: 10px;
    background: rgba(2,8,26,0.5);
}
.mg-crop-tool.is-hidden { display: none; }
.mg-crop-tool input[type="range"] { width: 100%; }
.mg-draw-crop-stage {
    position: relative;
    width: 100%;
    height: 180px;
    border: 1px dashed rgba(148,163,184,0.4);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #020617;
}
#mgCropDrawImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
#mgCropDrawRect {
    position: absolute;
    border: 2px solid var(--primary-color);
    background: rgba(56,189,248,0.15);
    display: none;
    pointer-events: auto;
    cursor: move;
}
#mgCropDrawRect .mg-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    right: -6px;
    bottom: -6px;
    background: var(--primary-color);
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    cursor: nwse-resize;
}
@media (max-width: 1100px) {
    .mg-media-main { grid-template-columns: 1fr; }
    .mg-media-editor-panel { border-left: 0; border-top: 1px solid rgba(255,255,255,0.12); }
    .mg-editor-layout { grid-template-columns: 1fr; }
}
.mg-media-folder,
.mg-media-item {
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(165deg, rgba(7,14,35,0.86), rgba(17,27,56,0.8));
    box-shadow: 0 8px 24px rgba(0,0,0,0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.mg-media-folder:hover,
.mg-media-item:hover {
    transform: translateY(-3px);
    border-color: rgba(110,231,255,0.7);
    box-shadow: 0 14px 30px rgba(13, 148, 136, 0.25);
}
.mg-media-folder {
    min-height: 176px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}
.mg-folder-icon {
    font-size: 2.6rem;
    line-height: 1;
}
.mg-folder-name {
    color: #d9f6ff;
    font-weight: 700;
    font-size: 1rem;
    word-break: break-word;
    padding: 0 12px;
}
.mg-media-item {
    display: flex;
    flex-direction: column;
    min-height: 210px;
}
.mg-media-thumb {
    flex: 1;
    min-height: 148px;
    background: radial-gradient(circle at 50% 28%, rgba(29,78,216,0.2), rgba(2,6,23,1) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.mg-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.mg-media-item:hover .mg-media-thumb img {
    transform: scale(1.05);
    filter: saturate(1.08);
}
.mg-media-item-selected {
    border-color: #22d3ee;
    box-shadow: 0 0 0 2px rgba(34,211,238,0.35), 0 14px 30px rgba(13,148,136,0.25);
}
.mg-media-name {
    padding: 10px 12px;
    font-size: 0.86rem;
    color: #e6f4ff;
    font-weight: 600;
    background: rgba(3, 8, 24, 0.95);
    border-top: 1px solid rgba(255,255,255,0.08);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
#mgBtnUploadImage,
#mgBtnUploadVideo,
#mgBtnRefreshMedia {
    border-radius: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
    min-height: 38px;
    padding: 8px 14px;
}
#mgBtnUploadImage {
    background: linear-gradient(135deg, rgba(6,182,212,0.24), rgba(16,185,129,0.2));
}
#mgBtnUploadVideo {
    background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(99,102,241,0.2));
}
#mgBtnRefreshMedia {
    background: rgba(255,255,255,0.06);
}
#mgMediaSearch {
    border-radius: 10px;
    background: rgba(2,6,23,0.72);
    border-color: rgba(148,163,184,0.32);
    height: 38px;
}
@media (max-width: 900px) {
    .mg-media-toolbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "path"
            "actions"
            "search";
    }
    .mg-media-actions {
        flex-wrap: wrap;
    }
    .mg-media-search-wrap {
        max-width: 100%;
    }
}
#mgUploadModal{align-items:center;justify-content:center;padding:16px;background:rgba(1,5,18,.84);backdrop-filter: none;}
#mgUploadModal .mg-upload-modal-shell{width:min(660px,95vw);max-width:660px;max-height:min(92dvh,820px);border:1px solid rgba(125,211,252,.22);border-radius:22px;background:linear-gradient(155deg,rgba(10,18,42,.99),rgba(4,9,24,.99));box-shadow:0 28px 80px rgba(0,0,0,.58)}
.mg-upload-body{display:flex;flex-direction:column;gap:15px;padding:20px;overflow:auto}
.mg-upload-intro span{color:#48caff;font-size:.62rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.mg-upload-intro h4{margin:4px 0;font-size:1.25rem}.mg-upload-intro p{margin:0;color:#8395af;font-size:.78rem;line-height:1.45}
.mg-upload-kind{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mg-upload-kind button{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;align-items:center;column-gap:10px;padding:12px;border:1px solid rgba(148,163,184,.14);border-radius:13px;background:rgba(255,255,255,.025);color:#8496b0;text-align:left;cursor:pointer}.mg-upload-kind button>span{grid-row:1/3;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(56,189,248,.08);color:#63d8ff;font-size:1rem}.mg-upload-kind strong{color:#dcecff;font-size:.82rem}.mg-upload-kind small{font-size:.64rem}.mg-upload-kind button.is-active{border-color:rgba(94,210,255,.42);background:linear-gradient(135deg,rgba(14,165,233,.16),rgba(37,99,235,.09));box-shadow:0 0 0 3px rgba(56,189,248,.05)}
.mg-upload-dropzone{display:grid;place-items:center;min-height:150px;padding:22px;border:1px dashed rgba(103,216,255,.42);border-radius:16px;background:radial-gradient(circle at 50% 30%,rgba(56,189,248,.1),transparent 60%),rgba(2,7,20,.52);color:#d9efff;text-align:center;cursor:pointer;transition:border-color .2s ease,background .2s ease}.mg-upload-dropzone.is-dragging{border-color:#67e8f9;background:rgba(14,165,233,.12)}.mg-upload-dropzone input{display:none}.mg-upload-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:8px;border-radius:13px;background:linear-gradient(135deg,#0891b2,#2563eb);font-size:1.35rem}.mg-upload-dropzone strong{font-size:.86rem}.mg-upload-dropzone small{margin-top:4px;color:#7187a5;font-size:.68rem}
.mg-upload-preview{display:flex;align-items:center;justify-content:center;min-height:88px;overflow:hidden;border:1px solid rgba(148,163,184,.12);border-radius:13px;background:rgba(2,7,20,.55)}.mg-upload-preview.is-empty{color:#667b98;font-size:.7rem}.mg-upload-preview img,.mg-upload-preview video{display:block;width:100%;max-height:170px;object-fit:contain;background:#020617}.mg-upload-preview div{min-width:0;padding:13px}.mg-upload-preview div strong,.mg-upload-preview div span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mg-upload-preview div strong{font-size:.78rem}.mg-upload-preview div span{margin-top:4px;color:#7187a5;font-size:.66rem}
.mg-upload-destination{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 14px;border:1px solid rgba(148,163,184,.12);border-radius:13px;background:rgba(255,255,255,.025)}.mg-upload-destination span,.mg-upload-destination strong{display:block}.mg-upload-destination span{color:#7187a5;font-size:.58rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.mg-upload-destination strong{margin-top:2px;font-size:.75rem}.mg-upload-destination select{width:150px;min-height:38px}.mg-upload-destination.is-user-only select{pointer-events:none;opacity:.78}
.mg-upload-status{min-height:18px;color:var(--primary-hover);font-size:.7rem}.mg-upload-status.is-error{color:#fb7185}.mg-upload-status.is-success{color:#4ade80}.mg-upload-footer{display:flex;justify-content:flex-end;gap:9px;padding-top:3px}.mg-upload-footer button{min-height:40px;padding:9px 16px}
@media(max-width:560px){.mg-upload-kind{grid-template-columns:1fr}.mg-upload-destination{align-items:stretch;flex-direction:column}.mg-upload-destination select{width:100%}.mg-upload-footer button{flex:1}}
@media (max-width: 820px) {
    .prog-banner-header { padding:12px 14px; gap:8px; }
    .prog-header-top { flex-wrap:wrap; gap:8px 12px; }
    .prog-boss-panel { padding:7px 9px; }
    .prog-boss-icon { width:24px; height:24px; flex-basis:24px; }
    .prog-stat-badge { min-width:44px; padding:6px; }
    .prog-stat-badge small { display:none; }
    .prog-progress-label { font-size:.54rem; }
}
.modal-body { padding: 20px; overflow-y: auto; background: transparent; width: 100%; box-sizing: border-box; }
.modal-body::-webkit-scrollbar { width: 6px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }
.login-modal-layout { display: flex; gap: 5%; align-items: center; width: 900px; max-width: 100%; }
.login-visual-container { width: 40%; display: flex; justify-content: center; }
.warlock-img { width: 100%; max-width: 220px; height: auto; opacity: 0.8; }
.login-form-container { width: 60%; display: flex; flex-direction: column; justify-content: center; }
.forgot-link { text-align: center; margin-top: 25px; font-size: 0.9rem; }
.forgot-link a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.forgot-link a:hover { color: var(--text-primary); }
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.store-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed);
}
.store-item:hover {
    transform: translateY(-5px);
}
.store-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}
.store-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.store-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    height: 40px;
}
.store-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: #10b981;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.topside-placeholder {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    justify-content: flex-start; 
    width: 100%;
    margin-bottom: 2rem;
    padding: 0;
    max-width: min(100%, var(--vsg-banner-max-width));
}
#guildProgressionBanner {
    flex: 1 1 calc(50% - 10px);
    max-width: none;
    height: var(--vsg-banner-height);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
#thisWeekWowBanner {
    flex: 1 1 calc(50% - 10px);
    max-width: none;
    height: var(--vsg-banner-height);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.4);
}
.nw-header-banner {
    width: 100%;
    height: 250px;
    position: relative; 
    border-radius: 12px; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 30px; 
    box-sizing: border-box; 
    border: 1px solid rgba(255,255,255,0.05); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: rgba(26,26,46,0.8);
    margin-bottom: 25px;
}
#nwDynamicVideo {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%;
    z-index: 0; opacity: 0.4; border-radius: 12px; filter: saturate(1.05) contrast(1.04);
    mask-image: linear-gradient(to right, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 60%, transparent 100%);
}
@media (max-width: 900px) {
    .topside-placeholder { flex-direction: column; padding: 10px; gap: 20px; }
    #guildProgressionBanner, #thisWeekWowBanner { flex: 1 1 100%; max-width: 100%; height: var(--vsg-banner-height); min-height: var(--vsg-banner-height); }
    .nw-header-banner { flex-direction: column; justify-content: center; text-align: center; gap: 15px; }
}
@media (max-width: 820px) {
    .prog-next-box { display: none; }
}
@media (max-width: 820px) {
    .login-modal-layout { flex-direction: column; min-width: 100%; gap: 0; }
    .login-visual-container { display: none; }
    .login-form-container { width: 100%; padding: 20px 10px; }
}
#mgMediaBrowserModal { padding: clamp(8px, 1.5vw, 22px); background: rgba(1,5,17,.86); backdrop-filter: none; }
#mgMediaBrowserModal .mg-media-modal-shell { width: min(1680px, 98vw); min-width: 0; max-width: 1680px; height: min(94dvh, 1040px); min-height: 0; border: 1px solid rgba(125,211,252,.18); border-radius: 22px; background: linear-gradient(150deg, rgba(11,19,42,.99), rgba(4,8,21,.99)); box-shadow: 0 40px 100px rgba(0,0,0,.62); }
#mgMediaBrowserModal .modal-header { min-height: 66px; padding: 12px 18px; border-color: rgba(148,163,184,.13); background: rgba(3,8,22,.8); }
#mgMediaBrowserModal .modal-header > img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(56,189,248,.25)); }
#mgMediaBrowserModal .modal-title { font-size: 1.08rem; font-weight: 750; }
.mg-media-toolbar { grid-template-columns: minmax(260px, 1fr) auto; grid-template-areas: "heading actions" "search controls" "categories categories"; gap: 12px 18px; padding: 17px 20px 14px; border-color: rgba(148,163,184,.12); background: rgba(5,10,27,.72); box-shadow: none; }
.mg-library-heading { grid-area: heading; min-width: 0; }
.mg-library-heading > span { display: block; margin-bottom: 4px; color: var(--primary-color); font-size: .58rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
#mgMediaBreadcrumb { color: #f1f7ff; font-size: clamp(1.15rem, 1.8vw, 1.55rem); letter-spacing: -.025em; }
.mg-media-actions { gap: 7px; }
.mg-media-actions .btn-primary,
.mg-media-actions .btn-outline { min-height: 37px; padding: 7px 11px; border-radius: 9px; font-size: .7rem; }
.mg-media-actions .btn-primary { background: linear-gradient(135deg, #0284c7, #2563eb); border-color: rgba(125,211,252,.35); }
.mg-media-search-wrap { grid-area: search; max-width: 560px; }
#mgMediaSearch { height: 41px; padding-left: 14px; border: 1px solid rgba(148,163,184,.18); border-radius: 10px; background: rgba(2,6,23,.7); }
.mg-media-categories { grid-area: categories; display: flex; gap: 6px; overflow-x: auto; padding-top: 2px; scrollbar-width: none; }
.mg-category-chip { flex: 0 0 auto; min-height: 33px; padding: 6px 11px; border: 1px solid transparent; border-radius: 9px; background: rgba(255,255,255,.025); color: #8393ac; font-size: .66rem; font-weight: 750; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.mg-category-chip:hover { color: #dff6ff; border-color: rgba(56,189,248,.18); }
.mg-category-chip.active { color: #dff7ff; border-color: rgba(56,189,248,.3); background: rgba(56,189,248,.11); box-shadow: inset 0 0 0 1px rgba(56,189,248,.04); }
.mg-media-display-controls { grid-area: controls; display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
#mgMediaResultCount { color: #71829d; font-size: .65rem; white-space: nowrap; }
#mgMediaSort { width: 132px; height: 36px; padding: 6px 8px; border-radius: 8px; background: rgba(2,6,23,.68); font-size: .66rem; }
.mg-view-switch { display: inline-flex; padding: 3px; border: 1px solid rgba(148,163,184,.13); border-radius: 8px; background: rgba(2,6,23,.55); }
.mg-view-switch button { min-height: 28px; padding: 4px 8px; border: 0; border-radius: 6px; background: transparent; color: #71819a; font-size: .61rem; cursor: pointer; }
.mg-view-switch button.active { background: rgba(56,189,248,.13); color: #dff7ff; }
.mg-media-main { background: radial-gradient(circle at 30% 0%, rgba(37,99,235,.05), transparent 36%); }
#mgMediaBrowserGrid { grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 12px; padding: 18px 20px 24px; scrollbar-color: rgba(56,189,248,.24) transparent; }
.mg-media-folder,
.mg-media-item { border: 1px solid rgba(148,163,184,.12); border-radius: 13px; background: linear-gradient(150deg, rgba(13,22,45,.86), rgba(4,9,22,.94)); box-shadow: 0 10px 24px rgba(0,0,0,.17); }
.mg-media-folder { min-height: 164px; padding: 18px 14px; }
.mg-folder-icon { display: grid; place-items: center; width: 47px; height: 40px; margin-bottom: 12px; border: 1px solid rgba(56,189,248,.18); border-radius: 10px; background: rgba(56,189,248,.07); font-size: 1.25rem; }
.mg-folder-name { color: #cfeeff; font-size: .78rem; }
.mg-media-item { min-height: 205px; }
.mg-media-thumb { position: relative; min-height: 155px; background: #030817; }
.mg-media-thumb img { object-fit: cover; }
.mg-media-type { position: absolute; z-index: 2; top: 8px; right: 8px; padding: 3px 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 6px; background: rgba(2,6,23,.72); backdrop-filter: none; color: #bcecff; font: 800 .52rem ui-monospace, monospace; }
.mg-media-name { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; text-align: left; background: rgba(3,8,21,.94); }
.mg-media-name strong { overflow: hidden; color: #e3ecf8; font-size: .68rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mg-media-name span { overflow: hidden; color: #62738f; font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.mg-media-item-selected { border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(56,189,248,.18), 0 16px 34px rgba(0,0,0,.28); }
#mgMediaBrowserGrid.is-compact { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
#mgMediaBrowserGrid.is-compact .mg-media-item { display: grid; grid-template-columns: 92px minmax(0,1fr); min-height: 76px; height: 76px; }
#mgMediaBrowserGrid.is-compact .mg-media-thumb { min-height: 74px; }
#mgMediaBrowserGrid.is-compact .mg-media-name { justify-content: center; }
.mg-media-main.with-editor { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); }
.mg-media-editor-panel { border-color: rgba(148,163,184,.12); background: linear-gradient(180deg, rgba(11,20,42,.96), rgba(4,9,22,.96)); }
@media (max-width: 760px) {
    .mg-media-toolbar { grid-template-columns: 1fr; grid-template-areas: "heading" "search" "categories" "controls" "actions"; }
    .mg-media-actions,
    .mg-media-display-controls { justify-content: flex-start; flex-wrap: wrap; }
    .mg-media-main.with-editor { grid-template-columns: 1fr; }
    #mgMediaBrowserGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
    .mg-media-item { min-height: 160px; }
    .mg-media-thumb { min-height: 112px; }
}
.nw-reader-body img {
    max-width: 40%;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
    margin: 15px auto;
}
.nw-reader-body img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}
.u-hidden { display: none; }
.u-text-center { text-align: center; }
.u-text-right { text-align: right; }
.u-text-left { text-align: left; }
.u-text-muted { color: var(--text-muted); }
.u-primary { color: var(--primary-color); }
.u-danger { color: #ef4444; }
.u-success { color: #10b981; }
.u-flex { display: flex; }
.u-flex-col { display: flex; flex-direction: column; }
.u-items-center { align-items: center; }
.u-justify-between { justify-content: space-between; }
.u-justify-end { justify-content: flex-end; }
.u-gap-8 { gap: 8px; }
.u-gap-10 { gap: 10px; }
.u-gap-15 { gap: 15px; }
.u-wrap { flex-wrap: wrap; }
.u-w-100 { width: 100%; }
.u-mb-10 { margin-bottom: 10px; }
.u-mb-15 { margin-bottom: 15px; }
.u-mb-20 { margin-bottom: 20px; }
.u-mt-15 { margin-top: 15px; }
.u-mt-20 { margin-top: 20px; }
.u-p-20 { padding: 20px; }
.u-panel-soft {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
}
.u-btn-success { background:#10b981; border-color:#059669; }
.u-btn-warn { border-color:#f59e0b; color:#f59e0b; }
.u-btn-danger { border-color:#ef4444; color:#ef4444; }
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.content-container {
    max-width: 1700px;
}
.card,
.modal-content,
.ap-left-card,
.ap-preview-live,
.mg-raid-card,
.pt-leaderboard {
    border-radius: var(--radius-md);
    box-shadow: var(--elev-2);
}
.btn-primary,
.btn-outline,
.nav-btn,
.form-control,
.universal-tab-btn {
    border-radius: var(--radius-sm);
}
.btn-primary,
.btn-outline,
.nav-btn {
    font-size: var(--text-sm);
    letter-spacing: 0.01em;
}
.nav-btn {
    min-height: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 1.15;
}
.btn-primary:hover,
.btn-outline:hover,
.nav-btn:hover {
    transform: none;
}
.btn-primary:active,
.btn-outline:active,
.nav-btn:active {
    transform: none;
}
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.nav-btn:focus-visible,
.form-control:focus-visible,
.universal-tab-btn:focus-visible,
.data-table tr:focus-within,
.ap-live-alter-clickable:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring-strong);
}
.np-form-group label {
    font-size: var(--text-xs);
    margin-bottom: var(--space-1);
}
.form-control {
    font-size: var(--text-sm);
    padding: clamp(10px, 0.7vw, 12px) clamp(12px, 0.9vw, 14px);
    background: rgba(5,10,24,0.55);
    border-color: rgba(148,163,184,0.34);
}
.form-control::placeholder {
    color: rgba(191,206,233,0.6);
}
.form-control:hover {
    border-color: rgba(147,197,253,0.5);
}
.form-control:focus {
    border-color: rgba(125,211,252,0.8);
    background: rgba(4,11,28,0.75);
}
select.form-control {
    background-position: right 12px center;
}
.table-responsive {
    border-radius: var(--radius-sm);
}
.data-table th {
    position: sticky;
    top: 0;
    backdrop-filter: none;
    background: rgba(17,23,44,0.86);
    z-index: 1;
}
.data-table tbody tr {
    transition: background-color .2s ease, transform .2s ease;
}
.data-table tbody tr:hover {
    background: rgba(148,163,184,0.08);
}
.modal { background: rgba(3, 7, 18, 0.82);
}
.modal-content {
    max-height: min(92dvh, 1020px);
}
.modal-body {
    overflow: auto;
    overscroll-behavior: contain;
}
body.vsg-modal-open {
    overflow: hidden;
}
#universalModal .modal-content,
#alertModal .modal-content {
    width: min(760px, 94vw);
    max-height: min(88dvh, 900px);
    border-radius: 14px;
}
#universalModal .modal-header,
#alertModal .modal-header {
    padding: 12px 16px;
}
#universalModal .modal-title,
#alertModal .modal-title {
    font-size: 1.05rem;
}
#universalModal .modal-body,
#alertModal .modal-body {
    padding: 14px 16px;
}
.ap-live-alter-clickable {
    min-height: 44px;
}
@media (max-width: 992px) {
    .content-container {
        padding: var(--space-3);
    }
    .card,
    .modal-content {
        border-radius: var(--radius-sm);
    }
}
@media (max-width: 640px) {
    .btn-primary,
    .btn-outline,
    .nav-btn {
        width: 100%;
    }
    .data-table th,
    .data-table td {
        padding: 12px;
    }
}
.vsg-discord-rank {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    margin-left: 6px;
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: 6px;
    background: rgba(88, 101, 242, 0.16);
    color: #9ec5ff;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    vertical-align: middle;
}
@media (max-width: 820px) {
    .mobile-header {
        display: flex;
        height: calc(68px + env(safe-area-inset-top, 0px));
        padding-top: env(safe-area-inset-top, 0);
    }
    .sidebar { transform: translateX(-100%); width: 260px; }
    .sidebar.open { transform: translateX(0); }
    .close-mobile-menu { display: block; }
    .content-container {
        margin-left: 0;
        width: 100%;
        padding: calc(84px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 20px max(12px, env(safe-area-inset-left, 0px));
    }
}
.ach-congrats-modal {
    text-align: center;
    padding: 10px 6px 4px;
}
.ach-congrats-icon {
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.55));
    animation: achBounceIn 0.5s cubic-bezier(.34,1.56,.64,1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ach-congrats-rank-img { width: 92px; height: 92px; object-fit: contain; }
@keyframes achBounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}
.ach-congrats-title {
    margin: 0 0 6px;
    color: #fbbf24;
    font-size: 1.3rem;
    letter-spacing: 0.02em;
}
.ach-congrats-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    padding: 0 10px;
}
.ach-congrats-threshold {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.ach-congrats-coin { width: 18px; height: 18px; object-fit: contain; }
.ach-congrats-copy {
    color: var(--text-muted, var(--text-sub));
    font-size: 0.88rem;
    margin: 0 auto 18px;
    max-width: 340px;
}
.ach-congrats-close { width: 100%; padding: 12px; font-weight: 700; }
.user-account-wrap { position: relative; width: 100%; margin: 0 auto; }
.user-account-wrap #userAccountBtn { width: 100%; margin: 0; }
.nav-bell-btn-embedded {
    position: absolute;
    top: -4px;
    right: 2px;
    width: 26px;
    height: 26px;
    aspect-ratio: 1;
    flex-shrink: 0;
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0.88rem;
    line-height: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.9));
    border: 2px solid rgba(10, 14, 34, 0.92);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    color: #f0f9ff;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.2s ease, background 0.2s ease;
}
.nav-bell-btn-embedded:hover { transform: scale(1.1); background: linear-gradient(135deg, rgba(56, 189, 248, 1), rgba(14, 165, 233, 1)); }
.nav-bell-btn { font-size: 1.05rem; line-height: 1; }
.nav-notif-count {
    position: absolute;
    top: -3px;
    right: -1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: var(--text-primary);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
}
.notif-center-modal { display: flex; flex-direction: column; gap: 6px; max-width: 420px; width: min(420px, 84vw); }
.notif-center-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, var(--text-sub));
    margin: 10px 0 4px;
}
.notif-center-section-title:first-child { margin-top: 0; }
.notif-center-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    color: inherit;
}
.notif-center-item:hover { border-color: rgba(56,189,248,0.35); }
.notif-center-item.is-unread { background: rgba(56,189,248,0.06); border-color: rgba(56,189,248,0.2); }
.notif-center-icon { font-size: 1.1rem; flex-shrink: 0; }
.notif-center-body { min-width: 0; }
.notif-center-msg { display: block; font-size: 0.85rem; color: #f1f5f9; line-height: 1.35; }
.notif-center-meta { display: block; font-size: 0.7rem; color: var(--text-muted, var(--text-sub)); margin-top: 3px; }
.notif-center-empty { padding: 24px; text-align: center; color: var(--text-muted, var(--text-sub)); font-size: 0.85rem; }
    .universal-top-container,
    .universal-top-header,
    .universal-top-header > *,
    .universal-top-title,
    .topside-placeholder#topsideContainer > * { min-width: 0; max-width: 100%; }
    .topside-placeholder#topsideContainer {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: clamp(12px, 1.5vw, 20px);
    }
    .topside-placeholder#topsideContainer > #guildProgressionBanner,
    .topside-placeholder#topsideContainer > #thisWeekWowBanner {
        width: 100%; height: auto; min-height: clamp(150px, 13vw, 184px);
    }
    @media (max-width: 820px) {
        .universal-top-container { min-height: 0 !important; padding: clamp(12px, 4vw, 18px) !important; }
        .universal-top-header { align-items: flex-start !important; gap: 10px !important; }
        .universal-top-title { flex: 1 1 190px; font-size: clamp(1.08rem, 5vw, 1.45rem) !important; line-height: 1.12; overflow-wrap: anywhere; }
        .universal-top-actions, .universal-tabs { flex: 1 1 100%; width: 100%; min-width: 0; }
        .universal-top-actions { display: flex; flex-wrap: wrap; gap: 8px; }
        .universal-top-actions > * { flex: 1 1 140px; min-width: 0; }
        .universal-tabs { overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
        .universal-tabs > * { flex: 0 0 auto; }
        .topside-placeholder#topsideContainer { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
        .topside-placeholder#topsideContainer > #guildProgressionBanner,
        .topside-placeholder#topsideContainer > #thisWeekWowBanner { min-height: 0; }
        .topside-placeholder#topsideContainer > #guildProgressionBanner { height: auto; min-height: 0; }
    }
    @media (max-width: 430px) {
        .universal-top-container { padding: 12px !important; }
        .universal-top-title { flex-basis: 150px; font-size: 1.05rem !important; }
        .universal-top-actions > * { flex-basis: 100%; }
        .topside-placeholder#topsideContainer > #thisWeekWowBanner { min-height: 236px; }
    }
}
@layer vsg-universal {
    #newsThisWeekWowBanner,
    #thisWeekWowBanner,
    #guildProgressionBanner {
        min-width: 0;
        max-width: 100%;
        container-type: inline-size;

        --vsg-surface-scale: 1;
    }
    .topside-placeholder#topsideContainer > #guildProgressionBanner,
    .topside-placeholder#topsideContainer > #thisWeekWowBanner {
        min-width: 0;
        max-width: 100%;
    }
    #guildProgressionBanner .prog-banner-container {
        width: 100%;
        min-width: 0;
        container-type: inline-size;
    }
    #guildProgressionBanner .prog-banner-header {
        padding: clamp(9px, 2.1cqw, 14px);
    }
    #guildProgressionBanner .prog-season-logo {
        width: clamp(20px, 3.6cqw, 28px);
        height: clamp(20px, 3.6cqw, 28px);
    }
    #guildProgressionBanner .prog-raid-name {
        font-size: clamp(.86rem, 2.25cqw, 1.16rem);
        overflow-wrap: anywhere;
    }
}

@layer vsg-universal {
.vsg-scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), #fea0c5);
    box-shadow: 0 0 10px var(--primary-color), 0 0 4px var(--text-primary);
    z-index: 9999;
    pointer-events: none;
    transition: width 0.08s ease-out;
}
body.vsg-modal-open {
    overflow: hidden !important;
    touch-action: none;
}
html, body {
    max-width: 100%;
    overflow-x: clip;
}
.vsg-table-container,
.table-responsive,
.roster-table-container,
.attendance-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    border-radius: var(--radius-md, 12px);
}
.vsg-table-container table thead th,
.table-responsive table thead th,
.roster-table-container table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #0d1831;
}
.text-truncate-safe {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-break-safe {
    overflow-wrap: anywhere;
    word-break: break-word;
}
img.avatar-preview,
img.main-logo,
img.mobile-brand-logo,
.member-avatar img,
.blizzard-render {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.nav-btn,
.btn-primary,
.btn-outline,
.tw-banner-card,
.card,
.modal-content {
    transform: translateZ(0);
    backface-visibility: hidden;
}
.vsg-contain-intrinsic {
    content-visibility: auto;
    contain-intrinsic-size: 0 320px;
}
:where(
    .content-container > *,
    .modal-content > *,
    .vsg-glass-card > *,
    .universal-top-actions > *,
    .nw-inline-actions > *,
    .rc-filters > *
) {
    min-inline-size: 0;
}
:where(.form-control, .btn-primary, .btn-outline) {
    max-inline-size: 100%;
}
* {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.modal-content, .card, .table-responsive, .roster-table-container, .raid-card, .sidebar, .main-content {
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style;
}
.table-responsive {
    contain: paint layout;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: stable;
}
#rosterTable, #accHistorialContent, .news-grid, .raids-grid {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}
.modal:not(.visible),
#universalModal:not(.visible),
#alertModal:not(.visible),
#mgUploadModal:not(.visible),
#mgMediaBrowserModal:not(.visible),
.vsg-birthday-modal:not(.is-visible),
.vsg-credentials-modal:not(.is-visible),
.vsg-carousel-section:not(.is-visible),
.vsg-modal:not(.visible),
.modal-backdrop:not(.visible) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}
.modal.visible,
#universalModal.visible,
#alertModal.visible,
#mgUploadModal.visible,
#mgMediaBrowserModal.visible {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(2, 6, 23, 0.82) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    z-index: 99999 !important;
    will-change: opacity;
    transform: translateZ(0);
}
.vsg-birthday-modal.is-visible,
.vsg-credentials-modal.is-visible,
.vsg-carousel-section.is-visible {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    will-change: opacity;
    transform: translateZ(0);
}
.modal-content,
#universalModal .modal-content,
#alertModal .modal-content,
.vsg-birthday-modal__panel,
.vsg-credentials-modal__panel,
.vsg-carousel-section-panel {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75);
}
#rosterTable, #accHistorialContent, .news-grid, .raids-grid {
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}
.scrollable, .table-responsive, .modal-body, .mg-dict-grid {
    overscroll-behavior: contain;
}
img {
    content-visibility: auto;
}
.loader-wrapper {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.loader-wrapper.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
#global-loader { pointer-events: none; }
.gp-page-shell .gp-shell-v2 { height: auto !important; min-height: 0 !important; }
.gp-page-shell .gp-shell-v2 .gp-tab-panel {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}
.gp-page-shell .gp-shell-v2 .gp-grid { width: 100%; }
.gp-summary-card {
    display: grid;
    gap: 13px;
    padding: 18px;
    border: 1px solid rgba(125,211,252,.22);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(14,30,57,.86), rgba(7,14,30,.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.gp-summary-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#e0f2fe; font-weight:850; }
.gp-summary-card-head strong { padding:4px 8px; border:1px solid rgba(52,211,153,.3); border-radius:999px; color:#6ee7b7; background:rgba(52,211,153,.08); font-size:.63rem; letter-spacing:.08em; }
.gp-summary-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:0; }
.gp-summary-list div { min-width:0; padding:10px; border-radius:10px; background:rgba(2,6,23,.34); }
.gp-summary-list dt { color:#8fa1b8; font-size:.65rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.gp-summary-list dd { margin:4px 0 0; color:#f1f5f9; font-size:.84rem; font-weight:750; overflow-wrap:anywhere; }
@media (max-width:760px) { .gp-summary-list { grid-template-columns:1fr 1fr; } .gp-summary-card { padding:13px; } }
.gp-page-shell .gp-live-activity {
    margin: 1rem 0;
    padding: clamp(1rem, 2vw, 1.45rem);
    border: 1px solid color-mix(in srgb, var(--vsg-accent, var(--primary-color)) 28%, transparent);
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% -30%, color-mix(in srgb, var(--vsg-accent, var(--primary-color)) 26%, transparent), transparent 50%),
        linear-gradient(135deg, rgba(11, 25, 51, .94), rgba(27, 17, 54, .94));
    box-shadow: 0 18px 34px rgba(2, 6, 23, .22);
}
.gp-live-activity > header, .gp-live-activity header > div, .gp-live-columns, .gp-live-columns li,
.gp-character-rich, .gp-character-main, .gp-character-metrics { display: flex; }
.gp-live-activity > header { align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.gp-live-activity header span { display: block; color: var(--primary-hover); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.gp-live-activity h3 { margin: .18rem 0 0; color: var(--text-main); font-size: clamp(1rem, 1.8vw, 1.24rem); }
.gp-live-activity > header > strong { padding: .35rem .6rem; border: 1px solid rgba(74, 222, 128, .42); border-radius: 999px; color: #bbf7d0; background: rgba(22, 101, 52, .22); font-size: .66rem; letter-spacing: .08em; white-space: nowrap; }
.gp-live-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.gp-live-columns section { min-width: 0; padding: .78rem; border: 1px solid rgba(148, 163, 184, .16); border-radius: 13px; background: rgba(2, 6, 23, .24); }
.gp-live-columns h4 { margin: 0 0 .55rem; color: var(--text-muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gp-live-columns ul { display: grid; gap: .36rem; margin: 0; padding: 0; list-style: none; }
.gp-live-columns li { align-items: center; gap: .42rem; min-width: 0; color: var(--text-muted); font-size: .77rem; }
.gp-live-columns li strong { flex: 0 0 auto; color: var(--text-main); font-size: .74rem; }
.gp-live-columns li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-live-columns .gp-live-empty { color: var(--text-sub); font-size: .72rem; line-height: 1.38; }
.gp-page-shell .gp-character-rich { align-items: center; gap: .75rem; min-height: 78px; padding: .62rem; border-color: rgba(125, 211, 252, .17); background: linear-gradient(135deg, rgba(15, 23, 42, .72), rgba(30, 41, 59, .38)); transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .22s ease, box-shadow .22s ease; }
.gp-page-shell .gp-character-rich:hover { transform: translateY(-2px); border-color: rgba(125, 211, 252, .46); box-shadow: 0 12px 22px rgba(2, 6, 23, .24); }
.gp-page-shell .gp-character-face { width: 62px; height: 62px; flex: 0 0 62px; object-fit: cover; object-position: center top; border: 2px solid rgba(248, 250, 252, .38); border-radius: 14px; background: #0f172a; box-shadow: 0 6px 14px rgba(2, 6, 23, .35); }
.gp-character-main { min-width: 0; flex: 1; flex-direction: column; gap: .18rem; }
.gp-character-main > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; }
.gp-character-main > span { overflow: hidden; color: #aebdd0; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.gp-character-metrics { flex-wrap: wrap; gap: .36rem; margin-top: .2rem; }
.gp-character-metrics b { padding: .16rem .38rem; border: 1px solid rgba(148, 163, 184, .2); border-radius: 6px; color: #dbeafe; background: rgba(15, 23, 42, .54); font-size: .65rem; font-weight: 700; }
.gp-page-shell .gp-banner-effect-particles::after { animation: gpProfileParticles 18s linear infinite; }
.gp-page-shell .gp-banner-effect-glow-pulse { animation: gpProfileGlow 3.8s ease-in-out infinite; }
.gp-page-shell .gp-avatar-glow { animation: gpProfileAvatarGlow 3.2s ease-in-out infinite; }
@keyframes gpProfileParticles { from { background-position: 0 0, 0 0; } to { background-position: 110px 160px, -90px 120px; } }
@keyframes gpProfileGlow { 0%, 100% { filter: saturate(1) brightness(1); } 50% { filter: saturate(1.2) brightness(1.1); } }
@keyframes gpProfileAvatarGlow { 0%, 100% { box-shadow: 0 0 15px color-mix(in srgb, var(--vsg-accent, var(--primary-color)) 48%, transparent); } 50% { box-shadow: 0 0 27px color-mix(in srgb, var(--vsg-accent, var(--primary-color)) 76%, transparent); } }
@media (max-width: 740px) {
    .gp-live-columns { grid-template-columns: 1fr; }
    .gp-live-activity > header { align-items: flex-start; }
    .gp-live-activity > header > strong { margin-top: .08rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gp-page-shell .gp-banner-effect-particles::after, .gp-page-shell .gp-banner-effect-glow-pulse, .gp-page-shell .gp-avatar-glow { animation: none; }
    .gp-page-shell .gp-character-rich { transition: none; }
}
.gp-page-shell { width: 100%; max-width: none; }
.gp-page-shell .gp-shell-v2 { width: 100%; max-width: none; }
.gp-shell-v2 .gp-tab-panel { gap: clamp(14px, 1.7vw, 20px); }
.gp-banner .gp-hero-v2 { grid-template-columns: auto minmax(0, 1fr) auto; }
.gp-banner-currencies { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; min-width: 0; }
.gp-currency { display: flex; align-items: center; gap: .52rem; min-width: 132px; padding: .52rem .7rem; border: 1px solid rgba(255,255,255,.17); border-radius: 13px; background: rgba(2,6,23,.42); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.gp-currency img { width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
.gp-currency strong, .gp-currency span { display:block; }
.gp-currency strong { color:var(--text-main); font-size:1.05rem; line-height:1.05; }
.gp-currency span { margin-top:3px; color:#bfd4ef; font-size:.64rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.gp-currency-points { border-color:rgba(250,204,21,.35); background:linear-gradient(135deg,rgba(113,63,18,.36),rgba(2,6,23,.44)); }
.gp-currency-vanilla { border-color:rgba(125,211,252,.36); background:linear-gradient(135deg,rgba(3,105,161,.27),rgba(2,6,23,.44)); }
.gp-profile-dossier { display:grid; grid-template-columns:minmax(220px,.72fr) minmax(0,1.45fr); gap:clamp(14px,2vw,22px); align-items:stretch; padding:clamp(15px,2vw,22px); border:1px solid color-mix(in srgb,var(--gp-class,var(--primary-color)) 35%,transparent); border-radius:18px; background:linear-gradient(135deg,color-mix(in srgb,var(--gp-class,var(--primary-color)) 12%,rgba(15,23,42,.92)),rgba(5,12,27,.93)); box-shadow:0 15px 30px rgba(2,6,23,.21); }
.gp-dossier-class { display:flex; align-items:center; gap:14px; min-width:0; padding-right:clamp(0px,1.6vw,20px); border-right:1px solid rgba(148,163,184,.16); }
.gp-dossier-class img { width:76px; height:76px; flex:0 0 76px; object-fit:contain; filter:drop-shadow(0 8px 12px rgba(0,0,0,.32)); }
.gp-dossier-class span,.gp-dossier-class strong,.gp-dossier-class b { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gp-dossier-class span { color:#a7cbe9; font-size:.63rem; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.gp-dossier-class strong { margin-top:4px; color:var(--gp-class,#e0f2fe); font-size:clamp(1.08rem,1.8vw,1.35rem); }
.gp-dossier-class b { margin-top:5px; color:var(--text-main); font-size:.82rem; font-weight:750; }
.gp-profile-dossier .gp-summary-list { align-content:start; grid-template-columns:repeat(3,minmax(0,1fr)); }
.gp-profile-dossier .gp-summary-list div { border:1px solid rgba(148,163,184,.1); background:rgba(2,6,23,.26); }
.gp-registered-roster { padding:clamp(15px,2vw,22px); border:1px solid rgba(125,211,252,.2); border-radius:18px; background:linear-gradient(145deg,rgba(10,23,48,.9),rgba(5,12,27,.92)); box-shadow:inset 0 1px 0 rgba(255,255,255,.035); }
.gp-registered-roster .gp-heading { margin-bottom:15px; }
.gp-registered-roster .gp-characters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; max-height:none; overflow:visible; }
.gp-registered-roster .gp-character-rich { min-width:0; min-height:98px; padding:.72rem; }
.gp-registered-roster .gp-character-face { width:52px; height:52px; flex-basis:52px; border-radius:12px; }
.gp-registered-roster .gp-character-metrics { gap:.25rem; }
.gp-registered-roster .gp-character-metrics b { font-size:.59rem; }
.gp-page-shell .gp-live-activity { margin:0; border-color:rgba(125,211,252,.24); background:radial-gradient(circle at 100% 0,rgba(56,189,248,.16),transparent 34%),linear-gradient(145deg,rgba(12,27,54,.96),rgba(16,12,40,.96)); }
.gp-live-activity > header > div { display:block; }
.gp-live-activity > header small { display:block; margin-top:.26rem; color:#a5b9d4; font-size:.72rem; }
.gp-activity-layout { display:grid; grid-template-columns:minmax(240px,1.05fr) minmax(300px,1.35fr) minmax(185px,.75fr); gap:.8rem; }
.gp-activity-layout > section { min-width:0; padding:.82rem; border:1px solid rgba(148,163,184,.16); border-radius:14px; background:rgba(2,6,23,.26); }
.gp-activity-section-head { display:flex; align-items:center; justify-content:space-between; gap:.6rem; margin-bottom:.64rem; }
.gp-activity-section-head span { color:var(--text-muted); font-size:.69rem; font-weight:850; letter-spacing:.075em; text-transform:uppercase; }
.gp-activity-section-head strong { color:var(--primary-hover); font-size:.7rem; white-space:nowrap; }
.gp-mythic-run-list { display:grid; gap:.46rem; }
.gp-mythic-run { display:grid; grid-template-columns:51px minmax(0,1fr) auto; align-items:center; gap:.54rem; min-width:0; overflow:hidden; border:1px solid rgba(125,211,252,.16); border-radius:10px; background:rgba(15,23,42,.48); }
.gp-mythic-run img { width:51px; height:42px; object-fit:cover; }
.gp-mythic-run div { min-width:0; }
.gp-mythic-run strong,.gp-mythic-run span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gp-mythic-run strong { color:#e5f4ff; font-size:.76rem; }
.gp-mythic-run span { margin-top:2px; color:#8fa5c0; font-size:.63rem; }
.gp-mythic-run > b { align-self:stretch; display:grid; place-items:center; min-width:36px; padding:0 .3rem; color:#fef3c7; background:rgba(161,98,7,.25); font-size:.78rem; }
.gp-points-ledger { display:grid; gap:.48rem; }
.gp-points-category { padding:.58rem .63rem; border-left:3px solid rgba(56,189,248,.64); border-radius:9px; background:rgba(15,23,42,.46); }
.gp-points-category header { display:flex; align-items:center; justify-content:space-between; gap:.6rem; }
.gp-points-category header span { color:#dbeafe; font-size:.69rem; font-weight:850; }
.gp-points-category header strong { color:#86efac; font-size:.68rem; white-space:nowrap; }
.gp-points-category ul,.gp-activity-awards ul { display:grid; gap:.33rem; margin:.45rem 0 0; padding:0; list-style:none; }
.gp-points-category li,.gp-activity-awards li { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.42rem; align-items:start; color:#c6d4e7; font-size:.68rem; }
.gp-points-category li b { color:#93c5fd; }
.gp-points-category li span,.gp-activity-awards li span { overflow:hidden; line-height:1.32; }
.gp-activity-awards li strong { color:#fef3c7; font-size:.69rem; }
.gp-activity-awards .gp-live-empty { display:block; color:var(--text-sub); font-size:.71rem; line-height:1.45; }
.gp-bnet { display:none !important; }
@media (max-width:1050px) {
  .gp-registered-roster .gp-characters { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .gp-activity-layout { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gp-activity-awards { grid-column:1/-1; }
}
@media (max-width:760px) {
  .gp-page-shell { width:min(100% - 18px, 920px); }
  .gp-banner .gp-hero-v2 { grid-template-columns:64px minmax(0,1fr); }
  .gp-banner-currencies { grid-column:1/-1; justify-content:stretch; }
  .gp-currency { flex:1 1 140px; min-width:0; }
  .gp-profile-dossier { grid-template-columns:1fr; gap:14px; }
  .gp-dossier-class { padding:0 0 13px; border-right:0; border-bottom:1px solid rgba(148,163,184,.16); }
  .gp-profile-dossier .gp-summary-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gp-registered-roster .gp-characters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gp-activity-layout { grid-template-columns:1fr; }
  .gp-activity-awards { grid-column:auto; }
}
@media (max-width:430px) {
  .gp-banner-currencies { display:grid; grid-template-columns:1fr 1fr; gap:.42rem; }
  .gp-currency { padding:.46rem; gap:.38rem; }
  .gp-currency img { width:27px; height:27px; flex-basis:27px; }
  .gp-currency strong { font-size:.92rem; }
  .gp-registered-roster .gp-characters { grid-template-columns:1fr; }
  .gp-profile-dossier .gp-summary-list { grid-template-columns:1fr 1fr; gap:7px; }
  .gp-dossier-class img { width:64px; height:64px; flex-basis:64px; }
}
.gp-page-shell {
  --gp-surface: #0b1328;
  --gp-panel: #101b35;
  --gp-line: rgba(148, 163, 184, .16);
  gap: 14px;
}
.gp-page-top { border-color: rgba(96,165,250,.24); background: linear-gradient(100deg,#071a33,#12162e); box-shadow: none; }
.gp-page-shell .gp-shell-v2 { gap: 14px; }
.gp-page-shell .gp-banner-effect-particles::after,
.gp-page-shell .gp-banner-effect-glow-pulse,
.gp-page-shell .gp-avatar-glow { animation: none; }
.gp-page-shell .gp-banner { border:1px solid rgba(125,211,252,.17); border-radius:20px; padding:0; background-color:#081728; box-shadow:0 14px 32px rgba(2,6,23,.24); }
.gp-page-shell .gp-banner-scrim { background:linear-gradient(90deg,rgba(3,12,26,.7),rgba(3,12,26,.36) 56%,rgba(3,12,26,.72)); }
.gp-page-shell .gp-hero { min-height:190px; padding:clamp(20px,3vw,34px); }
.gp-page-shell .gp-avatar-wrap { border-color:var(--gp-accent,var(--primary-color)); box-shadow:0 10px 22px rgba(2,6,23,.34); }
.gp-hero-info { display:grid; align-content:center; gap:5px; }
.gp-hero-info h2 { margin:0; letter-spacing:-.035em; }
.gp-hero-info > p { margin:1px 0 0; }
.gp-hero-class-chip { display:inline-flex; align-items:center; width:max-content; max-width:100%; gap:8px; margin-top:3px; padding:5px 10px 5px 6px; border:1px solid color-mix(in srgb,var(--gp-class,var(--primary-color)) 48%,transparent); border-radius:999px; background:rgba(2,6,23,.38); }
.gp-hero-class-chip img { width:28px; height:28px; object-fit:contain; }
.gp-hero-class-chip div { min-width:0; }
.gp-hero-class-chip span,.gp-hero-class-chip strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gp-hero-class-chip span { color:var(--gp-class,#e2e8f0); font-size:.64rem; font-weight:900; letter-spacing:.075em; text-transform:uppercase; }
.gp-hero-class-chip strong { margin-top:1px; color:#dbeafe; font-size:.69rem; }
.gp-page-shell .gp-currency { border-radius:12px; box-shadow:none; backdrop-filter:none; }
.gp-page-shell .gp-currency img { filter:none; }
.gp-page-shell .gp-tabs { padding:3px; border-radius:10px; box-shadow:none; }
.gp-page-shell .gp-tab-btn { min-height:34px; font-weight:800; }
.gp-page-shell .gp-stats > div,
.gp-page-shell .gp-profile-dossier,
.gp-page-shell .gp-registered-roster,
.gp-page-shell .gp-live-activity { box-shadow:none; }
.gp-page-shell .gp-stats > div { border-radius:12px; background:linear-gradient(145deg,rgba(16,27,53,.94),rgba(9,17,35,.94)); }
.gp-page-shell .gp-profile-dossier { border-radius:16px; background:linear-gradient(115deg,color-mix(in srgb,var(--gp-class,var(--primary-color)) 9%,#101b35),#0b142a); }
.gp-page-shell .gp-registered-roster { border-radius:16px; background:linear-gradient(145deg,#101b35,#0b142a); }
.gp-page-shell .gp-character-rich { border-radius:12px; background:rgba(7,16,35,.72); transition:border-color .16s ease,background .16s ease; }
.gp-page-shell .gp-character-rich:hover { transform:none; border-color:rgba(125,211,252,.46); background:rgba(18,36,68,.86); box-shadow:none; }
.gp-page-shell .gp-character-face { box-shadow:none; }
.gp-page-shell .gp-live-activity { border-radius:16px; background:linear-gradient(145deg,#101d39,#11152d); }
.gp-page-shell .gp-live-activity > header { margin-bottom:12px; }
.gp-page-shell .gp-activity-layout { grid-template-columns:minmax(260px,1fr) minmax(300px,1.25fr) minmax(180px,.68fr); }
.gp-page-shell .gp-activity-layout.gp-activity-without-mythics { grid-template-columns:minmax(320px,1.45fr) minmax(230px,.7fr); }
.gp-page-shell .gp-activity-layout > section { border-radius:12px; background:rgba(3,10,25,.34); }
.gp-page-shell .gp-mythic-run { border-radius:9px; box-shadow:none; }
.gp-page-shell .gp-points-category { border-left-width:2px; border-radius:8px; background:rgba(20,34,61,.56); }
.gp-page-shell .gp-points-category header strong { color:#bae6fd; }
.gp-page-shell .gp-points-category li b { color:#86efac; }
.gp-page-shell .gp-logros-head { padding:3px 2px 6px; }
.gp-page-shell .gp-ach-grid { grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); }
.gp-page-shell .gp-ach-card { min-height:64px; border-radius:11px; box-shadow:none; }
.gp-page-shell .gp-ach-card.is-unlocked { background:linear-gradient(145deg,rgba(15,28,54,.9),rgba(8,16,34,.9)); }
@media (max-width:1050px) {
  .gp-page-shell .gp-activity-layout,
  .gp-page-shell .gp-activity-layout.gp-activity-without-mythics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .gp-page-shell .gp-banner { border-radius:16px; }
  .gp-page-shell .gp-hero { min-height:0; padding:18px; }
  .gp-hero-class-chip { margin-top:1px; }
  .gp-page-shell .gp-activity-layout,
  .gp-page-shell .gp-activity-layout.gp-activity-without-mythics { grid-template-columns:1fr; }
}
#global-loader.loader-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    display: grid;
    place-items: center;
    isolation: isolate;
    background: #070b17 !important;
    opacity: 1 !important;
    visibility: visible;
    z-index: 2147483647;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}
#global-loader.loader-wrapper.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}
#global-loader.loader-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    display: grid;
    place-items: center;
    isolation: isolate;
    background: #070b17 !important;
    opacity: 1 !important;
    visibility: visible;
    z-index: 2147483647;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}
#global-loader.loader-wrapper.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 180ms ease, visibility 0s linear 180ms;
}
body > div[style*="top: -10000px"][style*="z-index: 2000000000"],
body > div[style*="top: -10000px"][style*="z-index: 2000000000"] * {
    pointer-events: none !important;
}
.content-wrapper {
    transition: opacity 0.12s ease-out;
    opacity: 1;
}
.content-wrapper.is-switching {
    opacity: 0 !important;
}
}

/* ===== css/mobile.css ===== */
/* Contrato único del podio WCL para móvil y app. */
@layer vsg-universal {
html, body {
    max-width: 100%;
    overflow-x: hidden; 
    overflow-x: clip;
}
@media (max-width: 820px) {
    .content-container,
    .universal-top-container {
        max-width: 100%;
        box-sizing: border-box;
    }
    input.form-control,
    select.form-control,
    textarea.form-control {
        font-size: 16px;
        min-height: 36px;
    }
    .btn-primary,
    .btn-outline,
    .nav-btn {
        min-height: 20px;
    }
    .gp-stats,
    .mg-form-grid.mg-grid-3,
    .mg-form-grid.mg-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .gp-stats,
    .mg-form-grid.mg-grid-3,
    .mg-form-grid.mg-grid-4 {
        grid-template-columns: 1fr;
    }
    .universal-top-title,
    .section-kicker,
    .universal-top-subtitle {
        overflow-wrap: anywhere;
    }
}
@media (max-width: 680px) {
    .mobile-header { gap: 6px; padding-inline: 9px; }
    .mobile-header .mobile-brand-summary { flex: 1 1 auto; min-width: 0; gap: 6px; }
    .mobile-header .mobile-brand-copy { flex: 1 1 auto; min-width: 0; }
    .mobile-header .mobile-brand-text {
        display: block;
        width: auto;
        max-width: min(9.8rem, 44vw);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: clamp(.6rem, 2.55vw, .74rem);
        letter-spacing: -.02em;
    }
    .mobile-header > .u-row-gap-8 { flex: 0 0 auto; gap: 5px; }
    .mobile-header .mobile-login-btn { padding-inline: 8px; }
    .mobile-header #mobileMenuBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 48px;
        min-height: 48px;
        margin: -8px -6px -8px 0;
        font-size: 1.66rem;
    }
}
@media (max-width: 820px) {
    .universal-top-container {
        padding: 12px 14px;
        gap: 10px;
    }
    .universal-top-header {
        align-items: flex-start;
    }
    .universal-top-actions {
        width: auto;
        min-width: 0;
        flex-wrap: wrap;
    }
    .universal-top-actions .form-control,
    .universal-top-actions select.form-control {
        width: min(100%, 320px);
        max-width: 320px;
    }
    .universal-tab-btn {
        min-height: 44px;
        padding: 8px 12px;
    }
    .mobile-header {
        height: 68px;
        padding: 0 10px;
    }
    .mobile-brand-summary {
        display: flex;
        align-items: center;
        min-width: 0;
        gap: 7px;
    }
    .mobile-brand-logo {
        display: block;
        width: 32px;
        height: 32px;
        object-fit: contain;
        filter: drop-shadow(0 4px 9px rgba(56, 189, 248, .3));
    }
    .mobile-brand-copy {
        display: grid;
        min-width: 0;
        gap: 1px;
    }
    .mobile-brand-text {
        max-width: none;
        overflow: visible;
        color: #eef8ff;
        font-size: clamp(.6rem, 3vw, .74rem);
        font-weight: 800;
        letter-spacing: -.01em;
        line-height: 1.05;
        white-space: nowrap;
    }
    .mobile-social-shell {
        display: inline-grid;
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        place-items: center;
        border: 1px solid rgba(96, 165, 250, .22);
        border-radius: 11px;
        background: rgba(15, 23, 42, .62);
        box-shadow: inset 0 1px rgba(255,255,255,.06), 0 8px 18px rgba(1, 6, 20, .24);
    }
    .mobile-fb-icon {
        display: inline-grid;
        width: 29px;
        height: 29px;
        flex: 0 0 29px;
        place-items: center;
        border: 1px solid rgba(96, 165, 250, .48);
        border-radius: 8px;
        background: linear-gradient(135deg, rgba(24, 119, 242, .82), rgba(29, 78, 216, .86));
        box-shadow: 0 7px 17px rgba(29, 78, 216, .2), inset 0 1px rgba(255,255,255,.22);
        color: var(--text-primary);
        text-decoration: none;
    }
    .mobile-fb-icon:active { transform: translateY(1px); }
    .mobile-login-btn {
        display: inline-flex;
        align-items: center;
        min-height: 38px;
        padding: 6px 10px;
        border: 1px solid rgba(125, 211, 252, .48);
        border-radius: 9px;
        background: linear-gradient(135deg, rgba(14, 165, 233, .28), rgba(37, 99, 235, .38));
        color: #effaff;
        font: inherit;
        font-size: .67rem;
        font-weight: 850;
        line-height: 1;
        letter-spacing: .02em;
        white-space: nowrap;
        box-shadow: 0 7px 18px rgba(14, 165, 233, .18), inset 0 1px rgba(255,255,255,.15);
        cursor: pointer;
    }
    .mobile-login-btn:active { transform: translateY(1px); }
    @media (max-width: 460px) {
        .mobile-login-btn { min-height:34px; padding-inline: 7px; font-size: .6rem; }
        .mobile-brand-summary { gap:5px; }
        .mobile-brand-copy { min-width:0; }
        .mobile-brand-text { max-width:none; font-size:clamp(.58rem,3vw,.68rem); letter-spacing:-.025em; }
        .mobile-brand-logo { width: 29px; height: 29px; }
        .mobile-social-shell { width: 34px; height: 34px; flex-basis: 34px; }
        .mobile-fb-icon { width: 26px; height: 26px; flex-basis: 26px; }
    }
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .sidebar .main-nav { gap: 1px; }
    .sidebar .nav-btn {
        min-height: 32px;
        grid-template-columns: 19px minmax(0, 1fr) 4px;
        padding: 0 6px 0 4px;
        border-radius: 7px;
        background: transparent;
        border-color: transparent;
        font-size: .73rem;
    }
    .sidebar .nav-btn::before { width: 1em; height: 1em; }
    .sidebar .nav-btn:hover { background: rgba(255, 255, 255, .045); }
    .sidebar .logo-container { margin-bottom: 4px; padding-bottom: 5px; }
    .sidebar .menu-divider { margin: 3px 5px 2px; }
    .sidebar #openLoginBtn,
    .sidebar #userAccountBtn { min-height: 38px; padding-top: 2px; padding-bottom: 2px; }
    .main-content,
    .content-container {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    .top-bar {
        left: 0;
        width: 100%;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .table-responsive-wrapper,
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
        border: 1px solid rgba(255,255,255,0.05);
        background: rgba(15, 23, 42, 0.4);
    }
    .data-table {
        min-width: 0;
        width: 100%;
        display: table;
        border-collapse: separate;
        border-spacing: 0;
    }
    .table-responsive--wide .data-table,
    .table-responsive-wrapper--wide .data-table {
        min-width: min(680px, 100%);
    }
    .btn-primary,
    .btn-outline {
        touch-action: manipulation;
    }
    .data-table th:first-child,
    .data-table td:first-child {
        position: sticky;
        left: 0;
        background-color: #1e293b;
        z-index: 2;
        border-right: 2px solid rgba(56, 189, 248, 0.3);
    }
    .data-table th:first-child {
        z-index: 3;
        background-color: #0f172a;
    }
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    .card {
        margin-bottom: 15px;
    }
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    .form-group {
        margin-bottom: 15px;
    }
    .form-control {
        font-size: 16px;
    }
    .btn {
        width: auto;
        margin-bottom: 0;
    }
    .roster-grid,
    .news-grid,
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .media-browser-modal .modal-content {
        width: 98%;
        height: 90vh;
        margin: 5vh auto;
    }
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
@media (max-width: 480px) {
    .universal-top-title {
        font-size: 1.25rem;
    }
    h1, h2 {
        font-size: 1.5rem;
    }
    .top-bar-user span {
        display: none;
    }
    .alert-container {
        width: 90%;
        left: 5%;
        transform: translateX(0);
    }
    .dc-wrapper {
        width: 100%;
        padding: 10px;
    }
    .universal-tab-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    .dc-sim-controls {
        flex-direction: column;
    }
    .dc-sim-controls button {
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 820px) {
    :root {
        --vsg-mobile-gutter: 16px;
        --vsg-mobile-radius: 14px;
    }
    .main-content,
    .content-container { padding-inline: var(--vsg-mobile-gutter); }
    .content-wrapper > .card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin-inline: auto;
    }
    .universal-top-container {
        min-height: 0;
        padding: 14px;
        border-radius: var(--vsg-mobile-radius);
    }
    .nw-header-container { display: none !important; }
    .universal-top-header {
        flex-direction: column;
        align-items: stretch;
        gap: 11px;
    }
    .universal-top-title {
        font-size: clamp(1.15rem, 5.5vw, 1.45rem);
        line-height: 1.08;
        letter-spacing: -.03em;
    }
    .universal-top-subtitle,
    .universal-top-header p { font-size: 1rem; line-height: 1.4; }
    .universal-top-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 8px;
    }
    .universal-top-actions > * { flex: 0 1 auto; min-width: 0; max-width: 100%; }
    .universal-tabs {
        gap: 7px;
        padding-bottom: 3px;
        scrollbar-width: none;
    }
    .universal-tab-btn {
        min-height: 44px;
        padding: 8px 11px;
        border-radius: 9px;
        font-size: .72rem;
    }
    .card {
        border-radius: var(--vsg-mobile-radius);
        box-shadow: 0 12px 28px rgba(1,5,18,.2);
    }
    .dashboard-cards,
    .bento-grid,
    .stats-grid,
    .overview-grid,
    .nw-grid,
    .guides-grid { grid-template-columns: 1fr; }
    .modal-content,
    .modal .modal-content {
        width: calc(100vw - 20px);
        min-width: 0;
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
        margin: 10px auto;
        border-radius: 15px;
    }
    .modal-header { padding: 13px 14px; }
    .modal-body { padding: 14px; }
    .form-row,
    .form-grid,
    .grid-2,
    .grid-3,
    .filters-row { grid-template-columns: 1fr; }
    .section-actions,
    .toolbar-actions,
    .filter-bar { flex-wrap: wrap; gap: 8px; }
    .section-actions > *,
    .toolbar-actions > *,
    .filter-bar > * { min-width: 0; }
}
@media (max-width: 820px) {
    .rules-mode-tabs .universal-tab-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 4px 10px !important;
        border: none !important;
        border-radius: 6px !important;
        color: #8e8e93 !important;
        background: transparent !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }
    .rules-mode-tabs .universal-tab-btn.active,
    .rules-mode-tabs .universal-tab-btn.is-active {
        color: #000 !important;
        background: var(--primary-color) !important;
        font-weight: 600 !important;
        box-shadow: none !important;
    }
}
@media (max-width: 820px) {
    .admin-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        margin: 8px 0 !important;
        padding: 0 16px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, .05) !important;
        border: 1px solid rgba(255, 255, 255, .1) !important;
        color: var(--text-primary) !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-transform: none !important;
        letter-spacing: normal !important;
        box-shadow: none !important;
        cursor: pointer;
        transition: background .2s ease, border-color .2s ease;
    }
    .admin-menu-toggle::before { display: none !important; }
    .admin-menu-toggle:hover {
        background: rgba(255, 255, 255, .08) !important;
        border-color: rgba(255, 255, 255, .18) !important;
        transform: none !important;
    }
    .admin-menu-toggle-icon {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, .06) !important;
        border: 1px solid rgba(255, 255, 255, .12) !important;
        color: var(--text-primary) !important;
        cursor: pointer;
        transform: rotate(0deg);
        transition: transform .2s ease, background .2s ease, border-color .2s ease;
    }
    .admin-menu-toggle:hover .admin-menu-toggle-icon {
        background: rgba(56, 189, 248, .15) !important;
        border-color: rgba(56, 189, 248, .3) !important;
    }
    .admin-menu:not(.is-collapsed) .admin-menu-toggle-icon {
        transform: rotate(90deg);
    }
}
@media (max-width: 820px) {
    .mg-wrapper .universal-tabs,
    .mg-top-container .universal-tabs,
    .mg-wrapper .mg-top-container .universal-tabs {
        display: none !important;
    }
    .account-section-wrapper > .account-top-container .account-tabs.account-tabs--controller {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        min-width: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }
    .account-section-wrapper > .account-top-container .acc-mobile-section-picker {
        display: block !important;
    }
    #guildProgressionBanner .prog-banner-header {
        height: auto !important;
        min-height: 0 !important;
        flex: 0 0 auto !important;
        justify-content: flex-start !important;
    }
    #guildProgressionBanner {
        height: auto !important;
        min-height: 0 !important;
    }
    #guildProgressionBanner .prog-banner-container {
        position: relative !important;
        inset: auto !important;
        height: auto !important;
    }
}

@media (max-width: 820px) {
    #raidListView .rc-mobile-card .rc-mobile-tops {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px !important;
        padding: 10px !important;
        border: 1px solid rgba(96, 165, 250, .18) !important;
        border-radius: 14px !important;
        background:
            radial-gradient(circle at 100% 0, rgba(34, 211, 238, .13), transparent 34%),
            linear-gradient(145deg, rgba(8, 27, 57, .97), rgba(4, 12, 30, .99)) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 12px 25px rgba(1, 7, 22, .2) !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-tops::before {
        content: 'DESTACADOS WCL' !important;
        grid-column: 1 / -1 !important;
        padding: 1px 2px 3px !important;
        color: #8fdcff !important;
        font-size: .6rem !important;
        font-weight: 900 !important;
        letter-spacing: .1em !important;
        line-height: 1 !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-top-row {
        display: grid !important;
        grid-template-columns: 29px minmax(0, 1fr) !important;
        grid-template-areas: 'icon player' 'icon amount' !important;
        align-items: center !important;
        min-height: 78px !important;
        gap: 4px 7px !important;
        padding: 8px !important;
        border: 1px solid rgba(148, 163, 184, .14) !important;
        border-radius: 11px !important;
        background: linear-gradient(135deg, rgba(14, 31, 60, .78), rgba(7, 16, 36, .74)) !important;
        box-shadow: inset 3px 0 0 var(--rc-top-accent, var(--primary-color)), inset 0 1px 0 rgba(255,255,255,.035) !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-top-label {
        grid-area: icon !important;
        display: block !important;
        width: 29px !important;
        min-width: 29px !important;
        height: 29px !important;
        min-height: 29px !important;
        align-self: center !important;
        overflow: hidden !important;
        padding: 0 !important;
        color: transparent !important;
        font-size: 0 !important;
        line-height: 0 !important;
        text-indent: -9999px !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-top-label::before {
        content: '' !important;
        display: block !important;
        width: 29px !important;
        height: 29px !important;
        border: 1px solid rgba(125, 211, 252, .25) !important;
        border-radius: 8px !important;
        background: center / cover no-repeat url('/img/dps.png') !important;
        box-shadow: 0 4px 10px rgba(0,0,0,.3) !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-top-label::after { content: none !important; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(2) .rc-mobile-top-label::before { background-image: url('/img/healer.png') !important; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(3) .rc-mobile-top-label::before { background-image: url('/img/defensivos.jpg') !important; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(4) .rc-mobile-top-label::before { background-image: url('/img/supervi.jpg') !important; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(5) .rc-mobile-top-label::before { background-image: url('/img/cortes.jpg') !important; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(6) .rc-mobile-top-label::before { background-image: url('/img/disipacion.jpg') !important; }
    #raidListView .rc-mobile-card .rc-mobile-top-value {
        grid-area: player !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        align-self: end !important;
        min-width: 0 !important;
        gap: 3px 5px !important;
        overflow: visible !important;
        font-size: .76rem !important;
        font-weight: 850 !important;
        line-height: 1.13 !important;
        white-space: normal !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-top-value::before {
        flex: 0 0 100% !important;
        color: #aebfd6 !important;
        font-size: .49rem !important;
        font-weight: 900 !important;
        letter-spacing: .055em !important;
        line-height: 1 !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(1) .rc-mobile-top-value::before { content: 'TOP DPS'; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(2) .rc-mobile-top-value::before { content: 'TOP HEALER'; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(3) .rc-mobile-top-value::before { content: 'TOP DEFENSIVOS'; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(4) .rc-mobile-top-value::before { content: 'TOP SUPERVIVENCIA'; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(5) .rc-mobile-top-value::before { content: 'TOP CORTES'; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(6) .rc-mobile-top-value::before { content: 'TOP DISPELS'; }
    #raidListView .rc-mobile-card .rc-mobile-top-value img {
        width: 16px !important;
        height: 16px !important;
        flex: 0 0 16px !important;
        border-radius: 5px !important;
        box-shadow: 0 0 0 1px rgba(255,255,255,.08) !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-top-name { min-width: 0; overflow-wrap: anywhere; }
    #raidListView .rc-mobile-card .rc-mobile-top-value.rc-mobile-top-empty { color: #7185a2 !important; font-size: .7rem !important; }
    #raidListView .rc-mobile-card .rc-mobile-top-amount {
        grid-area: amount !important;
        display: flex !important;
        align-items: baseline !important;
        align-self: start !important;
        min-width: 0 !important;
        max-width: 100% !important;
        gap: 5px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        color: #dff5ff !important;
        font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
        font-size: .78rem !important;
        font-weight: 900 !important;
        letter-spacing: -.018em !important;
        line-height: 1.08 !important;
        text-align: left !important;
        text-shadow: 0 0 12px rgba(125, 211, 252, .18) !important;
        white-space: normal !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-top-amount::before {
        flex: 0 0 auto !important;
        color: #718eaf !important;
        font-family: inherit !important;
        font-size: .43rem !important;
        font-weight: 900 !important;
        letter-spacing: .08em !important;
        line-height: 1 !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(1) .rc-mobile-top-amount::before { content: 'DAÑO'; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(2) .rc-mobile-top-amount::before { content: 'SANACIÓN'; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(3) .rc-mobile-top-amount::before { content: 'USOS'; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(4) .rc-mobile-top-amount::before { content: 'REGISTRO'; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(5) .rc-mobile-top-amount::before { content: 'CORTES'; }
    #raidListView .rc-mobile-card .rc-mobile-top-row:nth-child(6) .rc-mobile-top-amount::before { content: 'DISPELS'; }
    #raidListView .rc-mobile-card .rc-mobile-admin-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        margin-top: 0 !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-admin-actions .rc-mobile-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 0 !important;
        min-height: 35px !important;
        padding: 6px 8px !important;
        border-radius: 8px !important;
        font-size: .72rem !important;
        font-weight: 850 !important;
        line-height: 1.1 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        box-shadow: none !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-admin-actions .rc-mobile-btn:only-child {
        grid-column: 1 / -1 !important;
    }
    #raidListView .rc-mobile-card .rc-mobile-top-pug,
    .rc2-pug-badge {
        display: inline-flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        padding: 1px 4px !important;
        border: 1px solid rgba(251, 191, 36, .34) !important;
        border-radius: 999px !important;
        background: rgba(251, 191, 36, .1) !important;
        color: #fde68a !important;
        font-size: .48rem !important;
        font-weight: 900 !important;
        letter-spacing: .04em !important;
        line-height: 1.2 !important;
    }
}
@media (max-width: 380px) {
    #raidListView .rc-mobile-card .rc-mobile-tops { gap: 6px !important; padding: 8px !important; }
    #raidListView .rc-mobile-card .rc-mobile-top-row { grid-template-columns: 26px minmax(0, 1fr) !important; min-height: 74px !important; gap: 4px 6px !important; padding: 7px !important; }
    #raidListView .rc-mobile-card .rc-mobile-top-label,
    #raidListView .rc-mobile-card .rc-mobile-top-label::before { width: 26px !important; height: 26px !important; min-width: 26px !important; min-height: 26px !important; }
    #raidListView .rc-mobile-card .rc-mobile-top-value { font-size: .71rem !important; }
    #raidListView .rc-mobile-card .rc-mobile-top-amount { font-size: .72rem !important; }
}
}

/* ===== css/ui-upgrade.css ===== */
@layer vsg-universal {

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.content-container {
  max-width: min(1800px, calc(100vw - var(--sidebar-width)));
  padding-inline: clamp(12px, 1.2vw, 26px);
}

.content-wrapper {
  width: 100%;
  display: grid;
  gap: var(--space-md);
  align-content: start;
}

.card,
.universal-top-container,
.modal-content,
.data-table,
.sidebar {
  border-radius: var(--radius-md);
}

.card,
.universal-top-container,
.modal-content {
  box-shadow: var(--shadow-soft);
}

.nav-btn,
.btn-primary,
.btn-outline,
.universal-tab-btn {
  transition: transform var(--motion-fast) var(--ease-out),
              background-color var(--motion-base) var(--ease-out),
              color var(--motion-base) var(--ease-out),
              border-color var(--motion-base) var(--ease-out),
              box-shadow var(--motion-base) var(--ease-out);
}

.nav-btn:hover,
.btn-primary:hover,
.btn-outline:hover,
.universal-tab-btn:hover {
  transform: translate3d(0, -1px, 0);
}

.nav-btn:active,
.btn-primary:active,
.btn-outline:active,
.universal-tab-btn:active {
  transform: translate3d(0, 0, 0) scale(0.99);
}

.nav-btn:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible,
.form-control:focus-visible,
.universal-tab-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.main-nav,
.admin-menu,
#guestControls,
#userControls {
  gap: var(--space-xs);
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(15,23,42,0.95), rgba(15,23,42,0.8));
}

.modal {
  contain: layout paint;
}

.modal .modal-content {
  background: linear-gradient(165deg, var(--surface-1), var(--surface-2));
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.blizzard-render {
  animation: float-character-gpu 4.6s var(--ease-out) infinite;
  filter: none;
  transform: translateZ(0);
  will-change: transform;
}

@keyframes float-character-gpu {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms;
    animation-iteration-count: 1;
    transition-duration: 1ms;
    scroll-behavior: auto;
  }
}

@media (max-width: 1100px) {
  .content-container {
    width: 100%;
    max-width: 100vw;
    margin-left: 0;
    padding-inline: clamp(10px, 2vw, 18px);
  }

  .sidebar {
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.4);
  }
}

@media (max-width: 768px) {
  .content-wrapper {
    gap: var(--space-sm);
  }

  .card,
  .universal-top-container,
  .modal .modal-content {
    border-radius: var(--radius-sm);
  }
}

.u-row-gap-8 { display:flex; gap:8px; }
.u-center { align-items:center; }
.mobile-brand-logo { height:30px; filter: drop-shadow(0 0 5px rgba(56,189,248,0.5)); }

.mobile-brand-text { display:block; font-weight:800; color:var(--text-primary); text-transform:uppercase; letter-spacing:.3px; font-size:.74rem; line-height:1.15; white-space:nowrap; }
.mobile-fb-link { background:#1877F2; color:var(--text-primary); text-decoration:none; padding:4px 8px; border-radius:6px; font-size:.7rem; font-weight:600; display:flex; align-items:center; gap:4px; }
.modal-z-5000{z-index:5000;}
.modal-z-9999{z-index:9999;}
.modal-z-4000{z-index:4000;}
.video-modal-content { max-width:1000px; width:90vw; background:#000; border:1px solid var(--primary-color); }
.video-modal-header { background:#111; border-bottom:1px solid #333; }
.video-modal-title { margin:0; color:var(--text-primary); font-size:1.1rem; }
.video-modal-body { padding:0; display:flex; justify-content:center; align-items:center; background:#000; min-height:400px; }
.video-player-container { width:100%; height:60vh; max-height:700px; display:flex; justify-content:center; }

.login-layout-shell { display:flex; width:900px; max-width:100%; min-height:550px; background:transparent;  box-shadow:0 10px 40px rgba(0,0,0,0.7); overflow:hidden; border:1px solid rgba(255,255,255,0.1); }
.login-visual-shell { flex:1; background:transparent; display:flex; align-items:center; justify-content:center; padding:20px; border-right:1px solid rgba(255,255,255,0.05); }
.warlock-img-shell { width:auto; height:auto; max-width:100%; max-height:500px; object-fit:none; filter:drop-shadow(0 0 15px rgba(56,189,248,0.1)); }
.login-form-shell { flex:1.3; padding:40px; display:flex; flex-direction:column; justify-content:center; background:transparent; min-height:480px; }
.login-tab-row { display:flex; width:100%; border-bottom:1px solid rgba(255,255,255,0.1); margin-bottom:25px; }
.login-tab-btn { flex:1; border:none; border-radius:0; padding:12px; font-size:1rem; font-weight:700; background:transparent; }
.login-tab-btn-active { border-bottom:2px solid var(--primary-color); color:var(--primary-color); }
.login-tab-btn-muted { color:var(--text-muted); }
.w-100 { width:100%; }
.form-gap-20 { margin-bottom:20px; }
.label-soft-sm { color:var(--text-muted); font-size:.8rem; }
.form-control-dark-md { background:rgba(0,0,0,0.5); border:1px solid rgba(255,255,255,0.1); padding:12px; font-size:1rem; }
.btn-auth-main { margin-top:10px; width:100%; padding:14px; font-size:1rem; letter-spacing:1px; box-sizing:border-box; }
.btn-auth-discord { display:flex; align-items:center; justify-content:center; gap:10px; margin-top:10px; width:100%; background:#5865F2; border-color:#4752C4; color:var(--text-primary); text-decoration:none; padding:14px; font-weight:600; font-size:1rem; letter-spacing:1px; box-sizing:border-box; }
.discord-icon-white { width:22px; filter:brightness(0) invert(1); }
.auth-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.no-mb { margin-bottom:0; }

.inl-1 { display:none; }
.inl-2 { display:none; }
.inl-3 { display:none; }
.inl-4 { display:none; }
.inl-5 { display:none; }
.inl-6 { display:none; }
.inl-7 { text-align: center; margin: 20px 0; display: flex; align-items: center; gap: 10px; }
.inl-8 { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.inl-9 { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; }
.inl-10 { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.inl-11 { margin-top: 20px; text-align: center; }
.inl-12 { color:var(--text-muted); text-decoration:underline; }
.inl-13 { font-size:0.75rem; }
.inl-14 { font-size:0.75rem; }
.inl-15 { grid-column: span 2; margin-bottom:0; }
.inl-16 { font-size:0.75rem; }
.inl-17 { background: rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.1); }
.inl-18 { grid-column: span 2; margin-bottom:0; }
.inl-19 { font-size:0.75rem; }
.inl-20 { background: rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.1); }
.inl-21 { margin-bottom:0; }
.inl-22 { font-size:0.75rem; }
.inl-23 { background: rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.1); }
.inl-24 { margin-bottom:0; }
.inl-25 { font-size:0.75rem; }
.inl-26 { background: rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.1); }
.inl-27 { background: rgba(0,0,0,0.4); padding: 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); text-align: center; margin-top: 15px; }
.inl-28 { display:flex; align-items:center; justify-content:center; gap:10px; }
.inl-29 { width:20px; height:20px; cursor:pointer; }
.inl-30 { font-size:0.8rem; color:var(--text-muted); }
.inl-31 { margin-top: 15px; width: 100%; background: #10b981; border-color: #059669; padding: 14px; font-size: 1rem; letter-spacing: 1px; box-sizing: border-box; }
.inl-32 { text-align: center; margin: 15px 0; display: flex; align-items: center; gap: 10px; }
.inl-33 { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.inl-34 { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; }
.inl-35 { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.inl-36 { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; width: 100%; background: #5865F2; border-color: #4752C4; color: var(--text-primary); text-decoration: none; padding: 14px; font-weight: 600; font-size: 1rem; letter-spacing: 1px; box-sizing: border-box; }
.inl-37 { width: 22px; filter: brightness(0) invert(1); }
.inl-38 { width: 850px; max-width: 100%; margin: 0 auto; }
.inl-39 { display:flex; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.inl-40 { flex:1; border:none; border-bottom: 2px solid var(--primary-color); border-radius:0; color:var(--primary-color); padding: 10px; font-size: 0.95rem; font-weight: 700; background:transparent; }
.inl-41 { flex:1; border:none; border-radius:0; color:var(--text-muted); padding: 10px; font-size: 0.95rem; font-weight: 700; background:transparent; }
.inl-42 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 15px; align-items: start; }
.inl-43 { display: flex; flex-direction: column; gap: 15px; }
.inl-44 { background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.1)); background-size: cover; background-position: center; border-radius: 12px; padding: 20px; border: 1px solid rgba(56, 189, 248, 0.2); position: relative; transition: background-image .3s ease; }
.acc-subtitle { margin: -6px 0 16px; color: var(--text-muted); font-size: 0.85rem; line-height: 1.4; }
.acc-connections-hint { margin: -6px 0 12px; color: var(--text-muted); font-size: 0.78rem; line-height: 1.35; }

.acc-hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: 22px 26px;
    border-radius: 18px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(129, 140, 248, 0.12));
    background-size: cover;
    background-position: center;
    overflow: hidden;
    min-height: 140px;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
    transition: background-image .3s ease;
}
.acc-role-pill {
    position: absolute;
    top: 14px;
    right: 16px;
    background: var(--primary-color);
    color: #000;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}
.acc-hero-main { display: flex; align-items: center; gap: 20px; width: 100%; flex-wrap: wrap; }
.acc-avatar-block { display: flex; align-items: center; gap: 14px; }
.acc-avatar-label { cursor: pointer; display: inline-block; }
.acc-avatar-img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary-color); box-shadow: 0 6px 18px rgba(0,0,0,0.55); }
.acc-avatar-input { display: none; }
.acc-bnet-render-wrap { display: none; }
.acc-bnet-render { height: 120px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.5)); }
.acc-identity-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.acc-name-row { display: flex; align-items: center; gap: 8px; }
.acc-name { margin: 0; color: var(--text-primary); font-size: 1.6rem; font-weight: 800; text-transform: capitalize; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.acc-name-input { display: none; width: 180px; text-align: left; font-size: 1.1rem; padding: 6px 10px; }
.acc-name-edit-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1rem; padding: 0; }
.acc-name-save-btn { display: none; background: #10b981; border: none; color: #000; padding: 5px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.acc-game-data { font-size: 1rem; font-weight: 700; color: var(--text-primary); text-shadow: 0 2px 8px rgba(0,0,0,.65); }
.acc-bnet-alters { font-size: 0.75rem; color: var(--text-muted); background: rgba(0,0,0,0.55); border-radius: 6px; padding: 3px 8px; display: none; width: fit-content; }

.acc-cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 16px; align-items: start; }
.acc-card { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 16px; }
.acc-card-title { margin: 0 0 12px; color: var(--text-primary); font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.acc-stats-grid { display: none; grid-template-columns: 1fr 1fr; gap: 10px; }
.acc-stat-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 12px; border-radius: 10px; text-align: center; }
.acc-stat-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.acc-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); }
.acc-stat-value-green { color: #34d399; }
.acc-token-icon { width: 18px; vertical-align: middle; margin-top: -3px; }

.acc-conn-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; background: rgba(88, 101, 242, 0.05); border: 1px solid rgba(88, 101, 242, 0.2); padding: 10px 12px; border-radius: 10px; }
.acc-conn-row:last-child { margin-bottom: 0; }
.acc-conn-info { display: flex; align-items: center; gap: 10px; }
.acc-conn-icon { width: 26px; filter: drop-shadow(0 0 5px rgba(88, 101, 242, 0.4)); }
.acc-conn-icon-bnet { filter: invert(1) drop-shadow(0 0 5px rgba(0, 174, 255, 0.4)); }
.acc-conn-name { color: var(--text-primary); font-weight: 700; font-size: 0.88rem; }
.acc-conn-status { color: var(--text-muted); font-size: 0.74rem; }
.acc-conn-btn { padding: 5px 10px; border-radius: 7px; text-decoration: none; font-size: 0.74rem; font-weight: 700; }
.acc-conn-btn-discord { border-color: #5865F2; color: #5865F2; }
.acc-conn-btn-bnet { border-color: #00aeff; color: #00aeff; }
.acc-card-sim:empty { display: none; padding: 0; border: none; background: none; }

@media (max-width: 600px) {
    .acc-hero-main { flex-direction: column; align-items: flex-start; }
    .acc-name { font-size: 1.3rem; }
}
.inl-45 { position: absolute; top: 15px; right: 15px; }
.inl-46 { background: var(--primary-color); color: #000; font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4); }
.inl-47 { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 15px; min-height: 140px; }
.inl-48 { text-align: center; }
.inl-49 { cursor: pointer; display: inline-block; }
.inl-50 { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-color); box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.inl-51 { display: none; }
.inl-52 { display:none; }
.inl-53 { height: 140px; }
.inl-54 { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.inl-55 { margin: 0; color: var(--text-primary); font-size: 1.3rem; text-transform: capitalize; text-shadow: 0 2px 8px rgba(0,0,0,.65); }
.inl-56 { display:none; width:150px; text-align:center; font-size:1rem; padding: 5px; }
.inl-57 { background:none; border:none; color:var(--text-muted); cursor:pointer; font-size:1rem; padding: 0; }
.inl-58 { display:none; background:#10b981; border:none; color:#000; padding:4px 8px; border-radius:4px; font-size:0.8rem; cursor:pointer; }
.inl-59 { text-align: center; font-size: 0.75rem; color: var(--text-muted); padding: 4px; background: rgba(0,0,0,0.6); border-radius: 4px; display: none; }
.inl-60 { background:rgba(0,0,0,0.3); border:1px solid rgba(255,255,255,0.05); padding:15px; border-radius:12px; }
.inl-61 { font-size:1.1rem; font-weight:bold; color:var(--text-primary); text-align: center; margin-bottom: 15px; }
.inl-62 { display:none; grid-template-columns: 1fr 1fr; gap: 10px; }
.inl-63 { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; text-align: center; }
.inl-64 { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; font-weight: 600; }
.inl-65 { font-size: 1.4rem; font-weight: bold; color: var(--primary-color); }
.inl-66 { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); padding: 10px; border-radius: 8px; text-align: center; }
.inl-67 { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 5px; text-transform: uppercase; font-weight: 600; }
.inl-68 { font-size: 1.4rem; font-weight: bold; color: #34d399; }
.inl-69 { width: 18px; vertical-align: middle; margin-top: -3px; }
.inl-70 { display: flex; flex-direction: column; gap: 15px; }
.inl-71 { background: rgba(0,0,0,0.3); padding: 15px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.inl-72 { margin-top:0; margin-bottom:15px; color:var(--text-primary); font-size:1rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.inl-73 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; background: rgba(88, 101, 242, 0.05); border: 1px solid rgba(88, 101, 242, 0.2); padding: 10px 12px; border-radius: 8px; }
.inl-74 { display: flex; align-items: center; gap: 10px; }
.inl-75 { width: 28px; filter: drop-shadow(0 0 5px rgba(88, 101, 242, 0.4)); }
.inl-76 { color: var(--text-primary); font-weight: bold; font-size: 0.9rem; }
.inl-77 { color: var(--text-muted); font-size: 0.75rem; }
.inl-78 { border-color: #5865F2; color: #5865F2; padding: 4px 10px; border-radius: 6px; text-decoration: none; font-size: 0.75rem; font-weight: 600; }
.inl-79 { display: flex; justify-content: space-between; align-items: center; background: rgba(0, 174, 255, 0.05); border: 1px solid rgba(0, 174, 255, 0.2); padding: 10px 12px; border-radius: 8px; }
.inl-80 { display: flex; align-items: center; gap: 10px; }
.inl-81 { width: 28px; filter: invert(1) drop-shadow(0 0 5px rgba(0, 174, 255, 0.4)); }
.inl-82 { color: var(--text-primary); font-weight: bold; font-size: 0.9rem; }
.inl-83 { color: var(--text-muted); font-size: 0.75rem; }
.inl-84 { border-color: #00aeff; color: #00aeff; padding: 4px 10px; border-radius: 6px; text-decoration: none; font-size: 0.75rem; font-weight: 600; }
.inl-85 { display:none; max-height: 400px; overflow-y: auto; padding-right: 5px; }
.inl-86 { text-align:center; padding: 30px; color:var(--text-muted); }
.inl-87 { display: flex; gap: 15px; margin-top: 20px; justify-content: flex-end; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); }
.inl-88 { border-color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.inl-89 { width: 400px; text-align:center; padding: 20px; }
.inl-90 { width:80px; height:80px; margin-bottom: 25px; }
.inl-91 { color:var(--text-primary); margin-top:0; }
.inl-92 { color:var(--text-muted); margin-bottom:30px; font-size:0.95rem; }
.inl-93 { background: rgba(255,255,255,0.05); border-radius: 10px; padding: 5px; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 15px; }
.inl-94 { width: 0%; height: 10px; background: var(--primary-color); border-radius: 8px; transition: width 0.3s ease; }
.inl-95 { color: var(--primary-hover); font-weight: 700; font-size: 1.1rem; font-family: monospace; }
.inl-96 { z-index: 4500; }
.inl-97 { height: 35px; margin-right: 15px; }
.inl-98 { margin:0; color:var(--text-primary); }
.inl-99 { z-index: 4500; }
.inl-100 { max-width: 950px; width: 95%; min-height: 650px; display: flex; flex-direction: column; }
.inl-101 { height: 35px; margin-right: 15px; }
.inl-102 { margin:0; color:var(--text-primary); }
.inl-103 { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.inl-104 { display:none; }
.inl-105 { display:none; }
}

/* ===== css/section-polish.css ===== */
@layer vsg-universal {

.nw-wrapper,
.rd-wrapper,
.roster-wrapper,
.mg-wrapper {
  width: min(100%, 1400px);
  margin: 0 0 40px 0;
}

.nw-wrapper,
.rd-wrapper,
.rd-details-wrapper,
.roster-wrapper,
.mg-wrapper,
.gd-wrapper,
.cal-wrapper,
.wt-wrapper,
.cons-wrapper {
  width: min(100%, var(--vsg-banner-max-width, 1400px));
  max-width: var(--vsg-banner-max-width, 1400px);
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

.nw-wrapper,
.rd-wrapper,
.rd-details-wrapper,
.roster-wrapper,
.mg-wrapper,
.gd-wrapper,
.cal-wrapper,
.wt-wrapper,
.cons-wrapper {
  overflow-x: clip;
}

.nw-wrapper > *,
.rd-wrapper > *,
.rd-details-wrapper > *,
.roster-wrapper > *,
.mg-wrapper > *,
.gd-wrapper > *,
.cal-wrapper > *,
.wt-wrapper > *,
.cons-wrapper > * {
  min-width: 0;
  max-width: 100%;
}

.wt-wrapper #storePurchaseSection .card {
  width: 100%;
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.nw-wrapper .nw-hero-grid,
.nw-wrapper .nw-list,
.nw-wrapper .nw-list-item,
.mg-wrapper #mgConsumablesView,
.mg-wrapper .mg-cons-editor {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.rd-wrapper .universal-top-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
}

.rd-wrapper .universal-top-actions {
  display: flex;
  
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.rd-wrapper .rd-filter-control {
  flex: 0 0 auto;
  min-width: 148px;
}

.rd-wrapper .rd-filter-search { width: clamp(190px, 20vw, 270px); }
.rd-wrapper .rd-filter-select { width: clamp(148px, 14vw, 210px); }

@media (max-width: 820px) {

  .rd-wrapper .universal-top-header { grid-template-columns: minmax(0, 1fr); }
  .rd-wrapper .universal-top-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    overflow: visible;
    gap: 6px;
  }
  .rd-wrapper .rd-filter-control {
    min-width: 0;
    padding: 7px 10px;
    font-size: .8rem;
  }
  .rd-wrapper .rd-filter-search { flex: 1 1 100%; width: 100%; }
  .rd-wrapper .rd-filter-select { flex: 1 1 calc(50% - 3px); width: auto; }
}

.acc-logout-confirm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: min(420px, calc(95vw - 44px));
}

.acc-logout-confirm-icon {
  display: none !important;
}

.acc-logout-confirm strong { color: var(--text-main); font-size: 1rem; }
.acc-logout-confirm p { margin: 6px 0 0; color: #9fb0c6; font-size: .84rem; line-height: 1.5; }
.acc-logout-confirm-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }
.acc-logout-confirm-actions .btn-primary { border-color: rgba(251, 113, 133, .58); background: linear-gradient(135deg, #be123c, #e11d48); }
.acc-captcha-host.captcha-load-error,
.auth-recaptcha.captcha-load-error { display: grid; min-height: 76px; place-items: center; color: #fbbf24; font-size: .78rem; line-height: 1.45; text-align: center; }

.nw-list-item,
.rc-panel,
.mg-raid-card,
.mg-player-row,
.ast-block,
.mg-season-panel {
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.28);
  transition: transform 180ms cubic-bezier(0.22,1,0.36,1), border-color 220ms cubic-bezier(0.22,1,0.36,1), box-shadow 220ms cubic-bezier(0.22,1,0.36,1);
}

.nw-list-item:hover,
.rc-panel:hover,
.mg-raid-card:hover,
.mg-player-row:hover,
.mg-season-panel:hover {
  transform: translate3d(0, -2px, 0);
}

.nw-li-content,
.rc-header,
.rc-stats-bar,
.rc-roster-row,
.mg-raid-acc-body,
.mg-player-row,
.mg-sp-body {
  padding: clamp(12px, 1.1vw, 22px);
}

.nw-li-title,
.rc-title,
.raid-acc-title,
.mg-main-title {
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.rc-badge,
.mg-sp-badge,
.mg-pr-stat,
.ast-role-title,
.nw-li-meta {
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.table-responsive,
.table-responsive-wrapper {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  overflow: auto;
  background: rgba(2, 6, 23, 0.2);
}

.data-table th,
.data-table td {
  padding: clamp(9px, 0.75vw, 13px) clamp(10px, 0.85vw, 14px);
}

.rc-btn,
.mg-tab-btn,
.roster-tab-btn,
.btn-read-more {
  min-height: 38px;
  border-radius: 10px;
}

.nw-li-img,
.roster-tab-icon,
.rc-top-icon,
.mg-pr-class-icon {
  transform: translateZ(0);
}

@media (max-width: 1280px) {
  .rc-tops-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .rc-roster-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nw-list-item {
    flex-direction: column;
  }
  .nw-li-img-wrapper {
    width: 100%;
    max-height: 220px;
  }
  .rc-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mg-player-row {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .rc-tops-row,
  .rc-roster-row,
  .ast-player-list,
  .mg-expansions-grid {
    grid-template-columns: 1fr;
  }
  .roster-tabs-head,
  .mg-tabs,
  .rc-header-actions {
    flex-wrap: wrap;
  }
  .roster-tab-btn,
  .mg-tab-btn,
  .rc-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 820px) {

  .roster-tabs-head .roster-tab-btn {
    width: auto !important;
    min-height: 38px !important;
    padding: 3px 5px !important;
  }
}

.content-container :is(.universal-top-title, .nw-reader-title, .mg-main-title, .wt-main-title) {
  font-size: var(--type-page-title);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.content-container :is(.nw-section-heading h2, .pg-overview-header h3, .attendance-title, .roster-section-title, .mg-section-title, .wt-panel-title, .cm-header h3, .rc-title) {
  font-size: var(--type-section-title);
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.content-container :is(.nw-li-title, .raid-acc-title, .guide-card-title) {
  font-size: var(--type-card-title);
  line-height: 1.2;
}

.content-container :is(.pg-kicker, .at-kicker, .nw-kicker, .section-kicker, .universal-kicker) {
  font-size: var(--type-kicker);
  line-height: 1.25;
}
}

/* ===== css/navigation-auth-modern.css ===== */
@layer vsg-universal {


.sidebar {
    isolation: isolate;
    justify-content: flex-start;
    gap: 7px;
    padding: clamp(9px, .8vw, 14px) clamp(10px, .85vw, 15px);
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 0 24px 24px 0;
    background:
        radial-gradient(circle at 20% 5%, rgba(56, 189, 248, 0.18), transparent 27%),
        radial-gradient(circle at 85% 90%, rgba(139, 92, 246, 0.14), transparent 28%),
        linear-gradient(180deg, rgba(12, 19, 42, 0.98), rgba(5, 9, 24, 0.98));
    box-shadow: 18px 0 60px rgba(1, 4, 16, 0.42), inset -1px 0 rgba(255, 255, 255, 0.025);
    scrollbar-width: none;
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.sidebar::-webkit-scrollbar { width: 0; height: 0; display: none; }
.control-only { display: none; }
.sidebar-top { flex: 0 0 auto; }
.sidebar-bottom { margin-top: auto; flex: 0 0 auto; }

a.sidebar-panda-slot,
.sidebar-panda-slot,
.sidebar-panda-slot.is-ready {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    width: calc(100% + 20px) !important;
    height: auto;
    min-height: 120px;
    margin-top: 22px !important;
    margin-left: -15px !important;
    margin-right: 0 !important;
    padding: 8px 0 !important;
    box-sizing: border-box;
    overflow: visible;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    animation: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    text-align: left !important;
}

a.sidebar-panda-slot:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.panda-slot-badge {
    position: absolute;
    top: -4px;
    right: 15px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid rgba(254, 160, 197, 0.55);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(26, 12, 35, 0.94) 0%, rgba(9, 22, 45, 0.96) 100%);
    color: var(--text-primary);
    font-family: var(--vsg-font-family, 'Inter', sans-serif);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 0 14px rgba(254, 160, 197, 0.35), 0 4px 14px rgba(0, 0, 0, 0.6);
    
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.panda-slot-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fea0c5;
    box-shadow: 0 0 8px #fea0c5, 0 0 12px var(--primary-color);
}

a.sidebar-panda-slot:hover .panda-slot-badge {
    border-color: rgba(254, 160, 197, 0.85);
    box-shadow: 0 0 18px rgba(254, 160, 197, 0.55), 0 6px 18px rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
}

.sidebar-panda-video {
    display: block !important;
    width: 180px !important;
    max-width: 95% !important;
    height: auto !important;
    max-height: 145px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin-top: 10px !important;
    margin-left: -8px !important;
    margin-right: auto !important;
    background: transparent !important;
    background-color: transparent !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    align-self: flex-start !important;
    pointer-events: none;
}
@media (max-width: 900px) {
    .sidebar-panda-slot { display: none; }
}

.logo-container {
    position: relative;
    gap: 5px;
    margin: 0 4px 8px;
    padding: 3px 6px 9px;
}

.logo-container::after {
    content: '';
    position: absolute;
    right: 14%;
    bottom: 0;
    left: 14%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 211, 252, .65), transparent);
    box-shadow: 0 0 14px rgba(56, 189, 248, .35);
}

.main-logo {
    width: clamp(44px, 3.6vw, 60px);
    max-height: 60px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)) drop-shadow(0 0 14px rgba(56,189,248,.22));
    transition: transform .45s cubic-bezier(.2,.8,.2,1), filter .45s ease;
}

.brand-home-link {
    position: relative;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    line-height: 0;
    text-decoration: none;
    outline: none;
}

.brand-home-link::before,
.brand-home-link::after {
    content: '';
    position: absolute;
    inset: -7px;
    pointer-events: none;
    border: 1px solid transparent;
    border-radius: 50%;
    opacity: 0;
}

.brand-home-link:hover::before,
.brand-home-link:focus-visible::before {
    border-color: rgba(56,189,248,.85);
    border-top-color: rgba(167,139,250,.95);
    opacity: 1;
    animation: vsg-logo-orbit 1.15s linear infinite;
    box-shadow: 0 0 18px rgba(56,189,248,.34), inset 0 0 14px rgba(139,92,246,.16);
}

.brand-home-link:hover::after,
.brand-home-link:focus-visible::after {
    inset: -12px;
    border-color: rgba(125,211,252,.22);
    opacity: 1;
    animation: vsg-logo-pulse 1.15s ease-in-out infinite;
}

.brand-home-link:hover .main-logo,
.brand-home-link:focus-visible .main-logo { transform: translateY(-2px) scale(1.055); filter: drop-shadow(0 10px 18px rgba(0,0,0,.42)) drop-shadow(0 0 20px rgba(56,189,248,.48)); }
.brand-home-link-mobile::before { inset:-4px; }
.brand-home-link-mobile::after { inset:-7px; }

@keyframes vsg-logo-orbit { to { transform: rotate(360deg); } }
@keyframes vsg-logo-pulse { 50% { transform: scale(1.08); opacity:.45; } }

@media (prefers-reduced-motion: reduce) {
    .brand-home-link:hover::before,
    .brand-home-link:focus-visible::before,
    .brand-home-link:hover::after,
    .brand-home-link:focus-visible::after { animation:none; }
}
.logo-text { font-size: clamp(.72rem, .7vw, .84rem); letter-spacing: .15em; color: #e8f5ff; text-shadow: 0 0 18px rgba(56,189,248,.28); }

.main-nav,
.admin-menu,
#guestControls,
#userControls { gap: 2px; }

.nav-btn {
    --nav-accent: 56, 189, 248;
    position: relative;
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) 5px;
    align-items: center;
    width: 100%;
    min-height: 24px;
    margin: 0;
    padding: 3px 8px 3px 5px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 9px;
    background: linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
    color: #aebbd1;
    font-size: clamp(.7rem, .63vw, .8rem);
    font-weight: 650;
    letter-spacing: .015em;
    line-height: 1.15;
    text-align: left;
    transition: color .22s ease, border-color .22s ease, background .22s ease, transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease;
}

.nav-btn::before {
    content: '';
    display: block;
    justify-self: center;
    width: 1.15em;
    height: 1.15em;
    border: 0;
    border-radius: 0;
    background: url('/uploads/crop.png') center / contain no-repeat;
    box-shadow: none;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
}

.nav-btn::after {
    content: '';
    width: 5px;
    height: 5px;
    justify-self: end;
    border-radius: 50%;
    background: rgb(var(--nav-accent));
    box-shadow: 0 0 10px rgba(var(--nav-accent), .85);
    opacity: 0;
    transform: scale(.4);
    transition: opacity .2s ease, transform .2s ease;
}

.nav-btn:hover {
    color: #f5fbff;
    border-color: rgba(var(--nav-accent), .22);
    background: linear-gradient(90deg, rgba(var(--nav-accent), .14), rgba(var(--nav-accent), .035));
    box-shadow: 0 10px 24px rgba(1, 6, 20, .24), inset 0 1px rgba(255,255,255,.035);
    transform: translateX(3px);
}

.nav-btn[data-target="news"]::before { background-image: url('/img/iconpa/noticias.webp'); }
.nav-btn[data-target="roster"]::before { background-image: url('/img/iconpa/roster.webp'); }
.nav-btn[data-target="raids"]::before { background-image: url('/img/iconpa/raidpro.webp'); }
.nav-btn[data-target="progression"]::before { background-image: url('/img/iconpa/progreso.webp'); }
.nav-btn[data-target="rules"]::before { background-image: url('/img/iconpa/reglas.webp'); }
.nav-btn[data-target="guides"]::before { background-image: url('/img/iconpa/guias.webp'); }
.nav-btn[data-target="calculadora"]::before { background-image: url('/img/iconpa/calculadora.webp'); }
.nav-btn[data-target="attendance"]::before { background-image: url('/img/iconpa/estadisticas.webp'); }
.nav-btn[data-target="calendar"]::before { background-image: url('/img/iconpa/calendario.webp'); }
.nav-btn[data-target="consumibles"]::before { background-image: url('/img/iconpa/clasesyconsu.webp'); }
.nav-btn[data-target="store"]::before { background-image: url('/img/iconpa/compras.webp'); }

.nav-btn:hover::before { transform: translateX(2px) scale(1.08); }
.nav-btn.active { color: var(--text-primary); border-color: rgba(var(--nav-accent), .38); background: linear-gradient(90deg, rgba(var(--nav-accent), .24), rgba(var(--nav-accent), .055)); box-shadow: 0 10px 28px rgba(2, 8, 23, .32), inset 3px 0 rgb(var(--nav-accent)); }
.nav-btn.active::after { opacity: 1; transform: scale(1); }
.nav-btn.active::before { filter: drop-shadow(0 0 6px rgba(var(--nav-accent), .8)); }
.nav-btn:focus-visible { outline: none; border-color: rgba(var(--nav-accent), .72); box-shadow: 0 0 0 3px rgba(var(--nav-accent), .16); }

.menu-divider {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 7px 5px 4px;
    color: #6f809c;
    font-size: .55rem;
    letter-spacing: .16em;
    opacity: 1;
}

.menu-divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(148,163,184,.2), transparent); }
#openLoginBtn { --nav-accent: 139, 92, 246; }

#userAccountBtn {
    --nav-accent: 56, 189, 248;
    grid-template-columns: 34px minmax(0, 1fr) 6px;
    grid-template-areas: "logo label dot" "logo name dot" "logo role dot";
    min-height: 49px;
    padding: 5px 7px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(56,189,248,.16), rgba(99,102,241,.11));
}

#userAccountBtn::before { grid-area: logo; width: 34px; height: 34px; border: 1px solid rgba(186,230,253,.5); border-radius: 10px; }
#userAccountBtn::after { grid-area: dot; }

#universalModal.auth-modal,
#universalModal.account-modal { padding: clamp(10px, 2vw, 28px); background: rgba(1, 5, 18, .82);  }
#universalModal.auth-modal { padding: 8px; }

#universalModal.auth-modal .modal-content,
#universalModal.account-modal .modal-content {
    width: min(980px, 96vw);
    min-width: 0;
    max-width: 980px;
    max-height: min(92dvh, 900px);
    margin: auto;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(11, 18, 41, .98), rgba(5, 9, 24, .985));
    box-shadow: 0 40px 100px rgba(0,0,0,.62), 0 0 0 1px rgba(255,255,255,.025), 0 0 60px rgba(37,99,235,.1);
}
#universalModal.auth-modal .modal-content { max-height: min(96dvh, 900px); }

#universalModal.auth-modal .modal-content::before,
#universalModal.account-modal .modal-content::before { opacity: .11; filter: saturate(.75) contrast(1.1); }
#universalModal.auth-modal .modal-header,
#universalModal.account-modal .modal-header { min-height: 68px; padding: 13px 20px; border-color: var(--vsg-line); background: rgba(4,9,24,.76);  filter: drop-shadow(0 0 12px rgba(56,189,248,.28)); }
#universalModal.auth-modal .modal-guild-name,
#universalModal.account-modal .modal-guild-name { color: #7f91ad; letter-spacing: .18em; }
#universalModal.auth-modal .modal-title,
#universalModal.account-modal .modal-title { font-size: 1.1rem; font-weight: 750; color: #f2f8ff; }
#universalModal.auth-modal .close-modal-x,
#universalModal.account-modal .close-modal-x { width: 38px; height: 38px; border-radius: 11px; }
#universalModal.auth-modal .modal-body,
#universalModal.account-modal .modal-body { padding: 0; overflow-x: hidden; }

.login-layout-shell {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
    align-items: stretch;
    width: 100%;
    
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.login-visual-shell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    padding: clamp(22px, 3vw, 42px);
    overflow: hidden;
    border-right: 1px solid var(--vsg-line);
    background: radial-gradient(circle at 50% 40%, rgba(56,189,248,.16), transparent 42%), linear-gradient(155deg, rgba(37,99,235,.09), rgba(139,92,246,.08));
}

.login-visual-shell::before { content: 'VANILLA SKY'; position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); color: rgba(226,240,255,.5); font-size: .65rem; font-weight: 800; letter-spacing: .32em; white-space: nowrap; }
.login-visual-shell::after { content: ''; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(125,211,252,.12); border-radius: 50%; box-shadow: 0 0 0 28px rgba(125,211,252,.025), 0 0 0 58px rgba(125,211,252,.018); }
.warlock-img-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 380px);
    height: auto;
    max-height: min(560px, calc(100% - 60px));
    object-fit: contain;
    image-rendering: auto;
    opacity: 1;
    filter: brightness(1.08) contrast(1.16) saturate(1.12) drop-shadow(0 22px 34px rgba(0,0,0,.58)) drop-shadow(0 0 20px rgba(56,189,248,.22));
    transform: translateZ(0);
    backface-visibility: hidden;
    
    transition: opacity .22s ease;
}

.login-form-shell { width: auto; min-width: 0; min-height: 0; padding: clamp(14px, 1.4vw, 18px); background: linear-gradient(160deg, rgba(255,255,255,.025), transparent 48%); }
.login-form-shell #formRegisterArea .auth-grid-2 { gap: 9px 14px; }
.login-form-shell #formRegisterArea .auth-grid-2 .inl-15,
.login-form-shell #formRegisterArea .auth-grid-2 .inl-18 { grid-column: auto; }
.login-form-shell #formRegisterArea .np-form-group { margin-bottom: 7px; }
.login-form-shell #formRegisterArea .auth-social-btn { min-height: 42px; padding: 10px 6px; font-size: .74rem; }
.login-form-shell #formRegisterArea .inl-27 { min-height: 38px; margin-top: 7px; padding: 6px; }
.login-form-shell #formRegisterArea .inl-31 { min-height: 38px; margin-top: 7px; padding: 7px 12px; }
.login-form-shell #formRegisterArea .inl-32 { margin: 9px 0 7px; }
.login-form-shell #formRegisterArea p { font-size: .72rem; margin-top: 6px; line-height: 1.3; }
.login-form-shell .hidden-inline { display: none; }
/* NO le pongas !important a la regla de arriba: #formLoginArea/
   #formRegisterArea/#formTwoFaArea arrancan con hidden-inline en el HTML
   estático y se revelan con $(...).fadeIn()/.show() (auth.js) -- eso pone
   display por INLINE STYLE sin sacar la clase, y gana porque el inline
   style (aunque no sea important) le gana a una regla externa NO
   important. Si esta regla fuera !important, fadeIn() dejaría de poder
   revelarlos (pasó, se revirtió).
   El problema real es otro y más chico: ".btn-outline{display:inline-flex
   !important}" (design-system.css) le gana a este display:none en
   cualquier elemento que además sea .btn-outline -- #btnSkipBnetWizard/
   #btnSkipDiscordWizard ("Continuar de todas formas (modo prueba)")
   quedaban SIEMPRE visibles en el registro normal sin importar el chequeo
   de JS (isSimAccount, public/js/auth.js), porque nunca llegaban a
   ocultarse. Se apunta solo a esos dos, no a .hidden-inline en general. */
.login-form-shell .reg-skip-btn.hidden-inline { display: none !important; }
.login-tab-row,
.account-tabs { gap: 7px; padding: 5px; margin-bottom: 28px; border: 1px solid rgba(148,163,184,.13); border-radius: 13px; background: rgba(2,6,23,.48); width: fit-content; max-width: 100%; }

.login-tab-row { margin-bottom: 8px; }
.login-tab-btn,
.account-tabs .btn-outline { min-height: 36px; padding: 7px 12px; border: 0; border-radius: 9px; font-size: .84rem; letter-spacing: .02em; }
.login-tab-btn-active { background: linear-gradient(135deg, rgba(56,189,248,.2), rgba(37,99,235,.15)); box-shadow: inset 0 0 0 1px rgba(125,211,252,.2), 0 8px 18px rgba(2,8,23,.2); }

.login-form-shell label { display: block; margin-bottom: 7px; color: #aab8cd; font-size: .71rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.login-form-shell .form-control { width: 100%; min-height: 46px; padding: 11px 14px; border: 1px solid rgba(148,163,184,.18); border-radius: 11px; background: rgba(2,6,23,.62); color: #f8fbff; box-shadow: inset 0 1px 4px rgba(0,0,0,.22); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.login-form-shell #formRegisterArea .form-control { min-height: 40px; padding: 8px 12px; }
.login-form-shell .form-control:hover { border-color: rgba(125,211,252,.3); }
.login-form-shell .form-control:focus { outline: none; border-color: rgba(56,189,248,.7); background: rgba(4,11,30,.82); box-shadow: 0 0 0 3px rgba(56,189,248,.12), inset 0 1px 4px rgba(0,0,0,.2); }
.btn-auth-main,
#btnRegisterSubmit { min-height: 48px; border: 1px solid rgba(125,211,252,.35); border-radius: 11px; background: linear-gradient(135deg, #0284c7, #2563eb); box-shadow: 0 12px 26px rgba(37,99,235,.24), inset 0 1px rgba(255,255,255,.18); }

.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; }
.auth-divider--tight { margin: 12px 0 10px; }
.auth-divider-line { flex: 1; height: 1px; background: rgba(148,163,184,.16); }
.auth-divider-text { flex: 0 0 auto; color: #8fa3c0; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; text-align: center; white-space: nowrap; }
.auth-social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-social-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 48px;
    padding: 12px 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.auth-social-btn:hover { transform: translateY(-1px); }
.auth-social-btn--discord { background: linear-gradient(135deg, #5865f2, #4752c4); border-color: rgba(125,211,252,.18); color: var(--text-primary); box-shadow: 0 10px 24px rgba(71,82,196,.22); }
.auth-social-btn--google { background: var(--text-primary); border-color: #dadce0; color: #3c4043; box-shadow: 0 10px 20px rgba(2,8,23,.14); }
.auth-social-btn--battlenet { background: linear-gradient(135deg, #148eff, #045fc4); border-color: rgba(125,211,252,.18); color: var(--text-primary); box-shadow: 0 10px 24px rgba(20,142,255,.22); }
.auth-social-icon { width: 18px; height: 18px; flex: 0 0 auto; object-fit: contain; }
.auth-social-btn--discord .auth-social-icon,
.auth-social-btn--battlenet .auth-social-icon { filter: brightness(0) invert(1); }
.auth-social-note { margin-top: 10px; color: var(--text-muted); font-size: .72rem; line-height: 1.4; text-align: center; }

@media (max-width: 680px) {
    .auth-social-row,
    .auth-social-row--3 {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
    }

    .auth-social-row .auth-social-btn,
    .auth-social-row--3 .auth-social-btn,
    .login-form-shell #formRegisterArea .auth-social-btn {
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
        min-height: 44px;
        padding: 8px 10px;
        font-size: .68rem;
        gap: 5px;
    }

    .auth-social-icon { width: 15px; height: 15px; flex: 0 0 15px; }
    .reg-social-badge { margin-left: 3px; padding: 1px 5px; font-size: .52rem; }
}

@media (max-width: 380px) {
    .auth-social-row .auth-social-btn,
    .auth-social-row--3 .auth-social-btn,
    .login-form-shell #formRegisterArea .auth-social-btn {
        min-height: 42px;
        padding: 7px 7px;
        font-size: .62rem;
        gap: 4px;
    }
    .auth-social-icon { width: 14px; height: 14px; flex: 0 0 14px; }
    .reg-social-badge { display: none; }
}

.auth-recaptcha { min-height: 78px; margin: 4px 0 10px; display: flex; align-items: center; justify-content: center; }
.auth-recaptcha-registration { margin: 5px 0 7px; }
.auth-recaptcha > div { max-width: 100%; }
.forgot-link { margin: 18px 0 0; }
.forgot-link a { color: #8fa3c0; text-decoration: none; }
.forgot-link a:hover { color: var(--primary-hover); }

#universalModal.account-modal .modal-content { width: min(1100px, 96vw); max-width: 1100px; will-change: transform; transform: translateZ(0); }
#universalModal.account-modal .modal-body { padding: clamp(16px, 2.2vw, 28px); }
.account-modal-shell { width: 100%; color: #e9f2ff; }
.account-tabs { display: grid; grid-template-columns: repeat(7, minmax(112px, 1fr)); gap: 6px; margin: 0 0 18px; padding: 5px; overflow-x: auto; }
.account-tab { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 42px; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: #8fa1bd; font: inherit; font-size: .79rem; font-weight: 750; white-space: nowrap; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.account-tab:hover { color: #dff5ff; background: rgba(56,189,248,.07); }
.account-tab.is-active { color: #75ddff; background: linear-gradient(135deg, rgba(14,165,233,.22), rgba(37,99,235,.14)); box-shadow: inset 0 0 0 1px rgba(125,211,252,.22); }
.account-panel { animation: accPanelIn .28s cubic-bezier(.22,.8,.26,1); }
@keyframes accPanelIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.acc-character-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr); min-height: 300px; overflow: hidden; border: 1px solid rgba(90,200,255,.22); border-radius: 22px; background: radial-gradient(circle at 78% 45%, rgba(27,148,218,.2), transparent 31%), linear-gradient(115deg, rgba(7,15,38,.98), rgba(13,24,53,.87)); box-shadow: 0 20px 50px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.04); }
.acc-character-stage::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,8,24,.3), transparent 55%), url('../img/oscuro.webp') center/cover; opacity: .15; pointer-events: none; }
.acc-stage-guild-logo { position:absolute; z-index:4; right:24px; bottom:20px; width:58px; height:58px; padding:4px; border:1px solid rgba(125,211,252,.24); border-radius:17px; background:rgba(3,8,24,.62); object-fit:contain; filter:drop-shadow(0 10px 18px rgba(0,0,0,.45)); }
.acc-stage-copy { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(30px, 4vw, 48px); }
.acc-eyebrow,.acc-panel-intro>span,.acc-section-heading span { color: #48caff; font-size: .65rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.acc-name { margin: 8px 0 4px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: .95; letter-spacing: -.045em; }
.acc-game-data { color: #b8c8dd; font-size: .95rem; }
.acc-role-pill { position:relative; top:auto; right:auto; align-self:flex-start; display:inline-flex; align-items:center; gap:7px; margin:0 0 13px; padding:7px 12px; border:1px solid rgba(114,220,255,.32); border-radius:10px; background:linear-gradient(135deg,rgba(14,165,233,.18),rgba(37,99,235,.1)); color:#c9f3ff; font-size:.64rem; font-weight:850; letter-spacing:.075em; text-transform:uppercase; box-shadow:inset 0 1px rgba(255,255,255,.05),0 8px 24px rgba(14,165,233,.1); }
.acc-role-pill::before{content:'◆';color:#49d5ff;font-size:.55rem;filter:drop-shadow(0 0 6px var(--primary-color))}
.acc-quick-stats { display: grid; grid-template-columns: repeat(4, minmax(78px,1fr)); gap: 9px; width: min(100%, 510px); margin-top: 26px; }
.acc-quick-stats>div { padding: 11px 13px; border: 1px solid rgba(148,163,184,.12); border-radius: 12px; background: rgba(255,255,255,.035); }
.acc-quick-stats small { display: block; color: #7f91ad; font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.acc-quick-stats strong { display: flex; align-items: center; gap: 4px; margin-top: 4px; color: #73dcff; font-size: 1.28rem; }
.acc-quick-stats .acc-discord-name{max-width:125px;overflow:hidden;color:#aebcff;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.acc-token-icon { width: 17px; height: 17px; object-fit: contain; }
.acc-main-character { position: relative; z-index: 2; min-height: 300px; }
.acc-main-render { position: absolute; z-index: 3; right:-4%; bottom:-17%; width:min(112%,460px); height:132%; object-fit:contain; object-position:center bottom; background:transparent; border-radius:0; filter:drop-shadow(0 24px 28px rgba(0,0,0,.7)) drop-shadow(0 0 18px var(--acc-character-color,rgba(56,189,248,.3))); transform: translateZ(0); transform-origin:50% 78%; }
.acc-main-render.has-character-render { right:-9%; bottom:-11%; width:min(132%,540px); height:154%; object-position:center 42%; }
.acc-main-render.is-generic-avatar{right:14%;bottom:20%;width:180px;height:180px;object-fit:cover;border-radius:38px;animation:none}
.acc-character-webgl{position:absolute;z-index:1;inset:4% 0 0;width:100%;height:96%;opacity:.52;mix-blend-mode:screen;pointer-events:none}
.acc-render-energy{position:absolute;z-index:2;left:18%;right:4%;bottom:2%;height:38%;background:radial-gradient(ellipse at center,var(--acc-character-soft,rgba(56,189,248,.22)),transparent 68%);filter:blur(10px);opacity: 0.75;pointer-events:none}
@keyframes accCharacterFloat{0%,100%{transform:translateY(0) scale(1.04)}50%{transform:translateY(-7px) scale(1.065)}}
@keyframes accEnergyPulse{0%,100%{opacity:.48;transform:scale(.92)}50%{opacity:.9;transform:scale(1.08)}}
.acc-main-badge { position: absolute; z-index: 4; right: 20px; top: 20px; padding: 6px 10px; border-radius: 8px; background: var(--primary-color); color: #03111e; font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.acc-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 22px 2px 11px; }
.acc-section-heading h4,.acc-panel-intro h4 { margin: 3px 0 0; font-size: 1.15rem; }
.acc-section-heading p,.acc-panel-intro p { margin: 0; color: #8090aa; font-size: .8rem; }
.acc-character-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.acc-alt-card { position: relative; display: grid; grid-template-columns: 158px 1fr; min-height: 178px; overflow: hidden; border: 1px solid rgba(148,163,184,.13); border-radius: 17px; background: radial-gradient(circle at 18% 55%,rgba(56,189,248,.1),transparent 43%),linear-gradient(145deg,rgba(19,31,61,.7),rgba(4,10,27,.76)); box-shadow:inset 0 1px rgba(255,255,255,.035); }
.acc-alt-card img { align-self:end; width:178px; height:205px; margin-left:-9px; margin-bottom:-40px; object-fit:contain; object-position:center bottom; background:transparent; border-radius:0; filter:drop-shadow(0 14px 18px rgba(0,0,0,.66)); transform:scale(1.58); transform-origin:50% 61%; transition:transform .24s ease; }
.acc-alt-card:hover img{transform:scale(1.66) translateY(-2px)}
.acc-alt-card img.has-character-render { width:194px; height:226px; margin-left:-18px; margin-bottom:-45px; object-position:center 42%; transform:translateY(-9px) scale(1.98); transform-origin:50% 55%; }
.acc-alt-card:hover img.has-character-render { transform:translateY(-12px) scale(2.06); }
.acc-alt-card img.is-generic-avatar{width:118px;height:118px;margin:0 0 28px 18px;object-fit:cover;border-radius:26px;transform:none}
.acc-alt-info { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items:flex-start; min-width: 0; padding: 15px 12px 15px 4px; }
.acc-alt-info small { color: #6f829e; font-size: .62rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.acc-alt-info strong { overflow: hidden; margin: 4px 0; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.acc-alt-info span { color: #9cacbf; font-size: .73rem; }
.acc-character-action { margin-top:10px; padding:6px 9px; border:1px solid rgba(125,211,252,.22); border-radius:8px; background:rgba(56,189,248,.08); color:#83e2ff; font:inherit; font-size:.64rem; font-weight:800; cursor:pointer; }
.acc-character-action:hover { border-color:rgba(125,211,252,.5); background:rgba(56,189,248,.15); }
.acc-view-all { min-height:38px; padding:8px 13px; white-space:nowrap; }
.acc-all-characters-head { display:flex; align-items:center; gap:18px; margin:2px 2px 18px; }
.acc-all-characters-head>div>span { color:#48caff; font-size:.65rem; font-weight:850; letter-spacing:.15em; text-transform:uppercase; }
.acc-all-characters-head h4 { margin:3px 0; font-size:1.3rem; }
.acc-all-characters-head p { margin:0; color:#7f91ac; font-size:.8rem; }
.acc-all-character-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.acc-character-profile { position:relative; display:grid; grid-template-rows:190px 1fr; min-width:0; overflow:hidden; border:1px solid rgba(148,163,184,.14); border-radius:18px; background:linear-gradient(155deg,rgba(18,31,61,.82),rgba(4,10,26,.9)); }
.acc-character-art { position:relative; display:grid; place-items:end center; overflow:hidden; background:radial-gradient(circle at 50% 65%,rgba(56,189,248,.15),transparent 48%); }
.acc-character-art::after { content:''; position:absolute; inset:auto 12% 6px; height:1px; background:linear-gradient(90deg,transparent,rgba(125,211,252,.35),transparent); }
.acc-character-art img { width:108%; height:225px; margin-bottom:-34px; object-fit:contain; object-position:center bottom; background:transparent; border-radius:0; filter:drop-shadow(0 14px 18px rgba(0,0,0,.65)); transform:scale(1.52); transform-origin:50% 62%; }
.acc-character-art img.has-character-render { width:122%; height:250px; margin-bottom:-44px; object-position:center 42%; transform:translateY(-8px) scale(1.82); transform-origin:50% 56%; }
.acc-character-art img.is-generic-avatar{width:126px;height:126px;margin:auto;object-fit:cover;border-radius:28px;transform:none}
.acc-character-type { position:absolute; z-index:3; top:12px; left:12px; padding:5px 8px; border-radius:7px; background:rgba(3,8,24,.72); color:#75ddff; font-size:.6rem; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.acc-character-details { padding:15px; }
.acc-character-details h5 { margin:0 0 4px; font-size:1.08rem; }
.acc-character-details>p { margin:0;color:#8ea0b9;font-size:.75rem; }
.acc-character-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin:13px 0; }
.acc-character-facts div { min-width:0; padding:7px 8px; border-radius:9px; background:rgba(255,255,255,.035); }
.acc-character-facts small,.acc-character-facts strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.acc-character-facts small { color:#667b98; font-size:.57rem; font-weight:800; text-transform:uppercase; }
.acc-character-facts strong { margin-top:2px; font-size:.72rem; }
.acc-character-profile .acc-character-action { width:100%; min-height:34px; }
.acc-empty-state { grid-column: 1/-1; padding: 30px; border: 1px dashed rgba(148,163,184,.17); border-radius: 14px; color: #8495af; text-align: center; }
.acc-panel-intro { margin: 4px 2px 18px; }
.acc-panel-intro p { margin-top: 7px; }
.acc-edit-layout { display: grid; grid-template-columns: minmax(210px,.7fr) minmax(340px,1.3fr); gap: 16px; }
.acc-card,.acc-connection-card { border: 1px solid rgba(148,163,184,.13); border-radius: 16px; background: linear-gradient(145deg,rgba(18,29,58,.68),rgba(4,10,27,.7)); }
.acc-avatar-editor { display: grid; place-items: center; min-height: 230px; padding: 24px; }
.acc-avatar-label { display: grid; place-items: center; gap: 10px; color: #75ddff; font-size: .75rem; font-weight: 750; cursor: pointer; }
.acc-avatar-img { width: 120px; height: 120px; padding: 4px; border: 1px solid #52d1ff; border-radius: 30px; object-fit: cover; box-shadow: 0 0 0 7px rgba(56,189,248,.07),0 20px 35px rgba(0,0,0,.35); }
.acc-avatar-input { display:none; }
.acc-profile-form { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(24px,4vw,42px); }
.acc-profile-form label { margin-bottom: 8px; color: #b8c7da; font-size: .72rem; font-weight: 800; letter-spacing:.08em; text-transform:uppercase; }
.acc-profile-form .form-control { width: min(100%,440px); min-height: 46px; }
.acc-profile-form small { margin: 8px 0 20px; color: #71839d; }
.acc-profile-form .btn-primary { min-height: 42px; }
.acc-card-sim { margin-top: 16px; padding: 16px; }
.acc-connections-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.acc-connection-card { display:flex; flex-direction:column; justify-content:space-between; gap:20px; min-height:160px; padding:20px; }
.acc-connection-brand { display:flex; align-items:center; gap:12px; }
.acc-connection-brand img,.acc-rio-mark { width:48px; height:42px; padding:7px; border-radius:12px; background:rgba(255,255,255,.06); object-fit:contain; }
.acc-rio-mark { display:grid; place-items:center; color:#ff4655; font-size:.65rem; font-weight:950; }
.acc-connection-brand h5 { margin:0 0 4px; font-size:.95rem; }
.acc-connection-brand p { margin:0; color:#8495ad; font-size:.75rem; }
.acc-connection-state { color:#4ade80; font-size:.68rem; font-weight:850; letter-spacing:.08em; }
.acc-sync-warning{color:#f9b65e;font-weight:750}.acc-conn-btn.is-required{border-color:rgba(249,182,94,.48);color:#ffd08a;box-shadow:0 0 0 3px rgba(249,182,94,.08)}
.acc-session-security{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:16px;padding:18px 20px;border:1px solid rgba(251,113,133,.2);border-radius:16px;background:linear-gradient(135deg,rgba(127,29,29,.13),rgba(18,29,58,.55))}.acc-session-security div{min-width:0}.acc-session-security span{display:block;color:#fb8da1;font-size:.62rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.acc-session-security strong{display:block;margin-top:4px;font-size:.9rem}.acc-session-security p{margin:4px 0 0;color:#7f91aa;font-size:.72rem}.acc-logout-prominent{flex:0 0 auto;min-height:42px;padding:10px 17px;border:1px solid rgba(251,113,133,.55);border-radius:10px;background:linear-gradient(135deg,#be123c,#7f1d1d);color:var(--text-primary);font:inherit;font-size:.78rem;font-weight:900;box-shadow:0 10px 24px rgba(190,18,60,.2);cursor:pointer}
.acc-modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; padding-top:15px; border-top:1px solid rgba(148,163,184,.1); }

#alertModal .modal-content.fit-modal,
#universalModal.confirmation-modal .modal-content.fit-modal {
    width:min(460px,calc(100vw - 32px));
    max-width:460px;
    min-height:0;
    height:auto;
    max-height:min(82dvh,560px);
}
#alertModal .modal-content.fit-modal .modal-body,
#universalModal.confirmation-modal .modal-content.fit-modal .modal-body {
    padding:18px 20px;
    font-size:.88rem;
    line-height:1.55;
}
#universalModal.confirmation-modal .modal-header {
    min-height:0;
    padding:12px 16px;
}
.modal:not(.visible) *{animation-play-state:paused}

@media (max-width: 820px) {
    :root { --sidebar-width: 250px; }
    .sidebar { border-radius: 0 20px 20px 0; }
    #universalModal.auth-modal .modal-content,
    #universalModal.account-modal .modal-content { width: min(96vw, 680px); }
    .login-layout-shell { grid-template-columns: 1fr; min-height: 0; }
    
    .login-visual-shell {
        display: flex;
        height: auto;
        max-height: 150px;
        padding: 0;
        border-right: 0;
        border-bottom: 1px solid var(--vsg-line);
        overflow: hidden;
    }
    .login-visual-shell::before,
    .login-visual-shell::after {
        display: none;
    }
    
    .warlock-img-shell {
        width: 100%;
        height: 150px;
        max-height: 150px;
        object-fit: cover;
        object-position: center 12%;
    }
    /* object-fit:cover + un solo object-position (arriba) funciona para
       warlock.png (un personaje, sin texto) pero NO para las 8
       pandareg*_25.webp del registro -- cada una tiene el globo de diálogo,
       banner de título o recuadro de UI en una posición distinta (arriba,
       al costado, abajo a la derecha), así que cualquier recorte fijo le
       corta el texto a varias. .is-registering vuelve a object-fit:contain
       (nunca recorta nada) con una franja más alta para que igual se sienta
       protagonista, no miniatura. */
    #universalModal.auth-modal.is-registering .login-visual-shell {
        max-height: 190px;
    }
    #universalModal.auth-modal.is-registering .warlock-img-shell {
        height: 190px;
        max-height: 190px;
        object-fit: contain;
        object-position: center;
    }

    .login-form-shell { min-height: 0; padding: clamp(24px, 6vw, 42px); justify-content: flex-start; }
    .acc-character-stage { grid-template-columns: 1fr minmax(250px,.75fr); }
    .acc-character-grid,.acc-connections-grid { grid-template-columns: 1fr; }
    .acc-all-character-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 560px) {
    #universalModal.auth-modal,
    #universalModal.account-modal { padding: 8px; }
    #universalModal.auth-modal .modal-content,
    #universalModal.account-modal .modal-content { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 17px; }
    #universalModal.auth-modal .modal-header,
    #universalModal.account-modal .modal-header { min-height: 58px; padding: 10px 13px; }
    #universalModal.auth-modal .modal-logo,
    #universalModal.account-modal .modal-logo { height: 30px; }
    .login-form-shell { padding: 22px 18px 26px; }
    .auth-grid-2 { grid-template-columns: 1fr; }
    .auth-grid-2 .inl-15,
    .auth-grid-2 .inl-18 { grid-column: auto; }
    #universalModal.account-modal .modal-body { padding: 15px; }
    .account-tabs { grid-template-columns: repeat(5,48px); justify-content:center; }
    .account-tab { min-height:44px; font-size:0; }
    .account-tab span { font-size:1rem; }
    .acc-character-stage { grid-template-columns:1fr; min-height:430px; }
    .acc-stage-copy { justify-content:flex-start; padding:55px 22px 0; }
    .acc-main-character { min-height:230px; }
    .acc-main-render { left:50%; right:auto; width:320px; height:285px; animation:none; transform:translateX(-50%) scale(1.08); }
    .acc-quick-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acc-session-security{align-items:stretch;flex-direction:column}.acc-logout-prominent{width:100%}
    .acc-edit-layout { grid-template-columns:1fr; }
    .acc-section-heading { align-items:flex-start; flex-direction:column; gap:4px; }
    .acc-all-character-grid { grid-template-columns:1fr; }
    .acc-all-characters-head { align-items:flex-start; }
    .acc-modal-actions { flex-direction:column-reverse; }
    .acc-modal-actions .btn-outline { width:100%; }
}

@media (max-width: 560px) {
    #universalModal.confirmation-modal .modal-content.fit-modal {
        width:calc(100vw - 24px);
        max-width:calc(100vw - 24px);
        margin:12px auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar *,
    .login-layout-shell *,
    .account-modal-shell * { transition-duration: .01ms; animation-duration: .01ms; }
    .acc-character-webgl { display:none; }
}
.acc-onboarding-card{display:grid;gap:14px;margin-bottom:18px;padding:clamp(16px,2vw,22px);border:1px solid rgba(56,189,248,.28);border-radius:18px;background:linear-gradient(135deg,rgba(10,32,67,.92),rgba(5,12,31,.94));box-shadow:0 18px 50px rgba(0,0,0,.22)}
.acc-onboarding-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.acc-onboarding-head span{color:#42c9ff;font-size:.7rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.acc-onboarding-head h4{margin:4px 0;font-size:clamp(1rem,1.6vw,1.28rem)}.acc-onboarding-head p{margin:0;color:#9dafc8;font-size:.82rem}.acc-onboarding-head>strong{display:grid;place-items:center;min-width:58px;aspect-ratio:1;border-radius:50%;border:2px solid #35c7fa;color:#73dcff;background:rgba(20,122,173,.14)}
.acc-onboarding-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.acc-onboarding-steps span{display:flex;align-items:center;gap:7px;min-width:0;padding:9px 10px;border:1px solid rgba(148,163,184,.15);border-radius:10px;color:#8798b4;background:rgba(2,8,23,.45);font-size:.72rem;font-weight:800}.acc-onboarding-steps i{display:grid;place-items:center;width:18px;height:18px;flex:0 0 auto;border-radius:50%;background:#27344b;font-style:normal}.acc-onboarding-steps .is-done{color:#dffdf2;border-color:rgba(16,185,129,.3)}.acc-onboarding-steps .is-done i{background:#10b981;color:#04130e}
.acc-onboarding-action{display:flex;justify-content:flex-end}.acc-onboarding-complete{color:#65e6ad;font-weight:900}.acc-onboarding-form{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;align-items:end;gap:10px}.acc-onboarding-form label{display:grid;gap:6px;color:#aebcd1;font-size:.72rem;font-weight:800}.acc-onboarding-form .form-control{margin:0}.acc-onboarding-form .btn-primary{white-space:nowrap}
@media(max-width:800px){.acc-onboarding-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.acc-onboarding-form{grid-template-columns:1fr 1fr}.acc-onboarding-form label:first-child,.acc-onboarding-form button{grid-column:1/-1}}
.acc-social-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px;padding:20px;border:1px solid rgba(125,168,218,.14);border-radius:17px;background:radial-gradient(circle at 82% 0,rgba(244,114,182,.12),transparent 38%),linear-gradient(145deg,rgba(11,25,51,.9),rgba(5,10,25,.94))}.acc-social-heading>div:first-child{min-width:0}.acc-social-heading>div:first-child>span{color:#f472b6;font-size:.62rem;font-weight:900;letter-spacing:.15em;text-transform:uppercase}.acc-social-heading h4{margin:5px 0 4px;color:#f5f9ff;font-size:1.28rem}.acc-social-heading p{max-width:68ch;margin:0;color:#91a2ba;font-size:.76rem;line-height:1.55}.acc-reward-meter{display:grid;place-items:center;flex:0 0 112px;min-height:82px;padding:12px;border:1px solid rgba(244,114,182,.24);border-radius:15px;background:rgba(244,114,182,.055)}.acc-reward-meter strong{color:#f695c2;font-size:1.45rem}.acc-reward-meter span{color:#8697af;font-size:.56rem;font-weight:800;text-align:center;text-transform:uppercase}.acc-reward-meter.is-wcl{border-color:rgba(249,115,22,.25);background:rgba(249,115,22,.055)}.acc-reward-meter.is-wcl strong{color:#fb923c}
.acc-world-composer{display:grid;gap:13px;padding:clamp(16px,2.5vw,24px);border:1px solid rgba(125,168,218,.16);border-radius:18px;background:linear-gradient(150deg,rgba(12,22,45,.92),rgba(4,9,23,.97));box-shadow:0 18px 42px rgba(1,5,18,.24)}.acc-world-title{display:grid;gap:6px}.acc-world-title>span,.acc-world-video-link>span,.acc-wcl-form label>span{color:#a7b6ca;font-size:.67rem;font-weight:850}.acc-editor-shell{overflow:hidden;border:1px solid rgba(125,168,218,.18);border-radius:13px;background:rgba(2,6,23,.58)}.acc-editor-shell:focus-within{border-color:rgba(56,189,248,.5);box-shadow:0 0 0 3px rgba(56,189,248,.08)}.acc-editor-toolbar{display:flex;align-items:center;gap:4px;padding:7px;border-bottom:1px solid rgba(148,163,184,.1);background:rgba(9,18,38,.76)}.acc-editor-toolbar button{display:grid;place-items:center;width:32px;height:30px;border:1px solid transparent;border-radius:7px;background:transparent;color:#9aabc2;cursor:pointer}.acc-editor-toolbar button:hover{border-color:rgba(56,189,248,.2);background:rgba(56,189,248,.08);color:#e4f7ff}.acc-world-editor{min-height:150px;max-height:280px;padding:15px;overflow-y:auto;outline:0;color:#d9e4f1;font-size:.86rem;line-height:1.65}.acc-world-editor:empty::before{content:attr(data-placeholder);color:#5f718d;pointer-events:none}.acc-world-editor blockquote{margin:10px 0;padding:9px 12px;border-left:3px solid #f472b6;background:rgba(244,114,182,.055)}
.acc-world-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.acc-world-drop,.acc-world-video-link{display:flex;flex-direction:column;justify-content:center;min-height:92px;padding:14px;border:1px dashed rgba(125,211,252,.23);border-radius:13px;background:rgba(56,189,248,.035)}.acc-world-drop{align-items:center;text-align:center;cursor:pointer}.acc-world-drop:hover{border-color:rgba(125,211,252,.5);background:rgba(56,189,248,.07)}.acc-world-drop strong{color:#c9f1ff;font-size:.76rem}.acc-world-drop span,.acc-world-video-link small{margin-top:5px;color:#687a95;font-size:.59rem}.acc-world-drop input{display:none}.acc-world-video-link{gap:6px;border-style:solid}.acc-world-video-link .form-control{margin:0}.acc-world-preview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.acc-world-preview figure{position:relative;height:105px;margin:0;overflow:hidden;border:1px solid rgba(125,168,218,.15);border-radius:11px;background:#020617}.acc-world-preview img,.acc-world-preview video{width:100%;height:100%;object-fit:cover}.acc-world-preview em{position:absolute;right:5px;bottom:5px;padding:3px 5px;border-radius:5px;background:rgba(2,6,23,.82);color:#b7c8de;font-size:.5rem;font-style:normal}.acc-world-submit-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:4px}.acc-captcha-slot{min-height:78px}.acc-my-contributions{margin-top:18px}.acc-my-contributions h5{margin:0 0 10px;color:#dceaff}.acc-mini-history{display:grid;gap:7px}.acc-mini-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:11px 13px;border:1px solid rgba(125,168,218,.12);border-radius:10px;background:rgba(5,12,29,.62)}.acc-mini-item strong,.acc-mini-item span{display:block}.acc-mini-item strong{overflow:hidden;color:#cfe3f5;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}.acc-mini-item span{margin-top:3px;color:#667893;font-size:.58rem}.acc-mini-item em{align-self:center;color:#65e6ad;font-size:.62rem;font-style:normal;font-weight:850}
.acc-wcl-form{display:grid;grid-template-columns:70px minmax(0,1fr);gap:14px;padding:clamp(17px,2.5vw,24px);border:1px solid rgba(249,115,22,.18);border-radius:18px;background:linear-gradient(150deg,rgba(24,18,34,.92),rgba(5,9,22,.97));box-shadow:0 18px 42px rgba(1,5,18,.24)}.acc-wcl-icon{display:grid;place-items:center;width:70px;height:70px;border:1px solid rgba(251,146,60,.3);border-radius:16px;background:linear-gradient(145deg,rgba(249,115,22,.22),rgba(127,29,29,.14));color:#fb923c;font-size:1.05rem;font-weight:950;letter-spacing:.06em}.acc-wcl-form label{display:grid;gap:7px}.acc-wcl-form label small{color:#6e809a;font-size:.6rem}.acc-wcl-form .acc-captcha-slot{grid-column:2}.acc-wcl-form>.btn-primary{grid-column:2;justify-self:end}
@media(max-width:760px){.account-tabs{grid-template-columns:repeat(7,minmax(124px,1fr))}.acc-social-heading{align-items:flex-start;flex-direction:column}.acc-reward-meter{grid-template-columns:auto 1fr;place-items:center start;width:100%;min-height:0}.acc-world-media-grid{grid-template-columns:1fr}.acc-world-preview{grid-template-columns:repeat(2,minmax(0,1fr))}.acc-world-submit-row{align-items:stretch;flex-direction:column}.acc-world-submit-row .btn-primary{width:100%}.acc-wcl-form{grid-template-columns:1fr}.acc-wcl-icon{width:58px;height:58px}.acc-wcl-form .acc-captcha-slot,.acc-wcl-form>.btn-primary{grid-column:1}.acc-wcl-form>.btn-primary{width:100%}}

.nav-unread-badge { display: inline-block; width: 8px; height: 8px; background-color: #ef4444; border-radius: 50%; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); box-shadow: 0 0 4px rgba(239, 68, 68, 0.6); }
#userAccountBtn { position: relative; }
}

@layer vsg-universal {

#universalModal.auth-modal {
    align-items: flex-start !important;
    padding-top: clamp(16px, 4vh, 56px) !important;
}
#universalModal.auth-modal .modal-content {
    width: min(980px, calc(100vw - 16px)) !important;
    height: auto !important;
    min-height: 0 !important;
    
    max-height: min(880px, calc(100dvh - 32px)) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}
#universalModal.auth-modal .modal-header { flex: 0 0 auto; }
#universalModal.auth-modal .modal-body {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}
#universalModal.auth-modal .login-layout-shell {
    min-height: 0 !important;
    overflow: hidden !important;
}
#universalModal.auth-modal .login-visual-shell {
    min-height: 0 !important;
}
#universalModal.auth-modal .login-form-shell {
    min-height: 0 !important;
    min-width: 0 !important;
    container-type: inline-size;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#universalModal.auth-modal .login-form-shell .auth-social-row--3 {
    width: 100%;
    min-width: 0;
}
#universalModal.auth-modal .login-form-shell .auth-social-row--3 > .auth-social-btn {
    min-width: 0;
    box-sizing: border-box;
}

@container (max-width: 640px) {
    #universalModal.auth-modal .login-form-shell .auth-social-row--3 {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        grid-template-columns: none;
        gap: 6px;
    }
    #universalModal.auth-modal .login-form-shell .auth-social-row--3 > .auth-social-btn {
        flex: 0 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 44px;
        gap: 5px;
        padding: 8px 10px;
        overflow: hidden;
        font-size: .68rem;
        text-overflow: ellipsis;
    }
    #universalModal.auth-modal .login-form-shell .auth-social-row--3 .auth-social-icon {
        width: 15px;
        height: 15px;
        flex: 0 0 15px;
    }
}
@container (max-width: 430px) {
    #universalModal.auth-modal .login-form-shell .auth-social-row--3 > .auth-social-btn {
        min-height: 42px;
        gap: 4px;
        padding: 7px 7px;
        font-size: .62rem;
    }
    #universalModal.auth-modal .login-form-shell .auth-social-row--3 .auth-social-icon {
        width: 14px;
        height: 14px;
        flex: 0 0 14px;
    }
    #universalModal.auth-modal .login-form-shell .auth-social-row--3 .reg-social-badge {
        display: none;
    }
}

@media (max-width: 560px) {
    #universalModal.auth-modal {
        align-items: stretch !important;
        padding: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    #universalModal.auth-modal .modal-content {
        width: calc(100vw - 16px) !important;
        height: calc(100dvh - 16px) !important;
        min-height: 0 !important;
        max-height: calc(100dvh - 16px) !important;
        margin: auto !important;
    }

    #universalModal.auth-modal .modal-header {
        min-height: 58px;
        padding: 10px 14px;
    }

    #universalModal.auth-modal .login-layout-shell {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr;
    }
    
    #universalModal.auth-modal .login-visual-shell {
        display: flex !important;
        height: auto !important;
        max-height: 132px !important;
        padding: 0 !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--vsg-line);
        overflow: hidden;
    }
    #universalModal.auth-modal .login-visual-shell::before,
    #universalModal.auth-modal .login-visual-shell::after {
        display: none;
    }
    #universalModal.auth-modal .warlock-img-shell {
        width: 100% !important;
        height: 132px !important;
        max-height: 132px !important;
        object-fit: cover;
        object-position: center 12%;
    }
    /* Mismo criterio que a 900px: contain para el registro, ninguna de las
       8 pandareg*_25.webp pierde su texto/UI por un recorte fijo. */
    #universalModal.auth-modal.is-registering .login-visual-shell {
        max-height: 170px !important;
    }
    #universalModal.auth-modal.is-registering .warlock-img-shell {
        height: 170px !important;
        max-height: 170px !important;
        object-fit: contain;
        object-position: center;
    }
    #universalModal.auth-modal .login-form-shell {
        padding: 16px 14px calc(22px + env(safe-area-inset-bottom)) !important;
        overflow-x: hidden !important;
    }
}

@keyframes vsg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-social-btn.is-authenticating {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95)) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #e2e8f0 !important;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.25) !important;
    cursor: wait !important;
}

.reg-social-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    text-transform: uppercase;
}
.reg-social-badge.is-linked {
    background: #10b981 !important;
    color: #04130e !important;
}
.reg-step-tag.is-complete {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
}

@layer vsg-universal {

.reg-card {
    display: none;
}
.reg-card.is-active {
    display: block;
}
.reg-card-lead {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.reg-card-fullbtn,
a.reg-card-fullbtn,
.reg-card a.btn-outline,
.reg-card a.btn-primary {
    display: flex;
    width: fit-content;
    margin-inline: auto;
    text-decoration: none !important;
    outline: none;
}
.reg-card-fullbtn:hover,
a.reg-card-fullbtn:hover,
.reg-card a.btn-outline:hover {
    text-decoration: none !important;
}
.reg-card-fullbtn + .reg-card-fullbtn {
    margin-top: 10px;
}
.reg-card-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    
    position: sticky;
    bottom: -1px;
    padding: 10px 0 4px;
    background: linear-gradient(to top, rgba(7, 12, 26, .96) 55%, rgba(7, 12, 26, 0));
    z-index: 2;
}
.reg-card-actions .btn-outline,
.reg-card-actions .btn-primary {
    flex: 0 0 auto;
}

.reg-card-actions .btn-primary:disabled {
    opacity: .38;
    filter: grayscale(.4);
    cursor: not-allowed;
    box-shadow: none;
}
.reg-card-actions .btn-primary:disabled:hover {
    transform: none;
}
.reg-card-error {
    margin: 10px 0 0;
    padding: 8px 10px;
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 8px;
    background: rgba(127, 29, 29, 0.18);
    font-size: 0.78rem;
    line-height: 1.4;
}
.reg-progress-card {
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
}
.reg-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.reg-progress-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.reg-progress-pct {
    font-size: 0.8rem;
    font-weight: 900;
    color: #10b981;
}
.reg-progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}
.reg-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #10b981);
    transition: width 0.3s ease;
}

#btnBackToLoginTabs { display: none; }
#universalModal.is-registering #loginTabRow { display: none; }
#universalModal.is-registering #btnBackToLoginTabs {
    display: flex;
    align-self: flex-start;
    width: fit-content;
    flex: 0 0 auto;
    margin: 0 0 14px;
    font-size: 0.78rem;
    padding: 6px 12px;
}

.reg-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.reg-tab {
    flex: 1 1 0;
    min-width: 64px;
    min-height: 44px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    text-align: center;
    cursor: not-allowed;
    
    white-space: normal;
    line-height: 1.2;
    overflow: visible;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.reg-tab:not(:disabled) {
    cursor: pointer;
    color: var(--text-sub);
}
.reg-tab:not(:disabled):hover {
    border-color: rgba(56, 189, 248, 0.35);
    color: #e2e8f0;
}
.reg-tab.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.reg-tab.reg-tab-done:not(.active) {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
}

@media (max-width: 680px) {
    .reg-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .reg-tabs::-webkit-scrollbar { display: none; }
    #regTabs.reg-tabs .reg-tab {
        flex: 0 0 auto;
        min-width: 92px !important;
        white-space: nowrap;
    }
}

.reg-rules-subtabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.reg-rules-subtab {
    flex: 1 1 0;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-sub);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.reg-rules-subtab:hover {
    color: #e2e8f0;
}
.reg-rules-subtab.active {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.reg-rules-content {
    max-height: 260px;
    overflow-y: auto;
    text-align: left;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-muted);
    
    transform: translateZ(0);
    contain: layout style paint;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.reg-rules-content h2 {
    color: var(--primary-color);
    font-size: 1rem;
    margin: 14px 0 8px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.reg-rules-content h2:first-child { margin-top: 0; }
.reg-rules-content h3 {
    color: #f59e0b;
    font-size: 0.9rem;
    margin: 12px 0 6px;
}
.reg-rules-content h4 { color: var(--primary-color); font-size: 0.84rem; margin: 10px 0 4px; }
.reg-rules-content p { margin: 0 0 10px; }
.reg-rules-content ul, .reg-rules-content ol { margin: 0 0 10px; padding-left: 18px; }
.reg-rules-content li { margin-bottom: 4px; }
.reg-rules-content img { max-width: 100%; border-radius: 6px; }
.reg-rules-loading {
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    padding: 20px 0;
}
.reg-rules-accept-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.reg-rules-accept-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    font-size: 0.82rem;
    color: #e2e8f0;
    cursor: pointer;
}
.reg-rules-accept-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.reg-raidchar-slots {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.reg-raidchar-slot {
    flex: 1 1 0;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
    transition: border-color .2s ease, background .2s ease;
}

.reg-raidchar-slot.is-filled {
    border-style: solid;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.1);
}
.reg-raidchar-slot-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: .03em;
}
.reg-raidchar-slot-value {
    display: block;
    font-size: 0.76rem;
    color: var(--text-main);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reg-raidchar-grid {
    display: grid;
    
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 2px;
}
.reg-raidchar-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.6);
    text-align: left;
    transition: border-color .2s ease, background .2s ease;
}
.reg-raidchar-card:hover { border-color: rgba(56, 189, 248, 0.3); }
.reg-raidchar-card.is-picked {
    border-color: var(--primary-color);
    background: rgba(56, 189, 248, 0.15);
}
.reg-raidchar-card-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.reg-raidchar-card-name {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reg-raidchar-card-meta {
    display: block;
    font-size: 0.66rem;
    color: var(--text-sub);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reg-raidchar-role-select {
    margin-left: auto;
    flex-shrink: 0;
    min-height: 34px;
    max-width: 108px;
    padding: 4px 22px 4px 8px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2338bdf8'%3E%3Cpath d='M5.5 7.5l4.5 5 4.5-5z'/%3E%3C/svg%3E") no-repeat right 6px center;
    background-size: 14px;
    color: var(--primary-hover);
    font-size: 0.68rem;
    font-weight: 800;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.reg-raidchar-role-select:hover { border-color: rgba(56, 189, 248, 0.55); }
.reg-raidchar-role-select:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 1px; }
.reg-raidchar-role-select option { background: #0b1229; color: var(--text-main); }

.reg-card-status {
    margin: 10px 0 0;
    min-height: 1.1em;
    color: var(--text-sub);
    font-size: 0.82rem;
    line-height: 1.4;
}

.reg-skip-btn {
    display: block;
    width: fit-content;
    margin: 10px auto 0;
    padding: 8px 14px;
    font-size: 0.78rem;
    border-radius: 8px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}
.reg-skip-btn:hover {
    border-color: rgba(148, 163, 184, 0.7);
    color: #e2e8f0;
}
.reg-char-welcome {
    margin-top: 14px;
}
.reg-char-grid {
    display: grid;
    
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
}

.reg-char-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.reg-char-card:hover { border-color: rgba(56, 189, 248, 0.4); }

.reg-char-card.is-selected-main {
    border-color: var(--primary-color);
    background: rgba(56, 189, 248, 0.15);
}
.reg-char-avatar {
    width: 52px;
    height: 52px;
    max-width: none;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.reg-role-selector {
    display: flex;
    gap: 8px;
}
.reg-role-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-sub);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.reg-role-btn:hover { border-color: rgba(56, 189, 248, 0.35); }
.reg-role-btn img { width: 16px; height: 16px; object-fit: contain; }
.reg-role-btn.is-active {
    border-color: var(--primary-color);
    background: rgba(56, 189, 248, 0.2);
    color: var(--text-primary);
}
.reg-char-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
    color: #e2e8f0;
    font-size: 0.85rem;
}
.reg-char-info strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reg-char-info span {
    color: var(--text-sub);
    font-size: 0.72rem;
}
.reg-whatsapp-code {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 10px;
    background: rgba(6, 78, 59, 0.18);
    color: #a9ebd2;
    font-size: 0.85rem;
    text-align: center;
}
.reg-whatsapp-code strong {
    display: block;
    margin-bottom: 6px;
    color: #34d399;
    font-size: 1rem;
    letter-spacing: 0.03em;
}
.reg-whatsapp-code p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.reg-sim-exit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 12px;
    padding: 8px 12px;
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 10px;
    background: rgba(124, 45, 18, 0.18);
    color: #fdba74;
    font-size: 0.74rem;
    font-weight: 700;
}
.reg-sim-exit button {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgba(249, 115, 22, 0.4);
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.12);
    color: #fed7aa;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}
.reg-sim-exit button:hover {
    background: rgba(249, 115, 22, 0.22);
}

.modal, .modal-content, .auth-modal, .reg-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: auto;
}
.modal-backdrop, .universalModal-backdrop {
    background: rgba(5, 10, 20, 0.82) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.login-auth-nav-slot {
    display: flex;
    align-items: flex-start;
    min-height: 46px;
    margin-bottom: 8px;
}
.login-auth-nav-slot .login-tab-row {
    width: 100%;
    margin: 0 !important;
}
#universalModal.auth-modal #btnBackToLoginTabs {
    display: none !important;
    width: max-content !important;
    min-width: 0 !important;
    align-self: flex-start;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 7px 12px !important;
    white-space: nowrap;
}
#universalModal.auth-modal.is-registering #loginAuthNavSlot {
    min-height: 38px;
}
#universalModal.auth-modal.is-registering #loginTabRow {
    display: none !important;
}
#universalModal.auth-modal.is-registering #btnBackToLoginTabs {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    
    margin: 0 0 16px !important;
}

#universalModal.auth-modal.is-registering #loginAuthNavSlot {
    display: none !important;
}
#formRegisterArea #btnBackToLoginTabs {
    display: none;
    width: max-content;
    min-width: 0;
    margin: 0 0 14px;
    padding: 7px 12px;
    white-space: nowrap;
}
#universalModal.auth-modal.is-registering #formRegisterArea #btnBackToLoginTabs {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

#universalModal.auth-modal.is-raid-registration { align-items:flex-start !important; padding:clamp(8px,2vw,24px) !important; }
#universalModal.auth-modal.is-raid-registration .modal-content { width:min(1180px,98vw); max-width:1180px; max-height:calc(100dvh - 16px); }
#universalModal.auth-modal.is-raid-registration .login-layout-shell { display:block; height:auto; min-height:0; }
#universalModal.auth-modal.is-raid-registration .login-visual-shell,
#universalModal.auth-modal.is-raid-registration #loginAuthNavSlot,
#universalModal.auth-modal.is-raid-registration .reg-progress-card,
#universalModal.auth-modal.is-raid-registration #regTabs,
#universalModal.auth-modal.is-raid-registration #regSimExit { display:none !important; }
#universalModal.auth-modal.is-raid-registration .login-form-shell { padding:0; background:transparent; }
#universalModal.auth-modal.is-raid-registration #formRegisterArea { display:block !important; }
#universalModal.auth-modal.is-raid-registration #btnBackToLoginTabs { position:absolute; z-index:3; top:15px; right:74px; margin:0; }
#universalModal.auth-modal.is-raid-registration .reg-card:not(#regCard5) { display:none !important; }
#universalModal.auth-modal.is-raid-registration #regCard5 { display:block; margin:0; }

.reg-raid-registration-shell { padding:clamp(20px,3vw,34px); }
.reg-raid-registration-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:22px; }
.reg-raid-registration-head>div:first-child>span,.reg-raid-registration-summary>span { display:block; color:#70cffa; font-size:.66rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.reg-raid-registration-head h2 { max-width:760px; margin:7px 0 5px; color:#f4f9ff; font-size:clamp(1.6rem,3vw,2.35rem); line-height:1.06; letter-spacing:-.035em; }
.reg-raid-registration-head p { max-width:660px; margin:0; color:#9caec4; font-size:.88rem !important; line-height:1.45 !important; }
.reg-raid-registration-count { flex:0 0 auto; padding:9px 11px; color:#7be6b7; border:1px solid rgba(74,222,128,.26); border-radius:8px; background:rgba(20,83,45,.2); font-size:.76rem; font-weight:800; }
.reg-raid-registration-layout { display:grid; grid-template-columns:minmax(0,1fr) 268px; gap:24px; align-items:start; }
.reg-raid-registration-picker { min-width:0; }
.reg-raid-registration-status { margin:0 0 12px !important; min-height:1.2em; color:#c3d4e7 !important; font-size:.82rem !important; }
.reg-raidchar-slots { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-bottom:12px; }
.reg-raidchar-slot { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"label action" "value action"; align-items:center; gap:3px 8px; min-width:0; padding:11px; border:1px solid rgba(116,149,181,.22); border-radius:10px; background:rgba(5,14,31,.48); color:#d7e7f5; text-align:left; cursor:pointer; }
.reg-raidchar-slot:hover,.reg-raidchar-slot.is-target { border-color:rgba(82,195,239,.65); background:rgba(17,57,84,.42); }
.reg-raidchar-slot.is-filled { border-style:solid; border-color:rgba(74,222,128,.35); background:rgba(13,69,48,.22); }
.reg-raidchar-slot-label { grid-area:label; color:#91a9c0; font-size:.69rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.reg-raidchar-slot-label small { margin-left:4px; color:#5d7189; font-size:.58rem; font-weight:700; }
.reg-raidchar-slot-value { grid-area:value; min-width:0; margin:0; color:#f1f7fc; font-size:.83rem; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reg-raidchar-slot-action { grid-area:action; color:#79d8ff; font-size:.69rem; font-weight:800; }
.reg-raidchar-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; color:#8498b0; font-size:.74rem; }
.reg-raidchar-toolbar .btn-outline { min-height:34px; padding:6px 10px; font-size:.73rem; }
.reg-raidchar-toolbar .btn-outline.is-active { color:#dffbf0; border-color:rgba(74,222,128,.46); background:rgba(20,83,45,.28); }

.reg-raidchar-grid { grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:9px; max-height:none; overflow:visible; padding:0; }
.reg-raidchar-card { display:grid; grid-template-columns:48px minmax(0,1fr) auto; align-items:center; gap:10px; width:100%; min-height:68px; padding:9px; border:1px solid rgba(110,145,179,.2); border-radius:10px; background:rgba(8,19,38,.72); color:#e8f3ff; text-align:left; cursor:pointer; }
.reg-raidchar-card:hover { border-color:rgba(88,198,239,.5); background:rgba(13,36,60,.82); }
.reg-raidchar-card.is-picked { border-color:rgba(74,222,128,.54); background:rgba(15,66,48,.3); }
.reg-raidchar-card-avatar { width:48px; height:48px; border-radius:9px; box-shadow:none; }
.reg-raidchar-card-copy { min-width:0; }
.reg-raidchar-card-name { font-size:.85rem; }
.reg-raidchar-card-meta { margin-top:3px; font-size:.68rem; }
.reg-raidchar-assignment { max-width:92px; color:#9ec4dc; font-size:.64rem; font-weight:800; line-height:1.2; text-align:right; }
.reg-raidchar-card.is-picked .reg-raidchar-assignment { color:#85edbd; }
.reg-raidchar-empty { grid-column:1/-1; padding:16px; color:#9caec4; border:1px dashed rgba(116,149,181,.25); border-radius:10px; text-align:center; }
.reg-raid-registration-summary { position:sticky; top:10px; display:grid; gap:10px; padding:16px; border-left:3px solid #48c69d; border-radius:9px; background:rgba(7,31,44,.94); box-shadow:0 12px 30px rgba(0,0,0,.16); }
.reg-raid-registration-summary>span { color:#91b8cf; }
.reg-raid-registration-summary strong { color:#f3f9ff; font-size:1rem; }
.reg-raid-registration-summary p { margin:-4px 0 4px !important; color:#a7c0d2 !important; font-size:.74rem !important; }
.reg-raid-registration-summary .btn-primary,.reg-raid-registration-summary .btn-outline { width:100%; min-height:40px; margin:0; font-size:.78rem; }
.reg-raid-registration-summary .btn-primary:disabled { cursor:not-allowed; opacity:.48; box-shadow:none; }

@media(max-width:760px) {
  #universalModal.auth-modal.is-raid-registration { padding:0 !important; }
  #universalModal.auth-modal.is-raid-registration .modal-content { width:100vw; max-width:100vw; max-height:100dvh; min-height:100dvh; border-radius:0; }
  #universalModal.auth-modal.is-raid-registration .modal-header { min-height:58px; padding:10px 14px; }
  #universalModal.auth-modal.is-raid-registration #btnBackToLoginTabs { top:11px; right:62px; }
  .reg-raid-registration-shell { padding:17px 14px 26px; }
  .reg-raid-registration-head { margin-bottom:16px; }
  .reg-raid-registration-head h2 { font-size:1.5rem; }
  .reg-raid-registration-count { padding:7px 8px; font-size:.66rem; }
  .reg-raid-registration-layout { grid-template-columns:1fr; gap:14px; }
  .reg-raid-registration-summary { position:static; order:-1; grid-template-columns:1fr auto; align-items:center; }
  .reg-raid-registration-summary>span,.reg-raid-registration-summary p { grid-column:1/-1; }
  .reg-raid-registration-summary .btn-primary,.reg-raid-registration-summary .btn-outline { width:auto; min-width:0; }
  .reg-raidchar-slots { grid-template-columns:1fr; }
  .reg-raidchar-slot { min-height:56px; }
  .reg-raidchar-grid { grid-template-columns:1fr; }
}

#universalModal.auth-modal.is-raid-registration .login-layout-shell { display:grid; grid-template-columns:210px minmax(0,1fr); min-height:min(720px,calc(100dvh - 100px)); }
#universalModal.auth-modal.is-raid-registration .login-visual-shell { display:flex !important; padding:18px 10px; border-right:1px solid rgba(125,211,252,.16); background:radial-gradient(circle at 50% 32%,rgba(56,189,248,.14),transparent 48%),linear-gradient(165deg,rgba(11,30,67,.84),rgba(6,12,29,.95)); }
#universalModal.auth-modal.is-raid-registration .login-visual-shell::before { bottom:16px; font-size:.52rem; letter-spacing:.2em; }
#universalModal.auth-modal.is-raid-registration .login-visual-shell::after { width:130px; height:130px; box-shadow:0 0 0 16px rgba(125,211,252,.02); }
#universalModal.auth-modal.is-raid-registration .warlock-img-shell { width:100%; max-height:460px; filter:brightness(1.04) contrast(1.08) saturate(1.04) drop-shadow(0 16px 26px rgba(0,0,0,.48)); }
#universalModal.auth-modal.is-raid-registration #btnBackToLoginTabs { display:none !important; }

.reg-raid-registration-head { margin-bottom:16px; }
.reg-raid-registration-head h2 { max-width:640px; margin:5px 0 4px; font-size:clamp(1.25rem,2.2vw,1.72rem); letter-spacing:-.02em; }
.reg-raid-registration-head p { max-width:590px; font-size:.78rem !important; }
.reg-raid-registration-count { padding:7px 9px; font-size:.67rem; }
.reg-raid-registration-layout { grid-template-columns:minmax(0,1fr) 250px; gap:18px; }
.reg-raidchar-slots { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.reg-raid-dropzone { display:grid; grid-template-rows:auto minmax(46px,1fr); gap:7px; min-width:0; min-height:80px; padding:9px; border:1px dashed rgba(125,170,202,.38); border-radius:9px; background:rgba(4,14,31,.48); color:#dcecf8; text-align:left; cursor:pointer; transition:border-color .16s ease,background .16s ease,transform .16s ease; }
.reg-raid-dropzone:hover,.reg-raid-dropzone.is-drag-over { border-color:#6ed4ff; background:rgba(18,61,89,.48); }
.reg-raid-dropzone.is-drag-over { transform:translateY(-2px); }
.reg-raid-dropzone.is-filled { position:relative; border-style:solid; border-color:var(--raid-class-color,#4dbfec); background:linear-gradient(135deg,color-mix(in srgb,var(--raid-class-color,#4dbfec) 20%,#071529),rgba(7,21,41,.88)); }
.reg-raid-remove-btn { position:absolute; top:6px; right:6px; z-index:2; display:flex; align-items:center; justify-content:center; width:20px; height:20px; padding:0; border:1px solid rgba(255,255,255,.2); border-radius:50%; background:rgba(8,21,42,.75); color:#f2f8fc; font-size:.72rem; line-height:1; cursor:pointer; }
.reg-raid-remove-btn:hover { border-color:#e35d5d; background:#8a2b2b; }
.reg-raid-remove-btn--inline { position:static; width:14px; height:14px; margin-left:4px; border-width:0; background:rgba(255,255,255,.12); font-size:.58rem; vertical-align:middle; }

@keyframes reg-raid-invalid-shake { 10%,90%{transform:translateX(-1px)} 20%,80%{transform:translateX(2px)} 30%,50%,70%{transform:translateX(-4px)} 40%,60%{transform:translateX(4px)} }
.reg-raid-dropzone.is-invalid-shake { animation:reg-raid-invalid-shake .5s cubic-bezier(.36,.07,.19,.97) both; border-color:#e35d5d !important; }
.acc-raid-shell.reg-raid-registration-shell { max-width:100%; max-height:none; overflow:visible; }
.reg-raid-drop-label { display:flex; align-items:center; justify-content:space-between; gap:4px; color:#a8bdd0; font-size:.61rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.reg-raid-drop-label small { color:#71859d; font-size:.52rem; letter-spacing:0; }
.reg-raid-drop-empty { align-self:center; color:#70859c; font-size:.66rem; line-height:1.2; }
.reg-raid-drop-character { display:flex; align-items:center; gap:7px; min-width:0; color:#f2f8fc; }
.reg-raid-drop-character::before { content:''; width:3px; align-self:stretch; border-radius:3px; background:var(--raid-class-color,#4dbfec); }
.reg-raid-drop-character span { min-width:0; }
.reg-raid-drop-character b,.reg-raid-drop-character small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reg-raid-drop-character b { font-size:.74rem; }
.reg-raid-drop-character small { margin-top:2px; color:#b1c2d3; font-size:.6rem; }
.reg-raid-drop-class-icon,.reg-raid-final-character img { width:21px; height:21px; object-fit:contain; }
.reg-raid-alter-list { display:flex; flex-wrap:wrap; gap:4px; align-content:center; }
.reg-raid-alter-list b { padding:3px 5px; border-left:2px solid var(--raid-class-color,#4dbfec); border-radius:3px; background:rgba(255,255,255,.05); color:#dcecf8; font-size:.62rem; }
.reg-raidchar-toolbar { align-items:flex-start; margin-bottom:10px; font-size:.69rem; line-height:1.35; }
.reg-raidchar-toolbar span { max-width:440px; }
.reg-raidchar-grid { grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:7px; }
.reg-raidchar-card { grid-template-columns:43px minmax(0,1fr) auto; min-height:62px; padding:8px; border-left:3px solid var(--raid-class-color,#4dbfec); border-radius:8px; box-shadow:none; }
.reg-raidchar-card:hover { transform:none; }
.reg-raidchar-card.is-picked { border-color:var(--raid-class-color,#4dbfec); background:linear-gradient(110deg,color-mix(in srgb,var(--raid-class-color,#4dbfec) 17%,#0b1c31),rgba(8,19,38,.84)); }
.reg-raidchar-card-avatar { width:43px; height:43px; border-radius:7px; }
.reg-raidchar-card-name { color:var(--raid-class-color,#dcecf8); font-size:.78rem; }
.reg-raidchar-card-meta { display:flex; align-items:center; gap:4px; margin-top:2px; }
.reg-raidchar-card-meta img { width:14px; height:14px; object-fit:contain; }
.reg-raidchar-assignment { max-width:78px; color:#95adc0; font-size:.58rem; }
.reg-raidchar-card.is-picked .reg-raidchar-assignment { color:#d5e9f5; }
.reg-raid-registration-summary { top:12px; gap:8px; padding:14px; border-left:0; border-top:3px solid #48c69d; border-radius:10px; background:linear-gradient(160deg,rgba(9,38,53,.98),rgba(5,18,33,.98)); box-shadow:0 10px 24px rgba(0,0,0,.18); }
.reg-raid-registration-summary strong { font-size:.9rem; }
.reg-raid-registration-summary p { margin:0 !important; font-size:.68rem !important; }
.reg-raid-final-selection { display:grid; gap:6px; margin:3px 0 5px; }
.reg-raid-final-character { display:flex; align-items:center; gap:7px; min-width:0; padding:7px; border-left:3px solid var(--raid-class-color,#4dbfec); border-radius:5px; background:rgba(2,11,26,.42); }
.reg-raid-final-character span { min-width:0; }
.reg-raid-final-character b,.reg-raid-final-character small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.reg-raid-final-character b { color:#ecf7ff; font-size:.7rem; }
.reg-raid-final-character small { margin-top:1px; color:#91a9bd; font-size:.56rem; }
.reg-raid-final-empty { color:#8198ad; font-size:.66rem; }
.reg-raid-summary-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; }
.reg-raid-registration-summary .btn-primary,.reg-raid-registration-summary .btn-outline { width:auto; min-height:36px; padding:6px 9px; font-size:.69rem; white-space:nowrap; }

@media(max-width:820px) {
  #universalModal.auth-modal.is-raid-registration .login-layout-shell { display:block; min-height:0; }
  #universalModal.auth-modal.is-raid-registration .login-visual-shell { display:none !important; }
  .reg-raidchar-slots { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:520px) {
  .reg-raid-registration-head { gap:10px; }
  .reg-raid-registration-head h2 { font-size:1.26rem; }
  .reg-raid-registration-count { display:none; }
  .reg-raidchar-slots { grid-template-columns:1fr; }
  .reg-raid-dropzone { min-height:66px; }
  .reg-raid-registration-summary { grid-template-columns:1fr; }
  .reg-raid-registration-summary .btn-primary,.reg-raid-registration-summary .btn-outline { width:100%; }
}

#universalModal.auth-modal.is-raid-registration {
  padding:clamp(12px,2vw,28px) !important;
}
#universalModal.auth-modal.is-raid-registration .modal-content {
  width:min(1120px,calc(100vw - 24px));
  max-width:1120px;
  overflow:hidden;
}
#universalModal.auth-modal.is-raid-registration #btnBackToLoginTabs,
#universalModal.auth-modal.is-raid-registration .reg-progress-card,
#universalModal.auth-modal.is-raid-registration #regTabs,
#universalModal.auth-modal.is-raid-registration #loginAuthNavSlot {
  display:none !important;
}
#universalModal.auth-modal.is-raid-registration .login-layout-shell {
  display:grid;
  grid-template-columns:172px minmax(0,1fr);
  min-height:590px;
}
#universalModal.auth-modal.is-raid-registration .login-visual-shell {
  display:flex !important;
  min-width:0;
  padding:18px 12px;
  border-right:1px solid rgba(116,175,217,.16);
  background:linear-gradient(180deg,#0d2448 0%,#07142b 100%);
}
#universalModal.auth-modal.is-raid-registration .warlock-img-shell {
  width:100%;
  max-height:390px;
  object-fit:contain;
}
#universalModal.auth-modal.is-raid-registration .login-form-shell {
  padding:0;
  background:#08152a;
}
.reg-raid-registration-shell {
  padding:24px clamp(20px,3vw,34px) 22px;
}
.reg-raid-registration-head {
  align-items:center;
  gap:16px;
  margin:0 0 16px;
  padding-bottom:15px;
  border-bottom:1px solid rgba(125,166,198,.15);
}
.reg-raid-registration-head>div:first-child>span,
.reg-raid-registration-summary>span {
  color:#76c8e8;
  font-size:.6rem;
  letter-spacing:.12em;
}
.reg-raid-registration-head h2 {
  margin:4px 0 2px;
  font-size:1.35rem;
  line-height:1.15;
  letter-spacing:-.018em;
}
.reg-raid-registration-head p {
  font-size:.78rem !important;
  line-height:1.35 !important;
}
.reg-raid-registration-count {
  padding:7px 9px;
  border-radius:6px;
  font-size:.66rem;
  white-space:nowrap;
}
.reg-raid-registration-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
}
.reg-raid-registration-status {
  margin:0 0 8px !important;
  font-size:.74rem !important;
}
.reg-raidchar-slots {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0 0 10px;
}
.reg-raid-dropzone {
  grid-template-rows:auto minmax(38px,1fr);
  min-height:70px;
  gap:5px;
  padding:8px 10px;
  border-radius:7px;
}
.reg-raid-dropzone:first-child,
.reg-raid-dropzone-alters { grid-column:1 / -1; }
.reg-raid-drop-label { font-size:.58rem; }
.reg-raid-drop-label small { font-size:.5rem; }
.reg-raid-drop-character b { font-size:.73rem; }
.reg-raid-drop-character small { font-size:.58rem; }
.reg-raid-drop-empty { font-size:.62rem; }
.reg-raidchar-toolbar {
  align-items:center;
  gap:12px;
  margin:0 0 10px;
  padding:8px 0;
  border-bottom:1px solid rgba(125,166,198,.11);
  color:#91a7bb;
  font-size:.67rem;
}
.reg-raidchar-toolbar span { max-width:none; }
.reg-raidchar-toolbar .btn-outline {
  flex:0 0 auto;
  min-height:31px;
  padding:5px 9px;
  border-radius:6px;
  font-size:.66rem;
}
.reg-raidchar-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.reg-raidchar-card {
  grid-template-columns:40px minmax(0,1fr) auto;
  min-height:58px;
  gap:8px;
  padding:7px;
  border-radius:7px;
}
.reg-raidchar-card-avatar { width:40px; height:40px; border-radius:6px; }
.reg-raidchar-card-name { font-size:.74rem; }
.reg-raidchar-card-meta { font-size:.6rem; }
.reg-raidchar-assignment { max-width:66px; font-size:.54rem; }
.reg-raid-registration-summary {
  position:static;
  display:grid;
  grid-template-columns:126px minmax(0,1fr) 156px;
  grid-template-rows:auto auto;
  align-items:center;
  gap:4px 14px;
  margin-top:2px;
  padding:12px 14px;
  border:1px solid rgba(74,198,157,.26);
  border-left:3px solid #48c69d;
  border-top:1px solid rgba(74,198,157,.26);
  border-radius:8px;
  background:#0a2234;
  box-shadow:none;
}
.reg-raid-registration-summary>span { grid-column:1; grid-row:1; }
.reg-raid-registration-summary strong { grid-column:1; grid-row:2; font-size:.78rem; line-height:1.2; }
.reg-raid-registration-summary p { grid-column:2; grid-row:1; margin:0 !important; font-size:.63rem !important; line-height:1.3 !important; }
.reg-raid-final-selection { grid-column:2; grid-row:2; display:flex; flex-wrap:wrap; gap:5px; margin:0; min-width:0; }
.reg-raid-final-character { flex:1 1 118px; min-width:0; padding:5px 6px; border-radius:4px; }
.reg-raid-final-character b { font-size:.63rem; }
.reg-raid-final-character small { font-size:.52rem; }
.reg-raid-summary-actions { grid-column:3; grid-row:1 / span 2; display:grid; grid-template-columns:1fr; gap:6px; }
.reg-raid-registration-summary .btn-primary,
.reg-raid-registration-summary .btn-outline {
  width:100%;
  min-height:32px;
  padding:5px 8px;
  border-radius:6px;
  font-size:.64rem;
  white-space:normal;
}
@media(max-width:820px) {
  #universalModal.auth-modal.is-raid-registration .login-layout-shell { display:block; min-height:0; }
  #universalModal.auth-modal.is-raid-registration .login-visual-shell { display:none !important; }
  .reg-raid-registration-summary { grid-template-columns:120px minmax(0,1fr) 144px; }
}
@media(max-width:590px) {
  #universalModal.auth-modal.is-raid-registration { padding:0 !important; }
  #universalModal.auth-modal.is-raid-registration .modal-content { width:100vw; max-height:100dvh; min-height:100dvh; border-radius:0; }
  .reg-raid-registration-shell { padding:18px 14px 24px; }
  .reg-raid-registration-head { align-items:flex-start; }
  .reg-raid-registration-count { display:none; }
  .reg-raidchar-slots,.reg-raidchar-grid { grid-template-columns:1fr; }
  .reg-raid-dropzone:first-child,.reg-raid-dropzone-alters { grid-column:auto; }
  .reg-raidchar-toolbar { align-items:flex-start; flex-direction:column; gap:7px; }
  .reg-raid-registration-summary { grid-template-columns:1fr; gap:7px; }
  .reg-raid-registration-summary>span,.reg-raid-registration-summary strong,.reg-raid-registration-summary p,.reg-raid-final-selection,.reg-raid-summary-actions { grid-column:1; grid-row:auto; }
  .reg-raid-summary-actions { grid-template-columns:1fr 1fr; }
}

#universalModal.auth-modal.is-raid-registration .login-layout-shell {
  grid-template-columns:220px minmax(0,1fr) !important;
  column-gap:0 !important;
  background:#08152a;
}
#universalModal.auth-modal.is-raid-registration .login-visual-shell {
  padding:12px 8px !important;
  background:#0d274d !important;
}
#universalModal.auth-modal.is-raid-registration .warlock-img-shell {
  width:280px !important;
  max-width:none !important;
  max-height:480px !important;
  transform:scale(1.12);
}
#universalModal.auth-modal.is-raid-registration .login-form-shell {
  margin:0 !important;
  border:0 !important;
  background:#08152a !important;
}
#universalModal.auth-modal.is-raid-registration #btnBackToLoginTabs {
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}
.reg-raid-registration-head-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex:0 0 auto;
}
#btnRaidPreviousStep {
  width:auto;
  min-width:0;
  min-height:32px;
  margin:0;
  padding:5px 9px;
  border-radius:6px;
  font-size:.67rem;
  white-space:nowrap;
}
.reg-raidchar-grid {
  display:flex !important;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:8px;
}
.reg-raidchar-card {
  flex:0 1 224px;
  width:224px !important;
  max-width:100%;
}
.reg-raidchar-card.is-preview { border-style:dashed; opacity:.84; }
.reg-raidchar-card.is-preview .reg-raidchar-assignment { color:#82b9d5; }
.reg-raid-registration-summary {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px 13px;
  padding:11px 13px;
}
.reg-raid-registration-summary>span {
  flex:0 0 auto;
  width:auto;
}
.reg-raid-registration-summary strong {
  flex:0 0 auto;
  font-size:.75rem;
}
.reg-raid-registration-summary p {
  flex:1 1 150px;
  min-width:0;
  margin:0 !important;
  font-size:.64rem !important;
}
.reg-raid-registration-summary .reg-raid-final-selection { display:none !important; }
.reg-raid-summary-actions {
  display:flex;
  flex:0 0 auto;
  gap:6px;
}
.reg-raid-registration-summary .btn-primary,
.reg-raid-registration-summary .btn-outline {
  width:auto;
  min-height:32px;
  padding:5px 9px;
  white-space:nowrap;
}
.reg-raid-skip-confirm {
  display:flex;
  flex:1 1 100%;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:9px;
  border-top:1px solid rgba(125,166,198,.15);
}
.reg-raid-skip-confirm[hidden] { display:none !important; }
.reg-raid-skip-confirm p { flex:1 1 auto; color:#d8e7f1 !important; }
.reg-raid-skip-confirm>div { display:flex; flex:0 0 auto; gap:6px; }
.reg-raid-skip-confirm .btn-primary,.reg-raid-skip-confirm .btn-outline { min-height:30px; font-size:.61rem; }
@media(max-width:820px) {
  #universalModal.auth-modal.is-raid-registration .login-layout-shell { display:block !important; }
  #universalModal.auth-modal.is-raid-registration .login-visual-shell { display:none !important; }
}
@media(max-width:590px) {
  .reg-raid-registration-head-actions { gap:5px; }
  #btnRaidPreviousStep { min-height:29px; padding:4px 7px; font-size:.61rem; }
  .reg-raidchar-card { flex-basis:100%; width:100% !important; }
  .reg-raid-registration-summary { align-items:flex-start; flex-direction:column; }
  .reg-raid-summary-actions,.reg-raid-summary-actions .btn-primary,.reg-raid-summary-actions .btn-outline { width:100%; }
  .reg-raid-summary-actions { display:grid; grid-template-columns:1fr; }
  .reg-raid-skip-confirm { align-items:stretch; flex-direction:column; }
  .reg-raid-skip-confirm>div { display:grid; grid-template-columns:1fr 1fr; }
}

#universalModal.auth-modal.is-raid-registration .login-layout-shell {
  grid-template-columns:245px minmax(0,1fr) !important;
  background:transparent !important;
}
#universalModal.auth-modal.is-raid-registration .login-visual-shell {
  padding:18px 14px !important;
  background:radial-gradient(circle at 50% 40%,rgba(56,189,248,.16),transparent 42%),linear-gradient(155deg,rgba(37,99,235,.09),rgba(139,92,246,.08)) !important;
}
#universalModal.auth-modal.is-raid-registration .warlock-img-shell {
  width:min(100%,270px) !important;
  max-width:270px !important;
  max-height:min(500px,calc(100% - 46px)) !important;
  transform:none !important;
}
#universalModal.auth-modal.is-raid-registration .login-form-shell { background:transparent !important; }
.reg-raidchar-slots {
  display:flex !important;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:8px;
}
.reg-raid-dropzone,
.reg-raid-dropzone:first-child,
.reg-raid-dropzone-alters {
  grid-column:auto !important;
  flex:0 0 auto;
  width:max-content;
  min-width:205px;
  max-width:min(280px,100%);
  min-height:68px;
}
.reg-raid-dropzone:first-child { min-width:248px; }
.reg-raid-dropzone-alters { min-width:205px; }
.reg-raid-drop-character { max-width:250px; }
@media(max-width:820px) {
  #universalModal.auth-modal.is-raid-registration .login-layout-shell { display:block !important; }
}
@media(max-width:590px) {
  .reg-raid-dropzone,
  .reg-raid-dropzone:first-child,
  .reg-raid-dropzone-alters { width:100%; min-width:0; max-width:none; }
}

#universalModal.auth-modal.is-raid-registration .login-visual-shell { padding:10px 4px !important; }
#universalModal.auth-modal.is-raid-registration .warlock-img-shell {
  width:100% !important;
  max-width:270px !important;
  max-height:min(520px,calc(100% - 42px)) !important;
}
#universalModal.auth-modal.is-raid-registration .modal-content { max-height:calc(100dvh - 16px); }
#universalModal.auth-modal.is-raid-registration .modal-body { overflow:hidden; }
.reg-raid-registration-shell {
  max-height:calc(100dvh - 84px);
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scrollbar-width:thin;
  scrollbar-color:rgba(93,194,235,.55) rgba(5,16,34,.42);
}
.reg-raid-registration-shell::-webkit-scrollbar { width:8px; }
.reg-raid-registration-shell::-webkit-scrollbar-thumb { border:2px solid #08152a; border-radius:9px; background:rgba(93,194,235,.55); }
.reg-raid-registration-head {
  position:sticky;
  top:0;
  z-index:4;
  display:grid;
  grid-template-columns:minmax(0,1fr) 250px;
  align-items:start;
  gap:18px;
  margin:0 -2px 16px;
  padding:2px 2px 14px;
  background:#08152a;
}
.reg-raid-registration-intro { min-width:0; }
.reg-raid-registration-header-side { display:grid; gap:7px; min-width:0; }
.reg-raid-registration-head-actions { justify-content:flex-end; }
.reg-raid-registration-summary {
  display:grid;
  grid-template-columns:1fr;
  gap:6px;
  margin:0;
  padding:9px 10px;
  border:1px solid rgba(74,198,157,.28);
  border-left:3px solid #48c69d;
  border-radius:7px;
  background:#0a2234;
}
.reg-raid-registration-summary>span { font-size:.56rem; }
.reg-raid-registration-summary strong { display:none; }
.reg-raid-registration-summary p {
  margin:0 !important;
  font-size:.61rem !important;
  line-height:1.3 !important;
}
.reg-raid-summary-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
}
.reg-raid-registration-summary .btn-primary,
.reg-raid-registration-summary .btn-outline {
  width:100%;
  min-height:30px;
  padding:5px 6px;
  font-size:.59rem;
  line-height:1.1;
  white-space:normal;
}
.reg-raid-skip-confirm { grid-column:1; }
.reg-raid-skip-confirm>div { width:100%; }
.reg-raidchar-slots {
  display:grid !important;
  grid-template-columns:1fr;
  gap:8px;
}
.reg-raid-slot-row {
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:8px;
}
.reg-raid-slot-row--main { min-height:68px; }
.reg-raid-slot-row--alternates { min-height:68px; }
.reg-raid-slot-row--alters { min-height:68px; }
.reg-raid-slot-row .reg-raid-dropzone,
.reg-raid-slot-row .reg-raid-dropzone:first-child,
.reg-raid-slot-row .reg-raid-dropzone-alters {
  flex:0 0 auto;
  grid-column:auto !important;
  width:max-content;
  min-width:210px;
  max-width:100%;
}
.reg-raid-slot-row--main .reg-raid-dropzone { min-width:260px; }
.reg-raid-slot-row--alters .reg-raid-dropzone { min-width:360px; }
.reg-raid-slot-row--alters .reg-raid-drop-empty { max-width:310px; }
.reg-raidchar-search {
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 10px;
  color:#9bb6c9;
  font-size:.65rem;
  font-weight:700;
}
.reg-raidchar-search span { white-space:nowrap; }
.reg-raidchar-search input {
  width:min(270px,100%);
  min-width:0;
  height:31px;
  padding:0 9px;
  border:1px solid rgba(118,177,211,.28);
  border-radius:6px;
  outline:0;
  background:#061426;
  color:#eaf5fc;
  font:inherit;
}
.reg-raidchar-search input:focus { border-color:#5ccdf4; box-shadow:0 0 0 2px rgba(92,205,244,.13); }
.reg-raidchar-grid { gap:8px; }
.reg-raidchar-card { flex:0 0 200px; width:200px !important; }
@media(max-width:820px) {
  .reg-raid-registration-shell { max-height:calc(100dvh - 58px); }
  .reg-raid-registration-head { grid-template-columns:1fr; }
  .reg-raid-registration-header-side { grid-template-columns:minmax(0,1fr) 250px; align-items:start; }
  .reg-raid-registration-head-actions { justify-content:flex-start; }
}
@media(max-width:590px) {
  .reg-raid-registration-shell { padding:16px 14px 24px; }
  .reg-raid-registration-head { position:static; margin-bottom:14px; }
  .reg-raid-registration-header-side { grid-template-columns:1fr; }
  .reg-raid-slot-row .reg-raid-dropzone,
  .reg-raid-slot-row .reg-raid-dropzone:first-child,
  .reg-raid-slot-row .reg-raid-dropzone-alters { width:100%; min-width:0; }
  .reg-raidchar-search { align-items:stretch; flex-direction:column; }
  .reg-raidchar-search input { width:100%; }
  .reg-raidchar-card { flex-basis:100%; width:100% !important; }
}

.reg-raid-registration-head {
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.reg-raid-registration-intro { flex:1 1 auto; min-width:0; }
.reg-raid-registration-header-side {
  display:flex !important;
  flex:0 0 auto;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  max-width:310px;
}
.reg-raid-registration-head-actions,
.reg-raid-registration-summary,
.reg-raid-summary-actions { display:contents; }
.reg-raid-registration-header-side .btn-primary,
.reg-raid-registration-header-side .btn-outline {
  width:auto;
  min-width:0;
  min-height:31px;
  margin:0;
  padding:5px 8px;
  border-radius:6px;
  font-size:.63rem;
  white-space:nowrap;
}
.reg-raid-registration-header-side .reg-raid-registration-count { margin:0; }
.reg-raid-registration-header-side .reg-raid-skip-confirm {
  flex:1 0 100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 0 0;
  border-top:1px solid rgba(125,166,198,.15);
}
.reg-raid-registration-header-side .reg-raid-skip-confirm[hidden] { display:none !important; }
.reg-raid-registration-header-side .reg-raid-skip-confirm p { margin:0 !important; font-size:.61rem !important; line-height:1.28 !important; }
.reg-raid-registration-header-side .reg-raid-skip-confirm>div { display:flex; gap:5px; }
.reg-raid-registration-shell { max-height:none; overflow:visible; }
.reg-raidchar-grid {
  max-height:min(35dvh,310px);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:0 7px 3px 0;
  scrollbar-width:thin;
  scrollbar-color:rgba(93,194,235,.55) rgba(5,16,34,.42);
}
.reg-raidchar-grid::-webkit-scrollbar { width:7px; }
.reg-raidchar-grid::-webkit-scrollbar-thumb { border-radius:9px; background:rgba(93,194,235,.55); }
.reg-raid-role-select { display:none !important; }
.reg-raid-role-picker {
  display:flex;
  align-items:center;
  gap:4px;
  margin-top:5px;
}
.reg-raid-role-choice {
  display:inline-flex;
  align-items:center;
  gap:3px;
  min-width:0;
  height:25px;
  padding:3px 5px;
  border:1px solid rgba(126,165,193,.32);
  border-radius:4px;
  background:#061426;
  color:#aec6d5;
  font:700 .53rem/1 system-ui,sans-serif;
  cursor:pointer;
}
.reg-raid-role-choice img { width:15px; height:15px; object-fit:contain; }
.reg-raid-role-choice:hover:not(:disabled) { border-color:#71d5f9; color:#edf9ff; }
.reg-raid-role-choice.is-selected { border-color:#5ed5a3; background:rgba(26,122,82,.28); color:#e7fff4; }
.reg-raid-role-choice.is-unavailable,
.reg-raid-role-choice:disabled { cursor:not-allowed; opacity:.3; filter:grayscale(1); }
@media(max-width:760px) {
  .reg-raid-registration-head { align-items:flex-start; flex-wrap:wrap; }
  .reg-raid-registration-header-side { flex:1 1 100%; max-width:none; justify-content:flex-start; }
  .reg-raidchar-grid { max-height:min(40dvh,330px); }
}
@media(max-width:460px) {
  .reg-raid-registration-header-side { gap:5px; }
  .reg-raid-registration-header-side .btn-primary,
  .reg-raid-registration-header-side .btn-outline { font-size:.59rem; padding:5px 6px; }
  .reg-raid-registration-header-side .reg-raid-skip-confirm { align-items:stretch; flex-direction:column; }
}

.reg-raid-drop-character>span { display:grid; gap:1px; }
.reg-raid-character-realm,
.reg-raidchar-card-realm {
  display:block;
  overflow:hidden;
  color:#7fa2b8;
  font-size:.52rem;
  font-style:normal;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.reg-raid-role-picker {
  width:100%;
  min-height:25px;
  align-self:end;
}
.reg-raid-dropzone.is-filled .reg-raid-role-picker { display:flex; }
.reg-raidchar-card-copy { display:grid; gap:1px; }
.reg-raidchar-card-meta { margin-top:0; }

.reg-raidchar-toolbar {
  justify-content:space-between;
  align-items:center;
}
.reg-raidchar-toolbar #regRaidSelectedCount {
  flex:0 0 auto;
  margin:0;
  white-space:nowrap;
}
#alertModal .reg-raid-skip-submodal {
  display:grid;
  gap:9px;
  padding:18px;
  color:#c6d8e7;
}
#alertModal .reg-raid-skip-submodal p {
  margin:0;
  color:#f5fbff;
  font-size:1.05rem;
  font-weight:800;
}
#alertModal .reg-raid-skip-submodal>span { font-size:.8rem; line-height:1.45; }
#alertModal .reg-raid-skip-submodal>div {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:4px;
}
#alertModal .reg-raid-skip-submodal .btn-primary,
#alertModal .reg-raid-skip-submodal .btn-outline {
  min-height:38px;
  margin:0;
  padding:7px 9px;
  font-size:.72rem;
}
@media(max-width:460px) {
  .reg-raidchar-toolbar { align-items:flex-start; flex-direction:column; }
  #alertModal .reg-raid-skip-submodal>div { grid-template-columns:1fr; }
}

.reg-raid-registration-header-side {
  flex-wrap:nowrap !important;
  max-width:none !important;
  white-space:nowrap;
}
.reg-raid-registration-header-side .btn-primary,
.reg-raid-registration-header-side .btn-outline { white-space:nowrap; }
.reg-raid-slot-row--roles { justify-content:flex-start; gap:7px; }
.reg-raid-slot-row--roles .reg-raid-dropzone,
.reg-raid-slot-row--roles .reg-raid-dropzone:first-child {
  flex:0 1 205px;
  width:205px;
}
.reg-raid-drop-character>span { min-width:0; }
.reg-raid-drop-character .reg-raid-role-picker {
  display:flex;
  width:100%;
  min-width:0;
  margin-top:5px;
}
.reg-raid-drop-character .reg-raid-character-realm { display:block; }
.reg-raidchar-assignment { display:none !important; }
@media(max-width:760px) {
  
  .reg-raid-registration-header-side { flex-wrap:wrap !important; flex:1 1 100%; justify-content:flex-start; overflow-x:visible; }
}

.reg-raid-dropzone.is-filled { overflow:hidden; }
.reg-raid-drop-content {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:5px;
  width:100%;
  min-width:0;
}
.reg-raid-drop-content .reg-raid-drop-character { width:100%; }
.reg-raid-drop-content .reg-raid-role-picker {
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.reg-raid-drop-content .reg-raid-role-choice { flex:0 1 auto; }
.reg-raid-slot-row--roles .reg-raid-dropzone,
.reg-raid-slot-row--roles .reg-raid-dropzone:first-child { min-height:122px; }

.reg-raid-dropzone[role="button"] { outline:none; }
.reg-raid-dropzone[role="button"]:focus-visible { box-shadow:0 0 0 2px rgba(110,212,255,.42); }
.reg-raid-slot-row--roles .reg-raid-dropzone,
.reg-raid-slot-row--roles .reg-raid-dropzone:first-child { min-height:98px; }
.reg-raid-drop-content { gap:3px; }
.reg-raid-drop-content .reg-raid-role-picker { margin-top:2px; }
.reg-raid-drop-content .reg-raid-role-choice { height:22px; padding:2px 4px; font-size:.5rem; }
.reg-raid-drop-content .reg-raid-role-choice img { width:13px; height:13px; }

#btnSkipRaidReg[hidden] { display:none !important; }
}

/* ===== css/design-system.css ===== */
@layer vsg-universal {
  .universal-top-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: clamp(14px, 1.8vw, 22px) clamp(18px, 2.2vw, 28px) !important;
    position: relative !important;
    overflow: visible !important;
  }
  .universal-top-container::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 4px !important;
    background: #fea0c5 !important;
    border-top-left-radius: inherit !important;
    border-bottom-left-radius: inherit !important;
    z-index: 2 !important;
  }
  .universal-top-header,
  .universal-top-container .universal-top-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
    min-height: 44px !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  .gd-heading-copy,
  .at-heading-copy,
  .pg-page-identity,
  .rules-identity,
  .store-heading,
  .nw-heading-block,
  .mg-heading-copy,
  .mn-heading-copy,
  .account-heading-copy,
  .cons-heading-copy,
  .control-hero-copy,
  .calc-heading-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    text-align: left !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
  }
  .universal-top-title,
  .nw-reader-title,
  .mg-main-title,
  .wt-main-title,
  .pt-main-title,
  .content-container .universal-top-title,
  .at-heading-copy .universal-top-title,
  .gd-heading-copy .universal-top-title,
  .pg-page-identity .universal-top-title,
  .rules-identity .universal-top-title,
  .mg-top-container .universal-top-title,
  .mn-top-container .universal-top-title,
  .control-hero-copy .universal-top-title,
  .calc-heading-copy .universal-top-title {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
    font-family: var(--vsg-font-family) !important;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem) !important;
    font-weight: 850 !important;
    letter-spacing: -0.035em !important;
    color: #f2f8ff !important;
    text-transform: none !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
    vertical-align: middle !important;
    text-align: left !important;
  }
  .section-title-icon,
  .universal-top-title img,
  .ap-page-icon,
  .at-title-logo,
  .gd-title-logo,
  .wt-title-logo,
  .ut-logo,
  .rules-logo {
    display: inline-block !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    flex: 0 0 32px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    align-self: center !important;
    margin: 0 !important;
    border-radius: 8px !important;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4)) !important;
  }
  .universal-top-subtitle,
  .gd-heading-copy p,
  .at-heading-copy p,
  .rules-identity p,
  .store-heading p,
  .nw-heading-block p,
  .mg-heading-copy p,
  .mn-heading-copy p,
  .control-hero-copy p {
    display: block !important;
    margin: 2px 0 0 0 !important;
    padding: 0 !important;
    align-self: flex-start !important;
    text-align: left !important;
    font-family: var(--vsg-font-family) !important;
    color: #8ea0ba !important;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
  }
  .section-kicker,
  .gd-kicker,
  .at-kicker,
  .rules-kicker,
  .store-kicker,
  .pg-kicker,
  .universal-kicker {
    display: inline-block !important;
    align-self: flex-start !important;
    text-align: left !important;
    margin: 0 0 2px 0 !important;
    padding: 0 !important;
    font-family: var(--vsg-font-family) !important;
    color: var(--vsg-cyan) !important;
    font-size: 0.64rem !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
  }
  button,
  .btn-primary,
  .btn-outline,
  .btn-secondary,
  .universal-tab-btn,
  .acc-header-logout-btn,
  #btnCreateEvent,
  #btnNewSeason,
  #btnNewNews,
  #btnEventManager {
    font-family: var(--vsg-font-family) !important;
    box-sizing: border-box !important;
  }
  .tab-logo-icon,
  button img.tab-logo-icon,
  .universal-tab-btn img.tab-logo-icon,
  .btn-primary img.tab-logo-icon,
  .btn-outline img.tab-logo-icon {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    flex: 0 0 16px !important;
    vertical-align: middle !important;
    object-fit: contain !important;
    margin-right: 6px !important;
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5)) !important;
  }
  .btn-primary,
  #btnCreateEvent,
  #btnNewSeason,
  #btnNewNews {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 38px !important;
    padding: 8px 16px !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #0284c7, #1d4ed8) !important;
    color: var(--text-primary) !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.3) !important;
    cursor: pointer !important;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .btn-primary:hover,
  #btnCreateEvent:hover,
  #btnNewSeason:hover,
  #btnNewNews:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.15) !important;
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.45) !important;
  }
  .btn-outline,
  .btn-secondary,
  .acc-header-back-btn,
  #btnEventManager {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 38px !important;
    padding: 8px 16px !important;
    border: 1px solid rgba(125, 168, 218, 0.25) !important;
    border-radius: 9px !important;
    background: rgba(10, 20, 43, 0.75) !important;
    color: #bdd0e7 !important;
    font-size: 0.8rem !important;
    font-weight: 760 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease !important;
  }
  .btn-outline:hover,
  .btn-secondary:hover,
  #btnEventManager:hover {
    border-color: rgba(91, 206, 255, 0.5) !important;
    background: rgba(20, 48, 82, 0.85) !important;
    color: #eaf8ff !important;
    transform: translateY(-1px) !important;
  }
  .universal-tabs-wrapper {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    overflow-x: auto !important;
  }
  .universal-tabs,
  .account-tabs {
    display: inline-flex !important;
    align-items: center !important;
    flex-flow: row nowrap !important;
    gap: 6px !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 12px 0 0 !important;
    padding: 5px 8px !important;
    border: 1px solid rgba(125, 168, 218, 0.16) !important;
    border-radius: 12px !important;
    background: rgba(2, 7, 21, 0.55) !important;
    overflow-x: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(125, 211, 252, .48) transparent !important;
    scrollbar-gutter: stable;
  }
  .universal-tabs::-webkit-scrollbar,
  .account-tabs::-webkit-scrollbar { height: 4px; }
  .universal-tabs::-webkit-scrollbar-thumb,
  .account-tabs::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(125, 211, 252, .48); }
  .universal-top-header > .universal-tabs {
    flex: 0 1 auto !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .universal-tab-btn,
  .account-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 8px 16px !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    background: transparent !important;
    color: #8ea0ba !important;
    font-family: var(--vsg-font-family) !important;
    font-size: 0.78rem !important;
    font-weight: 780 !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
  }
  .universal-tab-btn:hover,
  .account-tab:hover {
    color: #e9f8ff !important;
    background: rgba(56, 189, 248, 0.1) !important;
  }
  .universal-tab-btn.active,
  .universal-tab-btn.is-active,
  .account-tab.is-active,
  .account-tab.active {
    border-color: rgba(125, 211, 252, 0.34) !important;
    background: linear-gradient(120deg, rgba(14, 165, 233, 0.28), rgba(59, 130, 246, 0.18)) !important;
    color: #eaf8ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 16px rgba(14, 116, 144, 0.18) !important;
  }
  .mg-card, .mn-card, .dc-bento-panel, .cons-card, .pt-leaderboard {
    border: var(--vsg-glass-border) !important;
    border-radius: var(--vsg-radius) !important;
    background: var(--vsg-glass-bg) !important;
    backdrop-filter: var(--vsg-glass-blur) !important;
    -webkit-backdrop-filter: var(--vsg-glass-blur) !important;
    box-shadow: var(--vsg-shadow) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
  }
  .mg-card:hover, .mn-card:hover, .dc-bento-panel:hover, .cons-card:hover {
    border-color: rgba(78, 210, 255, 0.35) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px var(--vsg-primary-glow) !important;
    transform: translateY(-3px) !important;
  }
  .roster-card-item, .pt-leaderboard-row, .wcl-report-row {
    content-visibility: auto;
    contain-intrinsic-size: 0 72px;
  }
  @media (min-width: 769px) {
    .universal-top-container.cal-hero {
      display: grid !important;
      grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr) !important;
      grid-template-areas: "identity month actions" !important;
      align-items: center !important;
      justify-content: stretch !important;
      gap: clamp(18px, 2.4vw, 38px) !important;
      min-height: 104px !important;
      height: auto !important;
      margin-bottom: 20px !important;
      padding: 18px clamp(22px, 2.4vw, 34px) !important;
    }
    .cal-hero .cal-header-top {
      grid-area: identity !important;
      display: flex !important;
      width: auto !important;
      min-width: 0 !important;
      align-items: center !important;
      gap: 10px !important;
    }
    .cal-hero .cal-month-selector {
      grid-area: month !important;
      display: grid !important;
      grid-template-columns: 38px max-content 38px !important;
      align-items: center !important;
      justify-items: center !important;
      width: auto !important;
      min-width: 260px !important;
      padding: 5px !important;
      border: 1px solid rgba(125, 211, 252, .18) !important;
      border-radius: 12px !important;
      background: rgba(2, 8, 23, .38) !important;
    }
    .cal-hero .cal-month-title {
      width: auto !important;
      min-width: 160px !important;
      margin: 0 !important;
      padding: 0 12px !important;
      text-align: center !important;
      white-space: nowrap !important;
    }
    .cal-hero .cal-nav-btn {
      width: 34px !important;
      min-width: 34px !important;
      height: 34px !important;
      min-height: 34px !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    .cal-hero .cal-actions-row {
      grid-area: actions !important;
      display: flex !important;
      justify-content: flex-end !important;
      width: auto !important;
    }
    .cal-hero .cal-main-buttons {
      display: flex !important;
      align-items: center !important;
      justify-content: flex-end !important;
      gap: 9px !important;
      width: auto !important;
    }
    .cal-hero #btnCreateEvent,
    .cal-hero #btnEventManager {
      width: auto !important;
      min-width: 126px !important;
      height: 38px !important;
      min-height: 38px !important;
      margin: 0 !important;
      padding: 0 14px !important;
      white-space: nowrap !important;
    }
    .cal-hero .cal-view-toggle { display: none !important; }
  }
@media (max-width: 820px) {
    .universal-top-container.cal-hero {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      grid-template-areas: "identity" "month" "actions" !important;
      align-items: stretch !important;
      justify-content: stretch !important;
      gap: 9px !important;
      min-height: 0 !important;
      height: auto !important;
      margin-bottom: 14px !important;
      padding: 12px !important;
      overflow: visible !important;
    }
    .cal-hero .cal-header-top {
      grid-area: identity !important;
      display: flex !important;
      width: 100% !important;
      min-width: 0 !important;
      align-items: center !important;
      gap: 9px !important;
    }
    .cal-hero .cal-hero-title {
      min-width: 0 !important;
      font-size: clamp(1rem, 4.3vw, 1.14rem) !important;
      line-height: 1.15 !important;
    }
    .cal-hero .cal-month-selector {
      grid-area: month !important;
      display: grid !important;
      grid-template-columns: 36px minmax(0, 1fr) 36px !important;
      align-items: center !important;
      width: 100% !important;
      min-width: 0 !important;
      box-sizing: border-box !important;
      padding: 4px !important;
      border-radius: 10px !important;
    }
    .cal-hero .cal-nav-btn {
      width: 34px !important;
      min-width: 34px !important;
      height: 34px !important;
      min-height: 34px !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    .cal-hero .cal-month-title {
      width: auto !important;
      min-width: 0 !important;
      margin: 0 !important;
      padding: 0 6px !important;
      overflow: hidden !important;
      text-align: center !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      font-size: .88rem !important;
    }
    .cal-hero .cal-actions-row {
      grid-area: actions !important;
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 7px !important;
      width: 100% !important;
    }
    .cal-hero .cal-main-buttons {
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 7px !important;
      width: 100% !important;
    }
    .cal-hero #btnCreateEvent,
    .cal-hero #btnEventManager {
      width: 100% !important;
      min-width: 0 !important;
      height: 35px !important;
      min-height: 35px !important;
      margin: 0 !important;
      padding: 0 7px !important;
      font-size: .75rem !important;
      white-space: nowrap !important;
    }
    .cal-hero .cal-view-toggle {
      display: flex !important;
      width: 100% !important;
      margin: 0 !important;
    }
    .cal-hero .cal-view-btn {
      min-width: 0 !important;
      padding: 6px 8px !important;
      font-size: .72rem !important;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .universal-top-container::after {
      animation: none !important;
    }
    .mg-card, .mn-card, .dc-bento-panel, .cons-card, .btn-primary, .btn-outline, .universal-tab-btn {
      transition: none !important;
      transform: none !important;
    }
  }
  .vsg-skeleton-shimmer {
    position: relative !important;
    overflow: hidden !important;
    background: var(--vsg-skeleton-bg, rgba(255, 255, 255, 0.05)) !important;
    border-radius: var(--radius-md, 12px) !important;
  }
  .vsg-skeleton-shimmer::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    transform: translateX(-100%) !important;
    background: var(--vsg-skeleton-shimmer, linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 50%, transparent 100%)) !important;
    animation: vsgSkeletonWave 1.6s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
  }
  @keyframes vsgSkeletonWave {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }
  .vsg-tilt-card {
    transition: transform 0.15s ease-out, box-shadow 0.25s ease-out !important;
    transform-style: preserve-3d !important;
    will-change: transform !important;
    isolation: isolate !important;
  }
  .vsg-glass-card {
    background: var(--vsg-glass-bg, linear-gradient(145deg, rgba(13, 24, 49, 0.78), rgba(5, 11, 27, 0.88))) !important;
    -webkit-backdrop-filter: var(--vsg-glass-blur, blur(14px) saturate(180%)) !important;
    backdrop-filter: var(--vsg-glass-blur, blur(14px) saturate(180%)) !important;
    border: var(--vsg-glass-border, 1px solid rgba(125, 168, 218, 0.18)) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35) !important;
    isolation: isolate !important;
  }
  .vsg-neon-border {
    position: relative !important;
    border: 1px solid rgba(56, 189, 248, 0.32) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.18), inset 0 0 12px rgba(56, 189, 248, 0.08) !important;
  }

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-family-base);
    font-size: var(--text-base);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
    max-width: 68ch;
    line-height: 1.6;
}

.btn-primary, .btn-secondary, .btn-outline, .btn-danger, button[type="button"], button[type="submit"] {
    max-width: max-content;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-weight: 750;
    font-size: var(--text-sm);
}

.form-control, input[type="text"], input[type="search"], input[type="url"], input[type="email"], input[type="password"], select, textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: var(--text-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
    outline: none;
}

.btn-danger, .mv-act-delete, .nw-author-news-delete {
    border-color: var(--border-danger) !important;
    color: #fca5a5 !important;
}
.btn-danger:hover, .mv-act-delete:hover, .nw-author-news-delete:hover {
    background: rgba(239, 68, 68, 0.16) !important;
    border-color: #ef4444 !important;
    color: var(--text-primary) !important;
}

.vsg-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 37%, rgba(255,255,255,0.03) 63%);
    background-size: 400% 100%;
    animation: vsgSkeletonPulse 1.4s ease infinite;
    border-radius: var(--radius-sm);
}
@keyframes vsgSkeletonPulse {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.vsg-empty-state, .vsg-state-box, .mv-preview-empty, .nw-world-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 36px 20px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% 30%, rgba(56, 189, 248, 0.05), transparent 70%), rgba(10, 18, 34, 0.4);
    border: 1px dashed var(--border-subtle);
    gap: 10px;
}
.vsg-empty-state .vsg-state-icon {
    font-size: 2.2rem;
    opacity: 0.85;
}
.vsg-empty-state strong {
    font-size: var(--text-lg);
    color: var(--text-main);
    font-weight: 800;
}
.vsg-empty-state span {
    font-size: var(--text-sm);
    color: var(--text-sub);
    max-width: 44ch;
}

[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #090e1a;
    border: 1px solid rgba(125, 211, 252, 0.2);
    color: #f1f5f9;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 99999;
}
[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.vsg-bottom-nav, .mobile-bottom-nav {
    padding-bottom: max(10px, env(safe-area-inset-bottom, 12px)) !important;
}

@media (max-width: 640px) {
    .mv-overlay .mv-shell,
    #universalModal .modal-content {
        width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
    }
}
}

/* ===== css/content-rail.css ===== */


#topsideContainer,
.content-wrapper {
    width: var(--vsg-content-rail-width) !important;
    max-width: var(--vsg-banner-max-width, 1400px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.content-wrapper > .nw-wrapper,
.content-wrapper > .rd-wrapper,
.content-wrapper > .rd-details-wrapper,
.content-wrapper > .roster-wrapper,
.content-wrapper > .mg-wrapper,
.content-wrapper > .gd-wrapper,
.content-wrapper > .cal-wrapper,
.content-wrapper > .wt-wrapper,
.content-wrapper > .cons-wrapper,
.content-wrapper > .calc-wrapper,
.content-wrapper > .training-wrapper {
    width: var(--vsg-content-rail-width) !important;
    max-width: var(--vsg-banner-max-width, 1400px) !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.content-wrapper > #raidDetailsView.rd-details-wrapper {
    width: var(--vsg-content-rail-width) !important;
    max-width: var(--vsg-banner-max-width, 1400px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.cal-wrapper > .cal-container,
.cal-wrapper > .cal-agenda-list,
.wt-wrapper > #storeGridView,
.wt-wrapper > #storePurchaseSection,
.wt-wrapper > #storePurchaseSection > .card,
.mg-wrapper > .mg-view-area,
.gd-wrapper > .gd-view-area,
.cons-wrapper > #consGrid,
.rd-details-wrapper > .wcl-view-content,
.nw-wrapper > .nw-hero-grid,
.nw-wrapper > .nw-list-layout {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.content-container {
    min-width: 0;
    container-type: inline-size;
    container-name: vsg-content;
}

.content-wrapper,
.content-wrapper > *,
.universal-top-container,
.universal-top-header,
.universal-top-header > * {
    min-width: 0;
    max-width: 100%;
}

#topsideContainer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(12px, 1.5vw, 20px);
}

#topsideContainer > #guildProgressionBanner,
#topsideContainer > #thisWeekWowBanner {
    min-width: 0;
    max-width: 100%;
    min-height: var(--vsg-banner-height, 144px);
    height: var(--vsg-banner-height, 144px);
}

#guildProgressionBanner .prog-banner-header {
    padding: 6px 8px;
    gap: 4px;
}

#guildProgressionBanner .prog-boss-panel {
    padding: 7px 10px;
}

@container vsg-content (max-width: 1040px) {
    #topsideContainer {
        grid-template-columns: minmax(0, 1fr);
    }

    #topsideContainer > #guildProgressionBanner,
    #topsideContainer > #thisWeekWowBanner {
        min-height: var(--vsg-banner-height, 144px);
        height: var(--vsg-banner-height, 144px);
    }

}

@container vsg-content (max-width: 760px) {
    #guildProgressionBanner .prog-header-top {
        align-items: center;
        flex-wrap: nowrap;
    }

    #guildProgressionBanner .prog-stats-row {
        width: auto;
        flex: 0 0 auto;
        gap: 4px;
    }

    #guildProgressionBanner .prog-stat-badge {
        flex: 0 0 auto;
        min-width: 40px;
    }

    #guildProgressionBanner .prog-next-box {
        display: none;
    }
}

@container vsg-content (max-width: 520px) {
    #topsideContainer {
        gap: 12px;
    }

    #guildProgressionBanner .prog-banner-header {
        padding: 6px 7px;
        gap: 4px;
    }

    #guildProgressionBanner .prog-header-top-left {
        gap: 8px;
    }

    #guildProgressionBanner .prog-season-logo {
        width: 19px;
        height: 19px;
    }

    #guildProgressionBanner .prog-season-name {
        display: none;
    }

    #guildProgressionBanner .prog-raid-name {
        font-size: clamp(.85rem, 4.4cqw, 1rem);
    }

    #guildProgressionBanner .prog-stat-badge {
        min-width: 34px;
        padding: 4px 3px;
        border-radius: 8px;
    }

    #guildProgressionBanner .prog-stat-badge small {
        display: none;
    }

    #guildProgressionBanner .prog-boss-panel {
        gap: 6px;
        padding: 5px 7px;
    }

    #guildProgressionBanner .prog-boss-icon {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
    }
}

/* ===== css/components.css ===== */
@layer vsg-universal {

.vsg-empty-state, .vsg-error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-8) var(--space-4);
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
}
.vsg-empty-state .vsg-state-icon, .vsg-error-state .vsg-state-icon { font-size: 2rem; line-height: 1; opacity: .6; }
.vsg-empty-state strong, .vsg-error-state strong { color: var(--text-primary); font-size: var(--fs-md); }
.vsg-empty-state span:not(.vsg-state-icon), .vsg-error-state span:not(.vsg-state-icon) { font-size: var(--fs-sm); max-width: 380px; }
.vsg-error-state { border-color: rgba(239, 68, 68, .35); border-style: solid; background: rgba(239, 68, 68, .06); }
.vsg-error-state .vsg-state-icon { color: #f87171; opacity: 1; }
.vsg-error-state strong { color: #fca5a5; }
.vsg-error-state .vsg-state-retry { margin-top: var(--space-2); }

.vsg-float-gain {
    position: fixed;
    z-index: 9999;
    transform: translate(-50%, 0);
    color: #38bdf8;
    font-size: var(--fs-md);
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    pointer-events: none;
    animation: vsgFloatGainRise 1.1s ease-out forwards;
}
@keyframes vsgFloatGainRise {
    0% { opacity: 0; transform: translate(-50%, 4px) scale(.85); }
    18% { opacity: 1; transform: translate(-50%, -6px) scale(1.08); }
    70% { opacity: 1; transform: translate(-50%, -30px) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -46px) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .vsg-float-gain { animation: none; opacity: 0; }
}

.desktop-only-widget { margin-top: 20px; }

.msn-notification { position: fixed; bottom: -100px; right: 20px; width: 300px; background: linear-gradient(180deg, #e2eeff 0%, #c4d8fc 100%); border: 1px solid #739ce5; border-radius: 8px 8px 0 0; box-shadow: 2px 2px 10px rgba(0,0,0,0.5); z-index: 9999; transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-family: 'Tahoma', sans-serif; color: #000; cursor: pointer; display: flex; flex-direction: column; overflow: hidden; }
.msn-notification.show { bottom: 0; }
.msn-header { background: linear-gradient(90deg, #4b80e8 0%, #76a0fb 100%); color: #fff; font-size: 0.8rem; font-weight: bold; padding: 4px 8px; display: flex; justify-content: space-between; }
.msn-body { padding: 10px; display: flex; align-items: center; gap: 10px; }
.msn-icon { width: 40px; height: 40px; }
.msn-text { font-size: 0.85rem; line-height: 1.2; text-align: left; }
.msn-text strong { color: #003399; }
.msn-close { background: transparent; border: none; color: #fff; cursor: pointer; font-weight: bold; font-size: 1.2rem; line-height: 1; padding: 0; }

@media (max-width: 820px) {
    .desktop-only-widget { display: none; }
}

.vsg-birthday-modal {
    position: fixed;
    z-index: 25050;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 32px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}
.vsg-birthday-modal.is-visible { opacity: 1; pointer-events: auto; }
.vsg-birthday-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .78);
    
}
.vsg-birthday-modal__panel {
    position: relative;
    width: min(100%, 470px);
    padding: clamp(24px, 4vw, 38px);
    overflow: hidden;
    color: #edf7ff;
    border: 1px solid rgba(74, 214, 255, .38);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 6%, rgba(196, 102, 255, .22), transparent 38%),
        radial-gradient(circle at 0% 100%, rgba(34, 211, 238, .16), transparent 40%),
        linear-gradient(145deg, #101d3a 0%, #0a1127 56%, #11102b 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255,255,255,.09);
    transform: translateY(14px) scale(.985);
    transition: transform .22s cubic-bezier(.22, .8, .25, 1);
}
.vsg-birthday-modal.is-visible .vsg-birthday-modal__panel { transform: translateY(0) scale(1); }
.vsg-birthday-modal__panel::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    right: -72px;
    bottom: -96px;
    border: 1px solid rgba(103, 232, 249, .22);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(103, 232, 249, .035), 0 0 0 50px rgba(196, 102, 255, .025);
    pointer-events: none;
}
.vsg-birthday-modal__close {
    position: absolute;
    z-index: 1;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #dcecff;
    border: 1px solid rgba(163, 205, 255, .28);
    border-radius: 10px;
    background: rgba(6, 16, 41, .55);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.vsg-birthday-modal__brand { display: inline-flex; align-items: center; gap: 9px; color: #8bdcff; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.vsg-birthday-modal__brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px rgba(81, 215, 255, .15); }
.vsg-birthday-modal__eyebrow { margin: 24px 0 7px; color: #f7a7d8; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.vsg-birthday-modal h2 { max-width: 340px; margin: 0; color: #fff; font-size: clamp(25px, 5vw, 34px); line-height: 1.05; letter-spacing: -.04em; }
.vsg-birthday-modal__lead { max-width: 390px; margin: 13px 0 17px; color: #b9c8df; font-size: 14px; line-height: 1.55; }
.vsg-birthday-modal__privacy { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 18px; padding: 11px 12px; color: #a9ebd2; border: 1px solid rgba(52, 211, 153, .22); border-radius: 12px; background: rgba(6, 78, 59, .18); font-size: 12px; line-height: 1.35; }
.vsg-birthday-modal__privacy span { display: grid; place-items: center; flex: 0 0 auto; width: 16px; height: 16px; color: #052e24; border-radius: 50%; background: #61e9b4; font-size: 11px; font-weight: 900; }
.vsg-birthday-modal__field { position: relative; z-index: 1; display: grid; gap: 7px; max-width: 280px; color: #cae2f8; font-size: 12px; font-weight: 800; }
.vsg-birthday-modal__field input { min-height: 44px; padding: 0 12px; color-scheme: dark; color: #fff; border: 1px solid rgba(121, 190, 255, .32); border-radius: 11px; outline: none; background: rgba(2, 9, 28, .68); font: inherit; }
.vsg-birthday-modal__field input:focus { border-color: #42c8ff; box-shadow: 0 0 0 3px rgba(66, 200, 255, .15); }
.vsg-birthday-modal__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.vsg-birthday-modal__later, .vsg-birthday-modal__save { min-height: 42px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 850; cursor: pointer; }
.vsg-birthday-modal__later { color: #b8cae3; border: 1px solid rgba(166, 199, 235, .22); background: transparent; }
.vsg-birthday-modal__save { color: #fff; border: 1px solid rgba(104, 230, 255, .48); background: linear-gradient(135deg, #0ea5e9, #2563eb); box-shadow: 0 9px 22px rgba(14, 165, 233, .24); }
.vsg-birthday-modal__save:disabled { cursor: wait; opacity: .65; }
@media (max-width: 480px) {
    .vsg-birthday-modal { align-items: end; padding: 12px; }
    .vsg-birthday-modal__panel { border-radius: 21px; }
    .vsg-birthday-modal__actions { justify-content: space-between; }
}

.vsg-menu { position: relative; display: none; }

.vsg-menu.vsg-tabs-overflow { display: block; margin-top: 8px; }
.vsg-menu.vsg-tabs-overflow .vsg-menu-trigger { width: auto; min-width: 220px; max-width: 320px; }
@media (max-width: 820px) {
    .vsg-menu.vsg-tabs-overflow .vsg-menu-trigger { width: 100%; max-width: none; }
}

.vsg-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: rgba(18, 20, 28, .65);
    color: #f1f5f9;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.vsg-menu-trigger:hover { border-color: rgba(56, 189, 248, .35); }
.vsg-menu-trigger-logo { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; object-fit: cover; }
.vsg-menu-trigger-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsg-menu-caret { flex: 0 0 auto; font-size: .65rem; color: #64748b; transition: transform .15s ease; }
.vsg-menu-trigger[aria-expanded="true"] .vsg-menu-caret { transform: rotate(180deg); }
.vsg-menu-list {
    position: absolute;
    z-index: 60;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 60vh;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: #0d1117;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
}

.vsg-menu-list.vsg-menu-list-portal {
    position: fixed;
    z-index: 9999;
    right: auto;
}

@keyframes vsgMenuSheetIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.vsg-menu-list.vsg-menu-sheet {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0;
    width: 100% !important;
    max-height: 72vh !important;
    border-radius: var(--radius-lg, 16px) var(--radius-lg, 16px) 0 0;
    padding-top: 14px;
    box-shadow: 0 -18px 44px rgba(0, 0, 0, .55);
    animation: vsgMenuSheetIn .22s cubic-bezier(.22, .8, .25, 1);
}
.vsg-menu-list.vsg-menu-sheet::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 36px;
    height: 4px;
    border-radius: var(--radius-pill, 999px);
    background: rgba(255, 255, 255, .22);
    transform: translateX(-50%);
}
.vsg-menu-list.vsg-menu-sheet .vsg-menu-option { min-height: 46px; }
.vsg-menu-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(2, 6, 20, .55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}
.vsg-menu-sheet-backdrop.is-visible { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
    .vsg-menu-list.vsg-menu-sheet { animation: none; }
}
.vsg-menu-option {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    font-size: .78rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}
.vsg-menu-option:hover { background: rgba(255, 255, 255, .06); }
.vsg-menu-option.active { background: rgba(56, 189, 248, .16); color: #38bdf8; }
.vsg-menu-option-logo { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; object-fit: cover; }
.vsg-menu-option.admin-only::after {
    content: "Admin";
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(248, 113, 113, .16);
    color: #fca5a5;
    font-size: .56rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.vsg-hero-header {
    padding: var(--space-5) var(--space-6);
    border-radius: var(--radius-lg);
}

#vsgTourOverlay {
    position: fixed;
    z-index: 20000;
    border-radius: 10px;
    border: 2px solid rgba(56, 189, 248, .75);
    box-shadow: 0 0 0 9999px rgba(2, 6, 20, .78), 0 0 24px rgba(56, 189, 248, .35);
    pointer-events: none;
    transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
.vsg-tour-card {
    position: fixed;
    z-index: 20001;
    width: 300px;
    max-width: calc(100vw - 28px);
    padding: var(--space-4);
    border: 1px solid rgba(56, 189, 248, .35);
    border-radius: var(--radius-md);
    background: #0d1117;
    box-shadow: var(--shadow-3);
    transition: top .25s ease, left .25s ease;
}
.vsg-tour-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.vsg-tour-step-count { color: #7dd3fc; font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.vsg-tour-skip { border: 1px solid rgba(148,163,184,.28); background: rgba(255,255,255,.04); color: var(--text-muted); font-size: var(--fs-xs); font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); cursor: pointer; text-decoration: none; transition: opacity .15s ease, transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.vsg-tour-skip:hover { border-color: rgba(148,163,184,.5); background: rgba(255,255,255,.09); color: var(--text-primary); }
.vsg-tour-title { display: block; margin-bottom: 4px; color: var(--text-primary); font-size: var(--fs-md); }
.vsg-tour-text { margin: 0 0 var(--space-3); color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.5; }
.vsg-tour-card-actions { display: flex; justify-content: flex-end; }
.vsg-tour-card-actions .vsg-tour-next { padding: 7px 16px; font-size: var(--fs-sm); }

.vsg-carousel { display: flex; flex-direction: column; gap: var(--space-4); width: min(100%, 680px); }
.vsg-carousel-progress { height: 4px; border-radius: var(--radius-pill); background: rgba(255,255,255,.08); overflow: hidden; }
.vsg-carousel-progress-fill { height: 100%; border-radius: var(--radius-pill); background: var(--primary-color); transition: width .3s ease, background .3s ease; }
.vsg-carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.vsg-carousel-track { display: flex; align-items: stretch; transition: transform .32s cubic-bezier(.22,.8,.25,1); }
.vsg-carousel-slide {
    position: relative;
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: var(--space-8) var(--space-5) var(--space-6);
    text-align: center;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: var(--radius-lg);
    
    background-image:
        radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--vsg-carousel-accent, #38bdf8) 10%, transparent) 0%, transparent 55%),
        linear-gradient(180deg, rgba(4,7,14,.5) 0%, rgba(4,7,14,.18) 30%, rgba(4,7,14,.2) 65%, rgba(4,7,14,.58) 100%),
        var(--vsg-carousel-slide-bg, none);
    background-size: auto, auto, contain;
    background-position: center, center, center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.vsg-carousel-slide::before {
    content: "";
    position: absolute;
    top: 0; left: 12%; right: 12%;
    height: 3px;
    border-radius: 0 0 var(--radius-pill) var(--radius-pill);
    background: var(--vsg-carousel-accent, #38bdf8);
    box-shadow: 0 0 16px 1px var(--vsg-carousel-accent, #38bdf8);
}
.vsg-carousel-slide-icon {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-3);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--vsg-carousel-accent, #38bdf8) 45%, #0d1117), #0d1117 78%);
    border: 1px solid color-mix(in srgb, var(--vsg-carousel-accent, #38bdf8) 55%, transparent);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--vsg-carousel-accent, #38bdf8) 30%, transparent);
}
.vsg-carousel-slide-icon span { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.vsg-carousel-slide-icon img { width: 66px; height: 66px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }

.vsg-carousel-slide-text {
    width: 100%;
    max-width: 100%;
    background: rgba(6,10,18,.58);
    
    padding: var(--space-4) var(--space-4);
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}
.vsg-carousel-kicker { display: block; color: var(--vsg-carousel-accent, var(--primary-color)); font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--space-2); }
.vsg-carousel-slide-title { margin: 0 0 var(--space-3); color: var(--text-primary); font-size: var(--fs-xl); text-shadow: 0 2px 10px rgba(0,0,0,.65), 0 1px 3px rgba(0,0,0,.55); text-wrap: balance; }
.vsg-carousel-slide-body { color: var(--text-muted); font-size: var(--fs-base); line-height: 1.6; text-align: left; width: 100%; max-width: 100%; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.vsg-carousel-slide-body p { margin: 0 0 var(--space-2); }
.vsg-carousel-slide-body p:last-child { margin-bottom: 0; }
.vsg-carousel-slide-body ul { margin: 0; padding-left: 1.15em; }
.vsg-carousel-slide-body li { margin-bottom: var(--space-1); }
.vsg-carousel-slide-body strong { color: var(--text-primary); }
.vsg-carousel-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.vsg-carousel-prev, .vsg-carousel-next {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(148,163,184,.3);
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform .15s ease;
}
.vsg-carousel-prev:hover, .vsg-carousel-next:hover { transform: translateY(-1px); }
.vsg-carousel-next { width: auto; min-width: 38px; padding: 0 16px; border: none; border-radius: var(--radius-pill); color: #04121f; font-weight: 800; font-size: var(--fs-sm); }
.vsg-carousel-prev:disabled { opacity: .3; cursor: default; }
.vsg-carousel-dots { display: flex; gap: 7px; }
.vsg-carousel-dot { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: rgba(148,163,184,.3); cursor: pointer; transition: opacity .2s ease, transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.vsg-carousel-dot.is-active { width: 22px; border-radius: 999px; }

.vsg-carousel-leaders-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); padding-top: 20px; }
.vsg-carousel-leader-render {
    position: relative;
    flex: 0 0 auto;
    width: 230px;
    height: 250px;
    display: none;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}
.vsg-carousel-leader-render::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 92%;
    height: 60%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--vsg-carousel-accent, #818cf8) 45%, transparent) 0%, transparent 72%);
    
    z-index: 0;
}

.vsg-carousel-leader-render img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; transform: scale(1.22); transform-origin: center bottom; filter: brightness(1.16) contrast(1.08) saturate(1.05) drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.vsg-carousel-leader-render.has-render { display: flex; }
.vsg-carousel-leader-render-left img { transform: scale(-1.22, 1.22); transform-origin: center bottom; }

.vsg-carousel-leader-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
.vsg-carousel-leader-caption { display: flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 12px 5px 5px; background: rgba(8,12,20,.55);  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--vsg-carousel-accent, var(--primary-color)); }
.vsg-carousel-leader-caption-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; overflow: hidden; }
.vsg-carousel-leader-caption-info strong { font-size: var(--fs-xs); color: var(--vsg-leader-color, var(--text-primary)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.vsg-carousel-leader-caption-info span { font-size: var(--fs-2xs); color: var(--text-muted); white-space: nowrap; }
.vsg-carousel-leaders { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; flex: 1 1 auto; align-self: center; }
.vsg-carousel-leader-card { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 108px; }
.vsg-carousel-leader-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--vsg-carousel-accent, var(--primary-color)); }
.vsg-carousel-leader-card strong { font-size: var(--fs-sm); text-align: center; color: var(--vsg-leader-color, var(--text-primary)); }
.vsg-carousel-leader-card span { font-size: var(--fs-2xs); color: var(--text-muted); }
@media (max-width: 620px) {
    .vsg-carousel-leader-render { width: 128px; height: 148px; }
    .vsg-carousel-leader-caption { padding: 4px 9px 4px 4px; gap: 5px; }
    .vsg-carousel-leader-caption img { width: 26px; height: 26px; }
    .vsg-carousel-leader-caption-info strong { font-size: .68rem; max-width: 90px; }
    .vsg-carousel-leader-caption-info span { font-size: .58rem; }
}

.vsg-carousel-rank-ladder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
.vsg-carousel-rank-row { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); font-size: var(--fs-xs); min-width: 0; overflow: hidden; }
.vsg-carousel-rank-row img { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.vsg-carousel-rank-row span:first-of-type { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vsg-carousel-rank-row span:last-child { flex: 0 0 auto; color: var(--vsg-carousel-accent, #7dd3fc); font-weight: 800; white-space: nowrap; }

.vsg-rank-unit-full { display: inline; }

.vsg-carousel-points-badge { display: flex; justify-content: center; margin-top: var(--space-3); }
.vsg-carousel-points-badge img { width: min(200px, 48vw); height: auto; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45)); }

.vsg-carousel-badge-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: var(--space-2); }
.vsg-carousel-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); transition: transform .15s ease, background .15s ease; cursor: default; }
.vsg-carousel-badge:hover { transform: translateY(-2px); background: rgba(255,255,255,.06); }
.vsg-carousel-badge img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.4)); }
.vsg-carousel-badge span { font-size: .68rem; color: var(--text-muted); text-align: center; line-height: 1.25; }

.vsg-carousel-demo-post { border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); background: rgba(0,0,0,.22); padding: var(--space-3); margin-top: var(--space-2); }
.vsg-carousel-demo-post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.vsg-carousel-demo-post-head img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.vsg-carousel-demo-post-head strong { font-size: var(--fs-sm); color: var(--text-primary); }
.vsg-carousel-demo-post-head span { display: block; font-size: var(--fs-2xs); color: var(--text-muted); }
.vsg-carousel-demo-post p { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--text-muted); }
.vsg-carousel-demo-post-img { display: block; width: 100%; max-height: 110px; object-fit: cover; border-radius: var(--radius-sm); margin: 0 0 10px; }
.vsg-carousel-demo-post-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.vsg-carousel-demo-like { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(244,114,182,.35); border-radius: var(--radius-pill); background: transparent; color: #f7a1c8; font-size: var(--fs-xs); font-weight: 800; cursor: pointer; transition: opacity .15s ease, transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.vsg-carousel-demo-like:hover { background: rgba(244,114,182,.1); }
.vsg-carousel-demo-like.is-liked { background: rgba(244,114,182,.16); border-color: #f43f7e; color: #f43f7e; }
.vsg-carousel-demo-like .vsg-heart { display: inline-block; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.vsg-carousel-demo-like.is-liked .vsg-heart { transform: scale(1.3); }
.vsg-carousel-demo-hint { display: block; margin-top: 6px; font-size: var(--fs-2xs); color: var(--text-muted); font-style: italic; }
.vsg-carousel-demo-post-actions .vsg-carousel-demo-hint { margin-top: 0; flex: 1 1 140px; }

.vsg-carousel-demo-profile { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-2); }
.vsg-carousel-demo-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #38bdf8; flex: 0 0 auto; transition: border-color .2s ease; }
.vsg-carousel-demo-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.vsg-carousel-demo-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease; }
.vsg-carousel-demo-swatch:hover { transform: scale(1.15); }
.vsg-carousel-demo-swatch.is-selected { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.vsg-carousel-demo-avatar-option { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: rgba(255,255,255,.05); cursor: pointer; overflow: hidden; transition: transform .15s ease; }
.vsg-carousel-demo-avatar-option img { width: 100%; height: 100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.vsg-carousel-demo-avatar-option:hover { transform: scale(1.12); }
.vsg-carousel-demo-avatar-option.is-selected { border-color: var(--vsg-carousel-accent, #f472b6); box-shadow: 0 0 0 2px color-mix(in srgb, var(--vsg-carousel-accent, #f472b6) 40%, transparent); }
.vsg-carousel-avatar-upload { margin-top: 2px; }
.vsg-carousel-avatar-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid color-mix(in srgb, var(--vsg-carousel-accent, #f472b6) 55%, transparent);
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--vsg-carousel-accent, #f472b6) 12%, transparent);
    color: var(--text-primary);
    font-size: var(--fs-xs);
    font-weight: 800;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.vsg-carousel-avatar-upload-btn:hover { background: color-mix(in srgb, var(--vsg-carousel-accent, #f472b6) 22%, transparent); transform: translateY(-1px); }
.vsg-carousel-avatar-upload-btn.is-uploading { opacity: .65; cursor: default; pointer-events: none; }

.vsg-carousel-action-subtitle { display: block; margin: var(--space-1) 0 var(--space-2); color: var(--text-primary); font-size: var(--fs-sm); font-weight: 800; text-align: left; width: 100%; }
.vsg-carousel-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; width: 100%; margin-top: var(--space-1); }
.vsg-carousel-action-chip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.03);
    color: var(--text-primary);
    font-size: var(--fs-2xs);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.vsg-carousel-action-chip:hover { border-color: var(--vsg-carousel-accent, var(--primary-color)); background: color-mix(in srgb, var(--vsg-carousel-accent, var(--primary-color)) 10%, transparent); transform: translateY(-1px); }
.vsg-carousel-action-chip-icon { flex: 0 0 auto; width: 22px; height: 22px; object-fit: contain; margin-top: 1px; }
.vsg-carousel-action-chip-text { display: flex; flex-direction: column; gap: 1px; }
.vsg-carousel-action-chip-desc { font-size: .58rem; font-weight: 500; color: var(--text-muted); line-height: 1.25; }

.vsg-carousel-video-strip { position: relative; width: min(100%, 320px); margin: var(--space-3) auto 0; border-radius: var(--radius-md); overflow: hidden; background: #05070d; aspect-ratio: 16/9; }
.vsg-carousel-video-strip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.vsg-carousel-video-strip video.is-active { opacity: 1; }
.vsg-carousel-video-strip-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.vsg-carousel-video-strip-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); transition: opacity .2s ease, transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.vsg-carousel-video-strip-dots span.is-active { background: var(--vsg-carousel-accent, #f97316); width: 16px; border-radius: 999px; }
.vsg-carousel-video-strip-caption { position: absolute; top: 8px; left: 10px; padding: 3px 9px; border-radius: var(--radius-pill); background: rgba(0,0,0,.55); color: #fff; font-size: var(--fs-2xs); font-weight: 700; }

@media (max-width: 620px) {
    .vsg-carousel-slide { padding: var(--space-6) var(--space-3) var(--space-4); min-height: 340px; }
    .vsg-carousel-slide-body { font-size: var(--fs-sm); }
    .vsg-carousel-action-grid { grid-template-columns: 1fr; }
    .vsg-carousel-badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vsg-carousel-demo-profile { flex-direction: column; }
}

.vsg-carousel-section {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 4vw, 40px);
    box-sizing: border-box;
    opacity: 0;
    transition: opacity .22s ease;
}
.vsg-carousel-section.is-visible { opacity: 1; }
.vsg-carousel-section-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 16, .82);
}
.vsg-carousel-section-panel {
    position: relative;
    width: min(760px, 100%);
    max-height: min(88vh, 780px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% -10%, rgba(56,189,248,.1), transparent 55%), #0b0f1a;
    box-shadow: var(--shadow-3);
    overflow: hidden;
    transform: translateY(18px) scale(.98);
    transition: transform .26s cubic-bezier(.22,.8,.25,1);
}
.vsg-carousel-section.is-visible .vsg-carousel-section-panel { transform: translateY(0) scale(1); }
.vsg-carousel-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5) 0;
    flex: 0 0 auto;
}
.vsg-carousel-section-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vsg-carousel-section-logo { flex: 0 0 auto; width: 30px; height: 30px; object-fit: contain; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.vsg-carousel-section-head strong { color: var(--text-primary); font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsg-carousel-section-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: var(--text-primary);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}
.vsg-carousel-section-close:hover { background: rgba(255,255,255,.12); }
.vsg-carousel-section .vsg-carousel {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: var(--space-4) var(--space-5) var(--space-5);
    box-sizing: border-box;
    overflow-y: auto;
}
@media (max-width: 620px) {
    .vsg-carousel-section-head { padding: var(--space-3) var(--space-3) 0; }
    .vsg-carousel-section .vsg-carousel { padding: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
    .vsg-carousel-section, .vsg-carousel-section-panel { transition: none; }
}

body.vsg-carousel-body-lock { overflow: hidden; touch-action: none; }

html.vsg-mobile .vsg-carousel-section { padding: 0; align-items: flex-end; }
html.vsg-mobile .vsg-carousel-section-panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
    border-width: 1px 0 0;
}
html.vsg-mobile .vsg-carousel-section-head { padding: 14px 14px 0; gap: 10px; }
html.vsg-mobile .vsg-carousel-section-heading { gap: 8px; }
html.vsg-mobile .vsg-carousel-section-logo { width: 26px; height: 26px; }
html.vsg-mobile .vsg-carousel-section-head strong { font-size: .92rem; }
html.vsg-mobile .vsg-carousel-section-close { width: 30px; height: 30px; font-size: 1.05rem; }
html.vsg-mobile .vsg-carousel-section .vsg-carousel { padding: 12px 14px 18px; gap: 12px; }
html.vsg-mobile .vsg-carousel-nav { gap: 10px; }
html.vsg-mobile .vsg-carousel-prev, html.vsg-mobile .vsg-carousel-next { width: 42px; height: 42px; }
html.vsg-mobile .vsg-carousel-next { min-width: 42px; padding: 0 14px; }

.vsg-mtour {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: none;
    flex-direction: column;
    background: #05070d;
    opacity: 0;
    transition: opacity .22s ease;
}
.vsg-mtour.is-visible { display: flex; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .vsg-mtour { transition: none; } }
.vsg-mtour-progress {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    left: 12px;
    right: 52px;
    z-index: 2;
    display: flex;
    gap: 4px;
}
.vsg-mtour-progress-seg { flex: 1 1 0; height: 3px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.vsg-mtour-progress-seg i { display: block; height: 100%; width: 0%; background: #fff; transition: width .2s ease; }
.vsg-mtour-progress-seg.is-done i { width: 100%; }
.vsg-mtour-close {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 4px);
    right: 8px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(0,0,0,.4);
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    display: grid;
    place-items: center;
}
.vsg-mtour-heading {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 22px);
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.85);
    font-size: .72rem;
    font-weight: 700;
}
.vsg-mtour-heading strong { max-width: calc(100vw - 120px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsg-mtour-heading img { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 auto; }
.vsg-mtour-track {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}
.vsg-mtour-slide {
    width: 100%;
    max-width: 100vw;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100dvh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
    padding: calc(env(safe-area-inset-top, 0px) + 64px) 18px calc(env(safe-area-inset-bottom, 0px) + 84px);
    position: relative;
    
    background-image:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--vsg-carousel-accent, #38bdf8) 12%, transparent) 0%, transparent 55%),
        linear-gradient(180deg, rgba(4,7,14,.55) 0%, rgba(4,7,14,.2) 30%, rgba(4,7,14,.25) 65%, rgba(4,7,14,.6) 100%),
        var(--vsg-carousel-slide-bg, none);
    background-size: auto, auto, contain;
    background-position: center, center, center;
    background-repeat: no-repeat;
    background-color: #05070d;
}
.vsg-mtour-cta {
    margin-top: 22px;
    padding: 12px 26px;
    border: none;
    border-radius: 999px;
    background: var(--vsg-carousel-accent, #38bdf8);
    color: #04121f;
    font-weight: 800;
    font-size: .88rem;
    cursor: pointer;
}

html.vsg-mobile .vsg-carousel-slide { padding: 20px 14px 16px; min-height: 0; border-radius: 14px; }
html.vsg-mobile .vsg-carousel-slide-icon { width: 58px; height: 58px; margin-bottom: 10px; }
html.vsg-mobile .vsg-carousel-slide-icon img { width: 40px; height: 40px; }
html.vsg-mobile .vsg-carousel-slide-icon span { font-size: 1.55rem; }
html.vsg-mobile .vsg-carousel-kicker { font-size: .62rem; margin-bottom: 6px; }
html.vsg-mobile .vsg-carousel-slide-title { font-size: 1.02rem; margin-bottom: 8px; }
html.vsg-mobile .vsg-carousel-slide-body { font-size: .84rem; line-height: 1.5; }

html.vsg-mobile .vsg-carousel-leaders-stage { gap: 6px; padding-top: 10px; }
html.vsg-mobile .vsg-carousel-leader-render { width: 92px; height: 106px; }
html.vsg-mobile .vsg-carousel-leader-col { gap: 5px; }
html.vsg-mobile .vsg-carousel-leader-caption { padding: 3px 7px 3px 3px; gap: 4px; }
html.vsg-mobile .vsg-carousel-leader-caption img { width: 22px; height: 22px; }
html.vsg-mobile .vsg-carousel-leader-caption-info strong { font-size: .62rem; max-width: 70px; }
html.vsg-mobile .vsg-carousel-leader-caption-info span { font-size: .52rem; }
html.vsg-mobile .vsg-carousel-leaders { gap: 8px; }
html.vsg-mobile .vsg-carousel-leader-card { width: 82px; }
html.vsg-mobile .vsg-carousel-leader-card img { width: 46px; height: 46px; }
html.vsg-mobile .vsg-carousel-leader-card strong { font-size: .74rem; }
html.vsg-mobile .vsg-carousel-leader-card span { font-size: .6rem; }

html.vsg-mobile .vsg-carousel-rank-ladder { gap: 5px 6px; }
html.vsg-mobile .vsg-carousel-rank-row { padding: 4px 6px; gap: 4px; font-size: .64rem; }
html.vsg-mobile .vsg-carousel-rank-row img { width: 16px; height: 16px; }
html.vsg-mobile .vsg-rank-unit-full { display: none; }

html.vsg-mobile .vsg-carousel-badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html.vsg-mobile .vsg-carousel-badge { padding: 7px 4px; }
html.vsg-mobile .vsg-carousel-badge img { width: 42px; height: 42px; }
html.vsg-mobile .vsg-carousel-badge span { font-size: .6rem; }

html.vsg-mobile .vsg-carousel-points-badge { margin-top: 10px; }
html.vsg-mobile .vsg-carousel-points-badge img { width: 40vw; }

html.vsg-mobile .vsg-carousel-demo-post-img { max-height: 90px; }

html.vsg-mobile .vsg-carousel-demo-profile { flex-direction: column; align-items: flex-start; gap: 10px; }
html.vsg-mobile .vsg-carousel-demo-avatar { width: 60px; height: 60px; }
html.vsg-mobile .vsg-carousel-avatar-upload-btn { padding: 9px 16px; font-size: .78rem; width: 100%; justify-content: center; }

html.vsg-mobile .vsg-carousel-action-subtitle { font-size: .82rem; margin-bottom: 6px; }
html.vsg-mobile .vsg-carousel-action-grid { grid-template-columns: 1fr; gap: 6px; }
html.vsg-mobile .vsg-carousel-action-chip { padding: 9px 10px; gap: 8px; }
html.vsg-mobile .vsg-carousel-action-chip-icon { width: 24px; height: 24px; }
html.vsg-mobile .vsg-carousel-action-chip-desc { font-size: .6rem; }

html.vsg-mobile .vsg-carousel-video-strip { width: min(100%, 220px); margin: 10px auto 0; }
html.vsg-mobile .vsg-carousel-video-strip-caption { font-size: .58rem; padding: 2px 8px; }

.vsg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.vsg-icon.vsg-icon-solid { fill: currentColor; stroke: none; }
.vsg-icon-lg { width: 1.4em; height: 1.4em; }
.vsg-icon-xl { width: 2em; height: 2em; }
.vsg-icon.vsg-icon-danger { color: #f87171; }
.vsg-icon.vsg-icon-warning { color: #fbbf24; }
.vsg-icon.vsg-icon-success { color: #34d399; }
.vsg-icon.vsg-medal-gold { color: #facc15; }
.vsg-icon.vsg-medal-silver { color: #cbd5e1; }
.vsg-icon.vsg-medal-bronze { color: #d97706; }

/* ===== css/components-core.css ===== */
/*
 * components-core.css  --  SET DE COMPONENTES CANONICO  (Fase 3)
 * ---------------------------------------------------------------------------
 * Cinco primitivas hacia las que migrar: boton, campo, panel, stat, fila.
 * Todas con prefijo .vsg-* -> NO colisionan con nada (.btn tiene 1229 usos,
 * .card 554; por eso namespace nuevo) y este archivo se envia INERTE: hoy
 * ningun HTML las usa. Riesgo visual cero.
 *
 * Valores: tokens de tokens.css + los literales que ya usa design-system.css
 * para .btn-primary / .form-control / .vsg-error-state, para que al migrar
 * (Fase 4, una seccion por commit) el aspecto no cambie.
 *
 * NO !important. Vive en @layer vsg-universal, despues de components.css.
 */
@layer vsg-universal {

  /* ============================================================
     1 · BOTON  --  una caja (38px), un radio; varia solo el color
     ============================================================ */
  .vsg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    min-width: 84px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--vsg-font-family);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .vsg-btn:focus-visible { outline: 2px solid var(--vsg-cyan); outline-offset: 2px; }
  .vsg-btn:disabled,
  .vsg-btn.is-disabled { opacity: 0.45; cursor: not-allowed; }

  .vsg-btn--sm { height: 30px; min-width: 0; padding: 0 11px; font-size: 0.75rem; }
  .vsg-btn--block { display: flex; width: 100%; }

  .vsg-btn--primary {
    background: linear-gradient(135deg, #0284c7, #1d4ed8);
    border-color: rgba(56, 189, 248, 0.45);
    color: var(--text-primary);
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.28);
  }
  .vsg-btn--primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.12); }

  .vsg-btn--secondary {
    background: rgba(10, 20, 43, 0.75);
    border-color: rgba(125, 168, 218, 0.28);
    color: var(--text-muted);
  }
  .vsg-btn--secondary:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(91, 206, 255, 0.5); color: #eaf8ff; }

  .vsg-btn--ghost { background: transparent; color: var(--text-sub); }
  .vsg-btn--ghost:hover:not(:disabled) { background: rgba(125, 168, 218, 0.1); color: var(--text-main); }

  .vsg-btn--danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--border-danger);
    color: #fca5a5;
  }
  .vsg-btn--danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.18); border-color: #ef4444; color: var(--text-primary); }

  /* cargando: el ancho NO colapsa (el label sigue ocupando su lugar, invisible) */
  .vsg-btn.is-loading { position: relative; color: transparent; pointer-events: none; }
  .vsg-btn.is-loading::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid var(--text-primary);
    border-right-color: transparent;
    border-radius: 50%;
    animation: vsg-spin 0.7s linear infinite;
  }

  /* ============================================================
     2 · CAMPO  --  el ancho lo pone el contenedor, no el input
     ============================================================ */
  .vsg-field {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
  }
  .vsg-field__label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
  .vsg-field__label .vsg-opt { color: var(--text-sub); font-weight: 400; }

  .vsg-input {
    width: 100%;               /* llena su .vsg-field / su celda, no la pantalla */
    height: 38px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--vsg-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--vsg-font-family);
    font-size: 0.86rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  textarea.vsg-input { height: auto; min-height: 76px; resize: vertical; }
  .vsg-input::placeholder { color: var(--text-sub); }
  .vsg-input:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
  }
  .vsg-field__hint { font-size: 0.76rem; color: var(--text-sub); }
  .vsg-field.has-error .vsg-input { border-color: var(--border-danger); }
  .vsg-field.has-error .vsg-field__hint { color: #f87171; }

  /* barra de busqueda + filtros: el layout lo decide el contenedor */
  .vsg-filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
  .vsg-filter-bar .vsg-field--grow { flex: 1 1 260px; }
  .vsg-filter-bar .vsg-field--fix { flex: 0 0 190px; min-width: 0; }

  /* ============================================================
     3a · PANEL DE CONTENIDO
     ============================================================ */
  .vsg-card {
    background: var(--bg-card);
    border: 1px solid var(--vsg-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
  }
  .vsg-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--vsg-border);
  }
  .vsg-card__head h4 { margin: 0; font-size: 0.95rem; font-weight: 700; }
  .vsg-card__kicker {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--vsg-cyan);
  }
  .vsg-card__body { padding: 1.15rem 1.2rem; }
  .vsg-card__foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 0.8rem 1.2rem;
    border-top: 1px solid var(--vsg-border);
  }

  /* ============================================================
     3b · STAT TILE  --  micro-label + valor grande
     ============================================================ */
  .vsg-stat {
    min-width: 130px;
    padding: 0.9rem 1rem;
    background: var(--vsg-surface-2);
    border: 1px solid var(--vsg-border);
    border-radius: var(--radius-md);
  }
  .vsg-stat__label {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-sub);
  }
  .vsg-stat__value {
    margin-top: 0.2rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }
  .vsg-stat__value small { font-size: 0.9rem; font-weight: 600; color: var(--text-sub); }
  .vsg-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.6rem; }

  /* ============================================================
     3c · CARD DE FILA (lista)
     ============================================================ */
  .vsg-row-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.85rem 1.1rem;
    background: var(--vsg-surface-2);
    border: 1px solid var(--vsg-border);
    border-radius: var(--radius-md);
  }
  .vsg-row-card + .vsg-row-card { margin-top: 0.5rem; }
  .vsg-row-card__id { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
  .vsg-row-card__id .vsg-row-card__av {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--vsg-surface);
    border: 1px solid var(--vsg-border);
  }
  .vsg-row-card__id strong { font-weight: 700; }
  .vsg-row-card__id span { font-size: 0.76rem; color: var(--text-sub); }
  .vsg-row-card__stats { display: flex; gap: 1.1rem; }
  .vsg-row-card__stats > div { text-align: center; }
  .vsg-row-card__stats b { display: block; font-variant-numeric: tabular-nums; }
  .vsg-row-card__stats small {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-sub);
  }
  .vsg-row-card__act { display: flex; gap: 0.4rem; }

  /* ============================================================
     4 · ESTADOS  --  vacio / error (con codigo) / carga
     ============================================================ */
  .vsg-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2.25rem 1.25rem;
    text-align: center;
    border: 1px dashed rgba(125, 168, 218, 0.28);
    border-radius: var(--radius-md);
  }
  .vsg-state__icon { font-size: 2rem; line-height: 1; opacity: 0.65; }
  .vsg-state strong { font-size: 1rem; font-weight: 700; color: var(--text-main); }
  .vsg-state span { max-width: 44ch; font-size: 0.86rem; color: var(--text-sub); }
  .vsg-state--error {
    border-style: solid;
    border-color: var(--border-danger);
    background: rgba(239, 68, 68, 0.06);
  }
  .vsg-state--error .vsg-state__icon { color: #f87171; opacity: 1; }
  .vsg-state--error strong { color: #fca5a5; }

  /* codigo de error: VS-NNN + request_id -- el mismo que va a Registro de incidencias */
  .vsg-state__code,
  .vsg-toast__code {
    margin-top: 0.35rem;
    padding: 0.2em 0.6em;
    border: 1px solid var(--vsg-border);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.35);
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.72rem;
    color: var(--text-sub);
  }
  .vsg-state__code b,
  .vsg-toast__code b { color: #f87171; font-weight: 600; }

  .vsg-spinner {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(125, 168, 218, 0.28);
    border-top-color: var(--vsg-cyan);
    border-radius: 50%;
    animation: vsg-spin 0.7s linear infinite;
  }
  .vsg-skel {
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 37%, rgba(255, 255, 255, 0.03) 63%);
    background-size: 400% 100%;
    animation: vsg-skel-pulse 1.4s ease infinite;
  }
  .vsg-skel + .vsg-skel { margin-top: 8px; }

  @keyframes vsg-spin { to { transform: rotate(360deg); } }
  @keyframes vsg-skel-pulse {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
  }
  @media (prefers-reduced-motion: reduce) {
    .vsg-spinner,
    .vsg-skel,
    .vsg-btn.is-loading::after { animation-duration: 0.01ms; animation-iteration-count: 1; }
  }
}

/* ===== css/birthday-modal.css ===== */

.vsg-birthday-modal__backdrop {
    position: absolute;
    inset: 0;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: rgba(2, 6, 23, .78);
    box-shadow: none;
    transform: none;
    transition: none;
}

/* --- fusionado desde birthday-modal-fixes.css (Fase 2) --- */
.vsg-birthday-modal__field small {
    margin-top: 2px;
    color: #8da6c5;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.35;
}

.vsg-birthday-modal__error {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    padding: 9px 11px;
    color: #fecdd3;
    border: 1px solid rgba(251, 113, 133, .42);
    border-radius: 10px;
    background: rgba(136, 19, 55, .16);
    font-size: .76rem;
    line-height: 1.35;
}

.admin-menu-toggle { grid-template-columns:30px minmax(0,1fr) 24px; min-height:44px; padding:7px 10px 7px 7px; border-color:rgba(125,211,252,.25); border-radius:14px; background:linear-gradient(135deg,rgba(8,32,58,.9),rgba(11,18,41,.9)); font-size:.69rem; letter-spacing:.055em; box-shadow:inset 0 1px rgba(255,255,255,.07),0 11px 24px rgba(1,6,20,.22); }
.admin-menu-toggle::before { content:''; width:30px; height:30px; border:1px solid rgba(125,211,252,.3); border-radius:10px; background-color:transparent; background-image:linear-gradient(135deg,rgba(56,189,248,.2),rgba(59,130,246,.12)), url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23a5edff'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M12%202v3M12%2019v3M4.2%204.2l2.1%202.1M17.7%2017.7l2.1%202.1M2%2012h3M19%2012h3M4.2%2019.8l2.1-2.1M17.7%206.3l2.1-2.1%22%2F%3E%3C%2Fsvg%3E"); background-repeat:no-repeat; background-position:center; background-size:100%,60%; text-shadow:0 0 12px rgba(125,211,252,.45); }
.admin-menu-toggle:hover { border-color:rgba(103,232,249,.58); background:linear-gradient(135deg,rgba(14,80,120,.62),rgba(30,41,96,.62)); box-shadow:inset 0 1px rgba(255,255,255,.1),0 14px 28px rgba(14,165,233,.2); }
.admin-menu-toggle-icon { width:24px; height:24px; border:1px solid rgba(125,211,252,.2); border-radius:8px; background:rgba(2,6,23,.45); transition:transform .2s ease,background .2s ease,border-color .2s ease; }
.admin-menu:not(.is-collapsed) .admin-menu-toggle-icon { transform:rotate(90deg); border-color:rgba(103,232,249,.52); background:rgba(56,189,248,.14); }
.nav-bell-btn-embedded { top:-6px; right:0; width:34px; height:34px; border-radius:11px; background:linear-gradient(145deg,rgba(15,43,76,.98),rgba(6,17,37,.98)); border:1px solid rgba(125,211,252,.38); box-shadow:inset 0 1px rgba(255,255,255,.1),0 5px 13px rgba(0,0,0,.38); color:#b9efff; font-size:0; }
.nav-bell-btn-embedded::before { content:''; width:13px; height:14px; border:2px solid currentColor; border-radius:8px 8px 4px 4px; box-sizing:border-box; box-shadow:inset 0 -2px rgba(125,211,252,.16); }
.nav-bell-btn-embedded::after { content:''; position:absolute; bottom:6px; width:5px; height:2px; border-radius:999px; background:currentColor; box-shadow:0 2px 0 -1px currentColor; }
.nav-bell-btn-embedded:hover,.nav-bell-btn-embedded:focus-visible { transform:translateY(-1px); border-color:rgba(103,232,249,.78); background:linear-gradient(145deg,rgba(15,93,137,.92),rgba(9,49,86,.94)); box-shadow:inset 0 1px rgba(255,255,255,.13),0 8px 18px rgba(14,165,233,.24); outline:none; }

#adminMenu .admin-menu-toggle { display:grid !important; grid-template-columns:34px minmax(0,1fr) 28px !important; align-items:center !important; width:100% !important; min-height:52px !important; height:auto !important; margin:8px 0 5px !important; padding:7px 9px !important; border:1px solid rgba(93,211,255,.36) !important; border-radius:15px !important; background:radial-gradient(circle at 92% 12%,rgba(139,92,246,.3),transparent 38%),linear-gradient(135deg,rgba(8,40,72,.98),rgba(8,17,40,.98)) !important; box-shadow:inset 0 1px rgba(255,255,255,.1),0 12px 26px rgba(1,10,30,.32) !important; color:#e9f9ff !important; animation:vsg-admin-breathe 3s ease-in-out infinite; }
#adminMenu .admin-menu-toggle::before { content:'' !important; display:grid !important; place-items:center !important; width:34px !important; height:34px !important; border:1px solid rgba(125,232,255,.46) !important; border-radius:11px !important; background-color:transparent !important; background-image:linear-gradient(145deg,rgba(56,189,248,.28),rgba(37,99,235,.18)), url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23d9f8ff'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M12%202v3M12%2019v3M4.2%204.2l2.1%202.1M17.7%2017.7l2.1%202.1M2%2012h3M19%2012h3M4.2%2019.8l2.1-2.1M17.7%206.3l2.1-2.1%22%2F%3E%3C%2Fsvg%3E") !important; background-repeat:no-repeat !important; background-position:center !important; background-size:100%,60% !important; text-shadow:0 0 14px rgba(103,232,249,.62) !important; }
#adminMenu .admin-menu-toggle > span:first-child { display:grid; gap:1px; min-width:0; color:#f4fbff; font-size:.72rem; font-weight:900; letter-spacing:.035em; text-align:left; text-transform:none; }
#adminMenu .admin-menu-toggle > span:first-child::after { content:none; display:none; }
#adminMenu .admin-menu-toggle-icon { display:grid !important; place-items:center !important; width:28px !important; height:28px !important; min-width:28px !important; border:1px solid rgba(125,211,252,.25) !important; border-radius:9px !important; background:rgba(2,7,23,.42) !important; color:#b9efff !important; }
#adminMenu .admin-menu-toggle:hover,#adminMenu:not(.is-collapsed) .admin-menu-toggle { border-color:rgba(125,232,255,.74) !important; background:radial-gradient(circle at 92% 12%,rgba(168,85,247,.42),transparent 42%),linear-gradient(135deg,rgba(9,65,103,.98),rgba(13,25,61,.98)) !important; box-shadow:inset 0 1px rgba(255,255,255,.13),0 15px 30px rgba(14,165,233,.27) !important; }
#adminMenu:not(.is-collapsed) .admin-menu-toggle-icon { transform:rotate(90deg) !important; border-color:rgba(125,232,255,.58) !important; background:rgba(56,189,248,.18) !important; }
@keyframes vsg-admin-breathe { 0%,100% { box-shadow:inset 0 1px rgba(255,255,255,.1),0 12px 26px rgba(1,10,30,.32); } 50% { box-shadow:inset 0 1px rgba(255,255,255,.14),0 14px 30px rgba(14,165,233,.32),0 0 0 3px rgba(56,189,248,.035); } }

#userNotifBellBtn.nav-bell-btn-embedded { display:grid !important; place-items:center !important; width:38px !important; height:38px !important; border-radius:12px !important; font-size:0 !important; border-color:rgba(125,211,252,.45) !important; }
#userNotifBellBtn.nav-bell-btn-embedded::before { content:'' !important; display:block !important; width:18px !important; height:18px !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23b9efff'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D%22M6%2010a6%206%200%200%201%2012%200v5l2%203H4l2-3v-5z%22%2F%3E%3Cpath%20d%3D%22M10%2021a2%202%200%200%200%204%200%22%2F%3E%3C%2Fsvg%3E") !important; background-repeat:no-repeat !important; background-position:center !important; background-size:contain !important; filter:drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
#userNotifBellBtn.nav-bell-btn-embedded::after { display:none !important; }
#userNotifBellBtn .nav-notif-count { z-index:2; top:-6px; right:-6px; min-width:18px; height:18px; line-height:18px; border:2px solid #071426; box-sizing:content-box; }
@media (prefers-reduced-motion:reduce) { #adminMenu .admin-menu-toggle { animation:none; } }

.vsg-birthday-modal__panel {
    width: min(100%, 440px);
    padding: 28px;
    color: #eef5ff;
    border: 1px solid #254c75;
    border-radius: 16px;
    background: #0d1930;
    box-shadow: 0 22px 56px rgba(0, 0, 0, .48);
}
.vsg-birthday-modal__panel::after { display: none; }
.vsg-birthday-modal__close {
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    color: #aebfd4;
    border: 0;
    border-radius: 7px;
    background: transparent;
    font-size: 22px;
}
.vsg-birthday-modal__close:hover, .vsg-birthday-modal__close:focus-visible {
    color: var(--text-primary);
    background: rgba(148, 163, 184, .14);
    outline: none;
}
.vsg-birthday-modal__brand { gap: 8px; color: #78cef7; font-size: 10px; letter-spacing: .11em; }
.vsg-birthday-modal__brand img { width: 28px; height: 28px; box-shadow: none; }
.vsg-birthday-modal__eyebrow { margin: 22px 0 8px; color: #8fa7c4; font-size: 10px; letter-spacing: .1em; }
.vsg-birthday-modal h2 { max-width: none; font-size: clamp(25px, 4vw, 30px); line-height: 1.14; letter-spacing: -.025em; }
.vsg-birthday-modal__lead { max-width: none; margin: 10px 0 18px; color: #b3c2d7; font-size: 14px; line-height: 1.5; }
.vsg-birthday-modal__privacy { align-items: center; gap: 9px; margin-bottom: 20px; padding: 10px 12px; color: #c6d9ec; border: 1px solid #1f4264; border-left: 3px solid #48c79a; border-radius: 8px; background: #0a2033; font-size: 12px; }
.vsg-birthday-modal__privacy span { width: 17px; height: 17px; color: #073126; background: #57d7aa; }
.vsg-birthday-modal__field { max-width: none; gap: 8px; color: #d5e2f1; }
.vsg-birthday-modal__field input { width: 100%; min-height: 46px; border-color: #315779; border-radius: 9px; background: #091426; }
.vsg-birthday-modal__field input:focus { border-color: #5ec7f5; box-shadow: 0 0 0 3px rgba(94, 199, 245, .12); }
.vsg-birthday-modal__actions { justify-content: flex-end; gap: 10px; margin-top: 22px; }
.vsg-birthday-modal__later, .vsg-birthday-modal__save { min-height: 40px; padding: 0 14px; border-radius: 8px; font-size: 13px; }
.vsg-birthday-modal__later { color: #b9c8d9; border-color: #304a67; }
.vsg-birthday-modal__save { min-width: 100px; border-color: #3d9fd1; background: #167db8; box-shadow: none; }
.vsg-birthday-modal__save:hover, .vsg-birthday-modal__save:focus-visible { background: #2494d0; outline: none; }
@media (max-width: 480px) {
    .vsg-birthday-modal__panel { padding: 24px 20px 20px; border-radius: 14px; }
    .vsg-birthday-modal__actions { justify-content: space-between; }
}

/* ===== css/credentials-completion-modal.css ===== */

.vsg-credentials-modal{position:fixed;z-index:25060;inset:0;display:grid;place-items:center;padding:clamp(16px,3vw,32px);opacity:0;pointer-events:none;transition:opacity .18s ease}
.vsg-credentials-modal.is-visible{opacity:1;pointer-events:auto}
.vsg-credentials-modal__backdrop{position:absolute;inset:0;width:min(100%,470px);max-height:calc(100vh - 32px);overflow-y:auto;padding:clamp(24px,4vw,38px);color:#edf7ff;border:1px solid rgba(74,214,255,.38);border-radius:24px;background:radial-gradient(circle at 88% 6%,rgba(196,102,255,.22),transparent 38%),radial-gradient(circle at 0% 100%,rgba(34,211,238,.16),transparent 40%),linear-gradient(145deg,#101d3a 0%,#0a1127 56%,#11102b 100%);box-shadow:0 24px 70px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.09);transform:translateY(14px) scale(.985);transition:transform .22s cubic-bezier(.22,.8,.25,1)}
.vsg-credentials-modal.is-visible .vsg-credentials-modal__panel{transform:translateY(0) scale(1)}
.vsg-credentials-modal__brand{display:inline-flex;align-items:center;gap:9px;color:#8bdcff;font-size:10px;font-weight:900;letter-spacing:.15em}
.vsg-credentials-modal__brand img{width:34px;height:34px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 3px rgba(81,215,255,.15)}
.vsg-credentials-modal__eyebrow{margin:24px 0 7px;color:#f7a7d8;font-size:11px;font-weight:900;letter-spacing:.13em}
.vsg-credentials-modal h2{max-width:390px;margin:0;color:#fff;font-size:clamp(22px,4.4vw,30px);line-height:1.08;letter-spacing:-.03em}
.vsg-credentials-modal__lead{max-width:400px;margin:13px 0 20px;color:#b9c8df;font-size:14px;line-height:1.55}
.vsg-credentials-modal__field{display:grid;gap:7px;margin-bottom:14px;color:#cae2f8;font-size:12px;font-weight:800}
.vsg-credentials-modal__field input{min-height:44px;padding:0 12px;color-scheme:dark;color:#fff;border:1px solid rgba(121,190,255,.32);border-radius:11px;outline:none;background:rgba(2,9,28,.68);font:inherit;width:100%;box-sizing:border-box}
.vsg-credentials-modal__field input:focus{border-color:#42c8ff;box-shadow:0 0 0 3px rgba(66,200,255,.15)}
.vsg-credentials-modal__captcha{margin:6px 0 4px;transform:scale(.92);transform-origin:left top}
.vsg-credentials-modal__error{margin:4px 0 0;padding:10px 12px;color:#fca5a5;border:1px solid rgba(248,113,113,.28);border-radius:10px;background:rgba(127,29,29,.22);font-size:12px;line-height:1.4}
.vsg-credentials-modal__actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}
.vsg-credentials-modal__save{min-height:44px;padding:0 20px;color:#fff;border:1px solid rgba(104,230,255,.48);border-radius:10px;background:linear-gradient(135deg,#0ea5e9,#2563eb);box-shadow:0 9px 22px rgba(14,165,233,.24);font-size:13px;font-weight:850;cursor:pointer;width:100%}
.vsg-credentials-modal__save:disabled{cursor:wait;opacity:.65}
.vsg-credentials-modal__logout{display:block;margin:14px auto 0;padding:0;color:#8098b8;border:none;background:transparent;font-size:12px;text-decoration:underline;cursor:pointer}
.vsg-credentials-modal__logout:disabled{cursor:wait;opacity:.65}
@media(max-width:480px){
    .vsg-credentials-modal{align-items:end;padding:12px}
    .vsg-credentials-modal__panel{border-radius:21px}
}

/* ===== css/weekly-banner.css ===== */

@layer vsg-universal {

#thisWeekWowBanner, #newsThisWeekWowBanner {
    position: relative;
    overflow: hidden;
}

.wkb-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 14px;
}

.wkb-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 14px;
    background-color: #07101f;
    isolation: isolate;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.wkb-img-link {
    position: absolute;
    inset: 0;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wkb-controls {
    position: absolute;
    z-index: 10;
    left: 8%;
    top: clamp(5px, 0.6vw, 8px);
    transform: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(2, 8, 23, .65);
    
    overflow-x: auto;
    pointer-events: auto;
}
.wkb-dots { display: flex; align-items: center; gap: 4px; }
.wkb-dot { width: 4px; height: 4px; padding: 0; border: none; border-radius: 50%; background: rgba(255, 255, 255, .32); cursor: pointer; transition: background .2s ease, width .2s ease; }
.wkb-dot.active { width: 10px; border-radius: 2px; background: var(--text-primary); }
.wkb-dot:hover { background: rgba(255, 255, 255, .6); }
.wkb-nav-arrow { width: 13px; height: 13px; padding: 0; border: none; border-radius: 50%; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font-size: .55rem; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.wkb-nav-arrow:hover { background: rgba(255, 255, 255, .25); color: var(--text-primary); }
.wkb-pause-btn { position: relative; width: 13px; height: 13px; padding: 0; border: none; border-radius: 50%; background: rgba(255, 255, 255, .1); cursor: pointer; }
.wkb-pause-btn:hover { background: rgba(255, 255, 255, .25); }
.wkb-pause-btn::before, .wkb-pause-btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 1.5px; height: 5px; background: rgba(255, 255, 255, .85); }
.wkb-pause-btn::before { transform: translate(-2px, -50%); }
.wkb-pause-btn::after { transform: translate(1px, -50%); }
.wkb-pause-btn.is-paused::before { width: 0; height: 0; background: transparent; border-style: solid; border-width: 3px 0 3px 4.5px; border-color: transparent transparent transparent rgba(255, 255, 255, .85); transform: translate(-1.5px, -50%); }
.wkb-pause-btn.is-paused::after { content: none; }

@media (max-width: 820px) {
    #thisWeekWowBanner, #newsThisWeekWowBanner {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }
}
.wkb-m-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background-color: #07101f;
    isolation: isolate;
}
.wkb-m-img-link { display: block; width: 100%; line-height: 0; }
.wkb-m-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Bug real: cerraba de más el @layer vsg-universal abierto en la línea 2,
   dejando el resto del archivo (.wkb-card-buttons/.wkb-card-button,
   incluido el breakpoint 1050px de ahí abajo) sin capa. */
.wkb-card-buttons {
    display:flex;
    align-items:center;
    gap:3px;
}
.wkb-card-button {
    display:inline-grid;
    place-items:center;
    width:18px;
    height:18px;
    padding:0;
    border:1px solid rgba(255,255,255,.24);
    border-radius:5px;
    background:rgba(7,16,31,.52);
    color:rgba(255,255,255,.84);
    font-size:.58rem;
    font-weight:800;
    line-height:1;
    cursor:pointer;
    transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.wkb-card-button:hover { border-color:rgba(255,255,255,.72); color:var(--text-primary); transform:translateY(-1px); }
.wkb-card-button.active {
    border-color:var(--text-primary);
    background:var(--text-primary);
    color:#07101f;
    box-shadow:0 1px 7px rgba(255,255,255,.28);
}
@media (max-width:1050px) {
    .wkb-controls { left:10px; gap:3px; padding:3px 5px; }
    .wkb-card-buttons { gap:2px; }
    .wkb-card-button { width:16px; height:16px; font-size:.53rem; }
}
} /* cierra el @layer vsg-universal reabierto arriba, antes de .wkb-card-buttons */

/* ===== css/mobile-app-foundation.css ===== */

@layer vsg-universal {
@media (max-width: 820px) {
    :root {
        --vsg-mobile-gutter: clamp(10px, 3.6vw, 16px);
        --vsg-mobile-stack-gap: clamp(9px, 2.8vw, 14px);
        --vsg-mobile-control-height: 44px;
        --vsg-mobile-radius: 14px;
        --vsg-mobile-radius-sm: 10px;
    }

    html.vsg-mobile,
    html.vsg-mobile body {
        max-width: 100%;
        overflow-x: clip;
    }

    html.vsg-mobile body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    :where(#mainContent, main, .section-wrapper, .section-container, .account-section-wrapper,
        .universal-top-container, .universal-top-header, .universal-top-content,
        .card, .panel, .modal-content, .modal-body) {
        min-width: 0;
        box-sizing: border-box;
    }

    html.vsg-mobile :where(.section-wrapper, .section-container, .account-section-wrapper) {
        width: min(100% - (var(--vsg-mobile-gutter) * 2), 760px);
        margin-inline: auto;
    }

    html.vsg-mobile .universal-top-container {
        width: 100%;
        max-width: min(100%, var(--vsg-banner-max-width, 1400px));
        margin-inline: auto;
        min-width: 0;
        
        overflow: visible;
    }

    html.vsg-mobile :where(#mainContent, .main-content, .content-container) {
        min-width: 0;
        padding-inline: var(--vsg-mobile-gutter);
    }

    html.vsg-mobile :where(.section-wrapper, .section-container, .content-wrapper) > :where(.card, .panel, .section-card) {
        min-width: 0;
        max-width: 100%;
        border-radius: var(--vsg-mobile-radius);
    }

    html.vsg-mobile :where(.universal-top-header, .universal-top-content) {
        gap: clamp(8px, 2.5vw, 14px);
    }

    html.vsg-mobile :where(.universal-top-title, .universal-top-copy, .section-title, .card-title) {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    html.vsg-mobile :where(.universal-top-actions, .section-actions, .card-actions, .form-actions) {
        width: auto;
        min-width: 0;
        flex-wrap: wrap;
        align-items: center;
        gap: var(--vsg-mobile-stack-gap);
    }

    html.vsg-mobile :where(.universal-top-actions, .section-actions, .card-actions, .form-actions, .toolbar-actions) > :where(button, .btn, .btn-primary, .btn-outline) {
        flex: 0 1 auto;
        min-height: var(--vsg-mobile-control-height);
        max-width: 100%;
    }

    html.vsg-mobile :where(button, .btn, .button, input, select, textarea) {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    html.vsg-mobile :where(input, select, textarea) {
        font-size: max(16px, 1rem);
    }

    html.vsg-mobile :where(.form-control, input, select, textarea) {
        min-height: var(--vsg-mobile-control-height);
        border-radius: var(--vsg-mobile-radius-sm);
    }

    html.vsg-mobile :where(textarea) {
        min-height: 108px;
        line-height: 1.45;
    }

    html.vsg-mobile :where(.filter-bar, .filters-row, .section-tools, .toolbar, .toolbar-actions) {
        min-width: 0;
        gap: 8px;
    }

    html.vsg-mobile :where(.filter-bar, .filters-row, .section-tools) > :where(.form-control, select, input, .filter-control) {
        flex: 1 1 min(220px, 100%);
        min-width: min(220px, 100%);
    }

    html.vsg-mobile :where(.universal-tabs, .tabs, [role="tablist"]) {
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(125, 211, 252, .46) transparent;
        scrollbar-gutter: stable;
        -webkit-overflow-scrolling: touch;
    }

    html.vsg-mobile :where(.universal-tabs, .tabs, [role="tablist"])::-webkit-scrollbar { height: 4px; }
    html.vsg-mobile :where(.universal-tabs, .tabs, [role="tablist"])::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(125, 211, 252, .46); }

    html.vsg-mobile :where(.universal-tab-btn, [role="tab"]) {
        flex: 0 0 auto;
        min-height: var(--vsg-mobile-control-height);
    }

    html.vsg-mobile :where(.data-table, .table-responsive) :where(button, .btn, .btn-primary, .btn-outline, .mg-btn-sm, .rc-btn) {
        min-height: 40px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    html.vsg-mobile :where(.table-responsive, .data-table-wrap, .overflow-scroll) {
        max-width: 100%;
        border-radius: var(--vsg-mobile-radius-sm);
        overscroll-behavior-x: contain;
        scrollbar-gutter: stable;
        scrollbar-color: rgba(125, 211, 252, .48) rgba(2, 8, 23, .38);
        -webkit-overflow-scrolling: touch;
    }

    html.vsg-mobile :where(.data-table) {
        font-size: clamp(.68rem, 2.8vw, .78rem);
    }

    html.vsg-mobile :where(.data-table th, .data-table td) {
        min-width: 0;
        padding: 9px 8px;
        line-height: 1.28;
        overflow-wrap: anywhere;
    }

    html.vsg-mobile :where(.modal-content, .modal .modal-content) {
        width: min(calc(100vw - (var(--vsg-mobile-gutter) * 2)), 680px);
        max-width: min(calc(100vw - (var(--vsg-mobile-gutter) * 2)), 680px);
        max-height: calc(100dvh - 20px);
        margin: max(10px, env(safe-area-inset-top)) auto;
        border-radius: var(--vsg-mobile-radius);
    }

    html.vsg-mobile :where(.modal-header, .modal-body, .modal-footer) {
        min-width: 0;
        padding-inline: var(--vsg-mobile-gutter);
    }

    html.vsg-mobile .mobile-header {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }

    html.vsg-mobile .content-wrapper {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }

    html.vsg-mobile .vsg-menu { display: block !important; }

    html.vsg-mobile .rules-wrapper .rules-categories-tabs { display: none !important; }
    /* Calculadora nunca recibió este mismo tratamiento: el <select> nativo
       de temporada (.calc-season-picker) se quedaba visible en móvil AL
       MISMO TIEMPO que su reemplazo #calcSeasonMenu (.vsg-menu, la regla de
       arriba), mostrando el selector duplicado uno debajo del otro. */
    html.vsg-mobile .calc-season-picker { display: none !important; }
}

@media (max-width: 480px) {
    html.vsg-mobile :where(.universal-top-container, .card, .panel, .section-card) {
        border-radius: 12px;
    }

    html.vsg-mobile :where(.universal-top-title, .section-title, .card-title) {
        font-size: clamp(1.02rem, 5.2vw, 1.28rem);
        line-height: 1.12;
    }

    html.vsg-mobile :where(.data-table th, .data-table td) {
        padding: 8px 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.vsg-mobile *,
    html.vsg-mobile *::before,
    html.vsg-mobile *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 820px) {
    html.vsg-mobile :where(.mobile-header, .vsg-mobile-bottom-nav, .sidebar, .vsg-menu-list, .tw-banner-wrap, .prog-boss-panel, .btn-outline, .universal-tabs, .account-tabs, .vsg-glass-card) {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    html.vsg-mobile :where(#sidebar-snow-container, .snow-particle) {
        display: none !important;
    }

    html.vsg-mobile :where(.gp-banner-effect-glow-pulse, .gp-avatar-wrap.gp-avatar-glow) {
        animation: none !important;
    }

    html.vsg-mobile .gp-banner-effect-particles::after {
        animation: none !important;
    }

    html.vsg-mobile .gp-banner-effect-parallax {
        background-attachment: scroll !important;
    }
}

    .vsg-mobile-bottom-nav {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(60px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0);
        background: linear-gradient(180deg, rgba(8, 14, 30, 0.92) 0%, rgba(4, 7, 18, 0.98) 100%);

        border-top: 1px solid rgba(125, 168, 218, 0.2);
        z-index: var(--z-bottom-nav, 600);
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
    }

    @media (max-width: 820px) {
        .vsg-mobile-bottom-nav {
            display: flex !important;
        }

        #mainContent,
        .content-wrapper {
            padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
        }

        input[type="text"],
        input[type="password"],
        input[type="email"],
        input[type="number"],
        input[type="search"],
        select,
        textarea {
            font-size: 16px !important;
        }

        .vsg-bottom-nav-item,
        button,
        .btn,
        .nav-btn {
            min-height: 20px;
        }
    }

    .vsg-bottom-nav-item {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        background: none;
        border: none;
        color: var(--text-sub);
        font-family: var(--vsg-font-family, inherit);
        font-size: 0.6rem;
        font-weight: 500;
        padding: 5px 1px;
        cursor: pointer;
        transition: color 0.2s ease, transform 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .vsg-bottom-nav-item:active {
        transform: scale(0.92);
    }

    .vsg-bottom-nav-label {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    img.vsg-bottom-nav-icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
        line-height: 1;
        transition: transform 0.2s ease, filter 0.2s ease;
    }
    .vsg-bottom-nav-icon-svg {
        width: 20px;
        height: 20px;
    }

    .vsg-bottom-nav-item.is-active {
        color: var(--primary-color);
        font-weight: 600;
    }

    .vsg-bottom-nav-item.is-active .vsg-bottom-nav-icon {
        transform: translateY(-2px);
        filter: drop-shadow(0 0 6px var(--primary-color));
    }
}
