:root {
  --bg-body: #050609;
  --bg-surface: #0b0e16;
  --bg-card: #101522;
  --bg-card-hover: #151c2e;
  --bg-topbar: #080a10;
  --border-subtle: #1e293b;
  --border-strong: #2c3a52;
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --red: #dc2626;
  --red-bright: #ef4444;
  --red-glow: rgba(220, 38, 38, 0.2);
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-glow: rgba(37, 99, 235, 0.22);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

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

button,
input,
textarea {
  font-family: inherit;
}

/* Subtle geometric background pattern for hero & bulletin bands */
.pattern-bg {
  background-color: #090c14;
  background-image:
    radial-gradient(circle at 18% 25%, rgba(220, 38, 38, 0.12), transparent 42%),
    radial-gradient(circle at 82% 70%, rgba(37, 99, 235, 0.14), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 34px 34px, 34px 34px;
}

/* Top Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 10, 16, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-inner {
  max-width: 1220px;
  margin: 0 auto;
  height: 66px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  box-shadow: inset 0 -2px 0 var(--red-bright);
}

.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 190px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown.open {
  display: flex;
}

.nav-dropdown a {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
}

.nav-dropdown a:hover {
  background: rgba(37, 99, 235, 0.16);
  color: #fff;
}

.topbar-right {
  position: relative;
  display: flex;
  align-items: center;
}

.login-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--red-bright);
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.login-btn:hover {
  background: var(--red-bright);
  transform: translateY(-1px);
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.profile-trigger:hover {
  border-color: var(--blue-bright);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red));
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.profile-name {
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-role {
  font-size: 11px;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  display: inline-block;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 4px;
}

.profile-menu.open {
  display: flex;
}

.menu-item {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.menu-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.menu-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}

.menu-accent-line {
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--blue));
  margin: 4px 0;
  border-radius: 2px;
}

.menu-logout {
  margin-top: 6px;
  width: 100%;
  padding: 9px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(220, 38, 38, 0.14);
  color: #fca5a5;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.menu-logout:hover {
  background: var(--red);
  color: #fff;
}

/* Home Hero Band */
.hero-wrap {
  border-bottom: 1px solid var(--border-subtle);
}

.hero-pattern-strip {
  padding: 68px 24px;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-left {
  display: flex;
  align-items: stretch;
  gap: 22px;
  max-width: 620px;
}

.hero-vertical-line {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red-bright), var(--blue-bright));
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.hero-subtitle {
  margin: 0;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-emblem {
  position: relative;
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.hero-emblem svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.65));
}

/* Shared Containers & Sections */
.page-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.section-heading-row h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}

.section-heading-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dark-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.dark-card:hover {
  transform: translateY(-2px);
  border-color: var(--blue-bright);
  background: var(--bg-card-hover);
}

.card-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pill-red {
  background: var(--red-glow);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.pill-blue {
  background: var(--blue-glow);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Games + How To Play */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-card h3 {
  margin: 0;
  font-size: 22px;
}

.howto-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--blue-bright);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.howto-box h4 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
}

.howto-box ol {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
  display: grid;
  gap: 6px;
}

/* Applications Page */
.ad-banner-wrap {
  text-align: center;
  margin-bottom: 30px;
}

.ad-banner {
  background: linear-gradient(90deg, #13090c, #0c1428, #13090c);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ad-caption {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #93c5fd;
}

.apps-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 12px;
}

.btn-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
}

.btn-new:hover {
  background: var(--blue-bright);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px;
}

.filter-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-weight: 800;
  cursor: pointer;
}

.filter-icon.active,
.filter-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.filter-icon.ok.active { color: #60a5fa; }
.filter-icon.wait.active { color: #e2e8f0; }
.filter-icon.no.active { color: #f87171; }

.app-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 22px 22px;
  margin-top: 14px;
}

.app-float-icon {
  position: absolute;
  top: -18px;
  left: 20px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  border: 2px solid var(--bg-body);
}

.app-status-dot {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.app-status-dot.open {
  background: var(--blue-glow);
  color: #93c5fd;
  border: 1px solid var(--blue-bright);
}

.app-status-dot.pending {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-strong);
}

.app-status-dot.closed {
  background: var(--red-glow);
  color: #fca5a5;
  border: 1px solid var(--red-bright);
}

.app-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.app-card .sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.app-card .stamp {
  font-size: 12px;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Insights / Bulletin Page */
.bulletin-hero {
  text-align: center;
  padding: 64px 24px 52px;
  border-bottom: 1px solid var(--border-subtle);
}

.bulletin-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--red-bright);
  margin-bottom: 8px;
}

.bulletin-hero h1 {
  margin: 0 0 10px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.bulletin-hero p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-muted);
}

.featured-wrap {
  max-width: 1180px;
  margin: 34px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.featured-card {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.featured-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
}

.featured-icon.blue {
  background: var(--blue);
}

.featured-info h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.featured-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.recents-divider {
  max-width: 1180px;
  margin: 42px auto 22px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 18px;
  font-weight: 800;
}

.recents-divider .stars {
  color: var(--red-bright);
  letter-spacing: 4px;
}

.search-row {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.search-box {
  width: 100%;
  max-width: 420px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: #fff;
  font-size: 14px;
}

.recents-grid {
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.recent-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cat-pill {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.22);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Apply Now & Team Pages */
.apply-hero {
  text-align: center;
  margin-bottom: 38px;
}

.apply-hero h1 {
  margin: 0 0 10px;
  font-size: 36px;
  font-weight: 900;
}

.apply-hero p {
  margin: 0 auto;
  max-width: 580px;
  color: var(--text-muted);
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.role-card:hover {
  border-color: var(--red-bright);
  transform: translateY(-2px);
}

.role-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.role-badge.blue { background: var(--blue); }
.role-badge.red { background: var(--red); }
.role-badge.navy { background: #1e3a8a; }
.role-badge.slate { background: #1e293b; border: 1px solid var(--blue-bright); }
.role-badge.crimson { background: #991b1b; }

.role-card h3 {
  margin: 0 0 6px;
}

.role-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Appeal Center Split Panel */
.appeal-shell {
  max-width: 1180px;
  margin: 36px auto 72px;
  padding: 0 24px;
}

.appeal-board {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.appeal-left {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-ticket {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 0;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn-ticket:hover {
  background: var(--red-bright);
}

.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-item {
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: #fff;
  cursor: pointer;
}

.ticket-item.active {
  border-color: var(--blue-bright);
  background: rgba(37, 99, 235, 0.14);
}

.appeal-right {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.appeal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-square {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: #93c5fd;
  font-weight: 800;
  cursor: pointer;
}

.appeal-form {
  display: grid;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.appeal-form input,
.appeal-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: #fff;
}

/* Notifications Page */
.notif-tab-bar {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.notif-tab {
  padding: 10px 18px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--red-bright);
}

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

.notif-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
}

.notif-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.notif-title {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Settings Page */
.settings-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  margin-top: 24px;
}

.settings-menu-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.settings-menu-head {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.settings-menu-item {
  padding: 11px 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-muted);
}

.settings-menu-item.active,
.settings-menu-item:hover {
  background: rgba(37, 99, 235, 0.16);
  color: #fff;
}

.settings-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.settings-input {
  width: 100%;
  max-width: 420px;
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: #fff;
  margin-bottom: 14px;
}

.btn-unlink {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--red-bright);
  background: var(--red-glow);
  color: #fca5a5;
  font-weight: 700;
  cursor: pointer;
}

.btn-unlink:hover {
  background: var(--red);
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }

  .grid-3,
  .grid-2,
  .featured-wrap,
  .recents-grid,
  .role-grid,
  .notif-grid,
  .appeal-board,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}