/* Ultimate Aion — Ultimate Aion dark theme */

:root {
  --bg: #02030a;
  --fg: #e6edf7;
  --accent: #4fc3ff;
  --purple: #a78bff;
  --surface: #070914;
  --muted: #8a92b5;
  --border: rgba(79, 195, 255, 0.14);
  --border-strong: rgba(167, 139, 255, 0.28);
  --danger: #ff6b8a;
  --success: #4dffb5;
  --elyos: #5eb8ff;
  --asmo: #c77dff;
  --glass: rgba(7, 9, 20, 0.72);
  --radius: 12px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --max: 1180px;
  --font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Cinzel", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  font-family: var(--font-body);
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(79, 195, 255, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(167, 139, 255, 0.14), transparent 50%),
    linear-gradient(180deg, #050714 0%, var(--bg) 40%, #03040c 100%);
  line-height: 1.55;
}

.site-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.site-header {
  z-index: 100;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #7ad6ff;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: 0.65rem 1rem;
  width: min(100% - 2rem, var(--max));
}

.header-brand-block {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 0;
}

.site-nav {
  grid-area: nav;
  min-width: 0;
  justify-self: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(0.35rem, 0.9vw, 0.85rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--muted);
  font-size: clamp(0.74rem, 0.95vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--fg);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(79, 195, 255, 0.25));
}

.brand span {
  background: linear-gradient(90deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-online {
  display: none;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.header-online-race,
.header-online-total {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.header-online-total {
  padding-left: 0.85rem;
  border-left: 1px solid var(--border);
}

.header-online-num {
  color: #fff;
}

.header-race-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  mix-blend-mode: screen;
}

.header-race-icon--elyos {
  filter: drop-shadow(0 0 6px rgba(79, 195, 255, 0.75));
}

.header-race-icon--asmo {
  filter: drop-shadow(0 0 6px rgba(255, 170, 70, 0.7));
}

@media (min-width: 1080px) {
  .header-online {
    display: inline-flex;
  }
}

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  min-width: 0;
}

html[lang="fr"] .nav a {
  font-size: clamp(0.72rem, 0.88vw, 0.82rem);
}

html[lang="fr"] .header-actions .btn,
html[lang="fr"] .header-actions .btn-primary,
html[lang="fr"] .header-actions .btn-ghost {
  padding: 0.58rem 0.8rem;
  font-size: 0.72rem;
}

html[lang="fr"] .status-pill {
  font-size: 0.68rem;
  padding: 0.35rem 0.55rem;
}

.nav a:hover,
.nav a.is-active {
  color: var(--fg);
}

.nav-toggle {
  grid-area: nav;
  justify-self: end;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  cursor: pointer;
  color: var(--fg);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}

/* Buttons */
.btn,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #031018;
  background: linear-gradient(135deg, var(--accent), #7ad6ff 45%, var(--purple));
  box-shadow: 0 8px 28px rgba(79, 195, 255, 0.25);
}

.btn-primary:hover {
  color: #031018;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(167, 139, 255, 0.3);
}

.btn-ghost {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: rgba(79, 195, 255, 0.08);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #ff4d6d, #c73e7a);
}

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.text-gradient {
  background: linear-gradient(100deg, var(--fg) 10%, var(--accent) 45%, var(--purple) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 10% -20% auto auto;
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 195, 255, 0.18), transparent 65%);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto 5% -10%;
  width: min(50vw, 480px);
  height: min(50vw, 480px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 255, 0.16), transparent 65%);
  pointer-events: none;
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero .display {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.hero-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-rates strong {
  color: var(--fg);
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* Panels & cards */
.panel,
.card {
  background: linear-gradient(160deg, rgba(12, 16, 32, 0.95), rgba(7, 9, 20, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.panel-accent {
  border-color: var(--border-strong);
  background:
    linear-gradient(135deg, rgba(79, 195, 255, 0.08), transparent 40%),
    linear-gradient(160deg, rgba(12, 16, 32, 0.95), rgba(7, 9, 20, 0.92));
}

.card h3,
.panel h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.card p,
.panel p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.15rem;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  margin: 0.2rem 0;
}

.stat-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(7, 9, 20, 0.65);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: rgba(79, 195, 255, 0.03);
}

/* Forms */
.form-input,
.form-select,
textarea.form-input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(2, 3, 10, 0.65);
  color: var(--fg);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
textarea.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 195, 255, 0.15);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-panel {
  max-width: 440px;
  margin: 3rem auto;
}

/* ========== Auth pages (Ultimate Aion style) ========== */
.auth-body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.auth-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(79, 195, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 45% 35% at 85% 75%, rgba(167, 139, 255, 0.18), transparent 55%),
    linear-gradient(180deg, #050714 0%, #02030a 100%);
}

.auth-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.25rem 0;
}

.auth-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem 3rem;
}

.auth-main .flash {
  width: min(100%, 420px);
  margin-bottom: 1rem;
}

.auth-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(100%, 420px);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: 4px;
  border: 1px solid rgba(130, 170, 255, 0.28);
  background: rgba(8, 11, 24, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(167, 139, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.45);
}

.auth-card-wide {
  width: min(100%, 460px);
}

.auth-brand {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.auth-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #f2f5ff;
}

.auth-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-form .form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(150, 175, 210, 0.9);
}

.auth-form .form-input {
  border-radius: 2px;
  background: rgba(2, 4, 12, 0.75);
  border-color: rgba(79, 195, 255, 0.16);
  padding: 0.85rem 0.95rem;
}

.form-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.95rem 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.auth-footer {
  margin: 1.35rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========== Account dashboard ========== */
.dash-hero {
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.dash-welcome {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 0.65rem;
}

.dash-lead {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.dash-stat {
  text-align: left;
  padding: 1.1rem 1.15rem;
}

.dash-stat-label {
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-stat-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #fff;
  word-break: break-word;
}

.dash-stat-small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0;
}

.dash-stat-sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr;
  gap: 1.25rem;
  align-items: start;
}

.dash-char-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.dash-char {
  text-align: left;
  border-radius: 4px;
}

.dash-char-elyos {
  border-color: rgba(94, 184, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(79, 195, 255, 0.08), transparent 50%),
    rgba(7, 9, 20, 0.8);
}

.dash-char-asmo {
  border-color: rgba(167, 139, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(167, 139, 255, 0.1), transparent 50%),
    rgba(7, 9, 20, 0.8);
}

.dash-char-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.dash-char-top h3 {
  margin: 0;
  font-size: 1.15rem;
}

.dash-char-meta {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.dash-char-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.dash-char-stats dt {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-char-stats dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  color: #fff;
}

.dash-char-last {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
}

.dash-empty {
  text-align: left;
}

.dash-actions h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.dash-action-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dash-action-list .btn-primary,
.dash-action-list .btn-ghost {
  width: 100%;
  text-align: center;
}

.dash-logout {
  margin-top: 0.35rem;
  border-color: rgba(255, 107, 138, 0.35) !important;
  color: #ff8aa3 !important;
}

@media (max-width: 980px) {
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-char-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .dash-stats { grid-template-columns: 1fr; }
  .auth-card { padding: 1.5rem 1.15rem 1.35rem; }
}

/* Lang switch — current only, menu on hover */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 20;
}

.lang-switch-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--fg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  cursor: default;
  user-select: none;
}

.lang-switch-current::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid var(--muted);
  opacity: 0.85;
}

.lang-switch-menu {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  flex-direction: column;
  min-width: 100%;
  padding: 0.35rem 0.3rem 0.3rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 12, 24, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.lang-switch:hover .lang-switch-menu,
.lang-switch:focus-within .lang-switch-menu {
  display: flex;
}

.lang-switch-menu a {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  white-space: nowrap;
}

.lang-switch-menu a.is-active,
.lang-switch-menu a:hover {
  color: var(--fg);
  background: rgba(79, 195, 255, 0.15);
}

/* Status / factions */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.online {
  color: var(--success);
  background: rgba(77, 255, 181, 0.08);
  border-color: rgba(77, 255, 181, 0.25);
}

.status-pill.offline {
  color: var(--danger);
  background: rgba(255, 107, 138, 0.08);
  border-color: rgba(255, 107, 138, 0.25);
}

.faction-elyos {
  color: var(--elyos);
}

.faction-asmo,
.faction-asmodians {
  color: var(--asmo);
}

/* Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tabs a {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
}

.tabs a.is-active,
.tabs a:hover {
  color: var(--fg);
  border-color: var(--accent);
  background: rgba(79, 195, 255, 0.1);
}

/* Flash */
.flash {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  border: 1px solid transparent;
}

.flash-success {
  background: rgba(77, 255, 181, 0.1);
  border-color: rgba(77, 255, 181, 0.28);
  color: #b8ffe0;
}

.flash-error {
  background: rgba(255, 107, 138, 0.1);
  border-color: rgba(255, 107, 138, 0.28);
  color: #ffc2cf;
}

.flash-info {
  background: rgba(79, 195, 255, 0.1);
  border-color: rgba(79, 195, 255, 0.28);
  color: #c7ecff;
}

/* Countdown */
.countdown {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 700;
}

/* Code / commands */
.code-block,
pre.code-block {
  background: #010208;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.86rem;
  color: #c9e9ff;
}

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  color: var(--accent);
  background: rgba(79, 195, 255, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Page hero (inner) */
.page-hero {
  padding: 2.75rem 0 1.5rem;
}

.page-hero .display {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* Events schedule */
.container-wide {
  max-width: 1280px;
}

.events-card {
  border-left: 3px solid var(--cat, var(--accent));
  background: linear-gradient(180deg, rgba(18, 22, 40, 0.95), rgba(8, 10, 20, 0.92));
}

.events-card.is-live {
  box-shadow: 0 0 0 1px rgba(79, 195, 255, 0.35), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.events-card h3 {
  font-size: 1.15rem;
  margin: 0.15rem 0 0.35rem;
  color: #f4f7ff;
}

.events-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.events-loc {
  color: #9eb0c8;
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}

.events-desc {
  color: #c5d0e0;
  font-size: 0.92rem;
  line-height: 1.45;
  margin: 0;
}

.events-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9eb0c8;
  font-size: 0.88rem;
}

.events-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9d4e4;
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
}

.events-badge.type-pvp {
  color: #ffd0d8;
  border-color: rgba(255, 110, 140, 0.45);
  background: rgba(255, 70, 110, 0.18);
}

.events-badge.type-pve {
  color: #b8ffd4;
  border-color: rgba(70, 210, 140, 0.4);
  background: rgba(40, 180, 110, 0.16);
}

.events-badge.special {
  color: #ffe2a8;
  border-color: rgba(255, 190, 80, 0.5);
  background: rgba(255, 170, 40, 0.18);
}

.events-badge.cat-pill {
  color: #fff;
  border-color: color-mix(in srgb, var(--cat, #888) 55%, transparent);
  background: color-mix(in srgb, var(--cat, #888) 28%, transparent);
}

.cat-siege { --cat: #4fc3ff; }
.cat-invasion { --cat: #ff5f7e; }
.cat-vortex { --cat: #b08cff; }
.cat-boss { --cat: #ffb347; }
.cat-battlefield { --cat: #3dd68c; }
.cat-arena { --cat: #ff8a65; }
.cat-rift { --cat: #5ec8ff; }
.cat-system { --cat: #8b95a8; }

.events-board {
  background: linear-gradient(180deg, rgba(12, 16, 30, 0.95), rgba(6, 8, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1rem 1.25rem;
}

.events-day-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.events-day-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #c5d0e0;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.events-day-tab:hover {
  border-color: rgba(79, 195, 255, 0.35);
  background: rgba(79, 195, 255, 0.06);
}

.events-day-tab.is-active {
  border-color: rgba(79, 195, 255, 0.55);
  background: rgba(79, 195, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 -2px 0 #4fc3ff;
}

.events-day-tab-name {
  font-family: Cinzel, serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: inherit;
}

.events-day-tab-count {
  font-size: 0.75rem;
  color: #8fa0b8;
}

.events-day-tab.is-active .events-day-tab-count {
  color: #9fd8ff;
}

.events-today-pill {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9fe0ff;
  background: rgba(79, 195, 255, 0.18);
  border: 1px solid rgba(79, 195, 255, 0.35);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

.events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.events-filter {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #b8c6d8;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.events-filter:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.events-filter.is-active {
  color: #061018;
  background: #e8f4ff;
  border-color: #e8f4ff;
}

.events-filter.cat-siege.is-active { background: #4fc3ff; border-color: #4fc3ff; }
.events-filter.cat-invasion.is-active { background: #ff5f7e; border-color: #ff5f7e; }
.events-filter.cat-vortex.is-active { background: #b08cff; border-color: #b08cff; }
.events-filter.cat-boss.is-active { background: #ffb347; border-color: #ffb347; }
.events-filter.cat-battlefield.is-active { background: #3dd68c; border-color: #3dd68c; }
.events-filter.cat-arena.is-active { background: #ff8a65; border-color: #ff8a65; }
.events-filter.cat-rift.is-active { background: #5ec8ff; border-color: #5ec8ff; }
.events-filter.cat-system.is-active { background: #8b95a8; border-color: #8b95a8; }

.events-day-panel {
  display: none;
}

.events-day-panel.is-active {
  display: block;
}

.events-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.events-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--cat, #4fc3ff);
  background: rgba(255, 255, 255, 0.03);
}

.events-row.is-major {
  background: linear-gradient(90deg, color-mix(in srgb, var(--cat, #4fc3ff) 14%, transparent), rgba(255, 255, 255, 0.03));
  border-color: color-mix(in srgb, var(--cat, #4fc3ff) 35%, rgba(255, 255, 255, 0.08));
}

.events-row.is-minor {
  opacity: 0.78;
}

.events-row.is-minor .events-row-titleline strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.events-row.is-live {
  box-shadow: 0 0 0 1px rgba(61, 214, 140, 0.35), 0 8px 28px rgba(0, 0, 0, 0.25);
  background: linear-gradient(90deg, rgba(61, 214, 140, 0.12), rgba(255, 255, 255, 0.04));
}

.events-row.is-hidden {
  display: none;
}

.events-row-time {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.events-row-time time {
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.events-row-dur {
  font-size: 0.72rem;
  color: #8fa0b8;
}

.events-row-titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}

.events-row-titleline strong {
  font-size: 1.08rem;
  font-weight: 700;
  color: #f5f8ff;
  line-height: 1.25;
}

.events-row-sub {
  color: #9eb0c8;
  font-size: 0.9rem;
  line-height: 1.4;
}

.events-row-sep {
  margin: 0 0.25rem;
  opacity: 0.6;
}

.events-row-type {
  padding-top: 0.15rem;
}

.events-empty,
.events-filter-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #9eb0c8;
}

.events-monthly-wrap {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.events-monthly-table {
  width: 100%;
}

.events-monthly-table th {
  background: rgba(255, 255, 255, 0.04);
  color: #d7e2f0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.events-monthly-table td {
  color: #d0dae8;
  font-size: 0.95rem;
}

.events-monthly-table tr.is-special td {
  background: rgba(255, 170, 40, 0.1);
  color: #fff;
}

@media (max-width: 960px) {
  .events-day-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .events-row {
    grid-template-columns: 72px 1fr;
  }

  .events-row-type {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .events-day-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-board {
    padding: 0.75rem;
  }

  .events-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .events-row-time {
    flex-direction: row;
    align-items: baseline;
    gap: 0.6rem;
  }
}

/* Footer */
.footer {
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  font-family: var(--font-display);
  color: var(--fg);
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li + li {
  margin-top: 0.4rem;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

/* Admin */
.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin-side {
  background: #05070f;
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
}

.admin-side a {
  display: block;
  color: var(--muted);
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}

.admin-side a:hover,
.admin-side a.is-active {
  color: var(--fg);
  background: rgba(79, 195, 255, 0.1);
}

.admin-main {
  padding: 1.5rem;
}

.admin-side-meta {
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
  padding: 0 0.75rem;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-stat-num {
  display: block;
  font-size: 1.65rem;
  margin-top: 0.35rem;
  font-family: Cinzel, serif;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.admin-filters .form-group {
  margin: 0;
  min-width: 180px;
}

.admin-form {
  max-width: 920px;
}

.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.admin-row-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.admin-row-actions form {
  display: inline;
  margin: 0;
}

.admin-btn-danger {
  color: #ff8a8a !important;
}

.admin-dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.45rem 1rem;
  margin: 0;
}

.admin-dl dt {
  color: var(--muted);
}

.admin-dl dd {
  margin: 0;
}

.admin-stats .card {
  min-height: 96px;
}

/* Utilities */
.muted { color: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.stack > * + * { margin-top: 0.85rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  html[lang="fr"] .header-online {
    display: none;
  }

  html[lang="fr"] .nav-toggle {
    display: inline-flex;
  }

  html[lang="fr"] .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 90;
    justify-self: stretch;
    width: 100%;
    left: 0;
    right: 0;
    pointer-events: none;
  }

  html[lang="fr"] .nav {
    position: static;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(2, 3, 10, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    pointer-events: auto;
  }

  html[lang="fr"] .nav.is-open {
    display: flex;
  }

  html[lang="fr"] .nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
  }
}

@media (max-width: 1100px) {
  html[lang="fr"] .header-online {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-header .container {
    grid-template-areas: "brand nav actions";
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 90;
    justify-self: stretch;
    width: 100%;
    left: 0;
    right: 0;
    pointer-events: none;
  }

  .nav {
    position: static;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(2, 3, 10, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    pointer-events: auto;
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  .header-actions .btn-ghost.desktop-only,
  .header-actions .lang-switch.desktop-only {
    display: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }
}

/* Features page — full guide layout */
.feature-toc { margin-bottom: 2rem; }
.feature-toc-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.feature-toc-cat-label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.feature-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.feature-toc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: rgba(2, 4, 12, 0.45);
  color: var(--fg);
  text-decoration: none;
  font-size: 0.88rem;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.feature-toc-list a:hover {
  border-color: rgba(79, 195, 255, 0.45);
  background: rgba(79, 195, 255, 0.08);
  color: #fff;
}
.feature-toc-list a code {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--accent);
  opacity: 0.85;
}
.feature-list { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-block { scroll-margin-top: calc(var(--header-h, 4.5rem) + 1rem); }
.feature-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.cmd-pill {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 0.35rem;
  background: rgba(79, 195, 255, 0.12);
  border: 1px solid rgba(79, 195, 255, 0.35);
  color: var(--accent);
  font-size: 0.85rem;
  white-space: nowrap;
}
.feature-bullets {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--fg);
}
.feature-bullets li { margin: 0.35rem 0; }
.feature-details {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  line-height: 1.55;
}
.feature-details li { margin: 0.3rem 0; }
.section-title {
  font-family: Cinzel, serif;
  letter-spacing: 0.04em;
  margin: 2rem 0 1rem;
  color: var(--accent-mix, #8aa4ff);
}
.muted { color: var(--muted); }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.5rem; }

/* ========== Landing (Ultimate Aion) ========== */
.scrollspy {
  position: fixed;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}

.scrollspy a {
  pointer-events: auto;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-left: 0.9rem;
  position: relative;
  transition: color 0.2s ease;
}

.scrollspy a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.45rem;
  height: 1px;
  background: rgba(138, 146, 181, 0.55);
  transform: translateY(-50%);
  transition: width 0.2s ease, background 0.2s ease;
}

.scrollspy a:hover,
.scrollspy a.is-active {
  color: var(--fg);
}

.scrollspy a.is-active::before {
  width: 0.7rem;
  background: var(--accent);
}

.landing-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 0 5rem;
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 34% at 50% 34%, rgba(120, 200, 255, 0.34), transparent 62%),
    radial-gradient(ellipse 28% 22% at 50% 40%, rgba(167, 139, 255, 0.16), transparent 68%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(79, 195, 255, 0.06), transparent 70%);
  pointer-events: none;
  animation: pulse-glow 9s ease-in-out infinite;
  transform-origin: 50% 36%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 195, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 195, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.7;
}

.hero-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
  color: rgba(220, 230, 245, 0.88);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-live-lined {
  position: relative;
  padding: 0 3.5rem;
  border: 0;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
}

.hero-live-lined::before,
.hero-live-lined::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 2.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 210, 255, 0.55));
}

.hero-live-lined::before {
  left: 0;
  background: linear-gradient(90deg, transparent, rgba(180, 210, 255, 0.55));
}

.hero-live-lined::after {
  right: 0;
  background: linear-gradient(90deg, rgba(180, 210, 255, 0.55), transparent);
}

.hero-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5a6478;
  box-shadow: 0 0 0 3px rgba(90, 100, 120, 0.25);
}

.hero-live-dot.is-on {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(77, 255, 181, 0.2), 0 0 12px rgba(77, 255, 181, 0.55);
  animation: pulse-glow 2.4s ease-in-out infinite;
}

.hero-logo-wrap {
  position: relative;
  display: block;
  width: fit-content;
  max-width: min(100%, 560px);
  margin: 0 auto 1.35rem;
  line-height: 0;
  isolation: isolate;
}

.hero-logo-halo {
  position: absolute;
  left: 50%;
  top: 52%;
  right: auto;
  z-index: -1;
  width: 70%;
  height: 52%;
  margin: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(200, 240, 255, 0.85) 0%,
    rgba(100, 190, 255, 0.5) 26%,
    rgba(120, 140, 255, 0.18) 52%,
    transparent 72%
  );
  filter: blur(14px);
  pointer-events: none;
  animation: logo-halo-breathe 5.5s ease-in-out infinite;
}

.hero-logo-halo-soft {
  width: 105%;
  height: 95%;
  top: 50%;
  left: 50%;
  background: radial-gradient(
    circle at center,
    rgba(160, 210, 255, 0.32) 0%,
    rgba(100, 150, 255, 0.12) 42%,
    transparent 68%
  );
  filter: blur(34px);
  animation-duration: 7.5s;
  animation-delay: -2s;
}

.hero-logo-img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0;
  filter:
    drop-shadow(0 0 14px rgba(140, 210, 255, 0.35))
    drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5));
}

@keyframes logo-halo-breathe {
  0%, 100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-halo,
  .hero-atmosphere,
  .hero-live-dot.is-on {
    animation: none !important;
  }

  .site-stars,
  .hero-stars {
    display: none;
  }
}

.hero-legend {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  letter-spacing: 0.08em;
  color: #f4f7ff;
  text-transform: none;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  max-width: 40rem;
  margin-inline: auto;
}

.hero-lead {
  margin: 0 auto 1.85rem;
  max-width: 40rem;
  color: rgba(180, 195, 220, 0.92);
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-rates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.hero-rates span {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: rgba(7, 9, 20, 0.55);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.hero-rates strong {
  color: var(--fg);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0;
}

.auth-brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(79, 195, 255, 0.3));
}

.btn-cut {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  border-radius: 0 !important;
}

.btn-primary.btn-cut {
  box-shadow: 0 0 0 1px rgba(79, 195, 255, 0.45), 0 0 28px rgba(79, 195, 255, 0.28);
}

.btn-ghost.btn-cut {
  box-shadow: 0 0 0 1px rgba(167, 139, 255, 0.35);
}

.hero-online-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-online-strip .sep { opacity: 0.4; }
.hero-online-strip strong { color: var(--fg); }
.faction-elyos { color: var(--elyos) !important; }
.faction-asmo { color: var(--asmo) !important; }

.landing-section {
  position: relative;
  padding: 5.5rem 0;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.landing-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(60%, 520px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(79, 195, 255, 0.35), transparent);
}

.landing-section-center {
  text-align: center;
}

.landing-section-center .section-display {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow-lined {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.eyebrow-lined::before,
.eyebrow-lined::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: rgba(79, 195, 255, 0.45);
}

.section-display {
  font-size: clamp(1.85rem, 4vw, 3rem);
  margin: 0 0 0.85rem;
  line-height: 1.15;
}

.section-intro {
  max-width: 40rem;
  color: var(--muted);
  margin: 0 0 2.25rem;
}

.section-intro-center {
  margin-left: auto;
  margin-right: auto;
}

.panel {
  background: rgba(7, 9, 20, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.panel h3 {
  font-family: var(--font-display);
  margin: 0 0 0.55rem;
  letter-spacing: 0.04em;
}

.panel p {
  margin: 0;
  color: var(--muted);
}

.panel-accent {
  border-color: var(--border-strong);
  background:
    linear-gradient(160deg, rgba(79, 195, 255, 0.07), transparent 45%),
    rgba(7, 9, 20, 0.78);
}

.corner-frame {
  position: relative;
}

.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.55;
}

.corner-frame::before {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.corner-frame::after {
  right: 8px;
  bottom: 8px;
  border-width: 0 1px 1px 0;
}

/* Faction showcase — Ultimate Aion style */
.faction-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}

.faction-tile {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 4px;
  border: 1px solid rgba(79, 195, 255, 0.22);
  background: #05070f;
  cursor: pointer;
  isolation: isolate;
}

.faction-tile-asmo {
  border-color: rgba(167, 139, 255, 0.28);
}

.faction-tile-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.faction-tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(2, 3, 10, 0.92) 88%),
    radial-gradient(ellipse 80% 55% at 50% 30%, rgba(79, 195, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.faction-tile-asmo .faction-tile-media::after {
  background:
    linear-gradient(180deg, transparent 35%, rgba(2, 3, 10, 0.92) 88%),
    radial-gradient(ellipse 80% 55% at 50% 30%, rgba(167, 139, 255, 0.2), transparent 70%);
}

.faction-tile-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
  transition: transform 0.55s ease;
}

.faction-tile-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.4rem 1.35rem 1.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.faction-tile-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--elyos);
}

.faction-tile-asmo .faction-tile-kicker {
  color: var(--asmo);
}

.faction-tile-foot h3,
.faction-tile-reveal h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.faction-tile-hint {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(159, 210, 255, 0.85);
}

.faction-tile-asmo .faction-tile-hint {
  color: rgba(199, 170, 255, 0.85);
}

.faction-tile-hint::before {
  content: "• ";
}

.faction-tile-reveal {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(3, 8, 18, 0.55) 0%, rgba(3, 8, 18, 0.94) 55%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.faction-tile-reveal p {
  margin: 0.75rem 0 0;
  color: rgba(220, 228, 242, 0.88);
  font-size: 0.92rem;
  line-height: 1.55;
}

.faction-dl {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.4rem;
}

.faction-dl div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  align-items: baseline;
}

.faction-dl dt {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.faction-dl dd {
  margin: 0;
  color: #fff;
  font-size: 0.92rem;
}

.faction-tile:hover .faction-tile-art,
.faction-tile:focus-within .faction-tile-art {
  transform: scale(1.06);
}

.faction-tile:hover .faction-tile-foot,
.faction-tile:focus-within .faction-tile-foot {
  opacity: 0;
  transform: translateY(8px);
}

.faction-tile:hover .faction-tile-reveal,
.faction-tile:focus-within .faction-tile-reveal {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Classes board — Ultimate Aion style */
.class-board {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.15rem;
  align-items: stretch;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.class-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(79, 195, 255, 0.18);
  border-radius: 2px;
  background: rgba(4, 7, 16, 0.85);
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.class-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.class-tile-num {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.class-tile-line {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(120, 180, 230, 0.8);
}

.class-tile-name {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.class-tile-tag {
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.class-tile:hover {
  border-color: rgba(79, 195, 255, 0.45);
}

.class-tile.is-active {
  border-color: rgba(130, 170, 255, 0.75);
  box-shadow: 0 0 0 1px rgba(130, 170, 255, 0.25), 0 0 24px rgba(79, 195, 255, 0.12);
  background: linear-gradient(160deg, rgba(79, 195, 255, 0.1), rgba(167, 139, 255, 0.06));
}

.class-detail {
  position: relative;
  min-height: 100%;
  padding: 1.6rem 1.5rem 2.4rem;
  border-radius: 2px;
  overflow: hidden;
}

.class-panel {
  display: none;
  height: 100%;
}

.class-panel.is-active {
  display: flex;
  flex-direction: column;
  animation: fade-up 0.35s ease;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.class-detail-meta {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.class-detail-name {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin: 0 0 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.class-detail-tag {
  margin: 0 0 1.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(220, 228, 242, 0.85);
}

.class-detail-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 28rem;
}

.class-detail-index {
  margin-top: auto;
  padding-top: 2rem;
  align-self: flex-end;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.feature-link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 195, 255, 0.4);
  color: inherit;
}

.feature-link-card h3 { color: var(--fg); }
.feature-link-card p { color: var(--muted); }

.retail-grid {
  text-align: left;
}

.retail-card {
  text-align: center;
  padding: 1.6rem 1.35rem 1.5rem;
}

.retail-card h3 {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.retail-diamond {
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto 0.95rem;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(79, 195, 255, 0.35);
}

.retail-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

.landing-cta {
  padding: 5rem 0 6rem;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(79, 195, 255, 0.12), transparent 70%);
}

.landing-cta .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.landing-cta .hero-ctas {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .scrollspy { display: none; }
  .faction-showcase { grid-template-columns: 1fr; max-width: 420px; }
  .faction-tile { min-height: 460px; }
  .class-board { grid-template-columns: 1fr; }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .class-detail { min-height: 260px; }
}

@media (max-width: 640px) {
  .class-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { text-align: center; }
  .faction-dl div { grid-template-columns: 1fr; gap: 0.1rem; }
}
