/* ========================================
   UMBRELLA REGIMENT - Foxhole Warden Clan
   Color Scheme: Discord Dark + Warden Blue
   ======================================== */

/* CSS Variables */
:root {
  /* Discord Colors */
  --bg-dark: #36393f;
  --bg-darker: #2f3136;
  --bg-darkest: #202225;
  --bg-light: #40444b;
  --bg-hover: #42464d;
  
  /* Warden Blue Theme */
  --warden-blue: #1a3a5c;
  --warden-blue-light: #245580;
  --accent-blue: #3498db;
  --accent-blue-hover: #2980b9;
  
  /* Text Colors */
  --text-primary: #dcddde;
  --text-secondary: #b9bbbe;
  --text-muted: #72767d;
  --text-white: #ffffff;
  
  /* Status Colors */
  --success: #43b581;
  --success-hover: #3aa876;
  --error: #f04747;
  --error-hover: #d43d3d;
  --warning: #faa61a;
  --info: #3498db;
  
  /* Discord Accent */
  --discord-blurple: #5865f2;
  
  /* Spacing */
  --container-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  
  /* Transitions */
  --transition: all 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rajdhani', sans-serif;
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-blue-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 800px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--bg-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 2px;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--accent-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.nav-discord {
  color: var(--discord-blurple);
}

.discord-icon {
  width: 20px;
  height: 20px;
}

/* User Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-dropdown-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.dropdown-arrow {
  transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: var(--bg-dark);
  border: 1px solid var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  list-style: none;
  overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
}

.dropdown-menu li a:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.dropdown-divider {
  height: 1px;
  background: var(--bg-light);
  margin: 4px 0;
}

.admin-link {
  color: var(--warning) !important;
}

.logout-link {
  color: var(--error) !important;
}

/* User Badge */
.user-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.user-badge.pending { background: var(--text-muted); color: var(--text-white); }
.user-badge.associate { background: #546e7a; color: var(--text-white); }
.user-badge.member { background: var(--accent-blue); color: var(--text-white); }
.user-badge.admin { background: var(--warning); color: #000; }

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--warden-blue);
  color: var(--text-white);
}

.btn-secondary:hover {
  background: var(--warden-blue-light);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--bg-light);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-discord {
  background: var(--discord-blurple);
  color: var(--text-white);
}

.btn-discord:hover {
  background: #4752c4;
  color: var(--text-white);
}

.btn-success {
  background: var(--success);
  color: var(--text-white);
}

.btn-success:hover {
  background: var(--success-hover);
}

.btn-danger {
  background: var(--error);
  color: var(--text-white);
}

.btn-danger:hover {
  background: var(--error-hover);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 58, 92, 0.85) 0%,
    rgba(32, 34, 37, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
}

.hero-logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 24px;
  box-shadow: 0 0 60px rgba(52, 152, 219, 0.4);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 8px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--accent-blue);
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: 80px 0;
}

.section-dark {
  background: var(--bg-darker);
}

.section-cta {
  background: linear-gradient(135deg, var(--warden-blue) 0%, var(--bg-darkest) 100%);
  text-align: center;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.title-accent {
  color: var(--accent-blue);
}

/* About Cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.about-card {
  background: var(--bg-dark);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  border: 1px solid var(--bg-light);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-blue);
}

.about-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 1.4rem;
  color: var(--text-white);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-card {
  background: var(--bg-dark);
  padding: 32px 24px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--bg-light);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* CTA */
.cta-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
}

.cta-content h2 {
  font-size: 2.5rem;
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  margin: 0 auto 20px;
  max-width: var(--container-width);
  border-radius: var(--border-radius);
  font-weight: 500;
}

.alert-success {
  background: rgba(67, 181, 129, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
}

.alert-error {
  background: rgba(240, 71, 71, 0.15);
  border: 1px solid var(--error);
  color: var(--error);
}

.alert-info {
  background: rgba(52, 152, 219, 0.15);
  border: 1px solid var(--info);
  color: var(--info);
}

.alert-icon {
  font-weight: bold;
}

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}

.alert-close:hover {
  opacity: 1;
}

/* ========================================
   AUTH PAGES
   ======================================== */

.auth-page {
  min-height: calc(100vh - 65px - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-container {
  background: var(--bg-darker);
  padding: 48px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--bg-light);
  width: 100%;
  max-width: 450px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.auth-header h1 {
  font-size: 1.8rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-secondary);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-light);
}

.auth-footer p {
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* Auth Pending */
.auth-pending {
  text-align: center;
  max-width: 500px;
}

.pending-icon svg {
  margin-bottom: 24px;
}

.pending-message {
  font-size: 1.2rem;
  margin-bottom: 32px;
}

.pending-info,
.pending-meanwhile {
  background: var(--bg-dark);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  text-align: left;
}

.pending-info h3,
.pending-meanwhile h3 {
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.pending-info ul {
  list-style: none;
}

.pending-info li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
}

.pending-info li::before {
  content: "•";
  color: var(--accent-blue);
  position: absolute;
  left: 8px;
}

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

.pending-actions {
  margin-top: 24px;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-notice {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
}

.form-notice svg {
  flex-shrink: 0;
  color: var(--accent-blue);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.styled-form {
  background: var(--bg-dark);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--bg-light);
}

.form-container {
  max-width: 700px;
}

/* ========================================
   CONTENT CARDS
   ======================================== */

.content-card {
  background: var(--bg-darker);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--bg-light);
  margin-bottom: 24px;
}

.content-card h2 {
  color: var(--text-white);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--warden-blue) 0%, var(--bg-darker) 100%);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--text-white);
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* ========================================
   JOIN PAGE
   ======================================== */

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bg-light);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-list strong {
  color: var(--text-white);
  display: block;
  margin-bottom: 4px;
}

.feature-list p {
  color: var(--text-secondary);
  margin: 0;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.req-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.req-icon.check {
  background: var(--success);
  color: var(--text-white);
}

.req-icon.optional {
  background: var(--bg-light);
  color: var(--text-secondary);
}

.steps-list {
  list-style: none;
  counter-reset: steps;
}

.steps-list li {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--bg-light);
}

.steps-list li:last-child {
  border-bottom: none;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--accent-blue);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.steps-list strong {
  color: var(--text-white);
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.steps-list p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.role-card {
  padding: 20px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
  text-align: center;
}

.role-card .user-badge {
  margin-bottom: 12px;
}

.role-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.join-cta {
  text-align: center;
  padding: 48px;
  background: linear-gradient(135deg, var(--warden-blue) 0%, var(--bg-dark) 100%);
  border-radius: var(--border-radius-lg);
  margin-top: 40px;
}

.join-cta h2 {
  color: var(--text-white);
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   MEMBER LAYOUT
   ======================================== */

.member-layout {
  display: flex;
  min-height: calc(100vh - 65px);
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: var(--bg-darker);
  border-right: 1px solid var(--bg-light);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--bg-light);
}

.sidebar-avatar {
  width: 45px;
  height: 45px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--text-white);
}

.sidebar-username {
  font-weight: 600;
  color: var(--text-white);
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-section-title {
  padding: 8px 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.sidebar-link:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.sidebar-link.active {
  background: var(--bg-light);
  color: var(--text-white);
  border-left: 3px solid var(--accent-blue);
}

.sidebar-link svg {
  flex-shrink: 0;
}

.sidebar-admin .sidebar-link {
  color: var(--warning);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--bg-light);
}

.sidebar-footer .sidebar-link.logout {
  color: var(--error);
}

/* Custom Scrollbar for Sidebar */
.sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-light) var(--bg-darker);
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--bg-darker);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--bg-light);
  border-radius: 4px;
  border: 2px solid var(--bg-darker);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--bg-hover);
}

/* Member Content */
.member-content {
  flex: 1;
  padding: 32px;
  max-width: calc(100% - 260px);
}

.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.page-title h1 {
  font-size: 2rem;
  color: var(--text-white);
}

.page-title p {
  color: var(--text-secondary);
  width: 100%;
}

.back-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

.back-link:hover {
  color: var(--accent-blue);
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.dashboard-card {
  background: var(--bg-darker);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--bg-light);
  overflow: hidden;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--bg-light);
}

.card-header h3 {
  font-size: 1rem;
  color: var(--text-white);
}

.card-link {
  font-size: 0.85rem;
  color: var(--accent-blue);
}

.card-content {
  padding: 20px;
}

.op-list,
.post-list {
  list-style: none;
}

.op-item a,
.post-item a {
  display: block;
  padding: 12px;
  margin: -12px;
  margin-bottom: 8px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.op-item a:hover,
.post-item a:hover {
  background: var(--bg-hover);
}

.op-item:last-child a,
.post-item:last-child a {
  margin-bottom: -12px;
}

.op-name,
.post-title {
  display: block;
  color: var(--text-white);
  font-weight: 500;
  margin-bottom: 4px;
}

.op-meta,
.post-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.op-region {
  background: var(--warden-blue);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}

.empty-state a {
  color: var(--accent-blue);
}

/* Quick Actions */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  text-align: center;
  transition: var(--transition);
}

.quick-action:hover {
  background: var(--bg-hover);
  color: var(--text-white);
  transform: translateY(-2px);
}

.quick-icon {
  font-size: 1.5rem;
}

.quick-action span:last-child {
  font-size: 0.85rem;
}

/* Announcements */
.dashboard-announcements {
  margin-bottom: 24px;
}

.announcement-banner {
  padding: 12px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 8px;
  background: var(--bg-darker);
  border-left: 4px solid var(--info);
}

.announcement-banner.priority-high,
.announcement-banner.priority-urgent {
  border-left-color: var(--error);
  background: rgba(240, 71, 71, 0.1);
}

/* ========================================
   OPERATIONS
   ======================================== */

.ops-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: var(--text-white);
}

.operations-list {
  display: grid;
  gap: 20px;
}

.operation-card {
  background: var(--bg-darker);
  border: 1px solid var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  position: relative;
}

.op-status-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.op-status-badge.planned { background: var(--info); color: var(--text-white); }
.op-status-badge.active { background: var(--success); color: var(--text-white); }
.op-status-badge.completed { background: var(--text-muted); color: var(--text-white); }
.op-status-badge.cancelled { background: var(--error); color: var(--text-white); }

.op-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.op-card-header h3 {
  color: var(--text-white);
  font-size: 1.3rem;
}

.op-description {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.operation-card .op-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.operation-card .op-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

/* Operation Detail */
.operation-detail {
  max-width: 1000px;
}

.op-detail-header {
  margin-bottom: 32px;
}

.op-detail-header h1 {
  font-size: 2rem;
  color: var(--text-white);
  margin: 12px 0;
}

.op-detail-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--text-secondary);
}

.op-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.op-section {
  background: var(--bg-darker);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
}

.op-section h3 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.op-briefing {
  white-space: pre-wrap;
  color: var(--text-secondary);
}

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

.participant {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.participant-name {
  font-weight: 500;
  color: var(--text-white);
}

.participant-role {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.confirmed-badge {
  margin-left: auto;
  color: var(--success);
  font-size: 0.85rem;
}

.op-info-card {
  background: var(--bg-darker);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
}

.op-info-card h4 {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.op-date-large {
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 600;
}

.op-time-large {
  color: var(--accent-blue);
  font-size: 1.5rem;
  font-weight: bold;
}

.op-duration {
  color: var(--text-muted);
  margin-top: 8px;
}

.signup-form {
  margin-top: 8px;
}

.signup-form .form-group {
  margin-bottom: 12px;
}

/* ========================================
   FORUM
   ======================================== */

.forum-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forum-category {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: var(--bg-darker);
  border: 1px solid var(--bg-light);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.forum-category:hover {
  border-color: var(--accent-blue);
  transform: translateX(4px);
}

.category-icon {
  font-size: 2rem;
}

.category-info h3 {
  color: var(--text-white);
  margin-bottom: 4px;
}

.category-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.category-stats {
  text-align: right;
}

.post-count {
  color: var(--text-white);
  font-weight: 600;
}

.latest-post {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.category-arrow {
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* Posts Table */
.posts-table {
  width: 100%;
  border-collapse: collapse;
}

.posts-table th,
.posts-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--bg-light);
}

.posts-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.posts-table tr:hover {
  background: var(--bg-hover);
}

.posts-table tr.pinned {
  background: rgba(52, 152, 219, 0.1);
}

.post-title-cell a {
  color: var(--text-white);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.post-author {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-replies,
.post-views,
.post-date {
  color: var(--text-secondary);
}

/* Forum Post Page */
.post-main {
  background: var(--bg-darker);
  border-radius: var(--border-radius-lg);
  margin-bottom: 32px;
  overflow: hidden;
}

.post-header {
  padding: 24px;
  border-bottom: 1px solid var(--bg-light);
}

.post-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

.post-badge.pinned { background: var(--info); color: var(--text-white); }
.post-badge.locked { background: var(--text-muted); color: var(--text-white); }

.post-header h1 {
  color: var(--text-white);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-white);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-date,
.post-views {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-content {
  padding: 24px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Comments */
.comments-section {
  background: var(--bg-darker);
  border-radius: var(--border-radius-lg);
  padding: 24px;
}

.comments-section h3 {
  color: var(--text-white);
  margin-bottom: 20px;
}

.comments-list {
  margin-bottom: 32px;
}

.comment {
  padding: 16px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
  margin-bottom: 12px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-date {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.comment-content {
  color: var(--text-secondary);
}

.comment-form textarea {
  width: 100%;
  margin-bottom: 12px;
}

.locked-notice {
  text-align: center;
  padding: 20px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
  color: var(--text-muted);
}

/* ========================================
   CALCULATORS
   ======================================== */

.calc-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.calc-tab {
  padding: 12px 20px;
  background: var(--bg-dark);
  border: none;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: var(--transition);
}

.calc-tab:hover {
  background: var(--bg-hover);
}

.calc-tab.active {
  background: var(--bg-darker);
  color: var(--accent-blue);
}

.calc-panel {
  display: none;
  background: var(--bg-darker);
  padding: 32px;
  border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius);
}

.calc-panel.active {
  display: block;
}

.calc-panel h3 {
  color: var(--text-white);
  margin-bottom: 8px;
}

.calc-panel > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.calc-form {
  max-width: 600px;
}

.calc-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.calc-result {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

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

.result-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.result-value {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent-blue);
}

.calc-tips {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-darker);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-blue);
}

.calc-tips h4 {
  color: var(--text-white);
  margin-bottom: 12px;
}

.calc-tips ul {
  list-style: none;
}

.calc-tips li {
  padding: 8px 0;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.calc-tips li::before {
  content: "•";
  color: var(--accent-blue);
  position: absolute;
  left: 0;
}

/* Enhanced Calculator Styles */
.item-info {
  background: var(--bg-dark);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  margin-bottom: 16px;
  border-left: 3px solid var(--accent-blue);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.info-row span {
  color: var(--text-muted);
}

.result-header {
  background: var(--warden-blue);
  padding: 12px 16px;
  margin: -20px -20px 16px -20px;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.result-header strong {
  color: var(--text-white);
  font-size: 1.1rem;
}

.result-raw, .result-breakdown, .result-options {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-light);
}

.result-raw h5, .result-breakdown h5, .result-options h5 {
  color: var(--text-white);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.raw-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.raw-list span {
  color: var(--text-secondary);
}

.result-breakdown ul, .result-options ul {
  list-style: none;
  padding: 0;
}

.result-breakdown li, .result-options li {
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.quick-reference {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.quick-reference h4 {
  color: var(--text-white);
  margin-bottom: 16px;
}

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

.reference-table th,
.reference-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--bg-light);
}

.reference-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.reference-table td {
  color: var(--text-secondary);
}

.reference-table tr:hover {
  background: var(--bg-hover);
}

.material-rates, .fuel-tips, .shipping-tips {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.material-rates h4, .fuel-tips h4, .shipping-tips h4 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.rate-card {
  background: var(--bg-darker);
  padding: 16px;
  border-radius: var(--border-radius);
  text-align: center;
}

.rate-card strong {
  color: var(--accent-blue);
  display: block;
  margin-bottom: 8px;
}

.rate-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.rate-card .note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 8px;
  font-style: italic;
}

.shipping-tips ul {
  list-style: none;
  padding: 0;
}

.shipping-tips li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: var(--text-secondary);
}

.shipping-tips li::before {
  content: "•";
  color: var(--accent-blue);
  position: absolute;
  left: 0;
}

.material-inputs {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* Production Queue Styles */
.production-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .production-layout {
    grid-template-columns: 1fr;
  }
}

.add-item-section, .queue-section {
  background: var(--bg-dark);
  padding: 20px;
  border-radius: var(--border-radius);
}

.add-item-section h4, .queue-section h4 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.queue-header h4 {
  margin: 0;
}

.queue-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.queue-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--bg-darker);
  border-radius: var(--border-radius);
  margin-bottom: 8px;
  border-left: 3px solid var(--accent-blue);
}

.queue-item-info {
  flex: 1;
}

.queue-item-info strong {
  display: block;
  color: var(--text-white);
  margin-bottom: 4px;
}

.queue-item-details {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.queue-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.queue-crate-input {
  width: 60px;
  padding: 6px 8px;
  background: var(--bg-dark);
  border: 1px solid var(--bg-light);
  border-radius: 4px;
  color: var(--text-white);
  text-align: center;
}

.crate-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.queue-remove-btn {
  width: 28px;
  height: 28px;
  background: var(--error);
  border: none;
  border-radius: 4px;
  color: var(--text-white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.queue-remove-btn:hover {
  background: var(--error-hover);
}

.queue-totals {
  background: var(--bg-darker);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 2px solid var(--warden-blue);
}

.queue-totals h4 {
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.totals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.total-item {
  background: var(--bg-dark);
  padding: 12px;
  border-radius: var(--border-radius);
  text-align: center;
}

.total-item.bmat { border-top: 3px solid #7cb342; }
.total-item.emat { border-top: 3px solid #ff7043; }
.total-item.rmat { border-top: 3px solid #42a5f5; }
.total-item.hemat { border-top: 3px solid #ab47bc; }

.total-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.total-value {
  display: block;
  color: var(--text-white);
  font-size: 1.4rem;
  font-weight: bold;
}

.raw-totals {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-light);
}

.raw-totals h5 {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.raw-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.raw-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-dark);
  padding: 8px 16px;
  border-radius: var(--border-radius);
}

.raw-icon {
  font-size: 1.2rem;
}

.raw-label {
  color: var(--text-muted);
}

.raw-value {
  color: var(--text-white);
  font-weight: bold;
}

.queue-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Quick Add Section */
.quick-add-section {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.quick-add-section h4 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.quick-add-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-add-btn {
  padding: 8px 16px;
  background: var(--bg-darker);
  border: 1px solid var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

.quick-add-btn:hover {
  background: var(--warden-blue);
  border-color: var(--warden-blue);
  color: var(--text-white);
}

/* ========================================
   PROFILE
   ======================================== */

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: var(--text-white);
}

.profile-info h2 {
  color: var(--text-white);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.profile-region {
  color: var(--text-muted);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.profile-stat {
  background: var(--bg-darker);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  border: 1px solid var(--bg-light);
}

.profile-stat .stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-blue);
}

.profile-stat .stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.profile-form-container,
.profile-readonly {
  background: var(--bg-darker);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  border: 1px solid var(--bg-light);
}

.profile-form-container h3,
.profile-readonly h3 {
  color: var(--text-white);
  margin-bottom: 20px;
}

.readonly-field {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-light);
}

.readonly-field:last-child {
  border-bottom: none;
}

.readonly-field label {
  color: var(--text-muted);
}

.readonly-field span {
  color: var(--text-primary);
}

/* ========================================
   ADMIN
   ======================================== */

.admin-layout {
  display: flex;
  min-height: calc(100vh - 65px);
}

.admin-sidebar {
  width: 240px;
  background: var(--bg-darker);
  border-right: 1px solid var(--bg-light);
  padding: 20px 0;
  position: sticky;
  top: 65px;
  height: calc(100vh - 65px);
  overflow-y: auto;
}

.admin-header {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--bg-light);
  margin-bottom: 20px;
}

.admin-header h3 {
  color: var(--warning);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
}

.admin-nav hr {
  border: none;
  border-top: 1px solid var(--bg-light);
  margin: 12px 0;
}

.admin-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.admin-link:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.admin-link.active {
  background: var(--bg-light);
  color: var(--warning);
}

.admin-link .badge {
  margin-left: auto;
  background: var(--error);
  color: var(--text-white);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.admin-content {
  flex: 1;
  padding: 32px;
}

.admin-content h1 {
  color: var(--text-white);
  margin-bottom: 24px;
}

/* Admin Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-darker);
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid var(--bg-light);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-icon.pending { background: rgba(240, 71, 71, 0.2); }
.stat-icon.members { background: rgba(52, 152, 219, 0.2); }
.stat-icon.ops { background: rgba(67, 181, 129, 0.2); }

.stat-info {
  flex: 1;
}

.stat-info .stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-white);
  line-height: 1;
}

.stat-info .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stat-link {
  color: var(--accent-blue);
}

/* Admin Sections */
.admin-section {
  background: var(--bg-darker);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  border: 1px solid var(--bg-light);
}

.admin-section h2 {
  color: var(--text-white);
  margin-bottom: 20px;
}

/* Recent Signups */
.recent-signups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.signup-info {
  flex: 1;
}

.signup-info strong {
  color: var(--text-white);
  display: block;
}

.signup-email,
.signup-region {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.signup-date {
  color: var(--text-muted);
}

/* Admin Actions */
.admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  transition: var(--transition);
}

.admin-action:hover {
  background: var(--bg-hover);
  color: var(--text-white);
}

.action-icon {
  font-size: 1.5rem;
}

/* Pending List */
.pending-list {
  display: grid;
  gap: 20px;
}

.pending-card {
  background: var(--bg-darker);
  padding: 24px;
  border-radius: var(--border-radius);
  border: 1px solid var(--bg-light);
}

.pending-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pending-avatar {
  width: 50px;
  height: 50px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-white);
}

.pending-info h3 {
  color: var(--text-white);
  margin-bottom: 4px;
}

.pending-info p {
  color: var(--text-muted);
}

.pending-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.pending-details .detail label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pending-details .detail span {
  color: var(--text-primary);
}

.pending-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.approve-form {
  display: flex;
  gap: 8px;
}

.approve-form select {
  padding: 8px 12px;
  background: var(--bg-dark);
  border: 1px solid var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-primary);
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--bg-light);
}

.admin-table th {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.admin-table tr:hover {
  background: var(--bg-hover);
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--text-white);
  font-size: 0.9rem;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.approved { background: var(--success); color: var(--text-white); }
.status-badge.pending { background: var(--warning); color: #000; }
.status-badge.rejected { background: var(--error); color: var(--text-white); }

.you-badge {
  color: var(--text-muted);
  font-style: italic;
}

.inline-form {
  display: inline;
}

.inline-form select {
  padding: 6px 10px;
  background: var(--bg-dark);
  border: 1px solid var(--bg-light);
  border-radius: 4px;
  color: var(--text-primary);
}

.users-table-container,
.operations-table-container {
  overflow-x: auto;
}

/* User Filters */
.user-filters {
  margin-bottom: 24px;
}

.filter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-form input,
.filter-form select {
  padding: 10px 14px;
  background: var(--bg-dark);
  border: 1px solid var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  min-width: 150px;
}

/* Settings */
.settings-section {
  background: var(--bg-darker);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  border: 1px solid var(--bg-light);
}

.settings-section h2 {
  color: var(--text-white);
  margin-bottom: 20px;
}

.announcements-list h3 {
  color: var(--text-secondary);
  margin-top: 24px;
  margin-bottom: 16px;
}

.announcement-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
  margin-bottom: 12px;
  border-left: 4px solid var(--info);
}

.announcement-item.priority-high,
.announcement-item.priority-urgent {
  border-left-color: var(--error);
}

.priority-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  background: var(--bg-light);
  color: var(--text-secondary);
  margin-right: 8px;
}

.announcement-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Categories */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.category-info strong {
  color: var(--text-white);
}

.category-slug {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: 8px;
}

.category-info p {
  color: var(--text-secondary);
  margin: 4px 0;
}

.suggestions-list {
  list-style: none;
}

.suggestions-list li {
  padding: 8px 0;
  color: var(--text-secondary);
}

.suggestions-list strong {
  color: var(--text-white);
}

/* ========================================
   MAP & STATS
   ======================================== */

.map-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.map-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.legend-item {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.legend-item.warden { color: #245580; }
.legend-item.colonial { color: #4a7c3f; }
.legend-item.neutral { color: var(--text-muted); }

.map-actions {
  display: flex;
  gap: 8px;
}

.map-container {
  background: var(--bg-darker);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.map-operations {
  background: var(--bg-darker);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
}

.map-operations h3 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.ops-list {
  display: grid;
  gap: 12px;
}

.op-marker-card {
  background: var(--bg-dark);
  padding: 16px;
  border-radius: var(--border-radius);
}

.op-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.op-region-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.op-region-badge.eu { background: #1a4b8c; color: var(--text-white); }
.op-region-badge.us { background: #7c1a1a; color: var(--text-white); }

.op-details {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.map-info {
  background: var(--bg-darker);
  padding: 24px;
  border-radius: var(--border-radius);
}

.map-info h3 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.resource-card {
  background: var(--bg-dark);
  padding: 16px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.resource-card:hover {
  background: var(--bg-hover);
}

.resource-card strong {
  color: var(--text-white);
  display: block;
  margin-bottom: 4px;
}

.resource-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Stats Page */
.war-status-card {
  background: var(--bg-darker);
  padding: 32px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 24px;
  text-align: center;
}

.war-info .war-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.war-details {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

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

.war-detail .label {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.war-detail .value {
  color: var(--text-white);
  font-size: 1.2rem;
  font-weight: 600;
}

.war-detail .value.wardens { color: #245580; }
.war-detail .value.colonials { color: #4a7c3f; }

.stat-card-large {
  background: var(--bg-darker);
  padding: 24px;
  border-radius: var(--border-radius);
}

.stat-card-large h3 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.member-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
}

.member-stat {
  text-align: center;
  padding: 16px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.activity-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg-dark);
  border-radius: var(--border-radius);
}

.activity-label {
  color: var(--text-muted);
}

.activity-value {
  color: var(--text-white);
  font-weight: 600;
}

.info-card {
  background: var(--bg-darker);
  padding: 24px;
  border-radius: var(--border-radius);
  margin-top: 24px;
}

.info-card h3 {
  color: var(--text-white);
  margin-bottom: 12px;
}

.external-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* Loading */
.loading {
  color: var(--text-muted);
  padding: 20px;
  text-align: center;
}

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

/* ========================================
   STATS PAGE
   ======================================== */

.stats-war-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-darker);
  border-radius: var(--border-radius);
}

.stats-war-selector label {
  color: var(--text-secondary);
  font-weight: 600;
}

.stats-war-selector select {
  padding: 8px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-white);
  font-size: 1rem;
}

.stats-section {
  background: var(--bg-darker);
  padding: 24px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 24px;
  border: 1px solid var(--bg-light);
}

.stats-section h2 {
  color: var(--text-white);
  margin-bottom: 20px;
}

.regiment-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.regiment-stat {
  background: var(--bg-dark);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
}

.regiment-stat .stat-value {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

.regiment-stat .stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.leaderboards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.leaderboard-card {
  background: var(--bg-dark);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.leaderboard-card h3 {
  padding: 12px 16px;
  background: var(--warden-blue);
  color: var(--text-white);
  font-size: 1rem;
  margin: 0;
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leaderboard-list li {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--bg-light);
}

.leaderboard-list li:last-child {
  border-bottom: none;
}

.leaderboard-list li.is-you {
  background: rgba(52, 152, 219, 0.15);
}

.leaderboard-list li.empty {
  color: var(--text-muted);
  font-style: italic;
  justify-content: center;
}

.leaderboard-list .rank {
  width: 30px;
  font-weight: bold;
  color: var(--text-muted);
}

.leaderboard-list li:nth-child(1) .rank { color: #ffd700; }
.leaderboard-list li:nth-child(2) .rank { color: #c0c0c0; }
.leaderboard-list li:nth-child(3) .rank { color: #cd7f32; }

.leaderboard-list .username {
  flex: 1;
  color: var(--text-primary);
}

.leaderboard-list .value {
  font-weight: bold;
  color: var(--accent-blue);
}

.my-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.my-stat-group {
  background: var(--bg-dark);
  padding: 16px;
  border-radius: var(--border-radius);
}

.my-stat-group h4 {
  color: var(--accent-blue);
  margin-bottom: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.my-stat {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--bg-light);
}

.my-stat:last-child {
  border-bottom: none;
}

.my-stat span {
  color: var(--text-secondary);
}

.my-stat strong {
  color: var(--text-white);
}

.stats-form .form-section-title {
  color: var(--accent-blue);
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-light);
}

.stats-form .form-section-title:first-of-type {
  margin-top: 0;
}

/* ========================================
   EMPTY STATES
   ======================================== */

.empty-state-large {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-darker);
  border-radius: var(--border-radius-lg);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-state-large h3 {
  color: var(--text-white);
  margin-bottom: 8px;
}

.empty-state-large p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.empty-cell {
  text-align: center;
  color: var(--text-muted);
  padding: 40px !important;
}

/* ========================================
   ERROR PAGES
   ======================================== */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--warden-blue) 0%, var(--bg-darkest) 100%);
}

.error-content {
  text-align: center;
  padding: 40px;
}

.error-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 24px;
  opacity: 0.8;
}

.error-content h1 {
  font-size: 8rem;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.error-content h2 {
  font-size: 2rem;
  color: var(--text-white);
  margin-bottom: 16px;
}

.error-content p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 400px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--bg-light);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
}

.footer-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-regions {
  display: flex;
  gap: 8px;
}

.region-badge {
  background: var(--bg-light);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.footer-section h4 {
  color: var(--text-white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-bottom {
  max-width: var(--container-width);
  margin: 40px auto 0;
  padding: 24px 20px 0;
  border-top: 1px solid var(--bg-light);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.footer-disclaimer {
  font-size: 0.8rem !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .op-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }
  
  .nav-list {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 4px;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-logo {
    width: 100px;
    height: 100px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .member-layout {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
  }
  
  .sidebar-nav {
    display: none;
  }
  
  .member-content {
    max-width: 100%;
    padding: 20px;
  }
  
  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-regions {
    justify-content: center;
  }
  
  .auth-container {
    padding: 32px 24px;
  }
  
  .forum-category {
    grid-template-columns: auto 1fr;
  }
  
  .category-stats,
  .category-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }
  
  .btn-lg {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-stats {
    grid-template-columns: 1fr;
  }
  
  .pending-actions {
    flex-direction: column;
  }
  
  .approve-form {
    flex-direction: column;
  }
}

