/* ==========================================================================
   STYLE.CSS — Hoja de estilos unificada
   Proyecto: VALOSTATS / VALORGUIDE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FUENTES
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Teko:wght@500;700&display=swap');

/* --------------------------------------------------------------------------
   2. VARIABLES (tema oscuro por defecto)
   -------------------------------------------------------------------------- */
:root {
	/* Backgrounds */
	--bg-dark:  #0b111e;
	--bg-card:  #111927;
	--bg-input: #162032;
	--bg-main:  #0b111e;   /* alias para páginas con body específico */

	/* Marca */
	--valorant-red:       #ff4655;
	--valorant-red-hover: #e03e4c;
	--accent-red:         #ff4655;    /* alias usado en perfil/premium/nosotros */
	--accent-red-hover:   #e03e4c;

	/* Texto */
	--text-white:     #ffffff;
	--text-primary:   #ffffff;        /* alias */
	--text-gray:      #9ca3af;
	--text-secondary: #9ca3af;        /* alias */
	--text-muted:     #4b5563;

	/* Acentos */
	--green:        #34d399;
	--accent-green: #34d399;          /* alias */
	--amber:        #fbbf24;
	--accent-amber: #fbbf24;          /* alias */
	--purple:       #a78bfa;
	--blue:         #60a5fa;

	/* Bordes */
	--border:       #1f2937;
	--border-color: #1f2937;          /* alias */

	/* Marca global (neutro, independiente de juego) */
	--brand:        #ffffff;
	--brand-accent: #818cf8;          /* indigo suave — swap por juego */
	--brand-accent-hover: #6366f1;
}

/* Tema claro */
[data-theme="light"] {
	--bg-dark:        #f3f4f6;
	--bg-main:        #f3f4f6;
	--bg-card:        #ffffff;
	--bg-input:       #e5e7eb;
	--text-white:     #111827;
	--text-primary:   #111827;
	--text-gray:      #4b5563;
	--text-secondary: #4b5563;
	--text-muted:     #9ca3af;
	--border:         #e5e7eb;
	--border-color:   #e5e7eb;
}

/* --------------------------------------------------------------------------
   3. RESET & BASE
   -------------------------------------------------------------------------- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Plus Jakarta Sans', sans-serif;
	background-color: var(--bg-dark);
	color: #e5e7eb;
	min-height: 100vh;
	overflow-x: hidden;
}

.valorant-font {
	font-family: 'Teko', sans-serif;
}

/* --------------------------------------------------------------------------
   4. FONDO ANIMADO
   -------------------------------------------------------------------------- */
.gradient-bg {
	position: relative;
}

.gradient-bg::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 70% 50% at 50% -10%, rgba(129, 140, 248, .14) 0%, transparent 65%),
		radial-gradient(ellipse 40% 30% at 80% 80%, rgba(167, 139, 250, .05) 0%, transparent 60%);
}

.gradient-bg > * {
	position: relative;
	z-index: 1;
}

/* --------------------------------------------------------------------------
   5. NAVBAR
   -------------------------------------------------------------------------- */
.navbar {
	border-bottom: 1px solid var(--border);
	background: rgba(11, 17, 30, .88);
	position: sticky;
	top: 0;
	z-index: 50;
}

.nav-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	font-family: 'Teko', sans-serif;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-decoration: none;
	color: var(--brand);
}

.logo span {
	color: var(--brand-accent);
}

.nav-links {
	display: flex;
	gap: 28px;
}

.nav-links a {
	text-decoration: none;
	color: var(--text-gray);
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .09em;
	transition: color .2s;
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--text-white);
}

.nav-links a.active {
	color: var(--brand-accent);
}

.btn-riot {
	background: var(--brand-accent);
	color: #fff;
	text-decoration: none;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	padding: 9px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background .2s;
	display: inline-flex;
	align-items: center;
}

.btn-riot:hover  { background: var(--brand-accent-hover); }
.btn-riot:active { transform: scale(.95); }

@media (max-width: 800px) {
	.nav-container {
		height: auto;
		padding: 12px 16px;
		flex-wrap: wrap;
		gap: 10px;
	}

	.nav-links {
		order: 3;
		width: 100%;
		overflow-x: auto;
		white-space: nowrap;
		gap: 16px;
		padding-bottom: 4px;
	}

	.nav-links::-webkit-scrollbar { height: 6px; }
}

/* --------------------------------------------------------------------------
   5b. SUBNAV PERFIL (cuenta / juego vinculado)
   -------------------------------------------------------------------------- */
.subnav-perfil {
	border-bottom: 1px solid var(--border);
	background: var(--bg-card);
	position: sticky;
	top: 64px;
	z-index: 40;
}

.subnav-perfil-container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	height: 48px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.subnav-game-group {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.subnav-game-tag {
	font-size: .75rem;
	font-weight: 700;
	color: var(--text-white);
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 4px 10px;
	white-space: nowrap;
}

.subnav-mode-select {
	background: var(--bg-input);
	border: 1px solid var(--border);
	color: var(--text-white);
	font-size: .75rem;
	font-weight: 600;
	font-family: inherit;
	border-radius: 6px;
	padding: 4px 8px;
	cursor: pointer;
	outline: none;
	transition: border-color .15s;
}

.subnav-mode-select:hover,
.subnav-mode-select:focus {
	border-color: var(--brand-accent);
}

.subnav-links {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	white-space: nowrap;
}

.subnav-links::-webkit-scrollbar { height: 0; }

.subnav-links a {
	text-decoration: none;
	color: var(--text-gray);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 4px 0;
	border-bottom: 2px solid transparent;
	transition: color .2s, border-color .2s;
}

.subnav-links a:hover { color: var(--text-white); }

.subnav-links a.active {
	color: var(--brand-accent);
	border-bottom-color: var(--brand-accent);
}

@media (max-width: 800px) {
	.subnav-perfil-container {
		height: auto;
		padding: 10px 16px;
		flex-wrap: wrap;
		gap: 10px;
	}

	.subnav-links {
		width: 100%;
		gap: 18px;
		padding-bottom: 2px;
	}
}

/* --------------------------------------------------------------------------
   6. HERO (index)
   -------------------------------------------------------------------------- */
.hero {
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
	padding: 96px 24px 72px;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--brand-accent);
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .12em;
	background: rgba(129, 140, 248, .08);
	border: 1px solid rgba(129, 140, 248, .22);
	padding: 5px 14px;
	border-radius: 100px;
	margin-bottom: 28px;
}

.badge::before {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--brand-accent);
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: .4; }
}

.hero-title {
	font-family: 'Teko', sans-serif;
	font-size: 5.5rem;
	font-weight: 700;
	color: var(--text-white);
	text-transform: uppercase;
	line-height: .9;
	letter-spacing: .02em;
	margin-bottom: 0;
}

.hero-title span { color: var(--brand-accent); }

@media (max-width: 600px) {
	.hero-title { font-size: 3.5rem; }
}

.hero-subtitle {
	color: var(--text-gray);
	font-size: 1.1rem;
	max-width: 600px;
	margin: 24px auto 0;
	line-height: 1.65;
}

/* --------------------------------------------------------------------------
   7. BUSCADOR (index)
   -------------------------------------------------------------------------- */
.search-form {
	margin: 44px auto 0;
	max-width: 560px;
	background: var(--bg-card);
	padding: 7px;
	border-radius: 14px;
	border: 1px solid var(--border);
	display: flex;
	gap: 8px;
	box-shadow: 0 24px 48px -14px rgba(0, 0, 0, .55);
}

.input-group {
	display: flex;
	align-items: center;
	padding: 0 14px;
	background: var(--bg-input);
	border-radius: 9px;
	border: 1px solid var(--border);
	flex: 1;
	transition: border-color .2s;
}

.input-group:focus-within {
	border-color: rgba(129, 140, 248, .45);
}

.input-prefix {
	color: var(--text-muted);
	font-weight: 700;
	font-size: .8rem;
	margin-right: 10px;
	white-space: nowrap;
}

.input-group input {
	width: 100%;
	background: transparent;
	border: none;
	padding: 13px 0;
	color: var(--text-white);
	font-weight: 600;
	font-size: .9rem;
	outline: none;
	font-family: inherit;
}

.input-group input::placeholder { color: var(--text-muted); }

.btn-submit {
	background: var(--brand-accent);
	color: #fff;
	font-weight: 700;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 0 28px;
	border: none;
	border-radius: 9px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background .2s, transform .1s;
	white-space: nowrap;
}

.btn-submit:hover  { background: var(--brand-accent-hover); }
.btn-submit:active { transform: scale(.97); }

.disclaimer {
	font-size: .72rem;
	color: var(--text-muted);
	margin-top: 12px;
}

/* --------------------------------------------------------------------------
   8. DASHBOARD / RESULTADO (index)
   -------------------------------------------------------------------------- */
.dashboard-section {
	max-width: 1040px;
	margin: 0 auto 96px;
	padding: 0 24px;
}

.dashboard-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 36px;
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .4);
}

.profile-header {
	display: flex;
	flex-direction: column;
	gap: 16px;
	border-bottom: 1px solid var(--border);
	padding-bottom: 28px;
	margin-bottom: 28px;
}

@media (min-width: 640px) {
	.profile-header {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

.profile-info {
	display: flex;
	align-items: center;
	gap: 16px;
}

.avatar {
	width: 60px;
	height: 60px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--brand-accent), var(--amber));
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Teko', sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}

.name-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.name-row h3 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-white);
}

.rank-tag {
	background: rgba(52, 211, 153, .1);
	color: var(--green);
	font-size: .68rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 4px;
	border: 1px solid rgba(52, 211, 153, .2);
}

.subtext {
	font-size: .8rem;
	color: var(--text-gray);
}

.stats-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.stat-box {
	background: var(--bg-input);
	border: 1px solid var(--border);
	padding: 12px 20px;
	border-radius: 12px;
	flex: 1;
	min-width: 90px;
	text-align: center;
	transition: border-color .2s;
}

.stat-box:hover { border-color: #374151; }

.stat-label {
	display: block;
	font-size: .68rem;
	color: var(--text-gray);
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 5px;
}

.stat-value {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text-white);
}

.text-green { color: var(--green) !important; }
.text-amber { color: var(--amber) !important; }

.profile-placeholder {
	text-align: center;
	padding: 32px 0;
	border-bottom: 1px solid var(--border);
	margin-bottom: 28px;
}

.profile-placeholder p { color: var(--text-gray); font-size: .9rem; }

.placeholder-icon {
	font-size: 2.5rem;
	margin-bottom: 12px;
	opacity: .4;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 640px) {
	.dashboard-grid { grid-template-columns: repeat(3, 1fr); }
}

.grid-box {
	background: rgba(22, 32, 50, .5);
	border: 1px solid rgba(31, 41, 55, .7);
	padding: 22px;
	border-radius: 14px;
}

.grid-box h4 {
	font-size: .72rem;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: .07em;
	margin-bottom: 14px;
}

.agent-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.agent-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--bg-input);
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid var(--border);
	font-size: .875rem;
	font-weight: 700;
}

.agent-wr-tag {
	font-size: .7rem;
	background: rgba(129, 140, 248, .1);
	color: var(--brand-accent);
	padding: 2px 8px;
	border-radius: 4px;
}

.agent-wr-tag.inactive {
	background: rgba(31, 41, 55, .8);
	color: #d1d5db;
}

.tactical-text {
	font-size: .85rem;
	color: #d1d5db;
	line-height: 1.65;
}

.highlight {
	color: var(--brand-accent);
	font-weight: 700;
}

.chart-container {
	height: 100px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding-top: 16px;
	gap: 6px;
}

.bar {
	flex: 1;
	background: rgba(31, 41, 55, .8);
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	transition: background .2s;
	cursor: default;
}

.bar:hover { background: rgba(129, 140, 248, .5); }

.bar-1 { height: 38%; }
.bar-2 { height: 65%; }
.bar-3 { height: 52%; }
.bar-4 {
	height: 84%;
	background: var(--brand-accent);
	box-shadow: 0 8px 18px -4px rgba(129, 140, 248, .4);
}

/* --------------------------------------------------------------------------
   9. STATS BANNER (index)
   -------------------------------------------------------------------------- */
.stats-banner {
	max-width: 1040px;
	margin: 0 auto 72px;
	padding: 0 24px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1px;
	background: var(--border);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
}

.stats-banner-item {
	background: var(--bg-card);
	padding: 28px 24px;
	text-align: center;
}

.stats-banner-val {
	font-family: 'Teko', sans-serif;
	font-size: 2.8rem;
	font-weight: 700;
	color: var(--text-white);
	line-height: 1;
}

.stats-banner-val span { color: var(--brand-accent); }

.stats-banner-lbl {
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-muted);
	margin-top: 4px;
}

/* --------------------------------------------------------------------------
   10. FEATURES (index)
   -------------------------------------------------------------------------- */
.features-section {
	max-width: 1200px;
	margin: 0 auto 96px;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 640px) {
	.features-section { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	padding: 36px 28px;
	border-radius: 20px;
	transition: border-color .25s, transform .25s;
}

.feature-card:hover {
	border-color: #374151;
	transform: translateY(-3px);
}

.icon-wrapper {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	margin-bottom: 20px;
}

.icon-wrapper.text-red    { background: rgba(129, 140, 248, .1); }
.icon-wrapper.text-purple { background: rgba(167, 139, 250, .1); }
.icon-wrapper.text-amber  { background: rgba(251, 191, 36, .1); }

.feature-card h3 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--text-white);
	margin-bottom: 10px;
}

.feature-card p {
	color: var(--text-gray);
	font-size: .875rem;
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10b. PREMIUM PROMO (index)
   -------------------------------------------------------------------------- */
.premium-promo-section {
	max-width: 1000px;
	margin: 0 auto 96px;
	padding: 0 24px;
}

.premium-promo-card {
	background: var(--bg-card);
	border: 2px solid var(--brand-accent);
	border-radius: 24px;
	padding: 56px 32px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	box-shadow: 0 20px 40px -15px rgba(129, 140, 248, .15);
}

.premium-promo-title {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--text-white);
}

.premium-promo-title span { color: var(--brand-accent); }

.premium-promo-text {
	color: var(--text-gray);
	font-size: 1rem;
	line-height: 1.6;
	max-width: 520px;
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
	border-top: 1px solid var(--border);
	background: #070b14;
	padding: 32px 24px;
	text-align: center;
	font-size: .75rem;
	color: var(--text-muted);
}

.footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

.footer-links { display: flex; gap: 20px; }

.footer-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: .75rem;
	font-weight: 600;
	transition: color .2s;
}

.footer-links a:hover { color: var(--text-gray); }

.footer-disclaimer {
    font-size: .68rem;
    color: var(--text-muted);
    opacity: .6;
    max-width: 600px;
    line-height: 1.5;
}

footer {
	border-top: 1px solid var(--border);
	background: #070b14;
	padding: 28px;
	text-align: center;
	font-size: .75rem;
	color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. LINEUPS — Hero de página
   -------------------------------------------------------------------------- */
.page-hero {
	position: relative;
	overflow: hidden;
	padding: 64px 24px 48px;
	text-align: center;
}

.page-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(129, 140, 248, .12) 0%, transparent 70%);
	pointer-events: none;
}

.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--brand-accent);
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .15em;
	background: rgba(129, 140, 248, .08);
	border: 1px solid rgba(129, 140, 248, .2);
	padding: 5px 14px;
	border-radius: 100px;
	margin-bottom: 20px;
}

.page-title {
	font-family: 'Teko', sans-serif;
	font-size: 5rem;
	font-weight: 700;
	color: var(--text-white);
	text-transform: uppercase;
	line-height: .9;
	letter-spacing: .02em;
}

.page-title span { color: var(--brand-accent); }

.page-subtitle {
	color: var(--text-gray);
	font-size: 1.05rem;
	margin-top: 16px;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

.search-bar-wrapper {
	max-width: 560px;
	margin: 32px auto 0;
	display: flex;
	gap: 8px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 6px;
}

.search-input {
	flex: 1;
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 14px;
	color: var(--text-white);
	font-size: .875rem;
	outline: none;
	font-family: inherit;
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus        { border-color: rgba(129, 140, 248, .4); }

.btn-search {
	background: var(--brand-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 24px;
	font-weight: 700;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	cursor: pointer;
	transition: background .2s;
}

.btn-search:hover { background: var(--brand-accent-hover); }

/* --------------------------------------------------------------------------
   13. LINEUPS — Layout principal
   -------------------------------------------------------------------------- */
.lineups-main {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 24px 80px;
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
}

@media (max-width: 900px) {
	.lineups-main { grid-template-columns: 1fr; }
}

.sidebar {
	position: sticky;
	top: 84px;
	align-self: start;
}

.sidebar-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
}

.sidebar-head {
	padding: 18px 20px;
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	gap: 8px;
}

.sidebar-head h3 {
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-gray);
}

.sidebar-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.filter-group label {
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-muted);
}

.filter-group select {
	background: var(--bg-input);
	border: 1px solid var(--border);
	color: var(--text-white);
	padding: 10px 12px;
	border-radius: 8px;
	outline: none;
	font-size: .875rem;
	cursor: pointer;
	font-family: inherit;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
}

.filter-group select:focus { border-color: rgba(129, 140, 248, .4); }

.btn-apply {
	background: var(--brand-accent);
	color: #fff;
	border: none;
	width: 100%;
	padding: 11px;
	border-radius: 8px;
	font-weight: 700;
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	cursor: pointer;
	transition: background .2s;
	font-family: inherit;
}

.btn-apply:hover { background: var(--brand-accent-hover); }

.btn-reset {
	background: none;
	border: 1px solid var(--border);
	color: var(--text-gray);
	width: 100%;
	padding: 9px;
	border-radius: 8px;
	font-size: .8rem;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
	font-family: inherit;
}

.btn-reset:hover {
	border-color: #374151;
	color: var(--text-white);
}

.sidebar-stats {
	padding: 16px 20px;
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.stat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .8rem;
}

.stat-row span:first-child { color: var(--text-gray); }
.stat-row span:last-child  { font-weight: 700; color: var(--text-white); }

.grid-area {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.grid-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.results-count { font-size: .875rem; color: var(--text-gray); }
.results-count strong { color: var(--text-white); }

.sort-tabs {
	display: flex;
	gap: 4px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 4px;
}

.sort-tab {
	padding: 6px 14px;
	border-radius: 6px;
	border: none;
	background: none;
	color: var(--text-gray);
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	cursor: pointer;
	transition: all .2s;
	font-family: inherit;
}

.sort-tab.active {
	background: var(--bg-input);
	color: var(--text-white);
}

/* --------------------------------------------------------------------------
   14. LINEUPS — Tarjetas
   -------------------------------------------------------------------------- */
.lineups-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.lineup-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s, border-color .2s, box-shadow .2s;
	cursor: pointer;
}

.lineup-card:hover {
	transform: translateY(-4px);
	border-color: #374151;
	box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
}

.card-thumb {
	position: relative;
	height: 160px;
	background: linear-gradient(135deg, #0d1b2a 0%, #162032 100%);
	overflow: hidden;
}

.card-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .65;
	transition: transform .3s;
}

.lineup-card:hover .card-thumb-img { transform: scale(1.05); }

.thumb-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(11, 17, 30, .8) 0%, transparent 60%);
}

.thumb-map-label {
	position: absolute;
	bottom: 10px;
	left: 12px;
	font-family: 'Teko', sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--text-white);
	text-transform: uppercase;
	letter-spacing: .05em;
	line-height: 1;
}

.thumb-badges {
	position: absolute;
	top: 10px;
	left: 12px;
	display: flex;
	gap: 6px;
}

.badge-side {
	font-size: .65rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 4px;
}

.badge-side.attack  { background: rgba(2, 132, 199, .85);  color: #bae6fd; }
.badge-side.defense { background: rgba(161, 98, 7, .85);   color: #fef3c7; }

.badge-featured {
	position: absolute;
	top: 10px;
	right: 12px;
	background: rgba(129, 140, 248, .85);
	color: #fff;
	font-size: .6rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 4px;
	letter-spacing: .06em;
}

.card-body {
	padding: 16px 18px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.card-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.tag {
	font-size: .65rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.tag-agent  { background: rgba(167, 139, 250, .12); color: var(--purple); border: 1px solid rgba(167, 139, 250, .2); }
.tag-type   { background: rgba(96, 165, 250, .12);  color: var(--blue);   border: 1px solid rgba(96, 165, 250, .2); }
.tag-easy   { background: rgba(52, 211, 153, .1);   color: var(--green); }
.tag-medium { background: rgba(251, 191, 36, .1);   color: var(--amber); }
.tag-hard   { background: rgba(129, 140, 248, .1);    color: var(--brand-accent); }

.card-body h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-white);
	margin-bottom: 6px;
	line-height: 1.35;
}

.card-body p {
	font-size: .8rem;
	color: var(--text-gray);
	line-height: 1.55;
	flex: 1;
	margin-bottom: 16px;
}

.card-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--border);
	padding-top: 12px;
}

.card-stats-mini { display: flex; gap: 12px; }

.mini-stat {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: .75rem;
	color: var(--text-gray);
}

.mini-stat svg { opacity: .6; }

.btn-view {
	color: var(--brand-accent);
	font-size: .75rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: .05em;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: color .2s;
}

.btn-view:hover { color: var(--text-white); }

/* — Premium badge — */
.badge-premium {
	position: absolute;
	top: 8px;
	right: 8px;
	background: linear-gradient(135deg, rgba(255,196,0,.85), rgba(255,140,0,.85));
	color: #1a1000;
	font-size: .7rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 20px;
	letter-spacing: .02em;
}

/* — Lineup locked overlay — */
.lineup-card.lineup-locked {
	cursor: pointer;
}

.lineup-locked-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.55);
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(3px);
	border-radius: 12px 12px 0 0;
}

.lineup-lock-icon {
	font-size: 2rem;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}

.lineup-card.lineup-locked .card-body {
	opacity: .5;
	pointer-events: none;
	user-select: none;
}

.lineup-card.lineup-locked .btn-view-locked {
	opacity: 1;
	pointer-events: auto;
	color: var(--amber);
	border-color: var(--amber);
}

/* — Lineup video modal — */
.lineup-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.8);
	z-index: 1100;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.lineup-modal-overlay.active { display: flex; }

.lineup-modal {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	width: 100%;
	max-width: 800px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

.lineup-modal-premium {
	max-width: 480px;
}

.lineup-modal-close {
	position: sticky;
	top: 12px;
	float: right;
	margin: 12px 12px 0 0;
	background: rgba(255,255,255,.1);
	border: none;
	color: var(--text-gray);
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: .9rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s, color .15s;
	z-index: 1;
}

.lineup-modal-close:hover { background: rgba(255,255,255,.18); color: var(--text-white); }

.lineup-modal-body {
	padding: 16px 24px 24px;
}

.lineup-modal-header { margin-bottom: 16px; }

.lineup-modal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.lineup-modal-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text-white);
	margin-bottom: 6px;
}

.lineup-modal-desc {
	color: var(--text-gray);
	font-size: .9rem;
	line-height: 1.6;
}

.lineup-video-wrap {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}

.lineup-video-wrap iframe,
.lineup-video-wrap video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 24px;
	background: var(--bg-card);
	border: 1px dashed #374151;
	border-radius: 16px;
}

.no-results p { color: var(--text-gray); font-size: .95rem; margin-top: 8px; }

/* --------------------------------------------------------------------------
   15. LOGIN
   -------------------------------------------------------------------------- */
.login-page {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 20px;
}

.login-container {
	width: 100%;
	max-width: 450px;
	position: relative;
}

.back-link {
	display: inline-block;
	color: var(--text-gray);
	text-decoration: none;
	font-size: .85rem;
	margin-bottom: 20px;
	transition: color .2s;
}

.back-link:hover { color: var(--brand-accent); }

.login-box {
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .6);
}

.login-header {
	text-align: center;
	margin-bottom: 32px;
}

.login-header h1 { font-size: 2.5rem; color: var(--brand-accent); margin-bottom: 8px; }
.login-header h1 span { color: var(--text-white); }
.login-header h2 { font-size: 1.5rem; color: var(--text-white); font-weight: 700; }

.login-error {
	background-color: rgba(129, 140, 248, .1);
	color: var(--brand-accent);
	padding: 12px;
	border-radius: 8px;
	border: 1px solid rgba(129, 140, 248, .2);
	font-size: .85rem;
	text-align: center;
	margin-bottom: 24px;
}

.login-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group label {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--text-gray);
}

.form-group input {
	background-color: var(--bg-input);
	border: 1px solid var(--border);
	color: var(--text-white);
	padding: 14px;
	border-radius: 8px;
	outline: none;
	transition: border-color .2s;
	font-family: inherit;
}

.form-group input:focus { border-color: var(--brand-accent); }

.form-group input:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .8rem;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--text-gray);
	cursor: pointer;
}

.forgot-password { color: var(--brand-accent); text-decoration: none; font-weight: 600; }

.btn-login {
	background-color: var(--brand-accent);
	color: #fff;
	border: none;
	padding: 16px;
	border-radius: 8px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	font-size: .9rem;
	margin-top: 10px;
	transition: background-color .2s;
	font-family: inherit;
}

.btn-login:hover { background-color: var(--brand-accent-hover); }

.login-footer { text-align: center; margin-top: 32px; }
.login-footer p { font-size: .85rem; color: var(--text-gray); margin-bottom: 24px; }
.login-footer a { color: var(--text-white); text-decoration: none; font-weight: 700; }

.login-success {
	background-color: rgba(74, 222, 128, .1);
	color: var(--green);
	padding: 12px;
	border-radius: 8px;
	border: 1px solid rgba(74, 222, 128, .25);
	font-size: .85rem;
	text-align: center;
	margin-bottom: 24px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

@media (max-width: 480px) {
	.form-row { grid-template-columns: 1fr; gap: 20px; }
}

.social-login { border-top: 1px solid var(--border); padding-top: 24px; }

.social-login span {
	font-size: .75rem;
	color: var(--text-muted);
	text-transform: uppercase;
	display: block;
	margin-bottom: 16px;
}

.social-icons { display: flex; justify-content: center; gap: 12px; }

.social-btn {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background-color: var(--bg-input);
	color: white;
	cursor: pointer;
	font-weight: bold;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background-color .2s;
}

.social-btn:hover { background-color: var(--border); }
.facebook         { color: #1877f2; }
.google           { color: #ea4335; }

/* --------------------------------------------------------------------------
   16. PERFIL
   -------------------------------------------------------------------------- */
.perfil-body {
	background-color: var(--bg-dark);
	color: var(--text-white);
}

.perfil-container {
	width: 100%;
	padding: 24px 16px 80px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.content-scroll {
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	padding-right: 4px;
}

.perfil-actions-bar { display: flex; justify-content: flex-end; gap: 12px; }

.perfil-action-btn {
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text-white);
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
	font-size: .9rem;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: background-color .2s;
}

.perfil-action-btn:hover { background-color: var(--bg-input); }

.perfil-summary {
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
}

.perfil-summary-header {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: center;
	border-bottom: 1px solid var(--border);
	padding-bottom: 24px;
}

.perfil-avatar-block { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.perfil-avatar {
	width: 80px;
	height: 80px;
	background-color: var(--bg-input);
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--brand-accent);
}

.perfil-avatar img { width: 100%; height: 100%; object-fit: cover; }

.subtle-btn {
	font-size: .8rem;
	color: var(--text-gray);
	text-decoration: none;
	background: none;
	border: 1px solid var(--border);
	padding: 4px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
}

.subtle-btn:hover { color: var(--text-white); background-color: var(--bg-input); }

.perfil-info    { flex: 1; min-width: 200px; }
.perfil-username { font-size: 1.75rem; margin-bottom: 8px; }
.perfil-badges  { display: flex; gap: 8px; }

.badge-rank    { background-color: #1a2c38; color: var(--green); border-radius: 4px; padding: 4px 8px; font-size: .75rem; font-weight: 700; }
.badge-level   { background-color: #2e1a47; color: #c084fc;      border-radius: 4px; padding: 4px 8px; font-size: .75rem; font-weight: 700; }
.badge-premium { background-color: rgba(251, 191, 36, .1); color: var(--amber); border: 1px solid var(--amber); border-radius: 4px; padding: 4px 8px; font-size: .75rem; font-weight: 700; }

.perfil-chart-mini { position: relative; width: 280px; height: 110px; }
.chart-filter-buttons { display: flex; justify-content: space-between; margin-top: 6px; }

.filter-btn { background: none; border: none; color: var(--text-gray); font-size: .75rem; cursor: pointer; }
.filter-btn.active { color: var(--brand-accent); font-weight: bold; }

.perfil-summary-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.summary-stat { display: flex; flex-direction: column; }

.section-label { font-size: 1.1rem; font-weight: bold; display: flex; align-items: center; gap: 8px; }

.perfil-stats {
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
}

.perfil-stats-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

.stats-period-btns button,
.agentes-sort-btns button,
.mapas-sort-btns button {
	background-color: var(--bg-input);
	border: 1px solid var(--border);
	color: var(--text-gray);
	padding: 6px 12px;
	font-size: .8rem;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
}

.stats-period-btns button.active,
.agentes-sort-btn.active,
.mapas-sort-btn.active {
	background-color: var(--brand-accent);
	color: white;
	border-color: var(--brand-accent);
}

.stats-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 16px;
}

.stats-kpi {
	background-color: rgba(22, 32, 50, .4);
	border: 1px solid var(--border);
	padding: 16px;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.stats-kpi-label { font-size: .75rem; color: var(--text-gray); text-transform: uppercase; }
.stats-kpi-value { font-size: 1.5rem; font-weight: bold; margin: 6px 0; }
.stats-kpi-sub, .stats-wins-total { font-size: .75rem; color: var(--text-gray); }

.stats-kpi-accent .stats-kpi-value { color: var(--brand-accent); }
.stats-kpi-green  .stats-kpi-value { color: var(--green); }
.stats-kpi-amber  .stats-kpi-value { color: var(--amber); }

.stats-divider { height: 1px; background-color: var(--border); margin: 24px 0; }

.stats-rows-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}

.perfil-rango { background-color: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.perfil-rango-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.rango-peak-pill {
	background-color: rgba(129, 140, 248, .1);
	color: var(--brand-accent);
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: .8rem;
	font-weight: bold;
}

.perfil-agentes,
.perfil-mapas,
.perfil-armas {
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
}

.perfil-agentes-header,
.perfil-mapas-header,
.perfil-armas-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.agentes-grid,
.mapas-grid,
.armas-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.perfil-heatmap { background-color: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.perfil-heatmap-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.heatmap-cal-outer { display: flex; gap: 8px; margin-top: 16px; }

.heatmap-day-labels {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-top: 20px;
	height: 110px;
	font-size: .7rem;
	color: var(--text-gray);
}

.heatmap-cal-scroll { overflow-x: auto; flex: 1; }

.heatmap-grid {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(7, 12px);
	gap: 3px;
	height: 110px;
}

.heatmap-cell {
	width: 12px;
	height: 12px;
	border-radius: 2px;
	background-color: #162032;
	cursor: pointer;
}

.hc-0 { background-color: #162032; }
.hc-1 { background-color: #0e4429; }
.hc-2 { background-color: #006d32; }
.hc-3 { background-color: #26a641; }
.hc-4 { background-color: #39d353; }

.heatmap-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	font-size: .8rem;
	color: var(--text-gray);
}

.heatmap-legend { display: flex; align-items: center; gap: 4px; }

/* -- Banner de perfil -- */
.profile-banner {
	position: relative;
	height: 160px;
	background: linear-gradient(135deg, #0d1b2a 0%, #1a1030 50%, #0d1b2a 100%);
	overflow: hidden;
}

.banner-pattern {
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		45deg,
		rgba(129, 140, 248, .04) 0px,
		rgba(129, 140, 248, .04) 1px,
		transparent 1px,
		transparent 40px
	);
}

.banner-gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 40%, rgba(11, 17, 30, .9) 100%);
}

.banner-actions {
	position: absolute;
	bottom: 12px;
	right: 16px;
	z-index: 1;
}

.banner-btn {
	background: rgba(11, 17, 30, .7);
	border: 1px solid var(--border);
	color: var(--text-gray);
	font-size: .75rem;
	padding: 6px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
	backdrop-filter: blur(6px);
	transition: color .2s, border-color .2s;
}

.banner-btn:hover { color: var(--text-white); border-color: var(--brand-accent); }

/* -- Tabs de perfil -- */
.profile-tabs {
	display: flex;
	gap: 4px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 6px;
	flex-wrap: wrap;
}

.tab {
	background: none;
	border: none;
	color: var(--text-gray);
	font-size: .8rem;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	transition: color .2s, background .2s;
	white-space: nowrap;
}

.tab:hover  { color: var(--text-white); background: var(--bg-input); }
.tab.active { color: var(--text-white); background: var(--bg-input); }

/* -- Avatar ring + online dot -- */
.avatar-ring {
	position: relative;
	padding: 3px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--brand-accent), var(--purple));
}

.online-dot {
	width: 12px;
	height: 12px;
	background: var(--green);
	border-radius: 50%;
	border: 2px solid var(--bg-card);
	position: absolute;
	bottom: 2px;
	right: 2px;
}

/* -- Header actions -- */
.perfil-summary-header-top { align-items: flex-start; }

.profile-header-actions { display: flex; gap: 8px; }

.btn-share,
.btn-edit,
.perfil-edit {
	background: none;
	border: 1px solid var(--border);
	color: var(--text-gray);
	font-size: .78rem;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
	transition: color .2s, border-color .2s, background .2s;
}

.btn-share:hover,
.btn-edit:hover,
.perfil-edit:hover {
	color: var(--text-white);
	background: var(--bg-input);
	border-color: var(--brand-accent);
}

/* -- Stats period btn (clase directa) -- */
.stats-period-btn {
	background-color: var(--bg-input);
	border: 1px solid var(--border);
	color: var(--text-gray);
	padding: 6px 12px;
	font-size: .8rem;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
	transition: background .2s, color .2s;
}

.stats-period-btn.active {
	background-color: var(--brand-accent);
	color: #fff;
	border-color: var(--brand-accent);
}

/* -- Stats rows -- */
.stats-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: rgba(22, 32, 50, .4);
	border: 1px solid var(--border);
	border-radius: 8px;
}

.stats-row-label { font-size: .85rem; color: var(--text-gray); }
.stats-row-value { font-size: .9rem; font-weight: 700; color: var(--text-white); }

/* -- Rango chips -- */
.rango-chips-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.rango-chip {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 10px 16px;
	cursor: pointer;
	transition: border-color .2s, background .2s;
	min-width: 120px;
}

.rango-chip:hover { border-color: var(--brand-accent); }

.rango-chip.active {
	border-color: var(--brand-accent);
	background: rgba(129, 140, 248, .08);
}

.rango-chip-name   { font-size: .9rem; font-weight: 700; color: var(--text-white); }
.rango-chip-season { font-size: .72rem; color: var(--text-gray); }
.rango-chip-rr     { font-size: .75rem; font-weight: 600; color: var(--brand-accent); }

.rango-detail {
	background: rgba(22, 32, 50, .4);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	margin-top: 8px;
}

.rango-detail-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.rango-detail-title {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text-white);
	margin: 0;
}

.rango-detail-badge {
	background: rgba(129, 140, 248, .1);
	color: var(--brand-accent);
	font-size: .7rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 9999px;
	border: 1px solid rgba(129, 140, 248, .25);
}

.rango-detail-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
}

.rango-detail-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 14px;
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 10px;
}

.rango-detail-value {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--text-white);
}

.rango-detail-label {
	font-size: .75rem;
	color: var(--text-gray);
}

/* -- Agent / Mapa cards -- */
.agentes-sort-btn,
.mapas-sort-btn {
	background-color: var(--bg-input);
	border: 1px solid var(--border);
	color: var(--text-gray);
	padding: 6px 12px;
	font-size: .8rem;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
	transition: background .2s, color .2s;
}

.agentes-sort-btn.active,
.mapas-sort-btn.active {
	background-color: var(--brand-accent);
	color: #fff;
	border-color: var(--brand-accent);
}

.agent-card,
.mapa-card,
.arma-card {
	background: rgba(22, 32, 50, .4);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	transition: border-color .2s;
}

.agent-card:hover,
.mapa-card:hover,
.arma-card:hover { border-color: rgba(129, 140, 248, .35); }

/* Imágenes de agentes y armas */
.agent-img {
	width: 44px;
	height: 44px;
	object-fit: contain;
	border-radius: 8px;
}

/* Versión pequeña para tablas de partida */
.agent-img-sm {
	width: 28px;
	height: 28px;
	border-radius: 4px;
	vertical-align: middle;
}

/* Icono de agente dentro de la card de partida */
.partida-agent-img {
	width: 36px;
	height: 36px;
	border-radius: 6px;
	display: block;
}

.weapon-icon-wrap {
	background: transparent !important;
	border-radius: 0 !important;
	width: auto !important;
	min-width: 64px;
}

.weapon-img {
	width: 80px;
	height: 32px;
	object-fit: contain;
	filter: drop-shadow(0 0 4px rgba(129,140,248,.3));
}

.agent-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.agent-card-icon {
	font-size: 1.8rem;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-input);
	border-radius: 10px;
	flex-shrink: 0;
}

.agent-card-name  { font-size: .95rem; font-weight: 700; color: var(--text-white); }
.agent-card-games { font-size: .75rem; color: var(--text-gray); margin-top: 2px; }

.agent-card-stats {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
}

.agent-card-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	background: var(--bg-input);
	border-radius: 8px;
	padding: 8px 4px;
}

.agent-card-stat-val { font-size: .95rem; font-weight: 700; color: var(--text-white); }
.agent-card-stat-lbl { font-size: .68rem; color: var(--text-gray); margin-top: 2px; }

.agent-wr-bar {
	height: 4px;
	background: var(--bg-input);
	border-radius: 2px;
	overflow: hidden;
}

.agent-wr-bar-fill {
	height: 100%;
	border-radius: 2px;
	transition: width .4s ease;
}

/* -- Heatmap extras -- */
.heatmap-stats-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
}

.heatmap-stat {
	display: flex;
	flex-direction: column;
	background: rgba(22, 32, 50, .4);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 12px 18px;
	min-width: 110px;
}

.heatmap-stat-val { font-size: 1.25rem; font-weight: 700; color: var(--text-white); }
.heatmap-stat-lbl { font-size: .72rem; color: var(--text-gray); margin-top: 2px; }

.heatmap-day-lbl {
	font-size: .68rem;
	color: var(--text-gray);
	height: 14px;
	display: flex;
	align-items: center;
}

.heatmap-month-labels {
	display: flex;
	gap: 0;
	font-size: .68rem;
	color: var(--text-gray);
	padding-left: 2px;
	margin-bottom: 4px;
	height: 16px;
}

.heatmap-legend-lbl { font-size: .72rem; color: var(--text-gray); }

.heatmap-tooltip {
	font-size: .75rem;
	color: var(--text-gray);
}

/* -- Chart tooltip -- */
.chart-tooltip {
	position: absolute;
	background: var(--bg-card);
	border: 1px solid var(--border);
	color: var(--text-white);
	font-size: .75rem;
	padding: 6px 10px;
	border-radius: 6px;
	pointer-events: none;
	display: none;
	white-space: nowrap;
	z-index: 10;
}

/* --------------------------------------------------------------------------
   17. PREMIUM
   -------------------------------------------------------------------------- */
.premium-body { background-color: var(--bg-dark); color: var(--text-white); }

.premium-container {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 20px 80px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.premium-hero { text-align: center; max-width: 600px; margin: 0 auto; }

.premium-badge {
	color: var(--brand-accent);
	font-weight: 700;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .15em;
	background-color: rgba(129, 140, 248, .1);
	padding: 6px 16px;
	border-radius: 9999px;
	border: 1px solid rgba(129, 140, 248, .2);
}

.premium-title { font-size: 2.75rem; font-weight: 800; margin-top: 20px; letter-spacing: -.02em; }
.premium-title span { color: var(--brand-accent); }
.premium-subtitle { color: var(--text-gray); font-size: 1.05rem; line-height: 1.6; margin-top: 12px; }
.single-plan-wrapper { width: 100%; }

.premium-single-card {
	background-color: var(--bg-card);
	border: 2px solid var(--brand-accent);
	border-radius: 24px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 40px -15px rgba(129, 140, 248, .15);
	position: relative;
}

@media (min-width: 768px) {
	.premium-single-card { flex-direction: row; }
}

.card-left-info {
	flex: 1.2;
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
	.card-left-info {
		border-bottom: none;
		border-right: 1px solid var(--border);
		padding: 48px;
	}
}

.tier-label    { font-size: .8rem; font-weight: 700; color: var(--brand-accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.plan-name     { font-size: 1.75rem; font-weight: 700; margin-bottom: 12px; }
.plan-description { color: var(--text-gray); font-size: .95rem; line-height: 1.5; margin-bottom: 24px; }

.price-display { margin-bottom: 24px; display: flex; align-items: baseline; gap: 6px; }
.currency-amount { font-size: 3.5rem; font-weight: 900; color: var(--text-white); }
.currency-period { font-size: 1.2rem; color: var(--text-gray); }

.btn-subscribe-now {
	background-color: var(--brand-accent);
	color: white;
	font-size: 1.05rem;
	font-weight: 700;
	border: none;
	padding: 16px;
	border-radius: 12px;
	cursor: pointer;
	text-transform: uppercase;
	transition: background-color .2s, transform .1s;
	box-shadow: 0 4px 12px rgba(129, 140, 248, .3);
	font-family: inherit;
}

.btn-subscribe-now:hover  { background-color: var(--brand-accent-hover); }
.btn-subscribe-now:active { transform: scale(.98); }

.cancel-anytime-text { font-size: .8rem; color: var(--text-gray); text-align: center; margin-top: 16px; }

.card-right-features {
	flex: 1;
	background-color: rgba(22, 32, 50, .2);
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (min-width: 768px) {
	.card-right-features { padding: 48px; }
}

.card-right-features h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

.features-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }

.features-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; line-height: 1.4; }

.check-icon   { color: var(--green); font-weight: bold; font-size: 1.1rem; }
.feature-text { color: var(--text-white); }

.premium-footer-info {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px;
	border-top: 1px solid var(--border);
	padding-top: 32px;
}

.info-box      { display: flex; flex-direction: column; gap: 8px; }
.info-box span { font-size: 1.5rem; }
.info-box h4   { font-size: 1rem; font-weight: 700; }
.info-box p    { font-size: .85rem; color: var(--text-gray); line-height: 1.5; }

/* --------------------------------------------------------------------------
   18. NOSOTROS
   -------------------------------------------------------------------------- */
.about-body { background-color: var(--bg-dark); color: var(--text-white); }

.about-container {
	width: 100%;
	padding: 40px 20px 80px;
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.about-hero { text-align: center; max-width: 750px; margin: 0 auto; }

.about-badge {
	color: var(--brand-accent);
	font-weight: 700;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .15em;
	background-color: rgba(129, 140, 248, .1);
	padding: 6px 16px;
	border-radius: 9999px;
	border: 1px solid rgba(129, 140, 248, .2);
}

.about-title { font-size: 2.75rem; font-weight: 800; margin-top: 20px; letter-spacing: -.02em; line-height: 1.2; }
.about-title span { color: var(--brand-accent); }
.about-subtitle { color: var(--text-gray); font-size: 1.1rem; line-height: 1.6; margin-top: 16px; }

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.stat-card {
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 32px 24px;
	text-align: center;
	transition: border-color .2s;
}

.stat-card:hover { border-color: rgba(129, 140, 248, .4); }
.stat-icon  { font-size: 1.75rem; display: block; margin-bottom: 12px; }
.stat-count { font-size: 2.25rem; font-weight: 800; color: var(--text-white); margin: 0 0 4px 0; }

.manifesto-section {
	background: linear-gradient(135deg, rgba(129, 140, 248, .05) 0%, rgba(17, 25, 39, 0) 100%);
	border-left: 4px solid var(--brand-accent);
	padding: 32px;
	border-radius: 0 16px 16px 0;
}

.manifesto-content h2 { font-size: 1.75rem; font-weight: 700; margin: 0 0 16px 0; }
.manifesto-content p  { color: var(--text-gray); font-size: 1rem; line-height: 1.6; margin: 0 0 16px 0; }
.manifesto-content p:last-child { margin-bottom: 0; }

.values-section { display: flex; flex-direction: column; gap: 24px; }
.values-heading { font-size: 1.5rem; font-weight: 700; text-align: center; margin: 0; }

.values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
}

.value-card {
	background-color: rgba(22, 32, 50, .3);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
}

.value-card h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px 0; color: var(--text-white); }
.value-card p  { color: var(--text-gray); font-size: .9rem; line-height: 1.5; margin: 0; }

/* --------------------------------------------------------------------------
   19. HISTORIAL DE PARTIDAS
   -------------------------------------------------------------------------- */
.partidas-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
}

.partida-card {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	align-items: center;
	gap: 16px;
	background: rgba(22, 32, 50, .4);
	border: 1px solid var(--border);
	border-left: 4px solid var(--border);
	border-radius: 10px;
	padding: 14px 16px;
	transition: border-color .2s, transform .2s;
}

.partida-card:hover { transform: translateX(2px); }

.partida-win  { border-left-color: var(--green); }
.partida-loss { border-left-color: var(--valorant-red); }
.partida-unknown { border-left-color: var(--text-gray); }

.partida-result-badge {
	font-size: .7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 4px 10px;
	border-radius: 6px;
	white-space: nowrap;
}

.partida-win .partida-result-badge  { background: rgba(52, 211, 153, .12); color: var(--green); }
.partida-loss .partida-result-badge { background: rgba(255, 70, 85, .12); color: var(--valorant-red); }
.partida-unknown .partida-result-badge { background: rgba(148, 163, 184, .12); color: var(--text-gray); }

.partida-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.partida-map { font-size: .9rem; font-weight: 700; color: var(--text-white); white-space: nowrap; }

.partida-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.partida-agent { font-size: .85rem; font-weight: 600; color: var(--text-white); }
.partida-mode  { font-size: .72rem; color: var(--text-gray); }

.partida-stats { display: flex; gap: 18px; }

.partida-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 48px;
}

.partida-stat-val { font-size: .85rem; font-weight: 700; color: var(--text-white); }
.partida-stat-lbl {
	font-size: .65rem;
	color: var(--text-gray);
	margin-top: 2px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.partida-date {
	font-size: .75rem;
	color: var(--text-gray);
	white-space: nowrap;
	text-align: right;
}

.partidas-load-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

@media (max-width: 800px) {
	.partida-card {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.partida-stats { flex-wrap: wrap; gap: 12px; }
	.partida-date  { text-align: left; }
}

/* --------------------------------------------------------------------------
   20. LOGROS
   -------------------------------------------------------------------------- */
.logros-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.logro-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: rgba(22, 32, 50, .4);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	opacity: .55;
	transition: border-color .2s, opacity .2s;
	position: relative;
}

.logro-card.unlocked {
	opacity: 1;
	border-color: rgba(251, 191, 36, .35);
	background: rgba(251, 191, 36, .04);
}

.logro-card:hover { border-color: rgba(129, 140, 248, .35); }

.logro-icon {
	font-size: 1.7rem;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-input);
	border-radius: 10px;
	flex-shrink: 0;
}

.logro-info { flex: 1; min-width: 0; }
.logro-name { font-size: .95rem; font-weight: 700; color: var(--text-white); margin-bottom: 4px; }
.logro-desc { font-size: .8rem; color: var(--text-gray); line-height: 1.4; margin-bottom: 10px; }

.logro-progress-bar {
	height: 4px;
	background: var(--bg-input);
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 6px;
}

.logro-progress-fill {
	height: 100%;
	background: var(--amber);
	border-radius: 2px;
	transition: width .4s ease;
}

.logro-card.unlocked .logro-progress-fill { background: var(--green); }

.logro-progress-label { font-size: .7rem; color: var(--text-gray); }

.logro-check {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--green);
	color: #fff;
	border-radius: 50%;
	font-size: .75rem;
	font-weight: 800;
}

/* --------------------------------------------------------------------------
   21. CUENTA VINCULADA
   -------------------------------------------------------------------------- */
.cuenta-vinculada-card {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	background: rgba(22, 32, 50, .4);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	margin-top: 16px;
}

.cuenta-vinculada-icon {
	font-size: 2rem;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-input);
	border-radius: 12px;
	flex-shrink: 0;
}

.cuenta-vinculada-info { flex: 1; min-width: 220px; }

.cuenta-vinculada-game {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--text-gray);
}

.cuenta-vinculada-riotid {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--text-white);
	margin: 4px 0;
}

.cuenta-vinculada-meta { font-size: .78rem; color: var(--text-gray); }

.cuenta-vinculada-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.btn-danger-outline {
	font-size: .8rem;
	color: var(--valorant-red);
	background: none;
	border: 1px solid var(--valorant-red);
	padding: 4px 12px;
	border-radius: 6px;
	cursor: pointer;
	font-family: inherit;
	transition: background .2s, color .2s;
}

.btn-danger-outline:hover {
	background: rgba(255, 70, 85, .1);
	color: var(--text-white);
}

.juego-card-locked { opacity: .55; }

/* --------------------------------------------------------------------------
   21b. VINCULAR CUENTA (formulario)
   -------------------------------------------------------------------------- */
.cuenta-vincular-card {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 16px;
	background: rgba(22, 32, 50, .4);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
	margin-top: 16px;
}

.cuenta-vincular-info { flex: 1; min-width: 240px; }

.cuenta-vincular-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--text-white);
	margin-bottom: 6px;
}

.cuenta-vincular-desc {
	font-size: .85rem;
	color: var(--text-gray);
	line-height: 1.5;
	margin-bottom: 14px;
}

.cuenta-vincular-desc code {
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 4px;
	padding: 1px 6px;
	font-size: .8rem;
	color: var(--brand-accent);
}

.cuenta-vincular-error {
	background: rgba(255, 70, 85, .1);
	border: 1px solid var(--valorant-red);
	color: var(--valorant-red);
	font-size: .82rem;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 14px;
}

.cuenta-vincular-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.cuenta-vincular-input {
	flex: 1;
	min-width: 220px;
	background: var(--bg-input);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: .9rem;
	color: var(--text-white);
	font-family: inherit;
}

.cuenta-vincular-input:focus {
	outline: none;
	border-color: var(--brand-accent);
}

.cuenta-vincular-input::placeholder { color: var(--text-gray); }

.cuenta-consent-note {
    margin-top: 12px;
    font-size: .72rem;
    color: var(--text-muted);
    line-height: 1.6;
    opacity: .75;
}
.cuenta-consent-note a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   21. MODAL: DETALLE DE PARTIDA
   -------------------------------------------------------------------------- */
.partida-card { cursor: pointer; }

.partidas-date-header {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
	padding: 16px 4px 6px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 4px;
}

.partidas-date-label {
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--text-white);
}

.partidas-date-summary {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: .75rem;
}

.partidas-date-record { font-weight: 700; }
.partidas-date-wr     { font-weight: 600; }
.partidas-date-acs    { color: var(--text-gray); }
.partidas-date-count  { color: var(--text-gray); }
.partidas-date-sep    { color: var(--border); }

/* Icono de rango en la celda RR del historial */
.rank-icon-sm {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 2px;
}
.partida-rank-val {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.match-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.match-modal-overlay.active {
	display: flex;
}

.match-modal {
	position: relative;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 24px;
	width: 90%;
	max-width: 90vw;
	max-height: 90vh;
	overflow-y: auto;
}

.match-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent;
	border: none;
	color: var(--text-gray);
	font-size: 1.1rem;
	cursor: pointer;
	line-height: 1;
	padding: 4px;
}

.match-modal-close:hover { color: var(--text-white); }

.match-modal-header {
	margin-bottom: 12px;
	padding-right: 28px;
}

.modal-rank-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-left: 10px;
	vertical-align: middle;
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
}

.match-modal-title {
	font-family: 'Teko', sans-serif;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--text-white);
	text-transform: uppercase;
	letter-spacing: .03em;
}

.match-modal-subtitle {
	color: var(--text-gray);
	font-size: .85rem;
}

/* — Pestañas de detalle de partida — */
.match-detail-tabs {
	display: flex;
	gap: 4px;
	margin: 18px 0 0;
	border-bottom: 2px solid var(--border-color);
}

.match-detail-tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	padding: 8px 20px;
	font-size: .9rem;
	font-weight: 600;
	color: var(--text-gray);
	cursor: pointer;
	transition: color .15s, border-color .15s;
}

.match-detail-tab:hover {
	color: var(--text-white);
}

.match-detail-tab.active {
	color: var(--brand-accent);
	border-bottom-color: var(--brand-accent);
}

.match-detail-panel {
	padding-top: 4px;
}

.match-modal-section-title {
	font-weight: 700;
	font-size: .95rem;
	color: var(--text-white);
	margin: 18px 0 10px;
}

/* — Tabla de jugadores — */
.match-players-table {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: .85rem;
	overflow-x: auto;
}

.match-players-row {
	display: grid;
	grid-template-columns: 2fr 1.4fr .6fr .6fr .6fr .6fr .6fr .6fr .7fr .7fr .6fr .7fr;
	gap: 8px;
	align-items: center;
	padding: 6px 10px;
	border-radius: 6px;
	min-width: 720px;
}

.match-players-head {
	color: var(--text-gray);
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.match-players-row.team-ally {
	background: rgba(74, 222, 128, .06);
	border-left: 3px solid var(--green);
}

.match-players-row.team-enemy {
	background: rgba(255, 70, 85, .06);
	border-left: 3px solid var(--valorant-red);
}

.match-players-me {
	border: 1px solid var(--brand-accent) !important;
	background: rgba(129, 140, 248, .1) !important;
}

.match-team-mine { color: var(--green); }
.match-team-rival { color: var(--valorant-red); }

/* Separador entre equipos */
.match-team-divider {
	grid-column: 1 / -1;
	height: 1px;
	background: var(--border);
	margin: 4px 0;
}

.match-diff-pos  { color: var(--green); font-weight: 700; }
.match-diff-neg  { color: var(--valorant-red); font-weight: 700; }
.match-diff-even { color: var(--text-gray); font-weight: 700; }

/* — Rondas: barra de selección — */
.match-rounds-bar {
	overflow-x: auto;
	padding-bottom: 8px;
}

.match-rounds-row {
	display: flex;
	align-items: center;
	gap: 8px;
	width: max-content;
	min-width: 100%;
	margin-bottom: 4px;
}

.match-rounds-label {
	position: sticky;
	left: 0;
	flex: 0 0 100px;
	background: var(--bg-card);
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: .8rem;
	font-weight: 700;
	color: var(--text-white);
	white-space: nowrap;
	z-index: 1;
}

.match-rounds-score {
	font-size: 1.05rem;
	font-weight: 700;
}

.match-rounds-label-mine .match-rounds-score { color: var(--green); }
.match-rounds-label-rival .match-rounds-score { color: var(--valorant-red); }

.match-rounds-cells {
	display: flex;
	gap: 4px;
}

.match-round-cell {
	flex: 0 0 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: rgba(22, 32, 50, .4);
	color: var(--text-gray);
	font-size: .8rem;
	cursor: pointer;
	transition: border-color .1s ease, background .1s ease;
}

.match-round-cell:hover {
	border-color: var(--brand-accent);
}

.match-round-cell.active {
	border-color: var(--brand-accent);
	box-shadow: 0 0 0 2px rgba(129, 140, 248, .35);
}

.match-round-cell-mine.match-round-cell-won {
	background: rgba(52, 211, 153, .15);
	border-color: var(--green);
	color: var(--green);
}

.match-round-cell-rival.match-round-cell-won {
	background: rgba(255, 70, 85, .15);
	border-color: var(--valorant-red);
	color: var(--valorant-red);
}

.match-rounds-numbers-row {
	margin-bottom: 0;
}

.match-round-cell-number {
	flex: 0 0 28px;
	text-align: center;
	font-size: .7rem;
	color: var(--text-gray);
}

@media (max-width: 600px) {
	.match-players-row {
		grid-template-columns: 1.6fr 1fr .5fr .5fr .5fr .5fr .5fr .5fr .6fr .6fr .5fr .6fr;
		font-size: .75rem;
		min-width: 680px;
	}

	.match-modal {
		padding: 18px;
		max-height: 90vh;
	}

	.match-rounds-label {
		flex: 0 0 80px;
		font-size: .75rem;
	}

	.match-round-cell,
	.match-round-cell-number {
		flex: 0 0 24px;
	}

	.match-round-cell {
		height: 24px;
		font-size: .7rem;
	}
}

@media (max-width: 600px) {
	.cuenta-vincular-form { flex-direction: column; }
	.cuenta-vincular-form .btn-riot { width: 100%; text-align: center; }
}

/* --------------------------------------------------------------------------
   MODE TABS (estadisticas.php)
   -------------------------------------------------------------------------- */
.mode-tabs-wrap {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mode-tab {
	background-color: var(--bg-input);
	border: 1px solid var(--border);
	color: var(--text-gray);
	padding: 8px 16px;
	font-size: .875rem;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	font-weight: 600;
	transition: background .15s, color .15s, border-color .15s;
}

.mode-tab:hover {
	color: var(--text-white);
	border-color: var(--brand-accent);
}

.mode-tab.active {
	background-color: var(--brand-accent);
	color: #fff;
	border-color: var(--brand-accent);
}

@media (max-width: 640px) {
	.mode-tabs-wrap { gap: 6px; }
	.mode-tab { padding: 6px 12px; font-size: .8rem; }
}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

/* ── Páginas de ranking (agentes / mapas / armas) ───────────────────── */
.ranking-page-header {
    margin-bottom: 20px;
}
.ranking-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 0 0 4px;
}
.ranking-page-sub {
    color: var(--text-gray);
    font-size: .88rem;
    margin: 0;
}

.ranking-card {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.ranking-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.ranking-sort-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.ranking-sort-btn {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.1);
    background: transparent;
    color: var(--text-gray);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.ranking-sort-btn.active,
.ranking-sort-btn:hover {
    background: var(--brand-accent, #818cf8);
    border-color: var(--brand-accent, #818cf8);
    color: #fff;
}

.ranking-table-wrap {
    overflow-x: auto;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.ranking-table thead th {
    text-align: left;
    padding: 8px 10px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255,255,255,.07);
    white-space: nowrap;
    user-select: none;
}
.ranking-table thead th.col-num { text-align: right; }
.ranking-table thead th.col-bar { text-align: left; min-width: 120px; }
.ranking-table thead th.sortable { cursor: pointer; }
.ranking-table thead th.sortable:hover,
.ranking-table thead th.sortable.active { color: var(--brand-accent, #818cf8); }

.ranking-row td {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    color: var(--text-primary);
    white-space: nowrap;
    vertical-align: middle;
    transition: background .15s;
}
.ranking-row:last-child td { border-bottom: none; }
.ranking-row:hover td { background: rgba(255,255,255,.03); }

/* ── Podium top 3 ── */
.ranking-row.ranking-top-1 td {
    background: linear-gradient(90deg, rgba(255,196,0,.13) 0%, rgba(255,196,0,.04) 100%);
    border-bottom-color: rgba(255,196,0,.12);
}
.ranking-row.ranking-top-1 td:first-child {
    border-left: 3px solid #ffc400;
}
.ranking-row.ranking-top-2 td {
    background: linear-gradient(90deg, rgba(192,192,192,.11) 0%, rgba(192,192,192,.03) 100%);
    border-bottom-color: rgba(192,192,192,.1);
}
.ranking-row.ranking-top-2 td:first-child {
    border-left: 3px solid #c0c0c0;
}
.ranking-row.ranking-top-3 td {
    background: linear-gradient(90deg, rgba(205,127,50,.11) 0%, rgba(205,127,50,.03) 100%);
    border-bottom-color: rgba(205,127,50,.1);
}
.ranking-row.ranking-top-3 td:first-child {
    border-left: 3px solid #cd7f32;
}

.col-pos { width: 48px; text-align: center; }
.col-name { min-width: 160px; }
.col-num { text-align: right; }

.rank-pos {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-gray);
}
.rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
}
.ranking-top-1 .rank-medal { background: rgba(255,196,0,.18); box-shadow: 0 0 8px rgba(255,196,0,.3); }
.ranking-top-2 .rank-medal { background: rgba(192,192,192,.15); box-shadow: 0 0 8px rgba(192,192,192,.25); }
.ranking-top-3 .rank-medal { background: rgba(205,127,50,.15); box-shadow: 0 0 8px rgba(205,127,50,.25); }

.ranking-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ranking-agent-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,.06);
    flex-shrink: 0;
}
.ranking-map-img {
    width: 52px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255,255,255,.06);
    flex-shrink: 0;
}
.ranking-weapon-wrap {
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ranking-weapon-img {
    max-width: 72px;
    max-height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}
.ranking-icon { font-size: 1.3rem; }
.ranking-name-text {
    font-weight: 600;
    color: var(--text-white);
}

.ranking-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}
.ranking-bar-fill {
    height: 6px;
    border-radius: 3px;
    background: var(--brand-accent, #818cf8);
    flex-shrink: 0;
}
.ranking-bar-pct {
    font-size: .75rem;
    color: var(--text-gray);
    white-space: nowrap;
}

.ranking-empty {
    text-align: center;
    color: var(--text-gray);
    padding: 32px 0;
    font-size: .9rem;
}

/* ── Ver más link ───────────────────────────────────────────────────── */
.ver-mas-link {
    font-size: .78rem;
    font-weight: 600;
    color: var(--brand-accent, #818cf8);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
}
.ver-mas-link:hover { opacity: .75; }

/* ── Gráfica ACS ────────────────────────────────────────────────────── */
.perfil-acs-chart {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
}


/* ── Contador de sync automático ───────────────────────────────────── */
.sync-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .78rem;
    color: var(--text-gray, #8a9ab5);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 3px 10px;
    cursor: default;
    user-select: none;
    margin-left: 8px;
    transition: color .3s;
}
.sync-countdown:hover { color: var(--text-white, #fff); }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             