/* FOG — Diseño Translúcido Apple + Animaciones Suaves */
:root {
    --glass-sidebar: rgba(14, 16, 20, 0.72);
    --glass-panel: rgba(20, 22, 28, 0.62);
    --glass-card: rgba(26, 28, 36, 0.68);
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.24);
    --text-main: #f5f5f7;
    --text-muted: rgba(235, 235, 245, 0.68);
    --accent-blue: #0071e3;
    --danger: #ff453a;
    --ok: #32d74b;
    --ease-apple: cubic-bezier(0.22, 1, 0.36, 1);

    --rarity-common: #8e8e93;
    --rarity-uncommon: #32d74b;
    --rarity-rare: #0a84ff;
    --rarity-epic: #bf5af2;
    --rarity-legendary: #ff9f0a;
    --rarity-marvel: #ff375f;
    --rarity-dc: #0a84ff;
    --rarity-icon: #64d2ff;
    --rarity-starwars: #ffd60a;
    --rarity-dark: #bf5af2;
    --rarity-frozen: #64d2ff;
    --rarity-lava: #ff6961;
    --rarity-slurp: #5ac8fa;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
    background: #0d0f13;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ================= ANIMACIONES SUAVES ESTILO APPLE ================= */
@keyframes ambientDrift {
    0% { transform: scale(1.03) translate3d(0, 0, 0); }
    50% { transform: scale(1.07) translate3d(-1%, -0.8%, 0); }
    100% { transform: scale(1.03) translate3d(0, 0, 0); }
}

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

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

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(50, 215, 75, 0.55); }
    50% { box-shadow: 0 0 0 6px rgba(50, 215, 75, 0); }
}

.tab-enter {
    animation: panelFadeUp 0.42s var(--ease-apple) both;
}

.text-fade-in {
    animation: panelFadeUp 0.36s var(--ease-apple) both;
}

/* ================= FONDO TRANSLÚCIDO GLOBAL ================= */
.ambient-bg-layer {
    position: fixed;
    inset: 0;
    background-image: url('assets/bg-og.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -2;
    animation: ambientDrift 28s ease-in-out infinite;
    will-change: transform;
}

.ambient-bg-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 14, 18, 0.55) 0%, rgba(12, 14, 18, 0.78) 65%, rgba(10, 12, 16, 0.92) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); }

/* ================= ESTRUCTURA LAUNCHER ================= */
.launcher-shell { display: flex; min-height: 100vh; }

.epic-sidebar {
    width: 230px;
    min-width: 230px;
    background: var(--glass-sidebar);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem 0.9rem;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 120;
}

.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.15rem 0.5rem 1.2rem;
    cursor: pointer;
}

/* Logo OG más compacto y elegante */
.og-emblem {
    width: 52px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
    transition: transform 0.35s var(--ease-apple), filter 0.35s ease;
}
.brand-header:hover .og-emblem {
    transform: translateY(-2px) scale(1.06);
    filter: drop-shadow(0 8px 18px rgba(255, 214, 10, 0.25));
}
.brand-sub {
    margin-top: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 0.3rem; }

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.72rem 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: background 0.25s var(--ease-apple), color 0.25s ease, transform 0.25s var(--ease-apple), border-color 0.25s ease;
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    transform: translateX(3px);
}
.nav-btn.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 600;
}

.server-status-box {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.76rem;
    color: var(--text-main);
}

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.dot.online { background: var(--ok); animation: pulseDot 2.4s infinite; }
.dot.offline { background: var(--danger); }

/* ================= TOPBAR ================= */
.launcher-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.epic-topbar {
    height: 68px;
    padding: 0 2.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 90;
    background: linear-gradient(180deg, rgba(14, 16, 20, 0.55) 0%, transparent 100%);
}

.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.topbar-right { display: flex; align-items: center; gap: 0.85rem; }

.vbucks-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(20, 22, 28, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong);
    padding: 0.38rem 0.9rem 0.38rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    transition: transform 0.25s var(--ease-apple), border-color 0.25s ease;
}
.vbucks-pill:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.4); }

.vbuck-coin-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.vbuck-coin-img.sm { width: 17px; height: 17px; }

.profile-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(20, 22, 28, 0.72);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border-strong);
    padding: 0.32rem 0.9rem 0.32rem 0.38rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.84rem;
    transition: transform 0.25s var(--ease-apple), border-color 0.25s ease;
}
.profile-pill:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.4); }

.avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    color: #101014;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= BOTONES ESTILO APPLE ================= */
.btn-apple-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.92);
    color: #101014;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.62rem 1.3rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s var(--ease-apple), background 0.25s ease, box-shadow 0.25s ease;
}
.btn-apple-white:hover {
    background: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.btn-apple-white:active { transform: scale(0.98); }

.btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.62rem 1.3rem;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s var(--ease-apple);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 69, 58, 0.18);
    color: #ff6961;
    border: 1px solid rgba(255, 69, 58, 0.35);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s var(--ease-apple);
}
.btn-danger:hover { background: rgba(255, 69, 58, 0.28); transform: translateY(-1px); }

.btn-block { width: 100%; }

/* ================= VIEWPORT & SHOWCASE DESCUBRIR ================= */
.content-viewport {
    padding: 0.75rem 2.25rem 2.5rem;
    max-width: 1420px;
    width: 100%;
    margin: 0 auto;
}

.discover-showcase {
    display: grid;
    grid-template-columns: minmax(340px, 530px) 1fr 82px;
    align-items: center;
    gap: 2.25rem;
    margin-bottom: 1.5rem;
}

.featured-season-banner {
    width: 100%;
    aspect-ratio: 16 / 9.5;
    border-radius: 18px;
    overflow: hidden;
    background-color: #161820;
    border: 1px solid var(--border-strong);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
    transition: transform 0.45s var(--ease-apple), box-shadow 0.45s var(--ease-apple);
}
.featured-season-banner:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.68);
}

.featured-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease, transform 0.45s var(--ease-apple);
}
.featured-banner-img.img-switching {
    opacity: 0.25;
    transform: scale(1.03);
}

.featured-season-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 400px;
}
.season-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.35rem;
}
.featured-title-main {
    font-size: clamp(2.1rem, 3.3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.featured-title-sub {
    font-size: clamp(1.9rem, 3.1vw, 2.5rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.featured-desc {
    font-size: 0.9rem;
    color: rgba(245, 245, 247, 0.86);
    line-height: 1.55;
}

/* Barra vertical derecha de miniaturas */
.vertical-season-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: rgba(18, 20, 26, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 0.55rem;
    border-radius: 16px;
}

.thumb-pill-btn {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #14161c;
    cursor: pointer;
    padding: 0;
    opacity: 0.62;
    transition: opacity 0.25s ease, transform 0.3s var(--ease-apple), border-color 0.25s ease, box-shadow 0.25s ease;
}
.thumb-pill-btn:hover { opacity: 0.95; transform: scale(1.06); }
.thumb-pill-btn.active {
    opacity: 1;
    border-color: #ffffff;
    transform: scale(1.04);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}
.thumb-pill-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Barra de métricas translúcida */
.apple-metrics-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(24, 26, 33, 0.62);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    margin-bottom: 1.85rem;
    flex-wrap: wrap;
    gap: 0.85rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.apple-metrics-bar:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(28, 30, 38, 0.7);
}
.metric-cell { display: flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; }
.metric-label { font-weight: 600; letter-spacing: 0.04em; color: var(--text-muted); }
.metric-val { font-weight: 700; color: #ffffff; }
.metric-val.ok { color: #ffffff; font-weight: 700; }
.metric-divider { width: 1px; height: 18px; background: var(--border-strong); }

/* Tarjetas inferiores de Temporadas */
.section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}
.epic-caps-heading {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #ffffff;
}
.epic-section-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.epic-sub-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 1.5rem 0 1rem; }

.seasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.season-card {
    cursor: pointer;
    animation: softPopIn 0.45s var(--ease-apple) both;
    transition: transform 0.35s var(--ease-apple);
}
.season-card:hover { transform: translateY(-6px); }
.season-banner {
    aspect-ratio: 16 / 9.2;
    border-radius: 16px;
    overflow: hidden;
    background: #161820;
    border: 1px solid var(--border-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
    transition: border-color 0.3s ease, box-shadow 0.35s var(--ease-apple);
}
.season-card:hover .season-banner {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.62);
}
.season-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease-apple);
}
.season-card:hover .season-cover-img { transform: scale(1.06); }
.season-body { padding: 0.75rem 0.25rem 0; }
.season-body h3 { font-size: 1rem; font-weight: 700; color: #ffffff; margin-bottom: 0.15rem; }
.season-body p { font-size: 0.82rem; }

/* Formularios */
.epic-select-group { display: flex; align-items: center; gap: 0.65rem; }
.epic-select-group label { font-size: 0.82rem; color: var(--text-muted); }
select, input {
    font: inherit;
    font-size: 0.86rem;
    color: #fff;
    background: var(--glass-panel);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    outline: none;
    transition: border-color 0.22s ease, background 0.22s ease;
}
select option { background: #181a20; color: #fff; }
select:focus, input:focus { border-color: #ffffff; background: rgba(30, 32, 40, 0.8); }

/* Tienda y Taquilla */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; }
.cosmetic-card {
    background: var(--glass-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    animation: softPopIn 0.4s var(--ease-apple) both;
    transition: transform 0.3s var(--ease-apple), border-color 0.3s ease, box-shadow 0.3s var(--ease-apple);
}
.cosmetic-card::after {
    content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--rarity, var(--accent-blue));
}
.cosmetic-card:hover {
    transform: translateY(-5px) scale(1.015);
    border-color: var(--border-strong);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}
.cosmetic-img-wrap {
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 40%, rgba(255,255,255,0.08) 0%, transparent 78%);
    padding: 0.75rem;
}
.cosmetic-img-wrap img {
    width: 100%; height: 100%; object-fit: contain;
    transition: transform 0.35s var(--ease-apple);
}
.cosmetic-card:hover .cosmetic-img-wrap img { transform: scale(1.06); }
.cosmetic-info { padding: 0.85rem 0.95rem; border-top: 1px solid var(--border); }
.cosmetic-name { font-size: 0.86rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cosmetic-price { display: flex; align-items: center; gap: 0.4rem; color: var(--text-main); font-size: 0.82rem; font-weight: 600; margin-top: 0.3rem; }

.rarity-common { --rarity: var(--rarity-common); }
.rarity-uncommon { --rarity: var(--rarity-uncommon); }
.rarity-rare { --rarity: var(--rarity-rare); }
.rarity-epic { --rarity: var(--rarity-epic); }
.rarity-legendary { --rarity: var(--rarity-legendary); }
.rarity-marvel { --rarity: var(--rarity-marvel); }
.rarity-dc { --rarity: var(--rarity-dc); }
.rarity-icon { --rarity: var(--rarity-icon); }
.rarity-starwars { --rarity: var(--rarity-starwars); }
.rarity-dark { --rarity: var(--rarity-dark); }
.rarity-frozen { --rarity: var(--rarity-frozen); }
.rarity-lava { --rarity: var(--rarity-lava); }
.rarity-slurp { --rarity: var(--rarity-slurp); }

/* Pase de Batalla */
.bp-list { display: flex; flex-direction: column; gap: 0.65rem; }
.bp-tier-row {
    display: grid;
    grid-template-columns: 105px 1fr 1.6fr;
    align-items: center;
    gap: 1.25rem;
    padding: 0.9rem 1.25rem;
    background: var(--glass-panel);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.25s ease, transform 0.25s var(--ease-apple);
}
.bp-tier-row:hover { border-color: var(--border-strong); transform: translateX(3px); }
.bp-tier-badge {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    text-align: center;
}
.bp-track { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.bp-track-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); width: 100%; }
.bp-track-label.paid { color: #64d2ff; }

.bp-mini-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.9rem 0.45rem 0.5rem;
    border-radius: 10px;
    background: rgba(14, 16, 22, 0.65);
    border: 1px solid var(--border);
    border-left: 3px solid var(--rarity, var(--accent-blue));
    min-width: 215px;
    transition: transform 0.25s var(--ease-apple);
}
.bp-mini-item:hover { transform: translateY(-2px); }
.bp-mini-item img {
    width: 44px;
    height: 44px;
    min-width: 44px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
}
.bp-mini-meta { display: flex; flex-direction: column; }
.bp-mini-name { font-weight: 600; font-size: 0.84rem; color: #fff; }

/* Cuenta, Amigos y Admin */
.epic-panel {
    background: var(--glass-panel);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
}
.account-grid { display: grid; grid-template-columns: 340px 1fr; gap: 1.5rem; align-items: start; }
.profile-summary { display: flex; flex-direction: column; }
.profile-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.profile-row:last-child { border-bottom: 0; }
.vbuck-text { color: #64d2ff; font-weight: 700; }
.divider { height: 1px; background: var(--border); margin: 1.35rem 0; border: 0; }
.epic-form { display: flex; flex-direction: column; gap: 0.75rem; }

.friend-add-bar { display: flex; gap: 0.65rem; margin-bottom: 1.5rem; }
.friend-add-bar input { flex: 1; }
.friends-list { display: flex; flex-direction: column; gap: 0.55rem; }
.friend-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.85rem 1rem; background: rgba(14, 16, 22, 0.6); border: 1px solid var(--border); border-radius: 10px;
    transition: border-color 0.22s ease;
}
.friend-row:hover { border-color: var(--border-strong); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; margin-top: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th, .admin-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--text-muted); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(14, 16, 22, 0.7); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-vbuck-form { display: flex; gap: 0.5rem; }
.admin-vbuck-form input { width: 110px; padding: 0.45rem 0.65rem; }

/* Modal */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(14px);
    display: flex; align-items: center; justify-content: center; z-index: 200; padding: 1rem;
    animation: panelFadeUp 0.25s var(--ease-apple);
}
.modal-box {
    position: relative; width: 100%; max-width: 400px; background: rgba(20, 22, 28, 0.9);
    border: 1px solid var(--border-strong); border-radius: 20px; padding: 2.25rem 2rem;
    animation: softPopIn 0.3s var(--ease-apple);
}
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; }
.modal-close:hover { color: #fff; }
.modal-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.auth-tab {
    flex: 1; background: none; border: 0; color: var(--text-muted); font: inherit; font-size: 0.84rem; font-weight: 600;
    padding: 0.75rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.auth-tab.active { color: #fff; border-bottom-color: #ffffff; }

/* Toasts & Responsive */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 300; }
.toast {
    background: rgba(24, 26, 34, 0.92); backdrop-filter: blur(16px); border: 1px solid var(--border-strong); border-left: 3px solid #ffffff;
    color: #fff; padding: 0.85rem 1.1rem; border-radius: 10px; font-size: 0.85rem; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    animation: softPopIn 0.3s var(--ease-apple);
}
.toast.error { border-left-color: var(--danger); }

.menu-toggle { display: none; background: var(--glass-panel); border: 1px solid var(--border); color: #fff; border-radius: 8px; padding: 0.4rem 0.65rem; cursor: pointer; }

@media (max-width: 1100px) {
    .discover-showcase { grid-template-columns: 1fr; }
    .vertical-season-thumbs { flex-direction: row; width: fit-content; }
    .thumb-pill-btn { width: 64px; height: 64px; }
    .seasons-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .menu-toggle { display: inline-block; }
    .epic-sidebar { position: fixed; left: -250px; top: 0; bottom: 0; transition: left 0.3s var(--ease-apple); background: rgba(14, 16, 20, 0.95); }
    .epic-sidebar.open { left: 0; }
    .epic-topbar { padding: 0 1rem; }
    .content-viewport { padding: 1rem; }
    .account-grid, .bp-tier-row { grid-template-columns: 1fr; }
}

/* ================= PASE DE BATALLA ESTILO OG ================= */
.og-bp-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.og-bp-board-wrap { background: linear-gradient(180deg, #2a6fd6 0%, #1d4fa8 100%); border-radius: 14px; padding: 1rem; color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.og-bp-header { display: grid; grid-template-columns: auto auto 1fr auto; gap: 1rem; align-items: center; margin-bottom: .9rem; }
.og-bp-tier-box { background: #13306b; border: 2px solid rgba(255,255,255,.25); border-radius: 8px; padding: .35rem .8rem; text-align: center; min-width: 74px; }
.og-bp-tier-lbl { display: block; font-size: .65rem; letter-spacing: .12em; opacity: .8; }
.og-bp-tier-num { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1; }
.og-bp-stars-col { display: flex; flex-direction: column; gap: .3rem; }
.og-bp-stars-top { font-size: .85rem; font-weight: 600; display: flex; gap: .35rem; align-items: center; }
.og-star-icon { color: #ffd84a; }
.og-bp-segments { display: flex; gap: 3px; }
.og-bp-segments .seg { width: 14px; height: 8px; background: rgba(0,0,0,.35); border-radius: 2px; }
.og-bp-segments .seg.filled { background: #ffd84a; }
.og-bp-title-center { text-align: center; }
.og-bp-season-heading { font-size: 1.7rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.og-bp-season-sub { font-size: .72rem; letter-spacing: .12em; opacity: .85; }
.og-bp-controls-right { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.og-bp-select { background: #13306b; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: .35rem .6rem; font-size: .8rem; }
.og-bp-page-indicator { font-size: .78rem; font-weight: 600; letter-spacing: .06em; }

.og-bp-carousel-row { display: flex; align-items: center; gap: .5rem; }
.og-bp-arrow { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; padding: .25rem; opacity: .9; transition: transform .15s, opacity .15s; }
.og-bp-arrow:hover { transform: scale(1.15); opacity: 1; }
.og-bp-arrow:disabled { opacity: .25; cursor: default; transform: none; }
.og-bp-grid-frame { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.og-bp-row { display: grid; grid-template-columns: 72px 1fr; gap: 6px; }
.og-bp-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.og-bp-tier-header-cell { background: rgba(0,0,0,.25); border-radius: 4px; text-align: center; font-weight: 700; font-size: .85rem; padding: .15rem 0; }
.og-bp-tier-header-cell.reached { background: #ffd84a; color: #13306b; }
.og-bp-track-emblem { border-radius: 6px; display: flex; align-items: center; justify-content: center; min-height: 118px; }
.og-bp-track-emblem.spacer { min-height: 0; }
.og-bp-track-emblem.silver { background: linear-gradient(180deg, #8fb6e0, #5d8bc2); }
.og-bp-track-emblem.gold { background: linear-gradient(180deg, #f3c34a, #d7962a); }
.emblem-shield { display: flex; flex-direction: column; align-items: center; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.emblem-shield span { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.emblem-shield small { font-size: .6rem; letter-spacing: .12em; font-weight: 700; }

.og-bp-cell { min-height: 118px; border-radius: 6px; padding: 5px; display: grid; gap: 4px; align-content: start; }
.og-bp-free-row .og-bp-cell { background: rgba(170, 205, 240, .55); }
.og-bp-paid-row .og-bp-cell { background: rgba(232, 178, 70, .55); }
.og-bp-cell.empty-cell { opacity: .45; }
.og-bp-cell.single-grid { grid-template-columns: 1fr; }
.og-bp-cell.multi-grid { grid-template-columns: 1fr 1fr; }

.og-reward-tile { --rc: #2f86e8; position: relative; padding: 0; cursor: pointer; border-radius: 4px; overflow: hidden;
  border: 2px solid var(--rc); background: radial-gradient(circle at 50% 30%, var(--rc), #10224a 120%);
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; transition: transform .12s, box-shadow .12s; }
.og-reward-tile img { width: 92%; height: 92%; object-fit: contain; }
.og-reward-tile:hover { transform: translateY(-2px); }
.og-reward-tile.selected { box-shadow: 0 0 0 3px #fff, 0 0 18px rgba(255,255,255,.6); }
.og-tile-check { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; background: #3fbf3f; color: #fff; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.og-tile-qty { position: absolute; bottom: 2px; right: 4px; font-size: .72rem; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; }
.rarity-tile-common { --rc: #8a8a8a; } .rarity-tile-uncommon { --rc: #5fae3a; } .rarity-tile-rare { --rc: #2f86e8; }
.rarity-tile-epic { --rc: #a24be0; } .rarity-tile-legendary { --rc: #e08a2a; } .rarity-tile-marvel { --rc: #d93a3f; }
.rarity-tile-dc { --rc: #3a7be0; } .rarity-tile-icon { --rc: #3fb6c4; } .rarity-tile-starwars { --rc: #b8a62c; }
.rarity-tile-dark { --rc: #b34ee6; } .rarity-tile-frozen { --rc: #6cc3e0; } .rarity-tile-lava { --rc: #e8663d; } .rarity-tile-slurp { --rc: #2fbfd0; }

.og-bp-footer-bar { display: flex; align-items: center; gap: .9rem; margin-top: .9rem; flex-wrap: wrap; }
.og-bp-footer-badge { background: #13306b; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: .4rem .8rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.og-bp-footer-hint { font-size: .78rem; opacity: .85; }

/* Vista previa a la derecha */
.og-bp-preview-stage { position: sticky; top: 80px; display: flex; flex-direction: column; align-items: center; }
.og-stage-artwork-wrap { position: relative; width: 100%; height: 420px; display: flex; align-items: flex-end; justify-content: center; }
.og-stage-glow { position: absolute; inset: 15% 10% 5%; border-radius: 50%; background: radial-gradient(circle, rgba(59,143,240,.45), transparent 70%); filter: blur(10px); }
.og-stage-img { position: relative; max-height: 100%; max-width: 100%; object-fit: contain; animation: ogEntra .35s ease; }
@keyframes ogEntra { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.og-pedestal-base { width: 70%; height: 26px; margin-top: -14px; position: relative; }
.og-pedestal-ring { width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.22), rgba(255,255,255,.04) 70%); border: 1px solid rgba(255,255,255,.18); }
.og-inspect-card { width: 100%; margin-top: 1rem; border-radius: 8px; overflow: hidden; background: #13306b; box-shadow: 0 12px 30px rgba(0,0,0,.35); color: #fff; }
.og-inspect-banner { padding: .55rem .9rem; background: #e08a2a; }
.og-inspect-meta { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .95; }
.og-inspect-name { font-size: 1.35rem; font-weight: 800; text-transform: uppercase; line-height: 1.15; }
.og-inspect-desc-box { padding: .75rem .9rem; font-size: .85rem; line-height: 1.45; opacity: .92; }
.og-inspect-tier-tag { display: inline-block; margin-top: .45rem; font-size: .7rem; font-weight: 700; letter-spacing: .08em; padding: .15rem .5rem; border-radius: 4px; background: rgba(255,255,255,.15); }
.og-emblem { display: inline-flex; }

@media (max-width: 1000px) {
  .og-bp-workspace { grid-template-columns: 1fr; }
  .og-bp-preview-stage { position: static; order: -1; }
  .og-stage-artwork-wrap { height: 300px; }
}
@media (max-width: 700px) {
  .og-bp-header { grid-template-columns: auto 1fr; }
  .og-bp-title-center { grid-column: 1 / -1; order: -1; }
  .og-bp-grid-frame { overflow-x: auto; }
  .og-bp-cells { grid-template-columns: repeat(7, 74px); }
  .og-bp-row { grid-template-columns: 56px auto; }
}

/* Cartel y brillo por rareza */
.og-inspect-desc-box { white-space: pre-line; }
.rarity-bg-common { background: #6f6f6f; } .rarity-bg-uncommon { background: #4c9a2a; } .rarity-bg-rare { background: #2a72d0; } .rarity-bg-epic { background: #8b3cc9; } .rarity-bg-legendary { background: #d07a1f; } .rarity-bg-marvel { background: #c22f34; } .rarity-bg-dc { background: #2f66c4; } .rarity-bg-icon { background: #2b9aa7; } .rarity-bg-starwars { background: #9a8b20; } .rarity-bg-dark { background: #9a3ccc; } .rarity-bg-frozen { background: #4aa8c8; } .rarity-bg-lava { background: #cf5530; } .rarity-bg-slurp { background: #1fa3b3; }
.rarity-glow-common { background: radial-gradient(circle, rgba(160,160,160,.45), transparent 70%); } .rarity-glow-uncommon { background: radial-gradient(circle, rgba(95,174,58,.5), transparent 70%); } .rarity-glow-rare { background: radial-gradient(circle, rgba(47,134,232,.5), transparent 70%); } .rarity-glow-epic { background: radial-gradient(circle, rgba(162,75,224,.55), transparent 70%); } .rarity-glow-legendary { background: radial-gradient(circle, rgba(224,138,42,.55), transparent 70%); }
.og-stage-img.stage-switching { opacity: 0; transform: translateY(8px); transition: opacity .14s, transform .14s; }
.og-inspect-card.text-fade-in { animation: ogEntra .3s ease; }

/* Pase: centrado y mas abajo; desplegable de temporadas */
#tab-pase { padding-top: 2.5rem; }
.og-bp-workspace { max-width: 1320px; margin: 0 auto; }
.og-bp-select { appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; padding: .5rem 2.2rem .5rem .9rem; border-radius: 999px; border: 2px solid rgba(255,255,255,.35); background: #13306b url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round'/></svg>") no-repeat right .85rem center; box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: border-color .15s, background-color .15s; }
.og-bp-select:hover { border-color: #ffd84a; background-color: #183a80; }
.og-bp-select:focus { outline: none; border-color: #ffd84a; }
.og-bp-select option { background: #13306b; color: #fff; text-transform: none; }
