:root {
  --primary: #0b3c74;
  --secondary: #7c1234;
  --accent: #d4af37;
  --background: #f7f9fc;
  --text: #2d3748;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background-color: var(--background);
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: "Playfair Display", serif;
}

.font-number {
  font-family: "Montserrat", sans-serif;
}

/* Glassmorphism & Apple UI Style */
.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(11, 60, 116, 0.06);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  box-shadow: 0 20px 40px rgba(11, 60, 116, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #0b3c74;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7c1234;
}

/* Scroll Reading Progress Bar */
#scroll-progress {
  background: linear-gradient(90deg, #d4af37 0%, #7c1234 50%, #0b3c74 100%);
}

/* Hero Background Image with Gradient Overlay */
.hero-bg {
  background:
    linear-gradient(
      135deg,
      rgba(5, 31, 62, 0.85) 0%,
      rgba(11, 60, 116, 0.75) 50%,
      rgba(75, 11, 31, 0.85) 100%
    ),
    url("../img/main_hero_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Button Ripple & Glow */
.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b8911d 100%);
  color: #0b3c74;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #e5c354 0%, #c49c24 100%);
}

/* Register Now Dropdown */
.register-dropdown-wrapper {
  position: relative;
}
.register-dropdown-menu {
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.register-dropdown-wrapper:hover .register-dropdown-menu,
.register-dropdown-wrapper.is-open .register-dropdown-menu,
.register-dropdown-wrapper:focus-within .register-dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.register-dropdown-icon {
  display: inline-block;
  transition: transform 0.25s ease;
}
.register-dropdown-wrapper:hover .register-dropdown-icon,
.register-dropdown-wrapper.is-open .register-dropdown-icon {
  transform: rotate(180deg);
}
.register-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.register-dropdown-item:hover {
  background-color: rgba(11, 60, 116, 0.05);
}
.register-dropdown-item:hover .item-icon-user {
  background-color: var(--primary);
  color: #ffffff;
}
.register-dropdown-item:hover .item-icon-group {
  background-color: var(--accent);
  color: #0b3c74;
}
.register-dropdown-item:hover .item-title {
  color: var(--primary);
}

.btn-primary-gradient {
  background: linear-gradient(135deg, #0b3c74 0%, #1656a0 100%);
  color: #ffffff;
  transition: all 0.3s ease;
}
.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 60, 116, 0.4);
}

/* Page Loader */
#page-loader {
  position: fixed;
  inset: 0;
  background: #0b3c74;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.loader-ring {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(212, 175, 55, 0.2);
  border-top: 5px solid #d4af37;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Floating Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}
.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* Pulse Gold Glow */
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
  }
}
.pulse-gold {
  animation: pulseGlow 2.5s infinite;
}

/* Tab active state */
.tab-btn.active {
  background-color: #0b3c74;
  color: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 4px 14px rgba(11, 60, 116, 0.25);
}

/* Section transition view mode */
.view-section {
  display: block;
}
/* Responsive overrides for missing tailwind classes */
@media (min-width: 1024px) {
  .lg\:hidden {
    display: none !important;
  }
  .lg\:flex {
    display: flex !important;
  }
  .lg\:block {
    display: block !important;
  }
}
@media (min-width: 768px) {
  .md\:hidden {
    display: none !important;
  }
  .md\:flex {
    display: flex !important;
  }
  .md\:block {
    display: block !important;
  }
}

/* Fix AOS horizontal scroll issue without breaking position: sticky */
html,
body {
  overflow-x: clip; /* Modern clean overflow containment preserving sticky headers */
  max-width: 100vw;
  -webkit-overflow-scrolling: touch;
}

main,
footer,
header {
  max-width: 100vw;
}

/* iOS Safari auto-zoom prevention on input focus */
@media (max-width: 768px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* International Tel Input Full-Width Mobile Support */
.iti {
  width: 100% !important;
}
.iti__country-list {
  max-width: 92vw !important;
}

/* Mobile navigation touch targets */
#mobile-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Smooth Horizontal Scroll on Mobile Tables & Nav */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* Mobile Compact Ticker */
@media (max-width: 640px) {
  .ticker-wrap {
    padding: 5px 0;
  }
  .ticker-content {
    font-size: 0.78rem;
  }
  .ticker-badge {
    font-size: 0.65rem;
    padding: 1px 7px;
    margin-right: 8px;
  }
}

/* Custom utilities */
.bg-red-600 {
  background-color: #dc2626 !important;
}

/* Enhanced News Ticker */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, #dc2626, #991b1b);
  color: white;
  padding: 8px 0;
  position: relative;
  z-index: 40;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 25s linear infinite;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.ticker-content:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.ticker-badge {
  background: #ffed4a;
  color: #991b1b;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.75rem;
  margin-right: 12px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-link {
  color: #ffed4a;
  text-decoration: underline;
  margin-left: 15px;
  transition: opacity 0.2s;
}

.ticker-link:hover {
  opacity: 0.8;
}

/* Entrance animation for API rendered cards */
@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.item-in {
  animation: itemIn 0.45s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .item-in {
    animation: none;
  }
}

/* ==================================================== */
/* MODERN SCIENTIFIC SESSIONS & TIMELINE STYLES */
/* ==================================================== */
:root {
  --header-height: 96px;
}

/* ==================================================== */
#sessions {
  overflow: visible !important;
}

#sticky-filter-bar,
.schedule-sticky-wrapper {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 96px;
  top: var(--header-height, 96px) !important;
  z-index: 45 !important;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  margin-left: -1rem;
  margin-right: -1rem;
  padding: 0.65rem 1rem;
  margin-bottom: 1.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  :root {
    --header-height: 114px;
  }
  #sticky-filter-bar,
  .schedule-sticky-wrapper {
    top: 114px;
    top: var(--header-height, 114px) !important;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  #sticky-filter-bar,
  .schedule-sticky-wrapper {
    margin-left: 0;
    margin-right: 0;
    border-radius: 1.5rem;
    padding: 0.85rem 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(255, 255, 255, 0.96);
  }
}

#sticky-filter-bar.is-stuck,
.schedule-sticky-wrapper.is-stuck {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 28px -4px rgba(11, 60, 116, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  border-bottom-color: #cbd5e1;
}

/* Horizontal Scroll Row for Mobile Tabs */
.mobile-scroll-row {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0.5rem;
  padding-bottom: 2px;
}
.mobile-scroll-row::-webkit-scrollbar {
  display: none;
}

/* Mobile Filter Toggle Button */
.mobile-filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.75rem;
  font-size: 0.775rem;
  font-weight: 700;
  background: #ffffff;
  color: #0b3c74;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(11, 60, 116, 0.04);
  white-space: nowrap;
}
.mobile-filter-toggle-btn:hover,
.mobile-filter-toggle-btn.active {
  background: #0b3c74;
  color: #ffffff;
  border-color: #0b3c74;
  box-shadow: 0 4px 12px rgba(11, 60, 116, 0.2);
}
.mobile-filter-toggle-btn.active #filter-chevron {
  transform: rotate(180deg);
}

/* Collapsible Filter Tray Panel */
.filter-tray-panel {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-tray-panel.collapsed {
  display: none !important;
}
.filter-tray-panel:not(.collapsed) {
  display: block !important;
  animation: traySlideDown 0.25s ease-out;
}
@keyframes traySlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dedicated Bottom Arrow Pull-Tab */
.filter-bottom-tab-bar {
  display: flex;
  justify-content: center;
  position: relative;
  margin-top: 0.5rem;
  margin-bottom: -0.45rem;
  z-index: 5;
}
.filter-collapse-arrow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 1.15rem;
  background: #ffffff;
  color: #0b3c74;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(11, 60, 116, 0.08);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-collapse-arrow-btn:hover {
  background: #0b3c74;
  color: #ffffff;
  border-color: #0b3c74;
  box-shadow: 0 4px 14px rgba(11, 60, 116, 0.25);
  transform: translateY(-1px);
}
.filter-collapse-arrow-btn:active {
  transform: translateY(0);
}

/* ==================================================== */
/* FACULTY DIRECTORY STICKY SEARCH BAR */
/* ==================================================== */
#faculty-sticky-bar,
.faculty-sticky-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 76px;
  top: var(--header-height, 76px) !important;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.85rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 2px 10px rgba(11, 60, 116, 0.04);
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

@media (max-width: 639px) {
  #faculty-sticky-bar,
  .faculty-sticky-bar {
    top: 104px;
    top: var(--header-height, 104px) !important;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  #faculty-sticky-bar,
  .faculty-sticky-bar {
    top: 114px;
    top: var(--header-height, 114px) !important;
  }
}

@media (min-width: 1024px) {
  #faculty-sticky-bar,
  .faculty-sticky-bar {
    top: 114px;
    top: var(--header-height, 114px) !important;
  }
}

#faculty-sticky-bar.is-stuck,
.faculty-sticky-bar.is-stuck {
  background: rgba(255, 255, 255, 0.98);
  border-color: #cbd5e1;
  box-shadow: 0 10px 28px -4px rgba(11, 60, 116, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

/* Faculty Search Input Box & Icon Alignment */
.faculty-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.faculty-search-wrapper .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.825rem;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.faculty-search-wrapper:focus-within .search-icon {
  color: #0b3c74;
}

#faculty-search {
  width: 100% !important;
  padding-left: 2.65rem !important;
  padding-right: 2.5rem !important;
  padding-top: 0.65rem !important;
  padding-bottom: 0.65rem !important;
  border-radius: 0.875rem !important;
  border: 1.5px solid #cbd5e1 !important;
  font-size: 0.825rem !important;
  line-height: 1.25rem !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(11, 60, 116, 0.04) !important;
  transition: all 0.2s ease !important;
}

#faculty-search::placeholder {
  color: #94a3b8 !important;
  font-size: 0.8rem !important;
}

#faculty-search:focus {
  outline: none !important;
  border-color: #0b3c74 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(11, 60, 116, 0.12), 0 2px 8px rgba(11, 60, 116, 0.08) !important;
}

#faculty-search-clear {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s ease, transform 0.2s ease;
}

#faculty-search-clear:hover {
  color: #dc2626;
  transform: translateY(-50%) scale(1.1);
}

#faculty-search-clear.hidden {
  display: none !important;
}

/* ==================================================== */
/* SESSIONS SEARCH & TYPE FILTER UI */
/* ==================================================== */
.session-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  flex: 1 1 0%;
}

.session-search-wrapper .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 2;
  transition: color 0.2s ease;
}

.session-search-wrapper:focus-within .search-icon {
  color: #0b3c74;
}

#session-search {
  width: 100% !important;
  height: 42px !important;
  padding-left: 2.65rem !important;
  padding-right: 2.5rem !important;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  border-radius: 0.75rem !important;
  border: 1.5px solid #cbd5e1 !important;
  font-size: 0.85rem !important;
  line-height: 1.25rem !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(11, 60, 116, 0.04) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

#session-search::placeholder {
  color: #94a3b8 !important;
  font-size: 0.825rem !important;
}

#session-search:focus {
  outline: none !important;
  border-color: #0b3c74 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(11, 60, 116, 0.12), 0 2px 8px rgba(11, 60, 116, 0.08) !important;
}

#search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 2;
  padding: 0;
}

#search-clear-btn:hover {
  color: #dc2626;
  transform: translateY(-50%) scale(1.1);
}

#search-clear-btn.hidden {
  display: none !important;
}

.session-type-filter-wrapper {
  display: flex;
  align-items: center;
}

#type-filter {
  height: 42px !important;
  padding-left: 0.875rem !important;
  padding-right: 2.25rem !important;
  border-radius: 0.75rem !important;
  border: 1.5px solid #cbd5e1 !important;
  font-size: 0.825rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(11, 60, 116, 0.04) !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  box-sizing: border-box !important;
}

#type-filter:focus {
  outline: none !important;
  border-color: #0b3c74 !important;
  box-shadow: 0 0 0 3px rgba(11, 60, 116, 0.12), 0 2px 8px rgba(11, 60, 116, 0.08) !important;
}

@media (max-width: 639px) {
  .session-type-filter-wrapper {
    width: 100%;
  }
  #type-filter {
    width: 100% !important;
  }
}


/* Mobile Day Dropdown (Mobile view only) */
.mobile-day-dropdown-wrapper {
  position: relative;
  width: 100%;
}

.mobile-day-dropdown-wrapper .mobile-day-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: #d4af37;
  pointer-events: none;
  z-index: 2;
}

.mobile-day-dropdown-wrapper .mobile-day-arrow {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: #64748b;
  pointer-events: none;
  transition: transform 0.2s ease;
  z-index: 2;
}

.mobile-day-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 38px;
  padding: 0 2rem 0 2.25rem;
  border-radius: 0.75rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: #0b3c74;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(11, 60, 116, 0.04);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1.4;
}

.mobile-day-select:focus {
  outline: none;
  border-color: #0b3c74;
  box-shadow: 0 0 0 3px rgba(11, 60, 116, 0.12), 0 2px 8px rgba(11, 60, 116, 0.08);
}

.mobile-day-select option {
  font-weight: 600;
  color: #1e293b;
  background-color: #ffffff;
  padding: 0.5rem;
}

@media (max-width: 639px) {
  #day-tabs {
    display: none !important;
  }
  .mobile-day-dropdown-wrapper {
    display: flex !important;
  }
}

@media (min-width: 640px) {
  .mobile-day-dropdown-wrapper {
    display: none !important;
  }
  #day-tabs {
    display: flex !important;
  }
}

/* Day Switcher Tab Cards */
.day-tab-pill {
  padding: 0.65rem 1.25rem;
  border-radius: 0.875rem;
  font-size: 0.825rem;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(11, 60, 116, 0.04);
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .day-tab-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.775rem;
    border-radius: 0.75rem;
    gap: 0.35rem;
  }
}
.day-tab-pill .day-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}
.day-tab-pill.active {
  background: linear-gradient(135deg, #0b3c74 0%, #164e8a 100%) !important;
  color: #ffffff !important;
  border-color: #0b3c74 !important;
  box-shadow: 0 10px 25px -4px rgba(11, 60, 116, 0.35), 0 4px 8px -2px rgba(11, 60, 116, 0.2) !important;
  transform: translateY(-1px);
}
.day-tab-pill.active .day-badge {
  background: rgba(212, 175, 55, 0.25);
  color: #fce79a;
  border: 1px solid rgba(212, 175, 55, 0.4);
}
.day-tab-pill:not(.active):hover {
  border-color: #0b3c74;
  color: #0b3c74;
  background-color: #f8fafc;
  transform: translateY(-1px);
}
.day-tab-pill.bookmark-tab.active {
  background: linear-gradient(135deg, #854d0e 0%, #b45309 100%) !important;
  border-color: #d97706 !important;
}

/* Hall Filter Selector */
.hall-pill {
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
  border: 1.5px solid #e2e8f0;
  background-color: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hall-pill .hall-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  display: inline-block;
  background-color: #94a3b8;
}
.hall-pill[data-hall*="RAJAGOPAL"] .hall-dot,
.hall-pill[data-hall*="Rajagopal"] .hall-dot,
.hall-pill[data-hall="Hall A"] .hall-dot { background-color: #0b3c74; }

.hall-pill[data-hall*="RIO"] .hall-dot,
.hall-pill[data-hall*="Rio"] .hall-dot,
.hall-pill[data-hall="Hall B"] .hall-dot { background-color: #059669; }

.hall-pill.active {
  background-color: #0b3c74 !important;
  color: #ffffff !important;
  border-color: #0b3c74 !important;
  box-shadow: 0 4px 14px -2px rgba(11, 60, 116, 0.35);
}
.hall-pill.active .hall-dot {
  background-color: #d4af37 !important;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}
.hall-pill[data-hall*="RIO"].active,
.hall-pill[data-hall*="Rio"].active,
.hall-pill[data-hall="Hall B"].active {
  background-color: #059669 !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 14px -2px rgba(5, 150, 105, 0.35);
}
.hall-pill:not(.active):hover {
  border-color: #0b3c74;
  color: #0b3c74;
  background-color: #f8fafc;
}

/* View Mode Switcher Toggle */
.view-mode-btn {
  padding: 0.45rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.view-mode-btn.active {
  background: #ffffff;
  color: #0b3c74;
  box-shadow: 0 2px 8px rgba(11, 60, 116, 0.1);
  border-color: #e2e8f0;
}
.view-mode-btn:not(.active):hover {
  color: #0b3c74;
}

/* Category Quick Filter Chips */
.cat-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.cat-chip:hover {
  border-color: #cbd5e1;
  color: #0f172a;
  background: #f8fafc;
}
.cat-chip.active {
  background: #0b3c74;
  color: #ffffff;
  border-color: #0b3c74;
  box-shadow: 0 2px 8px rgba(11, 60, 116, 0.25);
}

/* Time Jump Pills */
.time-jump-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.time-jump-pill:hover,
.time-jump-pill.active {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

/* ==================================================== */
/* TIMELINE SESSION CARD */
/* ==================================================== */
.timeline-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #0b3c74;
  box-shadow: 0 2px 12px -2px rgba(11, 60, 116, 0.05);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.timeline-card.hall-a-card {
  border-left-color: #0b3c74;
  background: linear-gradient(135deg, #ffffff 0%, #f6f9fe 100%);
  border-color: #dbeafe;
}
.timeline-card.hall-b-card {
  border-left-color: #059669;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf7 100%);
  border-color: #a7f3d0;
}
.timeline-card.hall-b-card .timeline-time-col > div:first-child,
.timeline-card.hall-b-card .timeline-time-col .text-\[\#0B3C74\] {
  color: #047857 !important;
}
.timeline-card.ceremony-card {
  border-left-color: #d4af37;
  background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
}
.timeline-card.break-card {
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 60%);
}

@media (min-width: 992px) {
  .timeline-card {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.75rem;
  }
}

.timeline-card:hover {
  box-shadow: 0 14px 34px -4px rgba(11, 60, 116, 0.12);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}
.timeline-card.hall-a-card:hover {
  box-shadow: 0 14px 34px -4px rgba(11, 60, 116, 0.16);
  border-color: #93c5fd;
}
.timeline-card.hall-b-card:hover {
  box-shadow: 0 14px 34px -4px rgba(5, 150, 105, 0.16);
  border-color: #6ee7b7;
}

.timeline-time-col {
  flex-shrink: 0;
  min-width: 130px;
  display: flex;
  flex-direction: column;
}

.timeline-content-col {
  flex: 1 1 0%;
  min-width: 0;
}

.timeline-faculty-col {
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 992px) {
  .timeline-faculty-col {
    width: 330px;
    border-left: 1px solid #f1f5f9;
    padding-left: 1.5rem;
  }
}

.timeline-card h3,
.timeline-card h4,
#schedule-title {
  font-family: "Poppins", "Montserrat", -apple-system, sans-serif !important;
}

/* Timeline vertical line & node */
#timeline-line {
  background: linear-gradient(180deg, #93c5fd 0%, #0b3c74 50%, #93c5fd 100%);
  opacity: 0.35;
}

.timeline-bullet {
  position: absolute;
  top: 1.85rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background-color: #0b3c74;
  border: 3.5px solid #ffffff;
  box-shadow: 0 0 0 1.5px rgba(11, 60, 116, 0.4), 0 3px 8px rgba(11, 60, 116, 0.25);
  z-index: 10;
  transition: all 0.25s ease;
}
.timeline-item.hall-a-item .timeline-bullet {
  background-color: #0b3c74;
  box-shadow: 0 0 0 1.5px rgba(11, 60, 116, 0.4), 0 3px 8px rgba(11, 60, 116, 0.25);
}
.timeline-item.hall-b-item .timeline-bullet {
  background-color: #059669;
  box-shadow: 0 0 0 1.5px rgba(5, 150, 105, 0.4), 0 3px 8px rgba(5, 150, 105, 0.25);
}
.timeline-item.ceremony-item .timeline-bullet {
  background-color: #d4af37;
  box-shadow: 0 0 0 1.5px rgba(212, 175, 55, 0.6), 0 3px 8px rgba(212, 175, 55, 0.35);
}
.timeline-item.break-item .timeline-bullet {
  background-color: #f59e0b;
  box-shadow: 0 0 0 1.5px rgba(245, 158, 11, 0.4), 0 3px 8px rgba(245, 158, 11, 0.25);
}
.timeline-item:hover .timeline-bullet {
  transform: scale(1.2);
}

/* Hall Badges */
.hall-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.hall-tag-a {
  background-color: #0b3c74;
  color: #ffffff;
  border: 1px solid #0b3c74;
  box-shadow: 0 1px 3px rgba(11, 60, 116, 0.25);
}
.hall-tag-b {
  background-color: #059669;
  color: #ffffff;
  border: 1px solid #059669;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.25);
}

/* Duration Pill */
.duration-pill {
  font-size: 0.675rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: fit-content;
}

/* Session Type Badges */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.725rem;
  font-weight: 700;
}
.badge-lecture { background: #eff6ff; color: #1d4ed8; border: 1px solid #dbeafe; }
.badge-panel { background: #faf5ff; color: #7e22ce; border: 1px solid #f3e8ff; }
.badge-oration { background: #fefce8; color: #a16207; border: 1px solid #fef08a; }
.badge-paper { background: #ecfeff; color: #0e7490; border: 1px solid #cffafe; }
.badge-award { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.badge-debate { background: #fff1f2; color: #be123c; border: 1px solid #ffe4e6; }
.badge-nuggets { background: #fdf4ff; color: #a21caf; border: 1px solid #f5d0fe; }
.badge-ceremony { background: #fdf2f8; color: #9d174d; border: 1px solid #fbcfe8; }
.badge-break { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-meeting { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

/* Interactive Action Buttons */
.cal-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.35rem 0.85rem !important;
  border-radius: 9999px !important;
  font-size: 0.725rem !important;
  font-weight: 600 !important;
  background-color: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  width: auto !important;
  max-width: fit-content !important;
  cursor: pointer;
}
.cal-btn:hover {
  background-color: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #0b3c74 !important;
  transform: translateY(-1px);
}
.cal-btn svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  flex-shrink: 0 !important;
  display: block;
}

.action-icon-btn svg {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  flex-shrink: 0 !important;
  display: block;
}

.action-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.775rem;
}
.action-icon-btn:hover {
  background: #ffffff;
  color: #0b3c74;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}
.action-icon-btn.bookmarked {
  background: #fef3c7;
  color: #d97706;
  border-color: #fcd34d;
}

/* Faculty Section Styles */
.faculty-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.faculty-chip:hover {
  background-color: #f8fafc;
}
.faculty-chip .fac-avatar {
  width: 1.65rem;
  height: 1.65rem;
  min-width: 1.65rem;
  border-radius: 9999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-family: "Montserrat", sans-serif;
}
.fac-chair .fac-avatar { background: linear-gradient(135deg, #0b3c74 0%, #1e40af 100%); }
.fac-mod .fac-avatar { background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%); }
.fac-panel .fac-avatar { background: linear-gradient(135deg, #0d9488 0%, #059669 100%); }
.fac-spk .fac-avatar { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }

/* Break Banner Session Layout */
.break-banner {
  display: flex;
  flex-direction: column;
  sm-flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

/* ==================================================== */
/* COMPACT AGENDA VIEW (MODERN SCIENTIFIC PROGRAM GRID) */
/* ==================================================== */
:root {
  --c-grid-bg: #f8fafc;
  --c-grid-surface: #ffffff;
  --c-grid-ink: #0f172a;
  --c-grid-muted: #64748b;
  --c-grid-line: #e2e8f0;
  --c-grid-accent: #1f4fd6;
  --c-grid-accent-soft: #eef2ff;
}

.compact-grid {
  background: var(--c-grid-surface);
  border: 1px solid var(--c-grid-line);
  border-radius: 1rem;
  overflow: visible;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
}

.compact-ghead,
.compact-item {
  display: grid;
  grid-template-columns: 125px minmax(220px, 1.35fr) minmax(160px, 1fr) minmax(140px, 0.9fr) minmax(140px, 0.9fr) 84px;
  gap: 1.15rem;
  padding: 1rem 1.25rem;
  align-items: start;
}

.compact-item.hidden,
.compact-row.hidden,
.timeline-item.hidden {
  display: none !important;
}

.compact-ghead {
  position: -webkit-sticky;
  position: sticky;
  top: 228px;
  top: var(--compact-ghead-top, calc(var(--header-height, 105px) + var(--sticky-bar-height, 115px) + 6px));
  z-index: 35;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-grid-muted);
  font-weight: 700;
  background: #f8fafc;
  border-bottom: 1px solid var(--c-grid-line);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.compact-ghead.is-stuck {
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 4px 14px -2px rgba(11, 60, 116, 0.09), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  border-bottom-color: #cbd5e1;
}

.compact-head-action {
  text-align: right;
  padding-right: 0.5rem;
}

.compact-item {
  background: #ffffff;
  border-bottom: 1px solid var(--c-grid-line);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.compact-item:first-child {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.compact-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.compact-item:hover {
  background: #fbfcfe;
}

/* Distinct Hall Card Styles for Compact View */
.compact-item.hall-a-row {
  border-left: 5px solid #0b3c74;
  background: linear-gradient(90deg, rgba(238, 242, 255, 0.6) 0%, #ffffff 32%);
}
.compact-item.hall-a-row:hover {
  background: #f4f7fe;
}
.compact-item.hall-a-row .compact-time .time-start {
  color: #0b3c74;
}

.compact-item.hall-b-row {
  border-left: 5px solid #059669;
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.7) 0%, #ffffff 32%);
}
.compact-item.hall-b-row:hover {
  background: #f0fdf6;
}
.compact-item.hall-b-row .compact-time .time-start {
  color: #047857;
}

.compact-item.break {
  border-left: 5px solid #f59e0b !important;
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.45) 0%, #ffffff 32%) !important;
}
.compact-item.break:hover {
  background: #fffbeb !important;
}

/* Time Column */
.compact-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: #0b3c74;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.compact-time .time-start {
  display: block;
  font-weight: 700;
  color: #0f172a;
}

.compact-time .time-end {
  display: block;
  color: var(--c-grid-muted);
  font-weight: 500;
  font-size: 12px;
  margin-top: 1px;
}

.compact-time .time-pill {
  display: inline-block;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  margin-top: 5px;
  border: 1px solid #e2e8f0;
}

/* Session Column */
.compact-session {
  min-width: 0;
}

.compact-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 6px;
}

.compact-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2.5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
}

.compact-tag.tag-hall-a {
  background: #0b3c74;
  color: #ffffff;
  border: 1px solid #0b3c74;
  box-shadow: 0 1px 3px rgba(11, 60, 116, 0.25);
}

.compact-tag.tag-hall-b {
  background: #059669;
  color: #ffffff;
  border: 1px solid #059669;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.25);
}

.compact-tag.tag-hall-foyer {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.compact-topic {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.compact-item:hover .compact-topic {
  color: #0b3c74;
}

.compact-desc {
  font-size: 12.5px;
  color: var(--c-grid-muted);
  line-height: 1.45;
  margin-top: 4px;
}

/* People (Speaker & Chairperson) Column */
.compact-people {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 13.5px;
}

.compact-person {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.compact-person-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.compact-person-name {
  font-weight: 600;
  color: #1e293b;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.compact-person-name:hover {
  color: #0b3c74;
  cursor: pointer;
  text-decoration: underline;
}

/* Speaker Tag Badges */
.speaker-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 1.5px 7px;
  border-radius: 9999px;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
  transition: transform 0.15s ease;
}

/* Green: Debate – For (#10b981) */
.speaker-tag.tag-debate-for,
.speaker-tag.tag-debate---for,
.speaker-tag.tag-debate--for,
.tag-debate-for,
.tag-debate---for {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

/* Red: Debate – Against (#ef4444) */
.speaker-tag.tag-debate-against,
.speaker-tag.tag-debate---against,
.speaker-tag.tag-debate--against,
.tag-debate-against,
.tag-debate---against {
  background-color: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
}

/* Purple: Debate – Verdict (#8b5cf6) */
.speaker-tag.tag-debate-verdict,
.speaker-tag.tag-debate---verdict,
.speaker-tag.tag-debate--verdict,
.tag-debate-verdict,
.tag-debate---verdict {
  background-color: #f5f3ff !important;
  color: #6d28d9 !important;
  border-color: #ddd6fe !important;
}

/* Amber/Orange: Panelist (#f59e0b) */
.speaker-tag.tag-panelist,
.tag-panelist {
  background-color: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}

/* Default / Neutral Badge */
.speaker-tag.tag-default {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}

.compact-person-sub {
  color: var(--c-grid-muted);
  font-size: 12px;
  font-weight: 400;
  margin-top: 1px;
}

.compact-dash {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.compact-lbl {
  display: none;
}

/* Action Column */
.compact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  shrink: 0;
}

.compact-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--c-grid-line);
  background: #ffffff;
  color: #1f4fd6;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.compact-action-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.compact-bookmark-btn {
  color: #64748b;
}

.compact-bookmark-btn:hover {
  background: #fffbeb;
  border-color: #fde68a;
  color: #d97706;
}

.compact-bookmark-btn.bookmarked {
  color: #d97706;
  background: #fef3c7;
  border-color: #fcd34d;
}

/* Responsive Stacking for Screens <= 900px */
@media (max-width: 900px) {
  .compact-ghead {
    display: none;
  }

  .compact-item {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-grid-line);
  }

  .compact-time {
    grid-column: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
  }

  .compact-time .time-start {
    display: inline;
  }

  .compact-time .time-end {
    display: inline;
    margin-top: 0;
  }

  .compact-time .time-end::before {
    content: "– ";
    color: #94a3b8;
  }

  .compact-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .compact-session {
    grid-column: 1 / -1;
  }

  .compact-people {
    grid-column: 1 / -1;
    padding-top: 4px;
    border-top: 1px dashed #f1f5f9;
  }

  .compact-people.mobile-hide-empty {
    display: none;
  }

  .compact-lbl {
    display: block;
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 2px;
  }
}


/* ==================================================== */
/* DUAL TRACK VIEW (HALL A vs HALL B) */
/* ==================================================== */
.dual-slot-header {
  background: linear-gradient(90deg, #0b3c74 0%, #059669 100%);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 1rem 1rem 0 0;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dual-track-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .dual-track-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.dual-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.dual-card.dual-card-a {
  border-left: 5px solid #0b3c74;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
  border-color: #dbeafe;
}
.dual-card.dual-card-a:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(11, 60, 116, 0.12);
}
.dual-card.dual-card-b {
  border-left: 5px solid #059669;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf7 100%);
  border-color: #a7f3d0;
}
.dual-card.dual-card-b:hover {
  border-color: #6ee7b7;
  box-shadow: 0 10px 24px rgba(5, 150, 105, 0.12);
}
.dual-card:hover {
  box-shadow: 0 8px 20px rgba(11, 60, 116, 0.08);
  transform: translateY(-2px);
}

/* ==================================================== */
/* TOAST NOTIFICATION */
/* ==================================================== */
#schedule-toast {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  z-index: 9999;
  background: #0b3c74;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.825rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(11, 60, 116, 0.35);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
#schedule-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==================================================== */
/* UNIVERSAL APP TOAST NOTIFICATION SYSTEM */
/* ==================================================== */
.app-toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 440px;
  width: calc(100vw - 3rem);
  pointer-events: none;
}

@media (max-width: 640px) {
  .app-toast-container {
    top: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
  }
}

.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
  border-radius: 1rem;
  background: rgba(11, 26, 48, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f8fafc;
  box-shadow: 0 16px 36px rgba(11, 26, 48, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.app-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.app-toast.hide {
  transform: translateY(-16px) scale(0.94);
  opacity: 0;
}

.app-toast-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.app-toast.toast-warning {
  border-left: 4px solid #f59e0b;
}
.app-toast.toast-warning .app-toast-icon {
  color: #fbbf24;
}

.app-toast.toast-error {
  border-left: 4px solid #ef4444;
}
.app-toast.toast-error .app-toast-icon {
  color: #f87171;
}

.app-toast.toast-success {
  border-left: 4px solid #10b981;
}
.app-toast.toast-success .app-toast-icon {
  color: #34d399;
}

.app-toast.toast-info {
  border-left: 4px solid #38bdf8;
}
.app-toast.toast-info .app-toast-icon {
  color: #38bdf8;
}

.app-toast-content {
  flex: 1;
  min-width: 0;
}

.app-toast-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.app-toast-message {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
  word-break: break-word;
}

.app-toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0.25rem;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: color 0.15s, background-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: -0.15rem;
  margin-right: -0.25rem;
}

.app-toast-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* ==================================================== */
/* MOBILE DELEGATE ROSTER CARDS & MODALS */
/* ==================================================== */
/* ==================================================== */
/* MOBILE DELEGATE ROSTER CARDS, ACTIONS & MODALS */
/* ==================================================== */
.delegate-mobile-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.1rem;
  box-shadow: 0 4px 16px rgba(11, 37, 69, 0.05), 0 1px 3px rgba(11, 37, 69, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.delegate-mobile-card:active {
  transform: scale(0.995);
}

.delegate-mobile-card.is-complete {
  border-color: #cbd5e1;
  border-left: 5px solid #10b981;
  background: #ffffff;
}

.delegate-mobile-card.is-incomplete {
  border-color: #fde68a;
  border-left: 5px solid #f59e0b;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 40%);
}

/* Card Header */
.delegate-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Avatar Badge */
.delegate-avatar-badge {
  width: 44px;
  height: 44px;
  border-radius: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.delegate-avatar-badge.is-complete {
  background: linear-gradient(135deg, #0b2545 0%, #1e40af 100%);
  color: #ffffff;
  border: 1.5px solid #1e3a8a;
}

.delegate-avatar-badge.is-incomplete {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1.5px solid #fcd34d;
}

.delegate-avatar-index {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-family: inherit;
}

.delegate-card-title-group {
  min-width: 0;
  flex: 1;
}

.delegate-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delegate-card-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Status Badges */
.delegate-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delegate-status-pill.complete {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.delegate-status-pill.incomplete {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.delegate-status-pill:hover {
  transform: translateY(-1px);
}

/* Pulsing dot */
.delegate-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.delegate-pulse-dot.green {
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.delegate-pulse-dot.amber {
  background-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

/* Card Body / Details Summary */
.delegate-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.8rem 0.9rem;
  background: #f8fafc;
  border-radius: 0.95rem;
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delegate-card-body:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.delegate-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #334155;
}

.delegate-meta-item i {
  color: #64748b;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Pricing and Tag row */
.delegate-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.35rem;
  border-top: 1px dashed #e2e8f0;
}

.delegate-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

.delegate-tag-pill.workshop {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #6d28d9;
}

.delegate-fee-display {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.delegate-fee-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
}

.delegate-fee-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0b2545;
}

/* Contact row */
.delegate-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.7rem;
  color: #64748b;
}

.delegate-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.45rem;
  font-size: 0.68rem;
}

/* The Actions Row */
.delegate-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

/* Action Buttons */
.delegate-btn-action,
.delegate-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  min-height: 40px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.delegate-btn-action:active,
.delegate-action-btn:active {
  transform: scale(0.96);
}

/* View Button */
.delegate-btn-view,
.delegate-action-btn-view {
  flex: 1;
  background: #f0fdf4;
  color: #15803d;
  border: 1.5px solid #86efac;
  box-shadow: 0 1px 3px rgba(34, 197, 94, 0.08);
}

.delegate-btn-view:hover,
.delegate-action-btn-view:hover {
  background: #dcfce7;
  color: #166534;
  border-color: #4ade80;
  transform: translateY(-1px);
}

/* Edit Button */
.delegate-btn-edit,
.delegate-action-btn-edit {
  flex: 1;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1.5px solid #93c5fd;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.08);
}

.delegate-btn-edit:hover,
.delegate-action-btn-edit:hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #60a5fa;
  transform: translateY(-1px);
}

.delegate-btn-edit.primary-cta {
  background: linear-gradient(135deg, #406bda 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(64, 107, 218, 0.25);
}

.delegate-btn-edit.primary-cta:hover {
  background: linear-gradient(135deg, #3158bd 0%, #1e40af 100%);
  color: #ffffff;
}

/* Delete / Locked Button */
.delegate-btn-delete,
.delegate-action-btn-delete {
  padding: 0.55rem 0.75rem;
  background: #fff1f2;
  color: #e11d48;
  border: 1.5px solid #fecdd3;
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.06);
}

.delegate-btn-delete:hover,
.delegate-action-btn-delete:hover {
  background: #ffe4e6;
  color: #be123c;
  border-color: #fda4af;
  transform: translateY(-1px);
}

.delegate-btn-locked,
.delegate-action-btn-lock {
  padding: 0.55rem 0.65rem;
  background: #f8fafc;
  color: #94a3b8;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
}

.delegate-btn-locked:hover,
.delegate-action-btn-lock:hover {
  background: #f1f5f9;
  color: #64748b;
}

/* Mobile Add Delegate Button */
.btn-mobile-add-delegate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: 48px;
  background: linear-gradient(135deg, #406bda 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 1rem;
  border: none;
  box-shadow: 0 4px 14px rgba(64, 107, 218, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-mobile-add-delegate:hover {
  background: linear-gradient(135deg, #3158bd 0%, #1e40af 100%);
  box-shadow: 0 6px 18px rgba(64, 107, 218, 0.38);
}

.btn-mobile-add-delegate:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(64, 107, 218, 0.2);
}

/* Delegate Mobile Modals */
.delegate-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.delegate-modal-backdrop.hidden {
  display: none !important;
}

.delegate-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(11, 30, 60, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.delegate-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

.delegate-modal-body {
  padding: 1.4rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.delegate-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 0.75rem;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* Modal form controls */
.modal-form-group {
  margin-bottom: 0.95rem;
}
.modal-form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}
.modal-form-input,
.modal-form-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  border: 1.5px solid #cbd5e1;
  font-size: 0.82rem;
  color: #0f172a;
  background-color: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.modal-form-input:focus,
.modal-form-select:focus {
  outline: none;
  border-color: #406bda;
  box-shadow: 0 0 0 3px rgba(64, 107, 218, 0.15);
}

/* Modal Primary & Secondary Action Buttons (High-Contrast & Visible) */
.delegate-modal-btn-primary,
.delegate-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem 1.4rem !important;
  min-height: 44px !important;
  background: #406bda !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 0.8rem !important;
  border: 1.5px solid #2f54b8 !important;
  box-shadow: 0 4px 14px rgba(64, 107, 218, 0.38) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.delegate-modal-btn-primary:hover,
.delegate-btn-primary:hover {
  background: #2b50b6 !important;
  box-shadow: 0 6px 18px rgba(64, 107, 218, 0.48) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.delegate-modal-btn-primary:active,
.delegate-btn-primary:active {
  transform: scale(0.97);
}

.delegate-modal-btn-primary *,
.delegate-btn-primary * {
  color: #ffffff !important;
}

.delegate-modal-btn-secondary,
.delegate-btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  padding: 0.75rem 1.25rem !important;
  min-height: 44px !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 0.8rem !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.delegate-modal-btn-secondary:hover,
.delegate-btn-secondary:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.delegate-modal-btn-secondary:active,
.delegate-btn-secondary:active {
  transform: scale(0.97);
}

/* Conference & Workshop Form Card Box (Fixes Overlapping / Colliding Border) */
.delegate-conference-box {
  background: #f8fafc;
  border: 1.5px solid #bfdbfe;
  border-radius: 1.15rem;
  padding: 1.25rem 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  box-shadow: 0 2px 8px rgba(64, 107, 218, 0.06);
}

.delegate-conference-box .modal-form-group {
  margin-bottom: 0 !important;
}

.delegate-conference-box label {
  color: #0b2545 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  margin-top: 0 !important;
  margin-bottom: 0.45rem !important;
  display: block !important;
}

.delegate-conference-box .delegate-fee-summary-row {
  padding-top: 0.85rem;
  margin-top: 0.25rem;
  border-top: 1.5px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* Edit Modal Top Live Fee Banner */
.delegate-top-fee-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0e7ff 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  box-shadow: 0 2px 6px rgba(64, 107, 218, 0.06);
}

/* View Modal Header with Vibrant Navy Gradient */
.delegate-view-header-gradient {
  background: linear-gradient(135deg, #0b2545 0%, #123668 50%, #1e40af 100%) !important;
  color: #ffffff !important;
  padding: 1.25rem 1.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-shrink: 0 !important;
}

.delegate-view-header-gradient h3 {
  color: #ffffff !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin: 0.15rem 0 0 0 !important;
  line-height: 1.25 !important;
}

.delegate-view-header-gradient p {
  color: #bfdbfe !important;
  font-size: 0.75rem !important;
  margin: 0.2rem 0 0 0 !important;
}

.delegate-view-header-gradient .delegate-view-avatar {
  width: 44px;
  height: 44px;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.delegate-view-header-gradient .delegate-close-btn-white {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.delegate-view-header-gradient .delegate-close-btn-white:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
}

/* View Modal Section Cards */
.delegate-view-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.delegate-view-card.highlight {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0e7ff 100%);
  border-color: #bfdbfe;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.delegate-demographic-badge {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.55rem 0.5rem;
  text-align: center;
}

@media (max-width: 640px) {
  .delegate-modal-backdrop {
    padding: 0.5rem;
    align-items: flex-end;
  }
  .delegate-modal-card {
    max-height: 94vh;
    border-radius: 1.5rem 1.5rem 1rem 1rem;
  }
  .delegate-modal-header {
    padding: 1rem 1.25rem;
  }
  .delegate-modal-body {
    padding: 1.15rem 1.25rem;
  }
  .delegate-modal-footer {
    padding: 0.85rem 1.25rem;
  }
  .delegate-conference-box {
    padding: 1rem 1rem;
  }
}

/* Floating Back-to-Top / Return-to-Position Arrow Button */
.scroll-top-return-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0b3c74 0%, #164e8a 100%);
  color: #ffffff;
  border: 2px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 8px 24px rgba(11, 60, 116, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 998;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-top-return-btn:hover {
  background: linear-gradient(135deg, #d4af37 0%, #b45309 100%);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 28px rgba(212, 175, 55, 0.45);
}
.scroll-top-return-btn.hidden {
  display: none !important;
}

/* ==================================================== */
/* PRINT STYLES */
/* ==================================================== */
@media print {
  body { background: #ffffff !important; color: #000000 !important; }
  header, footer, #page-loader, .ticker-wrap, #hall-filters, .view-mode-btn, #session-search, #type-filter, .cal-btn, .action-icon-btn, section.py-14 {
    display: none !important;
  }
  .timeline-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
    margin-bottom: 1rem !important;
  }
}

/* ==================================================== */
/* GROUP REGISTRATION DESKTOP COMPANION GRID LAYOUT */
/* ==================================================== */
.group-layout-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
  width: 100%;
}

@media (min-width: 1024px) {
  .group-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
    gap: 2rem;
  }
  .group-layout-roster {
    min-width: 0;
    width: 100%;
  }
  .group-layout-summary {
    width: 380px;
    flex-shrink: 0;
  }
}

@media (min-width: 1280px) {
  .group-layout-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 2.25rem;
  }
  .group-layout-summary {
    width: 420px;
  }
}

/* ==================================================== */
/* EXCEL-LIKE GROUP REGISTRATION GRID STYLES */
/* ==================================================== */
.btn-add-delegate {
  background-color: #406bda !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 8px -1px rgba(64, 107, 218, 0.35);
}
.btn-add-delegate:hover {
  background-color: #2f56b8 !important;
}

.icon-box-users {
  background-color: #406bda !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px -2px rgba(64, 107, 218, 0.3);
}

/* Enhanced Add Row button in table footer */
.btn-add-row-footer {
  background-color: #eff6ff !important;
  color: #406bda !important;
  border: 1.5px solid #bfdbfe !important;
  box-shadow: 0 1px 3px rgba(64, 107, 218, 0.1);
  cursor: pointer;
}
.btn-add-row-footer:hover {
  background-color: #dbeafe !important;
  border-color: #406bda !important;
  color: #2e57c5 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px -1px rgba(64, 107, 218, 0.2);
}

/* Locked Action indicator for minimum 5 required rows */
.btn-lock-action {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #94a3b8 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  opacity: 0.9;
  transition: all 0.15s ease;
}
.btn-lock-action:hover {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
}

/* Summary Card: Spacing & Styling for Special Rate Banner */
.summary-amount-block {
  padding-top: 1.25rem !important;
  margin-top: 1.25rem !important;
  border-top: 1px solid #f1f5f9 !important;
  padding-bottom: 0.5rem !important;
}

.special-rate-banner {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  padding: 1.1rem 1.25rem !important;
  background-color: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08) !important;
}

.btn-summary-next {
  margin-top: 0.75rem !important;
  width: 100% !important;
  padding: 0.95rem 1.5rem !important;
  background-color: #406bda !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.03em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 4px 12px -2px rgba(64, 107, 218, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  border: none !important;
}
.btn-summary-next:hover {
  background-color: #2e57c5 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px -2px rgba(64, 107, 218, 0.45) !important;
}

.excel-table-wrapper {
  position: relative;
  border-radius: 0.85rem;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.excel-scroll-container {
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: #0b3c74 #e2e8f0;
  -webkit-overflow-scrolling: touch;
}

.excel-scroll-container::-webkit-scrollbar {
  height: 10px;
}

.excel-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
  margin: 0 4px;
}

.excel-scroll-container::-webkit-scrollbar-thumb {
  background: #0b3c74;
  border-radius: 9999px;
  border: 2px solid #f1f5f9;
}

.excel-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #c49a45;
}

.excel-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
}

.excel-table th {
  background-color: #1d4e89;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 0.75rem;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.excel-table th:last-child {
  border-right: none;
}

.excel-table td {
  padding: 0.5rem 0.55rem;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  background-color: #ffffff;
  white-space: nowrap;
}

.excel-table tr:hover td {
  background-color: #f8fafc !important;
}

/* Sticky first column: # (S.No) */
.excel-sticky-col-1 {
  position: sticky !important;
  left: 0;
  z-index: 10;
  background-color: #f8fafc !important;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  text-align: center !important;
}

.excel-table th.excel-sticky-col-1 {
  background-color: #1d4e89 !important;
  color: #ffffff !important;
  z-index: 15 !important;
  text-align: center !important;
  padding: 0.85rem 0.25rem !important;
  border-top-left-radius: 0.85rem !important;
  border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.excel-table td.excel-sticky-col-1 {
  z-index: 11 !important;
  text-align: center !important;
  border-right: 1px solid #e2e8f0 !important;
}

/* Sticky second column: Full Name */
.excel-sticky-col-2 {
  position: sticky !important;
  left: 52px;
  z-index: 10;
  background-color: #ffffff !important;
  box-shadow: 4px 0 8px -3px rgba(0, 0, 0, 0.12);
}

.excel-table th.excel-sticky-col-2 {
  background-color: #1d4e89 !important;
  z-index: 12;
  box-shadow: 4px 0 8px -3px rgba(0, 0, 0, 0.12);
}

/* Sticky Action column */
.excel-sticky-col-action {
  position: sticky !important;
  right: 0;
  z-index: 10;
  background-color: #ffffff !important;
  box-shadow: -4px 0 8px -3px rgba(0, 0, 0, 0.12);
}

.excel-table th.excel-sticky-col-action {
  background-color: #1d4e89 !important;
  z-index: 12;
  box-shadow: -4px 0 8px -3px rgba(0, 0, 0, 0.12);
  border-top-right-radius: 0.85rem !important;
}

.excel-table tr:hover td.excel-sticky-col-1,
.excel-table tr:hover td.excel-sticky-col-2,
.excel-table tr:hover td.excel-sticky-col-action {
  background-color: #f1f5f9 !important;
}

.excel-cell-input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.76rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  transition: all 0.15s ease;
}

.excel-cell-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.excel-cell-select {
  width: 100%;
  padding: 0.5rem 0.5rem;
  font-size: 0.76rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  transition: all 0.15s ease;
  cursor: pointer;
}

.excel-cell-select:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
