/*
 * Web de Super Roleplay (landing, login, PCU, tienda y PCA) con el aire
 * del centro de ayuda del servidor: 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);
}

/* ─── 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);
}

.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.best {
	border-color: rgba(var(--rgb-secondary), 0.6);
}

.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-ribbon {
	position: absolute;
	top: -10px;
	padding: 2px 10px;
	border-radius: 10px;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary)
	);
	color: var(--color-black);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.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;
	}
}
