@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Colors - Restored Original Palette */
  --bg-main: #FFFFFF;
  --bg-card: #F8FAFC;
  --text-primary: #0F172A;
  --text-muted: #64748B;
  --accent-blue: #2563EB;
  --accent-blue-hover: #1D4ED8;
  --accent-green: #10B981;
  --border-light: #E2E8F0;

  /* Aliases + semantic tokens (previously referenced but never declared) */
  --text-secondary: #64748B;   /* alias of --text-muted */
  --border-whisper: #EDF1F7;   /* faint card edge, lighter than --border-light */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error:   #EF4444;
  --accent-amber:  #F59E0B;
  --accent-red:    #EF4444;

  /* Semantic accent aliases used by dashboard/events pages */
  --accent-success: #10B981;
  --accent-warning: #F59E0B;
  --accent-error:   #EF4444;
  --accent-info:    #3B82F6;
  --accent-teal:    #14B8A6;
  --primary-accent: #2563EB;
  --glass-border:   rgba(15, 23, 42, 0.08);
  --surface-light:  #F1F5F9;

  /* Spacing scale (4/8px) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Radius scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-primary: 'Inter', sans-serif;   /* alias of --font-body */
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base Pill Navbar */
.pill-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.5rem 1rem 0.5rem 2rem;
  border-radius: 9999px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  z-index: 100;
  transition: all 0.3s ease;
}

.pill-nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.pill-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.pill-nav-link:hover {
  color: var(--text-primary);
}

.pill-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.fixed-brand {
  position: fixed;
  top: 1.5rem;
  left: 2rem;
  z-index: 105;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.fixed-brand:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .fixed-brand {
    top: 1rem;
    left: 1rem;
  }
  .fixed-brand .brand-text {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-card);
}

/* Semantic button variants. Pages apply these alongside .btn-primary
   (e.g. class="btn-primary btn-danger") to signal destructive vs positive
   actions; defined here — after .btn-primary — so the semantic colour wins.
   Without these, Delete/Reject/Deactivate rendered identical to Save. */
.btn-danger {
  background-color: var(--color-error);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background-color: #DC2626;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
.btn-success {
  background-color: var(--color-success);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
  background-color: #059669;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.btn-warning {
  background-color: var(--color-warning);
  color: #1a1205;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.btn-warning:hover {
  background-color: #D97706;
  color: white;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Chips / Tags */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.chip-dot.blue { background-color: var(--accent-blue); box-shadow: 0 0 4px var(--accent-blue); }
.chip-dot.green { background-color: var(--accent-green); box-shadow: 0 0 4px var(--accent-green); }

/* Typography Gradients */
.text-gradient-blue {
  background: linear-gradient(to right, var(--text-primary), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Classes */
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }


/* --- FORMS & UTILITIES --- */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-label {
    display: block; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem;
}
.form-input {
    width: 100%; padding: 0.875rem 1rem; background: transparent;
    border: 1px solid var(--border-light); font-family: var(--font-body);
    font-size: 1rem; color: var(--text-primary); transition: all 0.3s ease;
    border-radius: 12px;
}
.form-input:focus {
    outline: none; border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue); background: #ffffff;
}
.form-error { color: #EF4444; font-size: 0.75rem; margin-top: 0.25rem; display: none; }

/* Grid Layouts */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }

/* Spacing (gap) */
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

/* Spacing (margin/padding) */
.p-md { padding: 1rem; }
.p-xl { padding: 2.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mt-lg { margin-top: 1.5rem; }
.space-y-md > * + * { margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography overrides */
.text-left { text-align: left; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.5rem; }
.text-secondary { color: var(--text-muted); }
.font-bold { font-weight: 700; }

/* Sizing & Radius */
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.rounded-full { border-radius: 9999px; }

/* Backgrounds & Cards */
.bg-primary-accent { background-color: var(--accent-blue); color: white; }
.bg-gradient-card { background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(16,185,129,0.1)); }
.card-glass {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(24px);
    border: 1px solid var(--border-light); border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.card-hover-glow {
    background: #ffffff; border: 1px solid var(--border-light); border-radius: 24px;
    transition: all 0.3s ease;
}
.card-hover-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Forms Fixes for mobile */
@media (max-width: 768px) {
    .p-xl { padding: 1.5rem; }
}

/* Join Us Additional Overrides */
.social-platform-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.75rem; padding: 1.5rem; border-radius: 20px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    color: var(--text-primary); text-decoration: none;
    transition: all 0.3s ease; width: 140px; font-weight: 600;
}
.social-platform-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 25px rgba(37,99,235,0.1);
    border-color: var(--accent-blue); color: var(--accent-blue);
}
.social-platform-icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: rgba(37,99,235,0.1);
    color: var(--accent-blue); border-radius: 12px;
}
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

/* --- FORMS & UTILITIES --- */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-label {
    display: block; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem;
}
.form-input {
    width: 100%; padding: 0.875rem 1rem; background: transparent;
    border: 1px solid var(--border-light); font-family: var(--font-body);
    font-size: 1rem; color: var(--text-primary); transition: all 0.3s ease;
    border-radius: 12px;
}
.form-input:focus {
    outline: none; border-color: var(--accent-blue);
    box-shadow: 0 0 0 1px var(--accent-blue); background: #ffffff;
}
.form-error { color: #EF4444; font-size: 0.75rem; margin-top: 0.25rem; display: none; }

/* Grid Layouts */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }

/* Spacing (gap) */
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.gap-xl { gap: 2rem; }

/* Spacing (margin/padding) */
.p-md { padding: 1rem; }
.p-xl { padding: 2rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mt-lg { margin-top: 1.5rem; }
.space-y-md > * + * { margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Typography overrides */
.text-left { text-align: left; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.5rem; }
.text-secondary { color: var(--text-muted); }
.font-bold { font-weight: 700; }

/* Sizing & Radius */
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.rounded-full { border-radius: 9999px; }

/* Backgrounds & Cards */
.bg-primary-accent { background-color: var(--accent-blue); color: white; }
.bg-gradient-card { background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(16,185,129,0.1)); }
.card-glass {
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(24px);
    border: 1px solid var(--border-light); border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
.card-hover-glow {
    background: #ffffff; border: 1px solid var(--border-light); border-radius: 24px;
    transition: all 0.3s ease;
}
.card-hover-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Forms Fixes for mobile */
@media (max-width: 768px) {
    .p-xl { padding: 1.5rem; }
}

/* Join Us Additional Overrides */
.social-platform-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.75rem; padding: 1.5rem; border-radius: 20px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    color: var(--text-primary); text-decoration: none;
    transition: all 0.3s ease; width: 140px; font-weight: 600;
}
.social-platform-card:hover {
    transform: translateY(-5px); box-shadow: 0 10px 25px rgba(37,99,235,0.1);
    border-color: var(--accent-blue); color: var(--accent-blue);
}
.social-platform-icon {
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; background: rgba(37,99,235,0.1);
    color: var(--accent-blue); border-radius: 12px;
}
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-semibold { font-weight: 600; }
.text-white { color: #ffffff; }
.text-opacity-80 { opacity: 0.8; }
.card-gradient {
    background: linear-gradient(135deg, var(--accent-blue), #4F46E5);
    color: white; border-radius: 24px; border: none;
}
.w-full { width: 100%; }
.form-textarea { min-height: 120px; resize: vertical; }

/* Section Layout Utilities */
.section {
    padding: 4rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title {
    font-size: 2.75rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 800;
}
.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- ULTRA PREMIUM DASHBOARD UI (UI/UX Pro Max) --- */
/* Dashboard Background with Glowing Orbs */
body.dashboard-body {
    background-color: #F8FAFC;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.05), transparent 25%);
    background-attachment: fixed;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: 24px;
}

/* Span utilities for 12-column grid */
.bento-col-12 { grid-column: span 12; }
.bento-col-8 { grid-column: span 8; }
.bento-col-6 { grid-column: span 6; }
.bento-col-4 { grid-column: span 4; }
.bento-col-3 { grid-column: span 3; }

.bento-row-2 { grid-row: span 2; }
.bento-row-3 { grid-row: span 3; }

@media (max-width: 1024px) {
    .bento-col-8 { grid-column: span 12; }
    .bento-col-6 { grid-column: span 12; }
    .bento-col-4 { grid-column: span 6; }
    .bento-col-3 { grid-column: span 6; }
}

@media (max-width: 640px) {
    .bento-grid { gap: 16px; }
    .bento-col-4, .bento-col-3 { grid-column: span 12; }
    .bento-row-2, .bento-row-3 { grid-row: span 1; }
}

/* Ultra Premium Card Styles */
.premium-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 
        0 4px 24px -2px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: clamp(16px, 4vw, 32px);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
    opacity: 0.5;
}

.premium-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
        0 20px 40px -4px rgba(37, 99, 235, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    border-color: rgba(37, 99, 235, 0.2);
    z-index: 10;
}

/* Icon Containers */
.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
    position: relative;
}

.icon-box::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: inherit;
    filter: blur(8px);
    opacity: 0.4;
    z-index: -1;
}

.icon-blue { background: rgba(37, 99, 235, 0.1); color: var(--accent-blue); border: 1px solid rgba(37, 99, 235, 0.2); }
.icon-green { background: rgba(16, 185, 129, 0.1); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.2); }
.icon-amber { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.icon-purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; border: 1px solid rgba(139, 92, 246, 0.2); }


/* --- PREMIUM DATA TABLE DESIGN --- */
.lean-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-family: var(--font-body);
}

.lean-table thead th {
    padding: 16px 24px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);

    white-space: nowrap;
}

.lean-table tbody td {
    padding: 16px 24px;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    vertical-align: middle;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.lean-table tbody tr:last-child td {
    border-bottom: none;
}

.lean-table tbody tr:hover td {
    background-color: rgba(37, 99, 235, 0.02);
}

/* Custom Checkbox for Tables */
.lean-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-blue);
    cursor: pointer;
    border-radius: 4px;
}

/* Table sort icons */
.lean-table .sortable {
    cursor: pointer;
    transition: color 0.2s;
}
.lean-table .sortable:hover {
    color: var(--accent-blue);
}
.lean-table .sort-icon {
    font-size: 10px;
    margin-left: 6px;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.lean-table .sortable:hover .sort-icon {
    opacity: 1;
}

/* Container for table to ensure rounded corners don't break */
.table-container {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.03);
}

/* Sticky Action Column Styles */
.sticky-action-header {
    position: sticky;
    right: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: -4px 0 12px rgba(0,0,0,0.03);
    border-left: 1px solid rgba(0,0,0,0.03);
}

.sticky-action-cell {
    position: sticky;
    right: 0;
    z-index: 9;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: -4px 0 12px rgba(0,0,0,0.03);
    border-left: 1px solid rgba(0,0,0,0.03);
    transition: background-color 0.2s ease;
}

/* When the row is hovered, the sticky cell must match the row's hover background! */
.lean-table tbody tr:hover .sticky-action-cell {
    /* Mix the row hover tint with a solid white to prevent bleeding */
    background: #f7f9fd; 
}

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
}

/* Touch targets: ensure minimum touch height for interactive targets */
.pill-nav-link, .fixed-brand, .btn, footer a, .social-platform-card {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Headings tracking adjustment */
h1, h2, h3, .display-title {
    letter-spacing: -0.05em !important;
}

/* Mobile Hamburger Menu Overlay Styles */
.mobile-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
}

.mobile-hamburger svg {
    color: var(--text-primary);
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 108;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--accent-blue);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .pill-nav-links {
        display: none;
    }
    .pill-nav .btn {
        display: none;
    }
    .pill-nav {
        display: none; /* Hide standard pill-nav layout completely on small screens */
    }
    .mobile-hamburger {
        display: flex;
        top: 1rem;
        right: 1rem;
    }
}

/* Stacking helper for button groups on mobile */
.btn-group-mobile-stack {
    display: flex;
    gap: 1rem;
}
@media (max-width: 640px) {
    .btn-group-mobile-stack {
        flex-direction: column !important;
        width: 100% !important;
        align-items: stretch !important;
    }
    .btn-group-mobile-stack .btn {
        width: 100% !important;
        text-align: center;
        justify-content: center;
        align-self: stretch !important;
        white-space: nowrap !important;
    }
}

/* Mobile responsive layout overrides for Why Join Us section */
@media (max-width: 640px) {
    #why-join .scroll-reveal {
        flex-direction: row !important;
        text-align: left !important;
        gap: 1.25rem !important;
    }
    #why-join .scroll-reveal .w-16 {
        width: 3rem !important;
        height: 3rem !important;
    }
    #why-join .scroll-reveal .w-16 svg {
        width: 20px !important;
        height: 20px !important;
    }
    #why-join .scroll-reveal h3 {
        font-size: 1.35rem !important;
    }
}

/* =====================================================================
   PROMOTED SHARED COMPONENTS
   Reusable primitives lifted from the gold-standard superuser dashboard
   (previously copy-pasted inline as .su-* across the 5 role dashboards).
   Drifted pages should convert by reusing these instead of inline CSS.
   ===================================================================== */

/* Editorial hero strip (page welcome band) */
.hero-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    background: var(--bg-main);
    border: 1px solid var(--border-whisper);
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 32px;
}
.hero-strip__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}
.hero-strip__subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 4px;
}

/* Stat grid + stat card */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-main);
    border: 1px solid var(--border-whisper);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.stat-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.stat-card__value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    margin-top: auto;
}

/* Action card (icon + label link tile) */
.action-card {
    background: var(--bg-main);
    border: 1px solid var(--border-whisper);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.action-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    background: var(--bg-card);
    color: var(--accent-blue);
}

/* Generic content panel (opaque premium white card) */
.panel-card {
    background: var(--bg-main);
    border: 1px solid var(--border-whisper);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

/* Status pills (semantic) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
}
.status-pill--success { background: rgba(16, 185, 129, 0.12); color: var(--color-success); }
.status-pill--warning { background: rgba(245, 158, 11, 0.12); color: var(--color-warning); }
.status-pill--error   { background: rgba(239, 68, 68, 0.12);  color: var(--color-error); }
.status-pill--muted   { background: rgba(100, 116, 139, 0.12); color: var(--text-muted); }
.status-pill__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

/* Icon chip colours to round out .icon-box (adds red to existing set) */
.icon-red { background: rgba(239, 68, 68, 0.1); color: var(--color-error); border: 1px solid rgba(239, 68, 68, 0.2); }

@media (max-width: 768px) {
    .hero-strip { padding: 24px; flex-direction: column; align-items: flex-start; }
    .stat-card__value { font-size: 2rem; }
}

/* ---------------------------------------------------------------------
   su-* DASHBOARD SYSTEM (promoted from superuser_dashboard)
   The 5 role dashboards each define these inline; promoted here so every
   dashboard page (incl. website_management, which used them undefined)
   inherits the same bento/card system. Inline copies now just override.
   --------------------------------------------------------------------- */
.su-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.su-hero-strip {
    grid-column: span 12;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    background: #ffffff;
    border: 1px solid var(--border-whisper);
    border-radius: 20px;
    padding: 32px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.su-main-pane { grid-column: span 8; display: flex; flex-direction: column; gap: 24px; }
.su-side-pane { grid-column: span 4; display: flex; flex-direction: column; gap: 24px; }
.su-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.su-stat-card {
    background: #ffffff;
    border: 1px solid var(--border-whisper);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.su-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.su-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    margin-top: auto;
    font-variant-numeric: tabular-nums;
}
.su-action-card {
    background: #ffffff;
    border: 1px solid var(--border-whisper);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.su-action-card:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,0.05); background: var(--bg-card); }
.su-table-card {
    background: #ffffff;
    border: 1px solid var(--border-whisper);
    border-radius: 20px;
    padding: 24px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

/* Generic stat + badge primitives (used across dashboard pages) */
.stat-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 4px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
}
.badge-success { background: rgba(16, 185, 129, 0.12); color: var(--color-success); }
.badge-warning { background: rgba(245, 158, 11, 0.12); color: var(--color-warning); }
.badge-error, .badge-danger { background: rgba(239, 68, 68, 0.12); color: var(--color-error); }
.badge-info { background: rgba(59, 130, 246, 0.12); color: var(--accent-info); }
.badge-muted { background: rgba(100, 116, 139, 0.12); color: var(--text-muted); }
@media (max-width: 1024px) {
    .su-main-pane, .su-side-pane { grid-column: span 12; }
}
@media (max-width: 768px) {
    .su-stat-grid { grid-template-columns: 1fr; }
    .su-hero-strip { padding: 24px; flex-direction: column; align-items: flex-start; }
}
