:root {
  --bg: #000000;
  --panel: #08090b;
  --panel-2: #0d0f13;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f7f7;
  --muted: #a4a7ad;
  --orange: #e67322;
  --orange-soft: #ff8a2a;
  --orange-deep: #b84f14;
  --green: #ff8a2a;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.58);
}

/* ========================================================================== */
* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
p,
a,
button,
strong,
small,
li,
input {
  overflow-wrap: anywhere;
}

body::before {
  content: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  border-bottom: 0;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.account,
.discord-login,
.user-trigger {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
}

.brand-logo {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(223, 122, 53, 0.55);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 138, 42, 0.24), rgba(255, 138, 42, 0.04));
  color: var(--orange-soft);
  font-weight: 900;
}

.brand strong {
  color: white;
  font-size: 20px;
  letter-spacing: 1px;
}

.main-nav {
  justify-self: center;
  gap: clamp(20px, 3vw, 48px);
  max-width: 100%;
}

.main-nav a {
  color: #aeb1b8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--orange-soft);
}

.account {
  position: relative;
  justify-content: flex-end;
  min-width: max-content;
}

.discord-login,
.user-trigger {
  position: relative;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 138, 42, 0.28);
  border-radius: 10px;
  background: #0c0d10;
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.user-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 2px solid rgba(255, 255, 255, 0.62);
  border-bottom: 2px solid rgba(255, 255, 255, 0.62);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.user-trigger[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.discord-login {
  position: relative;
  min-width: 194px;
  overflow: hidden;
  justify-content: center;
  border-color: rgba(255, 138, 42, 0.42);
  background: linear-gradient(135deg, rgba(230, 115, 34, 0.95), rgba(184, 79, 20, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.2);
}

.discord-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.discord-login:hover {
  border-color: rgba(255, 138, 42, 0.9);
  background: linear-gradient(135deg, #ff8a2a, #d45f18);
  transform: translateY(-1px);
}

.discord-login:hover::before {
  transform: translateX(120%);
}

.discord-mark,
.avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.discord-mark {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.24);
  box-shadow: none;
}

.discord-login > span:last-child {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  font-size: 14px;
}

.avatar {
  background: var(--orange);
  background-repeat: no-repeat;
  overflow: hidden;
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: grid;
  gap: 8px;
  width: 292px;
  max-width: calc(100vw - 24px);
  padding: 10px;
  border: 1px solid rgba(255, 138, 42, 0.38);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 138, 42, 0.09), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 58%),
    rgba(7, 9, 12, 0.98);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(255, 138, 42, 0.38);
  border-left: 1px solid rgba(255, 138, 42, 0.38);
  background: #111014;
  transform: rotate(45deg);
}

.dropdown-user {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.dropdown-user strong,
.dropdown-user small {
  display: block;
}

.dropdown-user strong {
  color: white;
  font-size: 14px;
  line-height: 1.2;
}

.dropdown-user small {
  margin-top: 2px;
  color: #8f98a3;
  font-size: 11px;
  font-weight: 700;
}

.dropdown-section {
  display: grid;
  gap: 5px;
  padding: 4px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown a,
.dropdown button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #dfe6ee;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.dropdown a .menu-icon,
.dropdown button .menu-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 138, 42, 0.22);
  border-radius: 7px;
  background: rgba(255, 138, 42, 0.09);
  color: var(--orange-soft);
}

.menu-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropdown a:hover,
.dropdown button:hover {
  background: linear-gradient(135deg, rgba(255, 138, 42, 0.18), rgba(255, 138, 42, 0.06));
  color: white;
  transform: translateX(2px);
}

.dropdown .logout-item {
  color: #ff765f;
}

.dropdown .logout-item .menu-icon {
  border-color: rgba(255, 118, 95, 0.24);
  background: rgba(255, 118, 95, 0.09);
  color: #ff765f;
}

.start-hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 110px 20px 142px;
  text-align: center;
}

.start-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 42, 0.36), transparent);
}

.hero-brand-mark {
  position: absolute;
  z-index: 2;
  top: clamp(22px, 4vw, 52px);
  right: clamp(18px, 4vw, 64px);
  display: grid;
  width: clamp(116px, 13vw, 190px);
  aspect-ratio: 1;
  place-items: center;
  pointer-events: none;
  isolation: isolate;
  animation: hero-mark-float 6s ease-in-out infinite;
}

.hero-brand-mark::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 42, 0.2), rgba(255, 138, 42, 0.055) 42%, transparent 70%);
  filter: blur(10px);
  animation: hero-mark-pulse 3.8s ease-in-out infinite;
}

.hero-brand-mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8%;
  border: 1px solid rgba(255, 138, 42, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 26px rgba(255, 138, 42, 0.08),
    inset 0 0 20px rgba(255, 255, 255, 0.025);
}

.hero-brand-mark img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 16px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 12px rgba(255, 138, 42, 0.2));
}

.hero-brand-orbit {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.3);
  border-right-color: rgba(255, 138, 42, 0.68);
  border-radius: 50%;
  animation: hero-mark-orbit 10s linear infinite;
}

.hero-brand-orbit::after {
  content: "";
  position: absolute;
  top: 12%;
  right: 10%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange-soft);
  box-shadow: 0 0 14px rgba(255, 138, 42, 0.9);
}

@keyframes hero-mark-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}

@keyframes hero-mark-pulse {
  0%, 100% { opacity: 0.66; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes hero-mark-orbit {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brand-mark,
  .hero-brand-mark::before,
  .hero-brand-orbit {
    animation: none;
  }
}

.version-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 0 18px;
  border: 1px solid rgba(255, 138, 42, 0.32);
  border-radius: 999px;
  background: rgba(230, 115, 34, 0.13);
  color: var(--orange-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 3px;
  max-width: 100%;
  text-align: center;
}

.version-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(255, 122, 26, 0.7);
}

.hero-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: white;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: 5px;
  line-height: 1;
  text-transform: uppercase;
}

.start-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 100%);
  font-size: clamp(54px, 11vw, 154px);
  line-height: 0.86;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.start-hero h1 span {
  color: var(--orange-soft);
  text-shadow: 0 0 34px rgba(230, 115, 34, 0.22);
}

.start-hero > p:not(.hero-kicker) {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 30px auto 0;
  color: #c6c8ce;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.55;
}

.server-address {
  position: relative;
  z-index: 1;
  display: inline-grid;
  gap: 6px;
  margin-top: 34px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.server-address strong {
  overflow-wrap: anywhere;
}

.server-address small {
  color: var(--orange-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}

.server-address strong {
  color: white;
  font-size: 14px;
}

.info-strip,
.section-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: -88px;
  padding-bottom: 96px;
}

.info-strip article,
.forum-grid article,
.intro-grid article,
.document-panel,
.roadmap-panel,
.account-preview {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(8, 9, 11, 0.9);
  box-shadow: var(--shadow);
}

.info-strip article {
  position: relative;
  overflow: hidden;
  min-height: 162px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
}

.info-strip article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240, 161, 93, 0.1), transparent 42%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.info-strip article:hover::before {
  opacity: 1;
}

.info-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid rgba(223, 122, 53, 0.38);
  border-radius: 50%;
  color: var(--orange-soft);
  font-weight: 900;
}

.info-strip strong {
  display: block;
  font-size: 32px;
  font-weight: 900;
}

.info-strip small,
.roadmap-line small,
.forum-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.35;
}

.section-wrap {
  padding-bottom: 34px;
}

.section-head {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 900;
}

.forum-grid,
.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.forum-grid article,
.intro-grid article {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
}

.forum-grid article::after,
.intro-grid article::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 46px;
  height: 2px;
  background: var(--orange-soft);
  opacity: 0.42;
}

.forum-grid span,
.intro-grid span,
.document-panel span {
  color: var(--orange-soft);
  font-size: 13px;
  font-weight: 900;
}

.forum-grid h3,
.intro-grid h3 {
  margin: 34px 0 10px;
  font-size: 21px;
  line-height: 1.18;
}

.forum-grid p,
.intro-grid p,
.account-preview p {
  color: var(--muted);
  line-height: 1.6;
}

.leak-section {
  padding-top: 46px;
}

.leak-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  grid-auto-rows: 246px;
  gap: 16px;
}

.leak-card {
  position: relative;
  overflow: hidden;
  min-height: 246px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: #07080a;
  box-shadow: var(--shadow);
}

.leak-card-large {
  grid-row: span 2;
}

.leak-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.01);
}

.leak-card:not(.leak-card-large):nth-child(2) img {
  object-position: 35% center;
}

.leak-card:not(.leak-card-large):nth-child(3) img {
  object-position: 72% center;
}

.leak-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.84));
}

.leak-card figcaption {
  position: absolute;
  z-index: 1;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: grid;
  gap: 6px;
}

.leak-card figcaption strong {
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.leak-card figcaption span {
  color: #c8ccd2;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.philosophy-section {
  padding-top: 46px;
  padding-bottom: 76px;
}

.philosophy-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(230, 115, 34, 0.11), transparent 38%),
    rgba(8, 9, 11, 0.92);
  box-shadow: var(--shadow);
}

.philosophy-panel > p {
  margin: 4px 0 0;
  color: #c6c8ce;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
}

.philosophy-points {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.philosophy-points span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 138, 42, 0.24);
  border-radius: 999px;
  background: rgba(255, 138, 42, 0.075);
  color: #f1f2f4;
  font-size: 13px;
  font-weight: 800;
}

.admin-page {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 90px;
}

.admin-page .section-wrap {
  width: auto;
  max-width: none;
}

.admin-page .section-head h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.admin-section {
  padding-top: 0;
  padding-bottom: 86px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
    rgba(8, 9, 11, 0.94);
  box-shadow: var(--shadow);
}

.admin-sidebar button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num desc";
  column-gap: 12px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #c4cad1;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.admin-sidebar button:hover,
.admin-sidebar button.active {
  border-color: rgba(255, 138, 42, 0.38);
  background: linear-gradient(135deg, rgba(255, 138, 42, 0.16), rgba(255, 255, 255, 0.025));
  color: white;
}

.admin-sidebar button:hover {
  transform: translateX(2px);
}

.admin-sidebar span {
  grid-area: num;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 138, 42, 0.28);
  border-radius: 10px;
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 900;
}

.admin-sidebar strong {
  grid-area: title;
  font-size: 16px;
  line-height: 1.15;
}

.admin-sidebar small {
  grid-area: desc;
  margin-top: 5px;
  color: #8f96a0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.admin-panels {
  min-width: 0;
}

.admin-card {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    rgba(8, 9, 11, 0.92);
  box-shadow: var(--shadow);
}

.admin-card h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.026);
}

.admin-field-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #c3c9d0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.018)),
    #111317;
  color: white;
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.admin-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--orange-soft) 50%),
    linear-gradient(135deg, var(--orange-soft) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.018));
  background-position:
    calc(100% - 18px) 19px,
    calc(100% - 12px) 19px,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.admin-form select option {
  background: #111317;
  color: white;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
  color: rgba(195, 201, 208, 0.56);
}

.admin-form input,
.admin-form select {
  min-height: 46px;
  padding: 0 13px;
}

.admin-form select {
  padding-right: 38px;
}

.admin-form textarea {
  min-height: 150px;
  resize: vertical;
  padding: 13px;
  line-height: 1.5;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: rgba(255, 138, 42, 0.7);
}

.admin-form button,
.admin-actions button {
  min-height: 40px;
  border: 1px solid rgba(255, 138, 42, 0.28);
  border-radius: 8px;
  background: rgba(255, 138, 42, 0.12);
  color: white;
  cursor: pointer;
  font-weight: 900;
}

.admin-form button {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-list-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-list-item strong,
.admin-list-item span {
  display: block;
}

.admin-list-item strong {
  margin-bottom: 4px;
  color: white;
  font-size: 15px;
}

.admin-list-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-actions button:last-child {
  border-color: rgba(255, 118, 95, 0.28);
  background: rgba(255, 118, 95, 0.1);
  color: #ff806d;
}

.profile-page {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 90px;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 138, 42, 0.08), transparent 38%),
    rgba(8, 9, 11, 0.9);
  box-shadow: var(--shadow);
}

.profile-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.profile-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: #b7bdc5;
  font-size: 17px;
  line-height: 1.6;
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-hero aside {
  justify-self: end;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 138, 42, 0.28);
  border-radius: 12px;
  background: rgba(255, 138, 42, 0.08);
}

.profile-hero aside small,
.profile-hero aside strong {
  display: block;
}

.profile-hero aside small {
  color: #aeb6bd;
  font-weight: 800;
}

.profile-hero aside strong {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.15;
}

.profile-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-panel {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(8, 9, 11, 0.92);
  box-shadow: var(--shadow);
}

.profile-avatar {
  display: grid;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 138, 42, 0.32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, var(--orange), #087f6e);
  color: white;
  font-size: 26px;
  font-weight: 800;
  box-shadow: 0 18px 46px rgba(230, 115, 34, 0.22);
}

.profile-role {
  padding: 5px 10px;
  border: 1px solid rgba(255, 138, 42, 0.28);
  border-radius: 999px;
  background: rgba(255, 138, 42, 0.12);
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 900;
}

.profile-progress {
  width: 100%;
  margin-top: 28px;
}

.profile-progress div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #b9c0c8;
  font-size: 14px;
}

.profile-progress strong {
  display: block;
  height: 8px;
  margin: 10px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.profile-progress strong span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
}

.profile-progress small {
  display: block;
  color: #8f96a0;
  text-align: right;
}

.profile-stats,
.profile-detail-list {
  display: grid;
  width: 100%;
  gap: 12px;
  margin: 28px 0 0;
}

.profile-stats div,
.profile-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.profile-stats dt,
.profile-detail-list dt {
  color: #b9c0c8;
}

.profile-stats dd,
.profile-detail-list dd {
  margin: 0;
  color: white;
  font-weight: 900;
  text-align: right;
}

.profile-stats .danger {
  color: #ff765f;
}

.profile-main {
  min-width: 0;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.profile-metrics article {
  min-height: 126px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(8, 9, 11, 0.88);
}

.profile-metrics span,
.profile-metrics small {
  display: block;
  color: #8f96a0;
  font-size: 12px;
  font-weight: 800;
}

.profile-metrics strong {
  display: block;
  margin: 12px 0 6px;
  color: white;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.visa-progress {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 138, 42, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 138, 42, 0.11), rgba(255, 255, 255, 0.018)),
    rgba(8, 9, 11, 0.9);
}

.social-level-card {
  grid-template-columns: minmax(210px, 1fr) auto;
}

.social-level-card > p {
  font-size: clamp(28px, 4vw, 42px);
}

.visa-progress span,
.visa-progress small {
  display: block;
  color: #9da5ae;
  font-size: 12px;
  font-weight: 800;
}

.visa-progress strong {
  display: block;
  margin: 5px 0;
  color: white;
  font-size: 24px;
  line-height: 1.1;
}

.visa-progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.visa-progress-bar span {
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
}

.visa-progress p {
  margin: 0;
  color: var(--orange-soft);
  font-weight: 900;
}

.profile-panel {
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.profile-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.profile-panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.profile-panel-head small {
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.panel-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 138, 42, 0.11);
  color: var(--orange-soft);
}

.panel-icon svg,
.empty-state svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-links,
.profile-detail-list {
  padding: 18px 22px 22px;
}

.profile-links {
  display: grid;
  gap: 10px;
}

.profile-links a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.026);
}

.profile-links a:hover {
  border-color: rgba(255, 138, 42, 0.36);
  background: rgba(255, 138, 42, 0.09);
}

.profile-links strong {
  color: white;
  font-size: 15px;
}

.profile-links span {
  color: #8f96a0;
  font-size: 13px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.document-panel {
  display: grid;
  gap: 10px;
  padding: 26px;
}

.document-link {
  min-height: 230px;
  align-content: start;
}

.document-link p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.document-link > span {
  margin-top: 18px;
}

.document-panel h2 {
  margin-bottom: 12px;
}

.document-panel a,
.member-links a {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce3e8;
  font-weight: 760;
  line-height: 1.25;
}

.document-panel a:hover,
.member-links a:hover {
  border-color: rgba(223, 122, 53, 0.55);
}

.roadmap-panel,
.account-preview {
  padding: 26px;
}

.roadmap-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.roadmap-line article {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.roadmap-line span {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #46515b;
}

.roadmap-line .done span {
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(255, 122, 26, 0.12);
}

.roadmap-line strong,
.roadmap-line small {
  display: block;
}

.account-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: center;
  margin-bottom: 70px;
}

.member-links {
  display: grid;
  gap: 10px;
}

.legal-page {
  position: relative;
  z-index: 1;
  width: min(1216px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 90px;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.legal-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.95;
  font-weight: 900;
}

.legal-hero p {
  max-width: 620px;
  color: #c2c8cf;
  font-size: 16px;
  line-height: 1.65;
}

.legal-hero aside {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 16, 20, 0.82);
}

.legal-hero aside small,
.legal-hero aside strong {
  display: block;
}

.legal-hero aside strong {
  margin-top: 8px;
  font-size: 22px;
}

.law-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 16, 20, 0.9);
  box-shadow: var(--shadow);
}

.law-search span {
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.law-search input {
  width: 100%;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font: inherit;
}

.law-search input::placeholder {
  color: #818a94;
}

.law-search small {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #aeb6bd;
}

.law-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(17, 22, 28, 0.88);
}

.law-tabs a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 8px;
  color: #b6bdc5;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 750;
}

.law-tabs a.active,
.law-tabs a:hover {
  background: rgba(223, 122, 53, 0.14);
  color: white;
}

.law-tabs span {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--orange-soft);
  font-size: 11px;
  text-align: center;
}

.law-list {
  display: grid;
  gap: 14px;
}

.law-list article {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(12, 16, 20, 0.92);
}

.law-list article:hover {
  border-color: rgba(223, 122, 53, 0.42);
}

.law-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.law-meta span {
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(223, 122, 53, 0.14);
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.law-meta strong {
  font-size: 22px;
  line-height: 1.2;
}

.law-list h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 30px);
}

.law-list p {
  max-width: 760px;
  margin-bottom: 10px;
  color: #c5cbd2;
  line-height: 1.7;
}

.laws-page {
  width: min(1280px, calc(100% - 40px));
}

.laws-page .legal-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(230, 115, 34, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    #07080a;
  box-shadow: var(--shadow);
}

.laws-page .legal-hero::after {
  content: "RIVA JUSTIZ";
  position: absolute;
  right: 28px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 900;
  letter-spacing: 4px;
  pointer-events: none;
}

.laws-page .legal-hero h1 {
  color: white;
  font-size: clamp(52px, 7vw, 92px);
}

.laws-page .legal-hero aside {
  position: relative;
  z-index: 1;
  border-color: rgba(230, 115, 34, 0.32);
  background: rgba(0, 0, 0, 0.28);
}

.laws-page .law-search {
  min-height: 74px;
  margin-top: 22px;
  border-color: rgba(230, 115, 34, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(230, 115, 34, 0.08), transparent),
    rgba(9, 10, 12, 0.96);
}

.laws-page .law-search span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: rgba(230, 115, 34, 0.14);
  color: var(--orange-soft);
  letter-spacing: 0;
  text-transform: none;
}

.laws-page .law-search small {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.laws-page .law-tabs {
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.laws-page .law-tabs a {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.laws-page .law-tabs a.active,
.laws-page .law-tabs a:hover {
  border-color: rgba(230, 115, 34, 0.55);
  background: rgba(230, 115, 34, 0.14);
}

.laws-page .law-list {
  gap: 16px;
}

.laws-page .law-list article {
  position: relative;
  overflow: hidden;
  padding: 28px 30px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(230, 115, 34, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #090a0d;
}

.laws-page .law-list article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--orange-soft), transparent);
}

.laws-page .law-list article:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 115, 34, 0.5);
}

.laws-page .law-meta span {
  border: 1px solid rgba(230, 115, 34, 0.24);
  background: rgba(230, 115, 34, 0.12);
}

.laws-page .law-meta strong {
  color: white;
}

.laws-page .law-list h2 {
  max-width: 900px;
}

.laws-page {
  width: min(1180px, calc(100% - 40px));
}

.laws-page .legal-hero {
  margin-bottom: 20px;
  padding: 24px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(230, 115, 34, 0.1), transparent 42%),
    #050607;
}

.laws-page .legal-hero::after {
  content: none;
}

.laws-page .legal-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(42px, 6vw, 72px);
}

.laws-page .legal-hero p {
  color: #aeb4bc;
}

.laws-page .law-search {
  margin: 0 0 18px;
  border-radius: 14px;
}

.law-workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.law-sidebar {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 9, 11, 0.92);
}

.laws-page .law-tabs {
  display: grid;
  gap: 8px;
  margin: 0;
}

.laws-page .law-tabs a {
  justify-content: space-between;
  min-height: 44px;
  border-radius: 10px;
}

.law-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.law-note small {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-soft);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.law-note p {
  margin: 0;
  color: #aeb4bc;
  font-size: 14px;
  line-height: 1.55;
}

.laws-page .law-list article {
  padding: 22px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    #07080a;
}

.laws-page .law-list article::before {
  width: 3px;
  opacity: 0.76;
}

.laws-page .law-list h2 {
  margin-bottom: 8px;
  font-size: clamp(22px, 3vw, 28px);
}

.law-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.law-footer span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #b8bec6;
  font-size: 12px;
  font-weight: 800;
}

.rules-hero {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}

.rules-hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 108px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rules-hero h1 span {
  color: var(--orange-soft);
}

.rules-hero p {
  max-width: 720px;
  margin: 24px auto 0;
  color: #c1c7ce;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.rule-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 42px;
}

.rule-switcher button {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 16, 20, 0.72);
  color: #c6ccd3;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: left;
  text-transform: uppercase;
  line-height: 1.25;
}

.rule-switcher button:hover,
.rule-switcher button.active {
  border-color: rgba(240, 161, 93, 0.7);
  background: rgba(223, 122, 53, 0.12);
  color: var(--orange-soft);
}

.rule-switcher span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(240, 161, 93, 0.35);
  border-radius: 7px;
  color: var(--orange-soft);
  font-size: 12px;
}

.rule-intro {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 850px;
  margin: 0 auto 48px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: rgba(12, 16, 20, 0.82);
}

.rule-intro > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(223, 122, 53, 0.12);
  color: var(--orange-soft);
  font-weight: 900;
}

.rule-intro h2 {
  font-size: 20px;
  text-transform: uppercase;
  line-height: 1.25;
}

.rule-intro p {
  margin: 6px 0 0;
  color: #c1c7ce;
}

.rule-content {
  display: grid;
  gap: 18px;
  max-width: 850px;
  margin: 0 auto;
}

.rule-content article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 16, 20, 0.86);
  box-shadow: var(--shadow);
}

.rule-content h2 {
  margin-bottom: 20px;
  font-size: clamp(25px, 3vw, 32px);
  text-transform: uppercase;
  line-height: 1.12;
}

.rule-content h2 span {
  color: var(--orange-soft);
}

.rule-content ul {
  display: grid;
  gap: 17px;
  margin: 0;
  padding-left: 22px;
  color: #c8ced5;
  line-height: 1.6;
}

.rule-content li::marker {
  color: var(--orange-soft);
}

.rules-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 92px;
}

.rules-page .rules-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 22px;
  align-items: end;
  max-width: none;
  margin: 0 0 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 138, 42, 0.12), transparent 40%),
    #050607;
  text-align: left;
}

.rules-page .rules-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.rules-page .rules-hero p {
  max-width: 680px;
  margin: 0;
  color: #b7bdc5;
  font-size: 17px;
}

.rules-page .rules-hero aside {
  padding: 18px;
  border: 1px solid rgba(255, 138, 42, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.rules-page .rules-hero aside small,
.rules-page .rules-hero aside strong {
  display: block;
}

.rules-page .rules-hero aside strong {
  margin-top: 8px;
  font-size: 26px;
}

.rules-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.rules-sidebar {
  position: sticky;
  top: 96px;
}

.rules-page .rule-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 9, 11, 0.92);
}

.rules-page .rule-switcher button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num desc";
  column-gap: 12px;
  min-height: 72px;
  padding: 14px;
  border-radius: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.rules-page .rule-switcher button span {
  grid-area: num;
  width: 38px;
  height: 38px;
}

.rules-page .rule-switcher button strong {
  grid-area: title;
  color: inherit;
  font-size: 16px;
}

.rules-page .rule-switcher button small {
  grid-area: desc;
  margin-top: 4px;
  color: #8f96a0;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

.rules-main {
  display: grid;
  gap: 14px;
}

.rules-page .rule-intro {
  max-width: none;
  margin: 0;
  border-left: 0;
  border-radius: 18px;
  background: rgba(8, 9, 11, 0.9);
}

.rules-page .rule-content {
  max-width: none;
}

.rules-page .rule-content article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    #07080a;
}

.rule-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 138, 42, 0.28);
  border-radius: 16px;
  background: rgba(255, 138, 42, 0.1);
  color: var(--orange-soft);
  font-weight: 900;
}

.rules-page .rule-content h2 {
  margin-bottom: 14px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0;
  text-transform: none;
}

.rules-page .rule-content ul {
  gap: 12px;
  color: #c4cad1;
}

.roadmap-page {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 90px;
}

.roadmap-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.roadmap-column {
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 16, 20, 0.84);
  box-shadow: var(--shadow);
}

.column-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.column-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: white;
}

.column-icon svg,
.item-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.column-icon svg {
  width: 20px;
  height: 20px;
}

.roadmap-column.planned .column-icon {
  color: #c5cbd3;
}

.roadmap-column.progress .column-icon {
  border-color: rgba(255, 138, 42, 0.32);
  background: rgba(255, 138, 42, 0.12);
  color: var(--orange-soft);
}

.roadmap-column.done .column-icon {
  border-color: rgba(255, 122, 26, 0.26);
  background: rgba(255, 122, 26, 0.1);
  color: var(--green);
}

.column-head h2 {
  font-size: 22px;
  line-height: 1.2;
}

.roadmap-items {
  display: grid;
  gap: 12px;
}

.roadmap-items section {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.item-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--orange-soft);
}

.roadmap-column.done .item-icon {
  color: var(--green);
}

.roadmap-column.planned .item-icon {
  color: #c7cdd5;
}

.roadmap-items strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.roadmap-items p {
  margin: 0;
  color: #b9c0c8;
  line-height: 1.55;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto;
    width: min(100% - 28px, 1400px);
    min-height: auto;
    padding: 14px 0;
    gap: 14px;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 6px 0 2px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
  }

  .info-strip,
  .forum-grid,
  .intro-grid,
  .document-grid,
  .roadmap-line,
  .roadmap-columns,
  .admin-layout,
  .account-preview,
  .leak-gallery,
  .philosophy-panel,
  .legal-hero,
  .law-search,
  .rule-switcher {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    overflow-x: auto;
  }

  .admin-sidebar button {
    min-width: 210px;
  }

  .law-search small {
    justify-self: start;
  }

  .law-workspace {
    grid-template-columns: 1fr;
  }

  .profile-hero,
  .profile-content {
    grid-template-columns: 1fr;
  }

  .profile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-layout,
  .rules-page .rules-hero {
    grid-template-columns: 1fr;
  }

  .rules-sidebar {
    position: static;
  }

  .rules-page .rule-switcher {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
  }

  .law-sidebar {
    position: static;
  }

  .laws-page .law-tabs {
    display: flex;
    overflow-x: auto;
  }

  .laws-page .law-tabs a {
    flex: 0 0 auto;
  }

  .start-hero {
    min-height: 640px;
    padding: 84px 20px 122px;
  }

  .info-strip {
    margin-top: -60px;
  }

  .admin-page,
  .legal-page,
  .profile-page,
  .roadmap-page,
  .rules-page {
    width: min(100% - 28px, 1216px);
    padding-top: 42px;
  }

  .rule-switcher button {
    min-height: 54px;
  }

  .roadmap-column {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .brand strong,
  .discord-login > span:last-child,
  .user-trigger span:last-child {
    display: none;
  }

  .discord-login {
    min-width: 44px;
    padding: 0 8px;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 11px;
    letter-spacing: 0;
  }

  .start-hero {
    min-height: 590px;
    padding: 58px 16px 108px;
  }

  .version-pill {
    padding: 8px 12px;
    line-height: 1.25;
    letter-spacing: 1.6px;
  }

  .hero-kicker {
    font-size: clamp(28px, 10vw, 42px);
    letter-spacing: 2px;
  }

  .start-hero h1 {
    font-size: clamp(46px, 17vw, 82px);
    letter-spacing: 0;
    line-height: 0.94;
  }

  .start-hero > p:not(.hero-kicker) {
    margin-top: 22px;
    font-size: 16px;
  }

  .server-address {
    max-width: 100%;
    padding: 11px 14px;
  }

  .admin-field-row {
    grid-template-columns: 1fr;
  }

  .info-strip,
  .section-wrap {
    width: min(100% - 28px, 1120px);
  }

  .profile-hero h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .profile-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-hero aside {
    justify-self: stretch;
  }

  .profile-metrics {
    grid-template-columns: 1fr;
  }

  .visa-progress {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .visa-progress p {
    text-align: right;
  }

  .profile-panel-head {
    align-items: flex-start;
    min-height: auto;
    padding: 18px;
  }

  .info-strip {
    gap: 14px;
    padding-bottom: 64px;
  }

  .info-strip article,
  .forum-grid article,
  .intro-grid article,
  .document-panel,
  .roadmap-panel,
  .account-preview,
  .philosophy-panel,
  .admin-card,
  .law-list article,
  .rule-content article,
  .roadmap-column {
    padding: 18px;
  }

  .forum-grid h3,
  .intro-grid h3 {
    margin-top: 24px;
  }

  .leak-section,
  .philosophy-section {
    padding-top: 28px;
  }

  .leak-gallery {
    grid-auto-rows: auto;
  }

  .leak-card,
  .leak-card-large {
    grid-row: auto;
    min-height: 260px;
  }

  .philosophy-panel {
    gap: 18px;
  }

  .philosophy-panel > p {
    font-size: 15px;
  }

  .document-link {
    min-height: 190px;
  }

  .account-preview {
    gap: 16px;
    margin-bottom: 48px;
  }

  .legal-hero h1,
  .rules-hero h1 {
    font-size: clamp(38px, 14vw, 62px);
    line-height: 1;
    letter-spacing: 0;
  }

  .rules-page .rules-hero {
    padding: 20px;
  }

  .rules-page .rules-hero h1 {
    font-size: clamp(40px, 14vw, 62px);
  }

  .rules-page .rule-switcher {
    grid-template-columns: 1fr;
    overflow-x: visible;
    padding: 10px;
  }

  .rules-page .rule-content article {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .rule-number {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .legal-hero aside {
    padding: 18px;
  }

  .law-search {
    gap: 8px;
    padding: 14px;
  }

  .law-tabs {
    margin: 14px 0;
  }

  .law-list h2,
  .rule-content h2 {
    font-size: clamp(21px, 7vw, 28px);
  }

  .rule-switcher {
    gap: 10px;
    margin-bottom: 28px;
  }

  .rule-switcher button {
    padding: 12px 14px;
    letter-spacing: 1px;
  }

  .rule-intro {
    grid-template-columns: 1fr;
    margin-bottom: 28px;
    padding: 18px;
  }

  .rule-content ul {
    padding-left: 18px;
  }

  .column-head {
    align-items: flex-start;
  }

  .roadmap-items section {
    padding: 16px;
  }
}

@media (max-width: 390px) {
  .topbar {
    width: min(100% - 20px, 1400px);
  }

  .brand-logo,
  .discord-mark,
  .avatar {
    flex: 0 0 auto;
  }

  .start-hero h1 {
    font-size: clamp(40px, 16vw, 60px);
  }

  .info-strip,
  .section-wrap,
  .admin-page,
  .legal-page,
  .profile-page,
  .roadmap-page {
    width: min(100% - 20px, 1120px);
  }

  .law-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* RIVA CLEAN ORANGE THEME                                                      */
/* ========================================================================== */

:root {
  --bg: #060301;
  --panel: #100805;
  --panel-2: #160c07;
  --line: rgba(255, 145, 64, 0.14);
  --text: #fff6ef;
  --muted: #95837a;
  --orange: #f06a16;
  --orange-soft: #ff9b45;
  --orange-deep: #b84408;
  --green: #ff8a2a;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
}

body {
  background:
    radial-gradient(circle at 52% 12%, rgba(142, 58, 12, 0.14), transparent 31rem),
    linear-gradient(180deg, #070301, #020100 72%);
  color: var(--text);
  font-weight: 400;
}

body::after {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 122, 26, 0.018) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

::selection {
  background: rgba(255, 122, 26, 0.28);
  color: white;
}

.topbar {
  min-height: 64px;
  width: min(1440px, calc(100% - 56px));
  border-bottom: 1px solid rgba(255, 143, 64, 0.09);
  background: rgba(9, 5, 3, 0.78);
  backdrop-filter: blur(22px) saturate(1.2);
}

.brand {
  gap: 10px;
}

.brand-logo {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 0;
  background: url("assets/riva-logo-transparent.png") center / contain no-repeat;
  color: transparent;
  font-size: 0;
  filter: drop-shadow(0 0 8px rgba(255, 122, 26, 0.26));
}

.brand strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.main-nav {
  gap: clamp(24px, 3.2vw, 50px);
}

.main-nav a {
  position: relative;
  color: #746a64;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -22px;
  left: 50%;
  height: 1px;
  background: var(--orange-soft);
  box-shadow: 0 0 8px rgba(255, 122, 26, 0.7);
  transition: right 0.2s ease, left 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  right: 0;
  left: 0;
}

.main-nav a.active,
.main-nav a:hover {
  color: #fff0e5;
}

.discord-login,
.user-trigger {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(255, 122, 26, 0.28);
  border-radius: 2px;
  background: rgba(24, 10, 4, 0.76);
  color: #ffd0ad;
  box-shadow: none;
}

.discord-login {
  min-width: 150px;
  background: rgba(70, 26, 7, 0.4);
}

.discord-login:hover {
  border-color: rgba(255, 122, 26, 0.75);
  background: rgba(255, 122, 26, 0.11);
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.08);
}

.discord-login > span:last-child {
  font-size: 11px;
  font-weight: 700;
}

.discord-mark,
.avatar {
  border-radius: 2px;
  background-color: #c95b14;
}

.dropdown {
  border-color: rgba(255, 122, 26, 0.22);
  border-radius: 3px;
  background: rgba(15, 7, 3, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.68);
}

.dropdown::before {
  border-color: rgba(255, 122, 26, 0.22);
  background: #110906;
}

.dropdown-user,
.dropdown a,
.dropdown button,
.menu-icon {
  border-radius: 2px !important;
}

.start-hero {
  min-height: calc(100vh - 64px);
  place-items: start;
  align-content: center;
  padding: 110px max(6vw, calc((100vw - 1400px) / 2 + 28px)) 150px;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(10, 5, 2, 0.98) 0%, rgba(17, 7, 3, 0.88) 38%, rgba(35, 12, 2, 0.5) 70%, rgba(8, 4, 2, 0.84) 100%),
    linear-gradient(0deg, #070402 0%, transparent 38%, rgba(25, 9, 2, 0.26) 100%),
    url("assets/riva-hero.png") 66% center / cover no-repeat;
}

.start-hero::after {
  height: 34%;
  background: linear-gradient(180deg, transparent, #070402);
}

.version-pill {
  min-height: 24px;
  margin-bottom: 24px;
  padding: 0 10px;
  border-color: rgba(255, 122, 26, 0.26);
  border-radius: 2px;
  background: rgba(255, 122, 26, 0.055);
  color: #ffad70;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.version-pill span {
  width: 5px;
  height: 5px;
}

.hero-kicker {
  margin-bottom: 12px;
  color: #b2a298;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.start-hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: none;
}

.start-hero h1 span {
  color: white;
  text-shadow: none;
}

.start-hero h1::after {
  content: "// RIVA";
  display: block;
  margin-top: 16px;
  color: var(--orange-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.start-hero > p:not(.hero-kicker) {
  max-width: 580px;
  margin: 24px 0 0;
  color: #9b8b81;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
}

.server-address {
  margin-top: 30px;
  padding: 10px 14px;
  border-color: rgba(255, 122, 26, 0.22);
  border-radius: 2px;
  background: rgba(30, 11, 4, 0.62);
  box-shadow: none;
}

.server-address small {
  color: #bf8a66;
  font-size: 8px;
}

.server-address strong {
  color: #fff2e8;
  font-size: 12px;
  font-weight: 600;
}

.hero-brand-mark {
  top: 8%;
  right: 5%;
  width: clamp(110px, 12vw, 170px);
  opacity: 0.78;
}

.hero-brand-mark::before {
  background: radial-gradient(circle, rgba(255, 122, 26, 0.22), rgba(255, 122, 26, 0.04) 44%, transparent 70%);
}

.hero-brand-mark::after,
.hero-brand-orbit {
  border-color: rgba(255, 122, 26, 0.2);
}

.hero-brand-orbit {
  border-top-color: rgba(255, 255, 255, 0.28);
  border-right-color: rgba(255, 122, 26, 0.62);
}

.hero-brand-orbit::after {
  background: var(--orange-soft);
  box-shadow: 0 0 14px rgba(255, 122, 26, 0.85);
}

.info-strip,
.section-wrap {
  width: min(1320px, calc(100% - 56px));
}

.info-strip {
  position: relative;
  z-index: 3;
  gap: 1px;
  margin-top: -76px;
  padding-bottom: 100px;
  border: 1px solid var(--line);
  background: var(--line);
}

.info-strip article {
  min-height: 112px;
  place-items: start;
  align-content: center;
  padding: 20px 26px;
  border: 0;
  border-radius: 0;
  background: rgba(15, 7, 3, 0.96);
  box-shadow: none;
  text-align: left;
}

.info-icon {
  width: auto;
  height: auto;
  margin-bottom: 10px;
  border: 0;
  border-radius: 0;
  color: var(--orange-soft);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.info-strip strong {
  font-size: 18px;
  font-weight: 600;
}

.info-strip small {
  margin-top: 5px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.section-wrap {
  padding-bottom: 72px;
}

.section-head {
  margin-bottom: 28px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--orange-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

h2 {
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.forum-grid,
.intro-grid {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.forum-grid article,
.intro-grid article,
.document-panel,
.roadmap-panel,
.account-preview,
.philosophy-panel,
.leak-card {
  border-color: transparent;
  border-radius: 0;
  background: rgba(18, 8, 4, 0.9);
  box-shadow: none;
}

.forum-grid article,
.intro-grid article {
  min-height: 150px;
  padding: 26px;
}

.forum-grid h3,
.intro-grid h3 {
  margin-top: 26px;
  font-size: 17px;
  font-weight: 600;
}

.forum-grid p,
.intro-grid p,
.account-preview p,
.philosophy-panel > p {
  color: #8a7a70;
  font-size: 13px;
  font-weight: 400;
}

.philosophy-panel {
  border: 1px solid var(--line);
}

.philosophy-points span {
  min-height: 30px;
  border-color: rgba(255, 122, 26, 0.18);
  border-radius: 2px;
  background: rgba(255, 122, 26, 0.045);
  color: #b6a296;
  font-size: 10px;
  font-weight: 500;
}

.rules-page,
.laws-page,
.roadmap-page,
.profile-page,
.admin-page {
  width: min(1320px, calc(100% - 56px));
  padding-top: 58px;
}

.rules-page .rules-hero,
.laws-page .legal-hero,
.roadmap-page .legal-hero,
.profile-hero {
  min-height: 210px;
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(23, 9, 4, 0.96), rgba(13, 7, 4, 0.72)),
    url("assets/riva-hero.png") center 60% / cover no-repeat;
  box-shadow: none;
}

.rules-page .rules-hero h1,
.laws-page .legal-hero h1,
.roadmap-page .legal-hero h1,
.profile-hero h1,
.admin-page .section-head h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.rules-page .rules-hero p,
.laws-page .legal-hero p,
.roadmap-page .legal-hero p,
.profile-hero p:not(.eyebrow) {
  color: #918077;
  font-size: 13px;
  font-weight: 400;
}

.rules-page .rules-hero aside,
.laws-page .legal-hero aside,
.roadmap-page .legal-hero aside,
.profile-hero aside {
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.rules-layout,
.laws-page .law-workspace,
.admin-layout {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.rules-sidebar,
.laws-page .law-sidebar,
.admin-sidebar,
.rules-main,
.laws-page .law-list,
.admin-panels {
  background: #0c0603;
}

.rules-page .rule-switcher,
.admin-sidebar {
  gap: 1px;
  border: 0;
  border-radius: 0;
  background: var(--line);
}

.rules-page .rule-switcher button,
.admin-sidebar button {
  border: 0;
  border-radius: 0;
  background: #0e0704;
}

.rules-page .rule-switcher button.active,
.rules-page .rule-switcher button:hover,
.admin-sidebar button.active,
.admin-sidebar button:hover {
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.11), rgba(255, 122, 26, 0.015));
  box-shadow: inset 2px 0 var(--orange-soft);
}

.rules-page .rule-intro,
.rules-page .rule-content article,
.laws-page .law-list article,
.roadmap-column,
.roadmap-items section,
.admin-card,
.admin-list-item,
.profile-metrics article,
.profile-panel,
.social-level-card {
  border-color: var(--line);
  border-radius: 0;
  background: rgba(18, 8, 3, 0.92);
  box-shadow: none;
}

.rules-page .rule-content article:hover,
.laws-page .law-list article:hover,
.roadmap-items section:hover,
.profile-links a:hover {
  border-color: rgba(255, 122, 26, 0.32);
  background: rgba(33, 13, 5, 0.9);
  transform: none;
}

.laws-page .law-search {
  border-color: var(--line);
  border-radius: 0;
  background: rgba(18, 8, 4, 0.94);
}

.laws-page .law-tabs a {
  border-radius: 0;
}

.laws-page .law-tabs a.active,
.laws-page .law-tabs a:hover {
  background: rgba(255, 122, 26, 0.08);
  box-shadow: inset 2px 0 var(--orange-soft);
}

.roadmap-columns {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.roadmap-column {
  border: 0;
}

.roadmap-items section {
  border-left: 1px solid var(--line);
}

.admin-card {
  padding: 28px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  border-color: rgba(255, 158, 89, 0.16);
  border-radius: 1px;
  background: #070301;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: rgba(255, 122, 26, 0.62);
  box-shadow: 0 0 0 2px rgba(255, 122, 26, 0.06);
}

.admin-form button,
.admin-actions button {
  border-radius: 1px;
}

.profile-avatar {
  border-color: rgba(255, 122, 26, 0.32);
  border-radius: 2px;
  background-color: #c95b14;
  box-shadow: 0 0 30px rgba(255, 122, 26, 0.08);
}

.profile-metrics {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.profile-metrics article {
  border: 0;
}

.profile-panel-head {
  border-bottom-color: var(--line);
}

.profile-links a {
  border-color: var(--line);
  border-radius: 0;
  background: #0d0704;
}

.social-level-card {
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.09), rgba(18, 8, 3, 0.92) 45%);
}

@media (max-width: 900px) {
  .topbar {
    width: calc(100% - 28px);
  }

  .main-nav {
    gap: 18px;
  }

  .start-hero {
    padding-right: 28px;
    padding-left: 28px;
    background-position: 63% center;
  }

  .hero-brand-mark {
    top: 4%;
    right: 20px;
    width: 94px;
  }

  .info-strip,
  .section-wrap,
  .rules-page,
  .laws-page,
  .roadmap-page,
  .profile-page,
  .admin-page {
    width: min(100% - 28px, 1320px);
  }
}

@media (max-width: 680px) {
  .topbar {
    grid-template-columns: auto auto;
    gap: 10px;
    min-height: 58px;
  }

  .discord-login {
    width: 40px;
    min-width: 40px;
    padding: 0 5px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 10px 0 12px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .main-nav a::after {
    bottom: -8px;
  }

  .account {
    grid-column: 2;
    grid-row: 1;
  }

  .start-hero {
    min-height: 690px;
    padding-top: 140px;
    padding-bottom: 128px;
  }

  .start-hero h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .start-hero h1 span {
    display: block;
  }

  .hero-brand-mark {
    top: 86px;
    width: 78px;
  }

  .info-strip {
    grid-template-columns: 1fr;
  }

  .rules-page .rules-hero,
  .laws-page .legal-hero,
  .roadmap-page .legal-hero,
  .profile-hero {
    padding: 24px;
  }
}

/* ========================================================================== */
/* RIVA PROPORTION SYSTEM                                                     */
/* ========================================================================== */

.topbar {
  min-height: 76px;
  width: min(1200px, calc(100% - 48px));
  gap: 28px;
}

.brand {
  gap: 12px;
}

.brand-logo {
  width: 36px;
  height: 36px;
}

.brand strong {
  font-size: 13px;
  letter-spacing: 0.2em;
}

.main-nav {
  gap: clamp(30px, 3.2vw, 48px);
}

.main-nav a {
  font-size: 12px;
  letter-spacing: 0.025em;
}

.main-nav a::after {
  bottom: -27px;
}

.discord-login,
.user-trigger {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.discord-login {
  min-width: 174px;
}

.discord-mark,
.avatar {
  width: 30px;
  height: 30px;
}

.start-hero {
  min-height: clamp(650px, calc(100vh - 76px), 760px);
  padding-right: max(24px, calc((100vw - 1200px) / 2));
  padding-left: max(24px, calc((100vw - 1200px) / 2));
}

.info-strip,
.section-wrap {
  width: min(1200px, calc(100% - 48px));
}

.info-strip {
  margin-bottom: 72px;
  padding-bottom: 0;
}

.server-intro {
  padding-top: 0;
}

.rules-page,
.laws-page,
.roadmap-page,
.profile-page,
.admin-page {
  width: min(1200px, calc(100% - 48px));
  padding-top: 40px;
  padding-bottom: 72px;
}

.rules-page .rules-hero,
.laws-page .legal-hero,
.roadmap-page .legal-hero,
.profile-hero {
  min-height: 190px;
  margin-bottom: 20px;
  padding: 28px 32px;
}

.rules-page .rules-hero h1,
.laws-page .legal-hero h1,
.roadmap-page .legal-hero h1,
.profile-hero h1,
.admin-page .section-head h1 {
  margin-bottom: 10px;
  font-size: clamp(40px, 4.5vw, 58px);
  line-height: 0.98;
}

.rules-page .rules-hero p,
.laws-page .legal-hero p,
.roadmap-page .legal-hero p,
.profile-hero p:not(.eyebrow) {
  max-width: 660px;
  font-size: 14px;
  line-height: 1.6;
}

.rules-page .rules-hero aside,
.laws-page .legal-hero aside,
.roadmap-page .legal-hero aside,
.profile-hero aside {
  padding: 16px 18px;
}

.rules-page .rules-hero aside strong,
.laws-page .legal-hero aside strong,
.roadmap-page .legal-hero aside strong,
.profile-hero aside strong {
  font-size: 22px;
}

.rules-layout {
  grid-template-columns: 270px minmax(0, 1fr);
}

.rules-sidebar,
.admin-sidebar {
  top: 96px;
}

.rules-page .rule-switcher button,
.admin-sidebar button {
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 64px;
  padding: 12px 14px;
}

.rules-page .rule-switcher button span,
.admin-sidebar button span:first-child {
  width: 36px;
  height: 36px;
}

.rules-page .rule-switcher button strong,
.admin-sidebar button strong {
  font-size: 15px;
}

.rules-page .rule-switcher button small,
.admin-sidebar button small {
  font-size: 12px;
}

.rules-page .rule-intro {
  padding: 20px 22px;
}

.rules-page .rule-content article {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
}

.rule-number {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.rules-page .rule-content h2 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2vw, 25px);
}

.rules-page .rule-content ul {
  gap: 8px;
  font-size: 15px;
  line-height: 1.55;
}

.roadmap-column {
  min-height: 440px;
  padding: 16px;
}

.roadmap-items section,
.laws-page .law-list article,
.profile-metrics article {
  padding: 18px;
}

.admin-layout {
  grid-template-columns: 270px minmax(0, 1fr);
}

.admin-card {
  padding: 22px;
}

@media (max-width: 900px) {
  .topbar,
  .info-strip,
  .section-wrap,
  .rules-page,
  .laws-page,
  .roadmap-page,
  .profile-page,
  .admin-page {
    width: calc(100% - 28px);
  }

  .start-hero {
    padding-right: 28px;
    padding-left: 28px;
  }

  .rules-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .rules-sidebar,
  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    min-height: 64px;
    gap: 10px;
  }

  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .main-nav a {
    font-size: 11px;
  }

  .main-nav a::after {
    bottom: -8px;
  }

  .discord-login {
    width: 40px;
    min-width: 40px;
    padding: 0 5px;
  }

  .start-hero {
    min-height: 650px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .info-strip {
    margin-bottom: 48px;
  }

  .rules-page,
  .laws-page,
  .roadmap-page,
  .profile-page,
  .admin-page {
    padding-top: 24px;
    padding-bottom: 52px;
  }

  .rules-page .rules-hero,
  .laws-page .legal-hero,
  .roadmap-page .legal-hero,
  .profile-hero {
    min-height: auto;
    padding: 24px;
  }

  .rules-page .rules-hero h1,
  .laws-page .legal-hero h1,
  .roadmap-page .legal-hero h1,
  .profile-hero h1,
  .admin-page .section-head h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .rules-page .rule-content article {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .rule-number {
    width: 40px;
    height: 40px;
  }
}

/* ========================================================================== */
/* MODERN RULES + LAW PAGES                                                   */
/* ========================================================================== */

.rules-page .rules-hero,
.laws-page .legal-hero {
  overflow: hidden;
  border-color: rgba(255, 145, 64, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(16, 7, 3, 0.98) 0%, rgba(24, 10, 4, 0.86) 48%, rgba(10, 5, 3, 0.56) 100%),
    url("assets/riva-hero.png") center 58% / cover no-repeat;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.rules-page .rules-hero .eyebrow,
.laws-page .legal-hero .eyebrow {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 10px;
  border: 1px solid rgba(255, 145, 64, 0.2);
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.07);
}

.rules-page .rules-hero aside,
.laws-page .legal-hero aside {
  border: 1px solid rgba(255, 145, 64, 0.2);
  border-radius: 12px;
  background: rgba(8, 4, 2, 0.58);
  backdrop-filter: blur(12px);
}

.rules-layout,
.laws-page .law-workspace {
  gap: 24px;
  border: 0;
  background: transparent;
}

.rules-sidebar,
.laws-page .law-sidebar {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(14, 7, 4, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.rules-main,
.laws-page .law-list {
  background: transparent;
}

.rules-page .rule-switcher {
  gap: 6px;
  border: 0;
  background: transparent;
}

.rules-page .rule-switcher button {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}

.rules-page .rule-switcher button.active,
.rules-page .rule-switcher button:hover {
  border-color: rgba(255, 145, 64, 0.18);
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.13), rgba(255, 122, 26, 0.025));
  box-shadow: none;
}

.rules-page .rule-switcher button span {
  border-color: rgba(255, 145, 64, 0.28);
  border-radius: 9px;
  background: rgba(255, 122, 26, 0.055);
}

.rules-page .rule-intro {
  border: 1px solid rgba(255, 145, 64, 0.17);
  border-radius: 14px;
  background:
    linear-gradient(100deg, rgba(255, 122, 26, 0.09), transparent 42%),
    rgba(15, 7, 4, 0.9);
}

.rules-page .rule-intro > span {
  border: 1px solid rgba(255, 145, 64, 0.18);
  border-radius: 10px;
  background: rgba(255, 122, 26, 0.1);
}

.rules-page .rule-content {
  gap: 12px;
}

.rules-page .rule-content article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.045), transparent 38%),
    rgba(14, 7, 4, 0.9);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.rules-page .rule-content article:hover {
  border-color: rgba(255, 145, 64, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 122, 26, 0.075), transparent 42%),
    rgba(17, 8, 4, 0.94);
  transform: translateY(-2px);
}

.rule-number {
  border-color: rgba(255, 145, 64, 0.3);
  background: rgba(255, 122, 26, 0.08);
}

.laws-page .law-search {
  min-height: 58px;
  margin-bottom: 20px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(14, 7, 4, 0.9);
  box-shadow: none;
}

.laws-page .law-search span {
  width: auto;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 145, 64, 0.18);
  border-radius: 8px;
  background: rgba(255, 122, 26, 0.075);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.laws-page .law-search input {
  min-height: 42px;
  font-size: 14px;
}

.laws-page .law-search small {
  border: 0;
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
}

.laws-page .law-sidebar > .eyebrow {
  margin: 8px 10px 12px;
}

.laws-page .law-tabs {
  gap: 5px;
  border: 0;
  background: transparent;
}

.laws-page .law-tabs a {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #a49389;
  font-size: 13px;
}

.laws-page .law-tabs a.active,
.laws-page .law-tabs a:hover {
  border-color: rgba(255, 145, 64, 0.18);
  background: linear-gradient(90deg, rgba(255, 122, 26, 0.13), rgba(255, 122, 26, 0.02));
  box-shadow: none;
  color: #fff4ec;
}

.laws-page .law-tabs span {
  background: rgba(255, 122, 26, 0.07);
}

.laws-page .law-list {
  gap: 12px;
}

.laws-page .law-list article {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(255, 122, 26, 0.05), transparent 34%),
    rgba(14, 7, 4, 0.9);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.laws-page .law-list article::before {
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: var(--orange-soft);
  opacity: 0.72;
}

.laws-page .law-list article:hover {
  border-color: rgba(255, 145, 64, 0.3);
  background:
    linear-gradient(120deg, rgba(255, 122, 26, 0.075), transparent 38%),
    rgba(17, 8, 4, 0.94);
  transform: translateY(-2px);
}

.laws-page .law-meta span,
.laws-page .law-footer span {
  border-color: rgba(255, 145, 64, 0.16);
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.065);
}

.laws-page .law-meta strong {
  color: #d8c8be;
  font-size: 12px;
}

.laws-page .law-list h2 {
  font-size: clamp(22px, 2.2vw, 27px);
  letter-spacing: -0.025em;
}

.laws-page .law-list p {
  max-width: 820px;
  color: #a9968b;
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .laws-page .law-workspace {
    grid-template-columns: 1fr;
  }

  .laws-page .law-sidebar {
    position: static;
  }

  .laws-page .law-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .rules-layout,
  .laws-page .law-workspace {
    gap: 16px;
  }

  .rules-sidebar,
  .laws-page .law-sidebar {
    padding: 8px;
  }

  .laws-page .law-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .laws-page .law-search small {
    display: none;
  }

  .laws-page .law-tabs {
    display: flex;
    overflow-x: auto;
  }

  .laws-page .law-tabs a {
    flex: 0 0 auto;
  }

  .laws-page .law-list article {
    padding: 18px;
  }
}
