/* ============================================================
   KEISER GRADUATION CHATBOT — Official Brand Style Guide
   Colors: Keiser Blue #16315A, Teal #1075DB, Yellow #EBCF55
   Typography: Barlow Condensed (headlines) + Roboto (body)
   Visual: Vibrant blue gradients, friendly rounded shapes,
          white/light glass cards, two-tone accent system
   ============================================================ */

:root {
  /* Fonts — Keiser Brand */
  --font-body: 'Roboto', Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Roboto', sans-serif;

  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Keiser Brand Colors */
  --keiser-blue:      #16315A;
  --keiser-dark-blue: #0f223e;
  --keiser-teal:      #1075DB;
  --keiser-teal-light:#3d93e4;
  --keiser-yellow:    #EBCF55;
  --keiser-dark-gray: #5a6577;
  --keiser-mid-gray:  #8892a2;
  --keiser-light-gray:#F2F2F2;
  --pure-white:       #ffffff;

  /* Semantic Colors */
  --color-bg: var(--keiser-blue);
  --color-text: var(--keiser-blue);
  --color-text-muted: var(--keiser-dark-gray);
  --color-text-light: var(--pure-white);
  --color-accent: var(--keiser-teal);

  /* Card Surfaces — Light on dark */
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-bg-solid: #ffffff;
  --card-border: rgba(255, 255, 255, 0.6);
  --card-shadow: 0 4px 24px rgba(15, 34, 62, 0.15), 0 1px 3px rgba(15, 34, 62, 0.08);

  /* Radius — Friendly rounded shapes per brand guide */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 180ms var(--ease-out);
  --transition-med: 300ms var(--ease-out);
}

/* ============================================================
   CONGRATULATORY SPLASH SCREEN
   Pure CSS dismiss via :target — no JavaScript required
   ============================================================ */

.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0f223e 0%, #16315A 40%, #1075DB 100%);
  transition: opacity 600ms ease, visibility 600ms ease;
}

/* Hidden state */
.splash-overlay.splash-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  animation: splashIn 1000ms ease both;
  animation-delay: 200ms;
}

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

.splash-logo-card {
  background: rgba(255, 255, 255, 0.95);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.splash-logo {
  width: auto;
  height: 60px !important;
  max-height: 60px;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.splash-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #EBCF55, transparent);
  margin: var(--space-1) 0;
}

.splash-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--pure-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.splash-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  max-width: 340px;
  line-height: 1.6;
}

.splash-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--keiser-blue);
  background: var(--pure-white);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-4);
  position: relative;
  z-index: 20;
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

.splash-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 200ms ease;
}

.splash-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

.splash-btn:hover svg {
  transform: translateX(4px);
}

.splash-btn:active {
  transform: scale(0.97);
}

/* ============================================================
   GRADIENT BACKGROUND — Matches brand guide cover/dividers
   Vibrant blue gradient from Keiser Teal to Keiser Blue
   ============================================================ */

body {
  background: linear-gradient(145deg, #1075DB 0%, #1468C0 25%, #16315A 70%, #0f223e 100%);
  overflow: hidden;
  position: relative;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Subtle animated overlay shapes — per brand shapes guide (circles, rounded rects) */
.bg-gradient::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(16, 117, 219, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  animation: shapeDrift 20s ease-in-out infinite alternate;
}

.bg-gradient::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: shapeDrift2 25s ease-in-out infinite alternate;
}

@keyframes shapeDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes shapeDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -15px) scale(1.08); }
}

/* ============================================================
   APP SHELL
   ============================================================ */

.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-4);
}

/* ============================================================
   HEADER — White card on blue background
   ============================================================ */

.header {
  flex-shrink: 0;
  padding: var(--space-4) var(--space-6);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--card-shadow);
  margin-bottom: var(--space-3);
  position: relative;
  overflow: hidden;
}

/* Keiser Teal accent bar — top of header */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--keiser-teal), var(--keiser-teal-light));
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header-logo {
  width: auto;
  height: 44px !important;
  max-height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.header-text h1 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--keiser-blue);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
}

.header-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1.05rem);
  font-weight: 600;
  color: var(--keiser-teal);
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 2px 0 0 0;
  opacity: 0.95;
}

.header-subtitle:empty {
  display: none;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--keiser-light-gray);
  border: 1px solid rgba(22, 49, 90, 0.1);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  color: var(--keiser-mid-gray);
  transition: all var(--transition-fast);
  min-height: 30px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn.active {
  background: var(--keiser-teal);
  color: var(--pure-white);
  box-shadow: 0 2px 6px rgba(16, 117, 219, 0.3);
}

.lang-btn:hover:not(.active) {
  color: var(--keiser-blue);
  background: rgba(16, 117, 219, 0.08);
}

/* ============================================================
   TAB NAVIGATION — Solid pills on blue bg
   ============================================================ */

.tab-nav {
  flex-shrink: 0;
  display: flex;
  gap: var(--space-2);
  padding: 0 var(--space-1);
  margin-bottom: var(--space-3);
}

.tab-btn[hidden] {
  display: none !important;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  min-height: 44px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tab-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.tab-btn:hover {
  color: var(--pure-white);
  background: rgba(255, 255, 255, 0.15);
}

.tab-btn.active {
  color: var(--keiser-blue);
  background: var(--card-bg);
  border-color: var(--card-border);
  box-shadow: var(--card-shadow);
}

/* ============================================================
   PANELS
   ============================================================ */

.panel {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.panel.active {
  display: flex;
}

.panel-scroll {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.panel-scroll::-webkit-scrollbar { width: 6px; }
.panel-scroll::-webkit-scrollbar-track { background: transparent; }
.panel-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 3px; }

/* ============================================================
   PANEL CARDS — White on blue
   ============================================================ */

.panel-card {
  padding: var(--space-6);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--card-shadow);
  position: relative;
  text-align: center;
  flex-shrink: 0;
}

.panel-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  background: rgba(16, 117, 219, 0.1);
  border: 2px solid rgba(16, 117, 219, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--keiser-teal);
}

.panel-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--keiser-blue);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.panel-card-desc {
  font-size: var(--text-sm);
  color: var(--keiser-dark-gray);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.venue-address {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--pure-white);
  background: linear-gradient(135deg, var(--keiser-teal), var(--keiser-teal-light));
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(16, 117, 219, 0.3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.panel-cta svg { width: 16px; height: 16px; }

.panel-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16, 117, 219, 0.4);
}

/* Info Cards */
.info-card {
  text-align: left;
  padding: var(--space-5);
  flex-shrink: 0;
}

.info-card-body {
  color: var(--keiser-body);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: var(--space-2) 0 var(--space-3);
}

.info-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--keiser-blue);
  margin-bottom: var(--space-3);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.info-card-desc {
  font-size: var(--text-sm);
  color: var(--keiser-dark-gray);
  margin-bottom: var(--space-3);
}

.info-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.info-list li {
  font-size: var(--text-sm);
  color: var(--keiser-dark-gray);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.55;
}

.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--keiser-teal);
  border-radius: 50%;
  opacity: 0.7;
}

/* Timeline */
.info-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.info-timeline-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.info-timeline-item.highlight {
  background: rgba(16, 117, 219, 0.08);
  border: 1px solid rgba(16, 117, 219, 0.15);
}

.info-time {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--keiser-teal);
  min-width: 80px;
  flex-shrink: 0;
}

.info-label {
  font-size: var(--text-sm);
  color: var(--keiser-dark-gray);
  line-height: 1.4;
}

.info-note {
  font-size: var(--text-xs);
  color: var(--keiser-mid-gray);
  font-style: italic;
  margin-top: var(--space-1);
}

/* Contact chips */
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--keiser-teal);
  padding: var(--space-2) var(--space-3);
  background: rgba(16, 117, 219, 0.06);
  border: 1px solid rgba(16, 117, 219, 0.15);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
  min-height: 36px;
  font-weight: 500;
}

.contact-chip svg { width: 14px; height: 14px; flex-shrink: 0; }

.contact-chip:hover {
  background: rgba(16, 117, 219, 0.12);
  border-color: rgba(16, 117, 219, 0.3);
  color: var(--keiser-blue);
}

/* Livestream Link Box */
.livestream-link-box {
  margin-top: var(--space-4);
  padding: var(--space-5);
  background: rgba(16, 117, 219, 0.06);
  border: 2px dashed rgba(16, 117, 219, 0.2);
  border-radius: var(--radius-xl);
  text-align: center;
}

.livestream-status {
  font-size: var(--text-sm);
  color: var(--keiser-mid-gray);
  font-style: italic;
  line-height: 1.5;
}

/* When a livestream URL is present, upgrade the box to solid style */
.livestream-link-box:has(.livestream-join-btn) {
  background: linear-gradient(180deg, rgba(16, 117, 219, 0.08), rgba(16, 117, 219, 0.02));
  border: 1px solid rgba(16, 117, 219, 0.30);
}

.livestream-join-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  background: var(--keiser-teal);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(16, 117, 219, 0.35);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  margin-bottom: var(--space-3);
}

.livestream-join-btn:hover {
  background: #0d63ba;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(16, 117, 219, 0.45);
}

.livestream-meta {
  font-size: var(--text-sm);
  color: var(--keiser-blue);
  margin-top: var(--space-2);
  line-height: 1.5;
}

.livestream-meta-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.5px;
  color: var(--keiser-mid-gray);
}

.livestream-meta-value {
  font-weight: 600;
  color: var(--keiser-blue);
}

.livestream-url {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(16, 117, 219, 0.15);
  font-size: var(--text-xs);
  color: var(--keiser-mid-gray);
  word-break: break-all;
}

.livestream-url a {
  color: var(--keiser-teal);
  text-decoration: none;
}

.livestream-url a:hover {
  text-decoration: underline;
}

.livestream-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--pure-white);
  background: linear-gradient(135deg, #e53e3e, #c53030);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(229, 62, 62, 0.3);
  transition: all 200ms ease;
  animation: livePulse 2s ease-in-out infinite;
}

.livestream-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 62, 62, 0.4);
}

.livestream-link svg {
  width: 20px;
  height: 20px;
}

.livestream-dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Venue Photo */
.venue-photo {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Venue Map */
.venue-map-card { text-align: left; }

.venue-map-container {
  margin-top: var(--space-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--keiser-blue);
  border: 1px solid rgba(16, 117, 219, 0.2);
}

.venue-map { width: 100%; height: auto; display: block; }

/* ============================================================
   CHAT AREA
   ============================================================ */

.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.chat-area::-webkit-scrollbar { width: 6px; }
.chat-area::-webkit-scrollbar-track { background: transparent; }
.chat-area::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.25); border-radius: 3px; }

/* ============================================================
   MESSAGES — White assistant cards, blue user bubbles
   ============================================================ */

.message {
  display: flex;
  gap: var(--space-3);
  max-width: 88%;
  animation: messageIn 400ms var(--ease-out) both;
}

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

.message.user { align-self: flex-end; flex-direction: row-reverse; }
.message.assistant { align-self: flex-start; }

.message-bubble {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  line-height: 1.65;
  position: relative;
}

/* User messages — Keiser Teal solid */
.message.user .message-bubble {
  background: linear-gradient(135deg, var(--keiser-teal), var(--keiser-teal-light));
  color: var(--pure-white);
  box-shadow: 0 4px 16px rgba(16, 117, 219, 0.3);
  border-bottom-right-radius: var(--radius-sm);
}

/* Assistant messages — White card */
.message.assistant .message-bubble {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--keiser-blue);
  box-shadow: var(--card-shadow);
  border-bottom-left-radius: var(--radius-sm);
}

.message-bubble p { margin-bottom: 0.6em; }
.message-bubble p:last-child { margin-bottom: 0; }
.message-bubble ul, .message-bubble ol { padding-left: 1.4em; margin-bottom: 0.6em; }
.message-bubble li { margin-bottom: 0.3em; }
.message-bubble strong { font-weight: 600; color: var(--keiser-blue); }

.message.user .message-bubble strong { color: var(--pure-white); }

/* Headings inside bubbles */
.message-bubble h1, .message-bubble h2 {
  font-family: var(--font-display);
  font-size: 1.1em;
  font-weight: 700;
  margin-top: 0.8em;
  margin-bottom: 0.4em;
  color: var(--keiser-blue);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.message-bubble h1:first-child, .message-bubble h2:first-child { margin-top: 0; }
.message-bubble h3, .message-bubble h4 {
  font-size: 1.05em;
  font-weight: 600;
  margin-top: 0.6em;
  margin-bottom: 0.3em;
  color: var(--keiser-blue);
}

/* Links in responses */
.message-bubble a {
  color: var(--keiser-teal);
  text-decoration: underline;
  text-decoration-color: rgba(16, 117, 219, 0.3);
  text-underline-offset: 2px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.message-bubble a:hover {
  color: var(--keiser-blue);
  text-decoration-color: rgba(16, 117, 219, 0.7);
}

.message-bubble code {
  background: rgba(16, 117, 219, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ============================================================
   WELCOME SCREEN
   ============================================================ */

.welcome-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8);
  gap: var(--space-6);
}

.welcome-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.welcome-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--pure-white);
}

.welcome-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--pure-white);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.welcome-subtitle {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  max-width: 400px;
  line-height: 1.6;
}

.welcome-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  max-width: 500px;
}

.chip {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: var(--pure-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 38px;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   INPUT AREA — White card
   ============================================================ */

.input-area {
  flex-shrink: 0;
  padding-top: var(--space-3);
}

.input-glass {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--card-shadow);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-glass:focus-within {
  border-color: rgba(16, 117, 219, 0.4);
  box-shadow: var(--card-shadow), 0 0 0 3px rgba(16, 117, 219, 0.1);
}

.input-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--keiser-mid-gray);
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: var(--text-sm);
  color: var(--keiser-blue);
  min-height: 44px;
  font-family: var(--font-body);
}

.chat-input::placeholder {
  color: var(--keiser-mid-gray);
}

.send-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--keiser-teal), var(--keiser-teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(16, 117, 219, 0.3);
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(16, 117, 219, 0.4);
}

.send-btn:active { transform: scale(0.95); }
.send-btn:disabled { opacity: 0.4; pointer-events: none; }
.send-btn svg { width: 18px; height: 18px; color: var(--pure-white); }

/* ============================================================
   FOOTER ACTIONS
   ============================================================ */

.footer-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  padding: var(--space-3) 0 var(--space-1);
}

.footer-link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  min-height: 36px;
  font-weight: 500;
}

.footer-link:hover {
  color: var(--pure-white);
  background: rgba(255, 255, 255, 0.1);
}

.footer-link svg { width: 14px; height: 14px; }

/* ============================================================
   QUICK-REPLY FOLLOW-UP BUTTONS
   ============================================================ */

.follow-ups {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  max-width: 88%;
  align-self: flex-start;
  animation: messageIn 400ms var(--ease-out) both;
}

.follow-up-btn {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: var(--pure-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  min-height: 36px;
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.follow-up-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.follow-up-btn:active { transform: translateY(0); }

/* ============================================================
   TYPING INDICATOR
   ============================================================ */

.typing-indicator {
  display: flex;
  gap: 5px;
  padding: var(--space-4) var(--space-5);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-sm);
  width: fit-content;
  box-shadow: var(--card-shadow);
  animation: messageIn 400ms var(--ease-out) both;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--keiser-teal);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* ============================================================
   COUNTDOWN BANNER
   ============================================================ */

.countdown-banner {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--pure-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 38px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.countdown-banner:empty {
  display: none;
}

.countdown-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--keiser-yellow);
  flex-shrink: 0;
  animation: countdownPulse 2s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================================
   SHARE WITH FAMILY BUTTON
   ============================================================ */

.share-family-wrapper {
  display: flex;
  justify-content: center;
  padding: 0 0 var(--space-2);
  flex-shrink: 0;
}

.share-family-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.1));
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--pure-white);
  box-shadow: 0 4px 16px rgba(16, 117, 219, 0.2);
  cursor: pointer;
}

.share-family-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.18));
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16, 117, 219, 0.3);
}

.share-family-btn .share-toast {
  font-size: var(--text-xs);
  margin-left: var(--space-1);
  opacity: 0.85;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ============================================================
   CHECKLIST PANEL
   ============================================================ */

/* Progress bar in header card */
.checklist-progress-wrap {
  margin-top: var(--space-4);
  text-align: left;
}

.checklist-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.checklist-progress-count {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--keiser-teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checklist-progress-track {
  height: 8px;
  background: rgba(22, 49, 90, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.checklist-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--keiser-teal), var(--keiser-teal-light));
  border-radius: var(--radius-full);
  transition: width 400ms var(--ease-out);
}

/* Checklist list container */
.checklist-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Individual checklist item card */
.checklist-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--card-shadow);
  padding: var(--space-4) var(--space-5);
  flex-shrink: 0;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.checklist-item:has(.checklist-cb:checked) {
  border-color: rgba(16, 117, 219, 0.3);
  background: rgba(16, 117, 219, 0.03);
}

.checklist-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
}

/* Hide native checkbox */
.checklist-cb {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom checkbox icon */
.checklist-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(22, 49, 90, 0.25);
  background: var(--pure-white);
  margin-top: 1px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.checklist-cb:checked + .checklist-check-icon {
  background: var(--keiser-teal);
  border-color: var(--keiser-teal);
}

.checklist-cb:checked + .checklist-check-icon::after {
  content: '';
  position: absolute;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid white;
  border-bottom: 2.5px solid white;
  transform: rotate(-45deg) translate(1px, -1px);
}

.checklist-label:hover .checklist-check-icon {
  border-color: var(--keiser-teal);
  box-shadow: 0 0 0 3px rgba(16, 117, 219, 0.12);
}

/* Checklist text area */
.checklist-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.checklist-task {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--keiser-blue);
  line-height: 1.45;
  transition: all var(--transition-fast);
}

.checklist-cb:checked ~ .checklist-text .checklist-task {
  text-decoration: line-through;
  color: var(--keiser-mid-gray);
  opacity: 0.7;
}

.checklist-sub {
  font-size: var(--text-xs);
  color: var(--keiser-mid-gray);
  line-height: 1.4;
}

.checklist-link {
  font-size: var(--text-xs);
  color: var(--keiser-teal);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  line-height: 1.4;
}

.checklist-link:hover {
  color: var(--keiser-blue);
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .app-container { padding: var(--space-3); }
  .header { padding: var(--space-3) var(--space-4); margin-bottom: var(--space-2); }
  .header-text h1 { font-size: var(--text-base); }
  .header-logo { height: 32px; }
  .message { max-width: 92%; }
  .follow-ups { max-width: 92%; }
  .follow-up-btn { white-space: normal; text-align: left; }
  .welcome-container { padding: var(--space-4); }
  .welcome-title { font-size: var(--text-lg); }
  .tab-btn { font-size: 0.65rem; padding: var(--space-2) var(--space-2); gap: var(--space-1); }
  .tab-btn svg { width: 14px; height: 14px; }
  .footer-actions { flex-direction: column; align-items: center; }
}

/* === Campus-specific venue extras === */
.venue-description {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--keiser-dark-gray);
  margin: var(--space-4) auto 0 auto;
  padding: 0;
  max-width: 56ch;
  text-align: center;
}

.map-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--keiser-light-gray);
  margin-top: var(--space-2);
}
.map-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.info-list-numbered {
  list-style: decimal inside;
  padding-left: 0;
}
.info-list-numbered li {
  padding-left: 0.25rem;
  margin-bottom: 0.4rem;
}

.info-card-note {
  font-size: var(--text-xs);
  color: var(--keiser-mid-gray);
  font-style: italic;
  margin-top: var(--space-2);
  line-height: 1.5;
}

/* === Global app tagline footer === */
.app-tagline {
  width: 100%;
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: rgba(22, 49, 90, 0.04);
  border-top: 1px solid rgba(22, 49, 90, 0.08);
  flex-shrink: 0;
}

.app-tagline p {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--keiser-dark-gray);
  letter-spacing: 0.04em;
  line-height: 1.4;
  opacity: 0.75;
}

/* === Travel: hotel list === */
.hotel-category {
  margin-top: var(--space-3);
}
.hotel-category-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--keiser-teal);
  margin: 0 0 var(--space-2) 0;
}
.hotel-item {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--keiser-light-gray);
  text-align: left;
}
.hotel-item:first-of-type {
  border-top: none;
}
.hotel-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--keiser-blue);
  margin: 0 0 4px 0;
}
.hotel-rate {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--keiser-teal);
  margin: 0 0 4px 0;
}
.hotel-address {
  font-size: var(--text-xs);
  color: var(--keiser-dark-gray);
  margin: 0 0 4px 0;
  line-height: 1.45;
}
.hotel-deadline {
  font-size: var(--text-xs);
  color: var(--keiser-dark-gray);
  margin: 6px 0;
}
.hotel-instructions {
  font-size: var(--text-xs);
  color: var(--keiser-mid-gray);
  margin: 6px 0;
  line-height: 1.5;
}
.hotel-travel-note {
  font-size: var(--text-xs);
  color: #b76e00;
  font-style: italic;
  margin: 6px 0;
  line-height: 1.5;
}
.hotel-phone {
  font-size: var(--text-xs);
  margin: 4px 0;
}
.hotel-phone a {
  color: var(--keiser-teal);
  text-decoration: none;
  font-weight: 600;
}
.hotel-link {
  display: inline-block;
  margin-top: 6px;
  font-size: var(--text-xs);
  color: var(--keiser-teal);
  text-decoration: none;
  font-weight: 600;
}
.hotel-link:hover { text-decoration: underline; }

/* === Event card extras (subtitle + partnership section) === */
.event-card-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--keiser-dark-gray);
  margin: 0 0 var(--space-2) 0;
  line-height: 1.5;
  text-align: left;
}
.event-card-partnership {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--keiser-light-gray);
  text-align: left;
}
.event-card-partnership-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--keiser-teal);
  margin: 0 0 var(--space-2) 0;
}
.event-card-partnership p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--keiser-dark-gray);
  margin: 0 0 var(--space-2) 0;
}

/* === Hotel direct booking CTA (button-styled link) === */
.hotel-cta {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-2);
  padding: 8px 16px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hotel-shared-note {
  font-size: var(--text-xs);
  color: var(--keiser-mid-gray);
  font-style: italic;
  margin: 6px 0 0 0;
  line-height: 1.45;
}

/* === Floor plan image card === */
.floor-plan-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: var(--space-2);
  border: 1px solid var(--keiser-light-gray);
  background: #fff;
}

.floor-plan-caption {
  font-size: var(--text-xs);
  color: var(--keiser-mid-gray);
  margin-top: var(--space-2);
  text-align: center;
  line-height: 1.5;
}

/* ---- Registration closed treatment (Tickets card) ---- */
.panel-card.registration-closed {
  border-color: rgba(188, 190, 192, 0.35);
  background: linear-gradient(180deg, rgba(188,190,192,0.05), rgba(22,49,90,0.02));
}
.panel-card.registration-closed .panel-card-icon {
  color: var(--keiser-mid-gray, #94999d);
  opacity: 0.75;
}
.panel-card.registration-closed .panel-card-title {
  color: var(--keiser-light-gray, #bcbec0);
}
.panel-card.registration-closed .panel-card-desc {
  color: var(--keiser-mid-gray, #94999d);
}

/* ---- Greyed-out / disabled checklist item ---- */
.checklist-item.checklist-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.6);
}
.checklist-item.checklist-disabled .checklist-link {
  text-decoration: line-through;
  color: var(--keiser-mid-gray, #94999d);
}
.checklist-item.checklist-disabled .checklist-task {
  color: var(--keiser-mid-gray, #94999d);
}
