/*
 * Web de Super Roleplay para SA-MP (landing, login, PCU, tienda y PCA),
 * con el mismo aire que la web del servidor de FiveM y que el centro de
 * ayuda: fondo negro con halo calido, el rayo latiendo en la cabecera,
 * columna de secciones a la izquierda y tarjetas a la derecha.
 *
 * Los colores son la paleta oficial del servidor ([core]/constants).
 */

:root {
	--color-primary: #ffc93c;
	--color-secondary: #ff6a00;
	--color-black: #0c0e10;
	--color-gunmetal: #23282d;
	--color-steel: #97a2ab;
	--color-white: #eef2f5;
	--color-success: #00b74a;
	--color-danger: #c72c3f;
	--color-warning: #ffb237;
	--color-police: #3c8dff;

	--rgb-primary: 255, 201, 60;
	--rgb-secondary: 255, 106, 0;
	--rgb-black: 12, 14, 16;
	--rgb-gunmetal: 35, 40, 45;
	--rgb-steel: 151, 162, 171;
	--rgb-white: 238, 242, 245;
	--rgb-success: 0, 183, 74;
	--rgb-danger: 199, 44, 63;
	--rgb-warning: 255, 178, 55;

	--top-height: 76px;
	--side-width: 250px;
}

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

html,
body {
	min-height: 100%;
	background: var(--color-black);
	color: var(--color-white);
	font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

button {
	font: inherit;
}

#app {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}

/* Halo calido detras del contenido + vineteado, como en la loadscreen */
#app::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(
			620px 620px at 18% 8%,
			rgba(var(--rgb-secondary), 0.14),
			transparent 70%
		),
		radial-gradient(
			800px 620px at 85% 100%,
			rgba(var(--rgb-primary), 0.06),
			transparent 70%
		),
		radial-gradient(
			1300px 1300px at 50% 50%,
			transparent 50%,
			rgba(0, 0, 0, 0.7)
		);
}

#app > * {
	position: relative;
	z-index: 1;
}

/* ─── Cabecera ─────────────────────────────────────────────────────────── */

#top {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--top-height);
	padding: 0 28px;
	border-bottom: 1px solid rgba(var(--rgb-steel), 0.14);
	background: rgba(var(--rgb-black), 0.86);
	backdrop-filter: blur(8px);
}

#brand {
	display: flex;
	align-items: center;
	gap: 14px;
	color: inherit;
}

#wordmark {
	height: 30px;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}

#brand-text {
	display: flex;
	flex-direction: column;
	margin-left: 4px;
	padding-left: 14px;
	border-left: 1px solid rgba(var(--rgb-steel), 0.25);
}

#title {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

#subtitle {
	font-size: 11px;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-steel);
}

#top-right {
	display: flex;
	align-items: center;
	gap: 18px;
}

#top-nav {
	display: flex;
	gap: 4px;
}

#top-nav a {
	padding: 8px 12px;
	border-radius: 18px;
	color: var(--color-steel);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition:
		background 0.12s,
		color 0.12s;
}

#top-nav a:hover {
	background: rgba(var(--rgb-white), 0.05);
	color: var(--color-white);
}

#top-nav a.active {
	background: rgba(var(--rgb-primary), 0.1);
	color: var(--color-primary);
}

#user-box {
	display: flex;
	align-items: center;
	gap: 10px;
}

#menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(var(--rgb-steel), 0.3);
	border-radius: 50%;
	background: rgba(var(--rgb-gunmetal), 0.7);
	color: var(--color-white);
	cursor: pointer;
}

#menu-toggle svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
}

#top.open #menu-toggle {
	border-color: var(--color-primary);
	color: var(--color-primary);
}

.user-chip {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.2;
}

.user-chip .user-name {
	font-weight: 700;
	color: var(--color-white);
}

.user-chip .user-rank {
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-steel);
}

.user-chip .user-rank.staff {
	color: var(--color-warning);
}

/* ─── Estructura ───────────────────────────────────────────────────────── */

#shell {
	flex: 1;
	display: grid;
	grid-template-columns: auto 1fr;
	min-height: calc(100vh - var(--top-height));
}

#side {
	width: var(--side-width);
	border-right: 1px solid rgba(var(--rgb-steel), 0.14);
	background: rgba(var(--rgb-black), 0.35);
}

#side[hidden] {
	display: none;
}

/* sin columna lateral (landing, login, tienda) el contenido ocupa todo el
   ancho; si no, caeria en la primera columna y quedaria estrecho */
#side[hidden] + #main {
	grid-column: 1 / -1;
}

#nav {
	position: sticky;
	top: var(--top-height);
	padding: 14px 0 20px;
}

.group-title {
	margin: 16px 24px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: rgba(var(--rgb-steel), 0.75);
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 22px;
	border: 0;
	border-left: 3px solid transparent;
	background: transparent;
	color: var(--color-steel);
	font-size: 14.5px;
	text-align: left;
	cursor: pointer;
	transition:
		background 0.12s,
		color 0.12s;
}

.nav-item svg {
	flex: none;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.nav-item:hover {
	background: rgba(var(--rgb-white), 0.04);
	color: var(--color-white);
}

.nav-item.active {
	border-left-color: var(--color-primary);
	background: rgba(var(--rgb-primary), 0.08);
	color: var(--color-primary);
}

#main {
	min-width: 0;
	width: 100%;
	padding: 32px 44px 56px;
}

#content {
	max-width: 1180px;
	margin: 0 auto;
	animation: slide-in 0.22s ease-out;
}

/* ─── Cabecera de seccion y tarjetas (como en la ayuda) ────────────────── */

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
	margin-bottom: 24px;
}

.section-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: linear-gradient(
		135deg,
		rgba(var(--rgb-primary), 0.22),
		rgba(var(--rgb-secondary), 0.16)
	);
	border: 1px solid rgba(var(--rgb-primary), 0.3);
	color: var(--color-primary);
	box-shadow: 0 0 22px rgba(var(--rgb-secondary), 0.18);
}

.section-icon svg,
.tile-icon svg,
.stat-icon svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.section-title {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.section-blurb {
	margin-top: 2px;
	font-size: 14.5px;
	color: var(--color-steel);
}

.section-head .spacer {
	flex: 1;
}

/* el titulo comparte fila con el icono aunque la cabecera se parta; lo
   que salta de linea son los extras (botones, etiquetas) */
.section-head > div:not(.section-icon):not(.spacer) {
	flex: 1 1 200px;
	min-width: 0;
}

.cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.cards.three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ritmo vertical: cada bloque de primer nivel se separa del anterior;
   una cabecera de seccion nueva abre mas hueco, y lo que va justo debajo
   de una cabecera o de una barra de herramientas se pega a ella */
#content > * + * {
	margin-top: 20px;
}

#content > * + .section-head {
	margin-top: 40px;
}

#content > .section-head + *,
#content > .toolbar + * {
	margin-top: 0;
}

.card {
	position: relative;
	/* como celda de rejilla no puede crecer mas que su columna: una tabla
	   ancha dentro se desplaza en horizontal en vez de desbordar */
	min-width: 0;
	padding: 18px 20px;
	border: 1px solid rgba(var(--rgb-steel), 0.16);
	border-radius: 14px;
	background: rgba(var(--rgb-gunmetal), 0.55);
	transition: border-color 0.15s;
}

.card:hover {
	border-color: rgba(var(--rgb-primary), 0.4);
}

.card.wide {
	grid-column: 1 / -1;
}

.card.note {
	border-color: rgba(var(--rgb-danger), 0.55);
	background: rgba(var(--rgb-danger), 0.1);
}

.card.note .card-title {
	color: var(--color-danger);
}

.card.ok {
	border-color: rgba(var(--rgb-success), 0.45);
	background: rgba(var(--rgb-success), 0.08);
}

.card.ok .card-title {
	color: var(--color-success);
}

.card.warn {
	border-color: rgba(var(--rgb-warning), 0.5);
	background: rgba(var(--rgb-warning), 0.08);
}

.card.warn .card-title {
	color: var(--color-warning);
}

.card-title {
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 700;
	color: var(--color-primary);
}

.card-body {
	color: rgba(var(--rgb-white), 0.82);
}

.card-body p + p {
	margin-top: 8px;
}

.card-body strong {
	color: var(--color-white);
}

.info-rows {
	display: flex;
	flex-direction: column;
}

.info-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 7px 0;
	border-bottom: 1px solid rgba(var(--rgb-steel), 0.12);
}

.info-row:last-child {
	border-bottom: 0;
}

.info-label {
	color: var(--color-steel);
}

.info-value {
	font-weight: 700;
	text-align: right;
	color: var(--color-white);
	word-break: break-word;
}

.empty {
	padding: 28px 0;
	text-align: center;
	color: var(--color-steel);
}

.muted {
	color: var(--color-steel);
}

.small {
	font-size: 12.5px;
}

/* ─── Etiquetas de estado ──────────────────────────────────────────────── */

.badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 10px;
	background: rgba(var(--rgb-steel), 0.16);
	color: var(--color-steel);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}

.badge.success {
	background: rgba(var(--rgb-success), 0.16);
	color: var(--color-success);
}

.badge.danger {
	background: rgba(var(--rgb-danger), 0.18);
	color: #ff6b7d;
}

.badge.warning {
	background: rgba(var(--rgb-warning), 0.16);
	color: var(--color-warning);
}

.badge.primary {
	background: rgba(var(--rgb-primary), 0.14);
	color: var(--color-primary);
}

.badge.police {
	background: rgba(60, 141, 255, 0.16);
	color: var(--color-police);
}

/* ─── Formularios y botones ────────────────────────────────────────────── */

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

.form-row {
	display: flex;
	gap: 12px;
}

.form-row > * {
	flex: 1;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.field label {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-steel);
}

.input,
.select {
	width: 100%;
	height: 42px;
	padding: 0 14px;
	border: 1px solid rgba(var(--rgb-steel), 0.25);
	border-radius: 21px;
	background: rgba(var(--rgb-gunmetal), 0.7);
	color: var(--color-white);
	font: inherit;
	outline: none;
	transition: border-color 0.15s;
}

.input::placeholder {
	color: rgba(var(--rgb-steel), 0.8);
}

.input:focus,
.select:focus {
	border-color: var(--color-primary);
}

.input.code {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.4em;
	text-align: center;
}

.select option {
	background: var(--color-gunmetal);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 24px;
	border: 1px solid rgba(var(--rgb-steel), 0.3);
	border-radius: 24px;
	background: rgba(var(--rgb-gunmetal), 0.7);
	color: var(--color-white);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		transform 0.12s,
		box-shadow 0.12s,
		background 0.12s,
		border-color 0.12s;
}

.btn:hover {
	border-color: rgba(var(--rgb-primary), 0.5);
	transform: translateY(-1px);
}

.btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.btn.primary {
	border: 0;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary)
	);
	color: var(--color-black);
	box-shadow: 0 0 16px rgba(var(--rgb-secondary), 0.45);
}

.btn.primary:hover {
	box-shadow: 0 4px 22px rgba(var(--rgb-secondary), 0.6);
}

.btn.danger {
	border-color: rgba(var(--rgb-danger), 0.6);
	background: rgba(var(--rgb-danger), 0.2);
}

.btn.danger:hover {
	background: var(--color-danger);
	border-color: var(--color-danger);
}

.btn.success {
	border-color: rgba(var(--rgb-success), 0.6);
	background: rgba(var(--rgb-success), 0.18);
}

.btn.small {
	padding: 7px 14px;
	font-size: 11.5px;
}

.btn.link {
	border-color: transparent;
	background: transparent;
	color: var(--color-steel);
}

.btn.link:hover {
	color: var(--color-white);
	transform: none;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.form-error {
	padding: 10px 14px;
	border: 1px solid rgba(var(--rgb-danger), 0.5);
	border-radius: 10px;
	background: rgba(var(--rgb-danger), 0.12);
	color: #ff8a98;
	font-size: 14px;
}

.form-error:empty {
	display: none;
}

/* ─── Landing ──────────────────────────────────────────────────────────── */

/* la landing se centra en vertical en lo que queda bajo la cabecera */
.landing {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - var(--top-height) - 88px);
}

.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 56px 0 28px;
	text-align: center;
}

.hero-logo {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.hero-bolt {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 240px;
	height: 240px;
	animation: heartbeat 2.4s ease-in-out infinite;
}

.hero-bolt::before {
	content: "";
	position: absolute;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(
		circle,
		rgba(var(--rgb-secondary), 0.38),
		rgba(var(--rgb-primary), 0.1) 45%,
		transparent 70%
	);
	animation: aura 2.4s ease-in-out infinite;
}

.hero-bolt img {
	position: relative;
	height: 220px;
	filter: drop-shadow(0 0 14px rgba(var(--rgb-secondary), 0.55));
	animation: flare 2.4s ease-in-out infinite;
}

.hero-wordmark {
	height: 100px;
	filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.beta-badge {
	display: inline-block;
	margin-top: 22px;
	padding: 5px 14px;
	border: 1px solid rgba(var(--rgb-warning), 0.55);
	border-radius: 14px;
	background: rgba(var(--rgb-warning), 0.14);
	color: var(--color-warning);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

.hero-tagline {
	margin-top: 12px;
	font-size: 17px;
	color: var(--color-steel);
}

.hero-status {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding: 8px 16px;
	border: 1px solid rgba(var(--rgb-steel), 0.2);
	border-radius: 20px;
	background: rgba(var(--rgb-gunmetal), 0.55);
	font-size: 13px;
	color: var(--color-steel);
}

.dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--color-steel);
}

.dot.on {
	background: var(--color-success);
	box-shadow: 0 0 8px rgba(var(--rgb-success), 0.8);
}

.dot.off {
	background: var(--color-danger);
}

.tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	width: 100%;
	max-width: 820px;
	margin: 28px auto 0;
}

.tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 30px 14px 28px;
	border: 1px solid rgba(var(--rgb-steel), 0.16);
	border-radius: 16px;
	background: rgba(var(--rgb-gunmetal), 0.55);
	color: var(--color-white);
	text-align: center;
	transition:
		border-color 0.15s,
		transform 0.15s,
		box-shadow 0.15s;
}

.tile:hover {
	border-color: rgba(var(--rgb-primary), 0.5);
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.tile-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 15px;
	background: linear-gradient(
		135deg,
		rgba(var(--rgb-primary), 0.22),
		rgba(var(--rgb-secondary), 0.16)
	);
	border: 1px solid rgba(var(--rgb-primary), 0.3);
	color: var(--color-primary);
	box-shadow: 0 0 26px rgba(var(--rgb-secondary), 0.2);
}

.tile-icon svg {
	width: 26px;
	height: 26px;
}

.tile.discord .tile-icon {
	background: linear-gradient(
		135deg,
		rgba(88, 101, 242, 0.3),
		rgba(88, 101, 242, 0.12)
	);
	border-color: rgba(88, 101, 242, 0.5);
	color: #8b95ff;
	box-shadow: 0 0 26px rgba(88, 101, 242, 0.25);
}

.tile-title {
	margin-top: 4px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tile-desc {
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--color-steel);
}

/* video de presentacion: 16:9 y del ancho de los accesos */
.video {
	width: 100%;
	max-width: 820px;
	margin: 40px auto 0;
}

.video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid rgba(var(--rgb-steel), 0.2);
	border-radius: 16px;
	background: rgba(var(--rgb-gunmetal), 0.55);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* texto descriptivo de la landing (tambien es lo que leen los buscadores) */
.about {
	max-width: 760px;
	margin: 44px auto 0;
	text-align: center;
}

.about h2 {
	margin-bottom: 10px;
	font-size: 20px;
	font-weight: 700;
	color: var(--color-white);
}

.about p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--color-steel);
}

.about p + p {
	margin-top: 10px;
}

.about strong {
	color: rgba(var(--rgb-white), 0.9);
	font-weight: 700;
}

.about-links {
	margin-top: 14px;
}

/* aviso de la beta: destacado en ambar, encima de la descripcion */
.about.beta {
	padding: 22px 26px;
	border: 1px solid rgba(var(--rgb-warning), 0.45);
	border-radius: 16px;
	background: rgba(var(--rgb-warning), 0.07);
}

.about.beta h2 {
	color: var(--color-warning);
}

/* ─── Como jugar (pasos numerados, como las reglas de la ayuda) ────────── */

.steps {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.step {
	display: flex;
	gap: 18px;
	padding: 18px 22px;
	border: 1px solid rgba(var(--rgb-steel), 0.16);
	border-radius: 14px;
	background: rgba(var(--rgb-gunmetal), 0.55);
}

.step-number {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(
		135deg,
		var(--color-primary),
		var(--color-secondary)
	);
	color: var(--color-black);
	font-size: 20px;
	font-weight: 700;
	line-height: 44px;
	text-align: center;
	box-shadow: 0 0 16px rgba(var(--rgb-secondary), 0.4);
}

.step-title {
	margin-bottom: 5px;
	font-size: 17px;
	font-weight: 700;
	color: var(--color-white);
}

.step-body {
	color: rgba(var(--rgb-white), 0.82);
	line-height: 1.55;
}

.step-body strong {
	color: var(--color-white);
}

/* ─── Contacto ─────────────────────────────────────────────────────────── */

.contact-card {
	padding-top: 22px;
}

.contact-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 12px;
	border-radius: 15px;
	background: linear-gradient(
		135deg,
		rgba(var(--rgb-primary), 0.22),
		rgba(var(--rgb-secondary), 0.16)
	);
	border: 1px solid rgba(var(--rgb-primary), 0.3);
	color: var(--color-primary);
}

.contact-icon.discord {
	background: linear-gradient(
		135deg,
		rgba(88, 101, 242, 0.3),
		rgba(88, 101, 242, 0.12)
	);
	border-color: rgba(88, 101, 242, 0.5);
	color: #8b95ff;
}

.contact-icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.contact-email {
	display: inline-block;
	margin: 10px 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: var(--color-white);
	text-shadow: 0 0 14px rgba(var(--rgb-secondary), 0.4);
	word-break: break-all;
}

.contact-card .btn {
	margin-top: 10px;
}

kbd {
	display: inline-block;
	min-width: 26px;
	padding: 0 7px;
	border: 1px solid rgba(var(--rgb-steel), 0.45);
	border-bottom-width: 3px;
	border-radius: 6px;
	background: rgba(var(--rgb-black), 0.7);
	color: var(--color-white);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	white-space: nowrap;
}

/* contenido inicial de index.html (lo sustituye el router al cargar) */
#content > h1 {
	font-size: 22px;
	font-weight: 700;
}

/* enlace a la web del servidor de SA-MP */
.samp-link {
	margin: 36px auto 0;
	padding: 12px 18px;
	max-width: 560px;
	border: 1px solid rgba(var(--rgb-steel), 0.2);
	border-radius: 12px;
	background: rgba(var(--rgb-gunmetal), 0.45);
	text-align: center;
	font-size: 14px;
	color: var(--color-steel);
}

.samp-link a {
	font-weight: 700;
}

.landing-foot {
	margin-top: 40px;
	text-align: center;
	font-size: 12.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(var(--rgb-steel), 0.7);
}

/* ─── Pie ──────────────────────────────────────────────────────────────── */

/* pie comun: el aviso sobre Rockstar Games, quien opera el servidor y su
   correo (lo exige el acuerdo de licencia de Rockstar en toda web del
   servidor), y el enlace al Acuerdo de usuario */
#foot {
	position: relative;
	padding: 26px 24px 30px;
	border-top: 1px solid rgba(var(--rgb-steel), 0.14);
	text-align: center;
	color: rgba(var(--rgb-steel), 0.85);
	font-size: 13px;
	line-height: 1.6;
}

#foot p {
	margin: 0 auto;
	max-width: 900px;
}

#foot p + p {
	margin-top: 6px;
}

.foot-disclaimer {
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-white);
}

.foot-legal {
	font-size: 12px;
	color: rgba(var(--rgb-steel), 0.65);
}

#foot a {
	color: var(--color-primary);
}

/* ─── Acuerdo de usuario ───────────────────────────────────────────────── */

.pdf-frame {
	height: min(82vh, 1100px);
	overflow: hidden;
	border: 1px solid rgba(var(--rgb-steel), 0.16);
	border-radius: 14px;
	background: rgba(var(--rgb-gunmetal), 0.55);
}

.pdf-frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: transparent;
}

/* ─── Login ────────────────────────────────────────────────────────────── */

.auth-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: calc(100vh - var(--top-height) - 88px);
}

.auth-card {
	width: 100%;
	max-width: 440px;
	padding: 30px 32px 28px;
}

.auth-card .section-head {
	margin-bottom: 18px;
}

.auth-hint {
	margin-top: 16px;
	font-size: 13px;
	color: var(--color-steel);
}

/* ─── Estadisticas ─────────────────────────────────────────────────────── */

.stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.stat {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid rgba(var(--rgb-steel), 0.16);
	border-radius: 14px;
	background: rgba(var(--rgb-gunmetal), 0.55);
}

.stat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: rgba(var(--rgb-primary), 0.12);
	color: var(--color-primary);
}

.stat-icon svg {
	width: 22px;
	height: 22px;
}

.stat-value {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
}

.stat-label {
	font-size: 11.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-steel);
}

/* ─── Tablas ───────────────────────────────────────────────────────────── */

.table-wrap {
	overflow-x: auto;
	border: 1px solid rgba(var(--rgb-steel), 0.16);
	border-radius: 14px;
	background: rgba(var(--rgb-gunmetal), 0.45);
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

th,
td {
	padding: 10px 14px;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid rgba(var(--rgb-steel), 0.12);
}

th.num {
	text-align: right;
}

th.num {
	text-align: right;
}

th {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-steel);
	background: rgba(var(--rgb-black), 0.35);
	white-space: nowrap;
}

tr:last-child td {
	border-bottom: 0;
}

tbody tr.clickable {
	cursor: pointer;
	transition: background 0.12s;
}

tbody tr.clickable:hover {
	background: rgba(var(--rgb-primary), 0.06);
}

td.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

td.pos {
	color: var(--color-success);
}

td.neg {
	color: #ff8a98;
}

.toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 16px;
}

/* formulario de sanciones del PCA: cada accion en su fila */
.sanction-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.sanction-row .input {
	flex: 1;
	min-width: 0;
	height: 38px;
}

.sanction-row .btn {
	flex: none;
}

/* formulario de sanciones del PCA: cada accion en su fila */
.sanction-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.sanction-row .input {
	flex: 1;
	min-width: 0;
	height: 38px;
}

.sanction-row .btn {
	flex: none;
}

.toolbar .input {
	max-width: 340px;
}

.pager {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 14px;
	color: var(--color-steel);
	font-size: 13px;
}

/* ─── Tienda ───────────────────────────────────────────────────────────── */

.shop-group + .shop-group {
	margin-top: 32px;
}

.group-heading {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-white);
}

.group-blurb {
	margin: 2px 0 14px;
	font-size: 14px;
	color: var(--color-steel);
}

.shop-group + .shop-group {
	margin-top: 32px;
}

.group-heading {
	font-size: 20px;
	font-weight: 700;
	color: var(--color-white);
}

.group-blurb {
	margin: 2px 0 14px;
	font-size: 14px;
	color: var(--color-steel);
}

/* aviso de que son los Coins: va entre los paquetes y el resumen de pago */
.shop-terms {
	margin: 24px 0;
}

.shop-terms ul {
	margin: 0;
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
}

.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.product {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 22px 14px 18px;
	border: 1px solid rgba(var(--rgb-steel), 0.16);
	border-radius: 16px;
	background: rgba(var(--rgb-gunmetal), 0.55);
	color: var(--color-white);
	cursor: pointer;
	text-align: center;
	transition:
		border-color 0.15s,
		transform 0.15s,
		box-shadow 0.15s;
}

.product:hover {
	border-color: rgba(var(--rgb-primary), 0.5);
	transform: translateY(-3px);
}

.product.selected {
	border-color: var(--color-primary);
	box-shadow: 0 0 22px rgba(var(--rgb-secondary), 0.35);
}

.product-amount {
	font-size: 26px;
	font-weight: 700;
	color: var(--color-primary);
}

.product-kind {
	font-size: 11.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-steel);
}

.product-price {
	margin-top: 6px;
	padding: 4px 14px;
	border-radius: 14px;
	background: rgba(var(--rgb-primary), 0.12);
	font-weight: 700;
	color: var(--color-white);
}

.product {
	position: relative;
}

.checkout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	align-items: start;
}

#paypal-buttons {
	min-height: 150px;
}

/* ─── Gracias por la compra ────────────────────────────────────────────── */

.thanks {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 560px;
	margin: 30px auto 0;
	text-align: center;
}

.thanks-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: rgba(var(--rgb-success), 0.14);
	border: 1px solid rgba(var(--rgb-success), 0.5);
	color: var(--color-success);
	box-shadow: 0 0 34px rgba(var(--rgb-success), 0.3);
}

.thanks-icon svg {
	width: 42px;
	height: 42px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.thanks-title {
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.thanks-text {
	margin-top: 8px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--color-steel);
}

.thanks-text strong {
	color: var(--color-white);
}

.thanks-card {
	width: 100%;
	margin-top: 22px;
	text-align: left;
}

.thanks-actions {
	justify-content: center;
	margin-top: 22px;
}

/* ─── Avisos flotantes ─────────────────────────────────────────────────── */

#toasts {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 50;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.toast {
	min-width: 260px;
	max-width: 400px;
	padding: 12px 16px;
	border: 1px solid rgba(var(--rgb-steel), 0.3);
	border-left: 4px solid var(--color-primary);
	border-radius: 12px;
	background: rgba(var(--rgb-gunmetal), 0.96);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	animation: slide-in 0.2s ease-out;
}

.toast.success {
	border-left-color: var(--color-success);
}

.toast.error {
	border-left-color: var(--color-danger);
}

.loading {
	padding: 40px 0;
	text-align: center;
	color: var(--color-steel);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 12px;
}

/* ─── Scroll ───────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background: rgba(var(--rgb-steel), 0.3);
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(var(--rgb-primary), 0.5);
}

/* ─── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
	.tiles,
	.products,
	.stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cards.three {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	:root {
		--top-height: 64px;
	}

	#top {
		padding: 0 14px;
	}

	#brand-text {
		display: none;
	}

	#wordmark {
		height: 26px;
	}

	#top-right {
		gap: 10px;
	}

	/* la navegacion se recoge en un panel bajo la cabecera */
	#menu-toggle {
		display: flex;
	}

	#top-nav {
		display: none;
		position: absolute;
		top: var(--top-height);
		left: 0;
		right: 0;
		flex-direction: column;
		padding: 8px 10px 12px;
		border-bottom: 1px solid rgba(var(--rgb-steel), 0.14);
		background: rgba(var(--rgb-black), 0.96);
		box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
	}

	#top.open #top-nav {
		display: flex;
	}

	#top-nav a {
		padding: 12px 14px;
		border-radius: 10px;
		font-size: 13px;
	}

	.user-chip {
		display: none;
	}

	#shell {
		grid-template-columns: 1fr;
	}

	#side {
		width: auto;
		border-right: 0;
		border-bottom: 1px solid rgba(var(--rgb-steel), 0.14);
	}

	#nav {
		position: static;
		display: flex;
		flex-wrap: wrap;
		padding: 8px;
	}

	.group-title {
		display: none;
	}

	.nav-item {
		width: auto;
		padding: 8px 12px;
		border-left: 0;
		border-radius: 16px;
	}

	#main {
		padding: 20px 14px 40px;
	}

	.cards,
	.cards.three,
	.checkout {
		grid-template-columns: 1fr;
	}

	.section-title {
		font-size: 22px;
	}

	.section-head .spacer {
		display: none;
	}

	.landing {
		min-height: 0;
		padding-top: 12px;
	}

	.hero {
		padding-top: 20px;
	}

	.hero-logo {
		gap: 12px;
	}

	/* el rayo y su halo latiendo caben de sobra en la pantalla */
	.hero-bolt {
		width: 120px;
		height: 120px;
	}

	.hero-bolt::before {
		width: 170px;
		height: 170px;
	}

	.hero-bolt img {
		height: 108px;
	}

	.hero-wordmark {
		height: 52px;
	}

	.hero-tagline {
		padding: 0 8px;
		font-size: 15px;
	}

	.tiles {
		margin-top: 28px;
	}

	.tile {
		padding: 20px 10px 18px;
	}

	.about {
		margin-top: 32px;
	}

	.auth-card {
		padding: 22px 18px 20px;
	}

	.form-row {
		flex-direction: column;
	}

	.step {
		gap: 12px;
		padding: 14px;
	}

	.toolbar .input,
	.toolbar .select {
		flex: 1 1 100%;
		max-width: none;
	}

	.pager {
		flex-wrap: wrap;
		justify-content: center;
	}

	/* en movil las celdas no se parten: la tabla se desplaza en horizontal
	   dentro de su caja */
	td {
		white-space: nowrap;
	}

	#toasts {
		right: 14px;
		bottom: 14px;
		left: 14px;
	}

	.toast {
		min-width: 0;
		max-width: none;
	}
}

@media (max-width: 520px) {
	.stats {
		grid-template-columns: 1fr;
	}

	.tiles,
	.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.product-amount {
		font-size: 22px;
	}

	.tile-desc {
		display: none;
	}
}

/* ─── Animaciones (las mismas que la loadscreen) ───────────────────────── */

@keyframes slide-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes heartbeat {
	0% {
		transform: scale(1);
	}
	10% {
		transform: scale(1.11);
	}
	20% {
		transform: scale(0.99);
	}
	30% {
		transform: scale(1.06);
	}
	44% {
		transform: scale(1);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes flare {
	0% {
		filter: drop-shadow(0 0 5px rgba(var(--rgb-secondary), 0.5));
	}
	10% {
		filter: drop-shadow(0 0 12px rgba(var(--rgb-primary), 0.95));
	}
	30% {
		filter: drop-shadow(0 0 9px rgba(var(--rgb-secondary), 0.75));
	}
	44% {
		filter: drop-shadow(0 0 5px rgba(var(--rgb-secondary), 0.5));
	}
	100% {
		filter: drop-shadow(0 0 5px rgba(var(--rgb-secondary), 0.5));
	}
}

@keyframes aura {
	0% {
		transform: scale(0.92);
		opacity: 0.55;
	}
	10% {
		transform: scale(1.08);
		opacity: 1;
	}
	30% {
		transform: scale(1);
		opacity: 0.8;
	}
	44% {
		transform: scale(0.92);
		opacity: 0.55;
	}
	100% {
		transform: scale(0.92);
		opacity: 0.55;
	}
}

/* ─── Propio de la web de SA-MP ────────────────────────────────────────── */

/* cinco accesos en la portada (jugar, Discord, Instagram, tienda y PCU) */
.tiles.five {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	max-width: 960px;
}

.tile.download .tile-icon {
	background: linear-gradient(
		135deg,
		rgba(var(--rgb-success), 0.28),
		rgba(var(--rgb-primary), 0.12)
	);
	border-color: rgba(var(--rgb-success), 0.5);
	color: #4ee08a;
	box-shadow: 0 0 26px rgba(var(--rgb-success), 0.22);
}

/* direccion del servidor con boton de copiar, bajo el estado */
.ip-box {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 14px;
	padding: 10px 18px;
	border: 1px solid rgba(var(--rgb-primary), 0.45);
	border-radius: 12px;
	background: rgba(var(--rgb-black), 0.6);
	color: var(--color-primary);
	cursor: pointer;
	transition:
		border-color 0.15s,
		box-shadow 0.15s;
}

.ip-box:hover {
	border-color: var(--color-primary);
	box-shadow: 0 0 18px rgba(var(--rgb-secondary), 0.35);
}

.ip-label {
	padding: 2px 8px;
	border-radius: 6px;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary)
	);
	color: var(--color-black);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
}

.ip-value {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.ip-box svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.8;
}

/* la ficha del jugador en la cabecera lleva la cara de su skin */
.user-chip {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	color: inherit;
}

.user-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(var(--rgb-steel), 0.4);
	background: var(--color-gunmetal);
	object-fit: cover;
}

.user-text {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.2;
}

/* casilla de "recordar" del acceso */
.check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--color-steel);
	cursor: pointer;
}

.check input {
	width: 18px;
	height: 18px;
	accent-color: var(--color-primary);
	cursor: pointer;
}

/* pestañas de la tienda */
.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pill {
	padding: 9px 18px;
	border: 1px solid rgba(var(--rgb-steel), 0.3);
	border-radius: 20px;
	background: rgba(var(--rgb-gunmetal), 0.6);
	color: var(--color-steel);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		background 0.12s,
		color 0.12s,
		border-color 0.12s;
}

.pill:hover {
	color: var(--color-white);
	border-color: rgba(var(--rgb-primary), 0.5);
}

.pill.active {
	border-color: var(--color-primary);
	background: rgba(var(--rgb-primary), 0.12);
	color: var(--color-primary);
}

/* productos: la moneda de Coins, el icono del resto, la lista de un
   paquete y la etiqueta de oferta */
.product-image {
	width: 96px;
	height: 96px;
	margin-bottom: 6px;
	border-radius: 20px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.product-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 6px;
	border-radius: 16px;
	background: linear-gradient(
		135deg,
		rgba(var(--rgb-primary), 0.22),
		rgba(var(--rgb-secondary), 0.16)
	);
	border: 1px solid rgba(var(--rgb-primary), 0.3);
	color: var(--color-primary);
}

.product-icon svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.product-list {
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
	font-size: 12.5px;
	line-height: 1.5;
	color: rgba(var(--rgb-white), 0.85);
}

.product-offer {
	margin-top: 6px;
	padding: 2px 10px;
	border-radius: 10px;
	background: rgba(var(--rgb-secondary), 0.18);
	color: var(--color-secondary);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* dialogo modal (motivo de un cambio en el PCA) */
.modal-wrap {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	animation: slide-in 0.15s ease-out;
}

.modal {
	width: 100%;
	max-width: 480px;
	border: 1px solid rgba(var(--rgb-steel), 0.25);
	border-radius: 16px;
	background: rgba(var(--rgb-gunmetal), 0.98);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(var(--rgb-steel), 0.16);
}

.modal-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--color-primary);
}

.modal-close {
	width: 32px;
	height: 32px;
	border: 1px solid rgba(var(--rgb-steel), 0.3);
	border-radius: 50%;
	background: transparent;
	color: var(--color-steel);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.modal-close:hover {
	color: var(--color-white);
	border-color: var(--color-primary);
}

.modal-body {
	padding: 18px 20px 20px;
}

/* formularios de cambio del PCA: etiqueta, campo y boton en cada fila */
.sanction-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sanction-label {
	flex: 0 0 150px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-steel);
}

.thanks-icon.fail {
	background: rgba(var(--rgb-danger), 0.14);
	border-color: rgba(var(--rgb-danger), 0.5);
	color: #ff6b7d;
	box-shadow: 0 0 34px rgba(var(--rgb-danger), 0.3);
}

/* donaciones: Willy en la esquina y la lluvia de billetes al pulsar */
.donate {
	position: relative;
	min-height: 420px;
	overflow: hidden;
	border-radius: 16px;
}

.donate-card {
	position: relative;
	z-index: 2;
	max-width: 520px;
}

.donate-form {
	margin-top: 16px;
}

.donate-willy {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	max-height: 100%;
	max-width: 45%;
	pointer-events: none;
	filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}

.donate-money {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.55;
	filter: blur(3px);
}

/* aviso de cookies: barra fija abajo hasta que se acepta */
#cookie-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 45;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 24px;
	padding: 14px 20px;
	border-top: 1px solid rgba(var(--rgb-steel), 0.2);
	background: rgba(var(--rgb-black), 0.96);
	box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.5);
	font-size: 13.5px;
	color: var(--color-steel);
}

#cookie-banner[hidden] {
	display: none;
}

#cookie-banner p {
	max-width: 760px;
}

@media (max-width: 1100px) {
	.tiles.five {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.user-avatar {
		width: 32px;
		height: 32px;
	}

	.sanction-row {
		flex-wrap: wrap;
	}

	.sanction-label {
		flex: 1 1 100%;
	}

	.donate-willy {
		max-width: 60%;
		opacity: 0.5;
	}
}

@media (max-width: 520px) {
	.tiles.five {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* con cinco accesos en dos columnas el ultimo va centrado a lo ancho */
	.tiles.five .tile:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.ip-value {
		font-size: 15px;
	}
}

/* boton de descarga del launcher en el hero (donde estaba la caja de la IP) */
.hero-download {
	margin-top: 16px;
	padding: 13px 28px;
	font-size: 14.5px;
}

.hero-download svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ─── Selector de plataforma (Windows / Android) ─────────────────────── */

.platform-switch {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border: 1px solid rgba(var(--rgb-steel), 0.22);
	border-radius: 28px;
	background: rgba(var(--rgb-gunmetal), 0.6);
}
.platform-switch .platform {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	border: 0;
	border-radius: 22px;
	background: transparent;
	color: var(--color-steel);
	font: inherit;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		color 0.12s,
		background 0.12s,
		box-shadow 0.12s;
}
.platform-switch .platform:hover {
	color: var(--color-white);
}
.platform-switch .platform.active {
	color: var(--color-black);
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary)
	);
	box-shadow: 0 0 14px rgba(var(--rgb-secondary), 0.45);
}
.platform-switch .platform svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.platform-switch.large .platform {
	padding: 10px 24px;
	font-size: 13.5px;
}
.platform-switch.large .platform svg {
	width: 20px;
	height: 20px;
}
.hero-platforms {
	margin-top: 18px;
}
.hero-download {
	margin-top: 12px;
}
.howto-platforms {
	display: flex;
	justify-content: center;
	margin: 0 0 18px;
}

/* tres plataformas en pantallas estrechas: botones mas compactos y, si aun
   asi no caben, pasan a dos filas en vez de desbordar */
@media (max-width: 520px) {
	.platform-switch {
		flex-wrap: wrap;
		justify-content: center;
		max-width: 100%;
	}

	.platform-switch .platform,
	.platform-switch.large .platform {
		padding: 8px 12px;
		font-size: 11.5px;
		letter-spacing: 0.06em;
	}
}

/* ─── Visor 3D, fichas y listas del PCU y del PCA ──────────────────────── */

/* cabecera de seccion con la cara del skin en vez del icono: la misma caja
   que .section-icon, con la imagen llenandola */
.section-icon.section-avatar {
	overflow: hidden;
	background: var(--color-gunmetal);
}

.section-icon.section-avatar .avatar {
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.section-head .badges {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.avatar {
	flex: none;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(var(--rgb-steel), 0.4);
	border-radius: 50%;
	background: var(--color-gunmetal);
	object-fit: cover;
}

.avatar.lg {
	width: 56px;
	height: 56px;
	border: 1px solid rgba(var(--rgb-primary), 0.35);
	border-radius: 14px;
	box-shadow: 0 0 22px rgba(var(--rgb-secondary), 0.18);
}

/* cara, nombre y numero de cuenta en las tablas */
.who {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.who-text {
	line-height: 1.25;
}

/* rejilla de cifras con las que quepan (resumen del PCA, fichas) */
.stats.wide {
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.stats.wide .stat-value {
	font-size: 22px;
	white-space: nowrap;
}

.stat-value .badge {
	font-size: 12px;
}

/* barras de salud, comida, gasolina... */
.meters {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}

.meter {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.meter-head {
	display: flex;
	justify-content: space-between;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-steel);
}

.meter-bar {
	height: 6px;
	overflow: hidden;
	border-radius: 3px;
	background: rgba(var(--rgb-steel), 0.18);
}

.meter-fill {
	height: 100%;
	border-radius: 3px;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary)
	);
	transition: width 0.3s;
}

.meter.health .meter-fill {
	background: linear-gradient(90deg, #4ee08a, var(--color-success));
}

.meter.armour .meter-fill {
	background: linear-gradient(90deg, #8fb8ff, var(--color-police));
}

.meter.food .meter-fill {
	background: linear-gradient(
		90deg,
		var(--color-warning),
		var(--color-secondary)
	);
}

.meter.water .meter-fill {
	background: linear-gradient(90deg, #6fd3ff, var(--color-police));
}

/* visor 3D (js/models.js): hueco cuadrado con fondo oscuro y el lienzo
   que crea models.create dentro */
.model-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: radial-gradient(
			70% 70% at 50% 45%,
			rgba(var(--rgb-steel), 0.16),
			transparent 75%
		),
		rgba(var(--rgb-black), 0.55);
}

.model-view {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
}

[data-interactive="true"] > .model-view {
	cursor: grab;
}

[data-interactive="true"] > .model-view[data-dragging] {
	cursor: grabbing;
}

.model-stage[data-state="loading"] > .model-view {
	animation: model-pulse 1.2s ease-in-out infinite;
}

.model-stage[data-state="missing"] > .model-view,
.model-stage[data-state="error"] > .model-view {
	opacity: 0.7;
}

.model-stage[data-state="error"]::after {
	content: "Sin visor 3D";
	position: absolute;
	right: 0;
	bottom: 8px;
	left: 0;
	text-align: center;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(var(--rgb-steel), 0.8);
}

@keyframes model-pulse {
	0%,
	100% {
		opacity: 0.35;
	}
	50% {
		opacity: 0.7;
	}
}

/* celdas del inventario: modelo, nombre y cantidad */
.items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
}

.item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border: 1px solid rgba(var(--rgb-steel), 0.16);
	border-radius: 14px;
	background: rgba(var(--rgb-gunmetal), 0.55);
	transition: border-color 0.15s;
}

.item:hover {
	border-color: rgba(var(--rgb-primary), 0.4);
}

.item-name {
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.3;
}

.item-detail {
	margin-top: 4px;
	font-size: 12px;
	color: var(--color-steel);
}

.item-count {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 2px 8px;
	border-radius: 10px;
	background: rgba(var(--rgb-black), 0.75);
	font-size: 11.5px;
	font-weight: 700;
	color: var(--color-primary);
}

/* tarjetas de vehiculo (boton: abre la ficha) */
.vehicles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}

.vehicle {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	border: 1px solid rgba(var(--rgb-steel), 0.16);
	border-radius: 16px;
	background: rgba(var(--rgb-gunmetal), 0.55);
	color: var(--color-white);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition:
		border-color 0.15s,
		transform 0.15s,
		box-shadow 0.15s;
}

.vehicle:hover {
	border-color: rgba(var(--rgb-primary), 0.5);
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.vehicle-stage {
	aspect-ratio: 4 / 3;
}

.vehicle-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.vehicle-name {
	font-size: 15px;
	font-weight: 700;
}

.vehicle-plate {
	margin-left: 4px;
	padding: 1px 7px;
	border: 1px solid rgba(var(--rgb-steel), 0.35);
	border-radius: 5px;
	background: rgba(var(--rgb-white), 0.08);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	color: var(--color-steel);
	white-space: nowrap;
}

.vehicle-owner {
	font-size: 13px;
}

.vehicle-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.vehicle-meters {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.vehicle-meters .meter-head {
	font-size: 10.5px;
}

/* ficha de un vehiculo en el dialogo: visor interactivo y tablas */
.modal.wide {
	display: flex;
	flex-direction: column;
	max-width: 720px;
	max-height: calc(100vh - 40px);
}

.modal.wide .modal-body {
	overflow-y: auto;
}

.vehicle-detail-stage {
	max-height: 52vh;
}

.vehicle-hint {
	margin: 8px 0 12px;
	text-align: center;
}

.vehicle-detail-title {
	margin: 18px 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-primary);
}

.swatch {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 1px solid rgba(var(--rgb-white), 0.3);
	border-radius: 50%;
	vertical-align: middle;
}

/* filtros de las listas del PCA (buscador, tipo, pagina) */
.filters .input {
	flex: 1 1 240px;
	max-width: 360px;
}

.filters .select {
	width: auto;
	min-width: 180px;
}

.btn.warning {
	border-color: rgba(var(--rgb-warning), 0.6);
	background: rgba(var(--rgb-warning), 0.16);
}

.btn.warning:hover {
	background: rgba(var(--rgb-warning), 0.3);
}

.btn svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 820px) {
	.items {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
		gap: 10px;
	}

	.vehicles {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}

	.stats.wide {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.filters .input {
		max-width: none;
	}

	.filters .select {
		width: 100%;
	}
}

@media (max-width: 520px) {
	.vehicles,
	.stats.wide {
		grid-template-columns: 1fr;
	}
}

/* bloque de un bien (casa con su armario) en el PCU y el PCA */
.asset + .asset {
	margin-top: 12px;
}

.asset-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin-bottom: 10px;
}

.asset-title {
	min-width: 0;
	font-size: 15px;
}

.asset-sub {
	margin: 6px 0 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--color-steel);
}

.card.warn .card-body.small {
	font-size: 13.5px;
	line-height: 1.5;
}

.vehicle-actions {
	margin-top: 18px;
}

td .btn.small {
	padding: 5px 12px;
	font-size: 11px;
}

/* ─── Bandas y servidor del PCA ────────────────────────────────────────── */

/* la cabecera de la ficha de una banda toma su color (--crew, ya aclarado si
   es muy oscuro) */
.section-icon.crew-icon {
	color: var(--crew);
	border-color: color-mix(in srgb, var(--crew) 55%, transparent);
	background: color-mix(in srgb, var(--crew) 16%, transparent);
	box-shadow: 0 0 22px color-mix(in srgb, var(--crew) 22%, transparent);
}

.swatch.lg {
	width: 22px;
	height: 22px;
}

.crew-name {
	overflow-wrap: anywhere;
}

/* cambios pendientes de reinicio */
.pending-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 10px 0 12px 18px;
}

.perm-list {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
}

.perm-list .badge {
	font-size: 10.5px;
}

.input.color-input {
	height: 44px;
	padding: 4px 6px;
	cursor: pointer;
}

td .btn.small + .btn.small {
	margin-left: 6px;
}

/* bloques dentro de un contenedor que se rellena despues (estado del
   servidor): la misma separacion que entre los hijos de #content */
.stack > * + * {
	margin-top: 20px;
}
