/* =============================================
   GLADIATOR PROFILE / RANKING / HOME CSS
   Extiende el sistema de exam.css
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Rubik:wght@400;600;800&family=Inconsolata:wght@400;700&display=swap');

:root {
    --neon-cyan: #65E6FF;
    --neon-cyan-glow: rgba(101, 230, 255, 0.45);
    --neon-cyan-dim: rgba(101, 230, 255, 0.1);
    --deep-purple: #0f0c29;
    --card-bg: rgba(15, 12, 41, 0.6);
    --card-border: rgba(101, 230, 255, 0.15);
    --success: #00ff88;
    --danger: #FF3D5A;
    --warning: #FFD447;
    --gold: #FFD447;
    --text-muted: rgba(255,255,255,0.5);
    --text-dim: rgba(255,255,255,0.75);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Rubik', sans-serif;
    background: #000;
    color: #e0e0e0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(101, 230, 255, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(101, 230, 255, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #000 0%, #060814 100%);
    pointer-events: none;
    z-index: 0;
}

/* -- NAV ----------------------------------- */
.site-header {
    background: rgba(9, 6, 28, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(101, 230, 255, 0.18);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 64px;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 32px;
    border-right: 1px solid rgba(101, 230, 255, 0.1);
    margin-right: 24px;
}

.logo h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.tagline {
    color: var(--neon-cyan);
    font-size: 0.65rem;
    font-family: 'Inconsolata', monospace;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-top: 4px;
    font-weight: 700;
}

/* Navegación central */
.header-nav-links {
    display: flex;
    align-items: stretch;
    flex: 1;
    gap: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    border-bottom-color: var(--neon-cyan);
}

.nav-link.active {
    color: var(--neon-cyan);
}

.nav-icon { font-size: 0.9rem; }

/* Lado derecho: user */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 24px;
    border-left: 1px solid rgba(101, 230, 255, 0.1);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(101, 230, 255, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid rgba(101, 230, 255, 0.25);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan-glow);
}

.user-name {
    font-family: 'Inconsolata', monospace;
    font-size: 0.85rem;
    color: #fff;
}

/* -- BOTONES ------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), #00d4ff);
    color: var(--deep-purple);
    box-shadow: 0 4px 20px var(--neon-cyan-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px var(--neon-cyan-glow);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.3);
}

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* -- LAYOUT -------------------------------- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

/* -- FOOTER -------------------------------- */
.site-footer {
    background: rgba(9, 6, 28, 0.85);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(101, 230, 255, 0.15);
    text-align: center;
    padding: 28px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.footer-links a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: text-shadow 0.2s;
}
.footer-links a:hover { text-shadow: 0 0 8px var(--neon-cyan-glow); }

/* -- SECTION LABEL ------------------------- */
.section-label {
    font-family: 'Inconsolata', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--neon-cyan);
    opacity: 0.7;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-label::before { content: '//'; opacity: 0.5; }

.section-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2rem;
    color: #fff;
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 32px;
}

/* -- CARD BASE ----------------------------- */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.25s;
}
.card:hover { border-color: rgba(101, 230, 255, 0.3); }

/* ══════════════════════════════════════════
   HOME PAGE
   ══════════════════════════════════════════ */

/* Hero */
.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 56px;
    align-items: center;
    min-height: 300px;
}

.hero-left { padding: 16px 0; }

.hero-season-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(101, 230, 255, 0.1);
    border: 1px solid rgba(101, 230, 255, 0.3);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: 'Inconsolata', monospace;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.season-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
    display: block;
    font-family: 'Archivo Black', sans-serif;
    font-size: 4rem;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -3px;
    white-space: nowrap !important;
    word-break: keep-all;
    overflow-wrap: normal;
    margin-bottom: 20px;
}

.hero-title .hero-word {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: baseline;
    gap: 0;
    white-space: nowrap !important;
}

.hero-title .line-1 { color: #fff; display: inline-block !important; }
.hero-title .line-2 {
    color: transparent;
    -webkit-text-stroke: 2px var(--neon-cyan);
    display: inline-block !important;
    text-shadow: 0 0 30px var(--neon-cyan-glow);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 420px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Podio lado derecho */
.hero-podium {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.podium-title {
    font-family: 'Inconsolata', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.podium-player {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.25s;
    animation: slideIn 0.5s ease both;
}

.podium-player:nth-child(2) { animation-delay: 0.05s; }
.podium-player:nth-child(3) { animation-delay: 0.10s; }
.podium-player:nth-child(4) { animation-delay: 0.15s; }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.podium-player.rank-1 {
    border-color: rgba(255, 212, 71, 0.3);
    background: rgba(255, 212, 71, 0.05);
}

.podium-rank {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.4rem;
    min-width: 36px;
    text-align: center;
}

.podium-player.rank-1 .podium-rank { color: #FFD447; }
.podium-player.rank-2 .podium-rank { color: #aaa; }
.podium-player.rank-3 .podium-rank { color: #cd7f32; }

.podium-info { flex: 1; }
.podium-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}
.podium-sub {
    font-family: 'Inconsolata', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.podium-elo {
    font-family: 'Inconsolata', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

/* Stats strip */
.home-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 56px;
}

.stat-strip-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s;
    animation: fadeUp 0.5s ease both;
}

.stat-strip-card:nth-child(2) { animation-delay: 0.08s; }
.stat-strip-card:nth-child(3) { animation-delay: 0.16s; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-strip-card:hover {
    border-color: rgba(101, 230, 255, 0.25);
    background: rgba(101, 230, 255, 0.04);
}

.strip-icon {
    font-size: 2rem;
    line-height: 1;
}

.strip-value {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.8rem;
    color: var(--neon-cyan);
    letter-spacing: -1px;
    line-height: 1;
}

.strip-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Quick links */
.home-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-link-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px 24px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.home-link-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.home-link-card:hover {
    border-color: rgba(101, 230, 255, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.home-link-card:hover::before { opacity: 1; }

.link-card-icon { font-size: 2.2rem; }
.link-card-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.link-card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.link-card-arrow {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.25s;
    margin-top: auto;
}
.home-link-card:hover .link-card-arrow { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════ */

/* Sin datos de juego */
.no-gamedata {
    text-align: center;
    padding: 80px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    max-width: 560px;
    margin: 0 auto;
}
.no-gamedata h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.no-gamedata p { color: var(--text-muted); line-height: 1.6; }

/* Profile header */
.profile-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px 36px;
    margin-bottom: 28px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-avatar-wrap {
    position: relative;
    width: 90px;
    height: 90px;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan-glow);
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: rgba(101,230,255,0.1);
    border: 3px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--neon-cyan);
}

.profile-level-badge {
    position: absolute;
    bottom: -4px; right: -4px;
    background: linear-gradient(135deg, var(--neon-cyan), #00d4ff);
    color: var(--deep-purple);
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

.profile-identity { }

.profile-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.profile-share-label {
    font-family: 'Inconsolata', monospace;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
}
.profile-share-label strong {
    color: var(--neon-cyan);
    letter-spacing: .05em;
}
.btn-share {
    background: rgba(101,230,255,0.08);
    border: 1px solid rgba(101,230,255,0.25);
    color: var(--neon-cyan);
    border-radius: 6px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-family: 'Inconsolata', monospace;
    cursor: pointer;
    transition: background .2s;
}
.btn-share:hover { background: rgba(101,230,255,0.18); }

.profile-name {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2.4rem;
    color: #fff;
    letter-spacing: -1.5px;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 6px;
}

.profile-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    margin-top: 8px;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-family: 'Inconsolata', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-clan {
    background: rgba(101,230,255,0.12);
    border: 1px solid rgba(101,230,255,0.3);
    color: var(--neon-cyan);
}

/* XP bar */
.xp-bar-wrap { margin-top: 4px; }
.xp-bar-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'Inconsolata', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.xp-bar-track {
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
    width: 280px;
    max-width: 100%;
}
.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), #00d4ff);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--neon-cyan-glow);
    transition: width 1s ease;
}

/* ELO rank right side */
.profile-elo-card {
    text-align: center;
    padding: 20px 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    min-width: 140px;
}

.elo-rank-name {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.elo-number {
    font-family: 'Inconsolata', monospace;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
    line-height: 1;
}
.elo-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    animation: fadeUp 0.5s ease 0.1s both;
}

.stat-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 22px 18px;
    text-align: center;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
}

.stat-card.kills::before    { background: linear-gradient(90deg, transparent, #FF3D5A, transparent); }
.stat-card.deaths::before   { background: linear-gradient(90deg, transparent, #8b949e, transparent); }
.stat-card.headshots::before{ background: linear-gradient(90deg, transparent, #FFD447, transparent); }
.stat-card.kd::before       { background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent); }
.stat-card.wins::before     { background: linear-gradient(90deg, transparent, #3fb950, transparent); }
.stat-card.losses::before   { background: linear-gradient(90deg, transparent, #FF3D5A, transparent); }
.stat-card.winrate::before  { background: linear-gradient(90deg, transparent, #3fb950, transparent); }
.stat-card.accuracy::before { background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent); }

.stat-card:hover {
    border-color: rgba(101,230,255,0.2);
    background: rgba(101,230,255,0.03);
    transform: translateY(-2px);
}

.stat-icon { font-size: 1.6rem; margin-bottom: 8px; opacity: 0.8; }
.stat-value {
    font-family: 'Inconsolata', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

/* Dos columnas */
.profile-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
    animation: fadeUp 0.5s ease 0.2s both;
}

/* Partidas recientes */
.recent-matches { animation: fadeUp 0.5s ease 0.3s both; }

.match-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.match-item:last-child { border-bottom: none; }

.match-result {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arquivo Black', sans-serif;
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.match-result.win {
    background: rgba(0,255,136,0.12);
    color: var(--success);
    border: 1px solid rgba(0,255,136,0.3);
}

.match-result.loss {
    background: rgba(255,61,90,0.12);
    color: var(--danger);
    border: 1px solid rgba(255,61,90,0.3);
}

.match-info { flex: 1; }
.match-opponent {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}
.match-meta {
    font-family: 'Inconsolata', monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.match-elo {
    font-family: 'Inconsolata', monospace;
    font-weight: 700;
    font-size: 0.9rem;
}
.match-elo.positive { color: var(--success); }
.match-elo.negative { color: var(--danger); }

/* Modos de juego */
.mode-item {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mode-item:last-child { border-bottom: none; }

.mode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.mode-name {
    font-family: 'Inconsolata', monospace;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mode-record {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.mode-bar-track {
    height: 4px;
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
    overflow: hidden;
}
.mode-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), #00d4ff);
    border-radius: 2px;
}

/* ══════════════════════════════════════════
   RANKING PAGE
   ══════════════════════════════════════════ */

.ranking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    animation: fadeUp 0.4s ease;
}

.leaderboard-table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    animation: fadeUp 0.5s ease 0.1s both;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
}

.lb-table th {
    padding: 14px 20px;
    text-align: left;
    font-family: 'Inconsolata', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lb-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
    vertical-align: middle;
}

.lb-table tr:last-child td { border-bottom: none; }

.lb-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.lb-table tr.top-1 td { background: rgba(255,212,71,0.04); }
.lb-table tr.top-2 td { background: rgba(192,192,192,0.03); }
.lb-table tr.top-3 td { background: rgba(205,127,50,0.03); }

.lb-rank {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.3rem;
    min-width: 50px;
    text-align: center;
}
.lb-rank.r1 { color: #FFD447; }
.lb-rank.r2 { color: #aaa; }
.lb-rank.r3 { color: #cd7f32; }
.lb-rank.rn { color: var(--text-muted); font-size: 1rem; font-family: 'Inconsolata', monospace; }

.lb-player-name {
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.lb-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 50px;
    font-family: 'Inconsolata', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 3px;
}

.lb-elo {
    font-family: 'Inconsolata', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

.lb-wl {
    font-family: 'Inconsolata', monospace;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.lb-mode {
    font-family: 'Inconsolata', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* -- RESPONSIVE ---------------------------- */
@media (max-width: 900px) {
    .home-hero { grid-template-columns: 1fr; }
    .home-stats-strip, .home-links { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-hero { grid-template-columns: auto 1fr; }
    .profile-elo-card { display: none; }
    .profile-columns { grid-template-columns: 1fr; }
    .header-nav-links .nav-link span { display: none; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2.8rem; }
    .home-links, .home-stats-strip { grid-template-columns: 1fr; }
    .lb-table th:nth-child(n+4), .lb-table td:nth-child(n+4) { display: none; }
    .profile-hero { grid-template-columns: 1fr; text-align: center; }
    .profile-avatar-wrap { margin: 0 auto; }
    .xp-bar-track { width: 100%; }
}


/* =============================================
   SHOP — Tienda VIP
   ============================================= */

.shop-main {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.balance-strip {
    background: rgba(101,230,255,0.06);
    border: 1px solid rgba(101,230,255,0.18);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 2.5rem;
}
.balance-inner { display: flex; gap: 2rem; flex-wrap: wrap; }
.balance-item { display: flex; align-items: center; gap: 0.5rem; }
.balance-icon { font-size: 1.1rem; }
.balance-label { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .06em; }
.balance-value { font-family: 'Inconsolata', monospace; font-size: 1.15rem; font-weight: 700; color: var(--neon-cyan); }
.vip-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.vip-dot.vip-bronze { background: #cd7f32; box-shadow: 0 0 6px #cd7f32; }
.vip-dot.vip-silver { background: #c0c0c0; box-shadow: 0 0 6px #c0c0c0; }
.vip-dot.vip-gold   { background: #FFD447; box-shadow: 0 0 6px #FFD447; }

.trial-banner {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    margin-top: 0.75rem; padding: 0.6rem 1rem;
    background: rgba(101,230,255,0.08); border: 1px solid rgba(101,230,255,0.3);
    border-radius: 8px; font-size: 0.9rem;
}
.trial-icon { font-size: 1.1rem; }
.trial-timer { font-family: 'Inconsolata', monospace; font-size: 1.1rem; font-weight: 700; color: var(--neon-cyan); min-width: 3.5rem; }
.trial-hint { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }
.trial-hint code { background: rgba(255,255,255,0.08); padding: 0.15em 0.4em; border-radius: 4px; font-family: 'Inconsolata', monospace; color: var(--neon-cyan); }

.shop-login-notice { text-align: center; padding: 1.5rem; margin-bottom: 2rem; }

.shop-section { margin-bottom: 3rem; }
.section-heading { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-title { font-family: 'Archivo Black', sans-serif; font-size: 1.4rem; color: #fff; display: flex; align-items: center; gap: 0.75rem; }
.section-sub { color: var(--text-muted); font-size: 0.85rem; }
.section-badge { font-size: 0.65rem; font-weight: 800; letter-spacing: .1em; padding: 0.25em 0.6em; border-radius: 4px; }
.weekly-badge { background: rgba(255,212,71,0.15); color: #FFD447; border: 1px solid rgba(255,212,71,0.3); }

.catalog-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-left: auto; }
.filter-btn { padding: 0.35rem 0.9rem; border: 1px solid rgba(101,230,255,0.2); background: transparent; color: var(--text-muted); border-radius: 20px; font-size: 0.8rem; cursor: pointer; transition: all .2s; }
.filter-btn:hover, .filter-btn.active { border-color: var(--neon-cyan); color: var(--neon-cyan); background: rgba(101,230,255,0.08); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.shop-grid-weekly { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.shop-card {
    position: relative; background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 12px; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.shop-card:hover { border-color: rgba(101,230,255,0.4); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(101,230,255,0.08); }
.shop-card.owned { border-color: rgba(0,255,136,0.25); background: rgba(0,255,136,0.03); }
.shop-card.exclusive { border-color: rgba(255,212,71,0.3); }
.shop-card.hidden { display: none; }

.card-exclusive-ribbon { position: absolute; top: 12px; right: -22px; background: #FFD447; color: #000; font-size: 0.6rem; font-weight: 800; letter-spacing: .08em; padding: 0.2em 2em; transform: rotate(35deg); z-index: 2; }

.card-img-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: rgba(0,0,0,0.4); overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.shop-card:hover .card-img { transform: scale(1.04); }

.card-tier-badge { position: absolute; bottom: 6px; left: 6px; font-size: 0.65rem; font-weight: 700; padding: 0.2em 0.5em; border-radius: 4px; letter-spacing: .05em; }
.card-tier-badge.tier-bronze { background: rgba(205,127,50,.85); color: #fff; }
.card-tier-badge.tier-silver { background: rgba(192,192,192,.85); color: #000; }
.card-tier-badge.tier-gold   { background: rgba(255,212,71,.85);  color: #000; }

.card-body { padding: 0.85rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-name { font-size: 0.95rem; font-weight: 700; color: #fff; line-height: 1.2; }
.card-tier-req { font-size: 0.7rem; font-weight: 600; letter-spacing: .05em; }
.card-tier-req.tier-req-bronze { color: #cd7f32; }
.card-tier-req.tier-req-silver { color: #c0c0c0; }
.card-tier-req.tier-req-gold   { color: #FFD447; }

.card-price-row { margin-top: auto; }
.card-price { font-family: 'Inconsolata', monospace; font-size: 1rem; font-weight: 700; color: var(--neon-cyan); }
.card-price-null { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }

.card-actions { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.78rem; border-radius: 6px; font-weight: 600; border: none; cursor: pointer; transition: all .2s; flex: 1; text-align: center; }
.btn-trial { background: rgba(101,230,255,0.1); border: 1px solid rgba(101,230,255,0.3); color: var(--neon-cyan); }
.btn-trial:hover:not(:disabled) { background: rgba(101,230,255,0.2); border-color: var(--neon-cyan); }
.btn-buy { background: var(--neon-cyan); color: #000; font-weight: 700; }
.btn-buy:hover:not(:disabled) { background: #fff; box-shadow: 0 0 12px rgba(101,230,255,0.4); }
.btn-disabled { opacity: 0.35; cursor: not-allowed; }
.owned-badge { font-size: 0.78rem; color: var(--success); font-weight: 600; }

.no-results { color: var(--text-muted); text-align: center; padding: 2rem; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 1000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.hidden { display: none; }
.modal-box { position: relative; background: #0d0d1e; border: 1px solid rgba(101,230,255,0.25); border-radius: 16px; padding: 2rem; max-width: 420px; width: 90%; text-align: center; }
.modal-close { position: absolute; top: 0.75rem; right: 0.75rem; background: transparent; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; }
.modal-img-wrap { margin-bottom: 1rem; }
.modal-img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; }
.modal-title { font-family: 'Archivo Black', sans-serif; font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; }
.modal-price-line { font-family: 'Inconsolata', monospace; font-size: 1.3rem; color: var(--neon-cyan); margin-bottom: 0.35rem; }
.modal-balance-line { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: center; }
.modal-actions .btn { padding: 0.6rem 1.5rem; border-radius: 8px; font-weight: 700; font-size: 0.9rem; cursor: pointer; border: none; transition: all .2s; }
.modal-actions .btn-primary { background: var(--neon-cyan); color: #000; }
.modal-actions .btn-primary:hover { background: #fff; }
.modal-actions .btn-secondary { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.modal-actions .btn-secondary:hover { background: rgba(255,255,255,0.15); }

.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); padding: 0.75rem 1.5rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; z-index: 2000; max-width: 90%; text-align: center; animation: toastIn .2s ease; }
.toast.hidden { display: none; }
.toast-success { background: rgba(0,255,136,0.15); border: 1px solid #00ff88; color: #00ff88; }
.toast-error   { background: rgba(255,61,90,0.15); border: 1px solid #FF3D5A; color: #FF3D5A; }
.toast-info    { background: rgba(101,230,255,0.1); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); }
@keyframes toastIn { from { opacity:0; transform: translateX(-50%) translateY(10px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }

@media (max-width: 640px) {
    .shop-grid, .shop-grid-weekly { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .section-heading { flex-direction: column; gap: 0.75rem; }
    .catalog-filters { margin-left: 0; }
}


/* =============================================
   XP EXCHANGE CARD
   ============================================= */

.xp-exchange-card  { margin-top: 2rem; }
.owned-items-card  { margin-top: 2rem; }

.xp-exchange-body {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.xp-exchange-info { flex: 1; min-width: 220px; }

.xp-rate-badge {
    display: inline-block;
    background: rgba(101,230,255,0.1);
    border: 1px solid rgba(101,230,255,0.25);
    color: var(--neon-cyan);
    font-family: 'Inconsolata', monospace;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.4em 1em;
    border-radius: 6px;
    margin-bottom: 0.6rem;
}

.xp-exchange-hint {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.xp-exchange-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.xp-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid rgba(101,230,255,0.25);
    border-radius: 8px;
    overflow: hidden;
}

.xp-step-btn {
    background: rgba(101,230,255,0.08);
    border: none;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    transition: background .15s;
    line-height: 1;
}
.xp-step-btn:hover { background: rgba(101,230,255,0.18); }

.xp-input {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Inconsolata', monospace;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    width: 90px;
    padding: 0.4rem 0.25rem;
    outline: none;
    -moz-appearance: textfield;
}
.xp-input::-webkit-outer-spin-button,
.xp-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.xp-preview {
    font-family: 'Inconsolata', monospace;
    font-size: 1rem;
    color: var(--neon-cyan);
    white-space: nowrap;
}

.xp-exchange-btn {
    background: var(--neon-cyan);
    color: #000;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.xp-exchange-btn:hover:not(:disabled) { background: #fff; }
.xp-exchange-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.xp-msg {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}
.xp-msg.hidden { display: none; }
.xp-msg-success { background: rgba(0,255,136,0.1); color: #00ff88; border: 1px solid rgba(0,255,136,0.25); }
.xp-msg-error   { background: rgba(255,61,90,0.1);  color: #FF3D5A; border: 1px solid rgba(255,61,90,0.25); }


/* -- Section-specific header logos ----------- */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    gap: 3px;
}
.logo-section {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.35rem;
    color: var(--neon-cyan);
    letter-spacing: -0.5px;
    text-transform: uppercase;
    line-height: 1;
}
.logo-community {
    font-size: 0.62rem;
    font-family: 'Inconsolata', monospace;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Tienda nav link highlight */
.nav-link--shop {
    color: var(--neon-cyan) !important;
    opacity: 0.9;
}
.nav-link--shop:hover {
    opacity: 1;
    background: rgba(101,230,255,0.06);
}

/* -- Featured home card (Tienda) ----------- */
.home-link-card--featured {
    border-color: rgba(101,230,255,0.3);
    background: rgba(101,230,255,0.04);
    position: relative;
    overflow: hidden;
}
.home-link-card--featured::before {
    content: 'NUEVO';
    position: absolute;
    top: 10px;
    right: -14px;
    background: var(--neon-cyan);
    color: #000;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 0.2em 1.8em;
    transform: rotate(35deg);
}
.home-link-card--featured:hover {
    border-color: rgba(101,230,255,0.6);
    box-shadow: 0 0 20px rgba(101,230,255,0.1);
}
.home-link-card--featured .link-card-title {
    color: var(--neon-cyan);
}


/* ── Footer rediseñado ──────────────────────── */
.site-footer {
    background: rgba(9, 6, 28, 0.92) !important;
    border-top: 1px solid rgba(101,230,255,0.12) !important;
    padding: 2rem 1.5rem !important;
    margin-top: 4rem !important;
    position: relative !important;
    z-index: 1 !important;
}
.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-logo { font-family: 'Archivo Black', sans-serif; font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-tagline { font-size: 0.7rem; color: rgba(255,255,255,0.3); font-family: 'Inconsolata', monospace; letter-spacing: 2px; text-transform: uppercase; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 0.82rem; transition: color .2s; }
.footer-links a:hover { color: var(--neon-cyan); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.2); }

/* ── Cookie banner ──────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13,13,30,0.97);
    border: 1px solid rgba(101,230,255,0.2);
    border-radius: 12px;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: min(600px, 94vw);
    z-index: 5000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
}
.cookie-text { font-size: 0.82rem; color: rgba(255,255,255,0.75); line-height: 1.4; }
.cookie-link { color: var(--neon-cyan); text-decoration: none; }
.cookie-accept {
    flex-shrink: 0;
    background: var(--neon-cyan);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 0.45rem 1rem;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background .2s;
    font-family: 'Rubik', sans-serif;
}
.cookie-accept:hover { background: #fff; }

/* ── Adblock notice ─────────────────────────── */
.adblock-notice {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,212,71,0.1);
    border: 1px solid rgba(255,212,71,0.35);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: min(640px, 94vw);
    z-index: 4000;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.85);
}
.adblock-notice button {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
}
.adblock-notice button:hover { color: #fff; }


/* ── Owned items grid ───────────────────────── */
.owned-items-card { /* uses existing .card base */ }

.owned-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
}

.owned-item-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
    cursor: default;
}
.owned-item-card:hover {
    border-color: rgba(101,230,255,0.25);
    transform: translateY(-2px);
}

.owned-item-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 62%;
    background: rgba(0,0,0,0.4);
    overflow: hidden;
}

.owned-item-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(101,230,255,0.2);
}
.owned-item-placeholder svg { opacity: 0.4; }

.owned-item-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.owned-item-card:hover .owned-item-img { transform: scale(1.05); }

.owned-item-name {
    padding: 0.5rem 0.6rem 0.1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owned-item-type {
    padding: 0 0.6rem 0.5rem;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: 'Inconsolata', monospace;
}
