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

:root {
  --bg: #060606;
  --text: #e8e8e8;
  --muted: #b6b6b6;
  --glass: rgba(0,0,0,0.45);
  --accent: #52e3ff;

  /* Fluid variables for hero */
  --hero-h: clamp(220px, 56svh, 65svh);
  --hero-pad-top: calc(var(--topbar-h, 52px) + 20px);
  --backdrop-h: clamp(0px, 12svh, 140px);
}

/* Base */
html, body { height: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== Top Bar (Glass + Texture, Responsive) ===== */
.topbar { position: sticky; top: 0; z-index: 50; }
.topbar.glass {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background:
    linear-gradient(rgba(20,20,28,0.5), rgba(20,20,28,0.5)),
    url("../assets/topbar_texture.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-block: 2px;
  --topbar-h: 52px;
}

.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px max(16px, env(safe-area-inset-right))
           10px max(16px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  position: relative; /* for dropdown positioning */
}

/* Brand */
.brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em;
  flex-shrink: 0; margin-left: 0 !important;
}
.brand .logo-mark { width: 48px; height: 48px; display: block; }

/* Primary nav */
.primary-nav { justify-self: center; display: flex; gap: 12px; align-items: center; min-width: 0; }

/* Global nav button */
.nav-btn {
  appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0, 102, 204, 0.20);
  color: #fff;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 4px;
  font: inherit; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .05s ease;
  cursor: pointer;
}
.nav-btn:hover, .nav-btn:focus { background: rgba(0,102,204,0.40); border-color: rgba(255,255,255,0.22); }
.nav-btn:active { transform: translateY(1px); }

/* Yellow Register variant */
.nav-btn-yellow { background:#facc15; color:#000; border:1px solid rgba(255,255,255,0.15); }
.nav-btn-yellow:hover, .nav-btn-yellow:focus { background:#fbbf24; }

/* Dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; padding: 8px 14px; line-height: 1; }
.nav-dropdown-toggle::after {
  content: ""; display: inline-block; margin-left: 6px; margin-bottom: 2px; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid currentColor;
  transition: transform .15s ease;
}
.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 180px; z-index: 100;
  background: rgba(20,20,28,0.95);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
  display: none; flex-direction: column; padding: 6px 0;
}
.nav-dropdown-menu-right { right: 0; left: auto; }
.nav-dropdown-menu a {
  padding: 8px 12px; color: #fff; text-decoration: none; display: block; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,0.08); }
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }

/* Non-clickable identity header inside account dropdown */
.nav-dropdown-menu .nav-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 10px;
  margin: 4px 6px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 600;
  background: transparent;
  cursor: default;
  pointer-events: none; /* ensure it never behaves like a button */
}

/* Small avatar dot with a subtle gradient */
.nav-dropdown-menu .nav-identity .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,0.35), transparent 55%),
    linear-gradient(135deg, #0ea5e9, #38bdf8);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset;
  flex: 0 0 auto;
}

/* Username + guardian badge */
.nav-dropdown-menu .nav-identity .who { display: inline-flex; align-items: center; gap: 6px; }
.nav-dropdown-menu .nav-identity .badge {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #006bff;
  border: 1px solid rgba(255,255,255,0.18);
}

/* Make sure hover styles don’t touch the identity row */
.nav-dropdown-menu .nav-identity:hover { background: transparent; }

/* Non-clickable identity row container */
.nav-dropdown-menu .nav-identity,
.mobile-menu .nav-identity {
  margin: 6px 8px 8px;
  padding: 0;
  pointer-events: none; /* never behaves like a link */
  cursor: default;
}

/* Keep hover effects off the label */
.nav-dropdown-menu .nav-identity:hover .identity-box,
.mobile-menu .nav-identity:hover .identity-box {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}

.topbar-account .nav-dropdown-toggle { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }



/* Right side cluster: Account | Langs | Hamburger */
.topbar-right { justify-self: end; display: flex; align-items: center; gap: 12px; }

/* Langswitcher */
.server-status { justify-self: end; display: flex; flex-direction: column; gap: 6px; }
.langswitcher { display: inline-flex; gap: 6px; }
.langswitcher a, .langswitcher span.active {
  display: inline-block; padding: 6px 10px; border-radius: 4px; text-decoration: none; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12); background: rgba(0, 102, 204, 0.20); color: #fff;
  transition: background .2s ease, border-color .2s ease, transform .05s ease;
}
.langswitcher a:hover, .langswitcher a:focus { background: rgba(0,102,204,0.40); border-color: rgba(255,255,255,0.22); }
.langswitcher .active { background: rgba(0,102,204,0.50); border-color: rgba(255,255,255,0.24); }

/* Mobile toggle */
.nav-toggle {
  display: none; appearance: none; border: 0; background: transparent; padding: 6px; cursor: pointer;
  width: 38px; height: 38px; border-radius: 8px; align-items: center; justify-content: center;
}
.nav-toggle:focus-visible { outline: 2px solid rgba(82,227,255,0.7); outline-offset: 2px; }
.nav-toggle-bar { display: block; width: 20px; height: 2px; background: #fff; margin: 3px 0; }

/* Mobile menu */
.mobile-menu {
  position: fixed; top: var(--topbar-h, 52px); left: 0; right: 0; z-index: 60;
  background: rgba(13, 13, 19, 0.945);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateY(-6px); opacity: 0; pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
}
/* allow transitions while using [hidden] */
.mobile-menu[hidden] { display: block; }
.mobile-menu[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu-inner { padding: 12px 16px 14px; display: grid; gap: 8px; }
.mobile-link {
  display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 600; color: #fff;
  background: rgba(0,102,204,.20); border: 1px solid rgba(255,255,255,.12);
}
.mobile-link:hover { background: rgba(0,102,204,.35); }
.mobile-langs { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }

/* Responsive switches */
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .server-status { display: none !important; }
  .topbar-right .topbar-account, .topbar-right .topbar-langs { display: none; }
}
@media (min-width: 901px){
  .topbar-langs { display: flex !important; }
}

/* ===== Hero / Parallax ===== */
.parallax { position: relative; width: 100%; height: var(--hero-h); overflow: hidden; isolation: isolate; }
.parallax-layer { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; z-index: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; }
.hero-overlay.fade-bottom {
  position: absolute; inset: auto 0 0 0; height: 160px; pointer-events: none;
  background: linear-gradient(to bottom, rgb(38 37 43 / 0%) 0%, rgb(6 7 10) 100%);
}

/* Foreground */
.hero-foreground { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: var(--hero-pad-top); }
.logo-row { display: flex; align-items: center; gap: 16px; }
.logo-row img { display: block; max-width: 100%; height: auto; pointer-events: none; }
.logo { width: min(50vw, 900px); filter: drop-shadow(0 8px 30px rgba(0,0,0,0.65)); }
.logo-secondary { width: min(22vw, 180px); filter: drop-shadow(0 8px 20px rgba(0,0,0,0.65)); }
.tagline { margin-top: 8px; font-size: clamp(18px, 2.5vw, 28px); font-weight: 100; color: #f1f5f9; text-shadow: 0 10px 20px rgba(0,0,0); }

/* Hero CTA */
.hero-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; border: 1px solid transparent; transition: transform .05s ease, background-color .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #0ea5e9; color: #001018; border-color: rgba(255,255,255,0.12); }
.btn-primary:hover { background: #38bdf8; }
.btn-outline { background: transparent; color: #e5e7eb; border-color: rgba(255,255,255,0.24); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-ghost { background: rgba(255,255,255,0.06); color: #e5e7eb; border-color: rgba(255,255,255,0.12); }
.btn-ghost:hover { background: rgba(255,255,255,0.10); }

/* ===== Transition to News ===== */
.news-backdrop {
  position: relative; height: var(--backdrop-h);
  background-image: var(--news-bg); background-size: cover; background-position: center;
  background-attachment: scroll; /* prevent mobile jank */
  margin-top: clamp(-80px, calc(var(--backdrop-h) * -0.6), -40px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 100%);
}
#news.container { margin-top: 0; }

/* ===== Section & Layout ===== */
main { background: #06070a; }
.container { max-width: 1600px; margin: 0 auto; padding: 40px 16px; }
.spacer { height: 64px; }
.card { background: var(--glass); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 16px; }
.card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card time { color: var(--muted); font-size: .9rem; }
.card p { margin-top: 6px; }

/* ===== News (Two-column) ===== */
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.news-main { position: relative; border-radius: 12px; overflow: hidden; }
.news-main-title { font-size: 1.4rem; margin-bottom: 4px; }
.news-date { color: var(--muted); font-size: .95rem; }
.news-main-body { margin-top: 12px; }
.news-empty { color: var(--muted); padding: 16px; }

.news-list { display: flex; flex-direction: column; gap: 8px; }
.news-item { display: block; padding: 12px 14px; border-radius: 12px; background: var(--glass); border: 1px solid rgba(255,255,255,0.08); text-decoration: none; color: inherit; position: relative; }
.news-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.news-item-title { font-size: .98rem; line-height: 1.25; }
.news-item-date { margin-top: 2px; font-size: .85rem; color: var(--muted); }
.news-item.is-active { outline: 2px solid rgba(82,227,255,0.7); outline-offset: 2px; }
.badge-new { position: absolute; top: 6px; right: 8px; background: #006bff; color: #fff; font-size: .72rem; font-weight: 600; padding: 2px 6px; border-radius: 8px; line-height: 1; }

/* Stack on narrow screens */
@media (max-width: 900px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-list { order: -1; }
}

/* Loading shimmer */
.news-main.is-loading { position: relative; }
.news-main.is-loading::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transform: translateX(-100%);
  animation: astrum-shimmer 1.2s infinite;
  pointer-events: none;
}
@keyframes astrum-shimmer { to { transform: translateX(250%); } }

/* ===== Article page ===== */
.article.container { max-width: 1200px; margin: 22px auto; padding: 0 16px; }
.article-banner { width: 100%; height: auto; border-radius: 14px; margin: 6px 0 16px; }
.article-card {
  background: rgba(5, 10, 15, 0.75);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,.85) inset;
  padding: 24px; overflow: hidden;
}
.article-head {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start;
  border-bottom: 1px solid rgba(255,255,255,.10);
  padding-bottom: 10px; margin-bottom: 12px;
}
.article-title {
  margin: 0; font-size: clamp(1.25rem, 2.8vw, 1.8rem); font-weight: 100;
  background: radial-gradient(circle, rgb(0 91 185) 0%, rgb(0 211 255) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  display: inline-block;
}
.article-date { margin: 0; white-space: nowrap; color: #7cc7ff; opacity: .95; }
.article-body { line-height: 1.6; }
.article-body > *:first-child { margin-top: 0; }
.article-body > *:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol { padding-left: 1.25rem; margin: .5rem 0 1rem 0; list-style-position: outside; }
.article-body li { margin: .25rem 0; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 560px) {
  .article-head { grid-template-columns: 1fr; }
  .article-date { justify-self: start; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  text-align: center;
  background: #050607;
  font-size: 0.95rem; line-height: 1.5;
}
.site-footer .container { max-width: 900px; margin: 0 auto; padding: 28px 16px 48px; }
.site-footer em { font-style: italic; }
.footer-links { margin-top: 12px; font-size: 0.9rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ===== Utilities ===== */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-lightgray { color: #cccccc; }
.text-darkgray { color: #555555; }
.text-red { color: #ff4d4d; }
.text-orange { color: #ff9900; }
.text-yellow { color: #ffcc00; }
.text-green { color: #33cc66; }
.text-lightblue { color: #7cc7ff; }
.text-blue { color: #0066cc; }
.text-purple { color: #aa66cc; }
.text-pink { color: #ff66b2; }

.gradient-sky {
  background: linear-gradient(90deg, rgb(0 153 255) 0%, rgb(0 187 255) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  display: inline-block;
}
.gradient-sunset { background: linear-gradient(90deg, #ff7e5f, #feb47b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; display: inline-block; }
.gradient-rainbow { background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; display: inline-block; }

/* ===== Responsive tweaks ===== */
@media (max-width: 900px){
  :root{
    --hero-h: clamp(200px, 48svh, 56svh);
    --hero-pad-top: calc(var(--topbar-h, 52px) + 12px);
    --backdrop-h: clamp(0px, 10svh, 110px);
  }
  .logo{ width: min(70vw, 560px); }
}
@media (max-width: 600px){
  :root{
    --hero-h: clamp(180px, 44svh, 52svh);
    --hero-pad-top: calc(var(--topbar-h, 52px) + 8px);
    --backdrop-h: clamp(0px, 8svh, 90px);
  }
  .tagline{ margin-top: 4px; font-size: clamp(16px, 3.4vw, 22px); }
}
@media (max-height: 560px){
  :root{
    --hero-h: clamp(160px, 40svh, 48svh);
    --backdrop-h: clamp(0px, 6svh, 70px);
  }
  .news-backdrop{
    height: 0; margin-top: -32px; -webkit-mask-image: none; mask-image: none;
  }
}

/* ===== News Feed (Cards) ===== */
.news-feed { display: grid; grid-template-columns: 1fr; gap: 12px; }
.news-card { display: grid; grid-template-rows: auto auto auto; gap: 10px; border-radius: 12px; }
.news-card-head { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 12px; }
.news-card-title { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.8rem); font-weight: 200; line-height: 1.2; }
.news-card-link { text-decoration: none; }
.news-card-link:hover { text-decoration: underline; }
.news-card-meta { display: inline-flex; gap: 8px; align-items: baseline; justify-content: flex-end; white-space: nowrap; }
.news-card-date { margin-left: 12px; color: var(--muted); font-size: .95rem; }
.news-badge-new {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1;
  background: #006bff; color: #fff; border: 1px solid rgba(255,255,255,0.18);
}
.news-card-excerpt {
  color: var(--text); opacity: .95; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-footer { display: flex; justify-content: flex-end; align-items: center; margin-top: 2px; }

/* --- Icon Socials (Lang + Discord) --- */
.topbar-socials { display: inline-flex; gap: 8px; align-items: center; }
.topbar-socials .icon { width: 20px; height: 20px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 10px; min-width: 36px; height: 36px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.14); background: rgba(0, 102, 204, 0.20); color: #fff;
  font-weight: 700; font-size: 0.82rem; text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .05s ease;
}
.icon-btn .icon { width: 18px; height: 18px; fill: currentColor; }
.icon-btn .icon-label { font-size: 0.82rem; white-space: nowrap; }
.icon-btn:hover, .icon-btn:focus { background: rgba(0,102,204,0.40); border-color: rgba(255,255,255,0.22); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn.is-active { background: rgba(0,102,204,0.55); border-color: rgba(255,255,255,0.28); }
.mobile-socials { display: flex; gap: 8px; padding-top: 6px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,0.08); }

/* Hide desktop langs on mobile (they’re in the drawer there) */
.topbar-langs { display: none !important; }

/* ===== Article section with backdrop ===== */
.article-section{
  background: var(--about-bg) center/cover no-repeat; /* variable used for versatility */
  padding: 40px 0; position: relative;
}
.article-section::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55); z-index: 0;
}
.article.container { position: relative; z-index: 1; }
.article-banner { width: 100%; max-height: 360px; object-fit: cover; border-radius: 10px; margin-bottom: 20px; }
.article-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5em; }
.article-date { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 1.5em; }

/* ===== Download page ===== */
.download-section{
  background:
    linear-gradient(rgba(10,12,18,0.88), rgba(10,12,18,0.96)),
    var(--download-bg) center/cover no-repeat;
  padding: 40px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.download-container{ max-width: 1100px; }
.download-hero{ text-align: center; margin-bottom: 18px; }
.download-title{ margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 200; line-height: 1.15; }
.download-subtitle{ margin-top: 6px; color: var(--muted); font-size: .98rem; }
.download-grid{ display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px){ .download-grid{ grid-template-columns: 1fr; } }
.download-card .download-card-title{ margin: 0 0 6px 0; font-size: 1.15rem; font-weight: 600; }
.download-card-desc{ color: var(--muted); margin-bottom: 12px; }
.download-buttons{ display: flex; flex-wrap: wrap; gap: 10px; }
.checksum{ margin-top: 14px; display: grid; gap: 6px; }
.checksum-row{ display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.checksum-row code{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; opacity: .9; }
.download-help{ margin-top: 12px; color: var(--muted); }
.download-help a{ color: #7cc7ff; }
.req-card{ padding: 16px 16px 14px; }
.req-title{ margin: 0 0 8px 0; font-size: 1.05rem; font-weight: 700; }
.req-list{ display: grid; gap: 8px; }
.req-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req-row dt{ color: var(--muted); }
.req-row dd{ justify-self: end; text-align: right; }
@media (max-width: 560px){
  .req-row{ grid-template-columns: 1fr; }
  .req-row dd{ justify-self: start; text-align: left; }
}
.req-note{ margin-top: 10px; color: var(--muted); font-size: .9rem; }
.steps-card{ margin-top: 20px; }
.steps-title{ margin: 0 0 8px 0; font-size: 1.05rem; font-weight: 700; }
.steps-list{ padding-left: 1.25rem; display: grid; gap: 6px; }

/* ===== About page ===== */
.about-section{
  background:
    linear-gradient(rgba(10,12,18,0.88), rgba(10,12,18,0.96)),
    var(--about-bg) center/cover no-repeat;
  padding: 40px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.about-container{ max-width: 1100px; }
.about-hero{ text-align: center; margin-bottom: 18px; }
.about-title{ margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 200; line-height: 1.15; }
.about-tagline{ margin-top: 6px; color: var(--muted); font-size: .98rem; }
.about-intro{ margin-top: 12px; }
.about-h2{ margin: 0 0 8px 0; font-size: 1.15rem; font-weight: 700; }
.about-h3{ margin: 0 0 6px 0; font-size: 1.05rem; font-weight: 700; }
.about-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
@media (max-width: 900px){ .about-grid{ grid-template-columns: 1fr; } }
.about-list{ padding-left: 1.1rem; display: grid; gap: 6px; }
.about-actions{ display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.about-link{ color: #7cc7ff; text-decoration: none; }
.about-link:hover{ text-decoration: underline; }

/* ===== Auth pages (Login / Register shared) ===== */
.login-section{
  background:
    linear-gradient(rgba(10,12,18,0.88), rgba(10,12,18,0.96)),
    var(--login-bg) center/cover no-repeat;
  padding: 40px 0 48px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.login-container{ max-width: 720px; }
.login-hero{ text-align: center; margin-bottom: 14px; }
.login-title{ margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 200; }
.login-tagline{ margin-top: 6px; color: var(--muted); font-size: .98rem; }

/* Shared card base for login/register */
.auth-card, .login-card, .register-card { padding: 18px; }
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="email"],
.register-card input[type="text"],
.register-card input[type="password"],
.register-card input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1.05rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  box-sizing: border-box;
  appearance: none; -webkit-appearance: none; -moz-appearance: none; /* normalize */
}
.auth-card input:focus,
.login-card input:focus,
.register-card input:focus {
  outline: none; border-color: #00d3ff; background: rgba(0,0,0,0.45);
}

/* Buttons (Grav uses .button) */
.auth-card .button, .auth-card button, .auth-card input[type="submit"],
.login-card .button, .login-card button, .login-card input[type="submit"],
.register-card .button, .register-card button, .register-card input[type="submit"] {
  display: block; width: 100%; padding: 12px; font-size: 1.05rem; margin-top: 8px; border-radius: 12px;
  background: #0ea5e9; color: #001018; border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; transition: background .15s ease, transform .05s ease;
}
.auth-card .button:hover, .login-card .button:hover, .register-card .button:hover { background: #38bdf8; }
.auth-card .button:active, .login-card .button:active, .register-card .button:active { transform: translateY(1px); }

/* Actions + links */
.login-card .buttons, .login-card .form-actions,
.register-card .buttons, .register-card .form-actions { margin-top: 12px; }
.login-card .btn-block, .register-card .btn-block { display: block; width: 100%; padding: 12px; font-size: 1.05rem; margin-top: 8px; }
.login-links{ margin-top: 12px; text-align: center; color: var(--muted); }
.login-links a{ color: #7cc7ff; text-decoration: none; }
.login-links a:hover{ text-decoration: underline; }
.login-links .sep{ margin: 0 8px; opacity: .6; }

/* Form messages */
.form-errors, .form-message {
  margin-bottom: 1rem; padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; line-height: 1.4;
}
.form-errors { margin-top: 4px; color: #e74c3c; font-size: 0.9rem; font-weight: 500; }
.form-message.info { background-color: #e8f4fd; border: 1px solid #2196f3; color: #0d47a1; }
.form-message.success { background-color: #e6f4ea; border: 1px solid #4caf50; color: #256029; }
.form-field .form-errors, .form-field .form-message { margin-top: 4px; color: #e74c3c; font-size: 0.9rem; font-weight: 500; }
.form-field.invalid input, .form-field.invalid textarea, .form-field.invalid select { border-color: #e74c3c; background-color: #fff5f5; }

/* Prevent error state from tinting the entire field row/container */
.form-field.invalid,
.form-field.has-errors,
.form-field.form-field--error {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Apply error styling to controls only */
.form-field.invalid input,
.form-field.invalid textarea,
.form-field.invalid select,
.form-field.has-errors input,
.form-field.has-errors textarea,
.form-field.has-errors select,
.form-field.form-field--error input,
.form-field.form-field--error textarea,
.form-field.form-field--error select {
  border-color: #e74c3c !important;
  background: rgba(231, 76, 60, 0.06) !important;
}

/* Keep a slightly stronger focus state when errored */
.form-field.invalid input:focus,
.form-field.has-errors input:focus,
.form-field.form-field--error input:focus,
.form-field.invalid textarea:focus,
.form-field.has-errors textarea:focus,
.form-field.form-field--error textarea:focus,
.form-field.invalid select:focus,
.form-field.has-errors select:focus,
.form-field.form-field--error select:focus {
  border-color: #ff6b6b !important;
  background: rgba(231, 76, 60, 0.10) !important;
  outline: none;
}

.form-message.error { padding:12px 16px; border-radius:8px; border:1px solid #e74c3c; background:rgba(231,76,60,.08); }
.form-message-list { margin:6px 0 0 18px; }
.form-message-list li { margin:2px 0; }


/* Hide the global Form banner on auth pages; keep inline field errors visible */
.login-card .form-errors,
.register-card .form-errors {
  display: none !important;
}

/* ===== Auth Card Container ===== */
.auth-card, .login-card, .register-card {
  background: rgba(255,255,255,0.04);  /* subtle translucent overlay */
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Safari */
  color: #fff;
}

.auth-card select,
.login-card select,
.register-card select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1.05rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(0,0,0,0.35);
  color: #fff;
  box-sizing: border-box;
  appearance: none;        /* remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' width='20' xmlns='http://www.w3.org/2000/svg'><polygon points='0,0 20,0 10,10'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  cursor: pointer;
}

.auth-card select:focus,
.login-card select:focus,
.register-card select:focus {
  outline: none;
  border-color: #00d3ff;
  background: rgba(0,0,0,0.45);
}

.auth-card select option,
.login-card select option,
.register-card select option {
  background: #111;      /* dark background for dropdown */
  color: #fff;           /* white text */
}

