/* ============================================================
   Yalla Commerce — Main Design System
   Deep Navy (#1E3A5F) + Amber/Gold (#F5A623)
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
  /* Brand Colors — Pure Yalla Electric Yellow Theme */
  --color-navy: #0F172A;
  --color-navy-dark: #090D16;
  --color-navy-light: #1E293B;
  --color-gold: #FACC15;
  --color-gold-dark: #CA8A04;
  --color-gold-light: #FDE047;
  --color-gold-bg: #FEF9C3;

  /* Primary Theme Aliases */
  --color-primary: #FACC15;
  --color-primary-dark: #CA8A04;
  --color-primary-light: #FDE047;

  /* Neutrals */
  --color-white: #FFFFFF;
  --color-bg: #F8FAFC;
  --color-bg-alt: #F1F5F9;
  --color-border: #E2E8F0;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-text-light: #94A3B8;

  /* Status Colors */
  --color-success: #10B981;
  --color-warning: #FACC15;
  --color-error: #EF4444;
  --color-info: #FACC15;

  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 32px rgba(250, 204, 21, .15);
  --shadow-xl: 0 16px 48px rgba(250, 204, 21, .22);
  --shadow-gold: 0 4px 16px rgba(250, 204, 21, .45);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Custom Designed Scrollbars ─────────────────────────── */
/* Global WebKit Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 9999px;
  border: 2px solid transparent;
  background-clip: content-box;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #94A3B8;
  background-clip: content-box;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Dark Sidebars & Dark Theme Scrollbars */
.lobby-sidebar,
.lobby-sidebar .sidebar-nav,
.admin-sidebar,
.admin-sidebar-nav,
.dark-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 204, 21, 0.28) transparent;
}

.lobby-sidebar::-webkit-scrollbar,
.lobby-sidebar .sidebar-nav::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar,
.admin-sidebar-nav::-webkit-scrollbar,
.dark-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.lobby-sidebar::-webkit-scrollbar-track,
.lobby-sidebar .sidebar-nav::-webkit-scrollbar-track,
.admin-sidebar::-webkit-scrollbar-track,
.admin-sidebar-nav::-webkit-scrollbar-track,
.dark-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.lobby-sidebar::-webkit-scrollbar-thumb,
.lobby-sidebar .sidebar-nav::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb,
.admin-sidebar-nav::-webkit-scrollbar-thumb,
.dark-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(250, 204, 21, 0.22);
  border-radius: 9999px;
  transition: background-color 0.2s ease;
}

.lobby-sidebar::-webkit-scrollbar-thumb:hover,
.lobby-sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover,
.admin-sidebar::-webkit-scrollbar-thumb:hover,
.admin-sidebar-nav::-webkit-scrollbar-thumb:hover,
.dark-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #FACC15;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-navy);
  text-decoration: none;
}

a:hover {
  color: var(--color-navy-light);
}

/* ── Typography ─────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

h1 {
  font-size: clamp(1.4rem, 3.2vw, 2.05rem);
}

h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

h3 {
  font-size: clamp(1.0rem, 1.8vw, 1.25rem);
}

h4 {
  font-size: 0.95rem;
}

h5 {
  font-size: 0.86rem;
}

h6 {
  font-size: 0.8rem;
}

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

/* ── Layout Container ───────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Grid ───────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

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

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

/* ── Flex Utilities ─────────────────────────────────────── */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-gap-2 {
  gap: var(--space-2);
}

.flex-gap-3 {
  gap: var(--space-3);
}

.flex-gap-4 {
  gap: var(--space-4);
}

.flex-gap-6 {
  gap: var(--space-6);
}

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

.flex-wrap {
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════════════════════ */
.site-header {
  background: var(--color-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.site-header .container {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.site-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--color-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-navy);
  font-family: var(--font-display);
}

.site-logo-text {
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-logo-text span {
  color: var(--color-gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.site-nav a {
  color: rgba(255, 255, 255, .8);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, .1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-header-login {
  color: rgba(255, 255, 255, .9);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
}

.btn-header-login:hover {
  background: rgba(255, 255, 255, .1);
  color: white;
}

.btn-header-register {
  background: var(--color-gold);
  color: var(--color-navy);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition);
}

.btn-header-register:hover {
  background: var(--color-gold-dark);
  color: var(--color-navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, var(--color-navy-light) 100%);
  color: white;
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 166, 35, .15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, .05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(245, 166, 35, .2);
  border: 1px solid rgba(245, 166, 35, .4);
  color: var(--color-gold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-6);
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero h1 span {
  color: var(--color-gold);
}

.hero p {
  color: rgba(255, 255, 255, .8);
  font-size: 1.1rem;
  margin-bottom: var(--space-8);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, .1);
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gold);
  font-family: var(--font-display);
}

.hero-stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, .7);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn-primary,
.btn-gold {
  background: linear-gradient(135deg, #FACC15 0%, #EAB308 100%);
  color: #0F172A;
  border-color: #FDE047;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.40);
}

.btn-primary:hover,
.btn-gold:hover {
  background: linear-gradient(135deg, #FDE047 0%, #FACC15 100%);
  color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.60);
}

.btn-outline {
  background: transparent;
  color: #CA8A04;
  border: 1.5px solid #FACC15;
}

.btn-outline:hover {
  background: linear-gradient(135deg, #FACC15 0%, #EAB308 100%);
  color: #0F172A;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.40);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, .6);
}

.btn-outline-white:hover {
  background: #FACC15;
  color: #0F172A;
  border-color: #FACC15;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.45);
}

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

.btn-danger:hover {
  background: #DC2626;
  border-color: #DC2626;
  color: white;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body {
  padding: var(--space-6);
}

.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.card-header h2,
.card-header h3 {
  margin-bottom: 0;
}

.card-footer {
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

/* ── Member Card ─────────────────────────────────────────── */
.member-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.member-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-gold));
}

.member-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold);
}

.member-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  border: 3px solid var(--color-gold);
  font-family: var(--font-display);
}

.member-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

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

.member-company {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  justify-content: center;
}

.member-card-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

/* ── Speaker Card ────────────────────────────────────────── */
.speaker-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
}

.speaker-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.speaker-photo,
.speaker-photo-placeholder {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  box-sizing: border-box;
}

.speaker-photo {
  object-fit: cover;
  object-position: center top;
  background: var(--color-bg-alt);
  display: block;
}

.speaker-photo-placeholder {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #FACC15;
  border-bottom: 2px solid rgba(250, 204, 21, 0.3);
}

.speaker-info {
  padding: var(--space-4);
}

.speaker-name {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.speaker-designation {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.speaker-company {
  font-size: 0.82rem;
  color: var(--color-navy);
  font-weight: 600;
}

/* ── Event Card ──────────────────────────────────────────── */
.event-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.event-card-banner {
  height: 180px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  position: relative;
  overflow: hidden;
}

.event-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card-type {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.event-card-body {
  padding: var(--space-5);
}

.event-card-date {
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.event-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.event-card-location {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ═══════════════════════════════════════════════════════════
   BADGES & STATUS
   ═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-navy {
  background: rgba(30, 58, 95, .1);
  color: var(--color-navy);
}

.badge-gold {
  background: rgba(245, 166, 35, .15);
  color: var(--color-gold-dark);
}

.badge-success {
  background: rgba(16, 185, 129, .1);
  color: #059669;
}

.badge-warning {
  background: rgba(245, 158, 11, .1);
  color: #D97706;
}

.badge-danger {
  background: rgba(239, 68, 68, .1);
  color: #DC2626;
}

.badge-info {
  background: rgba(59, 130, 246, .1);
  color: #2563EB;
}

.badge-muted {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  transition: var(--transition);
  outline: none;
  box-sizing: border-box;
  line-height: 1.4;
}

.form-control:focus {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, .1);
}

.form-control::placeholder {
  color: var(--color-text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  padding: 12px 14px;
  line-height: 1.5;
}

/* ── Universal Select / Dropdown System (Fix text clipping across entire portal) ── */
select,
select.form-control,
.form-control select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  box-sizing: border-box !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 38px 0 14px !important;
  line-height: 42px !important;
  font-size: 0.88rem !important;
  font-family: var(--font-sans) !important;
  color: var(--color-text, #0F172A) !important;
  background-color: var(--color-white, #FFFFFF) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.41 0.59L6 5.17l4.59-4.58L12 2l-6 6-6-6z' fill='%2364748B'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 11px 7px !important;
  border: 1px solid var(--color-border, #E2E8F0) !important;
  border-radius: var(--radius-sm, 8px) !important;
  outline: none !important;
  vertical-align: middle !important;
  cursor: pointer !important;
}

select:focus,
select.form-control:focus {
  border-color: var(--color-navy, #0F172A) !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

select option,
select optgroup {
  font-size: 0.9rem !important;
  padding: 10px 14px !important;
  color: #0F172A !important;
  background-color: #FFFFFF !important;
  line-height: 1.5 !important;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: var(--space-1);
}

.form-control.is-invalid {
  border-color: var(--color-error);
}

/* Checkbox / Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-navy);
  cursor: pointer;
}

.form-check-label {
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
}

/* ── Checkbox Group ──────────────────────────────────────── */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-2);
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.82rem;
}

.checkbox-pill input:checked+span {
  color: var(--color-navy);
  font-weight: 600;
}

.checkbox-pill:has(input:checked) {
  border-color: var(--color-navy);
  background: rgba(30, 58, 95, .05);
}

/* ═══════════════════════════════════════════════════════════
   ALERTS / FLASH MESSAGES
   ═══════════════════════════════════════════════════════════ */
.flash-messages {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 400px;
}

.alert {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slide-in-right 0.3s ease;
}

@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.alert-icon {
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  opacity: .7;
  font-size: 1.1rem;
  padding: 0;
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.alert-warning {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.alert-info {
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

/* ═══════════════════════════════════════════════════════════
   SECTION LAYOUT
   ═══════════════════════════════════════════════════════════ */
.section {
  padding: var(--space-16) 0;
}

.section-lg {
  padding: calc(var(--space-16) * 1.5) 0;
}

.section-sm {
  padding: var(--space-10) 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-navy {
  background: linear-gradient(135deg, var(--color-navy-dark), var(--color-navy));
  color: white;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.section-navy .section-header h2 {
  color: white;
}

.section-navy .section-header p {
  color: rgba(255, 255, 255, .75);
}

/* ═══════════════════════════════════════════════════════════
   TABLE
   ═══════════════════════════════════════════════════════════ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

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

thead th {
  background: var(--color-bg-alt);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

tbody td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--color-bg);
}

.td-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  justify-content: center;
  padding: var(--space-6) 0;
  flex-wrap: wrap;
}

.page-btn {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  cursor: pointer;
}

.page-btn:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.page-btn.active {
  background: var(--color-navy);
  color: white;
  border-color: var(--color-navy);
}

.page-ellipsis {
  padding: var(--space-2);
  color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.filter-bar .form-control {
  min-width: 180px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: 1;
  min-width: 200px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  background: none;
}

.search-bar button {
  padding: var(--space-3) var(--space-4);
  background: var(--color-navy);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.search-bar button:hover {
  background: var(--color-navy-dark);
}

/* ═══════════════════════════════════════════════════════════
   PIXEL-PERFECT TARGET DASHBOARD THEME (MATCHING IMAGE DESIGN)
   ═══════════════════════════════════════════════════════════ */
.lobby-layout,
.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  background: #F8FAFC;
  width: 100%;
}

.lobby-sidebar,
.admin-sidebar {
  width: 260px;
  max-width: 260px;
  min-width: 260px;
  flex-shrink: 0;
  background: #00010f;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1E293B;
  z-index: 100;
}

.lobby-sidebar::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.lobby-sidebar::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .1);
  border-radius: 4px;
}

/* Brand Header */
.sidebar-brand-header {
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand-flame {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FACC15 0%, #EF4444 50%, #CA8A04 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F172A;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.45);
  flex-shrink: 0;
}

.sidebar-brand-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.sidebar-brand-text span {
  color: #FACC15;
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Sidebar Active & Inactive Links */
.sidebar-nav {
  flex: 1;
  padding: 10px 0 20px;
}

.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 20px 20px 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  margin: 2px 14px;
  border-radius: 10px;
  color: #94A3B8;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.sidebar-nav a:hover {
  background: rgba(250, 204, 21, 0.12);
  color: #FDE047;
}

/* VIP Section Special Inactive Accent */
.sidebar-nav a.vip-nav-item {
  color: #FACC15;
}
.sidebar-nav a.vip-nav-item:hover {
  background: rgba(250, 204, 21, 0.16);
  color: #FFFFFF;
}

/* Locked Navigation Items for Entry & Standard Passholders */
.sidebar-nav .nav-item-locked {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 2px 14px;
  border-radius: 10px;
  color: #64748B;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  opacity: 0.65;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.sidebar-nav .nav-item-locked:hover {
  opacity: 0.95;
  background: rgba(250, 204, 21, 0.06);
  border-color: rgba(250, 204, 21, 0.35);
  color: #E2E8F0;
  transform: translateX(2px);
}

.sidebar-nav .nav-item-locked .nav-icon {
  opacity: 0.6;
  color: #94A3B8;
}

.sidebar-nav .nav-item-locked:hover .nav-icon {
  color: #FACC15;
  opacity: 1;
}

.sidebar-nav .nav-locked-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav .nav-locked-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  color: #FACC15;
  border: 1px solid rgba(250, 204, 21, 0.28);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-transform: uppercase;
}

/* Mobile Bottom Bar Locked Item */
.mobile-bottom-app-bar .mobile-nav-item.locked-item {
  opacity: 0.65;
}
.mobile-bottom-app-bar .mobile-nav-item.locked-item:hover {
  opacity: 0.95;
}

/* ── Global VIP Locked Modal ── */
.vip-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: none;
  place-items: center;
  padding: 20px;
  animation: vipFadeIn 0.25s ease forwards;
}

.vip-modal-backdrop.open {
  display: grid;
}

@keyframes vipFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vip-modal-card {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border: 1.5px solid rgba(250, 204, 21, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(250, 204, 21, 0.15);
  position: relative;
  text-align: center;
  color: #FFFFFF;
  animation: vipCardSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes vipCardSlide {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.vip-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94A3B8;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}
.vip-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #EF4444;
  border-color: #EF4444;
}

.vip-modal-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.2), rgba(234, 179, 8, 0.05));
  border: 1.5px solid #FACC15;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: #FACC15;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.25);
}

.vip-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(250, 204, 21, 0.15);
  color: #FACC15;
  border: 1px solid rgba(250, 204, 21, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.vip-modal-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.vip-modal-desc {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.vip-modal-perks {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vip-modal-perk-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: #E2E8F0;
  font-weight: 600;
}

.vip-modal-perk-item span.check-icon {
  color: #FACC15;
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1.2;
}

.vip-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── In-Page Locked Container Overlay ── */
.locked-page-wrapper {
  position: relative;
  min-height: 70vh;
  border-radius: 20px;
  overflow: hidden;
}

.locked-page-content-blurred {
  filter: blur(7px) grayscale(30%);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}

.locked-page-overlay-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(250, 204, 21, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 50;
  color: #FFFFFF;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE PROFILE & MEMBER VIEW
   ═══════════════════════════════════════════════════════════ */
.profile-grid-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
}

@media (max-width: 920px) {
  .profile-grid-layout {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }
}

.profile-card-sidebar {
  padding: 24px;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .profile-card-sidebar {
    padding: 20px 16px;
  }
}

.profile-avatar-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.profile-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid #FACC15;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35);
  display: block;
}

.profile-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 14px;
  font-size: 2rem;
  font-weight: 900;
  color: #0F172A;
  background: linear-gradient(135deg, #FACC15, #CA8A04);
  border: 3px solid #FACC15;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35);
}

.profile-detail-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  align-items: baseline;
}

.profile-detail-item:last-child {
  border-bottom: none;
}

@media (max-width: 580px) {
  .profile-detail-item {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 9px 0;
  }
}

.profile-detail-label {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-detail-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0F172A;
  word-break: break-word;
}

.profile-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

@media (max-width: 600px) {
  .avatar-upload-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
}

/* Active Link System — High Contrast Deep Navy on Pure Gold */
.sidebar-nav a.active,
.sidebar-nav a.vip-nav-item.active {
  background: linear-gradient(135deg, #FACC15 0%, #EAB308 100%) !important;
  color: #0F172A !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.50) !important;
}

.sidebar-nav a.active *,
.sidebar-nav a.vip-nav-item.active * {
  color: #0F172A !important;
}

.sidebar-nav a.active .nav-icon svg,
.sidebar-nav a.vip-nav-item.active .nav-icon svg {
  stroke: #0F172A !important;
}

.sidebar-nav .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: inherit;
}

/* Sidebar Collapse Footer */
.sidebar-collapse-footer {
  padding: 16px 20px;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sidebar-collapse-footer:hover {
  color: #FFFFFF;
}

/* ── Dashboard Main Area ────────────────────────────────── */
.lobby-main,
.admin-main {
  padding: 24px 32px;
  overflow-y: auto;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar Header */
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.dashboard-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 16px;
  width: 360px;
  max-width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dashboard-search-bar input {
  border: none;
  outline: none;
  background: none;
  width: 100%;
  font-size: 0.88rem;
  color: #1E293B;
}

.dashboard-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.topbar-action-icon:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.topbar-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.topbar-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 8px;
}

.topbar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #E2E8F0;
}

.topbar-user-info {
  display: flex;
  flex-direction: column;
}

.topbar-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}

.topbar-user-role {
  font-size: 0.75rem;
  color: #64748B;
  font-weight: 500;
}

/* Welcome Banner */
.welcome-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.welcome-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-display);
}

.welcome-subtitle {
  font-size: 0.9rem;
  color: #64748B;
  margin-top: 2px;
}

.date-picker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* 6 Stat Metric Cards Row */
.six-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #F1F5F9;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 16px -4px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

.metric-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metric-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-purple {
  background: #F3E8FF;
  color: #9333EA;
}

.metric-icon-green {
  background: #DCFCE7;
  color: #16A34A;
}

.metric-icon-orange {
  background: #FFEDD5;
  color: #EA580C;
}

.metric-icon-blue {
  background: #DBEAFE;
  color: #2563EB;
}

.metric-icon-pink {
  background: #FCE7F3;
  color: #DB2777;
}

.metric-icon-teal {
  background: #CCFBF1;
  color: #0D9488;
}

.metric-meta {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-display);
  line-height: 1.1;
}

.metric-trend {
  font-size: 0.72rem;
  font-weight: 700;
  color: #16A34A;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Target Cards Layout Grid */
.dashboard-row-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #F1F5F9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dashboard-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-display);
}

.dashboard-card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4F46E5;
  text-decoration: none;
}

.dashboard-card-link:hover {
  text-decoration: underline;
}

/* Metric Summary Bar */
.metric-summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
  margin-top: 16px;
  text-align: center;
}

.summary-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #F1F5F9;
}

.summary-item:last-child {
  border-right: none;
}

.summary-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
  font-family: var(--font-display);
}

.summary-txt {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748B;
  margin-top: 2px;
}

/* Upcoming Event Card Item */
.upcoming-event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.upcoming-event-item:last-child {
  border-bottom: none;
}

.event-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.event-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1E3A5F, #3B82F6);
  color: white;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-details {
  flex: 1;
  min-width: 0;
}

.event-title-txt {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-sub-txt {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-pill-live {
  background: #DCFCE7;
  color: #15803D;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.status-pill-upcoming {
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Announcement Item */
.announcement-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.announcement-item:last-child {
  border-bottom: none;
}

.announcement-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Quick Action Tiles Grid */
.quick-action-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.action-tile-btn {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-tile-btn:hover {
  background: #FEF9C3;
  border-color: #FACC15;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.3);
  transform: translateY(-2px);
}

.action-tile-icon {
  color: #CA8A04;
}

.action-tile-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0F172A;
}

/* Bottom Row Grid (3 Column) */
.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* Footer Bar */
.dashboard-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94A3B8;
}

/* Sidebar Badge */
.sidebar-badge {
  margin-left: auto;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

/* Sidebar Pass Promo Box */
.sidebar-pass-card {
  margin: 12px 14px 20px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.18) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-pass-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.35) 0%, transparent 70%);
}

.lobby-main {
  margin: auto;
  max-width: 1200px;
  padding: var(--space-6);
  overflow-y: auto;
  min-width: 0;
}

/* ── Lobby Top Bar ───────────────────────────────────────── */
.lobby-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-5);
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  min-width: 200px;
}

.topbar-search input {
  border: none;
  outline: none;
  background: none;
  font-size: 0.85rem;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  text-decoration: none;
  color: var(--color-text-muted);
}

.topbar-icon-btn:hover {
  background: #FEF9C3;
  color: #CA8A04;
  border-color: #FEF08A;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-error);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.topbar-user img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.topbar-user-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

/* SVG Icon Utilities */
.svg-icon {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
  flex-shrink: 0;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

/* Quick Link Cards */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.quick-link-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(250, 204, 21, 0.30);
  border-color: #FACC15;
}

.quick-link-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #FEF9C3;
  color: #CA8A04;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.quick-link-card:hover .quick-link-icon {
  background: linear-gradient(135deg, #FACC15 0%, #EAB308 100%);
  color: #0F172A;
  transform: scale(1.08);
}

.quick-link-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════
   STATS WIDGETS
   ═══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 22px 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
  border-color: rgba(30, 58, 95, 0.2);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.08);
}

.stat-icon-navy {
  background: linear-gradient(135deg, rgba(30, 58, 95, .15), rgba(30, 58, 95, .05));
  color: #1E3A5F;
}

.stat-icon-gold {
  background: linear-gradient(135deg, rgba(245, 166, 35, .2), rgba(245, 166, 35, .08));
  color: #D4891A;
}

.stat-icon-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, .15), rgba(16, 185, 129, .05));
  color: #059669;
}

.stat-icon-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(59, 130, 246, .05));
  color: #2563EB;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #0F172A;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════
   AGENDA / SESSION CARDS
   ═══════════════════════════════════════════════════════════ */
.agenda-date-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}

.agenda-date-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.session-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-5);
  margin-bottom: var(--space-3);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--space-4);
  align-items: start;
  transition: var(--transition);
  position: relative;
}

.session-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--color-navy);
}

.session-card:hover {
  box-shadow: var(--shadow-sm);
}

.session-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  padding-top: 2px;
}

.session-type-badge {
  margin-top: var(--space-1);
}

.session-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.session-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.session-speakers {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.session-speaker-chip {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 2px var(--space-3);
  font-size: 0.75rem;
}

.save-session-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

.save-session-btn:hover,
.save-session-btn.saved {
  border-color: var(--color-gold);
  color: var(--color-gold-dark);
  background: rgba(245, 166, 35, .05);
}

.save-session-btn.saved::before {
  content: '✓ ';
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, .7);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-logo-text {
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-logo-text span {
  color: var(--color-gold);
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, .6);
  font-size: 0.85rem;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: 0.82rem;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .7);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════════════ */
.text-center {
  text-align: center;
}

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

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

.text-gold {
  color: var(--color-gold-dark);
}

.text-navy {
  color: var(--color-navy);
}

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

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

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: var(--space-2);
}

.mb-3 {
  margin-bottom: var(--space-3);
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: var(--space-6);
}

.mt-4 {
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: var(--space-6);
}

.gap-2 {
  gap: var(--space-2);
}

.gap-3 {
  gap: var(--space-3);
}

.gap-4 {
  gap: var(--space-4);
}

.w-full {
  width: 100%;
}

.d-none {
  display: none;
}

.d-flex {
  display: flex;
}

.overflow-hidden {
  overflow: hidden;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-md {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

.page-title {
  margin-bottom: var(--space-8);
}

.page-title h1 {
  margin-bottom: var(--space-2);
}

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-6);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: .4;
}

.empty-state h3 {
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ── Quick Links Grid ────────────────────────────────────── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-4);
}

.quick-link-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-5);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.quick-link-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-gold);
}

.quick-link-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
}

.quick-link-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════
   MESSAGES UI
   ═══════════════════════════════════════════════════════════ */
.messages-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  height: calc(100vh - 180px);
  min-height: 500px;
}

.conversations-list {
  border-right: 1px solid var(--color-border);
  overflow-y: auto;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.conv-item:hover,
.conv-item.active {
  background: var(--color-bg);
}

.conv-item.active {
  background: rgba(30, 58, 95, .05);
  border-right: 3px solid var(--color-navy);
}

.conv-info {
  flex: 1;
  min-width: 0;
}

.conv-name {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-last-msg {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 0.7rem;
  color: var(--color-text-light);
}

.conv-unread {
  background: var(--color-navy);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  padding: 1px 6px;
  font-weight: 700;
}

.chat-area {
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.msg-bubble {
  max-width: 65%;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.msg-bubble.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-bubble.theirs {
  align-self: flex-start;
}

.msg-text {
  padding: var(--space-3) var(--space-4);
  border-radius: 18px;
  font-size: 0.875rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.msg-bubble.mine .msg-text {
  background: var(--color-navy);
  color: white;
  border-bottom-right-radius: 4px;
}

.msg-bubble.theirs .msg-text {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-bottom-left-radius: 4px;
}

.msg-time {
  font-size: 0.7rem;
  color: var(--color-text-light);
}

.chat-input-area {
  padding: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  outline: none;
  resize: none;
  height: 44px;
  max-height: 120px;
  font-family: var(--font-sans);
}

.chat-input:focus {
  border-color: var(--color-navy);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-navy);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--color-navy-dark);
}

/* ── Mobile Search Toggle & Table Responsiveness ─────────────── */
.topbar-search-toggle {
  display: none;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.topbar-search-toggle:hover {
  background: #FEF9C3;
  color: #CA8A04;
  border-color: #FEF08A;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .lobby-sidebar {
    display: none;
  }

  .lobby-layout {
    grid-template-columns: 1fr;
  }

  .lobby-sidebar.open {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    width: 260px;
  }

  .six-stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .dashboard-row-grid,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr !important;
  }

  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns: 1fr 350px"],
  div[style*="grid-template-columns: 350px 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .lobby-main,
  .admin-main {
    padding: 16px !important;
  }

  .topbar-search-toggle {
    display: flex;
  }

  .topbar-search {
    display: none;
  }

  .topbar-search.active {
    display: flex !important;
    position: absolute;
    top: 8px;
    left: 12px;
    right: 12px;
    height: 48px;
    z-index: 500;
    background: #FFFFFF;
    border: 2px solid #FACC15;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    padding: 0 16px;
    align-items: center;
    gap: 10px;
  }

  .topbar-search.active input {
    flex: 1;
    font-size: 0.9rem;
    color: #0F172A;
    background: transparent;
    border: none;
    outline: none;
  }

  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-navy-dark);
    padding: var(--space-4);
  }

  .hamburger {
    display: flex;
  }

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

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

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

  .hero {
    padding: var(--space-12) 0;
  }

  .messages-layout {
    grid-template-columns: 1fr;
  }

  .conversations-list {
    display: none;
  }

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

  .session-card {
    grid-template-columns: 60px 1fr;
  }

  .session-card> :last-child {
    grid-column: 1/-1;
  }

  .six-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .filter-bar,
  .filter-container {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .filter-bar .form-control,
  .filter-bar select,
  .filter-bar input,
  .filter-bar button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 480px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: var(--space-6);
  }

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

  .container {
    padding: 0 var(--space-4);
  }

  .quick-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .quick-link-card {
    padding: var(--space-3);
  }

  .six-stats-grid,
  div[style*="grid-template-columns: repeat(4, 1fr)"],
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
}