:root {
  --bg: #0a0f1f;
  --text: #e6e9f0;
  --muted: #b7bfd4;
  --primary: #2563eb;
  --primary-2: #00a1ff;
  --surface: #121a2f;
  --card: #18213d;
  --header-height: 60px;
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }

/* Smooth scrolling with offset for fixed header */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

/* Skip to main content link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-weight: 600;
  z-index: 10001;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Global focus styles (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Fixed Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(10, 15, 31, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1c2544;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-container .cta {
  margin: 0;
  padding: 8px 16px;
  font-size: 14px;
}

/* Hero Section */
.hero {
  background-color: #0a0f1f; /* Solid fallback for WCAG 2 AA contrast (16.8:1 with white) */
  background-image: radial-gradient(1000px 500px at 10% 0%, rgba(38,112,255,0.3), transparent 60%), linear-gradient(180deg, #0a0f1f 0%, #0a0f1f 70%, #0c1224 100%);
  border-bottom: 1px solid #1c2544;
  padding: calc(var(--header-height) + 24px) 24px 48px;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.hero-logo {
  width: 100%;
  max-width: 1920px;
  height: auto;
  margin-bottom: 5px;
}

.hero h1 { font-size: 40px; margin: 8px 0 4px; }
.hero .tagline { color: var(--muted); margin: 0 0 24px; }

/* CTA Buttons */
.cta {
  display: inline-block;
  margin: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
}
.cta.secondary { background: transparent; border: 1px solid #2b3a6b; }

/* Video Section */
.video-section {
  padding: 24px 48px;
  max-width: 1400px;
  margin: 0 auto;
  background: #0a1020;
}

.autoplay-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  padding: 0 20px;
}

.video-container-wrapper {
  position: relative;
  border: 2px solid var(--primary-2);
  border-radius: 12px;
}

.video-container-label {
  position: absolute;
  top: -0.7em;
  left: 50%;
  transform: translateX(-50%);
  background: #0a1020;
  color: var(--primary-2);
  font-size: 18px;
  font-weight: 600;
  padding: 0 12px;
  z-index: 1;
  white-space: nowrap;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.video-container iframe,
.video-container img,
.video-container #youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  border-radius: 0 0 12px 12px;
  transition: opacity 1s ease;
  pointer-events: none;
  z-index: 10;
}

.video-overlay .now-playing {
  font-size: 14px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.video-overlay .video-title {
  font-size: 20px;
  font-weight: 600;
}

/* LIVE Badge */
.live-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 0, 0, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  z-index: 20;
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Live Chat Button */
.live-chat-button {
  text-align: center;
  margin-top: 12px;
}

.btn-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-chat:hover {
  background: var(--primary-2);
  transform: scale(1.02);
}

.video-error {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.video-error .error-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.video-error .error-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 80%;
}

.video-error .error-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.video-error .error-message {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 20px;
}

.btn-watch-large {
  display: inline-block;
  padding: 16px 32px;
  background: #ff0000;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s;
}

.btn-watch-large:hover {
  background: #cc0000;
  transform: scale(1.05);
}

/* Now Playing Info Box */
.now-playing-box {
  background: var(--card);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #2b3a6b;
  margin-top: 16px;
}

.now-playing-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.live-indicator {
  color: #ff4444;
  font-size: 12px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.now-playing-label {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.now-playing-box h3 {
  margin: 0 0 16px;
  font-size: 24px;
  color: var(--text);
}

.now-playing-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.now-playing-description a {
  color: var(--primary);
  text-decoration: none;
}

.now-playing-description a:hover {
  text-decoration: underline;
}

.btn-youtube {
  display: inline-block;
  padding: 12px 24px;
  background: #ff0000;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-youtube:hover {
  background: #cc0000;
}

/* Up Next Box */
.up-next-box {
  background: var(--card);
  border-radius: 8px;
  padding: 20px 24px;
  border: 1px solid #2b3a6b;
  margin-top: 12px;
}

.up-next-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.up-next-label {
  color: var(--primary-2);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.up-next-countdown {
  color: #60a5fa;
  font-size: 14px;
  font-weight: 600;
}

.up-next-box h4 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
}

/* Sections */
section {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text);
}

section h3 {
  font-size: 36px;
  text-align: left;
  margin-bottom: 16px;
  color: var(--text);
}
section .section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section - Left justified, match video width */
#about {
  text-align: left;
  max-width: 1200px;
  padding: 64px 48px;
}

#about .markdown-content {
  text-align: left;
}

#about .markdown-content h1 {
  text-align: center;
}

#about .markdown-content h2 {
  text-align: center;
}

#about .markdown-content h3 {
  text-align: left;
}

#about .feature-card {
  text-align: left;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #2b3a6b;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 161, 255, 0.15);
}

.feature-card h3 {
  color: var(--primary-2);
  margin-top: 0;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Schedule */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.schedule-item {
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #2b3a6b;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.schedule-time {
  min-width: 120px;
  color: var(--primary-2);
  font-weight: bold;
  font-size: 14px;
}

.schedule-content h4 {
  margin: 0 0 8px;
  color: var(--text);
}

.schedule-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Speakers */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 38px;
}

.speaker-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.speaker-avatar {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  margin: 0 auto 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 58px;
  color: white;
}

.speaker-card h4 {
  margin: 0 0 4px;
  color: var(--text);
}

.speaker-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.speaker-name {
  font-size: 22px;
  margin: 0 0 5px;
  color: var(--text);
}

.speaker-title {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 2px;
}

.speaker-company {
  color: var(--primary-2);
  font-size: 16px;
  margin: 0;
}

.speaker-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 19px;
  border-radius: 14px;
}

.speaker-card:hover,
.speaker-card:focus-visible {
  transform: translateY(-4px);
  background: rgba(59, 130, 246, 0.1);
}

.speaker-card:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

.speaker-avatar {
  background-size: cover;
  background-position: center;
}

/* Speaker Modal */
.speaker-modal-content {
  max-width: 600px;
}

.speaker-modal-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.speaker-modal-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
}

.speaker-modal-info {
  flex: 1;
}

.speaker-modal-info .modal-title {
  margin-bottom: 8px;
}

.speaker-modal-title {
  color: var(--muted);
  margin: 0 0 4px;
  font-size: 16px;
}

.speaker-modal-company {
  color: var(--primary-2);
  margin: 0 0 12px;
  font-size: 15px;
}

.speaker-modal-socials {
  display: flex;
  gap: 12px;
}

.speaker-modal-socials a {
  color: var(--muted);
  text-decoration: none;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--card);
  transition: all 0.2s ease;
}

.speaker-modal-socials a:hover {
  color: var(--primary-2);
  background: rgba(59, 130, 246, 0.2);
}

.speaker-modal-bio {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.speaker-modal-sessions h3 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--text);
}

.speaker-session-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--card);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.speaker-session-item:hover {
  background: rgba(59, 130, 246, 0.2);
}

.speaker-session-item .session-time {
  color: var(--primary-2);
  font-size: 13px;
  white-space: nowrap;
}

.speaker-session-item .session-title {
  color: var(--text);
  font-size: 14px;
}

.no-sessions {
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

/* Sponsors */
.sponsors-section {
  background: var(--surface);
  border-top: 1px solid #1c2544;
  border-bottom: 1px solid #1c2544;
}

.sponsors-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.sponsors-tier-group {
  width: 100%;
  text-align: center;
}

.sponsors-tier-title {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.sponsors-tier-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  align-items: center;
}

.sponsors-tier-logos.tier-platinum .sponsor-logo {
  padding: 56px 80px;
  min-width: 440px;
}

.sponsors-tier-logos.tier-gold .sponsor-logo {
  padding: 48px 64px;
  min-width: 360px;
}

.sponsor-logo {
  background: var(--card);
  padding: 40px 56px;
  border-radius: 8px;
  border: 1px solid #2b3a6b;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsor-logo:hover,
.sponsor-logo:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 120, 212, 0.15);
}

.sponsor-logo:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

.sponsor-logo img {
  max-height: 120px;
  max-width: 360px;
  object-fit: contain;
}

/* Sponsor Detail Modal */
.sponsor-modal-content {
  max-width: 550px;
}

.sponsor-modal-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.sponsor-modal-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid #2b3a6b;
  overflow: hidden;
}

.sponsor-modal-logo img {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
}

.sponsor-modal-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sponsor-modal-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 4px;
}

.sponsor-modal-link:hover {
  text-decoration: underline;
}

.sponsor-modal-description {
  margin-top: 16px;
  line-height: 1.7;
}

/* Sponsor Tier Badges */
.sponsor-tier-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.tier-platinum {
  background: linear-gradient(135deg, #e5e4e2, #c0c0c0);
  color: #1a1a2e;
}

.tier-gold {
  background: linear-gradient(135deg, #ffd700, #daa520);
  color: #1a1a2e;
}

.tier-silver {
  background: linear-gradient(135deg, #c0c0c0, #a9a9a9);
  color: #1a1a2e;
}

.tier-bronze {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
}

.tier-community {
  background: linear-gradient(135deg, #0078d4, #50e6ff);
  color: #fff;
}

/* Sponsor Admin Styles */
.sponsors-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding: 0 5%;
}

.sponsor-admin-card {
  background: var(--card);
  border: 1px solid #2b3a6b;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}

.sponsor-admin-card:hover {
  border-color: var(--primary);
}

.sponsor-admin-card.sponsor-disabled {
  opacity: 0.55;
}

.sponsor-card-logo {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 6px;
  font-size: 2.5rem;
  overflow: hidden;
}

.sponsor-card-logo img {
  max-height: 70px;
  max-width: 90%;
  object-fit: contain;
}

.sponsor-card-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.sponsor-card-name {
  font-size: 1rem;
  margin: 0;
  flex: 1 1 100%;
}

.sponsor-disabled-badge {
  background: var(--danger, #dc3545);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.sponsor-website-link {
  text-decoration: none;
  font-size: 0.9rem;
}

.sponsor-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.logo-upload-section {
  padding: 0 5%;
  margin-bottom: 16px;
}

.description-preview-toggle {
  margin-top: 6px;
}

.markdown-preview-inline {
  background: var(--surface);
  border: 1px solid #2b3a6b;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.btn-warning {
  background: #ffc107;
  color: #1a1a2e;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.btn-warning:hover {
  background: #e0a800;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: radial-gradient(800px 400px at 50% 50%, rgba(38,112,255,0.2), transparent 70%);
}

/* Schedule Days Layout */
.schedule-days {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0 5%;
  justify-content: center;
}

.schedule-day {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid #2b3a6b;
  padding: 24px;
  flex: 1 1 calc(25% - 16px);
  min-width: 280px;
  max-width: 400px;
}

.schedule-day h3 {
  color: var(--primary-2);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2b3a6b;
  text-align: center;
  font-size: 1.1rem;
  white-space: nowrap;
}

.day-sessions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Responsive: stack on smaller screens */
@media (max-width: 1100px) {
  .schedule-day {
    flex: 1 1 calc(50% - 12px);
    max-width: calc(50% - 8px);
  }
}

@media (max-width: 600px) {
  .schedule-days {
    flex-direction: column;
    padding: 0 5%;
  }
  
  .schedule-day {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: unset;
  }
}

.session-card {
  background: var(--card);
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #2b3a6b;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.session-card:hover,
.session-card:focus-visible {
  border-color: var(--primary-2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 112, 255, 0.15);
}

.session-card:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}

.session-card .session-time {
  color: var(--primary-2);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.session-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.3;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.session-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.4;
  flex-grow: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Session Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid #2b3a6b;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-time {
  color: var(--primary-2);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 24px;
  margin: 0 0 16px;
  line-height: 1.3;
}

.modal-description {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
  margin-bottom: 24px;
}

/* Code of Conduct Modal */
.coc-modal-content {
  max-width: 700px;
}

.coc-content {
  color: var(--muted);
  line-height: 1.8;
}

.coc-content p {
  margin-bottom: 16px;
}

.coc-content p:last-child {
  margin-bottom: 0;
}

.coc-content a {
  color: var(--primary);
  text-decoration: none;
}

.coc-content a:hover {
  text-decoration: underline;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ff0000;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-watch:hover {
  opacity: 0.9;
}

.btn-calendar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #0078D4, #50E6FF);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn-calendar:hover {
  opacity: 0.9;
}

.loading {
  text-align: center;
  color: var(--muted);
  padding: 48px;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid #1c2544;
  padding: 48px 24px;
  text-align: center;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

footer .footer-links a:hover {
  color: var(--primary-2);
}

footer .copyright {
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }
  .schedule-item {
    flex-direction: column;
    gap: 8px;
  }
  .video-section {
    padding: 16px;
  }
}

/* ========================================
   Admin Styles
   ======================================== */

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #2b3a6b;
}

.admin-header h1 {
    margin: 0;
    color: var(--primary-2);
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info span {
    color: var(--muted);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-2);
}

.btn-secondary {
    background: #2b3a6b;
    color: white;
    border: 1px solid #2b3a6b;
}

.btn-secondary:hover {
    background: #3d4f8a;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.btn:hover {
    opacity: 0.9;
}

/* Schedule Table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.schedule-table th,
.schedule-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2b3a6b;
}

.schedule-table th {
    background: var(--surface);
    color: var(--primary-2);
    font-weight: 600;
}

.schedule-table tr:hover {
    background: var(--surface);
}

.actions {
    display: flex;
    gap: 8px;
}

.actions button {
    padding: 6px 12px;
    font-size: 12px;
}

/* Admin Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.admin-modal-content {
    background: var(--surface);
    border: 1px solid #2b3a6b;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h2 {
    margin: 0;
    color: var(--primary-2);
}

.close-btn,
.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover,
.modal-close:hover {
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #2b3a6b;
    background: var(--card);
    color: var(--text);
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-2);
    outline-offset: 2px;
    border-color: var(--primary-2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Messages & Alerts */
.message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #22c55e;
}

.message.error {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid #dc2626;
    color: #dc2626;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #10b981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.alert-info {
    background: rgba(79, 70, 229, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary-2);
}

/* Admin Loading */
.admin-loading {
    text-align: center;
    padding: 48px;
    color: var(--muted);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: 12px;
}

/* Speakers Admin */
.admin-speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.admin-speaker-card {
    background: var(--card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #2b3a6b;
}

.speaker-card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.speaker-headshot {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #2b3a6b;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2rem;
    flex-shrink: 0;
}

.speaker-headshot img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.speaker-info {
    flex: 1;
    min-width: 0;
}

.admin-speaker-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-2);
    margin: 0 0 4px 0;
}

.admin-speaker-title {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.admin-speaker-company {
    color: var(--text);
    font-size: 0.85rem;
    margin: 4px 0 0 0;
}

.speaker-sessions {
    background: #1a2744;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
}

.speaker-sessions-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}

.speaker-sessions-count {
    color: var(--primary-2);
    font-weight: 600;
}

.speaker-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Session picker in speaker edit modal */
.session-picker {
    background: var(--surface, #1a2340);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
}

.session-picker-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    min-height: 32px;
    align-items: center;
}

.session-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(80, 230, 255, 0.1);
    border: 1px solid rgba(80, 230, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.85rem;
    color: #e0e0e0;
}

.session-tag-time {
    color: var(--accent, #FFB900);
    font-size: 0.8rem;
    font-weight: 600;
}

.session-tag-title {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-tag-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.session-tag-remove:hover {
    opacity: 1;
}

.session-picker-add {
    display: flex;
    gap: 8px;
    align-items: center;
}

.session-picker-add select {
    flex: 1;
}

.headshot-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #2b3a6b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    overflow: hidden;
    flex-shrink: 0;
}

.headshot-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.headshot-hint {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
}

/* Headshot Manager (inline in speaker modal) */
.headshot-manager {
    border: 1px solid #2b3a6b;
    border-radius: 10px;
    padding: 16px;
    background: rgba(43, 58, 107, 0.15);
}

.headshot-manager-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.headshot-selected-name {
    font-size: 0.9rem;
    color: var(--muted);
    flex: 1;
    word-break: break-all;
}

.headshot-upload-area {
    margin-bottom: 10px;
}

.headshot-dropzone {
    border: 2px dashed #2b3a6b;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    position: relative;
}

.headshot-dropzone.drag-over {
    border-color: var(--primary-2);
    background: rgba(79, 70, 229, 0.1);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dropzone-icon {
    font-size: 1.6rem;
}

.dropzone-text {
    font-size: 0.9rem;
    color: var(--text);
}

.dropzone-text a {
    color: var(--primary-2);
    text-decoration: underline;
    cursor: pointer;
}

.dropzone-hint {
    font-size: 0.75rem;
    color: var(--muted);
}

.dropzone-uploading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--primary-2);
    font-size: 0.9rem;
}

.upload-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(79, 70, 229, 0.3);
    border-top-color: var(--primary-2);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.headshot-gallery-toggle {
    margin-bottom: 10px;
    text-align: center;
}

.headshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #2b3a6b;
    border-radius: 8px;
    background: var(--card);
}

.headshot-gallery-loading,
.headshot-gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-size: 0.85rem;
}

.headshot-gallery-item {
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 4px;
    transition: border-color 0.15s, background 0.15s;
}

.headshot-gallery-item:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.08);
}

.headshot-gallery-item.selected {
    border-color: var(--primary-2);
    background: rgba(79, 70, 229, 0.15);
}

.headshot-gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.gallery-item-name {
    display: block;
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 3px;
    word-break: break-all;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
}

/* Stats bar */
.stats-bar {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--card);
    border-radius: 12px;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-2);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
}

/* ======================================
   Admin Dashboard Styles
   ====================================== */

.admin-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    color: white;
    font-size: 2.5rem;
    margin: 0 0 10px 0;
}

.dashboard-header p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 0;
}

.admin-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.admin-nav a,
.admin-nav button {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-nav a {
    background: var(--primary);
    color: white;
}

.admin-nav a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.admin-nav .nav-active {
    background: var(--secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dashboard-card h3 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card p {
    color: var(--muted);
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

.dashboard-card .card-icon {
    font-size: 2rem;
}

.dashboard-card .btn {
    width: 100%;
}

.user-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.user-bar span {
    color: var(--muted);
}

/* Content Editor Styles */
.content-editor {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.content-editor h3 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-editor textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
}

.content-editor .editor-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.content-preview {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.content-preview h4 {
    margin: 0 0 10px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Upload Section Styles */
.upload-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.upload-section h3 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(0, 120, 212, 0.05);
}

.upload-zone input[type="file"] {
    display: none;
}

.upload-zone .upload-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.upload-zone p {
    margin: 0;
    color: var(--muted);
}

.upload-progress {
    margin-top: 20px;
}

.upload-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: var(--bg);
    border-radius: 6px;
    margin-bottom: 10px;
}

.upload-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.upload-item .upload-info {
    flex: 1;
}

.upload-item .upload-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-item .upload-status {
    font-size: 0.85rem;
    color: var(--muted);
}

.upload-item .upload-status.success {
    color: var(--success);
}

.upload-item .upload-status.error {
    color: var(--danger);
}

.existing-headshots {
    margin-top: 30px;
}

.existing-headshots h4 {
    margin: 0 0 15px 0;
}

.headshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.headshot-item {
    text-align: center;
}

.headshot-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border);
    transition: border-color 0.2s;
}

.headshot-item img:hover {
    border-color: var(--primary);
}

.headshot-item .filename {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 5px;
    word-break: break-all;
}

.section-hidden {
    display: none;
}

#alertContainer {
    margin-bottom: 20px;
}

/* ======================================
   Admin Form & Branding Utility Classes
   ====================================== */

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-group small {
    color: var(--muted);
    display: block;
    margin-top: 5px;
}

/* Checkbox Styles */
.checkbox-group {
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label span {
    color: var(--text);
}

/* Text Input Styles */
.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

.form-input-sm {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
}

/* Color Picker Styles */
.color-picker {
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Label Styles */
.label-muted {
    font-size: 0.9rem;
    color: var(--muted);
}

.label-bold {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Text Helper Classes */
.text-muted {
    color: var(--muted);
}

.text-small {
    font-size: 0.85rem;
}

.text-center {
    text-align: center;
}

/* Flex Utility Classes */
.flex-row {
    display: flex;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-8 {
    gap: 8px;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.justify-center {
    justify-content: center;
}

/* Grid Utility Classes */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Margin Utilities */
.mb-10 {
    margin-bottom: 10px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mt-5 {
    margin-top: 5px;
}

.mt-10 {
    margin-top: 10px;
}

/* Logo Upload Area */
.logo-upload-area .current-logo {
    margin-bottom: 15px;
    padding: 20px;
    background: var(--bg);
    border-radius: 8px;
    text-align: center;
}

.logo-upload-area .logo-preview {
    max-width: 200px;
    max-height: 150px;
}

/* Branding Preview Section */
.color-preview {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.color-preview h4 {
    margin: 0 0 15px 0;
}

.branding-preview {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.branding-preview .event-name {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.branding-preview .btn-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.preview-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
}

.preview-accent {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
}

/* Preset Color Buttons */
.preset-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preset-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.preset-swatch.azure {
    background: linear-gradient(135deg, #0078D4, #50E6FF);
}

.preset-swatch.purple {
    background: linear-gradient(135deg, #6B4FBB, #B4A7D6);
}

.preset-swatch.green {
    background: linear-gradient(135deg, #107C10, #84C754);
}

.preset-swatch.orange {
    background: linear-gradient(135deg, #D83B01, #FFB900);
}

.preset-swatch.dark {
    background: linear-gradient(135deg, #2D2D2D, #505050);
}

/* File Input Hidden */
.file-input-hidden {
    display: none;
}

/* ======================================
   Markdown Content Styles
   ====================================== */

.markdown-content {
    line-height: 1.7;
    color: var(--text);
}

.markdown-content h1 {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 0;
    color: var(--text);
    text-align: center;
}

.markdown-content h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem 0;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.75rem 0;
    color: var(--primary-2);
}

.markdown-content h4 {
    font-size: 1.2rem;
    margin: 1.25rem 0 0.5rem 0;
}

.markdown-content p {
    margin: 0 0 1rem 0;
}

.markdown-content ul,
.markdown-content ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content strong {
    color: var(--text);
    font-weight: 600;
}

.markdown-content em {
    font-style: italic;
}

.markdown-content a {
    color: var(--primary);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}

.markdown-content img[alt*="Logo"],
.markdown-content img[alt*="logo"] {
    max-width: 300px;
    margin: 1rem auto;
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: rgba(0, 120, 212, 0.1);
    border-radius: 0 8px 8px 0;
}

.markdown-content code {
    background: var(--card-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
}

.markdown-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}

.markdown-content th {
    background: var(--card-bg);
    font-weight: 600;
}

/* Markdown Editor Styles */
.markdown-editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-height: 400px;
}

.markdown-editor-pane {
    display: flex;
    flex-direction: column;
}

.markdown-editor-pane h4 {
    margin: 0 0 10px 0;
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.markdown-editor textarea {
    flex: 1;
    width: 100%;
    min-height: 350px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.markdown-preview {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    overflow-y: auto;
    max-height: 500px;
}

.markdown-cheatsheet {
    margin-top: 15px;
    padding: 15px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.markdown-cheatsheet summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
}

.markdown-cheatsheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.markdown-cheatsheet-item {
    font-size: 0.85rem;
}

.markdown-cheatsheet-item code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

@media (max-width: 768px) {
    .markdown-editor {
        grid-template-columns: 1fr;
    }
    
    .markdown-preview {
        max-height: 300px;
    }
}

/* ==================== REGISTRATION ==================== */

/* Register CTA button - stands out from other nav buttons */
.cta.cta-register {
    background: #c2185b; /* Solid color for WCAG 2 AA contrast (4.9:1 with white) */
    animation: register-pulse 2s ease-in-out infinite;
    font-weight: 700;
}
.cta.cta-register:hover {
    background: #a01349; /* Darker shade for hover, maintains contrast */
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(194, 24, 91, 0.4);
}
@keyframes register-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(194, 24, 91, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(194, 24, 91, 0); }
}

/* Registration modal */
.registration-modal-content {
    max-width: 500px;
    text-align: center;
    padding: 40px 32px;
}
.registration-modal-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}
.registration-modal-content .modal-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
}
.registration-modal-description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}
.registration-modal-actions {
    display: flex;
    justify-content: center;
}

/* Register action button inside modal */
.btn-register-action {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e91e63, #ff5722);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-register-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(233, 30, 99, 0.4);
}

/* Admin registration preview */
.registration-preview {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
}
.registration-preview h4 {
    margin: 0 0 12px;
    color: var(--muted);
}
.registration-preview-card {
    text-align: center;
    padding: 24px;
    background: var(--card);
    border-radius: 8px;
}
.registration-preview-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.registration-preview-card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}
.registration-preview-card p {
    color: var(--muted);
    margin: 0 0 16px;
    font-size: 0.95rem;
}
