/* ============================================
   ICPA-14 Conference Website — Styles
   Theme: Green-Blue Modern Scientific
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --secondary: #0ea5e9;
  --secondary-dark: #0284c7;
  --accent: #06b6d4;
  --accent-light: #67e8f9;
  --gradient-1: linear-gradient(135deg, #0d9488 0%, #0ea5e9 100%);
  --gradient-2: linear-gradient(135deg, #064e3b 0%, #0c4a6e 100%);
  --gradient-3: linear-gradient(160deg, #0f766e 0%, #0369a1 50%, #0d9488 100%);
  --gradient-hero: linear-gradient(135deg, #042f2e 0%, #0c4a6e 40%, #134e4a 100%);
  --bg-light: #f0fdfa;
  --bg-white: #ffffff;
  --bg-section: #f8fffe;
  --bg-card: #ffffff;
  --text-dark: #134e4a;
  --text-body: #374151;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #d1fae5;
  --border-subtle: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(13, 148, 136, 0.08);
  --shadow-md: 0 4px 16px rgba(13, 148, 136, 0.1);
  --shadow-lg: 0 8px 32px rgba(13, 148, 136, 0.12);
  --shadow-xl: 0 16px 48px rgba(13, 148, 136, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-alt { background: var(--bg-section); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header .underline-accent {
  width: 60px;
  height: 4px;
  background: var(--gradient-1);
  margin: 0 auto 16px;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(13, 148, 136, 0.08);
}

/* Menu trắng khi header trong suốt (chỉ trang Home) */
.site-header.hero-transparent .nav-item {
  color: rgba(255,255,255,0.9);
}

.site-header.hero-transparent .nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.site-header.hero-transparent .logo-text {
  color: #fff;
}

.site-header.hero-transparent .logo-text span {
  color: rgba(255,255,255,0.7);
}

.site-header.hero-transparent .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.site-header.hero-transparent .btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

.site-header.hero-transparent .mobile-toggle span {
  background: #fff;
}

/* Mobile menu mở: luôn nền trắng + chữ tối */
.site-header.hero-transparent .main-nav.open {
  background: #fff;
}

.site-header.hero-transparent .main-nav.open .nav-item {
  color: var(--text-body);
}

.site-header.hero-transparent .main-nav.open .nav-item:hover {
  color: var(--primary);
  background: rgba(13, 148, 136, 0.06);
}

.site-header.hero-transparent .main-nav.open .dropdown a {
  color: var(--text-body);
}

.site-header.hero-transparent .main-nav.open .dropdown a:hover {
  color: var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 10px;
  padding-right: 24px;
}

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

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-display);
}

.logo-14 {
  width: auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo swap: mặc định hiện logo tối, ẩn logo sáng */
.logo-img {
  height: 70px;              /* ← Chỉnh kích thước logo tuỳ ý */
  width: auto;
}

.logo-light { display: none; }
.logo-dark { display: block; }

/* Trang Home trong suốt: hiện logo sáng, ẩn logo tối */
.site-header.hero-transparent .logo-light { display: block; }
.site-header.hero-transparent .logo-dark { display: none; }


.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Main Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }

.nav-item {
  position: relative;
  padding: 8px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary);
  background: rgba(13, 148, 136, 0.06);
}

.nav-item .arrow {
  font-size: 0.6rem;
  transition: var(--transition);
}

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

/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 100;
}

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

.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Mobile Menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION — Slideshow + Dual Title Layout
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
  background: var(--gradient-hero);
}

/* Background Slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover, cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--gradient-hero);
  opacity: 0;
  filter: blur(0px) brightness(0.8);
  transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide-active {
  opacity: 1;
}

/* Fallback gradient when no images */
.hero-slideshow .slide[style*="slide1"] {
  background: url('slides/slide1.png'), var(--gradient-hero);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
}

/* Dark overlay on top of slideshow */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(3, 179, 179, 0) 50%, rgba(2, 131, 131, 0) 100%);
  z-index: 1;
}

/* Content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.925);
  border: 1px solid rgb(253, 252, 252);
  border-radius: 100px;
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
  animation: fadeInDown 0.8s ease;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: #01ce01;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

/* Conference Title Block (used for both titles) */
.conf-title-block {
  margin: 0 auto;
  max-width: 1200px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.conf-line {
  width: 60%;
  max-width: 500px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgb(254, 255, 255), transparent);
  margin: 0 auto;
}

.conf-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  padding: 20px 0;
  letter-spacing: -0.01em;
  margin: 0;
}

.conf-title sup {
  font-size: 0.55em;
}

.conf-title-2 {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Info Bar between two titles */
.hero-meta {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 28px auto;
  max-width: 1400px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgb(255, 255, 255);
  font-size: 1.5rem;
  padding: 10px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.192) 0%, rgba(3, 179, 179, 0.842) 50%, rgba(2, 131, 131, 0.363) 100%);
  border: 1px solid rgba(250, 250, 250, 0.404);
  backdrop-filter: blur(4px);
  line-height: 1;
}

.hero-meta-item:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.hero-meta-item:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.hero-meta-item:not(:last-child) {
  border-right: none;
}

.hero-meta-item .icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Actions */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 36px 0 48px;
  animation: fadeInUp 0.8s ease 0.5s both;
}

/* Countdown */
.countdown-wrapper {
  animation: fadeInUp 0.8s ease 0.6s both;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.countdown-item {
  text-align: center;
  min-width: 80px;
}

.countdown-item .number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 16px 8px;
  backdrop-filter: blur(10px);
}

.countdown-item .label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 8px;
  font-family: var(--font-display);
}

.countdown-sep {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
  margin-top: -20px;
}

/* ============================================
   IMPORTANT DATES / ANNOUNCEMENTS
   ============================================ */
   .dates-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

.date-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  border-top: 4px solid;
  border-bottom: 4px solid;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  width: 250px;
}

.date-card:nth-child(1) { border-color: var(--primary); }
.date-card:nth-child(2) { border-color: var(--secondary); }
.date-card:nth-child(3) { border-color: var(--accent); }
.date-card:nth-child(4) { border-color: #a78bfa; }
.date-card:nth-child(5) { border-color: #f59e0b; }

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

.date-card .date-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.date-card .date-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: red;
}

.date-card .date-status {
  display: inline-block;
  margin-top: 30px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.status-open { background: #dcfce7; color: #16a34a; }
.status-upcoming { background: #fef3c7; color: #d97706; }
.status-closed { background: #fee2e2; color: #dc2626; }

/* Announcements */
.announcements-list {
  max-width: 800px;
  margin: 0 auto;
}

.announcement-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.announcement-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}

.announcement-date .day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.announcement-date .month {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.announcement-content h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

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

/* ============================================
   TOPICS / SCIENTIFIC AREAS
   ============================================ */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.topic-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.topic-card:hover::before { transform: scaleX(1); }
.topic-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.topic-card .topic-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.topic-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.topic-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   COMMITTEES
   ============================================ */
.committee-section { margin-bottom: 48px; }

.committee-section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

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

.member-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.member-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.member-info h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.member-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.committee-role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  margin: 16px 0 12px;
  padding-left: 8px;
  border-left: 3px solid var(--primary);
}

/* ============================================
   INVITED SPEAKERS
   ============================================ */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.speaker-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.speaker-header {
  background: var(--gradient-2);
  padding: 28px;
  text-align: center;
}

.speaker-photo {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.8);
  border: 3px solid rgba(255,255,255,0.2);
}

.speaker-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.speaker-header p {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.speaker-body {
  padding: 24px 28px;
}

.speaker-body .talk-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.speaker-body .talk-abstract {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   INFO PAGES (Guidelines, Fees, etc.)
   ============================================ */
.info-content {
  max-width: 900px;
  margin: 0 auto;
}

.info-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 36px 0 16px;
}

.info-content h3:first-child { margin-top: 0; }

.info-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.info-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.info-content ul li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Fee Table */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.fee-table thead {
  background: var(--gradient-2);
}

.fee-table th {
  padding: 14px 20px;
  text-align: left;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
}

.fee-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.fee-table tbody tr:hover { background: var(--bg-light); }

/* Hotel Cards */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.hotel-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hotel-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.hotel-card .hotel-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Download Items */
.downloads-list { margin: 24px 0; }

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: var(--transition);
}

.download-item:hover { box-shadow: var(--shadow-sm); }

.download-item .dl-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-item .dl-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.download-item .dl-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.download-item .dl-size {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   PARTICIPANTS TABLE
   ============================================ */
.participants-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  flex: 1;
  max-width: 400px;
}

.search-box input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  background: transparent;
}

.filter-group {
  display: flex;
  gap: 8px;
}

.filter-select {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-body);
  background: var(--bg-card);
  cursor: pointer;
}

.participants-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.participants-table thead { background: var(--gradient-2); }

.participants-table th {
  padding: 14px 16px;
  text-align: left;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}

.participants-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.participants-table tbody tr:hover { background: var(--bg-light); }

.type-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.type-invited { background: #fef3c7; color: #92400e; }
.type-oral { background: #dbeafe; color: #1e40af; }
.type-poster { background: #dcfce7; color: #166534; }
.type-attend { background: #f3f4f6; color: #374151; }

.participants-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.stat-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

/* ============================================
   CONFERENCE PROGRAM
   ============================================ */
.program-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.program-tab {
  padding: 10px 24px;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.program-tab:hover { border-color: var(--primary); color: var(--primary); }

.program-tab.active {
  background: var(--gradient-1);
  color: #fff;
  border-color: transparent;
}

.program-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.timeline-time {
  flex-shrink: 0;
  width: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  padding-top: 2px;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-content .session-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-left: 8px;
}

.session-plenary { background: #fef3c7; color: #92400e; }
.session-oral { background: #dbeafe; color: #1e40af; }
.session-poster { background: #dcfce7; color: #166534; }
.session-social { background: #fce7f3; color: #9d174d; }

/* Program Day List (vertical accordion) */
.program-day-list {
  max-width: 900px;
  margin: 0 auto;
}

.program-day-item {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.program-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg-light);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.program-day-header:hover {
  background: var(--border);
}

.program-day-header.active {
  background: var(--gradient-1);
  color: #fff;
}

.program-day-header .day-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.program-day-header .day-date {
  font-size: 1rem;
  opacity: 0.9;
}

.program-day-header .day-arrow {
  font-size: 0.8rem;
  transition: var(--transition);
}

.program-day-header.active .day-arrow {
  transform: rotate(180deg);
}

.program-day-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.program-day-body.open {
  max-height: 3000px;
}

.program-day-body-inner {
  padding: 16px 24px 24px;
}
/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--gradient-2);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #fff;
}
.footer-brand {
  font-size: 0.88rem;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 8px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}



/* ============================================
   AUTH FORMS (Login / Register)
   ============================================ */
.auth-form .form-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin: 28px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.auth-form .form-section-title:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.auth-form .form-group {
  margin-bottom: 16px;
  flex: 1;
}

.auth-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.auth-form label .req { color: #dc2626; }

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
  background: #fff;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.auth-form textarea { resize: vertical; }

.form-row {
  display: flex;
  gap: 16px;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input { padding-right: 40px; }

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  transition: var(--transition);
}

.password-toggle:hover { opacity: 1; }

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #dc2626;
  font-size: 0.88rem;
  margin: 12px 0;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #16a34a;
  font-size: 0.88rem;
  margin: 12px 0;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   USER DASHBOARD
   ============================================ */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.dash-welcome h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text-dark);
}

.dash-id {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--primary);
  background: var(--bg-light);
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

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

/* Dashboard Tabs */
.dash-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0;
}

.dash-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: -2px;
}

.dash-tab:hover { color: var(--primary); }

.dash-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Dashboard Panels */
.dash-panel { display: none; }
.dash-panel.active { display: block; animation: fadeInUp 0.3s ease; }

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

.dash-card-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* Profile View */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-item .profile-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.profile-item .profile-value {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.profile-item.full-width {
  grid-column: 1 / -1;
}

/* Submission Cards */
.submission-card {
  margin-bottom: 20px;
}

.submission-status {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-display);
}

.status-not-submitted { background: #f3f4f6; color: #6b7280; }
.status-submitted { background: #dbeafe; color: #1e40af; }
.status-approved { background: #dcfce7; color: #166534; }
.status-revision { background: #fef3c7; color: #92400e; }

/* File Upload Area */
.file-upload-area {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

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

.file-name.has-file { color: var(--primary); font-weight: 500; }

/* Submitted file info */
.submitted-file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 12px 0;
}

.submitted-file-info .file-details {
  display: flex;
  align-items: center;
  gap: 10px;
}

.submitted-file-info .file-icon {
  font-size: 1.5rem;
}

.submitted-file-info .file-meta {
  font-size: 0.85rem;
}

.submitted-file-info .file-meta .fname {
  font-weight: 600;
  color: var(--text-dark);
}

.submitted-file-info .file-meta .fdate {
  color: var(--text-muted);
  font-size: 0.78rem;
}

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


/* ============================================
   ADD THE FOLLOWING INSIDE YOUR @media (max-width: 768px) { }
   ============================================ */
/*
  .form-row { flex-direction: column; gap: 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .dash-tabs { overflow-x: auto; }
  .dash-tab { padding: 10px 16px; font-size: 0.85rem; white-space: nowrap; }
  .file-upload-area { flex-direction: column; align-items: flex-start; }
  .submitted-file-info { flex-direction: column; gap: 12px; align-items: flex-start; }
*/

/* ============================================
   PHASE 3: ADMIN PANEL CSS
   Dán vào styles.css, trước phần ANIMATIONS
   ============================================ */

/* Admin Stats Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.admin-stat {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.admin-stat .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.admin-stat .stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

.admin-stat .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

/* Admin Toggle Switches */
.admin-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.admin-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.admin-toggle:hover {
  background: var(--border);
}

.admin-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Admin Modal */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-modal-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.admin-modal-body {
  padding: 24px;
}

/* Admin Action Buttons */
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.admin-action-btn:hover { opacity: 0.85; }

.admin-action-btn.view  { background: #dbeafe; color: #1e40af; }
.admin-action-btn.edit  { background: #dcfce7; color: #166534; }
.admin-action-btn.del   { background: #fee2e2; color: #dc2626; }
.admin-action-btn.approve { background: #dcfce7; color: #166534; }
.admin-action-btn.revise  { background: #fef3c7; color: #92400e; }
.admin-action-btn.dl    { background: #e0e7ff; color: #3730a3; }

.admin-actions-cell {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* Admin Export Grid */
.admin-export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.admin-export-item {
  padding: 28px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 2px dashed var(--border);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.admin-export-item:hover {
  border-color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-export-item h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 8px 0 4px;
  color: var(--text-dark);
}

.admin-export-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal profile grid reuse */
.admin-modal-body .profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Status badge in admin table */
.admin-status-active { color: #16a34a; font-weight: 600; }
.admin-status-blocked { color: #dc2626; font-weight: 600; }

/* ============================================
   ADD INSIDE @media (max-width: 768px) { }
   ============================================
   .admin-stats-grid { grid-template-columns: 1fr 1fr; }
   .admin-modal { max-width: 95%; margin: 12px; }
   .admin-modal-body .profile-grid { grid-template-columns: 1fr; }
   .admin-actions-cell { flex-direction: column; }
   .admin-export-grid { grid-template-columns: 1fr; }
*/

/* ============================================
   PHASE 3b: CMS CONTENT EDITOR CSS
   Dán vào styles.css, sau Phase 3 CSS, trước ANIMATIONS
   ============================================ */

.cms-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.cms-nav-btn {
  padding: 8px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.cms-nav-btn:hover { border-color: var(--primary); color: var(--primary); }
.cms-nav-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* CMS Item Cards (for array items) */
.cms-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg-section);
  position: relative;
}

.cms-item:hover { border-color: var(--border); }

.cms-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cms-item-header .cms-item-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary);
}

.cms-item-actions {
  display: flex;
  gap: 4px;
}

.cms-item-actions button {
  padding: 4px 8px;
  font-size: 0.78rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.cms-del-btn { background: #fee2e2; color: #dc2626; }
.cms-del-btn:hover { background: #fecaca; }
.cms-up-btn, .cms-down-btn { background: #e0e7ff; color: #3730a3; }
.cms-up-btn:hover, .cms-down-btn:hover { background: #c7d2fe; }

/* CMS Form Fields */
.cms-field {
  margin-bottom: 10px;
}

.cms-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cms-field input,
.cms-field select,
.cms-field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: var(--transition);
}

.cms-field input:focus,
.cms-field select:focus,
.cms-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(13,148,136,0.1);
}

.cms-field textarea { resize: vertical; min-height: 60px; }

.cms-field-row {
  display: flex;
  gap: 12px;
}

.cms-field-row .cms-field { flex: 1; }

/* CMS Sub-section (for committees) */
.cms-subsection {
  margin-bottom: 24px;
}

.cms-subsection-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Save confirmation */
.cms-save-notice {
  padding: 10px 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  color: #16a34a;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}

/* ============================================
   ADD INSIDE @media (max-width: 768px) { }
   ============================================
   .cms-section-nav { gap: 4px; }
   .cms-nav-btn { padding: 6px 10px; font-size: 0.75rem; }
   .cms-field-row { flex-direction: column; gap: 0; }
*/

/* ============================================
   CALL FOR PAPERS — CSS
   Dán vào styles.css, trước ANIMATIONS
   ============================================ */

/* Email Sub-tabs */
.email-subtabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.email-subtab {
  padding: 10px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.email-subtab:hover { border-color: var(--primary); color: var(--primary); }
.email-subtab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.email-subpanel { display: none; }
.email-subpanel.active { display: block; }

/* CFP Stats */
.cfp-stat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-display);
  background: #f3f4f6;
  color: #374151;
}
.cfp-stat-sent { background: #dcfce7; color: #166534; }
.cfp-stat-unsent { background: #fef3c7; color: #92400e; }

/* CFP Add/Import sections */
.cfp-add-section {
  padding: 16px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.cfp-import-section {
  padding: 12px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

/* CFP sent/unsent badges */
.cfp-badge-sent {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #dcfce7;
  color: #166534;
}

.cfp-badge-unsent {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f3f4f6;
  color: #6b7280;
}

/* CFP Preview Frame */
.cfp-preview-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
}

/* CFP Progress Bar */
.cfp-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.cfp-progress-fill {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

.cfp-progress-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* CFP Results */
.cfp-results {
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.85rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
}

.cfp-result-ok { color: #16a34a; }
.cfp-result-fail { color: #dc2626; }

/* ============================================
   ADD INSIDE @media (max-width: 768px) { }
   ============================================
   .cfp-add-section .form-row { flex-direction: column; }
   .cfp-import-section > div { flex-direction: column; align-items: flex-start; }
   .email-subtabs { flex-direction: column; }
*/

/* ============================================
   GALLERY
   ============================================ */

/* Album covers grid */
.gallery-covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-cover-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.gallery-cover-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.gallery-cover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-cover-card:hover img {
  transform: scale(1.08);
}

.gallery-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.75));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition);
}

.gallery-cover-card:hover .gallery-cover-overlay {
  background: linear-gradient(transparent 20%, rgba(0,0,0,0.8));
}

.gallery-cover-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 4px;
}

.gallery-cover-count {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
}

.gallery-cover-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  transition: transform 0.3s ease;
}

.gallery-cover-card:hover .gallery-cover-icon {
  transform: translate(-50%, -50%) scale(1);
}

/* Upcoming placeholder */
.gallery-cover-upcoming {
  background: var(--gradient-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: rgba(255,255,255,0.8);
  padding: 24px;
  text-align: center;
}

.gallery-cover-upcoming .cover-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  margin-top: 12px;
}

.gallery-cover-upcoming .cover-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* Album Viewer (fullscreen overlay) */
.album-viewer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 3000;
  flex-direction: column;
  overflow: hidden;
}

.album-viewer.open {
  display: flex;
  animation: fadeInUp 0.4s ease;
}

.album-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.album-viewer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.album-viewer-counter {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
}

.album-viewer-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}

.album-viewer-close:hover {
  background: rgba(255,255,255,0.2);
}

/* Main image area */
.album-viewer-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.album-viewer-main img {
  max-width: 90%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
}

.album-viewer-main img.switching {
  opacity: 0;
  transform: scale(0.97);
}

.album-viewer-caption {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
  padding: 8px 0 4px;
  min-height: 28px;
}

.album-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-nav-btn:hover {
  background: rgba(255,255,255,0.18);
}

.album-nav-prev { left: 20px; }
.album-nav-next { right: 20px; }

/* Thumbnail strip */
.album-viewer-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px 16px;
  overflow-x: auto;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
}

.album-strip-thumb {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: var(--transition);
  opacity: 0.5;
}

.album-strip-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}

.album-strip-thumb:hover {
  opacity: 0.9;
}

.album-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CMS Gallery Editor */
.cms-gallery-photo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  background: #fff;
}

.cms-gallery-photo img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.cms-gallery-photo-info {
  flex: 1;
  min-width: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PAGE CONTAINER (for SPA routing)
   ============================================ */
.page { display: none; }
.page.active { display: block; animation: fadeInUp 0.4s ease; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .conf-title { font-size: 1.8rem; }
  .conf-title-2 { font-size: 1.65rem; }
  .hero-meta-item { padding: 12px 18px; font-size: 0.85rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile-only nav links (Login/Register) */
.mobile-only-link { display: none !important; }

@media (max-width: 768px) {
  /* Hide desktop nav, show hamburger */
  .main-nav { display: none !important; }
  .mobile-toggle { display: flex !important; }
  .header-actions { display: none !important; }
  .form-row { flex-direction: column; gap: 0; }
  .profile-grid { grid-template-columns: 1fr; }
  .dash-header { flex-direction: column; align-items: flex-start; }
  .dash-tabs { overflow-x: auto; }
  .dash-tab { padding: 10px 16px; font-size: 0.85rem; white-space: nowrap; }
  .file-upload-area { flex-direction: column; align-items: flex-start; }
  .submitted-file-info { flex-direction: column; gap: 12px; align-items: flex-start; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-modal { max-width: 95%; margin: 12px; }
  .admin-modal-body .profile-grid { grid-template-columns: 1fr; }
  .admin-actions-cell { flex-direction: column; }
  .admin-export-grid { grid-template-columns: 1fr; }
  .cms-section-nav { gap: 4px; }
  .cms-nav-btn { padding: 6px 10px; font-size: 0.75rem; }
  .cms-field-row { flex-direction: column; gap: 0; }
  .card + .card { margin-top: 0; }
  .cfp-add-section .form-row { flex-direction: column; }
  .cfp-import-section > div { flex-direction: column; align-items: flex-start; }
  .email-subtabs { flex-direction: column; }
  /* Mobile nav open state */
  .main-nav.open {
    display: block !important;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 0;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-subtle);
    z-index: 999;
    max-height: 80vh;
    overflow-y: auto;
  }

  .gallery-covers { grid-template-columns: 1fr; }
  .album-nav-btn { width: 36px; height: 36px; font-size: 1rem; }
  .album-nav-prev { left: 8px; }
  .album-nav-next { right: 8px; }
  .album-strip-thumb { width: 48px; height: 36px; }

  /* All nav items become block-level */
  .main-nav.open .nav-item {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    font-size: 0.95rem;
  }

  /* Parent items with dropdown: show arrow on right */
  .main-nav.open .nav-item.has-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  /* CRITICAL: Force override all desktop dropdown styles */
  .main-nav.open .nav-item .dropdown {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    z-index: auto !important;
    flex-basis: 100%;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border-left: 3px solid var(--primary) !important;
    transition: max-height 0.3s ease;
    background: var(--bg-light);
  }

  /* When submenu is open, expand it */
  .main-nav.open .nav-item.submenu-open .dropdown {
    max-height: 500px;
    padding: 8px 0;
    margin-top: 8px;
  }

  .main-nav.open .nav-item.submenu-open > .arrow {
    transform: rotate(180deg);
  }

  /* Dropdown links */
  .main-nav.open .dropdown a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: var(--text-body);
    border-radius: 0;
  }

  .main-nav.open .dropdown a:hover {
    background: rgba(13, 148, 136, 0.08);
    color: var(--primary);
  }

  /* Login/Register links at bottom of mobile nav */
  .main-nav.open .mobile-only-link {
    display: block !important;
    color: var(--primary);
    font-weight: 600;
    border-top: 1px solid var(--border-subtle);
  }

  .main-nav.open::after {
    display: none;
  }

  /* Responsive layout fixes */
  .hero-content { padding: 30px 16px; }
  .conf-title { font-size: 1.5rem; padding: 14px 0; }
  .conf-title-2 { font-size: 1.35rem; }
  .hero-meta { flex-direction: column; gap: 0; }
  .hero-meta-item { border-radius: 0 !important; border-right: 1px solid rgba(255,255,255,0.15) !important; border-bottom: none; }
  .hero-meta-item:first-child { border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important; }
  .hero-meta-item:last-child { border-radius: 0 0 var(--radius-sm) var(--radius-sm) !important; }
  .hero-actions { flex-direction: column; }
  .countdown { gap: 8px; }
  .countdown-item .number { font-size: 1.8rem; padding: 12px 6px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .participants-toolbar { flex-direction: column; }
  .search-box { max-width: 100%; }
  .participants-stats { flex-wrap: wrap; }
  .stat-card { min-width: calc(50% - 12px); }
  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.8rem; }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .conf-title { font-size: 1.25rem; padding: 12px 0; }
  .conf-title-2 { font-size: 1.15rem; }
  .hero-meta-item { padding: 10px 14px; font-size: 0.8rem; }
  .countdown-item { min-width: 60px; }
  .countdown-item .number { font-size: 1.4rem; }
  .participants-table { font-size: 0.8rem; }
  .participants-table th, .participants-table td { padding: 8px 10px; }
}


.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.image-modal.show {
  display: flex;
}

.image-modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  background: #fff;
}

.image-modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}