/* ==========================================================================
   Aetheria homepage theme — dark/emerald layout (paleta aetheria2.ro)
   Written from scratch for this project. Design tokens tuned for a warm,
   near-black base with gold accents and a looping video hero.
   ========================================================================== */

:root {
	--bg:            #0a0a0a;
	--bg-nav:        #07130d;
	--panel:         #0a1f16;
	--panel-2:       #0d261b;
	--panel-hi:      #123325;

	--gold:          #3ccf91;
	--gold-bright:   #8ff0c2;
	--gold-deep:     #1b6b48;
	--gold-border:   #1d4a35;
	--border-faint:  rgba(60, 207, 145, .16);
	--border-soft:   rgba(60, 207, 145, .08);
	/* auriul din logo — doar pentru chenare subtiri si accente */
	--metal:         #c9a35a;
	--metal-bright:  #e6c77f;
	--ivory:         #f4ead0;

	--text:          #f4f4f5;
	--heading:       #e4e4e7;
	--muted:         #a1a1aa;
	--muted-dim:     #71717a;

	--red:           #7d2b25;
	--shadow:        rgba(0, 0, 0, .5);

	--nav-h:         70px;
	--wrap:          1180px;
	--side-w:        300px;

	--font-ui:       Inter, "Segoe UI", Arial, sans-serif;
	--font-display:  Cinzel, "Times New Roman", serif;
}

/* --- reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 14px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--heading);
	margin: 0;
	font-weight: 700;
	letter-spacing: .02em;
}

/* --- top navigation ------------------------------------------------------- */

.nav {
	position: sticky;
	top: 0;
	z-index: 60;
	height: var(--nav-h);
	background: var(--bg-nav);
	border-bottom: 1px solid var(--border-faint);
	box-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}

.nav::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold-deep) 25%, var(--gold) 50%, var(--gold-deep) 75%, transparent);
	opacity: .7;
}

.nav-inner {
	max-width: var(--wrap);
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* With no mark between them the two halves close up into one centred row. */
.nav-menu {
	display: flex;
	align-items: center;
	gap: 34px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 0 1 auto;
}

.nav-menu.left  { justify-content: flex-end; padding-right: 17px; }
.nav-menu.right { justify-content: flex-start; padding-left: 17px; }

.nav-menu a {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--text);
	padding: 6px 0;
	position: relative;
	white-space: nowrap;
	transition: color .2s;
}

.nav-menu a::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 0;
	height: 1px;
	background: var(--gold);
	transform: translateX(-50%);
	transition: width .25s;
}

.nav-menu a:hover::after,
.nav-menu li.active a::after { width: 100%; }

.nav-logo {
	flex: 0 0 auto;
	margin: 0 26px;
	transition: transform .25s;
}
.nav-logo:hover { transform: scale(1.04); }
.nav-logo img { height: 52px; width: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .7)); }

/* --- buttons -------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid var(--gold-border);
	background: linear-gradient(180deg, #123325 0%, #0b2118 100%);
	color: #d9f5e6;
	font-family: var(--font-ui);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .07em;
	padding: 9px 18px;
	cursor: pointer;
	transition: .25s;
}
.btn:hover {
	border-color: var(--gold);
	color: #fff;
	background: linear-gradient(180deg, #184430 0%, #0f2a1e 100%);
}

.btn-gold {
	border: 1px solid var(--metal);
	background: linear-gradient(180deg, #23875c 0%, #17664a 55%, #11513a 100%);
	color: var(--ivory);
	font-family: var(--font-display);
	font-weight: 700;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-gold:hover {
	color: #fff;
	border-color: var(--metal-bright);
	background: linear-gradient(180deg, #2a9a69 0%, #1b7552 55%, #145d42 100%);
	box-shadow: 0 6px 24px rgba(60, 207, 145, .22), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.btn-block { width: 100%; }

/* hero call-to-action, hexagon-clipped */
.btn-play {
	font-size: 26px;
	letter-spacing: .05em;
	padding: 16px 54px;
	clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 22px 100%, 0 50%);
	border: 0;
}

/* --- hero ----------------------------------------------------------------- */

/* The hero height tracks the footage's own shape (1920x920 -> 47.9vw), so at
   normal widths the frame is shown whole and nothing is cropped. The clamp
   only bites on very wide or very narrow screens, and object-position then
   keeps the upper part — where the characters' heads are — in view. */
/* The footage is a wide banner strip (3820x940), so the band follows that
   shape: nothing is cropped at any width and it stays short. */
.hero {
	--hero-aspect: 33.3vw;
	position: relative;
	/* min-height, nu height: banda isi pastreaza inaltimea cand continutul e
	   scurt (cazul obisnuit), dar creste in loc sa taie cand e mai mult de
	   aratat — pe telefon, numaratoarea inversa ramanea cu o linie sub margine */
	min-height: clamp(340px, var(--hero-aspect), 800px);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	text-align: center;
}

.hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 20%;
	z-index: 0;
	pointer-events: none;
}
/* banda asteapta filmarea pe culoarea primului ei cadru, nu pe alta imagine */
.hero { background-color: #061a10; }
.hero-video.fade-in { opacity: 0; transition: opacity .9s ease; }
.hero-video.fade-in.is-playing { opacity: 1; }

/* darkens the footage and melts it into the page background */
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	/* only enough to seat the footage in the page: a light edge vignette and a
	   fade into the background colour at the bottom. Nothing over the middle. */
	/* The left of the supplied clip carries upscaling damage, so that edge gets
	   a firmer wash than the rest — it reads as depth, and the artwork the
	   viewer actually looks at stays untouched. */
	background:
		linear-gradient(90deg, var(--bg) 0%, rgba(15, 11, 7, .82) 6%, rgba(15, 11, 7, .35) 15%, rgba(15, 11, 7, 0) 26%),
		radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .28) 100%),
		linear-gradient(180deg, rgba(15, 11, 7, .38) 0%, rgba(15, 11, 7, 0) 22%, rgba(15, 11, 7, 0) 62%, rgba(15, 11, 7, .55) 88%, var(--bg) 100%);
}

.hero-content { position: relative; z-index: 2; padding: 40px 20px; }

.hero h1 {
	font-size: 46px;
	line-height: 1.1;
	text-transform: uppercase;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .85);
	margin-bottom: 10px;
}

.hero p {
	margin: 0 auto 28px;
	max-width: 560px;
	font-size: 14px;
	line-height: 1.6;
	letter-spacing: .02em;
	color: #d9cbb0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
}

/* --- caseta Turnstile din panoul lateral ------------------------------------ */

/* O vrem lata cat campurile de deasupra si la fel de scunda ca butonul de sub
   ea. Turnstile insa nu coboara sub 300px latime, iar coloana are 268px intre
   margini — asa ca o randam la latimea ei fireasca si o micsoram exact cat sa
   se aseze peste campuri (268 / 300 = .893). Varianta „compact" ar fi incaput,
   dar e un patrat inalt care rupe sirul campurilor.

   Micsorarea nu schimba spatiul pe care elementul il ocupa in pagina, deci
   inaltimea o da invelisul, iar `overflow` absoarbe surplusul de asezare —
   nu taie nimic din desen, fiindca ce se vede e deja mai ingust decat el. */
.turnstile-slot {
	height: 58px;          /* 65px, cat are caseta, ori .893 */
	overflow: hidden;
	margin-bottom: 10px;
}

.turnstile-slot .cf-turnstile {
	width: 300px;
	transform: scale(.893);
	transform-origin: 0 0;
}

/* --- numaratoarea inversa din antet --------------------------------------- */

.cd { margin-top: 26px; }

.cd-title {
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--gold-bright);
	text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
	margin-bottom: 12px;
}

.cd-boxes {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.cd-box {
	min-width: 84px;
	padding: 12px 8px 9px;
	border: 1px solid var(--gold-border);
	border-radius: 6px;
	background: linear-gradient(180deg, rgba(36, 26, 16, .92), rgba(15, 11, 7, .92));
	box-shadow: 0 4px 18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(110, 231, 183, .12);
}

.cd-box b {
	display: block;
	font-family: var(--font-display);
	font-size: 34px;
	line-height: 1;
	color: var(--gold-bright);
	/* cifrele se schimba in fiecare secunda: latime fixa, altfel casetele
	   tresar la fiecare tic */
	font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

.cd-box span {
	display: block;
	margin-top: 5px;
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #b9a888;
}

.cd-when {
	margin-top: 12px;
	font-size: 13px;
	color: #d9cbb0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
}

.cd-when i { color: var(--gold); margin-right: 4px; }
.cd-sep { margin: 0 8px; color: var(--gold-deep); }

/* fusul orar scrie pe fata a cui e ora, ca nimeni sa nu socoteasca singur */
.cd-zone {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 9px;
	border: 1px solid var(--gold-border);
	border-radius: 999px;
	background: rgba(15, 11, 7, .75);
	font-size: 11px;
	letter-spacing: .04em;
	color: var(--gold);
}

/* cand ceasul ajunge la zero, tot blocul dispare: fara titlu, fara mesaj */
.cd.is-live { display: none; }

@media (max-width: 620px) {
	.cd-box { min-width: 68px; padding: 10px 6px 8px; }
	.cd-box b { font-size: 26px; }
	.cd-when { font-size: 12px; }
	.cd-zone { display: block; margin: 6px auto 0; width: max-content; }
}

/* --- page grid ------------------------------------------------------------ */

.layout {
	max-width: var(--wrap);
	margin: 26px auto 60px;
	padding: 0 20px;
	position: relative;
	z-index: 5;
	display: grid;
	grid-template-columns: var(--side-w) 1fr;
	gap: 20px;
	align-items: start;
}

/* On the landing page the columns ride up over the bottom of the hero. The
   overlap grows with the viewport, because the hero grows with it too — a
   fixed offset left a widening gap on large screens. */
.layout.overlap { margin-top: clamp(-40px, -1.5vw, -10px); }

/* the management console brings its own sidebar, so it runs full width */
.layout.admin-wide {
	grid-template-columns: 1fr;
	max-width: 1560px;
}

/* A grid item's min-width is auto, so a single stubborn child can push its
   column wider than the page instead of shrinking to fit — which is how the
   sidebar ended up hanging off the right edge on phones. Nothing in either
   column needs to dictate the layout's width. */
.layout > aside,
.layout > main { min-width: 0; }

@media (max-width: 980px) {
	.layout { grid-template-columns: 1fr; }
}

/* --- panels --------------------------------------------------------------- */

.panel {
	background: var(--panel);
	border: 1px solid var(--border-faint);
	margin-bottom: 20px;
}

.panel-head {
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
	border-bottom: 1px solid var(--border-faint);
	padding: 11px 16px;
	font-family: var(--font-display);
	font-size: 13px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--heading);
	text-align: center;
}

/* the small diamond flourishes either side of a sidebar title */
.panel-head.flourish::before,
.panel-head.flourish::after {
	content: '◆';
	color: var(--gold-deep);
	font-size: 9px;
	vertical-align: middle;
	margin: 0 10px;
}

.panel-body { padding: 14px 16px; }

/* --- sidebar bits --------------------------------------------------------- */

.server-switch { display: flex; }

.server-switch a {
	flex: 1;
	padding: 14px 8px;
	text-align: center;
	font-family: var(--font-display);
	font-size: 13px;
	letter-spacing: .1em;
	border-bottom: 2px solid transparent;
	background: var(--panel-2);
	transition: .25s;
}
.server-switch a.active {
	border-bottom-color: var(--gold);
	background: var(--panel-hi);
	color: var(--gold-bright);
}

.download-btn {
	display: block;
	padding: 18px 10px;
	text-align: center;
	line-height: 1.2;
}
.download-btn .big {
	font-family: var(--font-display);
	font-size: 22px;
	letter-spacing: .1em;
	text-transform: uppercase;
	display: block;
}
.download-btn .small {
	font-size: 11px;
	letter-spacing: .1em;
	opacity: .75;
	display: block;
	margin-top: 2px;
}

/* date stepper for the events panel */
.stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--border-soft);
}
.stepper .day { font-size: 12px; color: var(--heading); }
.stepper button {
	background: var(--panel-hi);
	border: 1px solid var(--border-faint);
	color: var(--muted);
	width: 24px;
	height: 24px;
	line-height: 1;
	cursor: pointer;
	transition: .2s;
}
.stepper button:hover { color: var(--gold); border-color: var(--gold-border); }

.empty-note {
	padding: 12px;
	font-size: 12px;
	color: var(--muted);
	background: var(--panel-2);
	border: 1px solid var(--border-soft);
	margin: 10px 0;
}

/* --- ranking -------------------------------------------------------------- */

/* medal + ranking palette (measured off the reference layout) */
:root {
	--medal-gold:   #e9c552;
	--medal-silver: #c9d0da;
	--medal-bronze: #c9885a;
	/* Ranking text stays inside the site's own warm range. It started out
	   teal-and-neon-green, which belonged to another palette and fought the
	   gold. The realm label is the one place colour carries meaning, so it
	   takes the realm's own banner colour — muted, not saturated. */
	--guild-teal:   #cfae6a;
	--char-yellow:  #e8dcc0;
	--level-green:  #34d399;

	--realm-red:    #c0705f;
	--realm-yellow: #cfa54e;
	--realm-blue:   #7d9dc4;
	--podium-green: #72d572;
	--score-bg:     #143726;
	--score-label:  #7fa893;
}

.podium {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 12px;
	padding: 14px 8px 14px;
	border-bottom: 1px solid var(--border-soft);
}

.podium-slot { text-align: center; width: 92px; }
.podium-slot .crown { font-size: 22px; line-height: 1; }
.podium-slot.silver .crown { color: var(--medal-silver); }
.podium-slot.bronze .crown { color: var(--medal-bronze); }
.podium-slot.first  .crown { color: var(--medal-gold); font-size: 30px; text-shadow: 0 0 12px rgba(233, 197, 82, .5); }

.podium-slot .avatar {
	width: 56px;
	height: 56px;
	margin: 7px auto 0;
	border-radius: 50%;
	border: 2px solid var(--gold-border);
	background: #0c0906;
	position: relative;
	overflow: visible;
}
.podium-slot .avatar img,
.rank-row .ravatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.podium-slot.silver .avatar { border-color: var(--medal-silver); }
.podium-slot.bronze .avatar { border-color: var(--medal-bronze); }
.podium-slot.first .avatar {
	width: 70px;
	height: 70px;
	border-color: var(--medal-gold);
	box-shadow: 0 0 18px rgba(233, 197, 82, .35);
}

.rank-no {
	position: absolute;
	bottom: -6px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--panel-hi);
	border: 1px solid var(--gold-border);
	color: var(--text);
	font-size: 10px;
	font-weight: 700;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.podium-slot.first  .rank-no { background: var(--medal-gold);   border-color: #8a6a1c; color: #2a1f06; }
.podium-slot.silver .rank-no { background: var(--medal-silver); border-color: #7d838d; color: #22262c; }
.podium-slot.bronze .rank-no { background: var(--medal-bronze); border-color: #7d4f2c; color: #2a1a0c; }

.podium-slot .name {
	font-size: 11px;
	margin-top: 11px;
	color: var(--char-yellow);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.podium-slot .sub { font-size: 14px; color: var(--gold); margin-top: 3px; }

.rank-row {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 12px;
	border-top: 1px solid var(--border-soft);
	transition: background .2s;
}
.rank-row:nth-child(odd) { background: var(--panel-2); }
.rank-row:hover { background: var(--panel-hi); }

.rank-row .ravatar {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	border-radius: 50%;
	border: 2px solid var(--gold-border);
	background: #0c0906;
	position: relative;
}
.rank-row .ravatar .rank-no { width: 17px; height: 17px; font-size: 10px; bottom: -5px; }

.rank-row .banner { font-size: 13px; flex: 0 0 auto; }
.rank-row .banner.red    { color: #c04a42; }
.rank-row .banner.yellow { color: #d8b74a; }
.rank-row .banner.blue   { color: #5a8fd8; }

.rank-row .who { flex: 1; min-width: 0; }
.rank-row .guild {
	font-size: 12px;
	color: var(--guild-teal);
	text-transform: uppercase;
	letter-spacing: .04em;
}
.rank-row .char {
	font-size: 12px;
	color: var(--char-yellow);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-top: 1px;
}
.rank-row .char .lv { color: var(--level-green); }

/* with no guild the slot shows the realm instead, in that realm's own colour */
.rank-row .guild.realm.red    { color: var(--realm-red); }
.rank-row .guild.realm.yellow { color: var(--realm-yellow); }
.rank-row .guild.realm.blue   { color: var(--realm-blue); }

.rank-row .score {
	text-align: center;
	background: var(--score-bg);
	border: 0;
	border-radius: 8px;
	padding: 11px 8px;
	min-width: 56px;
}
.rank-row .score b { display: block; font-size: 14px; color: #fff; font-weight: 600; }
.rank-row .score span { font-size: 12px; color: var(--score-label); }

/* --- quick tiles + stat boxes --------------------------------------------- */

.quickbar {
	display: grid;
	grid-template-columns: repeat(4, 1fr) repeat(2, .85fr);
	border: 1px solid var(--border-faint);
	background: var(--panel);
	margin-bottom: 20px;
}

@media (max-width: 760px) {
	.quickbar { grid-template-columns: repeat(2, 1fr); }
}

.tile {
	padding: 16px 8px;
	text-align: center;
	border-right: 1px solid var(--border-soft);
	background: linear-gradient(180deg, #123325 0%, #0b2118 100%);
	color: #d9f5e6;
	transition: .25s;
}
.tile:last-child { border-right: 0; }
.tile:hover { background: linear-gradient(180deg, #184430 0%, #0f2a1e 100%); color: #fff; }

.tile .ico { font-size: 17px; color: var(--gold); margin-bottom: 7px; display: block; }
.tile .lbl { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.tile.stat { background: #081a12; }
.tile.stat .lbl { color: #6f9a86; font-size: 9px; }
.tile.stat .val {
	font-family: var(--font-display);
	font-size: 20px;
	color: var(--heading);
	display: block;
	margin-top: 3px;
}

/* --- promo cards ---------------------------------------------------------- */

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 26px;
}
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

.card {
	border: 1px solid var(--border-faint);
	background: var(--panel);
	overflow: hidden;
	transition: .28s;
}
.card:hover { border-color: var(--gold-border); transform: translateY(-3px); }

.card .thumb {
	height: 118px;
	background: linear-gradient(135deg, var(--panel-hi), #0c0906);
	background-size: cover;
	background-position: center;
	border-bottom: 1px solid var(--border-soft);
}

.card .body { padding: 12px 14px 16px; text-align: center; }
.card h4 { font-size: 15px; margin-bottom: 5px; }
.card p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* --- news ----------------------------------------------------------------- */

.section-title {
	font-family: var(--font-display);
	font-size: 15px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--heading);
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--border-faint);
}

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.tabs a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 15px;
	font-size: 10.5px;
	letter-spacing: .09em;
	text-transform: uppercase;
	background: var(--panel);
	border: 1px solid var(--border-soft);
	color: var(--muted);
	transition: .22s;
}
.tabs a:hover { color: var(--gold-bright); border-color: var(--gold-border); }
.tabs a.active { background: var(--panel-hi); color: var(--heading); border-color: var(--gold-border); }

.article {
	border: 1px solid var(--border-faint);
	background: var(--panel);
	margin-bottom: 16px;
}

.article-head {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--border-soft);
	background: var(--panel-2);
}

.article-head .mark {
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	border: 1px solid var(--border-faint);
	background: var(--panel-hi);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold);
	font-size: 13px;
}

.badge {
	font-size: 9px;
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 3px 8px;
	background: rgba(201, 163, 90, .12);
	color: var(--metal-bright);
	border: 1px solid rgba(201, 163, 90, .35);
}
.badge.events   { background: #2f4a33; color: #c3e6c9; border-color: rgba(195, 230, 201, .25); }
.badge.shop     { background: #5c2f2f; color: #efc6c6; border-color: rgba(239, 198, 198, .25); }
.badge.previews { background: #2f4a5c; color: #c6dcef; border-color: rgba(198, 220, 239, .25); }

.article-head .ttl { flex: 1; font-size: 13px; color: var(--text); }
.article-head .when { font-size: 10.5px; color: var(--muted-dim); white-space: nowrap; }

.article-body { padding: 22px 26px 26px; }

.article-body .head-center { text-align: center; margin-bottom: 20px; }
.article-body .head-center h3 { font-size: 26px; color: var(--gold); }
.article-body .head-center .stamp {
	display: inline-block;
	margin-top: 9px;
	padding: 5px 14px;
	font-size: 10px;
	letter-spacing: .11em;
	text-transform: uppercase;
	background: var(--panel-hi);
	border: 1px solid var(--border-faint);
	color: var(--muted);
}

.article-body .content { font-size: 13px; color: #cdbfa4; line-height: 1.75; }
.article-body .content img { margin: 14px auto; }
.article-body .content a { color: var(--gold); }
.article-body .content h3, .article-body .content h4 { margin: 18px 0 8px; font-size: 15px; }

.read-more { display: flex; justify-content: flex-end; margin-top: 18px; }

/* --- leaderboard (full ranking page, top 100) ----------------------------- */

.lb-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.lb-switch { display: flex; gap: 8px; }
.lb-switch a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 15px;
	font-family: var(--font-ui);
	font-size: 10.5px;
	letter-spacing: .09em;
	text-transform: uppercase;
	background: var(--panel);
	border: 1px solid var(--border-soft);
	color: var(--muted);
	transition: .22s;
}
.lb-switch a i { color: var(--gold-deep); }
.lb-switch a:hover { color: var(--gold-bright); border-color: var(--gold-border); }
.lb-switch a.active { background: var(--panel-hi); color: var(--heading); border-color: var(--gold-border); }
.lb-switch a.active i { color: var(--gold); }

.lb-search {
	display: flex;
	gap: 10px;
	background: var(--panel-2);
	border: 1px solid var(--border-soft);
	padding: 14px;
	margin-bottom: 16px;
}
.lb-search .form-control { flex: 1; }
.lb-search .btn { white-space: nowrap; }

.leaderboard { border: 1px solid var(--border-faint); background: var(--panel); }

/* shared column grid for header + rows: rank | class | name | guild | realm | exp */
.lb-head, .lb-row {
	display: grid;
	grid-template-columns: 62px 78px 1fr 130px 84px 172px;
	align-items: center;
	gap: 10px;
	padding: 0 16px;
	text-align: center;
}
.leaderboard.guilds .lb-head,
.leaderboard.guilds .lb-row {
	grid-template-columns: 62px 1fr 160px 84px 150px;
}

.lb-head {
	height: 44px;
	background: var(--panel-2);
	border-bottom: 1px solid var(--border-faint);
	font-size: 11px;
	letter-spacing: .06em;
	color: var(--muted);
	font-weight: 600;
}

.lb-row {
	min-height: 70px;
	border-bottom: 1px solid var(--border-soft);
	transition: background .18s;
}
.lb-row:last-child { border-bottom: 0; }
.lb-row:nth-child(even) { background: rgba(0, 0, 0, .22); }
.lb-row:hover { background: var(--panel-hi); }

.lb-row .c-pos {
	font-size: 13px;
	font-weight: 600;
	color: var(--muted-dim);
	text-align: center;
}

/* medal treatment for the first three places */
.lb-row.r1, .lb-row.r2, .lb-row.r3 { position: relative; }
.lb-row.r1::before, .lb-row.r2::before, .lb-row.r3::before {
	content: '';
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 3px;
}
.lb-row.r1::before { background: var(--medal-gold); }
.lb-row.r2::before { background: var(--medal-silver); }
.lb-row.r3::before { background: var(--medal-bronze); }

.lb-row.r1 .c-pos { color: var(--medal-gold); }
.lb-row.r2 .c-pos { color: var(--medal-silver); }
.lb-row.r3 .c-pos { color: var(--medal-bronze); }

.lb-row.r1 .ravatar { border-color: var(--medal-gold); box-shadow: 0 0 12px rgba(233, 197, 82, .3); }
.lb-row.r2 .ravatar { border-color: var(--medal-silver); }
.lb-row.r3 .ravatar { border-color: var(--medal-bronze); }

/* class column: portrait with the rank medallion tucked under it */
.lb-row .c-class { display: flex; justify-content: center; }

.lb-row .ravatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 2px solid var(--gold-border);
	background: #0c0906;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lb-row .ravatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.lb-row .ravatar .rank-no { width: 18px; height: 18px; font-size: 10px; bottom: -6px; }

/* name column: "Lv. 120 Someone" — level green, name yellow */
.lb-row .c-name {
	min-width: 0;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.lb-row .c-name .lv { color: var(--level-green); }
.lb-row .c-name .char { color: var(--char-yellow); }
.lb-row .c-name .guild { color: var(--char-yellow); }

.lb-row .c-guild { min-width: 0; }
.lb-row .c-guild .guild {
	font-size: 12px;
	color: var(--guild-teal);
	text-transform: uppercase;
	letter-spacing: .04em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}
.lb-row .c-guild .noguild {
	font-size: 11.5px;
	color: var(--muted-dim);
	font-style: italic;
	letter-spacing: .04em;
}
.lb-row .c-guild .char { font-size: 13px; color: var(--char-yellow); }

.lb-row .c-empire { display: flex; justify-content: center; }
.lb-row .c-empire img { width: 53px; height: auto; image-rendering: auto; }

.lb-row .c-exp {
	font-size: 14px;
	color: var(--text);
	white-space: nowrap;
}

.lb-empty { padding: 26px; text-align: center; color: var(--muted); font-size: 12.5px; }

@media (max-width: 900px) {
	.lb-head { display: none; }
	.lb-row,
	.leaderboard.guilds .lb-row {
		grid-template-columns: 40px 56px 1fr;
		gap: 9px;
		padding: 12px;
		text-align: left;
	}
	.lb-row .c-guild, .lb-row .c-empire { display: none; }
	.lb-row .c-exp { grid-column: 2 / -1; font-size: 12px; color: var(--muted); }
	.lb-title { flex-direction: column; align-items: flex-start; }
}

/* --- pagination ----------------------------------------------------------- */

.pager { display: flex; justify-content: center; gap: 6px; margin: 24px 0 6px; list-style: none; padding: 0; }

.pager a {
	display: block;
	min-width: 32px;
	padding: 7px 10px;
	text-align: center;
	font-size: 12px;
	background: var(--panel);
	border: 1px solid var(--border-soft);
	color: var(--muted);
	transition: .2s;
}
.pager a:hover { color: var(--gold-bright); border-color: var(--gold-border); }
.pager .active a { background: var(--panel-hi); color: var(--heading); border-color: var(--gold-border); }

/* --- login / forms in the sidebar ----------------------------------------- */

.field { margin-bottom: 9px; }

.field input {
	width: 100%;
	background: #07170f;
	border: 1px solid var(--gold-border);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 12.5px;
	padding: 10px 12px;
	outline: none;
	transition: border-color .2s;
}
.field input::placeholder { color: var(--muted-dim); }
.field input:focus { border-color: var(--gold); }

.side-links {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 11px;
	margin: 9px 0 12px;
	color: var(--muted);
}
.side-links a:hover { color: var(--gold-bright); }

.user-menu { list-style: none; margin: 0; padding: 0; }
.user-menu li { border-bottom: 1px solid var(--border-soft); }
.user-menu li:last-child { border-bottom: 0; }
.user-menu a {
	display: block;
	padding: 10px 16px;
	font-size: 12px;
	color: var(--muted);
	transition: .2s;
}
.user-menu a:hover { background: var(--panel-hi); color: var(--gold-bright); padding-left: 21px; }
.user-menu .welcome {
	padding: 12px 16px;
	font-size: 12px;
	color: var(--heading);
	background: var(--panel-2);
	border-bottom: 1px solid var(--border-faint);
}

/* soldurile din capul panoului de utilizator (structura de pe aetheria) */
.up-stats {
	display: flex; flex-direction: column; gap: 8px;
	padding: 12px; border-bottom: 1px solid var(--border-faint);
}
.up-stat {
	display: flex; align-items: center; gap: 10px;
	padding: 8px 10px; border-radius: 8px;
	background: rgba(0, 0, 0, .25); border: 1px solid var(--border-soft);
}
.up-ico {
	flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; color: var(--gold);
	background: var(--panel-hi); border: 1px solid var(--gold-border);
}
.up-txt { display: flex; flex-direction: column; min-width: 0; }
.up-txt small {
	font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase;
	color: var(--muted-dim); line-height: 1.4;
}
.up-txt b {
	font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.3;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* --- alerts --------------------------------------------------------------- */

.alert {
	padding: 11px 15px;
	margin-bottom: 14px;
	font-size: 12.5px;
	border: 1px solid var(--border-faint);
	background: var(--panel-2);
	color: var(--text);
}
.alert-danger  { border-color: rgba(216, 75, 75, .45); background: rgba(125, 43, 37, .22); }
.alert-success { border-color: rgba(123, 212, 88, .35); background: rgba(47, 74, 51, .3); }
.alert-info    { border-color: var(--border-faint); }

/* --- content pages (login, register, account, admin...) ------------------- */

.page {
	border: 1px solid var(--border-faint);
	background: var(--panel);
	margin-bottom: 20px;
}

.page-head {
	padding: 16px 22px;
	border-bottom: 1px solid var(--border-faint);
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.page-head h2 {
	font-size: 19px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.page-body { padding: 22px 26px 26px; }

.form-row { display: flex; align-items: center; gap: 14px; margin-bottom: 13px; }
.form-row > label { width: 165px; flex: 0 0 auto; font-size: 12px; color: var(--muted); }
.form-row > .ctl { flex: 1; }

.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th {
	text-align: left;
	padding: 10px 12px;
	background: var(--panel-2);
	border-bottom: 1px solid var(--border-faint);
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 600;
}
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
.data-table tr:hover td { background: var(--panel-2); }

/* --- footer --------------------------------------------------------------- */

.foot {
	border-top: 1px solid var(--border-faint);
	background: var(--bg-nav);
	padding: 26px 20px 34px;
	text-align: center;
}

.foot-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 26px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.foot-links a { font-size: 11px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.foot-links a:hover { color: var(--gold-bright); }

.foot .copy { font-size: 11px; color: var(--muted-dim); }

/* --- footer ---------------------------------------------------------------- */

.foot { position: relative; }

.to-top {
	position: absolute;
	top: -19px;
	left: 50%;
	transform: translateX(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--border-faint);
	background: var(--panel-2);
	color: var(--muted);
	cursor: pointer;
	font-size: 12px;
	transition: .22s;
}
.to-top:hover {
	color: var(--gold-bright);
	border-color: var(--gold-border);
	transform: translateX(-50%) translateY(-2px);
}

.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* One divider only. This used to close with a border and the bar below opened
   with another, so the gap between them read as an empty strip. */
.foot-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 10px 0 22px;
	border-bottom: 1px solid var(--border-soft);
}

.foot-legal { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }

.foot-legal a {
	display: inline-block;
	padding: 7px 13px;
	border: 1px solid var(--border-soft);
	background: var(--panel);
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
	transition: .2s;
}
.foot-legal a:hover { color: var(--gold-bright); border-color: var(--gold-border); }

/* not wired up yet — looks live, goes nowhere */
.foot .soon { cursor: default; opacity: .72; }
.foot .soon:hover { opacity: 1; }

.foot-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 26px 0 10px;
}

.foot-bottom .copy { font-size: 11px; color: var(--muted-dim); }

.foot-bottom .built {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 10.5px;
	letter-spacing: .06em;
	color: var(--muted-dim);
}
.foot-bottom .built strong { color: var(--gold); font-weight: 600; }
.foot-bottom .built .sep { opacity: .5; }

.foot-bottom .tech {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border: 1px solid var(--border-soft);
	background: var(--panel);
	color: var(--muted);
	font-size: 10px;
	letter-spacing: .08em;
}
.foot-bottom .tech i { font-size: 9px; color: var(--gold-deep); }

@media (max-width: 700px) {
	.foot-row, .foot-bottom { flex-direction: column; align-items: center; text-align: center; }
}

.socials { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.socials a {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border-faint);
	background: var(--panel);
	color: var(--muted);
	transition: .22s;
}
.socials a:hover { color: var(--gold-bright); border-color: var(--gold-border); transform: translateY(-2px); }

/* --- language picker ------------------------------------------------------ */

/* sits over the hero on the landing page, in normal flow elsewhere */
.langbar {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 12px 20px 0;
	display: flex;
	justify-content: flex-end;
}

/* flush against the nav — no gap between the bar and the header */
.hero-wrap .langbar {
	position: absolute;
	top: var(--nav-h);
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;
	padding-top: 0;
	width: 100%;
}

/* --- language dropdown ----------------------------------------------------- */

.lang-select { position: relative; }

.lang-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(21, 16, 9, .88);
	border: 1px solid var(--border-faint);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 12px;
	padding: 6px 11px;
	cursor: pointer;
	transition: .2s;
}
.lang-trigger:hover { border-color: var(--gold-border); }
/* written label instead of an icon, dimmed so the language itself reads first */
.lang-trigger .lbl { color: var(--muted); font-weight: 400; }
.lang-trigger img { width: 19px; height: auto; border-radius: 2px; }
.lang-trigger .name { font-weight: 600; }
.lang-trigger .caret { font-size: 9px; color: var(--muted); transition: transform .22s; margin-left: 1px; }
.lang-select.open .lang-trigger { border-color: var(--gold-border); }
.lang-select.open .caret { transform: rotate(180deg); }

.lang-menu {
	position: absolute;
	top: 100%;
	right: 0;
	/* exactly as wide as the trigger it hangs off */
	min-width: 100%;
	background: var(--bg-nav);
	border: 1px solid var(--border-faint);
	box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
	z-index: 40;
	overflow: hidden;
	/* collapsed rather than display:none, so it can animate open */
	max-height: 0;
	opacity: 0;
	visibility: hidden;
	transition: max-height .26s ease, opacity .18s ease, visibility .18s;
}
.lang-select.open .lang-menu {
	max-height: 460px;
	opacity: 1;
	visibility: visible;
}

.lang-menu a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 11px;
	font-size: 12px;
	color: var(--muted);
	border-bottom: 1px solid var(--border-soft);
	transition: .18s;
}
.lang-menu a:last-child { border-bottom: 0; }
.lang-menu a:hover { background: var(--panel-hi); color: var(--text); padding-left: 15px; }
.lang-menu a.active { color: var(--gold-bright); background: var(--panel-2); }
.lang-menu img { width: 19px; height: auto; border-radius: 2px; flex: 0 0 auto; }
.lang-menu a > span { flex: 1; }
.lang-menu a > i { font-size: 10px; color: var(--gold); }
.lang-menu .code {
	font-size: 10px;
	letter-spacing: .06em;
	text-transform: uppercase;
	border: 1px solid var(--border-soft);
	padding: 1px 5px;
	flex: 0 0 auto;
}

/* pull the hero up under the sticky nav so the video fills the gap */
.hero-wrap { position: relative; margin-top: calc(var(--nav-h) * -1); padding-top: var(--nav-h); }

/* --- floating Discord widget ---------------------------------------------- */

.dc-float {
	--dc: #5865f2;
	--dc-dark: #4752c4;
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 80;
	font-family: var(--font-ui);
}

/* collapsed pill */
.dc-badge {
	display: flex;
	align-items: center;
	gap: 10px;
	background: linear-gradient(180deg, #5f6bf5, var(--dc));
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 12px;
	padding: 9px 14px 9px 10px;
	cursor: pointer;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
	transition: .22s;
	color: #fff;
	font-family: inherit;
}
.dc-badge:hover { transform: translateY(-2px); filter: brightness(1.06); }
.dc-badge-text { text-align: left; line-height: 1.25; }
.dc-badge-text b { display: block; font-size: 12.5px; font-weight: 600; }
.dc-badge-text span { font-size: 10.5px; opacity: .85; letter-spacing: .04em; }

/* expanded card */
.dc-card {
	width: 290px;
	background: linear-gradient(180deg, #5b67f0, #4c57d8);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
	color: #fff;
	display: none;
}

.dc-float.open .dc-card  { display: block; }
.dc-float.open .dc-badge { display: none; }

.dc-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }

.dc-icon {
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(0, 0, 0, .28);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
	color: #fff;
}
.dc-icon.sm { width: 32px; height: 32px; font-size: 15px; }
.dc-icon img { width: 100%; height: 100%; object-fit: cover; }

.dc-title { flex: 1; min-width: 0; line-height: 1.25; }
.dc-title b {
	display: block;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dc-title span { font-size: 10px; letter-spacing: .12em; opacity: .75; }

.dc-close {
	background: rgba(0, 0, 0, .2);
	border: 0;
	color: #fff;
	width: 26px;
	height: 26px;
	border-radius: 7px;
	cursor: pointer;
	font-size: 11px;
	transition: .2s;
}
.dc-close:hover { background: rgba(0, 0, 0, .35); }

.dc-counts { display: flex; gap: 10px; margin-bottom: 15px; }
.dc-count {
	flex: 1;
	background: rgba(0, 0, 0, .22);
	border-radius: 10px;
	padding: 11px 8px;
	text-align: center;
}
.dc-count b { display: block; font-size: 20px; font-weight: 700; line-height: 1.1; }
.dc-count span { font-size: 9.5px; letter-spacing: .1em; opacity: .8; }

.dc-online-label { font-size: 9.5px; letter-spacing: .12em; opacity: .8; margin-bottom: 8px; }

.dc-members {
	max-height: 176px;
	overflow-y: auto;
	margin-bottom: 14px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .28) transparent;
}
.dc-members::-webkit-scrollbar { width: 5px; }
.dc-members::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .28); border-radius: 3px; }

.dc-member {
	display: flex;
	align-items: center;
	gap: 9px;
	background: rgba(0, 0, 0, .18);
	border-radius: 9px;
	padding: 6px 10px;
	margin-bottom: 6px;
}

.dc-av {
	position: relative;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	border-radius: 50%;
	overflow: visible;
	background: rgba(0, 0, 0, .3);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
}
.dc-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.dc-dot {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 2px solid #4c57d8;
	background: #3ba55d;
}
.dc-dot.idle { background: #faa81a; }
.dc-dot.dnd  { background: #ed4245; }

.dc-name {
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dc-join {
	display: block;
	text-align: center;
	background: linear-gradient(180deg, #f6d365, #e5b53c);
	color: #2a1f06;
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: .06em;
	padding: 12px;
	border-radius: 10px;
	transition: .2s;
}
.dc-join:hover { filter: brightness(1.07); color: #1d1404; }

@media (max-width: 620px) {
	.dc-float { right: 12px; bottom: 12px; }
	.dc-card { width: calc(100vw - 24px); max-width: 300px; }
}

/* ==========================================================================
   Compatibility layer — the inner pages (login/register/account/admin) were
   ported with bootstrap-era markup; these rules restyle those classes so the
   whole site wears this theme without rewriting every template.
   ========================================================================== */

.mt2cms2-c-l, .padding-container { min-width: 0; }

.page-hd {
	background: linear-gradient(180deg, var(--panel-2), var(--panel)) !important;
	border: 1px solid var(--border-faint);
	border-bottom: 0;
	padding: 16px 22px;
}
.page-hd .bd-c h2, .pre-social {
	font-family: var(--font-display);
	font-size: 19px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--heading);
	margin: 0;
}
.padding-container {
	border: 1px solid var(--border-faint);
	background: var(--panel);
	padding: 22px 26px 26px;
	margin-bottom: 20px;
}
.page-hd + .padding-container { border-top: 0; }

.heading-main {
	font-family: var(--font-display);
	font-size: 15px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--heading);
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--border-faint);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.heading-main .switch { display: flex; gap: 8px; }
.heading-main .switch .option {
	font-family: var(--font-ui);
	font-size: 10.5px;
	letter-spacing: .09em;
	padding: 7px 13px;
	border: 1px solid var(--border-soft);
	background: var(--panel);
	color: var(--muted);
}
.heading-main .switch .option.active { background: var(--panel-hi); color: var(--heading); border-color: var(--gold-border); }
.heading-main .horizontal-line { display: none; }

.form-control {
	width: 100%;
	background: #07170f;
	border: 1px solid var(--gold-border);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 12.5px;
	padding: 10px 12px;
	outline: none;
	transition: border-color .2s;
}
.form-control::placeholder { color: var(--muted-dim); }
.form-control:focus { border-color: var(--gold); }

select.form-control { appearance: none; }

.table { width: 100%; border-collapse: collapse; font-size: 12.5px; color: var(--text); }
.table th {
	text-align: left;
	padding: 10px 12px;
	background: var(--panel-2);
	border-bottom: 1px solid var(--border-faint);
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 600;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table tr:hover td { background: var(--panel-2); }

.jumbotron {
	background: var(--panel-2);
	border: 1px solid var(--border-soft);
	padding: 18px 20px;
	margin-bottom: 16px;
}

.btn-primary, .btn-success, .btn-info, .btn-warning, .btn-danger, .btn-default {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border: 1px solid var(--gold-border);
	background: linear-gradient(180deg, var(--panel-hi), var(--panel));
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 9px 16px;
	cursor: pointer;
	transition: .22s;
	text-decoration: none;
}
.btn-primary:hover, .btn-success:hover, .btn-info:hover, .btn-default:hover {
	border-color: var(--gold);
	color: var(--gold-bright);
}
.btn-success { border-color: rgba(123, 212, 88, .4); }
.btn-danger  { border-color: rgba(216, 75, 75, .5); background: linear-gradient(180deg, #3a1512, #2a100e); }
.btn-danger:hover { border-color: #d84b4b; color: #f3b8b8; }
.btn-warning { border-color: rgba(52, 211, 153, .55); }
.btn-sm { padding: 5px 11px; font-size: 10.5px; }
.btn-lg { padding: 12px 22px; font-size: 13px; }
.btn-block { width: 100%; }

.alert-dismissible .close {
	float: right;
	background: none;
	border: 0;
	color: inherit;
	font-size: 16px;
	cursor: pointer;
	opacity: .6;
}

.input-group { display: flex; }
.input-group .form-control { flex: 1; }
.input-group-btn { display: flex; }

.row { display: flex; flex-wrap: wrap; gap: 12px 0; margin: 0 -8px; }
.row > [class*="col-"] { padding: 0 8px; }
.col-sm-3, .col-lg-3, .col-md-3 { flex: 0 0 25%; max-width: 25%; }
.col-sm-4, .col-lg-4, .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-sm-5, .col-lg-5, .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
.col-sm-6, .col-lg-6, .col-md-6 { flex: 0 0 50%; max-width: 50%; }
.col-sm-7, .col-lg-7, .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-sm-8, .col-lg-8, .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
.col-sm-9, .col-lg-9, .col-md-9 { flex: 0 0 75%; max-width: 75%; }
.col-md-offset-2 { margin-left: 16.666%; }
@media (max-width: 760px) {
	.row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
	.col-md-offset-2 { margin-left: 0; }
}

.form-group { margin-bottom: 13px; }
.form-group.row { align-items: center; }
.col-form-label { font-size: 12px; color: var(--muted); }

.list-group { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid var(--border-faint); }
.list-group-item {
	display: block;
	padding: 12px 16px;
	background: var(--panel);
	border-bottom: 1px solid var(--border-soft);
	color: var(--text);
	font-size: 12.5px;
}
.list-group-item:last-child { border-bottom: 0; }
.list-group-item.active {
	background: var(--panel-hi);
	font-family: var(--font-display);
	letter-spacing: .12em;
	text-transform: uppercase;
	font-size: 12px;
	color: var(--heading);
}
a.list-group-item { transition: .2s; }
a.list-group-item:hover { background: var(--panel-2); }
.list-group-item-heading { font-size: 14px; margin: 0 0 3px; color: var(--gold); }
.list-group-item-text { margin: 0; font-size: 11.5px; color: var(--muted) !important; }

.panel { margin-bottom: 14px; }
.panel .panel-heading {
	background: var(--panel-2);
	border-bottom: 1px solid var(--border-soft);
	padding: 10px 14px;
}
.panel .panel-title { font-size: 13px; font-family: var(--font-ui); color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.panel .panel-body { padding: 14px; }

.tag {
	display: inline-block;
	font-size: 9.5px;
	letter-spacing: .07em;
	text-transform: uppercase;
	padding: 3px 8px;
	border: 1px solid var(--border-faint);
	background: var(--panel-hi);
	color: var(--muted);
}
.tag-success { border-color: rgba(123, 212, 88, .4); color: #a9d99a; }
.tag-danger  { border-color: rgba(216, 75, 75, .5); color: #e39a9a; }
.tag-info    { border-color: var(--border-faint); color: var(--gold); }

.pagination { display: flex; justify-content: center; gap: 6px; list-style: none; margin: 22px 0 4px; padding: 0; }
.pagination li a {
	display: block;
	min-width: 32px;
	padding: 7px 10px;
	text-align: center;
	font-size: 12px;
	background: var(--panel);
	border: 1px solid var(--border-soft);
	color: var(--muted);
}
.pagination li a:hover { color: var(--gold-bright); border-color: var(--gold-border); }
.pagination li.active a { background: var(--panel-hi); color: var(--heading); border-color: var(--gold-border); }

.text-danger { color: #e39a9a; font-size: 11px; }
.thead-inverse th { background: var(--panel-2); }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 16px 0; }
center img { display: inline-block; }

/* --- 404 -------------------------------------------------------------------- */

.errpage { text-align: center; padding: 72px 24px 88px; }
.errpage .errcode {
	font-family: var(--font-display);
	font-size: clamp(76px, 12vw, 132px);
	line-height: 1;
	color: var(--gold-deep);
	letter-spacing: .04em;
}
.errpage h2 {
	font-size: 20px;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--heading);
	margin: 6px 0 12px;
}
.errpage p { color: var(--muted); font-size: 13.5px; max-width: 440px; margin: 0 auto 30px; }
.errlinks { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* --- phones: the nav and the hero band ------------------------------------ */

@media (max-width: 760px) {
	/* Five items do not fit a phone at the desktop rhythm. Centring them
	   pushed the first and last off both edges with nothing to scroll, so
	   they became unreachable. Tighten the row, then let it swipe. */
	.nav-inner {
		justify-content: flex-start;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		padding: 0 14px;
	}
	.nav-inner::-webkit-scrollbar { display: none; }

	/* a swipeable row that looks like a full one is a row people never swipe,
	   so the last item fades under the edge rather than ending at it */
	.nav::after {
		content: '';
		position: absolute;
		top: 2px;
		right: 0;
		bottom: 0;
		width: 36px;
		pointer-events: none;
		background: linear-gradient(90deg, rgba(21, 16, 9, 0), var(--bg-nav) 82%);
	}

	.nav-menu { gap: 18px; flex: 0 0 auto; }
	.nav-menu.left  { padding-right: 9px; }
	.nav-menu.right { padding-left: 9px; }
	.nav-menu a { font-size: 11.5px; letter-spacing: .04em; }
}

@media (max-width: 620px) {
	/* The footage is a 3:1 banner. Held at the desktop height on a narrow
	   screen, cover() magnifies it until the emblem falls outside the frame.
	   A shorter band, biased towards the emblem, keeps the artwork readable. */
	.hero { min-height: clamp(150px, 48vw, 240px); }
	.hero-video { object-position: 34% 50%; }
	/* pe telefon numaratoarea are nevoie de aer: banda creste sub ea */
	.hero-content { padding: 24px 14px 28px; }
}

/* --- legal documents ------------------------------------------------------- */

.legal-body { color: var(--muted); font-size: 14px; line-height: 1.75; }
.legal-body h3 {
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 30px 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border-soft);
}
.legal-body h3:first-child { margin-top: 4px; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 20px; }
.legal-body li { margin-bottom: 7px; }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--gold); border-bottom: 1px solid var(--border-faint); }
.legal-body a:hover { color: var(--gold-bright); }

.legal-updated {
	margin: 28px 0 0;
	font-size: 11.5px;
	letter-spacing: .05em;
	color: var(--muted-dim);
}

.legal-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--border-soft);
}
.legal-nav a {
	padding: 8px 14px;
	font-size: 11.5px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--muted);
	border: 1px solid var(--border-soft);
	transition: .2s;
}
.legal-nav a:hover { color: var(--gold-bright); border-color: var(--gold-border); }
.legal-nav a.active { color: var(--heading); background: var(--panel-hi); border-color: var(--gold-border); }

/* --- registration ---------------------------------------------------------- */

.reg-wrap { max-width: 940px; margin: 0 auto; }

.reg-head {
	text-align: center;
	padding: 6px 0 22px;
	border-bottom: 1px solid var(--border-soft);
	margin-bottom: 24px;
}
.reg-head h2 { font-size: 24px; letter-spacing: .04em; }

.reg-closed {
	padding: 18px 20px;
	border: 1px solid var(--border-faint);
	background: var(--panel);
	color: var(--muted);
	font-size: 13.5px;
}
.reg-closed i { color: var(--gold); margin-right: 7px; }

.reg-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 22px;
	align-items: start;
}

/* --- the form --- */

.reg-form { min-width: 0; }

.reg-alert {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 11px 14px;
	margin-bottom: 10px;
	font-size: 13px;
	border: 1px solid;
}
.reg-alert.bad { border-color: rgba(224, 122, 108, .35); background: rgba(160, 60, 48, .12); color: #e8b3aa; }
.reg-alert.ok  { border-color: rgba(140, 200, 130, .32); background: rgba(70, 140, 70, .12); color: #bfe0b6; }
.reg-alert.ok strong { display: block; color: #d8f0cf; }
/* nici verde (nu e in regula), nici rosu (contul chiar s-a facut): chihlimbar */
.reg-alert.warn { border-color: rgba(224, 186, 108, .38); background: rgba(150, 110, 40, .14); color: #e8d4a8; }
.reg-alert.warn strong { display: block; color: #f2e4bf; }
.reg-alert i { margin-top: 2px; }

.rf { margin-bottom: 15px; }
.rf label {
	display: block;
	margin-bottom: 6px;
	font-size: 11.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
}
.rf input {
	width: 100%;
	padding: 11px 13px;
	background: rgba(10, 7, 4, .6);
	border: 1px solid var(--border-soft);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 14px;
	transition: border-color .2s;
}
.rf input:focus { outline: 0; border-color: var(--gold-border); }
.rf input::placeholder { color: var(--muted-dim); }
.rf small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted-dim); }

.rf-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 4px 0 16px;
	font-size: 13px;
	color: var(--muted);
	cursor: pointer;
}
.rf-check input { margin-top: 3px; accent-color: var(--gold); flex: 0 0 auto; }
.rf-check a { color: var(--gold); border-bottom: 1px solid var(--border-faint); }
.rf-check a:hover { color: var(--gold-bright); }

.rf-captcha {
	padding: 14px;
	margin-bottom: 18px;
	border: 1px solid var(--border-soft);
	background: rgba(10, 7, 4, .35);
}
.cap-title {
	font-size: 11.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 11px;
}
.cap-title i { color: var(--gold-deep); margin-right: 6px; }

.cap-row { display: flex; align-items: center; gap: 9px; }
.cap-img { border: 1px solid var(--border-soft); flex: 0 0 auto; }
.cap-reload {
	background: var(--panel-hi);
	border: 1px solid var(--border-soft);
	color: var(--muted);
	padding: 9px 11px;
	cursor: pointer;
	flex: 0 0 auto;
	transition: .2s;
}
.cap-reload:hover { color: var(--gold-bright); border-color: var(--gold-border); }
.cap-row input {
	flex: 1 1 0;
	min-width: 0;
	padding: 10px 12px;
	background: rgba(10, 7, 4, .6);
	border: 1px solid var(--border-soft);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 15px;
	letter-spacing: .3em;
	text-transform: uppercase;
}
.cap-row input:focus { outline: 0; border-color: var(--gold-border); }

/* Dimmed until every requirement is met — a hint, not a lock: the button stays
   clickable so the server always gets to give the real reason. */
.reg-submit { font-size: 15px; padding: 13px; opacity: .55; transition: opacity .25s; }
#reg-form.ready .reg-submit { opacity: 1; }

.reg-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.reg-foot p { margin: 0 0 10px; }
.reg-foot a { color: var(--gold); }
.reg-foot a:hover { color: var(--gold-bright); }
.reg-foot .back { display: inline-block; font-size: 12px; color: var(--muted-dim); }

/* --- the requirements column --- */

.reg-side { display: grid; gap: 16px; min-width: 0; }

.reg-panel {
	border: 1px solid var(--border-faint);
	background: var(--panel);
	padding: 16px 17px;
}
.reg-panel h3 {
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--heading);
	margin-bottom: 13px;
}
.reg-panel h3 i { color: var(--gold-deep); margin-right: 7px; }

.reqs, .whys { list-style: none; margin: 0; padding: 0; }

.reqs li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 9px 0;
	border-bottom: 1px solid var(--border-soft);
	font-size: 12.5px;
	color: var(--muted-dim);
	transition: color .2s;
}
.reqs li:last-child { border-bottom: 0; }

.reqs .dot {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	margin-top: 2px;
	border: 1px solid var(--border-faint);
	border-radius: 50%;
	position: relative;
	transition: .2s;
}
.reqs li.ok { color: var(--text); }
.reqs li.ok .dot { border-color: var(--gold); background: var(--gold); }
.reqs li.ok .dot::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #16100a;
	border-width: 0 2px 2px 0;
	transform: rotate(42deg);
}

.whys li {
	padding: 6px 0 6px 15px;
	font-size: 12.5px;
	color: var(--muted);
	position: relative;
}
.whys li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 13px;
	width: 5px;
	height: 5px;
	background: var(--gold-deep);
	transform: rotate(45deg);
}

@media (max-width: 820px) {
	.reg-grid { grid-template-columns: 1fr; }
	/* the checklist leads on a phone: it says what is coming before you type */
	.reg-side { order: -1; }
}

/* butonul plutitor spre Discord (Website Settings -> Afișare) */
.discord-float{position:fixed;right:22px;bottom:86px;z-index:60;width:52px;height:52px;
	display:flex;align-items:center;justify-content:center;border-radius:50%;
	background:#5865f2;color:#fff;font-size:24px;text-decoration:none;
	box-shadow:0 6px 20px rgba(0,0,0,.45);transition:transform .18s ease,box-shadow .18s ease}
.discord-float:hover{transform:translateY(-3px);box-shadow:0 10px 26px rgba(88,101,242,.5);color:#fff}
@media (max-width:760px){.discord-float{right:14px;bottom:74px;width:46px;height:46px;font-size:21px}}

/* Bara laterala pe dreapta (Website Settings -> Layout). Doar ordinea vizuala
   se schimba; in cod ramane prima, ca cititoarele de ecran sa nu se incurce. */
.layout.aside-right > aside{order:2}
.layout.aside-right > main{order:1}

/* Logoul din bara de sus (Website Settings -> Media). Absolut, ca sa stea la
   mijloc fara sa imparta latimea cu cele doua meniuri. */
.nav-logo{display:flex;align-items:center;line-height:0;padding:0 16px}
.nav-logo img{max-height:34px;max-width:190px;object-fit:contain}
@media (max-width:900px){.nav-logo{display:none}}

/* --- articole: continut lung estompat + buton „Citeste mai mult" ---------- */
/* Ca pe site-ul de referinta: articolul se taie la o inaltime fixa, textul
   care depaseste se pierde intr-un gradient spre fundalul cardului, iar
   butonul de citire sta peste zona estompata, jos in dreapta. */
.article-clip { position: relative; }
.article-clip .clip-inner { max-height: 620px; overflow: hidden; }
/* butonul de citire apare pe FIECARE articol: sub text la cele scurte,
   peste zona estompata la cele lungi */
.article-clip .clip-more { display: flex; justify-content: flex-end; margin-top: 18px; }

.article-clip.is-clipped::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 220px;
	background: linear-gradient(180deg, rgba(23, 17, 11, 0) 0%, var(--panel) 88%);
	pointer-events: none;
	z-index: 1;
}
.article-clip.is-clipped .clip-more {
	position: absolute;
	right: 4px; bottom: 16px;
	margin: 0;
	z-index: 2;
}
.btn-read {
	display: inline-block;
	padding: 13px 28px;
	border: 1px solid var(--border-faint);
	background: var(--panel-hi);
	color: var(--text);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	transition: border-color .15s, color .15s;
}
.btn-read:hover { border-color: var(--gold); color: var(--gold); }

/* --- editare inline a articolelor (doar admin) ---------------------------- */
.article-head .art-edit {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: var(--gold);
	font-size: 13px;
}
.article-head .art-edit:hover { color: var(--gold-bright); }

.article.editing .head-center h3,
.article.editing .clip-inner {
	outline: 1px dashed var(--gold-border);
	outline-offset: 6px;
	min-height: 24px;
}
.article.editing .clip-inner { max-height: none; }
.article.editing .article-clip::after { display: none; }
.article.editing .clip-more { display: none; }

.edit-bar {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	margin-top: 18px;
}
.edit-bar .edit-note {
	margin-right: auto;
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted-dim);
}
.edit-bar .save { border-color: var(--gold); color: var(--gold); }
.edit-bar .save:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

/* paginarea: mai mult aer sub ultimul articol */
.pager { margin-top: 30px; }

/* pagina de citire: unelte admin langa titlu + editare inline */
.post_title { display: flex; align-items: center; gap: 10px; }
.post-title-text { flex: 1; min-width: 0; }
.post-admin-tools { display: inline-flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.post.editing .post-title-text,
.post.editing .post_content {
	outline: 1px dashed var(--gold-border);
	outline-offset: 6px;
	min-height: 24px;
}

/* iconitele providerilor pe pagina de descarcari */
.provider-ic { vertical-align: -4px; border-radius: 3px; margin-right: 4px; }

/* ══ FORUM PUBLIC — structura aetheria2.ro/forum în tema faith ══ */
.forum-panel { margin-bottom: 18px; }
.forum-panel .panel-body { padding: 16px; }

.forum-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.forum-chat-ctl { display: flex; align-items: center; gap: 8px; }
.forum-chat-ctl form { margin: 0; }
.forum-chat-ctl select {
	background: var(--panel-2); color: var(--text);
	border: 1px solid var(--gold-border); border-radius: 8px;
	padding: 5px 10px; font-size: 12px;
}
.chat-refresh {
	display: inline-flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 8px;
	color: var(--gold); border: 1px solid var(--gold-border);
	transition: background .15s;
}
.chat-refresh:hover { background: var(--panel-hi); }
.btn-newpost { padding: 6px 12px; font-size: 12px; }

.forum-chat-box {
	height: 250px; overflow-y: auto; overflow-x: hidden;
	background: rgba(0, 0, 0, .25);
	border: 1px solid var(--border-soft); border-radius: 8px;
	padding: 10px 12px;
}
@media (max-width: 640px) { .forum-chat-box { height: 200px; } }
.chat-line { font-size: 13px; margin-bottom: 7px; word-break: break-word; overflow-wrap: anywhere; text-align: left; }
.chat-user { font-weight: 600; color: var(--gold); }
.chat-text { color: var(--text); margin-left: 4px; }

.forum-chat-compose { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.forum-chat-compose input[type=text] {
	flex: 1; background: var(--panel-2); color: var(--text);
	border: 1px solid var(--gold-border); border-radius: 8px;
	padding: 8px 12px; font-size: 13px;
}
.forum-chat-compose input[type=text]::placeholder { color: var(--muted); }
.forum-chat-compose input[type=text]:focus { outline: none; border-color: var(--gold-deep); }
.forum-chat-login {
	margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft);
	text-align: center; font-size: 13px; color: var(--muted);
}
.forum-error {
	margin-bottom: 10px; padding: 8px 12px;
	background: rgba(125, 43, 37, .25); border: 1px solid rgba(125, 43, 37, .6);
	border-radius: 8px; color: #e8a19b; font-size: 13px;
}
.forum-hint {
	margin-bottom: 10px; padding: 8px 12px;
	background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .3);
	border-radius: 8px; color: var(--gold); font-size: 13px;
}
.forum-empty { text-align: center; padding: 28px 0; color: var(--muted); font-size: 13px; }

/* rândurile de secțiuni / postări */
.forum-rows { display: flex; flex-direction: column; gap: 8px; }
.forum-row {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 12px; border-radius: 8px;
	background: rgba(0, 0, 0, .18);
	border: 1px solid var(--border-soft);
	transition: border-color .2s, background .2s;
}
.forum-row:hover { border-color: var(--gold-border); background: var(--panel-hi); }
.forum-row.pinned { border: 1px solid var(--gold-deep); background: rgba(52, 211, 153, .07); }
.fr-ico { flex-shrink: 0; color: var(--gold); margin-top: 2px; width: 20px; text-align: center; }
.forum-row.pinned .fr-ico { color: var(--gold-bright); }
.fr-main { flex: 1; min-width: 0; }
.fr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fr-title { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-row:hover .fr-title { color: var(--gold-bright); }
.fr-count { flex-shrink: 0; color: var(--gold); font-size: 13px; }
.fr-meta { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.fr-staff {
	display: inline-block; margin-left: 6px; padding: 1px 7px;
	font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
	color: #e8b25f; border: 1px solid rgba(232, 178, 95, .5); border-radius: 999px;
}

/* breadcrumb */
.forum-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 13px; }
.forum-breadcrumb a { color: var(--gold); }
.forum-breadcrumb a:hover { color: var(--gold-bright); }
.forum-breadcrumb i { font-size: 10px; color: var(--muted-dim); }
.forum-breadcrumb .current { color: var(--heading); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* formularul de creare postare */
.forum-create-form .field { margin-bottom: 14px; }
.forum-create-form label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--gold); }
.forum-create-form input[type=text], .forum-create-form textarea {
	width: 100%; background: var(--panel-2); color: var(--text);
	border: 1px solid var(--gold-border); border-radius: 8px;
	padding: 8px 14px; font-size: 13px; resize: vertical;
}
.forum-create-form input[type=text]::placeholder, .forum-create-form textarea::placeholder { color: var(--muted); }
.forum-create-form input[type=text]:focus, .forum-create-form textarea:focus { outline: none; border-color: var(--gold-deep); }
.forum-create-actions { display: flex; justify-content: flex-end; gap: 10px; }
.forum-review-note { margin-top: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.forum-note-pending {
	padding: 10px 14px; border-radius: 8px;
	background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .35);
	color: var(--gold-bright); font-size: 13px;
}
.forum-note-pending .fnp-title { display: block; margin: 4px 0; color: var(--text); }
.forum-note-pending small { color: var(--muted); }

/* paginare */
.forum-paging { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.forum-paging span { color: var(--gold); font-size: 13px; }

/* pagina postării */
.forum-post-meta {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	font-size: 13px; color: var(--muted);
	margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft);
}
.forum-post-meta b { color: var(--gold); }
.forum-post-meta .dot { color: var(--muted-dim); }
.forum-post-content { color: var(--text); line-height: 1.75; overflow-wrap: anywhere; }
.forum-post-content h1, .forum-post-content h2, .forum-post-content h3 { color: var(--heading); margin: 14px 0 8px; }
.forum-post-content p { margin-bottom: 12px; }
.forum-post-content a { color: var(--gold); text-decoration: underline; }
.forum-post-content a:hover { color: var(--gold-bright); }
.forum-post-content img { max-width: 100%; border-radius: 8px; }
.forum-post-content blockquote { border-left: 3px solid var(--gold-deep); padding-left: 12px; color: var(--gold); font-style: italic; }

/* reacții */
.forum-reactions {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
	margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border-soft);
}
.fx-left { position: relative; }
.fx-btn {
	display: flex; align-items: center; gap: 8px;
	padding: 7px 12px; border-radius: 8px; cursor: pointer;
	background: var(--panel-2); color: var(--gold);
	border: 1px solid var(--gold-border); font-size: 13px;
	transition: background .15s;
}
.fx-btn:hover:not(:disabled) { background: var(--panel-hi); }
.fx-btn.active { background: var(--gold-deep); color: var(--bg); border-color: var(--gold); }
.fx-btn:disabled { opacity: .5; cursor: not-allowed; }
.fx-emoji { font-size: 17px; }
.fx-picker[hidden] { display: none; }
.fx-picker {
	position: absolute; bottom: 100%; left: 0; margin-bottom: 8px; z-index: 40;
	display: flex; align-items: center; gap: 4px;
	background: var(--panel-hi); border: 1px solid var(--gold-border);
	border-radius: 10px; padding: 6px; box-shadow: 0 10px 24px var(--shadow);
}
.fx-pick {
	background: none; border: none; cursor: pointer;
	padding: 7px; border-radius: 999px; font-size: 21px; line-height: 1;
	transition: transform .15s, background .15s;
}
.fx-pick:hover { transform: scale(1.22); background: var(--panel-2); }
.fx-pick.mine { background: rgba(52, 211, 153, .25); box-shadow: 0 0 0 2px var(--gold); }
.fx-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx-pill {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 9px; border-radius: 8px; font-size: 13px;
	background: rgba(0, 0, 0, .25); color: var(--gold);
	border: 1px solid transparent;
}
.fx-pill.mine { background: rgba(52, 211, 153, .15); border-color: var(--gold-deep); }

/* comentarii */
.forum-comment-form { display: flex; gap: 8px; margin-bottom: 16px; }
.forum-comment-form input[type=text] {
	flex: 1; background: var(--panel-2); color: var(--text);
	border: 1px solid var(--gold-border); border-radius: 8px;
	padding: 8px 14px; font-size: 13px;
}
.forum-comment-form input[type=text]::placeholder { color: var(--muted); }
.forum-comment-form input[type=text]:focus { outline: none; border-color: var(--gold-deep); }
.forum-comment-form input:disabled, .forum-comment-form button:disabled { opacity: .5; cursor: not-allowed; }
.forum-comments { display: flex; flex-direction: column; gap: 12px; }
.forum-comment {
	background: rgba(0, 0, 0, .18); border: 1px solid var(--border-soft);
	border-radius: 8px; padding: 12px 14px;
}
.fc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.fc-user { font-weight: 600; color: var(--gold); }
.fc-when { font-size: 11px; color: var(--muted); }
.fc-text { color: var(--text); font-size: 13px; white-space: pre-wrap; margin: 0; }

/* panoul din sidebar */
.forum-side-list { list-style: none; margin: 0; padding: 8px; }
.forum-side-list li + li { margin-top: 6px; }
.forum-side-list a {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 9px 10px; border-radius: 8px;
	border: 1px solid transparent;
	transition: background .15s, border-color .15s;
}
.forum-side-list a:hover { background: var(--panel-hi); border-color: var(--gold-border); }
.fsl-ico { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.fsl-body { min-width: 0; }
.fsl-title { display: block; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsl-meta { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.forum-side-more { padding: 6px 12px 12px; }

/* ══ CONT — „Gestionarea Contului" (structura de pe aetheria) ══ */
.acc-panel {
	background: var(--panel); border: 1px solid var(--gold-border);
	border-radius: 12px; overflow: hidden;
}
.acc-head { padding: 18px 20px 14px; text-align: center; border-bottom: 1px solid var(--border-soft); }
.acc-head h2 { margin: 0; font-size: 24px; font-weight: 700; color: var(--heading); }
.acc-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.acc-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--border-soft); }
.acc-tab {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 16px; border-radius: 8px;
	font-size: 14px; font-weight: 600; color: var(--muted);
	border: 1px solid transparent; transition: color .15s, background .15s, border-color .15s;
}
.acc-tab:hover { color: var(--gold-bright); background: var(--panel-hi); }
.acc-tab.active { color: var(--gold-bright); background: var(--panel-hi); border-color: var(--gold-border); }

.acc-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.acc-card {
	background: rgba(0, 0, 0, .18); border: 1px solid var(--border-soft);
	border-radius: 10px; padding: 18px;
}
.acc-card h3 {
	margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--heading);
	display: flex; align-items: center; gap: 8px;
}
.acc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.acc-card-head h3 { margin: 0; }

.acc-field { margin-bottom: 12px; }
.acc-field label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 12px; color: var(--gold); }
.acc-field input {
	width: 100%; background: var(--panel-2); color: var(--text);
	border: 1px solid var(--gold-border); border-radius: 8px;
	padding: 9px 14px; font-size: 14px;
}
.acc-field input[readonly] { color: var(--muted); }
.acc-field input:focus { outline: none; border-color: var(--gold-deep); }

.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .acc-stats { grid-template-columns: 1fr; } }
.acc-stat {
	text-align: center; padding: 14px 10px; border-radius: 10px;
	background: rgba(0, 0, 0, .25); border: 1px solid var(--border-soft);
}
.acc-stat b { display: block; font-size: 20px; color: var(--gold-bright); }
.acc-stat span { display: block; margin-top: 3px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* lista de caractere */
.acc-chars { display: flex; flex-direction: column; gap: 10px; }
.acc-char {
	display: flex; align-items: center; gap: 14px;
	padding: 14px; border-radius: 10px;
	background: rgba(0, 0, 0, .22); border: 1px solid var(--border-soft);
}
.ch-no {
	flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	background: var(--panel-hi); color: var(--gold); font-size: 13px; font-weight: 700;
}
.ch-avatar { flex-shrink: 0; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid var(--gold-border); }
.ch-main { flex: 1; min-width: 0; }
.ch-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch-top h4 { margin: 0; font-size: 15px; color: var(--text); }
.ch-job {
	padding: 2px 9px; border-radius: 999px; font-size: 11px;
	background: rgba(52, 211, 153, .15); color: var(--gold); border: 1px solid var(--gold-border);
}
.ch-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ch-meta b { color: var(--text); }
.ch-act { flex-shrink: 0; margin: 0; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.acc-empty { text-align: center; padding: 26px 0; color: var(--muted); font-size: 13px; }

/* setări cont (acordeon) */
.acc-acc { display: flex; flex-direction: column; gap: 10px; }
.acc-item { border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; background: rgba(0, 0, 0, .18); }
.acc-toggle {
	width: 100%; display: flex; align-items: center; justify-content: space-between;
	gap: 10px; padding: 14px 16px; cursor: pointer;
	background: none; border: none; color: var(--text); font-size: 14px; font-weight: 600;
	transition: background .15s;
}
.acc-toggle:hover { background: var(--panel-hi); }
.acc-toggle span { display: flex; align-items: center; gap: 10px; }
.acc-toggle i.fa-chevron-down { font-size: 11px; color: var(--muted); transition: transform .2s; }
.acc-toggle.open i.fa-chevron-down { transform: rotate(180deg); }
.acc-drawer { padding: 0 16px 16px; }
.acc-drawer[hidden] { display: none; }
.acc-note { margin: 0 0 12px; font-size: 12px; color: var(--muted); }

/* ══ SUPORT — tichete (partea jucatorului) ══ */

/* antetul paginii: titlu + taburi + numele contului */
.sup-head {
	display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px;
	margin-bottom: 20px; padding-bottom: 16px;
	border-bottom: 1px solid var(--border-soft);
}
.sup-head-title { display: flex; align-items: center; gap: 10px; }
.sup-head-title i { color: var(--gold); font-size: 20px; }
.sup-head-title h2 { font-size: 22px; font-weight: 700; color: var(--heading); }
.sup-tabs { display: flex; gap: 8px; }
.sup-tab {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 15px; border-radius: 8px; font-size: 13px; font-weight: 600;
	color: var(--muted); border: 1px solid transparent;
	transition: color .15s, background .15s, border-color .15s;
}
.sup-tab:hover { color: var(--gold-bright); background: var(--panel-hi); }
.sup-tab.active { color: var(--gold-bright); background: var(--panel-hi); border-color: var(--gold-border); }
.sup-tab i { font-size: 12px; }
.sup-account {
	margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; color: var(--heading);
}
.sup-account i { color: var(--gold); }

/* layout pe doua coloane: rail ingust in stanga, continut flexibil in dreapta */
.sup-layout { display: flex; align-items: flex-start; gap: 16px; }
.sup-side { width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.sup-main { flex: 1; min-width: 0; }

/* cardurile mari de navigare */
.sup-card {
	display: flex; align-items: center; gap: 12px;
	padding: 14px; border-radius: 10px;
	background: rgba(0, 0, 0, .18); border: 1px solid var(--border-soft);
	transition: border-color .2s, background .2s;
}
.sup-card:hover { border-color: var(--gold-border); background: var(--panel-hi); }
.sup-card.active { border-color: var(--gold-deep); background: rgba(52, 211, 153, .08); }
.sup-card-ico {
	flex-shrink: 0; width: 42px; height: 42px; border-radius: 9px;
	display: flex; align-items: center; justify-content: center;
	background: var(--panel-hi); border: 1px solid var(--gold-border);
	color: var(--gold); font-size: 16px;
}
.sup-card.active .sup-card-ico { color: var(--gold-bright); }
.sup-card-txt { display: flex; flex-direction: column; min-width: 0; }
.sup-card-txt b { font-family: var(--font-display); font-size: 14px; color: var(--heading); }
.sup-card-txt small { font-size: 12px; color: var(--muted); }
.sup-card.active .sup-card-txt b { color: var(--gold-bright); }

/* contoarele OPEN / NEED REPLY / TOTAL */
.sup-counters { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.sup-counter {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 11px 14px; border-radius: 9px;
	background: rgba(0, 0, 0, .22); border: 1px solid var(--border-soft);
}
.sup-counter span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sup-counter b { font-family: var(--font-display); font-size: 19px; color: var(--gold-bright); }

/* bara de sus din zona dreapta: filtru, contor, refresh, creeaza */
.sup-toolbar {
	display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
	padding: 12px 14px; margin-bottom: 14px;
	background: var(--panel); border: 1px solid var(--border-faint); border-radius: 10px;
}
.sup-filter { display: flex; align-items: center; gap: 8px; margin: 0; }
.sup-filter label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.sup-count { font-size: 12px; color: var(--muted); }
.sup-refresh {
	width: 36px; height: 36px; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--gold-border); border-radius: 8px;
	background: var(--panel-2); color: var(--gold); transition: .2s;
}
.sup-refresh:hover { border-color: var(--gold); color: var(--gold-bright); }
.sup-create { margin-left: auto; }

/* controalele de formular din suport */
.sup-filter select,
.sup-field input,
.sup-field select,
.sup-field textarea,
.sup-reply textarea {
	background: var(--panel-2); color: var(--text);
	border: 1px solid var(--gold-border); border-radius: 8px;
	padding: 9px 12px; font-size: 13px; font-family: var(--font-ui);
}
.sup-filter select:focus,
.sup-field input:focus,
.sup-field select:focus,
.sup-field textarea:focus,
.sup-reply textarea:focus { outline: none; border-color: var(--gold-deep); }

/* lista de tichete */
.sup-list { display: flex; flex-direction: column; gap: 10px; }
.sup-ticket {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 14px; border-radius: 10px;
	background: rgba(0, 0, 0, .18); border: 1px solid var(--border-soft);
	transition: border-color .2s, background .2s;
}
.sup-ticket:hover { border-color: var(--gold-border); background: var(--panel-hi); }
.sup-ticket-ico {
	flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px;
	display: flex; align-items: center; justify-content: center;
	background: var(--panel-hi); border: 1px solid var(--gold-border);
	color: var(--gold); font-size: 15px;
}
.sup-ticket-body { flex: 1; min-width: 0; }
.sup-ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sup-ticket-title { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sup-ticket:hover .sup-ticket-title { color: var(--gold-bright); }
.sup-ticket-meta { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.sup-ticket-meta i { color: var(--muted-dim); }

/* eticheta de stare */
.sup-badge {
	flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
	padding: 3px 10px; border-radius: 999px;
	font-size: 11px; font-weight: 600; letter-spacing: .03em; border: 1px solid;
}
.sup-badge i { font-size: 10px; }
.sup-badge.open { color: #e8b25f; border-color: rgba(232, 178, 95, .5); background: rgba(52, 211, 153, .12); }
.sup-badge.ok   { color: #8fce87; border-color: rgba(140, 200, 130, .45); background: rgba(70, 140, 70, .14); }

.sup-empty {
	text-align: center; padding: 36px 16px; color: var(--muted); font-size: 13px;
	background: rgba(0, 0, 0, .15); border: 1px dashed var(--border-soft); border-radius: 10px;
}

/* panoul de formular / conversatie */
.sup-panel { background: var(--panel); border: 1px solid var(--border-faint); border-radius: 10px; overflow: hidden; }
.sup-panel-head {
	display: flex; align-items: center; gap: 9px;
	padding: 14px 18px; border-bottom: 1px solid var(--border-soft);
	font-family: var(--font-display); font-size: 14px; letter-spacing: .06em; color: var(--heading);
}
.sup-panel-head i { color: var(--gold); }
.sup-panel-body { padding: 18px; }

/* campurile din formularul de tichet nou */
.sup-field { margin-bottom: 14px; }
.sup-field label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--gold); }
.sup-field input, .sup-field select, .sup-field textarea { width: 100%; }
.sup-field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.sup-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }

/* linkul de intoarcere de pe pagina unui tichet */
.sup-back { margin-bottom: 12px; font-size: 13px; }
.sup-back a { display: inline-flex; align-items: center; gap: 7px; color: var(--gold); }
.sup-back a:hover { color: var(--gold-bright); }
.sup-back i { font-size: 11px; }

/* antetul unui tichet */
.sup-ticket-head {
	display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
	padding: 16px 18px; border-bottom: 1px solid var(--border-soft);
	background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.sup-ticket-head h3 { font-size: 18px; color: var(--heading); }
.sup-ticket-sub { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.sup-ticket-sub i { color: var(--muted-dim); }

/* mesajul initial */
.sup-desc {
	padding: 14px; margin-bottom: 18px; border-radius: 10px;
	background: rgba(0, 0, 0, .2); border: 1px solid var(--border-soft);
	color: var(--text); font-size: 13px; line-height: 1.6;
}
.sup-desc-label { display: block; margin-bottom: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); }

/* discutia — bule de chat */
.sup-chat { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.sup-bubble {
	max-width: 78%; padding: 11px 14px; border-radius: 12px;
	border: 1px solid var(--border-soft); font-size: 13px; line-height: 1.55;
}
.sup-bubble.me {
	align-self: flex-end; border-bottom-right-radius: 4px;
	background: linear-gradient(180deg, #2b2013, #1f1710); border-color: var(--gold-border);
}
.sup-bubble.admin {
	align-self: flex-start; border-bottom-left-radius: 4px;
	background: var(--panel-2);
}
.sup-bubble-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.sup-bubble-who { font-size: 12px; font-weight: 600; color: var(--heading); }
.sup-bubble.admin .sup-bubble-who { color: var(--gold); }
.sup-bubble-staff {
	padding: 1px 7px; border-radius: 999px; font-size: 9px;
	text-transform: uppercase; letter-spacing: .04em;
	color: #e8b25f; border: 1px solid rgba(232, 178, 95, .5);
}
.sup-bubble-when { margin-left: auto; font-size: 11px; color: var(--muted-dim); }
.sup-bubble-text { color: var(--text); overflow-wrap: anywhere; }
.sup-bubble-img { display: block; margin-top: 8px; }
.sup-bubble-img img { max-width: 220px; border-radius: 8px; border: 1px solid var(--gold-border); }

/* caseta de raspuns / notita de rezolvat */
.sup-reply {
	display: flex; flex-direction: column; gap: 10px;
	padding: 14px; border-radius: 10px;
	background: rgba(0, 0, 0, .2); border: 1px solid var(--border-soft);
}
.sup-reply textarea { width: 100%; resize: vertical; min-height: 70px; line-height: 1.5; }
.sup-reply button { align-self: flex-end; }
.sup-resolved {
	display: flex; align-items: center; gap: 9px;
	padding: 14px 16px; border-radius: 10px;
	background: rgba(70, 140, 70, .1); border: 1px solid rgba(140, 200, 130, .35); color: #bfe0b6; font-size: 13px;
}
.sup-resolved i { color: #8fce87; }

/* stivuit pe mobil */
@media (max-width: 820px) {
	.sup-layout { flex-direction: column; }
	.sup-side { width: auto; }
	.sup-bubble { max-width: 88%; }
}
@media (max-width: 560px) {
	.sup-account { margin-left: 0; }
	.sup-create { margin-left: 0; flex: 1 1 100%; }
}


/* --- ceata Aetheria (bottom_main_background de pe aetheria2.ro) ----------
   Stratul fix din spatele intregii pagini, ca pe site-ul lor: filmarea sta in
   antet, iar ceata verde tine restul paginii in aceeasi atmosfera. */
.page-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background: url('../../img/bg-mist.png') center bottom / cover no-repeat;
	opacity: .55;
	pointer-events: none;
}

/* --- EVENIMENTE (/events) ------------------------------------------------- */
.ev-help { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.ev-card { background: var(--panel); border: 1px solid var(--border-soft); border-radius: 10px; padding: 16px; }
.ev-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ev-cal-head h3 { margin: 0; font-family: var(--font-display); color: var(--heading); font-size: 18px; }
.ev-cal-nav { display: flex; gap: 6px; }
.ev-cal-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border-faint); color: var(--text); text-decoration: none; font-size: 13px; }
.ev-cal-nav a:hover { border-color: var(--gold); color: var(--gold-bright); }
.ev-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ev-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 6px 0; text-transform: uppercase; }
.ev-day { display: block; min-height: 70px; padding: 6px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border-soft); color: var(--text); text-decoration: none; overflow: hidden; }
.ev-day:hover { border-color: var(--gold); }
.ev-day.out { opacity: .35; }
.ev-day.today { border-color: var(--gold-deep); }
.ev-day.sel { border-color: var(--gold); background: rgba(52, 211, 153, .08); }
.ev-num { font-size: 12px; font-weight: 600; }
.ev-day.today .ev-num { color: var(--gold-bright); }
.ev-dot { display: block; margin-top: 4px; font-size: 10px; line-height: 14px; padding: 1px 4px; border-radius: 4px; background: rgba(52, 211, 153, .15); color: var(--gold-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ev-list-head h3 { margin: 0; color: var(--heading); font-size: 16px; }
.ev-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-filters a { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-faint); color: var(--muted); text-decoration: none; font-size: 12px; }
.ev-filters a.active, .ev-filters a:hover { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.ev-item { display: flex; gap: 14px; padding: 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border-soft); }
.ev-item + .ev-item { margin-top: 10px; }
.ev-item .ev-ico { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.ev-item .grow { flex: 1; min-width: 0; }
.ev-item .ev-banner { width: 100%; max-height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 10px; display: block; }
.ev-item h4 { margin: 0 0 4px; color: var(--heading); font-size: 15px; }
.ev-item p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.ev-when { font-size: 12px; color: var(--text); }
.ev-badge { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; vertical-align: middle; }
.ev-badge.active { background: rgba(52, 211, 153, .18); color: var(--gold-bright); }
.ev-badge.upcoming { background: rgba(96, 165, 250, .18); color: #93c5fd; }
.ev-badge.ended { background: rgba(161, 161, 170, .18); color: var(--muted); }
.ev-empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.ev-empty strong { display: block; color: var(--heading); margin-bottom: 4px; }
.ev-day-title { margin: 18px 0 10px; font-family: var(--font-display); color: var(--heading); font-size: 16px; }
@media (max-width: 640px) {
	.ev-day { min-height: 46px; }
	.ev-dot { display: none; }
	.ev-day.has::after { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin: 4px auto 0; }
}

/* --- prezentare ------------------------------------------------------------ */
.presentation { text-align: center; }
.presentation img {
	display: block;
	width: 100%;
	max-width: 900px;
	height: auto;
	margin: 0 auto;
	border: 1px solid var(--border-faint);
}

/* ==========================================================================
   Telefon si tableta
   Meniul de sus trece intr-un buton cand cele noua legaturi nu mai incap pe
   un rand; continutul paginii vine inaintea panourilor laterale, iar tabelele
   late se deruleaza in cutia lor in loc sa impinga pagina.
   ========================================================================== */
.nav-burger, .nav-brand, .nav-mobile-only { display: none; }
#user-panel { scroll-margin-top: calc(var(--nav-h) + 12px); }

@media (max-width: 1080px) {
	.nav { height: auto; min-height: var(--nav-h); }
	.nav::after { display: none; }
	.nav-inner {
		flex-wrap: wrap;
		justify-content: space-between;
		overflow: visible;
		min-height: var(--nav-h);
		padding: 0 14px;
		gap: 0;
	}
	.nav-brand {
		display: block;
		font-family: var(--font-display);
		font-size: 17px;
		letter-spacing: .08em;
		text-transform: uppercase;
		color: var(--gold-bright);
		white-space: nowrap;
	}
	.nav-logo { margin: 0; padding: 0; }
	.nav-logo img { height: 42px; }
	.nav-burger {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-left: auto;
		background: transparent;
		color: var(--text);
		border: 1px solid var(--border-faint);
		font-size: 18px;
		cursor: pointer;
	}
	.nav.open .nav-burger { border-color: var(--gold); color: var(--gold-bright); }

	.nav-menu, .nav-menu.left, .nav-menu.right { display: none; padding: 0; }
	.nav.open .nav-menu {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		flex: 0 0 100%;
		order: 5;
	}
	.nav.open .nav-menu.left { margin-top: 6px; border-top: 1px solid var(--border-soft); }
	.nav.open .nav-menu.right { padding-bottom: 10px; }
	.nav.open .nav-menu li { display: block; }
	.nav.open .nav-menu a {
		display: block;
		padding: 13px 4px;
		font-size: 13px;
		letter-spacing: .06em;
		border-bottom: 1px solid var(--border-soft);
	}
	.nav.open .nav-menu a::after { display: none; }
	.nav.open .nav-menu li.active a { color: var(--gold-bright); }
	.nav.open .nav-menu .btn { display: flex; margin-top: 10px; border-bottom: 0; }
	.nav.open .nav-inner { max-height: 100vh; overflow-y: auto; }
	.nav-mobile-only { display: block; }
}

@media (max-width: 980px) {
	.layout > main { order: 1; }
	.layout > aside { order: 2; }
}

@media (max-width: 760px) {
	.layout { padding: 0 12px; margin-bottom: 40px; }
	main .table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
	}
	.lang-trigger .lbl { display: none; }
	.hero-wrap .langbar { padding: 8px 12px 0; }
}

/* ==========================================================================
   Încarcă cont — pașii de plată (metoda, pachetul, confirmarea)
   ========================================================================== */
.tu-card {
	border: 1px solid var(--border-faint);
	background: var(--panel);
	padding: 22px 20px 26px;
	margin-bottom: 26px;
}

.tu-head { text-align: center; margin-bottom: 18px; }
.tu-head h2 {
	font-family: var(--font-display);
	font-size: 22px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--heading);
	margin: 0 0 4px;
}
.tu-head h2 i { color: var(--gold); margin-right: 6px; }
.tu-head p { margin: 0; font-size: 12.5px; color: var(--muted); }

.tu-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 0 auto 20px; }
.tu-step {
	width: 30px; height: 30px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 12.5px; font-weight: 700;
	color: var(--muted-dim);
	background: var(--panel-2);
	border: 1px solid var(--border-soft);
}
.tu-step.on { color: #fff; background: linear-gradient(180deg, #23875c 0%, #11513a 100%); border-color: var(--metal); }
.tu-line { width: 54px; height: 2px; background: var(--border-soft); }
.tu-line.on { background: var(--gold-deep); }

.tu-balance {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px;
	padding: 10px 12px; margin-bottom: 18px;
	border: 1px solid var(--border-soft); background: var(--panel-2);
	font-size: 12.5px;
}
.tu-balance span { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.tu-balance b { color: var(--heading); }
.tu-balance i { color: var(--gold); margin-right: 5px; }

.tu-step-title {
	text-align: center; margin: 0 0 14px;
	font-family: var(--font-display); font-size: 15px;
	letter-spacing: .08em; text-transform: uppercase; color: var(--gold-bright);
}

.tu-methods, .tu-packs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

.tu-method, .tu-pack {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	padding: 16px 12px; text-align: center;
	border: 1px solid var(--border-faint);
	background: linear-gradient(180deg, #123325 0%, #0b2118 100%);
	color: var(--text);
	transition: .22s;
}
.tu-method:hover, .tu-pack:hover {
	border-color: var(--gold);
	color: #fff;
	background: linear-gradient(180deg, #184430 0%, #0f2a1e 100%);
	transform: translateY(-2px);
}
.tu-logo {
	width: 54px; height: 54px; margin-bottom: 6px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border-soft);
	font-size: 20px; color: var(--gold);
}
.tu-logo img { max-width: 34px; max-height: 34px; }
.tu-method b { font-size: 13.5px; }
.tu-method small, .tu-sub { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.tu-price { font-family: var(--font-display); font-size: 20px; color: var(--ivory); }
.tu-coins { font-size: 15px; font-weight: 700; color: var(--gold-bright); }
.tu-coins i { margin-right: 4px; }
.tu-bonus, .tu-cash {
	margin-top: 4px; padding: 2px 8px; font-size: 10.5px;
	border: 1px solid rgba(201, 163, 90, .35); color: var(--metal-bright);
}

.tu-summary { max-width: 460px; margin: 0 auto 16px; }
.tu-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 12px; border-bottom: 1px solid var(--border-soft); font-size: 13px;
}
.tu-row span { color: var(--muted); }
.tu-row b { color: var(--heading); }
.tu-row small { color: var(--metal-bright); font-weight: 400; }
.tu-row.total { border-bottom: 0; background: var(--panel-2); }
.tu-row.total b { color: var(--gold-bright); }

.tu-pay { max-width: 460px; margin: 0 auto; }
.tu-tos { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; font-size: 12px; color: var(--muted); }
.tu-tos a { color: var(--gold); }

.tu-done { text-align: center; padding: 10px 0 4px; }
.tu-done i { font-size: 34px; color: var(--gold); }
.tu-done h3 { font-family: var(--font-display); font-size: 19px; margin: 10px 0 6px; color: var(--heading); }
.tu-ref { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.tu-ref b { color: var(--gold-bright); letter-spacing: .08em; }
.tu-done .btn { display: inline-flex; margin-bottom: 12px; }

.tu-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 12px auto 0; max-width: 520px; }
.tu-note.warn {
	padding: 14px; color: var(--metal-bright);
	border: 1px solid rgba(201, 163, 90, .35); background: rgba(201, 163, 90, .08);
}

.tu-back { display: inline-block; margin-top: 16px; font-size: 12px; color: var(--muted); }
.tu-back:hover { color: var(--gold-bright); }

@media (max-width: 760px) {
	.tu-card { padding: 16px 12px 20px; }
	.tu-line { width: 28px; }
	.tu-methods, .tu-packs { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
}

.tu-ticket { max-width: 340px; margin: 4px auto 0; }

.tu-where {
	max-width: 460px;
	margin: 0 auto 12px;
	padding: 10px 12px;
	font-size: 12.5px;
	color: var(--heading);
	border: 1px solid rgba(201, 163, 90, .35);
	background: rgba(201, 163, 90, .08);
}

.tu-note.ok {
	padding: 12px;
	color: var(--gold-bright);
	border: 1px solid var(--border-faint);
	background: rgba(60, 207, 145, .08);
}
