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

:root {
  --bg: #030712;
  --bg-soft: #07111f;
  --panel: rgba(8, 18, 35, 0.82);
  --panel-strong: rgba(10, 23, 44, 0.94);
  --panel-light: rgba(14, 165, 233, 0.09);
  --text: #f8fbff;
  --muted: #9fb4cc;
  --line: rgba(125, 211, 252, 0.2);
  --line-strong: rgba(125, 211, 252, 0.42);
  --blue: #2f80ff;
  --cyan: #38d9ff;
  --cyan-soft: rgba(56, 217, 255, 0.16);
  --green: #29e781;
  --yellow: #facc15;
  --red: #fb7185;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --glow: 0 0 42px rgba(47, 128, 255, 0.32);
  --radius: 24px;
  --radius-sm: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(47, 128, 255, 0.32), transparent 27%),
    radial-gradient(circle at 82% 10%, rgba(56, 217, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 62%, rgba(20, 58, 121, 0.28), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(56, 217, 255, 0.045) 45%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.center-text {
  text-align: center;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 13px 16px;
  background: rgba(4, 11, 23, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.95), transparent 12%),
    linear-gradient(135deg, var(--cyan), var(--blue) 58%, #0b2f77);
  color: #001525;
  box-shadow: 0 0 24px rgba(56, 217, 255, 0.44), inset 0 0 18px rgba(255, 255, 255, 0.28);
  font-size: 26px;
  font-weight: 950;
}

.logo strong {
  display: block;
  line-height: 1;
  letter-spacing: 0.7px;
  font-size: 22px;
  font-weight: 950;
}

.logo em {
  color: var(--cyan);
  font-style: normal;
}

.logo small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.nav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #d9e8fb;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 0.22s ease;
}

.nav a:hover,
.nav a.active,
.nav a:first-child,
.nav button:hover {
  color: white;
  background: var(--cyan-soft);
  border-color: var(--line);
}

.nav-admin {
  background: linear-gradient(135deg, rgba(56, 217, 255, 0.18), rgba(47, 128, 255, 0.18));
  border-color: var(--line) !important;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(56, 217, 255, 0.11);
  color: white;
  font-size: 22px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 154px 7% 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 430px);
  align-items: center;
  gap: 44px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-content,
.status-card {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 12px;
}

.hero h1,
.team-hero h1 {
  max-width: 760px;
  font-size: clamp(50px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -4px;
  text-transform: uppercase;
}

.hero h1 span,
.team-hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--blue), #b8eaff);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 28px rgba(56, 217, 255, 0.22);
}

.hero-text,
.section-copy,
.team-hero p,
.footer p {
  max-width: 620px;
  color: #c5d5e8;
  font-size: 18px;
  line-height: 1.75;
}

.hero-text {
  margin: 24px 0 30px;
}

.hero-buttons,
.form-actions,
.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 950;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: #001525;
  background: linear-gradient(135deg, var(--cyan), #78edff 42%, var(--blue));
  box-shadow: 0 12px 30px rgba(47, 128, 255, 0.32);
}

.btn-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(56, 217, 255, 0.26);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 40px;
}

.hero-metrics article {
  padding: 17px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.hero-metrics strong {
  display: block;
  color: var(--cyan);
  font-size: 24px;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-card {
  padding: 26px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(9, 21, 41, 0.96), rgba(5, 12, 25, 0.82)),
    radial-gradient(circle at 20% 15%, rgba(56, 217, 255, 0.2), transparent 30%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.status-card::before {
  content: "ASTERISK CITY";
  position: absolute;
  top: 19px;
  right: -22px;
  transform: rotate(32deg);
  color: rgba(255, 255, 255, 0.055);
  font-size: 42px;
  font-weight: 950;
  letter-spacing: 2px;
}

.status-top,
.application-top,
.row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.card-title {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: 1.8px;
  font-size: 12px;
}

.status-badge,
.secure-chip,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(41, 231, 129, 0.12);
  border: 1px solid rgba(41, 231, 129, 0.32);
  color: #a7f3d0;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.status-badge i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.city-visual {
  position: relative;
  height: 242px;
  margin: 22px 0 18px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 24%, rgba(56, 217, 255, 0.22), transparent 18%),
    linear-gradient(180deg, rgba(9, 39, 78, 0.9), rgba(3, 9, 20, 0.95));
  border: 1px solid rgba(125, 211, 252, 0.22);
}

.city-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(4, 11, 23, 0.8) 55%),
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(255, 255, 255, 0.04) 36px 37px);
}

.moon {
  position: absolute;
  top: 30px;
  right: 42px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(184, 234, 255, 0.92);
  box-shadow: 0 0 40px rgba(184, 234, 255, 0.45);
}

.tower {
  position: absolute;
  bottom: 45px;
  width: 70px;
  border-radius: 16px 16px 4px 4px;
  background: linear-gradient(180deg, rgba(56, 217, 255, 0.18), rgba(3, 9, 20, 0.95));
  border: 1px solid rgba(125, 211, 252, 0.24);
}

.tower::after {
  content: "";
  position: absolute;
  inset: 14px 13px;
  background-image: radial-gradient(circle, rgba(56, 217, 255, 0.7) 1.5px, transparent 2px);
  background-size: 16px 16px;
}

.tower.one { left: 46px; height: 92px; }
.tower.two { left: 132px; height: 142px; }
.tower.three { right: 46px; height: 112px; }

.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(180deg, #07111f, #020712);
}

.road::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 27px;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(56, 217, 255, 0.8) 0 28px, transparent 28px 48px);
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-list div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(125, 211, 252, 0.16);
}

.stat-list span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.8px;
}

.stat-list strong {
  display: block;
  margin-top: 5px;
  color: white;
  font-size: 22px;
}

.section {
  padding: 82px 7%;
}

.section-heading,
.section-title h2,
.rules-card h2,
.admin-panel h1,
.admin-panel h2,
.login-card h1 {
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
}

.section-heading {
  font-size: clamp(34px, 4vw, 58px);
  margin-bottom: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 34px;
  text-align: center;
}

.section-title span {
  width: min(16vw, 140px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 54px);
}

.split-intro {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  align-items: center;
  gap: 32px;
}

.feature-grid,
.app-grid,
.rp-gallery,
.steps,
.rules-faq,
.simple-staff-grid {
  display: grid;
  gap: 20px;
}

.compact-grid,
.app-grid,
.rp-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.app-card,
.rp-photo-card,
.step-card,
.rules-card,
.stay-card,
.simple-staff-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.22);
}

.feature-card::before,
.app-card::before,
.rp-photo-card::before,
.step-card::before,
.rules-card::before,
.simple-staff-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 217, 255, 0.14), transparent 36%);
  opacity: 0;
  transition: 0.25s ease;
  pointer-events: none;
}

.feature-card:hover::before,
.app-card:hover::before,
.rp-photo-card:hover::before,
.step-card:hover::before,
.simple-staff-card:hover::before {
  opacity: 1;
}

.feature-card:hover,
.app-card:hover,
.rp-photo-card:hover,
.step-card:hover,
.simple-staff-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 60px rgba(47, 128, 255, 0.18);
}

.feature-card,
.step-card,
.rules-card {
  padding: 26px;
  transition: 0.25s ease;
}

.clickable-rule-card {
  cursor: pointer;
}

.icon,
.big-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #001525;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 34px rgba(47, 128, 255, 0.24);
  font-weight: 950;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}

.big-icon {
  flex: 0 0 auto;
  margin: 0;
}

.feature-card h3,
.app-card h3,
.rp-photo-card h3,
.step-card h3 {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.feature-card p,
.app-card p,
.rp-photo-card p,
.step-card p,
.rules-card p,
.simple-staff-card p,
.muted {
  color: var(--muted);
}

.panel-section {
  position: relative;
}

.app-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  min-height: 230px;
  padding: 28px;
  transition: 0.25s ease;
}

.featured-card {
  background:
    radial-gradient(circle at 24% 20%, rgba(56, 217, 255, 0.2), transparent 38%),
    var(--panel-strong);
  border-color: var(--line-strong);
}

.mini-label {
  color: var(--cyan) !important;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.app-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 950;
}

.city-life {
  background: linear-gradient(180deg, transparent, rgba(6, 18, 36, 0.5), transparent);
}

.rp-photo-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  transition: 0.25s ease;
}

.rp-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(2, 7, 18, 0.88) 78%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 42px);
  pointer-events: none;
}

.rp-photo-card h3,
.rp-photo-card p {
  position: relative;
  z-index: 2;
}

.scene-glow {
  position: absolute;
  inset: 0;
}

.police-scene .scene-glow {
  background:
    radial-gradient(circle at 24% 30%, rgba(59, 130, 246, 0.78), transparent 20%),
    radial-gradient(circle at 78% 25%, rgba(248, 113, 113, 0.52), transparent 18%),
    linear-gradient(135deg, #071a36, #030712);
}

.civilian-scene .scene-glow {
  background:
    radial-gradient(circle at 70% 30%, rgba(56, 217, 255, 0.38), transparent 22%),
    radial-gradient(circle at 22% 42%, rgba(250, 204, 21, 0.25), transparent 18%),
    linear-gradient(135deg, #092232, #030712);
}

.crime-scene .scene-glow {
  background:
    radial-gradient(circle at 35% 28%, rgba(168, 85, 247, 0.36), transparent 20%),
    radial-gradient(circle at 80% 38%, rgba(56, 217, 255, 0.34), transparent 20%),
    linear-gradient(135deg, #100b24, #030712);
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card strong {
  display: inline-flex;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.rules-faq {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-card h2 {
  font-size: 32px;
  margin-bottom: 18px;
}

details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  color: white;
  font-weight: 950;
}

details p {
  margin-top: 10px;
}

.rule-popup {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(1, 5, 14, 0.76);
  backdrop-filter: blur(16px);
}

.rule-popup.show {
  display: grid;
}

.rule-popup-box {
  width: min(940px, 100%);
  max-height: 88vh;
  overflow: hidden;
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: var(--panel-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), var(--glow);
}

.small-rule-popup {
  width: min(520px, 100%);
}

.rule-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.rule-language-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.rule-language-btn {
  min-height: 70px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  color: white;
  background: rgba(56, 217, 255, 0.08);
  cursor: pointer;
  font-weight: 950;
}

.rule-popup-content {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.rule-pdf-viewer {
  width: 100%;
  min-height: 66vh;
  border: 0;
  background: white;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 44px auto 0;
  padding: 34px;
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.7fr 1fr;
  gap: 26px;
  border-radius: 32px 32px 0 0;
  background: rgba(4, 11, 23, 0.88);
  border: 1px solid var(--line);
  border-bottom: 0;
}

.footer h3 {
  color: white;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-size: 14px;
}

.footer a:not(.logo):not(.btn) {
  display: block;
  color: var(--muted);
  margin-bottom: 9px;
  font-size: 14px;
}

.footer-brand .logo {
  margin-bottom: 18px;
}

.footer-brand .btn,
.stay-card .btn {
  margin-top: 18px;
}

.stay-card {
  padding: 22px;
  background:
    radial-gradient(circle at 18% 14%, rgba(56, 217, 255, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.035);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

/* Team page */
.team-hero {
  min-height: 600px;
  padding: 154px 7% 80px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 78% 38%, rgba(56, 217, 255, 0.24), transparent 28%),
    radial-gradient(circle at 18% 42%, rgba(47, 128, 255, 0.24), transparent 24%);
}

.team-hero div {
  max-width: 820px;
}

.team-hero p {
  margin-top: 22px;
}

.team-page-section {
  min-height: 420px;
}

.simple-staff-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  max-width: 1120px;
  margin: 0 auto;
}

.simple-staff-card {
  padding: 22px;
  text-align: center;
  color: white;
  transition: 0.25s ease;
}

.simple-staff-card img {
  width: 105px;
  height: 105px;
  border-radius: 26px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 38px rgba(47, 128, 255, 0.22);
}

.simple-staff-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.simple-staff-card p {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(56, 217, 255, 0.1);
  border: 1px solid var(--line);
  color: #dff8ff;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 1080px) {
  .site-header {
    border-radius: 24px;
  }

  .hero,
  .split-intro {
    grid-template-columns: 1fr;
  }

  .status-card {
    max-width: 640px;
  }

  .compact-grid,
  .app-grid,
  .rp-gallery,
  .steps,
  .rules-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    padding: 10px;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: rgba(4, 11, 23, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.show {
    display: flex;
  }

  .nav a,
  .nav button {
    justify-content: flex-start;
  }

  .hero,
  .team-hero {
    padding: 132px 5% 56px;
    min-height: auto;
  }

  .hero h1,
  .team-hero h1 {
    font-size: clamp(42px, 14vw, 62px);
    letter-spacing: -2px;
  }

  .hero-metrics,
  .compact-grid,
  .app-grid,
  .rp-gallery,
  .steps,
  .rules-faq,
  .stat-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 5%;
  }

  .section-title {
    align-items: center;
  }

  .section-title span {
    display: none;
  }

  .app-card {
    flex-direction: column;
  }

  .footer {
    width: calc(100% - 24px);
    padding: 24px;
    grid-template-columns: 1fr;
  }

  .rule-language-buttons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo strong {
    font-size: 18px;
  }

  .logo small {
    display: none;
  }

  .logo-icon {
    width: 42px;
    height: 42px;
  }

  .hero-buttons,
  .btn {
    width: 100%;
  }

  .btn {
    padding-inline: 18px;
  }
}

/* Goldstone-inspired community feature update */
.center-copy {
  margin: 10px auto 0;
  text-align: center;
  font-size: 16px;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #e8f7ff;
  border-color: rgba(255, 255, 255, 0.16);
}

.stream-grid,
.requirements-grid,
.mission-grid,
.server-dashboard {
  display: grid;
  gap: 20px;
}

.stream-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stream-card,
.ticket-card,
.requirement-card,
.about-card,
.server-panel,
.footer-stats article {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.22);
}

.stream-card {
  min-height: 320px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.stream-preview {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 24%, rgba(251, 113, 133, 0.38), transparent 18%),
    radial-gradient(circle at 78% 28%, rgba(56, 217, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #071a36, #030712 70%);
}

.stream-preview.secondary {
  background:
    radial-gradient(circle at 20% 25%, rgba(47, 128, 255, 0.46), transparent 24%),
    radial-gradient(circle at 72% 38%, rgba(250, 204, 21, 0.20), transparent 20%),
    linear-gradient(135deg, #041326, #030712 72%);
}

.stream-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(2, 7, 18, 0.90) 78%);
}

.stream-preview span {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: rgba(251, 113, 133, 0.2);
  border: 1px solid rgba(251, 113, 133, 0.48);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: 1px;
}

.stream-card h3,
.stream-card p,
.stream-card a {
  position: relative;
  z-index: 2;
}

.stream-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 950;
}

.ticket-card {
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background:
    radial-gradient(circle at 8% 50%, rgba(56, 217, 255, 0.18), transparent 19%),
    linear-gradient(135deg, rgba(10, 23, 44, 0.98), rgba(4, 11, 23, 0.94));
  border-style: dashed;
}

.ticket-card h3 {
  font-size: 28px;
  text-transform: uppercase;
}

.ticket-card p:not(.mini-label) {
  color: var(--muted);
  margin-top: 8px;
}

.ticket-cut {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  right: 210px;
  top: -28px;
  background: var(--bg);
  box-shadow: 0 155px 0 var(--bg);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.category-filter button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: #d9e8fb;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-weight: 900;
}

.category-filter button.active,
.category-filter button:hover {
  color: white;
  border-color: var(--line-strong);
  background: var(--cyan-soft);
}

.app-card.is-hidden {
  display: none;
}

.requirements-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.requirement-card {
  padding: 28px;
}

.requirement-card h3 {
  margin-bottom: 18px;
  text-transform: uppercase;
}

.requirement-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.requirement-card li {
  color: #c5d5e8;
}

.requirement-card li::before {
  content: "✓";
  color: var(--green);
  font-weight: 950;
  margin-right: 10px;
}

.review-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-strip span {
  padding: 16px;
  border-radius: 18px;
  text-align: center;
  background: rgba(56, 217, 255, 0.08);
  border: 1px solid var(--line);
  color: white;
  font-weight: 950;
}

.about-card {
  padding: clamp(28px, 5vw, 48px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 30px;
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 217, 255, 0.14), transparent 24%),
    var(--panel-strong);
}

.mission-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-grid article {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(125, 211, 252, 0.16);
}

.mission-grid strong,
.mission-grid span {
  display: block;
}

.mission-grid strong {
  color: white;
  margin-bottom: 8px;
}

.mission-grid span {
  color: var(--muted);
}

.server-dashboard {
  grid-template-columns: 1.3fr repeat(2, minmax(0, 0.7fr));
  align-items: stretch;
}

.server-panel {
  min-height: 150px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main-server-panel {
  grid-row: span 2;
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 217, 255, 0.18), transparent 35%),
    var(--panel-strong);
}

.server-panel span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1px;
}

.server-panel strong,
.main-server-panel h3 {
  margin-top: 8px;
  color: white;
  font-size: 28px;
  text-transform: uppercase;
}

.main-server-panel p {
  margin-top: 12px;
  color: var(--muted);
}

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

.mini-subscribe {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.mini-subscribe input {
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.06);
}

.mini-subscribe button {
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  color: #001525;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  font-weight: 950;
  cursor: pointer;
}

.stay-card small {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
}

.footer-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.footer-stats article {
  padding: 18px;
  text-align: center;
}

.footer-stats strong,
.footer-stats span {
  display: block;
}

.footer-stats strong {
  font-size: 24px;
  color: white;
}

.footer-stats span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

.back-top {
  display: inline !important;
  color: var(--cyan) !important;
  margin-left: 10px;
}

@media (max-width: 1080px) {
  .stream-grid,
  .requirements-grid,
  .about-card,
  .server-dashboard {
    grid-template-columns: 1fr;
  }

  .main-server-panel {
    grid-row: auto;
  }

  .ticket-cut {
    display: none;
  }
}

@media (max-width: 780px) {
  .ticket-card,
  .review-strip,
  .mission-grid,
  .footer-stats {
    grid-template-columns: 1fr;
  }

  .ticket-card {
    text-align: left;
  }

  .stream-grid {
    grid-template-columns: 1fr;
  }

  .mini-subscribe,
  .server-actions {
    flex-direction: column;
  }
}

.footer {
  grid-template-columns: 1.2fr 0.65fr 0.65fr 0.65fr 1fr;
}

@media (max-width: 1080px) {
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .footer {
    grid-template-columns: 1fr;
  }
}

/* Asterisk custom logo update */
.logo-image {
  width: 70px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(56, 217, 255, 0.38));
  flex: 0 0 auto;
}

.hero-server-logo {
  display: block;
  width: min(360px, 82vw);
  height: auto;
  margin: 0 0 18px;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 20px rgba(47, 128, 255, 0.35));
}

.input-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
}

.simple-staff-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 760px) {
  .logo-image {
    width: 58px;
    height: 42px;
  }

  .hero-server-logo {
    margin-inline: auto;
  }
}

/* Maintenance update: announcements, tickets and status polish */
.announcements-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.announcement-card,
.ticket-cta-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(10, 18, 32, 0.96), rgba(12, 42, 68, 0.7));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.announcement-card {
  padding: 24px;
  min-height: 210px;
}

.announcement-card::before,
.ticket-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56, 217, 255, 0.16), transparent 42%);
  pointer-events: none;
}

.announcement-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(56, 217, 255, 0.1);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.announcement-card h3,
.announcement-card p,
.announcement-card small,
.ticket-cta-card > * {
  position: relative;
}

.announcement-card h3 {
  margin: 0 0 10px;
}

.announcement-card p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.announcement-card small {
  color: var(--muted);
  opacity: 0.78;
}

.announcement-card.pinned {
  border-color: rgba(52, 211, 153, 0.42);
}

.ticket-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
}

.ticket-cta-card h2 {
  margin: 0 0 8px;
}

.ticket-page .apply-card {
  max-width: 920px;
}

.ticket-page select,
.ticket-page input,
.ticket-page textarea {
  width: 100%;
}

.ticket-page .application-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ticket-page .application-form .full-row {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .announcements-grid {
    grid-template-columns: 1fr;
  }

  .ticket-cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .ticket-page .application-form {
    grid-template-columns: 1fr;
  }
}

/* Support portal v2: fixed layout, no header overlap, wider responsive cards */
.support-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.support-header {
  width: min(1180px, calc(100vw - 32px));
}

.support-page,
.apply-page {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 150px 0 90px;
  min-height: 100vh;
}

.support-hero-card,
.apply-card,
.support-category-grid article {
  border: 1px solid rgba(125, 211, 252, 0.24);
  background:
    radial-gradient(circle at 12% 10%, rgba(56, 217, 255, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(9, 20, 38, 0.96), rgba(3, 7, 18, 0.9));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.support-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
  padding: clamp(26px, 4vw, 46px);
  border-radius: 34px;
  margin-bottom: 22px;
}

.support-hero-card h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -2.6px;
  text-transform: uppercase;
  margin: 8px 0 16px;
}

.support-lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

.support-status-card {
  min-height: 190px;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 28% 18%, rgba(41, 231, 129, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(125, 211, 252, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.support-status-card span,
.secure-pill {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.support-status-card strong {
  margin-top: 8px;
  font-size: 40px;
  line-height: 1;
  text-transform: uppercase;
}

.support-status-card small {
  margin-top: 14px;
  color: var(--muted);
}

.support-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.support-category-grid article {
  border-radius: 24px;
  padding: 22px;
}

.support-category-grid span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--cyan);
  font-weight: 950;
  letter-spacing: 1px;
}

.support-category-grid strong,
.support-category-grid small {
  display: block;
}

.support-category-grid strong {
  font-size: 18px;
  text-transform: uppercase;
}

.support-category-grid small {
  margin-top: 8px;
  color: var(--muted);
}

.apply-card.support-form-card,
.apply-card {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 32px;
}

.form-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.form-heading-row h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}

.secure-pill {
  display: inline-flex;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  color: #001525;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 28px rgba(47, 128, 255, 0.25);
}

.discord-gate.clean-gate,
.discord-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(56, 217, 255, 0.075);
  border: 1px solid rgba(125, 211, 252, 0.22);
}

.discord-profile {
  justify-content: flex-start;
}

.discord-profile img {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.discord-profile strong,
.discord-profile span {
  display: block;
}

.discord-profile span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.application-form,
.support-ticket-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.application-form label {
  display: grid;
  gap: 8px;
  color: #dcefff;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  min-width: 0;
  color: white;
  background: rgba(1, 8, 20, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 16px;
  padding: 15px 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.application-form textarea {
  resize: vertical;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  border-color: rgba(56, 217, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(56, 217, 255, 0.1);
}

.application-form .full-row,
.support-ticket-form .full-row {
  grid-column: 1 / -1;
}

.notice {
  min-height: 24px;
  margin-top: 18px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.notice-success {
  color: var(--green);
}

.notice-error {
  color: var(--red);
}

@media (max-width: 920px) {
  .support-page,
  .apply-page {
    padding-top: 132px;
  }

  .support-hero-card,
  .support-category-grid,
  .application-form,
  .support-ticket-form {
    grid-template-columns: 1fr;
  }

  .discord-gate.clean-gate,
  .form-heading-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .support-header {
    position: sticky;
    top: 10px;
    transform: none;
    left: auto;
    margin: 10px auto 0;
    border-radius: 28px;
    flex-direction: column;
    align-items: stretch;
  }

  .support-page,
  .apply-page {
    padding-top: 28px;
    width: min(100% - 20px, 1180px);
  }

  .support-hero-card h1 {
    letter-spacing: -1.5px;
  }

  .nav {
    justify-content: center;
  }
}

/* Ticket chat upgrade */
.ticket-chat-card {
  margin-top: 22px !important;
  max-width: 1180px !important;
}

.ticket-chat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.my-ticket-list,
.ticket-message-thread {
  min-width: 0;
}

.my-ticket-list {
  display: grid;
  gap: 10px;
}

.my-ticket-item {
  width: 100%;
  text-align: left;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(1, 8, 20, 0.72);
  color: white;
  cursor: pointer;
}

.my-ticket-item.active,
.my-ticket-item:hover {
  border-color: rgba(56, 217, 255, 0.7);
  background: rgba(56, 217, 255, 0.1);
}

.my-ticket-item strong,
.my-ticket-item span {
  display: block;
  overflow-wrap: anywhere;
}

.my-ticket-item span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.ticket-chat-panel {
  min-width: 0;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(1, 8, 20, 0.48);
}

.ticket-message-thread {
  display: grid;
  gap: 12px;
  max-height: 480px;
  overflow: auto;
  padding: 14px 2px;
}

.ticket-message {
  max-width: min(760px, 92%);
  padding: 13px 15px;
  border-radius: 18px;
  border: 1px solid rgba(125, 211, 252, 0.14);
  background: rgba(255,255,255,0.045);
}

.ticket-message.staff {
  justify-self: end;
  border-color: rgba(56, 217, 255, 0.35);
  background: rgba(56, 217, 255, 0.1);
}

.ticket-message strong,
.ticket-message p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.ticket-message strong {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  margin-bottom: 6px;
}

.ticket-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.ticket-reply-form textarea {
  width: 100%;
  min-width: 0;
  color: white;
  background: rgba(1, 8, 20, 0.78);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 16px;
  padding: 15px 16px;
}

@media (max-width: 860px) {
  .ticket-chat-layout,
  .ticket-reply-form {
    grid-template-columns: 1fr;
  }
}


.btn.is-processing {
  pointer-events: none;
  opacity: 0.82;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.btn.is-processing::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: asteriskSpin 0.75s linear infinite;
}

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