
:root {
  --bg: #070605;
  --panel: #15110c;
  --panel-2: #21180f;
  --border: #7b5a25;
  --border-bright: #d6a84c;
  --gold: #d6b15f;
  --gold-light: #f1d98e;
  --red: #8f241f;
  --red-dark: #3b0b08;
  --blue: #4f80b8;
  --green: #75b551;
  --purple: #9d6de2;
  --text: #f1e6cc;
  --muted: #b7aa91;
  --shadow: rgba(0,0,0,.72);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 72% 0%, rgba(143,36,31,.22), transparent 38%),
    radial-gradient(circle at 18% 0%, rgba(214,177,95,.12), transparent 32%),
    linear-gradient(rgba(7,6,5,.88), rgba(7,6,5,.96)),
    url("../assets/oldworld/texture-dark-panel.webp") center / cover fixed,
    var(--bg);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: radial-gradient(circle at center, transparent 42%, rgba(0,0,0,.75));
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, .brand, .serif {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .04em;
  line-height: 1.06;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(214,177,95,.30);
  background: rgba(7,6,5,.80);
  backdrop-filter: blur(12px);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1rem, 3vw, 1.45rem);
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px #000);
}


/* ── Button system ─────────────────────────────────────────────────────── */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  min-width: 110px;
  padding: 0 1.25rem;

  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  overflow: visible;

  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0,0,0,.9);

  transition: transform .16s ease, filter .16s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/oldworld/button-dark.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}

.btn::after { display: none !important; }

.btn:hover::before,
.btn:focus-visible::before,
.btn-primary::before,
.btn.is-active::before,
.btn[aria-current="page"]::before {
  background-image: url("../assets/oldworld/button-red.png");
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ── Nav button sizing ──────────────────────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header .btn,
.nav-actions .btn {
  min-width: 100px;
  width: auto;
  height: 44px;
  min-height: 44px;
  padding: 0 1.1rem;
}

/* ── Hero buttons ───────────────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  margin-top: 32px;
}

.hero-actions .btn {
  min-width: 155px;
  height: 48px;
  min-height: 48px;
}

@media (max-width: 920px) {
  .nav-actions { gap: 10px; }
  .site-header .btn,
  .nav-actions .btn {
    min-width: 90px;
    height: 40px;
    min-height: 40px;
    font-size: 0.68rem;
  }
  .hero-actions .btn { min-width: 140px; }
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  border-bottom: 1px solid rgba(214,177,95,.22);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,6,5,.98) 0%, rgba(7,6,5,.82) 46%, rgba(7,6,5,.18) 100%),
    url("../assets/oldworld/hero-battlefield.webp") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 90px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 42px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font: 700 .83rem Georgia, serif;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.kicker::before,
.kicker::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(3rem, 8vw, 6.7rem);
  text-transform: uppercase;
  text-shadow: 0 4px 0 #000, 0 0 26px rgba(214,177,95,.20);
}

.hero h1 span { color: var(--gold); }

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.32rem);
}



.hero-panel {
  position: relative;
  min-height: 410px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214,177,95,.58);
  background:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.78)),
    url("../assets/oldworld/texture-dark-panel.webp") center / cover,
    var(--panel);
  box-shadow: 0 30px 70px rgba(0,0,0,.74), inset 0 0 0 1px rgba(255,255,255,.05);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(214,177,95,.25);
  pointer-events: none;
}

.hero-panel .emblem {
  width: min(78%, 420px);
  filter: drop-shadow(0 24px 36px #000);
}

.url-plate {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(214,177,95,.52);
  background: rgba(7,6,5,.82);
  color: var(--gold-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.section { padding: 72px 0; }

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  --accent: var(--gold);
  position: relative;
  min-height: 320px;
  padding: 30px;
  padding-top: 84px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.045), transparent),
    url("../assets/oldworld/texture-dark-panel.webp") center / cover,
    var(--panel);
  box-shadow: 0 24px 56px rgba(0,0,0,.57), inset 0 0 0 1px rgba(255,255,255,.035);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  transition: transform .18s ease, border-color .18s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-bright);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(214,177,95,.17);
  pointer-events: none;
}

.icon-mark {
  position: absolute;
  left: 28px;
  top: -34px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-bright);
  color: var(--accent);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.13), transparent 38%),
    #0e0b08;
  box-shadow: 0 16px 30px #000, inset 0 0 18px rgba(214,177,95,.12);
  font-size: 2.15rem;
}

.feature-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1.5rem;
  text-transform: uppercase;
}

.feature-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
}

.feature-card code {
  color: var(--gold-light);
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(214,177,95,.25);
  padding: .12rem .35rem;
}

.directory {
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent),
    url("../assets/oldworld/texture-dark-panel.webp") center / cover,
    var(--panel);
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

.directory-head {
  padding: 24px 28px;
  border-bottom: 1px solid rgba(214,177,95,.25);
  background: linear-gradient(90deg, rgba(143,36,31,.60), transparent 70%);
}

.directory-head h2 {
  margin: 0;
  color: var(--gold);
  text-transform: uppercase;
}

.directory-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.link-table {
  width: 100%;
  border-collapse: collapse;
}

.link-table th,
.link-table td {
  padding: 17px 22px;
  border-bottom: 1px solid rgba(214,177,95,.14);
  text-align: left;
}

.link-table th {
  color: var(--muted);
  font: 700 .82rem Georgia, serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.stat {
  color: var(--gold-light);
  font-weight: 800;
}

.subdomain {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.shield-dot {
  width: 28px;
  height: 34px;
  display: inline-block;
  background: var(--accent, var(--gold));
  clip-path: polygon(50% 0, 92% 16%, 86% 70%, 50% 100%, 14% 70%, 8% 16%);
  box-shadow: inset 0 0 0 2px rgba(214,177,95,.75), 0 6px 12px #000;
}

.cta {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--border-bright);
  color: #211407;
  background:
    linear-gradient(90deg, rgba(226,190,126,.94), rgba(151,100,48,.88)),
    url("../assets/oldworld/texture-parchment.webp") center / cover;
  box-shadow: 0 24px 62px rgba(0,0,0,.58);
}

.cta img {
  width: 105px;
  filter: drop-shadow(0 16px 20px rgba(0,0,0,.58));
}

.cta h2 {
  margin: 0 0 8px;
  color: #1c1007;
  text-transform: uppercase;
}

.cta p {
  margin: 0;
  color: #49321a;
}

.footer {
  padding: 38px 0 64px;
  border-top: 1px solid rgba(214,177,95,.20);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 62px; }
  .hero-panel { min-height: 320px; }
  .features { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1180px); }
  .nav { align-items: flex-start; padding: 12px 0; }
  .nav-actions { flex-wrap: wrap; justify-content: flex-end; }
  .hero h1 { font-size: clamp(2.7rem, 15vw, 4.5rem); }

  .link-table,
  .link-table thead,
  .link-table tbody,
  .link-table tr,
  .link-table th,
  .link-table td { display: block; }

  .link-table thead { display: none; }

  .link-table tr {
    padding: 14px 0;
    border-bottom: 1px solid rgba(214,177,95,.18);
  }

  .link-table td {
    border: 0;
    padding: 6px 18px;
  }

  .link-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
}



/* --- V2 layout cleanup: no big hero skull, cleaner feature cards --- */

/* Hero becomes text-first, no large emblem panel on the right */
.hero {
  min-height: 610px;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(7,6,5,.98) 0%, rgba(7,6,5,.78) 48%, rgba(7,6,5,.42) 100%),
    linear-gradient(180deg, rgba(7,6,5,.15), rgba(7,6,5,.92)),
    url("../assets/oldworld/hero-battlefield.webp") center / cover no-repeat;
}

.hero-inner {
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  min-height: 610px;
  padding: 84px 0 82px;
}

/* Hide/remove the old big skull card in the hero */
.hero-panel {
  display: none !important;
}

/* Feature cards: remove misplaced battlefield images and use controlled panel texture */
.features {
  align-items: stretch;
}

.feature-card {
  min-height: 260px;
  padding: 34px 28px 30px;
  padding-top: 34px;
  overflow: visible;
  background:
    radial-gradient(circle at 50% -20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.055), transparent 38%),
    linear-gradient(135deg, rgba(7,6,5,.92), rgba(30,22,14,.88)),
    url("../assets/oldworld/texture-dark-panel.webp") center / cover,
    var(--panel);
}

/* Icon is now placed inside the card, not hanging half outside */
.icon-mark {
  position: static;
  width: 68px;
  height: 68px;
  margin-bottom: 22px;
  font-size: 1.55rem;
  border-radius: 999px;
}

/* Optional: make headings less crowded on cards */
.feature-card h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
}

.feature-card p {
  max-width: 32ch;
}

/* Mobile hero spacing after removing the image panel */
@media (max-width: 920px) {
  .hero {
    min-height: 560px;
  }

  .hero-inner {
    min-height: 560px;
    grid-template-columns: 1fr;
    padding-top: 58px;
    padding-bottom: 64px;
  }
}



/* --- V7 global 8-edge treatment ---
   Apply the chamfered 8-edge border language consistently across the main UI elements.
*/

:root {
  --shape-cut-lg: 18px;
  --shape-cut-md: 14px;
  --shape-cut-sm: 10px;
}

/* cards / sections / panels */
.feature-card,
.directory,
.cta,
.url-plate,
.hero-panel,
.directory-head {
  clip-path: polygon(
    var(--shape-cut-md) 0,
    calc(100% - var(--shape-cut-md)) 0,
    100% var(--shape-cut-md),
    100% calc(100% - var(--shape-cut-md)),
    calc(100% - var(--shape-cut-md)) 100%,
    var(--shape-cut-md) 100%,
    0 calc(100% - var(--shape-cut-md)),
    0 var(--shape-cut-md)
  );
}

/* feature cards */
.feature-card {
  border: 0;
  background:
    linear-gradient(135deg, var(--gold-light), #8a6427 45%, var(--border-bright));
  padding: 2px;
  box-shadow: 0 22px 56px rgba(0,0,0,.57);
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  clip-path: polygon(
    calc(var(--shape-cut-md) - 2px) 0,
    calc(100% - var(--shape-cut-md) + 2px) 0,
    100% calc(var(--shape-cut-md) - 2px),
    100% calc(100% - var(--shape-cut-md) + 2px),
    calc(100% - var(--shape-cut-md) + 2px) 100%,
    calc(var(--shape-cut-md) - 2px) 100%,
    0 calc(100% - var(--shape-cut-md) + 2px),
    0 calc(var(--shape-cut-md) - 2px)
  );
  background:
    radial-gradient(circle at 50% -20%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 38%),
    linear-gradient(135deg, rgba(7,6,5,.92), rgba(30,22,14,.88)),
    url("../assets/oldworld/texture-dark-panel.webp") center / cover,
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -12px 18px rgba(0,0,0,.26);
}

/* directory shell */
.directory {
  border: 0;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-light), #8a6427 45%, var(--border-bright));
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}

.directory::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  clip-path: polygon(
    calc(var(--shape-cut-md) - 2px) 0,
    calc(100% - var(--shape-cut-md) + 2px) 0,
    100% calc(var(--shape-cut-md) - 2px),
    100% calc(100% - var(--shape-cut-md) + 2px),
    calc(100% - var(--shape-cut-md) + 2px) 100%,
    calc(var(--shape-cut-md) - 2px) 100%,
    0 calc(100% - var(--shape-cut-md) + 2px),
    0 calc(var(--shape-cut-md) - 2px)
  );
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent),
    url("../assets/oldworld/texture-dark-panel.webp") center / cover,
    var(--panel);
}
.directory {
  position: relative;
}
.directory > * {
  position: relative;
  z-index: 1;
}

.directory-head {
  margin: 0;
  border-bottom: 1px solid rgba(214,177,95,.22);
}

/* CTA banner */
.cta {
  border: 0;
  padding: 2px;
  background: linear-gradient(135deg, var(--gold-light), #8a6427 45%, var(--border-bright));
  box-shadow: 0 24px 62px rgba(0,0,0,.58);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  clip-path: polygon(
    calc(var(--shape-cut-md) - 2px) 0,
    calc(100% - var(--shape-cut-md) + 2px) 0,
    100% calc(var(--shape-cut-md) - 2px),
    100% calc(100% - var(--shape-cut-md) + 2px),
    calc(100% - var(--shape-cut-md) + 2px) 100%,
    calc(var(--shape-cut-md) - 2px) 100%,
    0 calc(100% - var(--shape-cut-md) + 2px),
    0 calc(var(--shape-cut-md) - 2px)
  );
  background:
    linear-gradient(90deg, rgba(226,190,126,.94), rgba(151,100,48,.88)),
    url("../assets/oldworld/texture-parchment.webp") center / cover;
}
.cta {
  position: relative;
}
.cta > * {
  position: relative;
  z-index: 1;
}

/* URL plate / input-like element */
.url-plate {
  border: 0;
  background: linear-gradient(135deg, var(--gold-light), #8a6427 45%, var(--border-bright));
  padding: 2px;
}
.url-plate::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: 0;
  clip-path: polygon(
    calc(var(--shape-cut-sm) - 2px) 0,
    calc(100% - var(--shape-cut-sm) + 2px) 0,
    100% calc(var(--shape-cut-sm) - 2px),
    100% calc(100% - var(--shape-cut-sm) + 2px),
    calc(100% - var(--shape-cut-sm) + 2px) 100%,
    calc(var(--shape-cut-sm) - 2px) 100%,
    0 calc(100% - var(--shape-cut-sm) + 2px),
    0 calc(var(--shape-cut-sm) - 2px)
  );
  background: rgba(7,6,5,.86);
}
.url-plate > * {
  position: relative;
  z-index: 1;
}

/* table rows should match the language too */
.link-table tbody tr td:first-child .subdomain {
  padding: 8px 10px;
  background: rgba(0,0,0,.18);
  clip-path: polygon(
    8px 0,
    calc(100% - 8px) 0,
    100% 8px,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    8px 100%,
    0 calc(100% - 8px),
    0 8px
  );
}

/* mobile */
@media (max-width: 680px) {
  .feature-card,
  .directory,
  .cta,
  .url-plate,
  .directory-head {
    clip-path: polygon(
      12px 0,
      calc(100% - 12px) 0,
      100% 12px,
      100% calc(100% - 12px),
      calc(100% - 12px) 100%,
      12px 100%,
      0 calc(100% - 12px),
      0 12px
    );
  }
}



/* Hero URL plate: parchment banner as decorative backing */
.url-plate {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
  color: #2e1a09;
  text-shadow: none;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.url-plate::before {
  content: "";
  position: absolute;
  inset: -16px -26px;
  z-index: -1;
  background: url("../assets/oldworld/url-parchment-banner.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.35));
}

/* Directory: use image frame but keep content within a dark readable area */
.directory {
  position: relative;
  padding: 118px 62px 62px !important;
  min-height: 560px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
  overflow: visible;
}

.directory::before {
  content: "";
  position: absolute;
  inset: -28px -34px;
  z-index: 0;
  background: url("../assets/oldworld/directory-frame.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.45));
}

.directory > * {
  position: relative;
  z-index: 1;
}

.directory-head {
  border: 0 !important;
  background: transparent !important;
  clip-path: none !important;
  padding: 0 !important;
  margin-bottom: 20px;
}

.directory-head h2 {
  color: var(--gold-light);
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}

/* CTA: parchment image backing, but with fallback readable text zone */
.cta {
  position: relative;
  min-height: 230px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
  padding: 44px 310px 42px 160px !important;
  overflow: visible;
  color: #2b1708;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -18px -28px;
  z-index: 0;
  background: url("../assets/oldworld/cta-parchment-bg.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.42));
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta img {
  display: none;
}

.cta h2 {
  color: #211204;
  text-shadow: none;
}

.cta p {
  color: #4b3017;
}

.cta .btn {
  position: absolute;
  right: 90px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 210px;
}

/* Feature cards: gold chamfered border (background = gold shell, ::before = dark interior) */
.feature-card {
  background: linear-gradient(135deg, var(--gold-light), #8a6427 45%, var(--border-bright)) !important;
}

/* Table readability */
.link-table th,
.link-table td {
  background: rgba(0,0,0,.08);
}

/* Mobile cleanup */
@media (max-width: 920px) {
  .directory {
    padding: 92px 28px 36px !important;
    min-height: 520px;
  }

  .directory::before {
    inset: -18px -18px;
  }

  .cta {
    min-height: 300px;
    padding: 50px 32px 44px !important;
    text-align: center;
    justify-items: center;
  }

  .cta::before {
    inset: -12px -18px;
  }

  .cta .btn {
    position: static;
    transform: none;
    margin-top: 18px;
  }
}

@media (max-width: 680px) {
  .url-plate::before {
    inset: -10px -18px;
  }

  .directory {
    padding: 76px 18px 24px !important;
  }

  .directory::before {
    inset: -12px;
  }

  .cta {
    min-height: 260px;
  }
}



/* --- V10 spacing + cards cleanup ---
   Fixes:
   1) buttons had too little spacing
   2) the three feature cards looked off / cramped / clipped
*/



/* feature cards: cleaner composition */
.features {
  gap: 28px !important;
  align-items: stretch;
}

.feature-card {
  min-height: 272px !important;
  padding: 28px 26px 26px !important;
  padding-top: 34px !important;
  overflow: hidden !important;
}

/* remove the "half outside / clipped" feeling of the medallion */
.icon-mark {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  width: 58px !important;
  height: 58px !important;
  margin: 0 0 18px 0 !important;
  border-radius: 999px;
  font-size: 1.2rem !important;
  box-shadow: 0 8px 18px rgba(0,0,0,.40), inset 0 0 12px rgba(214,177,95,.10) !important;
}

/* make the decorative banner inside cards more subtle and aligned */
.feature-card::after {
  left: 14px !important;
  right: 14px !important;
  top: 10px !important;
  height: 36px !important;
  opacity: .12 !important;
}

/* restore text alignment under the icon */
.feature-card h3 {
  margin-top: 4px !important;
  margin-bottom: 12px !important;
  font-size: 1.5rem !important;
}

.feature-card p {
  margin-top: 0 !important;
  max-width: 32ch;
  line-height: 1.5;
}

/* ensure cards don't look cut off on smaller widths */
@media (max-width: 920px) {

  .features {
    gap: 20px !important;
  }
  .feature-card {
    min-height: 250px !important;
  }
}



/* --- V11 directory restyle ---
   Goal:
   - link directory should feel like the same design family as the 3 cards
   - less bulky / less giant ornamental frame
   - cleaner dark panel with subtle 8-edge fantasy styling
*/

.directory {
  position: relative !important;
  min-height: 0 !important;
  padding: 28px 30px 26px !important;
  border: 0 !important;
  background: linear-gradient(135deg, var(--gold-light), #8a6427 45%, var(--border-bright)) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,.55) !important;
  clip-path: polygon(
    18px 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    18px 100%,
    0 calc(100% - 18px),
    0 18px
  ) !important;
  overflow: visible !important;
}

.directory::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 2px !important;
  z-index: 0 !important;
  clip-path: polygon(
    16px 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% calc(100% - 16px),
    calc(100% - 16px) 100%,
    16px 100%,
    0 calc(100% - 16px),
    0 16px
  ) !important;
  background:
    radial-gradient(circle at 50% -20%, rgba(214,177,95,.08), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 34%),
    linear-gradient(135deg, rgba(7,6,5,.94), rgba(30,22,14,.88)),
    url("../assets/oldworld/texture-dark-panel.webp") center / cover,
    var(--panel) !important;
}

.directory-head {
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(214,177,95,.18) !important;
  background: none !important;
  clip-path: none !important;
}

.directory-head h2 {
  margin: 0 0 4px !important;
  font-size: 2rem !important;
  color: var(--gold-light) !important;
}

.directory-head p {
  margin: 0 !important;
}

.link-table {
  margin-top: 10px !important;
}

.link-table th,
.link-table td {
  padding: 16px 16px !important;
  border-bottom: 1px solid rgba(214,177,95,.10) !important;
  background: transparent !important;
}

.link-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* Make subdomain cell feel like a mini-card */
.link-table tbody tr td:first-child .subdomain {
  padding: 10px 12px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent),
    rgba(0,0,0,.22) !important;
  border: 1px solid rgba(214,177,95,.18) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
}

@media (max-width: 920px) {
  .directory {
    padding: 22px 18px 18px !important;
  }

  .directory-head h2 {
    font-size: 1.7rem !important;
  }
}



/* --- V12 globe CTA update ---
   Uses the new transparent parchment CTA asset with a globe seal
   and reduces the stretched look.
*/

.cta {
  position: relative;
  min-height: 170px !important;
  padding: 26px 250px 24px 160px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
  overflow: visible;
  color: #2b1708;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/oldworld/cta-scroll-globe.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.38));
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: #231305 !important;
  margin-bottom: 6px !important;
  line-height: 1.05;
}

.cta p {
  color: #50341c !important;
  max-width: 48ch;
}

.cta .btn {
  position: absolute;
  right: 130px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 185px;
}

@media (max-width: 1200px) {
  .cta {
    padding: 28px 210px 24px 140px !important;
  }
  .cta .btn {
    right: 90px;
  }
}

@media (max-width: 920px) {
  .cta {
    min-height: 240px !important;
    padding: 36px 26px 30px !important;
    text-align: center;
  }

  .cta::before {
    background-size: 100% 100%;
  }

  .cta .btn {
    position: static;
    transform: none;
    margin-top: 16px;
  }

  .cta p {
    max-width: none;
  }
}



/* --- V13 CTA integration fix ---
   Fixes:
   - remove the bad white-box feeling around the CTA illustration
   - make the CTA large enough for text + button
   - integrate the globe-seal scroll as a decorative overlay instead of a tiny stretched asset
*/

.cta {
  position: relative;
  min-height: 230px !important;
  padding: 34px 250px 34px 190px !important;
  border: 1px solid rgba(214,177,95,.26) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 24%),
    linear-gradient(90deg, #9f6a37 0%, #c89560 18%, #d3ae78 48%, #c48c54 78%, #8f5e31 100%) !important;
  box-shadow:
    0 22px 42px rgba(0,0,0,.42),
    inset 0 0 0 1px rgba(255,255,255,.05) !important;
  clip-path: polygon(
    18px 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% calc(100% - 18px),
    calc(100% - 18px) 100%,
    18px 100%,
    0 calc(100% - 18px),
    0 18px
  ) !important;
  overflow: hidden;
  color: #2b1708;
}

/* parchment texture fill */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 22%),
    url("../assets/oldworld/texture-parchment.webp") center / cover no-repeat;
  opacity: .55;
}

/* globe seal / scroll asset as decorative overlay */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/oldworld/cta-scroll-globe.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 96%;
  mix-blend-mode: multiply;
  opacity: .96;
  pointer-events: none;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: #211204 !important;
  margin-bottom: 8px !important;
  line-height: 1.05;
  max-width: 18ch;
}

.cta p {
  color: #4b3017 !important;
  max-width: 44ch;
  line-height: 1.5;
}

.cta .btn {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 190px;
}

/* slightly reduce left text intrusion into decorative seal zone */
.cta > :not(.btn) {
  max-width: 520px;
}

@media (max-width: 1200px) {
  .cta {
    padding: 34px 220px 34px 160px !important;
  }
  .cta .btn {
    right: 46px;
  }
}

@media (max-width: 920px) {
  .cta {
    min-height: 270px !important;
    padding: 32px 24px 28px !important;
    text-align: center;
    justify-items: center;
  }

  .cta::after {
    background-position: center bottom;
    background-size: 100% auto;
    opacity: .90;
  }

  .cta h2,
  .cta p,
  .cta > :not(.btn) {
    max-width: none;
  }

  .cta .btn {
    position: static;
    transform: none;
    margin-top: 18px;
  }
}



/* --- V14 CTA template integration ---
   Uses the new transparent parchment image as the actual CTA background.
   No additional CSS parchment background behind it.
   Text/button are positioned inside the image area.
*/

.cta {
  position: relative !important;
  min-height: 240px !important;
  padding: 44px 300px 42px 210px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
  overflow: visible !important;
  color: #2b1708;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/oldworld/cta-pergament-transparent.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.42));
}

.cta::after {
  display: none !important;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta img {
  display: none !important;
}

.cta h2 {
  color: #221204 !important;
  margin: 0 0 10px !important;
  max-width: 18ch;
  line-height: 1.05;
  text-shadow: none !important;
}

.cta p {
  color: #4b3017 !important;
  max-width: 46ch;
  line-height: 1.45;
  text-shadow: none !important;
}

.cta .btn {
  position: absolute;
  right: 115px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 210px;
}

/* The CTA image has a wide safe center, so avoid text overlap with the left seal. */
@media (max-width: 1200px) {
  .cta {
    padding-left: 185px !important;
    padding-right: 270px !important;
  }

  .cta .btn {
    right: 80px;
  }
}

@media (max-width: 920px) {
  .cta {
    min-height: 300px !important;
    padding: 52px 34px 40px !important;
    text-align: center;
  }

  .cta::before {
    background-size: 100% 100%;
  }

  .cta h2,
  .cta p {
    max-width: none;
  }

  .cta .btn {
    position: static;
    transform: none;
    margin-top: 16px;
  }
}



/* --- V15 CTA layout fix ---
   Fix:
   - use more of the CTA space
   - move text into the parchment's usable center area
   - keep the CTA image transparent, with no extra CSS background
*/

.cta {
  position: relative !important;
  min-height: 270px !important;
  padding: 54px 270px 46px 250px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #2b1708;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/oldworld/cta-pergament-tight.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 98% auto;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.42));
}

.cta::after {
  display: none !important;
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta img {
  display: none !important;
}

.cta h2 {
  margin: 0 0 10px !important;
  color: #241406 !important;
  max-width: 15ch;
  line-height: 1.02;
  text-shadow: none !important;
}

.cta p {
  margin: 0 !important;
  color: #4d331b !important;
  max-width: 40ch;
  line-height: 1.45;
  text-shadow: none !important;
}

.cta .btn {
  position: absolute;
  right: 96px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 210px;
}

/* medium widths */
@media (max-width: 1200px) {
  .cta {
    min-height: 248px !important;
    padding: 46px 240px 42px 210px !important;
  }

  .cta::before {
    background-size: 100% auto;
  }

  .cta .btn {
    right: 68px;
  }
}

/* mobile */
@media (max-width: 920px) {
  .cta {
    min-height: 320px !important;
    padding: 54px 28px 34px !important;
    text-align: center;
    align-items: center;
  }

  .cta::before {
    background-size: 100% auto;
    background-position: center center;
  }

  .cta h2,
  .cta p {
    max-width: none;
  }

  .cta .btn {
    position: static;
    transform: none;
    margin-top: 18px;
  }
}



/* --- V16 header globe emblem update ---
   Replaces the skull header emblem with the new globe emblem asset.
*/

.brand-mark img,
.site-brand img,
.site-header .brand img,
.brand img {
  object-fit: contain;
}





/* ================================================================
   INNER PAGE COMPONENTS  (dashboard, redirects, forms, auth)
   ================================================================ */

/* Variable alias for compatibility */
:root { --text-muted: var(--muted); }

/* Global inline code */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, "Cascadia Code", monospace;
  font-size: .875em;
  background: rgba(0,0,0,.38);
  border: 1px solid rgba(214,177,95,.22);
  border-radius: 3px;
  padding: .1em .4em;
  color: var(--gold-light);
}

/* -- Page body shell (inner pages) ----------------------------- */
.page-body {
  padding-block: 2.5rem;
}

/* -- Flash messages -------------------------------------------- */
.flash-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.flash {
  padding: .75rem 1.1rem;
  border-radius: 4px;
  border-left: 4px solid;
  font-size: .92rem;
  font-family: var(--sans);
}

.flash-success { background: rgba(30,60,20,.55); border-color: #5a9e42; color: #b8e6a0; }
.flash-error   { background: rgba(80,10,10,.55); border-color: var(--accent); color: #f0a0a0; }
.flash-info    { background: rgba(20,30,60,.55); border-color: #4a6eb8; color: #a0c0f0; }

/* -- Page header ----------------------------------------------- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.page-sub { color: var(--muted); margin-top: .25rem; margin-bottom: 1.5rem; font-family: var(--sans); }

h1 { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--gold-light); margin-bottom: .5rem; }
h2 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 1.5rem 0 .75rem; color: var(--gold-light); }
small { font-size: .8em; color: var(--muted); }

/* -- Button modifiers ------------------------------------------ */
/* .btn-danger: destructive action -- uses red frame */
.btn-danger::before {
  background-image: url("../assets/oldworld/button-red.png");
}

/* .btn-sm: small inline table-row buttons -- flat style, no image frame */
.btn-sm {
  min-height: 30px !important;
  min-width: auto !important;
  padding: .2rem .55rem !important;
  font-size: .74rem !important;
  font-family: system-ui, sans-serif !important;
  background: var(--panel-2) !important;
  border: 1px solid var(--border) !important;
  clip-path: none !important;
  overflow: hidden !important;
}
.btn-sm::before,
.btn-sm::after { display: none !important; }
.btn-sm:hover {
  background: var(--panel) !important;
  border-color: var(--gold) !important;
  filter: none !important;
  transform: none !important;
}

.btn-full { width: 100% !important; }

.action-row {
  display: flex;
  gap: .75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* -- Cards (forms, info) --------------------------------------- */
.form-card, .info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  margin-bottom: 1.5rem;
}

/* -- Stat grid (dashboard) ------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}
.stat-number { font-size: 2rem; font-weight: 700; color: var(--gold-light); font-family: var(--serif); }
.stat-label  { font-size: .85rem; color: var(--muted); margin-top: .2rem; font-family: var(--sans); }

/* -- Forms ----------------------------------------------------- */
label {
  display: block;
  font-size: .88rem;
  font-weight: 500;
  margin-bottom: .3rem;
  margin-top: 1.1rem;
  color: var(--text);
  font-family: var(--sans);
}
label:first-child { margin-top: 0; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-size: .95rem;
  font-family: var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,146,42,.18);
}
textarea { resize: vertical; }

.input-group {
  display: flex;
  align-items: center;
}
.input-group input {
  border-radius: 4px 0 0 4px;
  flex: 1;
}
.input-suffix {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 4px 4px 0;
  padding: .55rem .75rem;
  color: var(--muted);
  font-size: .9rem;
  white-space: nowrap;
}

.field-hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; font-family: var(--sans); }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.1rem;
}
.checkbox-row label { margin: 0; }
.checkbox-row input[type="checkbox"] { width: auto; accent-color: var(--gold); }

.form-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* -- Auth card ------------------------------------------------- */
.auth-card {
  max-width: 420px;
  margin: 3rem auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}
.auth-card::before { display: none; }
.auth-card h1 { margin-bottom: 1.5rem; text-align: center; font-size: 1.6rem; }
.auth-card form .btn-full { margin-top: 1.25rem; }
/* auth-card: no top bleed with inset:0 */
.auth-alt { margin-top: 1.25rem; font-size: .9rem; text-align: center; color: var(--muted); font-family: var(--sans); }
.auth-alt a { color: var(--gold-light); }

/* -- Data table ------------------------------------------------ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  font-family: var(--sans);
}
.data-table th {
  text-align: left;
  padding: .65rem 1rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.data-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid rgba(123,90,37,.35);
  vertical-align: middle;
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,.025); }
.url-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* -- Badges ---------------------------------------------------- */
.badge {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  font-family: var(--sans);
}
.badge-active   { background: rgba(40,90,30,.55); color: #9ae6b4; border: 1px solid rgba(90,158,66,.4); }
.badge-inactive { background: rgba(80,10,10,.55); color: #feb2b2; border: 1px solid rgba(160,48,48,.4); }

/* -- Inline form ----------------------------------------------- */
.inline-form { display: inline; }

/* -- Empty state ----------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-family: var(--sans);
}
.empty-state p { margin-bottom: 1rem; }

/* -- Error pages ----------------------------------------------- */
.error-page {
  text-align: center;
  padding: 5rem 1rem;
  font-family: var(--sans);
}
.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: .5rem;
  font-family: var(--serif);
}
.error-page h1 { margin-bottom: .75rem; }
.error-page p  { color: var(--muted); margin-bottom: 1.5rem; }

/* -- Danger zone ----------------------------------------------- */
.danger-zone {
  border: 1px solid rgba(160,48,48,.5);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  background: rgba(80,10,10,.18);
}
.danger-zone h2 { color: #f09090; margin-top: 0; }
.danger-zone p  { color: var(--muted); margin-bottom: 1rem; }

/* -- System nav (super-admin sub-nav) -------------------------- */
.system-nav {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
  flex-wrap: wrap;
  font-family: var(--sans);
}
.system-nav a {
  padding: .35rem .75rem;
  border-radius: 4px 4px 0 0;
  font-size: .9rem;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.system-nav a.active { background: var(--accent); color: #fff; }
.system-nav a:hover:not(.active) { background: var(--panel-2); color: var(--text); }

/* -- Two-column layout ----------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

.inline-add-form {
  display: flex;
  gap: .5rem;
  margin-bottom: .75rem;
}
.inline-add-form input { flex: 1; }

.reserved-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .5rem;
}
.reserved-list li {
  font-family: ui-monospace, monospace;
  font-size: .82rem;
  padding: .15rem .45rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
}

/* -- Utilities ------------------------------------------------- */
.muted  { color: var(--muted); }
.mt-sm  { margin-top: .75rem; }

/* -- Footer legal links ---------------------------------------- */
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 0;
  font-size: .82rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  opacity: .85;
  padding: 0 1.6rem;
  border-right: 1px solid rgba(214,177,95,.25);
}

.footer-legal a:last-child { border-right: none; }

.footer-legal a:hover { opacity: 1; color: var(--accent); }

/* -- Legal pages ----------------------------------------------- */
.legal-page h2 {
  margin-top: 1.8rem;
  font-size: 1.05rem;
  color: var(--accent);
}

.legal-page h2:first-child { margin-top: 0; }

.legal-page ul {
  padding-left: 1.4rem;
  line-height: 1.85;
}

.legal-note {
  padding: .7rem 1rem;
  border-left: 3px solid rgba(214,177,95,.35);
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 1.2rem;
}

/* -- Register form - legal block ------------------------------ */
.form-legal-notice {
  font-size: .85rem;
  color: var(--muted);
  margin: 1rem 0 .5rem;
  line-height: 1.6;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1.2rem;
}

.form-check input[type="checkbox"] {
  margin-top: .18rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.form-check label { font-size: .9rem; line-height: 1.5; cursor: pointer; }

.required { color: #c0392b; margin-left: .15rem; }

.form-hint {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-top: -.4rem;
  margin-bottom: .8rem;
}

/* -- Badges ---------------------------------------------------- */
.badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.badge-open     { background: rgba(192,57,43,.25);  color: #e74c3c; }
.badge-reviewed { background: rgba(214,177,95,.2);  color: var(--accent); }
.badge-resolved { background: rgba(39,174,96,.2);   color: #2ecc71; }
.badge-ok       { background: rgba(39,174,96,.2);   color: #2ecc71; }
.badge-disabled { background: rgba(127,127,127,.2); color: var(--muted); }

/* -- Data table ----------------------------------------------- */
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }

.data-table th {
  text-align: left;
  padding: .55rem .8rem;
  border-bottom: 1px solid rgba(214,177,95,.3);
  color: var(--muted);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.data-table td {
  padding: .55rem .8rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}

.data-table tr:hover td { background: rgba(255,255,255,.03); }

.data-table .url-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -- Detail list ---------------------------------------------- */
.detail-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: .5rem 1rem;
  font-size: .9rem;
}

.detail-list dt {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-top: .1rem;
}

.detail-list .description-text { white-space: pre-wrap; word-break: break-word; }

.section-divider { border: 0; border-top: 1px solid rgba(214,177,95,.2); margin: 1.2rem 0; }

.input-row { display: flex; gap: .6rem; align-items: center; }
.input-row select { flex: 1; }

/* -- Button variants ----------------------------------------- */
.btn-danger { background: rgba(192,57,43,.3); color: #e74c3c; border-color: rgba(192,57,43,.5); }
.btn-danger:hover { background: rgba(192,57,43,.5); }
