﻿/* ================================================
   Chicago City Roleplay — MAIN STYLES
   Blue-themed, dark, professional. Judah's Customs vibe.
   ================================================ */

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

:root {
  --bg:        #09090f;
  --bg2:       #0e0e18;
  --bg3:       #13131f;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(59,130,246,0.25);
  --blue:      #3b82f6;
  --blue-dark: #1d4ed8;
  --blue-glow: rgba(59,130,246,0.15);
  --text:      #f0f0f8;
  --text2:     #8b8fa8;
  --text3:     #5a5e78;
  --green:     #10b981;
  --red:       #ef4444;
  --yellow:    #f59e0b;
  --purple:    #8b5cf6;
  --cyan:      #06b6d4;
  --orange:    #f97316;
  --radius:    12px;
  --radius-lg: 18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea, select {
  font-family: inherit;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .6rem .9rem;
  width: 100%;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
select option { background: var(--bg3); }
textarea { resize: vertical; }

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  transition: background .2s, transform .1s;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text2);
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: .9rem;
  border: 1px solid var(--border);
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--text); }
.btn-dashboard {
  background: var(--blue);
  color: #fff;
  padding: .45rem 1.1rem;
  border-radius: 7px;
  font-weight: 600;
  font-size: .85rem;
  transition: background .2s;
}
.btn-dashboard:hover { background: var(--blue-dark); }
.w-full { width: 100%; justify-content: center; }

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- ANNOUNCEMENT BAR ---- */
.announcement-bar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: #fff;
  text-align: center;
  padding: .5rem 1rem;
  font-size: .82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 200;
}
.announcement-bar button {
  background: none;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  position: absolute;
  right: 1rem;
}
.announcement-bar button:hover { color: #fff; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9,9,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: .85rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
}
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem; color: #fff;
  flex-shrink: 0;
}
.logo-icon.large { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
  flex: 1;
}
.nav-links a {
  color: var(--text2);
  font-size: .875rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 7px;
  transition: all .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active { color: var(--blue); }
.nav-right { margin-left: auto; }
.nav-mobile-toggle {
  display: none;
  background: none;
  color: var(--text);
  font-size: 1.2rem;
  margin-left: auto;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem;
  gap: .25rem;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  color: var(--text2);
  font-size: .9rem;
  padding: .5rem .75rem;
  border-radius: 7px;
  font-weight: 500;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.mobile-menu.open { display: flex; }
@media(max-width:768px) {
  .nav-links, .nav-right { display: none; }
  .nav-mobile-toggle { display: block; }
}

/* ---- HERO ---- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 5rem 2rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
}
.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--blue);
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-trusted {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text2);
  font-size: .85rem;
}
.trusted-avatars { display: flex; }
.av {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
  margin-left: -6px;
}
.av:first-child { margin-left: 0; }
.av1 { background: #3b82f6; }
.av2 { background: #8b5cf6; }
.av3 { background: #10b981; }
.av4 { background: #f59e0b; }
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 340px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.1);
}
.hcard-header {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1.25rem;
}
.hcard-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.hcard-dot.red { background: #ef4444; }
.hcard-dot.yellow { background: #f59e0b; }
.hcard-dot.green { background: #10b981; }
.hcard-title {
  margin-left: .5rem;
  font-size: .8rem;
  color: var(--text2);
  font-weight: 500;
}
.hcard-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.hcard-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .6rem;
  text-align: center;
}
.hstat-num { display: block; font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.hstat-label { font-size: .7rem; color: var(--text2); }
.hcard-log-title {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.hcard-log-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text2);
  padding: .3rem 0;
  border-bottom: 1px solid var(--border);
}
.hcard-log-item:last-child { border: none; }
.log-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.log-dot.blue { background: var(--blue); }
.log-dot.green { background: var(--green); }
.log-dot.red { background: var(--red); }
.log-dot.yellow { background: var(--yellow); }
@media(max-width:900px) {
  .hero { flex-direction: column; padding: 3rem 1.5rem; gap: 2.5rem; }
  .hero-visual { width: 100%; }
  .hero-card { width: 100%; max-width: 380px; }
}

/* ---- STATS BAR ---- */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 2.5rem 2rem;
}
.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.02em;
}
.stat-label { font-size: .8rem; color: var(--text2); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.stat-divider { width: 1px; height: 50px; background: var(--border); }
.stats-note { text-align: center; font-size: .75rem; color: var(--text3); margin-top: 1.5rem; }

/* ---- SECTIONS ---- */
.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.section-sub {
  color: var(--text2);
  font-size: .95rem;
  max-width: 540px;
}

/* ---- FEATURES ---- */
.features-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}
.features-section .section-sub { margin: 0 auto 3rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  text-align: left;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.feat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.feat-icon.blue { background: rgba(59,130,246,0.15); }
.feat-icon.purple { background: rgba(139,92,246,0.15); }
.feat-icon.cyan { background: rgba(6,182,212,0.15); }
.feat-icon.green { background: rgba(16,185,129,0.15); }
.feat-icon.orange { background: rgba(249,115,22,0.15); }
.feat-icon.red { background: rgba(239,68,68,0.15); }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .875rem; color: var(--text2); line-height: 1.65; }

/* ---- ACTIVITY SECTION ---- */
.activity-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem;
  display: flex;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: flex-start;
}
.activity-left { flex: 1; }
.activity-left h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: .75rem; line-height: 1.2; }
.activity-left p { color: var(--text2); font-size: .9rem; margin-bottom: 2rem; }
.activity-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.astat { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.astat-num { display: block; font-size: 1.7rem; font-weight: 900; margin-bottom: .2rem; }
.astat-label { font-size: .75rem; color: var(--text2); text-transform: uppercase; letter-spacing: .05em; }
.activity-right { flex: 1; }
.chart-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow: hidden;
}
.chart-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}
.chart-tab {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: .35rem .85rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 500;
  transition: all .2s;
}
.chart-tab.active, .chart-tab:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.chart-legend {
  display: flex;
  gap: 1rem;
  font-size: .78rem;
  color: var(--text2);
  margin-bottom: 1rem;
}
.leg-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: .3rem;
}
.leg-dot.green { background: var(--green); }
.leg-dot.blue { background: var(--blue); }
.leg-dot.purple { background: var(--purple); }
@media(max-width:900px) {
  .activity-section { flex-direction: column; }
}

/* ---- DEPARTMENTS ---- */
.dept-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
  text-align: center;
}
.dept-section .section-title { margin-bottom: 2.5rem; }
.dept-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; text-align: left; }
.dept-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s;
}
.dept-card:hover { border-color: var(--border2); }
.dept-badge {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800;
  margin-bottom: 1rem;
}
.dept-badge.blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.dept-badge.red { background: rgba(239,68,68,0.15); color: var(--red); }
.dept-badge.green { background: rgba(16,185,129,0.15); color: var(--green); }
.dept-badge.purple { background: rgba(139,92,246,0.15); color: var(--purple); }
.dept-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.dept-card p { font-size: .85rem; color: var(--text2); margin-bottom: 1rem; }
.dept-link { font-size: .82rem; font-weight: 600; color: var(--blue); }
.dept-link:hover { text-decoration: underline; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 3rem 2rem 1.5rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: flex;
  gap: 4rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  font-size: 1rem;
}
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; }
.fnav-col { display: flex; flex-direction: column; gap: .5rem; }
.fnav-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); margin-bottom: .25rem; }
.fnav-col a { font-size: .85rem; color: var(--text3); transition: color .2s; }
.fnav-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.footer-bottom p { font-size: .78rem; color: var(--text3); }

/* ---- PAGE HEADER ---- */
.page-header {
  position: relative;
  padding: 5rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-header .hero-glow {
  left: 50%;
  transform: translateX(-50%);
  top: -50px;
}
.page-header-content { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -.02em; margin-bottom: .75rem; }
.page-header p { color: var(--text2); font-size: .95rem; max-width: 500px; margin: 0 auto; }

/* ---- RULES PAGE ---- */
.rules-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.rules-sidebar { width: 240px; flex-shrink: 0; position: sticky; top: 90px; }
.sidebar-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.sidebar-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); margin-bottom: .75rem; }
.sidebar-link {
  display: block;
  font-size: .85rem;
  color: var(--text2);
  padding: .4rem .6rem;
  border-radius: 6px;
  transition: all .15s;
  margin-bottom: .1rem;
}
.sidebar-link:hover, .sidebar-link.active { background: rgba(59,130,246,0.1); color: var(--blue); }
.sidebar-warn { border-color: rgba(245,158,11,0.25); background: rgba(245,158,11,0.05); }
.sidebar-warn-icon { font-size: 1.5rem; margin-bottom: .5rem; }
.sidebar-warn p { font-size: .8rem; color: var(--text2); line-height: 1.6; }
.rules-main { flex: 1; min-width: 0; }
.rules-section { margin-bottom: 3rem; }
.rules-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.rules-num { font-size: 2rem; font-weight: 900; color: rgba(59,130,246,0.25); line-height: 1; }
.rules-section-header h2 { font-size: 1.4rem; font-weight: 800; }
.rule-list { display: flex; flex-direction: column; gap: .75rem; }
.rule-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color .2s;
}
.rule-item:hover { border-color: var(--border2); }
.rule-tag {
  flex-shrink: 0;
  padding: .2rem .65rem;
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .2rem;
}
.rule-tag.critical { background: rgba(239,68,68,0.15); color: #ef4444; }
.rule-tag.high { background: rgba(245,158,11,0.15); color: #f59e0b; }
.rule-tag.medium { background: rgba(59,130,246,0.15); color: var(--blue); }
.rule-tag.low { background: rgba(16,185,129,0.15); color: var(--green); }
.rule-body h4 { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.rule-body p { font-size: .85rem; color: var(--text2); line-height: 1.65; }
.punishment-table-wrap { overflow-x: auto; }
.punishment-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.punishment-table th {
  text-align: left; padding: .75rem 1rem;
  background: var(--bg3); color: var(--text2);
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.punishment-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.punishment-table tr:last-child td { border: none; }
.ptag {
  padding: .2rem .6rem; border-radius: 5px;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase;
}
.ptag.warn { background: rgba(59,130,246,0.15); color: var(--blue); }
.ptag.kick { background: rgba(245,158,11,0.15); color: #f59e0b; }
.ptag.ban { background: rgba(239,68,68,0.15); color: var(--red); }
.ptag.perm { background: rgba(139,92,246,0.2); color: var(--purple); }
.appeal-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.appeal-icon { font-size: 2.5rem; }
.appeal-text h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.appeal-text p { font-size: .875rem; color: var(--text2); line-height: 1.7; margin-bottom: .5rem; }
@media(max-width:768px) {
  .rules-layout { flex-direction: column; }
  .rules-sidebar { width: 100%; position: static; }
}

/* ---- PARTNERS PAGE ---- */
.partners-page { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 6rem; }
.partners-intro { margin-bottom: 1rem; }
.pintro-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.pintro-icon { font-size: 2rem; }
.pintro-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.pintro-card p { font-size: .875rem; color: var(--text2); }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.partner-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s;
  position: relative;
}
.partner-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.partner-card.featured { border-color: rgba(245,158,11,0.35); }
.partner-badge {
  position: absolute;
  top: .75rem; right: .75rem;
  background: rgba(245,158,11,0.15);
  color: #f59e0b;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 5px;
  text-transform: uppercase;
}
.partner-logo-wrap { margin-bottom: 1rem; }
.partner-logo-placeholder {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 800; color: #fff;
}
.partner-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.partner-type {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.partner-type.pd { background: rgba(59,130,246,0.15); color: var(--blue); }
.partner-type.fd { background: rgba(239,68,68,0.15); color: var(--red); }
.partner-type.ems { background: rgba(16,185,129,0.15); color: var(--green); }
.partner-type.civ { background: rgba(139,92,246,0.15); color: var(--purple); }
.partner-type.design { background: rgba(6,182,212,0.15); color: var(--cyan); }
.partner-info p { font-size: .85rem; color: var(--text2); line-height: 1.65; margin-bottom: .75rem; }
.partner-stats { display: flex; gap: 1rem; font-size: .78rem; color: var(--text3); margin-bottom: .75rem; }
.partner-link { font-size: .82rem; font-weight: 600; color: var(--blue); }
.partner-link:hover { text-decoration: underline; }
.partner-cta-section { margin-top: 4rem; }
.partner-cta-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}
.partner-cta-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: .75rem; }
.partner-cta-card p { color: var(--text2); font-size: .9rem; max-width: 540px; margin: 0 auto 1.5rem; }
.pcta-requirements {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.preq {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: var(--text2);
}
.preq-icon { color: var(--green); }

/* ---- TEAM PAGE ---- */
.team-page { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 6rem; }
.team-tier-label { display: flex; align-items: center; gap: 1rem; margin: 2.5rem 0 1.25rem; }
.tier-badge {
  padding: .3rem .9rem; border-radius: 6px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.tier-badge.gold { background: rgba(245,158,11,0.15); color: #f59e0b; }
.tier-badge.blue { background: rgba(59,130,246,0.15); color: var(--blue); }
.tier-badge.purple { background: rgba(139,92,246,0.15); color: var(--purple); }
.tier-badge.green { background: rgba(16,185,129,0.15); color: var(--green); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.team-grid.leadership { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.team-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .2s, transform .2s;
}
.team-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.team-card.sm { padding: 1.1rem 1.25rem; }
.team-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 800; color: #fff;
  margin-bottom: .75rem;
}
.team-avatar.owner { background: linear-gradient(135deg, #f59e0b, #d97706); }
.team-avatar.coowner { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.team-avatar.dir1, .team-avatar.dir2, .team-avatar.dir3 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.team-avatar.ss1, .team-avatar.ss2, .team-avatar.ss3, .team-avatar.ss4 { background: linear-gradient(135deg, #6d28d9, #4c1d95); }
.team-avatar.st1,.team-avatar.st2,.team-avatar.st3 { background: linear-gradient(135deg, #0891b2, #0e7490); }
.team-avatar.st4,.team-avatar.st5,.team-avatar.st6 { background: linear-gradient(135deg, #059669, #047857); }
.team-rank-badge {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .5rem;
}
.team-rank-badge.owner { color: #f59e0b; }
.team-rank-badge.coowner { color: var(--purple); }
.team-rank-badge.director { color: var(--blue); }
.team-rank-badge.senior { color: #6d28d9; }
.team-rank-badge.staff, .team-rank-badge.mod { color: var(--cyan); }
.team-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .2rem; }
.team-username { font-size: .78rem; color: var(--text3); display: block; margin-bottom: .6rem; }
.team-card p { font-size: .82rem; color: var(--text2); line-height: 1.6; margin-bottom: .75rem; }
.team-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.ttag { background: var(--bg3); border: 1px solid var(--border); font-size: .7rem; padding: .15rem .5rem; border-radius: 5px; color: var(--text2); }
.team-join-cta {
  margin-top: 4rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}
.team-join-cta h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: .75rem; }
.team-join-cta p { color: var(--text2); font-size: .9rem; max-width: 480px; margin: 0 auto 1.5rem; }

/* ---- STAFF INFO PAGE ---- */
.staff-info-page { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 6rem; }
.quick-links-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.qlink-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 600;
  transition: all .2s;
}
.qlink-card.blue { background: rgba(59,130,246,0.08); }
.qlink-card.purple { background: rgba(139,92,246,0.08); }
.qlink-card.green { background: rgba(16,185,129,0.08); }
.qlink-card.orange { background: rgba(249,115,22,0.08); }
.qlink-card:hover { transform: translateY(-2px); border-color: var(--border2); }
.qlink-icon { font-size: 1.25rem; }
.info-section { margin-bottom: 4rem; }
.info-section h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.rank-table-wrap { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.rank-table th {
  text-align: left; padding: .75rem 1rem;
  background: var(--bg3); color: var(--text2);
  font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.rank-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--border); }
.rank-table tr:last-child td { border: none; }
.rtag { padding: .2rem .65rem; border-radius: 5px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.rtag.owner { background: rgba(245,158,11,0.15); color: #f59e0b; }
.rtag.coowner { background: rgba(139,92,246,0.15); color: var(--purple); }
.rtag.director { background: rgba(59,130,246,0.15); color: var(--blue); }
.rtag.senior { background: rgba(109,40,217,0.15); color: #7c3aed; }
.rtag.mod { background: rgba(6,182,212,0.15); color: var(--cyan); }
.rtag.trial { background: rgba(16,185,129,0.15); color: var(--green); }
.resp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.resp-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.resp-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: .85rem;
}
.resp-icon.blue { background: rgba(59,130,246,0.15); }
.resp-icon.purple { background: rgba(139,92,246,0.15); }
.resp-icon.green { background: rgba(16,185,129,0.15); }
.resp-icon.cyan { background: rgba(6,182,212,0.15); }
.resp-icon.orange { background: rgba(249,115,22,0.15); }
.resp-icon.red { background: rgba(239,68,68,0.15); }
.resp-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.resp-card p { font-size: .85rem; color: var(--text2); line-height: 1.65; }
.guide-steps { display: flex; flex-direction: column; gap: 1rem; }
.guide-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .9rem;
}
.step-content h3 { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.step-content p { font-size: .85rem; color: var(--text2); line-height: 1.65; }
.step-content a { color: var(--blue); }
.staff-apply-cta {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  margin-top: 2rem;
}
.staff-apply-cta h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: .75rem; }
.staff-apply-cta p { color: var(--text2); font-size: .9rem; max-width: 480px; margin: 0 auto 1.5rem; }

/* ---- LOGIN PAGE ---- */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}
.login-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.login-glow {
  position: fixed;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.login-back {
  position: fixed;
  top: 1.5rem; left: 1.5rem;
  font-size: .85rem;
  color: var(--text2);
  z-index: 10;
  transition: color .2s;
}
.login-back:hover { color: var(--text); }
.login-center {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 1.5rem;
}
.login-card {
  background: rgba(14,14,24,0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.login-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.login-title {
  font-size: 1.8rem;
  font-weight: 900;
  text-align: center;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.login-sub {
  text-align: center;
  color: var(--text2);
  font-size: .875rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}
.btn-discord {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .75rem;
  background: #5865F2;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: .9rem;
  transition: background .2s, transform .1s;
  border: none;
}
.btn-discord:hover { background: #4752C4; transform: translateY(-1px); }
.login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text3);
  font-size: .8rem;
  margin: 1.25rem 0;
}
.login-divider::before, .login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.login-form .form-group { margin-bottom: 1rem; }
.login-form label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; color: var(--text2); }
.login-note {
  font-size: .75rem;
  color: var(--text3);
  text-align: center;
  margin-top: 1.25rem;
  line-height: 1.6;
}

/* ---- FORM GROUPS (global) ---- */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; color: var(--text2); }
.req { color: var(--red); }

/* ---- DEPARTMENTS PAGE ---- */
.dept-page-wrap { max-width: 1280px; margin: 0 auto; padding: 3rem 2rem 6rem; }

.dept-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.dept-hero-card {
  display: block;
  text-decoration: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  color: var(--text1);
}
.dept-hero-card:hover { transform: translateY(-4px); }

/* Per-dept accent colours */
.dept-hero-card.hp  { border-top: 3px solid #06b6d4; }
.dept-hero-card.hp:hover  { border-color: #06b6d4; }
.dept-hero-card.cpd { border-top: 3px solid #6366f1; }
.dept-hero-card.cpd:hover { border-color: #6366f1; }
.dept-hero-card.cfd { border-top: 3px solid #ef4444; }
.dept-hero-card.cfd:hover { border-color: #ef4444; }
.dept-hero-card.dot { border-top: 3px solid #f59e0b; }
.dept-hero-card.dot:hover { border-color: #f59e0b; }

.dhc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dhc-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text3);
}

.dhc-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.dept-hero-card.hp  .dhc-icon { color: #06b6d4; }
.dept-hero-card.cpd .dhc-icon { color: #6366f1; }
.dept-hero-card.cfd .dhc-icon { color: #ef4444; }
.dept-hero-card.dot .dhc-icon { color: #f59e0b; }

.dept-hero-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: .5rem;
  color: var(--text1);
}

.dept-hero-card p {
  font-size: .855rem;
  color: var(--text2);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.dhc-stats {
  display: flex;
  gap: 1rem;
  font-size: .78rem;
  color: var(--text3);
  margin-bottom: 1rem;
}

.dhc-members {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.dhc-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--blue);
}

.dept-hero-card.hp  .dhc-link { color: #06b6d4; }
.dept-hero-card.cpd .dhc-link { color: #6366f1; }
.dept-hero-card.cfd .dhc-link { color: #ef4444; }
.dept-hero-card.dot .dhc-link { color: #f59e0b; }

/* How it works section */
.dept-info-section { margin-top: 1rem; }
.dept-info-section .section-label { margin-bottom: .5rem; }
.dept-info-section .section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 2rem; }

.dept-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.dept-info-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.dept-info-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.dept-info-card p  { font-size: .85rem; color: var(--text2); line-height: 1.65; }
