/* ==========================================================================
   IM30 - KỶ NIỆM 30 NĂM THÀNH LẬP KHOA QUẢN TRỊ THÔNG TIN (1996 - 2026)
   TRƯỜNG ĐẠI HỌC KHOA HỌC XÃ HỘI VÀ NHÂN VĂN, ĐHQGHN
   DOMAIN: IM30.info
   DESIGN SYSTEM & MASTER STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Montserrat:wght@400;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,900;1,600&display=swap');

/* --- 1. DESIGN TOKENS & ROOT VARIABLES --- */
:root {
  /* Brand Palette (Nhân Văn Crimson & Imperial Gold) */
  --primary-maroon: #800020;
  --primary-crimson: #a6192e;
  --primary-deep: #4d0013;
  --primary-glow: rgba(166, 25, 46, 0.45);
  
  --gold-accent: #d4af37;
  --gold-bright: #ffd700;
  --gold-light: #fff2b2;
  --gold-gradient: linear-gradient(135deg, #ffd700 0%, #d4af37 50%, #aa7c11 100%);
  --crimson-gradient: linear-gradient(135deg, #a6192e 0%, #800020 50%, #4a0011 100%);
  --tech-cyan: #06b6d4;
  --tech-cyan-glow: rgba(6, 182, 212, 0.35);

  /* Light / Dark Mode Tokens */
  --bg-main: #0a0e17;
  --bg-surface: #111827;
  --bg-card: rgba(26, 34, 53, 0.82);
  --bg-card-hover: rgba(35, 46, 70, 0.95);
  --border-color: rgba(212, 175, 55, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.1);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-bright: #ffffff;
  --text-accent: #ffd700;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(212, 175, 55, 0.3);

  --glass-bg: rgba(17, 24, 39, 0.75);
  --glass-border: 1px solid rgba(255, 255, 255, 0.12);
  --glass-backdrop: blur(16px);

  --font-base: 'Be Vietnam Pro', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --container-max: 1240px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border-color: rgba(166, 25, 46, 0.2);
  --border-subtle: rgba(0, 0, 0, 0.08);

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-bright: #0f172a;
  --text-accent: #a6192e;

  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: 1px solid rgba(166, 25, 46, 0.15);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 25px rgba(166, 25, 46, 0.08);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(166, 25, 46, 0.2);
}

/* --- 2. BASE & RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(166, 25, 46, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
  background-attachment: fixed;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- 3. LAYOUT & CONTAINERS --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-wrapper {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 60px auto;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-color);
  color: var(--text-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-title .text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- 4. TOP NAVIGATION BAR --- */
.im30-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 16px 0;
}

.im30-nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-bottom: var(--glass-border);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border: 2px solid var(--gold-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 4px 15px rgba(166, 25, 46, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition);
}

.brand-emblem:hover {
  transform: scale(1.05);
  border-color: var(--gold-bright);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.brand-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.countdown-crest-logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--gold-bright);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.45);
  animation: float-crest 3.5s ease-in-out infinite;
}

.countdown-crest-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge-logo-container {
  width: 80px;
  height: 80px;
  margin: 12px auto;
  border-radius: 50%;
  border: 3px solid var(--gold-bright);
  background: #ffffff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.badge-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes float-crest {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-title-main {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-bright);
  letter-spacing: 0.5px;
}

.brand-title-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-menu a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--text-accent);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-bright);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--gold-accent);
  transform: rotate(15deg);
}

.btn-nav-cta {
  background: var(--crimson-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-accent);
  box-shadow: 0 4px 15px rgba(166, 25, 46, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(166, 25, 46, 0.5);
  color: var(--gold-bright);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-bright);
  font-size: 1.6rem;
  cursor: pointer;
}

/* --- 5. HERO SECTION --- */
.hero-section {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-lights {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(166, 25, 46, 0.25) 0%, rgba(212, 175, 55, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--gold-accent);
  border-radius: var(--radius-pill);
  color: var(--gold-bright);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge-pulse {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-dot 1.8s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .highlight-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-accent);
  border-left: 3px solid var(--gold-accent);
  padding-left: 18px;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 45px;
}

.btn-primary {
  background: var(--crimson-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-bright);
  box-shadow: 0 8px 25px rgba(166, 25, 46, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(166, 25, 46, 0.6);
  color: var(--gold-bright);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold-accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Event Quick Info Banner */
.hero-quick-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-backdrop);
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-bright);
}

/* Hero Right Column: Countdown Box */
.hero-countdown-card {
  background: var(--glass-bg);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.countdown-crest {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background: var(--crimson-gradient);
  border: 3px solid var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-bright);
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.countdown-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.countdown-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.countdown-timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.timer-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 4px;
}

.timer-unit {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.countdown-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-gcal {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-gcal:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold-accent);
}

/* --- 6. THƯ NGỎ (OFFICIAL LETTERS) SECTION --- */
.letters-section {
  background: var(--bg-surface);
  position: relative;
}

.letter-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.letter-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.letter-tab-btn.active {
  background: var(--crimson-gradient);
  border-color: var(--gold-accent);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(166, 25, 46, 0.35);
}

.letter-panel {
  display: none;
}

.letter-panel.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

.letter-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.letter-card-text {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--shadow-md);
  position: relative;
}

.letter-header-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-accent);
  line-height: 1.4;
  margin-bottom: 12px;
}

.letter-subtitle-official {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.letter-salutation {
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.letter-body p {
  margin-bottom: 16px;
  color: var(--text-main);
  font-size: 1.02rem;
  text-align: justify;
}

.letter-highlight-box {
  background: rgba(166, 25, 46, 0.15);
  border-left: 4px solid var(--gold-bright);
  padding: 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

.letter-highlight-box h4 {
  color: var(--gold-bright);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.letter-signature-block {
  margin-top: 35px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.sig-date {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
}

.sig-role {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-bright);
  text-transform: uppercase;
  margin-top: 4px;
}

.sig-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-bright);
  font-weight: 700;
  margin-top: 8px;
}

.letter-card-scan {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.scan-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.scan-wrapper:hover {
  border-color: var(--gold-accent);
  box-shadow: var(--shadow-glow);
}

.scan-wrapper img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.scan-wrapper:hover img {
  transform: scale(1.02);
}

.scan-overlay-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* --- 7. CHUỖI 4 HOẠT ĐỘNG KỶ NIỆM (MILESTONES) --- */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.milestone-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.milestone-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-accent);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  background: var(--bg-card-hover);
}

.milestone-card[data-id="04"] {
  border: 2px solid var(--gold-accent);
  background: linear-gradient(180deg, rgba(166, 25, 46, 0.25) 0%, var(--bg-card) 100%);
}

.milestone-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.m-code {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--gold-bright);
}

.m-tag {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.milestone-date {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-accent);
  margin-bottom: 12px;
}

.milestone-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 14px;
  line-height: 1.3;
}

.milestone-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.milestone-highlights {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.hl-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hl-bullet {
  color: var(--gold-bright);
  font-size: 0.9rem;
}

.milestone-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-subtle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-subtle:hover {
  border-color: var(--gold-accent);
  color: var(--gold-bright);
}

.btn-primary-mini {
  background: var(--crimson-gradient);
  border: 1px solid var(--gold-bright);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary-mini:hover {
  transform: translateY(-2px);
  color: var(--gold-bright);
}

/* --- 8. BẢN ĐỒ KẾT NỐI CỰU SINH VIÊN 3 MIỀN --- */
.alumni-network-section {
  position: relative;
}

.network-stats-banner {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  text-align: center;
}

.stat-box-alumni {
  display: flex;
  flex-direction: column;
}

.stat-number-live {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.network-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.regional-chapters-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.region-card:hover {
  border-color: var(--gold-accent);
  transform: translateY(-4px);
}

.region-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.region-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
}

.region-count {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.region-lead {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.region-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.btn-region-connect {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-region-connect:hover {
  background: var(--crimson-gradient);
  color: #fff;
  border-color: var(--gold-accent);
}

/* Quick Checkin Box */
.quick-checkin-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.checkin-box-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.checkin-box-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  font-size: 0.95rem;
  transition: var(--transition);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: #ffffff;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-accent);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.ticker-feed {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.ticker-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-main);
}

.ticker-badge.new-pulse {
  border-color: var(--gold-accent);
  background: rgba(212, 175, 55, 0.15);
  animation: pulse-ring 2s ease-out;
}

/* --- 9. CỔNG ĐĂNG KÝ HỘI NGỘ (RSVP) & THẺ ĐẠI BIỂU --- */
.rsvp-section {
  background: var(--bg-surface);
}

.rsvp-container-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.rsvp-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
  cursor: pointer;
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-crimson);
}

/* Luxury Delegate Pass Preview */
.badge-preview-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.digital-badge-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, #5A0C1A 0%, #800020 40%, #1A0007 100%);
  border: 4px solid var(--gold-accent);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.badge-card-inner-border {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.badge-header-univ {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.badge-header-faculty {
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.badge-emblem-svg {
  width: 64px;
  height: 64px;
  margin: 12px auto;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--gold-bright);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.badge-type-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.badge-attendee-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 6px;
}

.badge-attendee-class {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.badge-attendee-meta {
  font-size: 0.88rem;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.badge-id-pill {
  display: inline-block;
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed var(--gold-accent);
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 20px;
}

.badge-qr-box {
  background: #ffffff;
  padding: 10px;
  border-radius: var(--radius-md);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 16px;
}

.badge-qr-box img {
  width: 120px;
  height: 120px;
  display: block;
}

.badge-event-details {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.badge-event-details strong {
  color: var(--gold-bright);
}

.badge-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.badge-actions-bar {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 440px;
}

.btn-download-badge {
  background: var(--gold-gradient);
  color: #3b1600;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
  transition: var(--transition);
}

.btn-download-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

/* --- 10. SỔ VÀNG TRI ÂN & KÝ ỨC (GUESTBOOK) --- */
.guestbook-section {
  position: relative;
}

.guestbook-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.guestbook-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  height: fit-content;
}

.guestbook-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 700px;
  overflow-y: auto;
  padding-right: 12px;
}

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

.guestbook-card:hover {
  border-color: var(--gold-accent);
}

.gb-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.gb-avatar {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.gb-meta {
  flex: 1;
}

.gb-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
}

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

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

.gb-content {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 14px;
}

.gb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.gb-tag {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.gb-like-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.gb-like-btn.liked {
  color: #ef4444;
  font-weight: 700;
}

/* --- 11. CỔNG ỦNG HỘ & VIETQR MINH BẠCH --- */
.donation-section {
  background: var(--bg-surface);
}

.donation-card-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.donation-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.bank-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f97316;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.donation-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.donation-commitment {
  background: rgba(212, 175, 55, 0.12);
  border-left: 4px solid var(--gold-bright);
  padding: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--text-bright);
}

.amount-picker-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.amount-choice-btn {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

[data-theme="light"] .amount-choice-btn {
  background: #ffffff;
}

.amount-choice-btn.active, .amount-choice-btn:hover {
  background: var(--crimson-gradient);
  border-color: var(--gold-accent);
  color: #ffffff;
}

.bank-detail-list {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

[data-theme="light"] .bank-detail-list {
  background: rgba(0, 0, 0, 0.03);
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 0.92rem;
}

.bank-detail-row:last-child {
  border-bottom: none;
}

.bank-detail-row span:first-child {
  color: var(--text-muted);
}

.bank-detail-row span:last-child {
  font-weight: 700;
  color: var(--text-bright);
}

.syntax-preview-box {
  background: rgba(255, 215, 0, 0.1);
  border: 1px dashed var(--gold-accent);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin-bottom: 20px;
}

/* VietQR Live Box */
.vietqr-card-box {
  background: var(--bg-card);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.vietqr-image-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin-bottom: 16px;
  max-width: 320px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.vietqr-image-wrapper img {
  width: 100%;
  display: block;
}

.vietqr-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- 12. DÒNG THỜI GIAN LỊCH SỬ (TIMELINE 1973 - 2026) --- */
.timeline-track {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--gold-gradient);
}

.timeline-entry {
  position: relative;
  margin-bottom: 40px;
  width: 50%;
}

.timeline-entry.left {
  left: 0;
  padding-right: 40px;
  text-align: right;
}

.timeline-entry.right {
  left: 50%;
  padding-left: 40px;
  text-align: left;
}

.timeline-entry::after {
  content: '';
  position: absolute;
  top: 15px;
  width: 18px;
  height: 18px;
  background: var(--primary-crimson);
  border: 3px solid var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-bright);
}

.timeline-entry.left::after {
  right: -9px;
}

.timeline-entry.right::after {
  left: -9px;
}

.timeline-entry-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-entry-content:hover {
  border-color: var(--gold-accent);
  transform: translateY(-3px);
}

.tl-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.tl-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.tl-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- 13. FOOTER --- */
.im30-footer {
  background: #06090e;
  border-top: 1px solid var(--border-color);
  padding: 70px 0 30px 0;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   14. BRAND ASSISTANT INTEGRATOR WIDGET STYLES (PILL FAB & CHAT WINDOW)
   ========================================================================== */
.brand-fab-launcher {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--crimson-gradient);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-pill);
  padding: 10px 22px 10px 14px;
  box-shadow: 0 10px 30px rgba(166, 25, 46, 0.5), 0 0 20px rgba(212, 175, 55, 0.4);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.brand-fab-launcher:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 40px rgba(166, 25, 46, 0.7), 0 0 25px rgba(255, 215, 0, 0.6);
}

.brand-fab-icon-box {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.brand-fab-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.brand-fab-text {
  display: flex;
  flex-direction: column;
}

.brand-fab-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.2;
}

.brand-fab-sub {
  font-size: 0.76rem;
  color: var(--gold-light);
  font-weight: 500;
}

.brand-fab-badge {
  background: #22c55e;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

/* Chat Window */
.brand-chat-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 400px;
  max-width: calc(100vw - 36px);
  height: 620px;
  max-height: calc(100vh - 130px);
  background: var(--bg-surface);
  border: 2px solid var(--gold-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.brand-chat-header {
  background: var(--crimson-gradient);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gold-accent);
}

.brand-chat-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gold-accent);
}

.brand-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.brand-profile-meta .brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
}

.brand-status-text {
  font-size: 0.75rem;
  color: var(--gold-light);
}

.brand-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-icon-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.brand-icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.brand-chat-suggestions {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  white-space: nowrap;
}

.suggestion-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.suggestion-chip:hover {
  border-color: var(--gold-accent);
  color: var(--gold-bright);
  background: var(--bg-card-hover);
}

.brand-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-msg {
  display: flex;
  gap: 10px;
  max-width: 88%;
}

.brand-msg.bot {
  align-self: flex-start;
}

.brand-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.brand-msg-avatar {
  width: 32px;
  height: 32px;
  background: rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand-msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  word-break: break-word;
}

.brand-msg.bot .brand-msg-bubble {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-top-left-radius: 4px;
}

.brand-msg.user .brand-msg-bubble {
  background: var(--crimson-gradient);
  color: #ffffff;
  border-top-right-radius: 4px;
}

.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold-bright);
  border-radius: 50%;
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

.brand-chat-footer {
  padding: 14px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.brand-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 16px;
}

.brand-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-bright);
  font-size: 0.92rem;
}

.brand-send-btn {
  width: 38px;
  height: 38px;
  background: var(--crimson-gradient);
  border: 1px solid var(--gold-accent);
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.brand-send-btn:hover {
  transform: scale(1.05);
  color: var(--gold-bright);
}

.brand-footer-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* --- 15. TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.im30-toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-bright);
  font-size: 0.92rem;
  animation: slideInRight 0.3s ease forwards;
  min-width: 280px;
  max-width: 400px;
}

.toast-success { border-color: #22c55e; }
.toast-error { border-color: #ef4444; }

/* --- 16. LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gold-accent);
}

.lightbox-caption {
  margin-top: 14px;
  color: var(--gold-light);
  font-size: 1rem;
  text-align: center;
}

.lightbox-close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* --- 17. KEYFRAME ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes typing {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* --- 18. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .hero-grid,
  .letter-container-grid,
  .network-content-grid,
  .rsvp-container-grid,
  .guestbook-layout,
  .donation-card-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .timeline-track::before {
    left: 20px;
  }

  .timeline-entry {
    width: 100%;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-entry::after {
    left: 11px !important;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    transform: translateY(-120%);
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    box-shadow: var(--shadow-lg);
  }

  .mobile-toggle {
    display: block;
  }

  .hero-quick-info {
    grid-template-columns: 1fr;
  }

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

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

  .brand-fab-text {
    display: none;
  }

  .brand-fab-launcher {
    padding: 10px;
    bottom: 20px;
    right: 20px;
  }

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