/* ============================================
   LANDING PAGE — Minimalist Pro Light Mode
   ============================================ */

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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #0284c7; /* Clinical Blue */
  --accent-light: #38bdf8;
  --accent-glow: rgba(2, 132, 199, 0.15);
  --border: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --chat-bg: #f1f5f9;
  --chat-bubble-user: #e0f2fe;
  --chat-bubble-user-text: #0369a1;
  --chat-bubble-bot: #ffffff;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---- Removed grain for clean look ---- */
.grain { display: none; }

/* ---- Background Subtle Gradients ---- */
.bg-orbs { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: 0.6;
  animation: drift 25s ease-in-out infinite alternate;
}
.orb-1 { width: 600px; height: 600px; background: #e0f2fe; top: -100px; left: -200px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: #f0fdf4; bottom: -150px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: #f8fafc; top: 40%; left: 40%; animation-delay: -10s; }

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}

/* ---- MAIN LAYOUT ---- */
.landing {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ============ IDENTITY SIDE (LEFT) ============ */
.identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 3rem 4rem 3rem 2rem;
  background: #ffffff;
  border-right: 1px solid var(--border);
  position: relative;
}

.identity-container {
  width: 100%;
  max-width: 580px;
}

/* Photo */
.photo-frame {
  position: relative;
  width: clamp(100px, 15vh, 150px); 
  height: clamp(100px, 15vh, 150px);
  margin-bottom: clamp(1rem, 2.5vh, 2rem);
  flex-shrink: 0;
}

.photo-border-anim {
  position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), transparent, var(--bg-primary), transparent, var(--accent));
  animation: spin 10s linear infinite;
  z-index: -1;
  opacity: 0.8;
}

@keyframes spin { to { transform: rotate(360deg); } }

.photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-primary);
  display: block;
  box-shadow: var(--shadow-md);
}

.photo-accent {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #10b981; /* Green status dot */
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Identity text */
.identity-text { width: 100%; max-width: 520px; }

.pre-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.725rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.name em {
  font-style: normal;
  color: var(--accent);
}

/* Affiliations */
.affiliation-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.affiliation-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.aff-icon {
  width: 17px;
  height: 17px;
  color: var(--accent);
  opacity: 0.85;
}

.affiliation-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.title-line {
  display: flex; align-items: center; gap: 0.65rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
  flex-wrap: wrap;
}

.title-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.divider { color: var(--border); }

.tagline {
  font-size: 0.935rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  text-align: left;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

/* Action Group (Enter + Links) */
.action-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
  flex-wrap: nowrap;
}

.quick-links {
  display: flex;
  gap: 0.5rem;
}

.ql {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

.ql img, .ql svg {
  width: 16px; height: 16px;
}

.ql[title="GitHub"] img { filter: brightness(0); }

.ql:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

/* Visitor Map */
.visitor-map {
  width: min(100%, 340px);
  margin-bottom: 2rem;
  padding: 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.1s;
  box-shadow: var(--shadow-sm);
}

.visitor-map__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.visitor-map__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot-blue 2s infinite;
}

@keyframes pulse-dot-blue {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4); }
  70% { box-shadow: 0 0 0 4px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.visitor-map__frame {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
}

.visitor-map__frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Enter button */
.enter-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: #ffffff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.2);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.2s;
  white-space: nowrap;
}

.enter-btn svg { width: 16px; height: 16px; transition: transform 0.25s; }
.enter-btn:hover { background: #0369a1; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(2, 132, 199, 0.25); }
.enter-btn:hover svg { transform: translateX(4px); }

/* Secondary outline button */
.enter-btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
  padding: 0.55rem 0.85rem;
}
.enter-btn.secondary:hover {
  background: rgba(2, 132, 199, 0.06);
  color: #0369a1;
  border-color: #0369a1;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.1);
  transform: translateY(-2px);
}
.enter-btn.secondary:hover svg {
  transform: translateX(3px);
}

/* ============ CHAT SIDE (RIGHT) ============ */
.chat-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 2rem 3rem 4rem;
  background: #f4f7fb; /* Distinct soft surface color for chat side */
  position: relative;
  max-height: 100vh;
  overflow: hidden;
}

.chat-header {
  margin-bottom: 1.5rem;
  max-width: 100%;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.chat-status {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
}

.status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.chat-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.chat-info-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: bold;
  cursor: help;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Chat window */
.chat-window {
  width: 100%;
  max-width: 520px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  height: 480px;
  max-height: 50vh;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
  scroll-behavior: smooth;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* ============ UPCOMING COURSES NOTIFICATION CARD (LEFT SIDE) ============ */
.upcoming-notification-card {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent-light);
  border-radius: 20px;
  padding: 0.9rem 1.15rem;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: uncFloat 4s ease-in-out infinite;
  will-change: transform;
}

.upcoming-notification-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 35px rgba(2, 132, 199, 0.22);
  border-color: var(--accent);
}

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

.unc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(222, 227, 235, 0.7);
}

.unc-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.unc-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 100, 148, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.unc-icon-wrap svg {
  width: 15px;
  height: 15px;
}

.unc-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.unc-term {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.unc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  background: rgba(0, 100, 148, 0.08);
  transition: all 0.2s;
  flex-shrink: 0;
}

.unc-action-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

.unc-action-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.unc-action-btn:hover svg {
  transform: translateX(2px);
}

.unc-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.unc-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: rgba(247, 249, 252, 0.8);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.unc-item:hover {
  background: #ffffff;
  border-color: var(--accent-light);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.unc-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.unc-item-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.unc-course-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.unc-venue {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.chat-window::-webkit-scrollbar { width: 6px; }
.chat-window::-webkit-scrollbar-track { background: transparent; }
.chat-window::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.message {
  display: flex; align-items: flex-end; gap: 0.75rem;
  animation: msgAppear 0.3s ease;
}

@keyframes msgAppear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-message { flex-direction: row-reverse; }

.msg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600; color: #ffffff;
  flex-shrink: 0;
}

.user-message .msg-avatar {
  background: var(--text-primary);
}

.msg-bubble {
  max-width: 80%;
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--chat-bubble-bot);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 2px;
  box-shadow: var(--shadow-sm);
}

.user-message .msg-bubble {
  background: var(--chat-bubble-user);
  color: var(--chat-bubble-user-text);
  border-color: rgba(2, 132, 199, 0.1);
  border-radius: 12px 12px 2px 12px;
}

/* Typing indicator */
.typing-bubble {
  display: flex; gap: 4px; align-items: center;
  padding: 1rem 1.25rem;
}

.typing-bubble span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s infinite ease-in-out both;
}
.typing-bubble span:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble span:nth-child(2) { animation-delay: -0.16s; }

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

/* Suggestions */
.chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1.25rem;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.9s;
}

.suggestion-chip {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.suggestion-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #f0f9ff;
}

/* Input */
.chat-input-area {
  display: flex; gap: 0.75rem;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.1s;
}

#chatInput {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

#chatInput:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

#chatInput::placeholder { color: var(--text-muted); }

#sendBtn {
  width: 48px; height: 48px;
  background: var(--accent);
  border: none; border-radius: var(--radius-md);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #ffffff;
  transition: background 0.2s;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

#sendBtn:hover { background: #0369a1; }
#sendBtn svg { width: 20px; height: 20px; }

/* Scroll hint */
.scroll-hint {
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.5s;
  display: flex;
  justify-content: center;
}

.scroll-hint a {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.scroll-hint a:hover { color: var(--accent); }
.scroll-hint a svg { width: 16px; height: 16px; animation: bounceDown 2s infinite; }

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(4px); }
  60% { transform: translateY(2px); }
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  body { overflow: auto; }
  .landing { 
    grid-template-columns: 1fr; 
    height: auto;
    min-height: 100vh; 
    padding: 1rem;
  }
  .identity { border-right: none; border-bottom: 1px solid var(--border); padding: 4rem 1rem 2rem; }
  .chat-section { padding: 2rem 1rem; }
  .chat-window { height: 450px; max-height: 60vh; }
  .photo-frame { width: 120px; height: 120px; }
  .photo { width: 120px; height: 120px; }
  .name { font-size: 2.5rem; }
  .scroll-hint { display: none; }
}

/* Chat Info Tooltip */
.chat-info-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}
.chat-info-tooltip.tooltip--open { display: block; }
.chat-info-tooltip strong { color: var(--text-primary); }
.chat-info-tooltip a { color: var(--accent); text-decoration: none; font-weight: 500; }
.chat-info-tooltip a:hover { text-decoration: underline; }

.tooltip-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.tooltip-close:hover { color: var(--text-primary); }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content.glass-effect {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 800px;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text-primary);
}
.modal-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.header-titles {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.modal-header h2 {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
}
.highlight-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.highlight-selector select {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.highlight-selector select:focus {
  border-color: var(--accent);
}
.modal-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  background: #fef08a; /* yellow for new */
  color: #854d0e;
}
.modal-body {
  padding: 0 1.5rem 1rem;
}
.pdf-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  margin-bottom: 1rem;
}
.modal-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.modal-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
}
/* Floating Highlight Button */
.floating-highlight {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--accent-light);
  border-radius: 30px;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: roamFloat 4s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}
.floating-highlight:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.25);
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.floating-highlight svg { 
  width: 20px; 
  height: 20px; 
  color: var(--accent); 
  transition: color 0.3s ease; 
}
.floating-highlight:hover svg { 
  color: white; 
}

@keyframes roamFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-150px); }
}

/* Full PDF Modal Overrides */
.modal-content.glass-effect.full-pdf-modal {
  padding: 0;
  width: 90vw;
  max-width: 1000px;
  height: 85vh;
  display: flex;
  flex-direction: column;
}
.full-pdf {
  flex-grow: 1;
  border: none;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
}
.modal-close {
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.minimal-selector-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
}
.minimal-selector-overlay select {
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
}
.minimal-link-overlay {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
  transition: all 0.2s;
}
.minimal-link-overlay:hover {
  background: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5);
  color: white;
}
.minimal-link-overlay svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .floating-highlight {
    bottom: 1rem;
    left: 1rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }
}
