/* Site-ul OwnTown: aceleasi culori, fonturi si forme ca interfata din joc (Assets/Resources/UI/JocUI.uss). */

@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap; src: url("/fonts/Roboto-Medium.ttf") format("truetype"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("/fonts/Roboto-Bold.ttf") format("truetype"); }
@font-face { font-family: "Roboto"; font-weight: 900; font-display: swap; src: url("/fonts/Roboto-Black.ttf") format("truetype"); }

:root {
  --navy: #1E2A5A;
  --navy-bar: #141F4D;
  --ink: #3A4670;
  --label: #55618A;
  --muted: #7A86A8;
  --faint: #A6B0C9;
  --bg: #EEF2FA;
  --input: #F1F4FA;
  --line: #DCE3F1;
  --line-soft: #E3E8F3;
  --card-edge: #C3CEE8;
  --blue: #3A78F2;
  --blue-dark: #1D57D0;
  --blue-edge: #2456C4;
  --focus: #4C8DFF;
  --green: #33C659;
  --green-hover: #3DD465;
  --green-edge: #1A9440;
  --yellow: #FFD23F;
  --xp: #24B4FF;
  --red: #D6363C;
  --red-bg: #FFECEC;
  --ok: #1A7F3A;
  --ok-bg: #E5F8EA;
  --shadow: 0 10px 30px rgba(30, 42, 90, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--navy);
  background: var(--bg);
}

img { max-width: 100%; }

a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---------- Bara de sus ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 31, 77, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(8, 14, 40, 0.25);
}

.bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { display: block; width: auto; height: 34px; }

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav { display: flex; gap: 4px; }

.nav a, .bar-link {
  padding: 9px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s;
}

.nav a:hover, .bar-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav a.is-active, .bar-link.is-active { background: rgba(255, 255, 255, 0.14); color: #fff; }

.bar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
}

.lang button {
  padding: 5px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: 900 13px "Roboto", sans-serif;
  cursor: pointer;
}

.lang button:hover { color: #fff; }
.lang button.is-active { background: #fff; color: var(--navy); }

.me-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  max-width: 220px;
}

.me-link:hover, .me-link.is-active { background: rgba(255, 255, 255, 0.16); }
.me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-link .avatar { border-width: 2px; box-shadow: none; }

/* ---------- Pagini ---------- */

.main { flex: 1; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.page--narrow { max-width: 760px; }
.page--auth { max-width: 540px; padding-top: 56px; }

.page-head { margin-bottom: 24px; }

.page-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title { margin: 0; font-size: 40px; font-weight: 900; }
.page-sub { margin: 6px 0 0; font-size: 18px; color: var(--muted); }

.card {
  background: #fff;
  border-radius: 28px;
  border-bottom: 6px solid var(--card-edge);
  box-shadow: var(--shadow);
  padding: 32px;
}

.card--auth { padding: 36px 40px 30px; }
.card--wide { max-width: 1060px; margin: 0 auto; }

.card-title {
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.card-sub {
  margin: 0 0 26px;
  font-size: 17px;
  color: var(--muted);
  text-align: center;
}

.card-links {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 0;
  color: var(--muted);
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

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

.muted { font-size: 14px; color: var(--muted); }

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--label);
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.tag--blue { background: #E2EBFF; color: var(--blue); }

/* ---------- Formulare ---------- */

.form { display: grid; gap: 16px; text-align: left; }
.field { display: grid; gap: 7px; }
.field-label { padding-left: 4px; font-size: 14px; font-weight: 700; color: var(--label); }
.field-hint { padding-left: 4px; font-size: 13px; color: var(--muted); }

.input, .select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--input);
  color: var(--navy);
  font: 500 17px "Roboto", sans-serif;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.input::placeholder { color: var(--faint); }
.input:hover, .select:hover { border-color: #C2CDE6; }

.input:focus, .select:focus {
  border-color: var(--focus);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(76, 141, 255, 0.15);
}

.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }

.select {
  width: auto;
  min-width: 240px;
  padding-right: 46px;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%2355618A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.msg {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
  text-align: center;
}

.msg--error { background: var(--red-bg); color: var(--red); }
.msg--ok { background: var(--ok-bg); color: var(--ok); }

/* Butoanele "3D" din joc: muchia de jos mai inchisa, se apasa la click. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 5px;
  padding: 13px 26px;
  border: 0;
  border-radius: 18px;
  background: var(--green);
  box-shadow: 0 5px 0 var(--green-edge);
  color: #fff;
  font: 900 19px "Roboto", sans-serif;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.08s, box-shadow 0.08s, background-color 0.15s;
}

.btn:hover { background: var(--green-hover); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-edge); }
.btn:disabled { cursor: default; opacity: 0.7; }

.btn.is-busy::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn--block { width: 100%; }
.btn--lg { padding: 16px 34px; font-size: 21px; border-radius: 20px; }
.btn--wide { min-width: min(340px, 100%); }
.btn--sm { margin-bottom: 3px; padding: 8px 16px; font-size: 15px; border-radius: 12px; box-shadow: 0 3px 0 var(--green-edge); }
.btn--sm:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-edge); }

.btn--white { background: #fff; color: var(--navy); box-shadow: 0 5px 0 var(--card-edge), inset 0 0 0 2px var(--line-soft); }
.btn--white:hover { background: #F6F8FD; }
.btn--white:active { box-shadow: 0 2px 0 var(--card-edge), inset 0 0 0 2px var(--line-soft); }
.btn--sm.btn--white { box-shadow: 0 3px 0 var(--card-edge), inset 0 0 0 2px var(--line-soft); }

.btn--blue { background: var(--blue); box-shadow: 0 5px 0 var(--blue-edge); }
.btn--blue:hover { background: #4A86FA; }
.btn--blue:active { box-shadow: 0 2px 0 var(--blue-edge); }

.btn--danger { background: #FF5A5F; box-shadow: 0 3px 0 #C2353A; }
.btn--danger:hover { background: #FF6E72; }

.link { color: var(--blue); text-decoration: none; }
.link:hover { color: var(--blue-dark); text-decoration: underline; }
.link--strong { font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Prima pagina ---------- */

/* Imaginea mare sus, iar peste marginea ei de jos un card alb: logoul din imagine ramane mereu vizibil. */
.hero { position: relative; padding-bottom: 8px; background: #fff; }

.hero-media {
  position: relative;
  /* imaginea e 16:9: pe ecrane inguste se vede toata; pe cele late, cat incape (lasand titlul cardului vizibil) */
  height: min(calc(100vw * 9 / 16), calc(100vh - 120px));
  min-height: 240px;
  overflow: hidden;
  background: #F2C987;
}

.hero-art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* Logo-ul, separat de imagine: sus la mijloc, pe cer, cu marime dupa latimea ecranului (nu creste odata cu imaginea). */
.hero-logo {
  position: absolute;
  left: 50%;
  top: clamp(14px, 6%, 52px);
  transform: translateX(-50%);
  width: clamp(190px, 24vw, 470px);
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(24, 16, 66, 0.45));
  pointer-events: none;
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 940px;
  margin: -96px auto 0;
  padding: 34px 44px 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 80px rgba(20, 31, 77, 0.28);
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #FFE08A;
  border-radius: 999px;
  background: #FFF6D6;
  color: #8A6100;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 16px 0 12px;
  text-wrap: balance;
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.5px;
}

.hero-lead { max-width: 700px; margin: 0 auto 26px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--input);
  color: var(--label);
  font-size: 14px;
  font-weight: 700;
}

.chips .icon { width: 16px; height: 16px; color: var(--green); stroke-width: 3; }

/* Sectiunile */
.block { padding: 88px 20px; background: #fff; }
.block--alt { background: var(--bg); }
.block-inner { max-width: 1120px; margin: 0 auto; }
.block-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.block-title { text-wrap: balance; margin: 0; font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; line-height: 1.15; letter-spacing: -0.3px; }
.block-lead { margin: 14px auto 0; font-size: 18px; line-height: 1.6; color: var(--label); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title { margin: 0; font-size: 26px; font-weight: 900; }

/* Totul intr-unul: trei jocuri + ... = OwnTown */
.mix { display: flex; align-items: stretch; justify-content: center; gap: 12px; }

.mix-card {
  flex: 1 1 0;
  max-width: 250px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 26px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.mix-card strong { font-size: 20px; font-weight: 900; }
.mix-like { color: var(--blue); font-size: 13px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.mix-card p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--label); }
.mix-op { display: grid; place-items: center; width: 34px; flex-shrink: 0; color: var(--faint); }
.mix-op .icon { width: 28px; height: 28px; stroke-width: 2.5; }

.mix-card--result {
  border: 0;
  background: linear-gradient(160deg, #1E2A5A, #3A78F2);
  color: #fff;
  box-shadow: 0 18px 40px rgba(58, 120, 242, 0.35);
}

.mix-card--result p { color: rgba(255, 255, 255, 0.88); }
.mix-icon { width: 58px; height: 58px; margin: -6px auto 6px; }

/* Carduri cu iconite */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature-card {
  padding: 28px 26px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30, 42, 90, 0.12); }
.feature-card h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 900; }
.feature-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--label); }

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, #E6EEFF, #D3E0FF);
  color: var(--blue);
}

.icon-tile .icon { width: 26px; height: 26px; }
.grid--warm .icon-tile { background: linear-gradient(145deg, #FFF4CC, #FFE38A); color: #9A6A00; }

/* Capturi mari, pe randuri alternante */
.showcase { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 72px; }
.showcase--flip .showcase-media { order: 2; }

.showcase-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(20, 31, 77, 0.22);
}

.showcase-title { text-wrap: balance; margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); font-weight: 900; line-height: 1.15; }
.showcase-text p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--label); }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shot { margin: 0; }
.shot a { display: block; overflow: hidden; border-radius: 18px; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.35s; }
.shot a:hover img { transform: scale(1.04); }
.shot figcaption { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--label); }

/* Sectiunea pe fundal inchis: foaia de parcurs */
.block--dark {
  background: radial-gradient(1200px 520px at 50% -10%, #2B3E8F 0%, #141F4D 55%, #0E1736 100%);
  color: #fff;
}

.block--dark .eyebrow { color: var(--yellow); }
.block--dark .block-lead { color: rgba(255, 255, 255, 0.78); }

.road {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.road::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.18);
}

.road-step {
  position: relative;
  padding: 54px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.road-dot {
  position: absolute;
  top: 4px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: #24306A;
  transform: translateX(-50%);
}

.road-dot .icon { width: 14px; height: 14px; color: #fff; stroke-width: 3.5; }
.road-state { color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.road-step h3 { margin: 8px 0 4px; font-size: 18px; font-weight: 900; }
.road-when { display: block; margin-bottom: 10px; color: rgba(255, 255, 255, 0.65); font-size: 13px; font-weight: 700; }
.road-step p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 14.5px; line-height: 1.55; }

.road-step--done .road-dot { border-color: #8BE3A5; background: var(--green); }
.road-step--done .road-state { color: #8BE3A5; }
.road-step--now { border-color: rgba(255, 210, 63, 0.5); background: rgba(255, 210, 63, 0.12); }
.road-step--now .road-dot { border-color: #FFF0B3; background: var(--yellow); box-shadow: 0 0 0 6px rgba(255, 210, 63, 0.18); }
.road-step--now .road-state { color: var(--yellow); }
.road-step--next .road-dot { border-color: #9FBDFF; background: var(--blue); }
.road-step--next .road-state { color: #9FBDFF; }

/* Gratuit si corect */
.fair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 920px; margin: 0 auto; }

.fair-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.fair-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ok-bg);
  color: var(--green-edge);
}

.fair-item h3 { margin: 2px 0 4px; font-size: 18px; font-weight: 900; }
.fair-item p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--label); }

/* Parteneri */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.partner-card {
  padding: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: linear-gradient(160deg, #F5F8FF, #FFFFFF);
  box-shadow: var(--shadow);
}

.partner-card h3 { margin: 16px 0 12px; font-size: 22px; font-weight: 900; }
.partner-card ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.partner-card li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.partner-card li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--green); stroke-width: 3; }
.partners-note { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

/* Comunitatea: Discord si Instagram, cu culorile lor */
.community { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.community-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px 20px;
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.community-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30, 42, 90, 0.18); }
.community-card--discord { background: linear-gradient(150deg, #6B76F7, #4752C4); }
.community-card--instagram { background: linear-gradient(140deg, #FEDA75 -20%, #FA7E1E 15%, #D62976 50%, #962FBF 80%, #4F5BD5 120%); }

.community-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.community-icon .icon { width: 32px; height: 32px; }
.community-text h3 { margin: 4px 0 6px; font-size: 22px; font-weight: 900; }
.community-text p { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }

.community-cta {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
  font-size: 15px;
}

.community-cta .icon { width: 18px; height: 18px; stroke-width: 2.5; }

/* Intrebari frecvente */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(30, 42, 90, 0.05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--muted); transition: transform 0.2s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; font-size: 16px; line-height: 1.6; color: var(--label); }

/* Finalul paginii */
.final {
  padding: 88px 20px;
  background: radial-gradient(900px 420px at 50% 0%, #2B3E8F, #141F4D 60%, #0E1736);
  color: #fff;
  text-align: center;
}

.final-inner { max-width: 760px; margin: 0 auto; }
.final-logo { width: min(520px, 90%); height: auto; }
.final-title { text-wrap: balance; margin: 22px 0 10px; font-size: clamp(30px, 4vw, 46px); font-weight: 900; }
.final-lead { max-width: 560px; margin: 0 auto 28px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }

/* Logoul deasupra cardurilor de cont */
.auth-logo { display: block; width: min(320px, 80%); margin: 0 auto 22px; }
.auth-logo img { display: block; width: 100%; height: auto; }

/* ---------- Sustine: pachetele de coins ---------- */

section[id] { scroll-margin-top: 72px; }

/* Medaliile (insignele) Supporter / Fondator */
.medal {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14), 0 8px 20px rgba(20, 31, 77, 0.22);
}

.medal .icon { width: 50%; height: 50%; fill: #fff; stroke: #fff; stroke-width: 1.5; }
.medal--supporter { background: linear-gradient(145deg, #7DB0FF, #2456C4); }
.medal--founder { background: linear-gradient(145deg, #FFE68A, #F0A500); box-shadow: inset 0 -5px 0 rgba(150, 90, 0, 0.25), 0 8px 22px rgba(240, 165, 0, 0.35); }
.medal--xs { width: 22px; height: 22px; border-width: 2px; box-shadow: none; }
.medal--lg { width: 84px; height: 84px; border-width: 4px; }
.medal--xl { width: 104px; height: 104px; border-width: 5px; }

/* Capul paginii */
.sup-hero {
  overflow: hidden;
  padding: 72px 20px 80px;
  background: radial-gradient(900px 480px at 75% 30%, #34489E 0%, #141F4D 55%, #0E1736 100%);
  color: #fff;
}

.sup-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.sup-hero .eyebrow { color: var(--yellow); }
.sup-title { margin: 0 0 16px; font-size: clamp(34px, 4.6vw, 54px); font-weight: 900; line-height: 1.06; letter-spacing: -0.5px; text-wrap: balance; }
.sup-lead { max-width: 580px; margin: 0 0 28px; font-size: 18px; line-height: 1.65; color: rgba(255, 255, 255, 0.85); }
.sup-cta { justify-content: flex-start; }

.sup-hero-art { position: relative; display: grid; place-items: center; min-height: 320px; }

.sup-hero-art::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.38), rgba(255, 210, 63, 0) 65%);
}

.sup-coins { position: relative; display: flex; align-items: center; justify-content: center; margin-right: 90px; }
.sup-coin { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); }
.sup-coin--back { width: 110px; height: 110px; margin-right: -40px; transform: rotate(-14deg) translateY(-26px); opacity: 0.9; }
.sup-coin--front { transform: rotate(8deg); }
.sup-medals { display: flex; align-items: center; }
.sup-medals--hero { position: absolute; right: 0; bottom: 64px; }
.sup-medals--hero .medal--supporter { margin-right: -22px; transform: rotate(-10deg) translateY(10px); }
.sup-medals--hero .medal--founder { transform: rotate(6deg); }
.sup-coins--final { margin: 0 0 6px; }
.sup-coins--final .sup-coin { width: 110px; height: 110px; }
.sup-coins--final .sup-coin--back { width: 80px; height: 80px; }

.sup-free {
  position: absolute;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(139, 227, 165, 0.5);
  border-radius: 999px;
  background: rgba(51, 198, 89, 0.16);
  color: #8BE3A5;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sup-free .icon { width: 18px; height: 18px; }

/* Bonusul la prima cumparare */
.first-buy {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto 36px;
  padding: 18px 24px;
  border: 2px dashed #F5C64A;
  border-radius: 22px;
  background: linear-gradient(135deg, #FFF8DC, #FFFFFF);
}

.first-buy-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, #FFE68A, #F0A500);
  color: #fff;
}

.first-buy-icon .icon { width: 28px; height: 28px; }
.first-buy strong { display: block; font-size: 20px; font-weight: 900; }
.first-buy p { margin: 2px 0 0; color: var(--label); }

/* Pachetele de coins */
.packs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pack:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30, 42, 90, 0.12); }
.pack--supporter { border: 2px solid #9FBDFF; }
.pack--founder { border: 2px solid #F5C64A; background: linear-gradient(180deg, #FFFBEB, #FFFFFF 55%); }

.pack--best {
  border: 2px solid #F5C64A;
  background: linear-gradient(170deg, #1E2A5A 0%, #141F4D 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(20, 31, 77, 0.35), 0 0 0 6px rgba(255, 210, 63, 0.12);
}

.pack-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, #FFE68A, #F0A500);
  color: #5A3A00;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.pack-coins { display: grid; justify-items: center; gap: 2px; }
.pack-coin { width: 64px; height: 64px; object-fit: contain; margin-bottom: 6px; filter: drop-shadow(0 6px 10px rgba(240, 165, 0, 0.35)); }
.pack-coins strong { font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -0.5px; }
.pack--best .pack-coins strong { color: var(--yellow); }
.pack-coins span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.pack--best .pack-coins span { color: rgba(255, 255, 255, 0.65); }

.pack-bonus {
  min-height: 26px;
  margin: 12px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--green-edge);
  font-size: 13px;
  font-weight: 900;
}

.pack-bonus--none { background: transparent; }
.pack--best .pack-bonus { background: rgba(51, 198, 89, 0.2); color: #8BE3A5; }

.pack-perk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 58px;
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #F5F8FF;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.pack-perk--none { background: transparent; }
.pack--founder .pack-perk { background: #FFF1C2; color: #7A4B00; }
.pack--best .pack-perk { background: rgba(255, 210, 63, 0.14); color: #FFE7A0; }
.pack-perk small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 700; opacity: 0.75; }

.pack-price { margin: auto 0 14px; padding-top: 16px; font-size: 26px; font-weight: 900; }
.pack .btn { padding: 11px 12px; font-size: 15px; }

.btn--soon, .btn--soon:hover { background: #E3E8F3; box-shadow: 0 5px 0 #C9D2E6; color: #6B779C; opacity: 1; }
.pack--best .btn--soon { background: rgba(255, 255, 255, 0.12); box-shadow: 0 5px 0 rgba(0, 0, 0, 0.25); color: rgba(255, 255, 255, 0.75); }

.sup-note { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

/* Cum arata insigna in joc */
.look { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.look-text .block-title, .look-text .block-lead { text-align: left; margin-left: 0; }
.look-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.chip-badge--supporter { background: #E2EBFF; color: #1D57D0; }
.chip-badge--founder { background: #FFF1C2; color: #7A4B00; }

.look-shot { position: relative; margin: 0; }

.look-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(20, 31, 77, 0.25);
}

.nameplate {
  position: absolute;
  top: 17%;
  left: 49.5%;
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translateX(-50%);
}

.nameplate strong {
  padding: 4px 12px;
  border-radius: 10px;
  background: rgba(10, 18, 48, 0.72);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.nameplate .chip-badge { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); font-size: 12px; }

.look-shot figcaption {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(10, 18, 48, 0.6);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Sustine-ti orasul: pasii */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.step { padding: 24px 22px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; background: rgba(255, 255, 255, 0.06); }

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--yellow);
  color: #5A3A00;
  font-size: 18px;
  font-weight: 900;
}

.step h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 900; }
.step p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 15px; line-height: 1.55; }

/* Data nasterii pe profil */
.birth-card { margin-bottom: 20px; border-bottom-color: #F5C64A; }
.birth-card .muted { display: block; margin: 6px 0 16px; font-size: 15px; }
.birth-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.birth-row .input { flex: 1 1 200px; max-width: 280px; }
.birth-row .btn { margin-bottom: 0; }
.birth-card .msg { margin-top: 12px; }

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

@media (max-width: 860px) {
  .sup-hero { padding: 48px 16px 56px; }
  .sup-hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .sup-lead { margin-left: auto; margin-right: auto; }
  .sup-cta { justify-content: center; }
  .sup-hero-art { min-height: 240px; order: -1; }
  .sup-coin { width: 112px; height: 112px; }
  .sup-coin--back { width: 84px; height: 84px; }
  .sup-medals--hero { right: 12%; bottom: 44px; }
  .sup-hero-art .sup-coins { margin-right: 70px; }
  .medal--xl { width: 76px; height: 76px; }
  .medal--lg { width: 60px; height: 60px; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .first-buy { align-items: flex-start; }
  .look { grid-template-columns: 1fr; gap: 28px; }
  .look-text .block-title, .look-text .block-lead { text-align: center; margin-left: auto; }
  .look-badges { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .packs { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}

/* ---------- Stiri ---------- */

.news-list { display: grid; gap: 16px; }
.news { padding: 24px 28px; scroll-margin-top: 90px; }

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.news-title { margin: 6px 0 10px; font-size: 22px; font-weight: 900; }
.news-title a { color: inherit; text-decoration: none; }
.news-title a:hover { color: var(--blue); }
.news-body p { margin: 0 0 10px; font-size: 16px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.news-body p:last-child { margin-bottom: 0; }

.news--short .news-body {
  max-height: 7.6em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}

/* ---------- Avatar, nivel, tara ---------- */

.avatar {
  display: inline-block;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border: 3px solid #fff;
  border-radius: 18px;
  background: #5B8CFF;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(30, 42, 90, 0.18);
}

.avatar--sm { width: 40px; height: 40px; border-width: 2px; border-radius: 12px; }
.avatar--xl { width: 120px; height: 120px; border-width: 5px; border-radius: 32px; }
.avatar--ghost { visibility: hidden; }

.avatar--letter {
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
}

.avatar--sm.avatar--letter { font-size: 17px; }
.avatar--xl.avatar--letter { font-size: 52px; }

.star {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: url("/img/icons/star.png") center / contain no-repeat;
}

.star-num {
  padding-top: 3px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-shadow: -1px -1px 0 #9A4A00, 1px -1px 0 #9A4A00, -1px 1px 0 #9A4A00, 1px 1px 0 #9A4A00;
}

.star--sm { width: 36px; height: 36px; }
.star--sm .star-num { font-size: 13px; }
.star--lg { width: 76px; height: 76px; }
.star--lg .star-num { padding-top: 5px; font-size: 26px; text-shadow: -2px -2px 0 #9A4A00, 2px -2px 0 #9A4A00, -2px 2px 0 #9A4A00, 2px 2px 0 #9A4A00; }
.star-num--small { font-size: 0.8em; }

.xp-bar {
  position: relative;
  height: 24px;
  overflow: hidden;
  border: 2px solid var(--navy);
  border-radius: 12px;
  background: var(--navy);
}

.xp-fill { height: 100%; border-radius: 10px; background: linear-gradient(180deg, #5CD0FF, var(--xp)); }

.xp-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.country { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }

.country-code {
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--label);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* ---------- Clasament ---------- */

.lb { padding: 10px; }

.lb-row {
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr) 210px 64px 110px;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 16px;
  color: var(--navy);
  text-decoration: none;
}

a.lb-row:hover { background: #F4F7FD; }
.lb-row--me, a.lb-row--me:hover { background: #E8F0FF; }

.lb-row--head {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lb-rank { justify-self: center; font-size: 17px; font-weight: 900; color: var(--label); }

.lb-rank--1, .lb-rank--2, .lb-rank--3 {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.lb-rank--1 { background: var(--yellow); color: #7A4B00; }
.lb-rank--2 { background: #D5DDEC; color: #4A5577; }
.lb-rank--3 { background: #F0B27A; color: #6E3A0D; }

.lb-name { overflow: hidden; font-size: 17px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.lb-country { overflow: hidden; white-space: nowrap; }
.lb-level { justify-self: center; }
.lb-xp { justify-self: end; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- Profil ---------- */

.profile-head { display: flex; align-items: center; gap: 24px; }
.profile-id { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.profile-name { margin: 0; font-size: 34px; font-weight: 900; overflow-wrap: anywhere; }

.online { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.online-dot { width: 10px; height: 10px; border-radius: 50%; background: #B8C2DA; }
.online--on { color: var(--green-edge); }
.online--on .online-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(51, 198, 89, 0.2); }

.level { display: flex; align-items: center; gap: 18px; margin: 28px 0 8px; }
.level-info { flex: 1; display: grid; gap: 7px; }
.level-title { font-size: 18px; font-weight: 900; }

.pills { display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0 4px; }

.pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 24px 6px 6px;
  border-radius: 999px;
  background: rgba(13, 22, 62, 0.94);
  color: #fff;
}

.pill-icon { width: 42px; height: 42px; object-fit: contain; }
.pill-value { font-size: 22px; font-weight: 900; }

.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px 24px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 2px solid var(--bg);
}

.facts dt { font-size: 14px; font-weight: 700; color: var(--label); align-self: center; }
.facts dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }

/* ---------- Profilul nou: avatar si tara ---------- */

.setup { padding: 36px 40px 32px; }
.setup-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 4px; }
.setup-label { margin: 0 0 14px; font-size: 17px; font-weight: 900; }

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

.avatar-option {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 4px solid var(--line-soft);
  border-radius: 24px;
  background: var(--input);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
}

.avatar-option .avatar {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 19px;
  box-shadow: none;
}

.avatar-option:hover { transform: scale(1.04); border-color: #B8C7EE; }
.avatar-option.is-selected { border-color: var(--green); }

.avatar-check {
  display: none;
  position: absolute;
  top: -11px;
  right: -11px;
  width: 34px;
  height: 34px;
  background: url("/img/icons/check.png") center / contain no-repeat;
}

.avatar-option.is-selected .avatar-check { display: block; }

.country-list {
  height: 300px;
  margin-top: 10px;
  padding: 4px 6px;
  overflow-y: auto;
  border: 2px solid var(--line-soft);
  border-radius: 16px;
  background: #F8FAFE;
}

.country-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  margin: 2px 0;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--navy);
  font: 500 16px "Roboto", sans-serif;
  text-align: left;
  cursor: pointer;
}

.country-row:hover { background: #EAF0FF; }
.country-row.is-selected { background: var(--blue); color: #fff; }
.country-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.country-cur {
  padding: 3px 8px;
  border-radius: 8px;
  background: #E9EEF8;
  color: var(--label);
  font-size: 12px;
  font-weight: 900;
}

.country-row.is-selected .country-cur { background: rgba(255, 255, 255, 0.25); color: #fff; }

.money-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #FFF6DA;
  color: #6B5300;
  font-size: 15px;
}

.money-note-icon { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }

.setup-actions { display: flex; justify-content: center; margin-top: 30px; }
.setup .msg { margin-top: 14px; }

/* ---------- Admin ---------- */

.admin-form { margin-bottom: 24px; padding: 28px 32px; }
.admin-card { padding: 28px 32px; }
.admin-list { display: grid; gap: 10px; margin-top: 16px; }

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #F6F8FD;
}

.admin-item-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.admin-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---------- Mesaje scurte si subsol ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(12, 20, 52, 0.94);
  color: #fff;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

.footer { background: #0E1736; color: rgba(255, 255, 255, 0.72); font-size: 14px; }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 28px;
}

.footer-brand { display: flex; align-items: flex-start; gap: 16px; }
.footer-icon { flex-shrink: 0; width: 52px; height: 52px; }
.footer-logo { display: block; width: auto; height: 30px; margin-bottom: 10px; }
.footer-brand p { margin: 0 0 6px; line-height: 1.5; }
.footer-dev { font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.footer-col { display: grid; align-content: start; gap: 8px; }
.footer-col h3 { margin: 0 0 4px; color: #fff; font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-col a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.footer-social .icon { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.footer-bottom a { color: rgba(255, 255, 255, 0.8); text-underline-offset: 3px; }

/* ---------- Ecrane mici ---------- */

@media (max-width: 1100px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .road::before { display: none; }
}

@media (max-width: 860px) {
  .bar { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; }
  .nav { order: 3; width: 100%; overflow-x: auto; margin: 0 -6px; }
  .logo-img { height: 28px; }
  .page { padding: 28px 16px 48px; }
  .page--auth { padding-top: 32px; }
  .page-title { font-size: 32px; }
  .card { padding: 24px 20px; border-radius: 24px; }
  .card--auth, .setup, .admin-form, .admin-card { padding: 28px 20px 24px; }
  .card-title { font-size: 28px; }
  .setup-cols { grid-template-columns: 1fr; gap: 28px; }
  .lb { padding: 6px; }
  .lb-row { grid-template-columns: 34px 40px minmax(0, 1fr) 40px 76px; gap: 10px; padding: 10px; }
  .lb-country { display: none; }
  .profile-head { gap: 16px; }
  .profile-name { font-size: 28px; }
  .avatar--xl { width: 92px; height: 92px; border-radius: 26px; }
  .admin-item { flex-direction: column; align-items: stretch; }
  .select { width: 100%; }
  .page-head--row > div { width: 100%; }

  .hero-card { margin: -36px 12px 0; padding: 26px 20px 22px; border-radius: 24px; }
  .hero-lead { font-size: 16.5px; }
  .block, .final { padding: 60px 16px; }
  .block-head { margin-bottom: 32px; }
  .mix { flex-direction: column; align-items: center; }
  .mix-card { width: 100%; max-width: 420px; }
  .showcase { grid-template-columns: 1fr; gap: 22px; }
  .showcase + .showcase { margin-top: 48px; }
  .showcase--flip .showcase-media { order: 0; }
  .showcase-text p { font-size: 16.5px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .road { grid-template-columns: 1fr; }
  .road-step { padding: 20px 20px 20px 66px; text-align: left; }
  .road-dot { top: 20px; left: 32px; }
  .fair, .partners, .community { grid-template-columns: 1fr; }
  .partner-card { padding: 24px 20px; }
  .community-card { padding: 22px 20px; gap: 6px 16px; }
  .community-icon { width: 52px; height: 52px; border-radius: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; }
}

@media (max-width: 560px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .chips li { font-size: 13px; padding: 6px 12px; }
}

@media (max-width: 420px) {
  .me-name { display: none; }
  .me-link { padding: 4px; }
  .bar-right { gap: 8px; }
  .btn--lg { padding: 14px 24px; font-size: 19px; }
  .pill-value { font-size: 19px; }
  .bar .btn--sm { padding: 8px 12px; font-size: 14px; }
}

/* ---------- Harta regiunilor (/regions) ---------- */

.rg-stage {
  position: relative;
  height: clamp(600px, calc(100vh - 54px), 980px);
  overflow: hidden;
  background: #121B41;
  scroll-margin-top: 54px;
}

.rg-stage .rg-map { position: absolute; inset: 0; } /* peste .maplibregl-map { position: relative } */
.rg-map .maplibregl-canvas { outline: none; }
.rg-fail { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; color: rgba(255, 255, 255, 0.75); text-align: center; }

.rg-glass {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 23, 54, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(4, 8, 24, 0.35);
  color: #fff;
}

.rg-hero {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  width: min(430px, calc(100% - 40px));
  padding: 22px 24px 20px;
  border-radius: 22px;
}

.rg-hero .eyebrow { margin-bottom: 6px; color: var(--yellow); }
.rg-title { margin: 0; font-size: clamp(24px, 2.4vw, 31px); font-weight: 900; line-height: 1.12; letter-spacing: -0.3px; text-wrap: balance; }
.rg-lead { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); }
.rg-error { margin: 12px 0 0; color: #FFB4B7; font-size: 14px; }

.rg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.rg-stat { padding: 10px 6px 9px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); text-align: center; }
.rg-stat strong { display: block; font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rg-stat span { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 700; line-height: 1.25; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.66); }
.rg-stat i { display: inline-block; width: 7px; height: 7px; margin: 0 4px 1px 0; border-radius: 50%; vertical-align: middle; }

.rg-jumps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.rg-jump {
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 700 13px "Roboto", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s;
}

.rg-jump:hover { background: rgba(255, 255, 255, 0.18); }

.rg-legend {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 13px 16px;
  border-radius: 16px;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}

.rg-legend li { display: flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, 0.86); }

.rg-swatch {
  position: relative;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.rg-swatch::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: 0.35; }

.rg-hint {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.rg-hint .icon { width: 18px; height: 18px; color: var(--yellow); }
.rg-hint.is-hidden { opacity: 0; transform: translate(-50%, 10px); }

.rg-tip {
  position: absolute;
  z-index: 3;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  transform: translate(16px, 16px);
  pointer-events: none;
}

.rg-tip small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.72); }

/* Butoanele de zoom si atribuirea, pe tema hartii */
.rg-map .maplibregl-ctrl-top-right { top: 8px; right: 8px; transition: right 0.28s; }
.rg-stage.has-panel .rg-map .maplibregl-ctrl-top-right { right: 428px; }
.rg-map .maplibregl-ctrl-group { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; background: rgba(14, 23, 54, 0.8); box-shadow: 0 10px 24px rgba(4, 8, 24, 0.3); }
.rg-map .maplibregl-ctrl-group button { width: 38px; height: 38px; }
.rg-map .maplibregl-ctrl-group button + button { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.rg-map .maplibregl-ctrl-group button:hover { background-color: rgba(255, 255, 255, 0.08); }
.rg-map .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(1); }
.rg-stage .rg-map .maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgba(14, 23, 54, 0.72); color: rgba(255, 255, 255, 0.62); }
.rg-stage .rg-map .maplibregl-ctrl-attrib a { color: rgba(255, 255, 255, 0.78); }
.rg-stage .rg-map .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }

/* Panoul regiunii alese */
.rg-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  width: 400px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(4, 8, 24, 0.45);
  animation: rg-in 0.28s ease-out;
}

@keyframes rg-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes rg-up { from { opacity: 0; transform: translateY(40px); } }

.rg-panel-inner { position: relative; padding: 24px 24px 22px; }

.rg-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: var(--input);
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.15s;
}

.rg-close:hover { background: var(--line); }
.rg-close .icon { width: 18px; height: 18px; }
.rg-close--dark { background: rgba(255, 255, 255, 0.1); color: #fff; }
.rg-close--dark:hover { background: rgba(255, 255, 255, 0.2); }

.rg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rg-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rg-chip--locked { background: #EEF1F8; color: #55618A; }
.rg-chip--voting { background: #EEEBFF; color: #5B4BE0; }
.rg-chip--funding { background: #FFF3DC; color: #9A5B00; }
.rg-chip--funded { background: #E1F5FF; color: #0B6E9E; }
.rg-chip--building { background: #E2EBFF; color: var(--blue-dark); }
.rg-chip--unlocked { background: var(--ok-bg); color: var(--ok); }

.rg-name { margin: 12px 0 4px; padding-right: 40px; font-size: 26px; font-weight: 900; line-height: 1.15; text-wrap: balance; }
.rg-sub { margin: 0; font-size: 14px; color: var(--muted); }

.rg-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 22px; color: var(--muted); font-size: 16px; font-weight: 700; }
.rg-amount strong { color: var(--navy); font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }

.rg-bar { position: relative; height: 14px; margin: 12px 0 10px; overflow: hidden; border-radius: 999px; background: #EEF1F8; }
.rg-bar-fill { position: absolute; top: 0; bottom: 0; left: 0; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, #FFC56B, #FF8A3D); }
.rg-bar-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: translateX(-100%); animation: rg-shine 2.6s ease-in-out infinite; }
@keyframes rg-shine { 60%, 100% { transform: translateX(100%); } }
.rg-bar-add { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #FFD08A 0 6px, #FFE4BA 6px 12px); }
.rg-bar--blue .rg-bar-fill { background: linear-gradient(90deg, #6FD0FF, #3A78F2); }
.rg-bar--green .rg-bar-fill { background: linear-gradient(90deg, #5BE07F, #22A94A); }

.rg-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 700; color: var(--label); }
.rg-meta b { color: var(--navy); font-weight: 900; }
.rg-meta--top { margin-top: 16px; }

.rg-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 18px; }
.rg-actions .btn { margin-bottom: 5px; }
.rg-actions .rg-back { grid-column: 1 / -1; }
.rg-vote { font-size: 16px; }
.rg-vote .icon { width: 19px; height: 19px; }
.rg-vote.is-on { color: #E0475B; }
.rg-vote.is-on .icon { fill: #E0475B; }
.rg-icon-btn { width: 52px; padding: 0; }
.rg-icon-btn .icon { width: 20px; height: 20px; }

.rg-votes { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 16px; font-weight: 700; }
.rg-votes strong { color: var(--navy); font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }

.rg-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 14px; align-items: start; margin-top: 18px; padding: 16px 18px; border-radius: 18px; }
.rg-box-icon { display: grid; place-items: center; grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; color: #fff; }
.rg-box-icon .icon { width: 20px; height: 20px; }
.rg-box h3 { margin: 0; padding-top: 1px; font-size: 17px; font-weight: 900; }
.rg-box p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--label); }
.rg-box > .rg-stages { grid-column: 1 / -1; }
.rg-box--voting { background: #F3F1FF; }
.rg-box--voting .rg-box-icon { background: linear-gradient(145deg, #A396FF, #6A57F0); }
.rg-box--funded { background: #E9F8FF; }
.rg-box--funded .rg-box-icon { background: linear-gradient(145deg, #7BD6FF, #2D9BE0); }
.rg-box--building { background: #EDF2FF; }
.rg-box--building .rg-box-icon { background: linear-gradient(145deg, #6FA0FF, #2456C4); }
.rg-box--unlocked { background: var(--ok-bg); }
.rg-box--unlocked .rg-box-icon { background: linear-gradient(145deg, #5BE07F, #1A9440); }

.rg-stages { display: grid; gap: 9px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(36, 86, 196, 0.12); list-style: none; }
.rg-stage-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--ink); }
.rg-stage-row small { margin-left: auto; font-size: 11px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); }
.rg-stage-dot { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border: 2px solid var(--card-edge); border-radius: 50%; background: #fff; }
.rg-stage-dot .icon { width: 13px; height: 13px; stroke-width: 3; }
.rg-stage-row--done .rg-stage-dot { border-color: var(--blue); background: var(--blue); color: #fff; }
.rg-stage-row--done small { color: var(--blue); }
.rg-stage-row--doing .rg-stage-dot { border-color: var(--blue); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--blue); animation: rg-pulse 1.6s ease-in-out infinite; }
.rg-stage-row--doing small { color: var(--blue-dark); }
@keyframes rg-pulse { 50% { box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px #8FB4FF; } }

.rg-section-title { margin: 26px 0 12px; font-size: 12px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.rg-section-title--first { margin-top: 0; }

.rg-perks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rg-perk { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 1px 12px; align-items: center; }
.rg-perk-icon { display: grid; place-items: center; grid-row: span 2; width: 36px; height: 36px; border-radius: 11px; background: #FFF3DC; color: #B26A00; }
.rg-perk-icon .icon { width: 18px; height: 18px; }
.rg-perk strong { font-size: 14.5px; font-weight: 900; }
.rg-perk span { font-size: 13px; line-height: 1.4; color: var(--muted); }

.rg-people { display: flex; flex-wrap: wrap; gap: 7px; }
.rg-person { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 999px; background: var(--input); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.rg-person:hover { background: var(--line); }
.rg-person .avatar { width: 24px; height: 24px; border-width: 0; border-radius: 50%; font-size: 12px; }

.rg-foot { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.rg-mini { display: grid; flex-shrink: 0; gap: 2px; }
.rg-mini i { width: 6px; height: 6px; border-radius: 1.5px; background: var(--card-edge); }

/* Fereastra "Sustine regiunea" */
.rg-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(4, 8, 24, 0.5);
  color: var(--navy);
}

.rg-dialog[open] { animation: rg-pop 0.25s ease-out; }
.rg-dialog::backdrop { background: rgba(8, 13, 36, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes rg-pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

.rg-dlg-head { position: relative; padding: 26px 28px 20px; background: radial-gradient(640px 260px at 15% -40%, #2B3E8F, #141F4D 70%); color: #fff; }
.rg-dlg-head .eyebrow { margin-bottom: 6px; color: var(--yellow); }
.rg-dlg-head h2 { margin: 0; padding-right: 44px; font-size: 24px; font-weight: 900; line-height: 1.2; }
.rg-dlg-head > p { margin: 4px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.rg-dlg-progress { margin-top: 18px; }
.rg-dlg-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, 0.72); }
.rg-dlg-amount strong { color: #fff; font-size: 20px; font-weight: 900; }
.rg-dlg-amount span { margin-left: auto; color: #FFD08A; }
.rg-dlg-head .rg-bar { margin: 10px 0 0; background: rgba(255, 255, 255, 0.12); }

.rg-dlg-body { padding: 22px 28px 24px; }
.rg-packs { display: grid; gap: 8px; }

.rg-pack {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.rg-pack:hover { border-color: var(--card-edge); }
.rg-pack.is-on { border-color: var(--green); background: #F2FCF4; box-shadow: 0 0 0 3px rgba(51, 198, 89, 0.15); }
.rg-pack img { width: 34px; height: 34px; }
.rg-pack strong { display: block; font-size: 16.5px; font-weight: 900; }
.rg-pack small { display: block; margin-top: 1px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rg-pack-price { font-size: 17px; font-weight: 900; }

.rg-sum { display: grid; gap: 8px; margin: 16px 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--input); list-style: none; font-size: 14px; font-weight: 700; color: var(--ink); }
.rg-sum li { display: flex; align-items: center; gap: 10px; }
.rg-sum .icon { width: 18px; height: 18px; color: var(--green); stroke-width: 3; }

.rg-dlg-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.rg-demo { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 6px; background: #FFF3DC; color: #9A5B00; font-size: 11px; font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }

.rg-thanks { padding: 40px 28px 30px; text-align: center; }
.rg-thanks-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border: 4px solid #fff; border-radius: 50%; background: linear-gradient(145deg, #5BE07F, #1A9440); box-shadow: 0 12px 30px rgba(26, 148, 64, 0.35); color: #fff; animation: rg-pop 0.35s ease-out; }
.rg-thanks-icon .icon { width: 40px; height: 40px; stroke-width: 3; }
.rg-thanks h2 { margin: 18px 0 6px; font-size: 28px; font-weight: 900; }
.rg-thanks p { max-width: 380px; margin: 0 auto; font-size: 16px; line-height: 1.5; color: var(--label); }
.rg-thanks .rg-thanks-coins { display: flex; width: fit-content; align-items: center; gap: 8px; margin: 16px auto 22px; padding: 8px 16px 8px 8px; border-radius: 999px; background: #FFF6DA; color: #7A4B00; font-size: 17px; font-weight: 900; }
.rg-thanks-coins img { width: 30px; height: 30px; }

/* Coada de lucru si listele de sub harta */
.rg-queue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.rg-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); }
.rg-col h3 i { width: 9px; height: 9px; border-radius: 50%; }
.rg-col-empty { margin: 0; padding: 18px; border: 1px dashed var(--card-edge); border-radius: 18px; color: var(--muted); font-size: 14px; text-align: center; list-style: none; }

.rg-item {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.rg-item:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(30, 42, 90, 0.12); }
.rg-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rg-item strong { font-size: 16px; font-weight: 900; line-height: 1.3; }
.rg-item-sub { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.rg-item .rg-bar { height: 8px; margin: 12px 0 0; }

.rg-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.rg-list-title { margin: 0 0 14px; font-size: 24px; font-weight: 900; }
.rg-rank { margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); list-style: none; }
.rg-rank li + li { border-top: 1px solid var(--line-soft); }
.rg-rank .rg-col-empty { margin: 12px; }

.rg-rank button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rg-rank button:hover { background: var(--bg); }
.rg-rank-n { font-size: 15px; font-weight: 900; color: var(--faint); }
.rg-rank-name strong { display: block; font-size: 15px; font-weight: 900; }
.rg-rank-name small { display: block; font-size: 12.5px; color: var(--muted); }
.rg-rank-val { display: grid; justify-items: end; gap: 4px; min-width: 96px; font-size: 13px; color: var(--muted); }
.rg-rank-val b { color: var(--navy); font-size: 16px; font-weight: 900; }
.rg-rank-val .rg-bar { width: 96px; height: 6px; margin: 0; }

@media (max-width: 1100px) {
  .rg-queue { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .rg-stage { height: 84vh; min-height: 560px; }
  .rg-hero { top: 12px; left: 12px; right: 12px; width: auto; padding: 14px 16px 12px; border-radius: 18px; }
  .rg-lead { display: none; }
  .rg-title { font-size: 20px; }
  .rg-stats { gap: 6px; margin-top: 10px; }
  .rg-stat { padding: 7px 4px; border-radius: 11px; }
  .rg-stat strong { font-size: 16px; }
  .rg-stat span { font-size: 9.5px; }
  .rg-jumps { flex-wrap: nowrap; margin: 10px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
  .rg-jumps::-webkit-scrollbar { display: none; }
  .rg-legend { display: none; }
  .rg-hint { bottom: 16px; font-size: 13px; white-space: nowrap; }
  .rg-stage.has-panel .rg-hero { display: none; }
  .rg-stage.has-panel .rg-map .maplibregl-ctrl-top-right { right: 8px; }
  .rg-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 72%; border-radius: 24px 24px 0 0; animation-name: rg-up; }
  .rg-panel-inner { padding: 22px 18px 20px; }
  .rg-name { font-size: 23px; }
  .rg-lists { grid-template-columns: 1fr; }
  .rg-dlg-head, .rg-dlg-body { padding-left: 18px; padding-right: 18px; }
}
