/* ============================================
   RTCC 2026 - RT International Convention Companion
   Mobile-first responsive design
   ============================================ */

/* Pull to refresh */
.pull-to-refresh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 10px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  transform: translateY(0);
  transition: transform 0.2s, opacity 0.2s;
  pointer-events: none;
}

:root {
  --blue: #303A7F;
  --blue-light: #3d4a9e;
  --gold: #B6905A;
  --gold-dark: #A37B40;
  --beige: #EBEBE6;
  --dark: #2B2B2B;
  --white: #FFFFFF;
  --gray-100: #f8f8f6;
  --gray-200: #e8e8e3;
  --gray-400: #999;
  --gray-600: #607795;

  --font-heading: 'Martel Sans', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --nav-height: 64px;
  --topbar-height: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark);
  background-color: var(--gray-100);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hidden { display: none !important; }

/* ============================================
   SPLASH SCREEN
   ============================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  animation: pulse 2s ease-in-out infinite;
}

.splash-text {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 8px;
  margin-top: 16px;
}

.splash-loader {
  width: 40px;
  height: 3px;
  background-color: rgba(182, 144, 90, 0.2);
  margin-top: 32px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.splash-loader::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 60%;
  background-color: var(--gold);
  border-radius: 2px;
  animation: loader 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes loader {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ============================================
   AUTH WALL
   ============================================ */
.auth-wall {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #303266;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.auth-wall.fade-out {
  opacity: 0;
  visibility: hidden;
}

.auth-wall-content {
  text-align: center;
  padding: 2rem;
  max-width: 340px;
  width: 100%;
}

.auth-wall-logo {
  width: 286px;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.2rem;
  border-radius: 0;
  mix-blend-mode: lighten;
}

.auth-wall-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-wall-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.auth-wall-btn {
  width: 100%;
  margin-bottom: 0.7rem;
}

.auth-wall .btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

/* ============================================
   APP SHELL
   ============================================ */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP BAR */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.topbar-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--blue);
  letter-spacing: 2px;
}

.topbar-year {
  color: var(--gold);
  font-weight: 600;
}

.notif-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.notif-btn:active {
  background-color: var(--beige);
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #e53e3e;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* NOTIFICATION BANNER */
.notif-banner {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  background-color: var(--gold);
  color: var(--white);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 99;
  font-size: 13px;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.notif-banner-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.notif-banner-text {
  flex: 1;
}

.notif-banner-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* MAIN CONTENT */
.main {
  flex: 1;
  margin-top: var(--topbar-height);
  margin-bottom: var(--nav-height);
  padding-bottom: var(--safe-bottom);
}

.page {
  display: none;
  padding: 0 16px 24px;
  animation: fadeIn 0.25s ease;
}

.page.active {
  display: block;
}

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

.page-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  padding: 20px 0 16px;
}

/* BOTTOM NAVIGATION */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  padding-bottom: var(--safe-bottom);
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active {
  color: var(--blue);
}

.nav-item.active svg {
  stroke: var(--blue);
}

/* ============================================
   HOME PAGE
   ============================================ */
.hero {
  background: #323B7C;
  margin: 0 -16px;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  width: 100%;
  max-width: 352px;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 8px;
  font-weight: 300;
}

.hero-date {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 20px;
  background-color: rgba(182,144,90,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 20px;
}

.countdown {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
}

/* Quick Links */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: -28px 0 24px;
  position: relative;
  z-index: 1;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 8px 16px;
  background-color: var(--white);
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--dark);
  transition: transform 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.quick-link:active {
  transform: scale(0.96);
}

.quick-link-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

/* Section Card */
.section-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.section-card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--beige);
}

.next-session-content .session-time {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
}

.next-session-content .session-title-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  margin-top: 4px;
}

.next-session-content .session-meta {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 4px;
}

.muted {
  color: var(--gray-400);
  font-size: 13px;
}

/* My Sessions (Home) */
#mySessionsContent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.my-session-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  border-left: 3px solid var(--gray-400);
}

.my-session-item.now {
  border-left-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.my-session-time {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  min-width: 70px;
}

.my-session-info {
  flex: 1;
  min-width: 0;
}

.my-session-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-session-meta {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 2px;
}

.my-session-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  flex-shrink: 0;
}

.my-session-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

.my-session-badge.speaker {
  background: var(--gold);
  color: var(--blue);
}

.my-session-badge.reminder {
  font-size: 0.8rem;
}

.my-session-reminder-btn {
  background: rgba(182, 144, 90, 0.12);
  border: none;
  border-radius: 999px;
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}

.my-session-reminder-btn:active {
  transform: scale(0.9);
}

.now-badge.small {
  font-size: 0.65rem;
  padding: 2px 6px;
}

/* ============================================
   AGENDA PAGE
   ============================================ */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.tab {
  padding: 8px 20px;
  border: 2px solid var(--gray-200);
  background-color: var(--white);
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab.active {
  border-color: var(--blue);
  background-color: var(--blue);
  color: var(--white);
}

.filters {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.filter-chip {
  padding: 6px 14px;
  border: 1px solid var(--gray-200);
  background-color: var(--white);
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.filter-chip.active {
  border-color: var(--gold);
  background-color: var(--gold);
  color: var(--white);
}

/* Session Cards */
.session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.session-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid var(--gray-200);
  transition: border-color 0.2s;
}

.session-card[data-area="mama"] { border-left-color: #e8699a; }
.session-card[data-area="pulmon"] { border-left-color: #5ba3e6; }
.session-card[data-area="prostata"] { border-left-color: #6bc5a0; }
.session-card[data-area="neuro"] { border-left-color: #c084fc; }

.session-card.now {
  background-color: #fefce8;
  border-left-width: 4px;
}

.session-time-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.session-time-text {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}

.session-area-tag {
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.session-area-tag[data-area="mama"] { background-color: #fce4ec; color: #c2185b; }
.session-area-tag[data-area="pulmon"] { background-color: #e3f2fd; color: #1565c0; }
.session-area-tag[data-area="prostata"] { background-color: #e8f5e9; color: #2e7d32; }
.session-area-tag[data-area="neuro"] { background-color: #f3e5f5; color: #7b1fa2; }

.session-title-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
}

.session-detail {
  font-size: 13px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 4px;
}

.session-detail + .session-detail {
  margin-top: 2px;
}

.now-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background-color: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  animation: blink 1.5s ease-in-out infinite;
}

.now-dot {
  width: 6px;
  height: 6px;
  background-color: white;
  border-radius: 50%;
}

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

.session-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-400);
  font-size: 14px;
}

/* ============================================
   SPEAKERS PAGE
   ============================================ */
.speakers-search-wrap {
  padding: 0 0 0.9rem;
}

.speakers-search {
  width: 100%;
}

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.speaker-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.speaker-card:active {
  transform: scale(0.97);
}

.speaker-photo-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  flex-shrink: 0;
}

.speaker-photo-wrap.detail {
  width: 96px;
  height: 96px;
  margin-bottom: 0.75rem;
}

.speaker-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background-color: var(--beige);
  border: 3px solid var(--beige);
}

/* Gold halo — registered in the app (has profile) */
.speaker-photo-wrap--registered::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(182, 144, 90, 0.75);
  pointer-events: none;
}

.speaker-photo--registered {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(182, 144, 90, 0.22);
}

/* Green halo — registered AND checked in at venue via QR */
.speaker-photo-wrap--arrival::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(34, 139, 34, 0.75);
  pointer-events: none;
}

.speaker-photo--arrival {
  border-color: #22883a;
  box-shadow: 0 0 0 1px rgba(34, 136, 58, 0.22);
}

.speaker-flag-badge {
  position: absolute;
  bottom: -2px;
  right: -4px;
  font-size: 1.3rem;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  pointer-events: none;
}

.speaker-flag-badge.detail {
  font-size: 1.6rem;
  bottom: 0;
  right: -6px;
}

.speaker-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
}

/* Gold initials — registered in app */
.speaker-initials--registered {
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(182, 144, 90, 0.22);
}

/* Green initials — checked in at venue */
.speaker-initials--arrival {
  border: 3px solid #22883a;
  box-shadow: 0 0 0 1px rgba(34, 136, 58, 0.22);
}

.speaker-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.speaker-specialty {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.speaker-institution {
  font-size: 11px;
  color: var(--gray-400);
}

.speaker-area-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.speaker-area-dot[data-area="mama"] { background-color: #e8699a; }
.speaker-area-dot[data-area="pulmon"] { background-color: #5ba3e6; }
.speaker-area-dot[data-area="prostata"] { background-color: #6bc5a0; }
.speaker-area-dot[data-area="neuro"] { background-color: #c084fc; }

/* Speaker expanded bio */
.speaker-bio {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--beige);
  font-size: 12px;
  color: var(--gray-600);
  text-align: left;
  line-height: 1.6;
}

.speaker-card.expanded .speaker-bio {
  display: block;
}

/* ============================================
   LOCATIONS PAGE
   ============================================ */
.locations-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.location-map {
  width: 100%;
  height: 180px;
  background-color: var(--beige);
  object-fit: cover;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-info {
  padding: 16px;
}

.location-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.location-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.location-address {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 12px;
  line-height: 1.5;
}

.location-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.location-link:active {
  background-color: var(--blue-light);
}

/* ============================================
   NOTIFICATIONS PAGE
   ============================================ */
.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-left: 4px solid var(--gray-200);
}

.notification-card.priority-high {
  border-left-color: #ef4444;
}

.notification-card.priority-normal {
  border-left-color: var(--gold);
}

.notification-card.priority-low {
  border-left-color: var(--gray-200);
}

.notification-meta {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.notification-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.notification-message {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

.notifications-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}

.notifications-empty svg {
  color: var(--gray-200);
  margin-bottom: 12px;
}

/* ============================================
   REMINDER BELL (session cards)
   ============================================ */
.session-card {
  position: relative;
}

.reminder-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: var(--gray-400);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}

.reminder-btn:active {
  transform: scale(0.9);
}

.reminder-btn.active {
  color: var(--gold);
  background-color: rgba(182, 144, 90, 0.12);
}

/* FOLLOW BUTTON (speaker cards) */
.speaker-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 5px 14px;
  border: 1.5px solid var(--gray-200);
  background-color: var(--white);
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.speaker-follow-btn:active {
  transform: scale(0.95);
}

.speaker-follow-btn.active {
  border-color: var(--gold);
  background-color: rgba(182, 144, 90, 0.1);
  color: var(--gold-dark);
}

.speaker-follow-btn svg {
  flex-shrink: 0;
}

/* TOAST SNACKBAR */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: var(--dark);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ARRIVAL CARD + QR HANDSHAKE */
.arrival-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(182,144,90,0.12) 0%, rgba(48,58,127,0.08) 100%);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 16px 14px;
  margin-bottom: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  animation: arrivalCardGlow 2.5s ease-in-out infinite;
}

.arrival-card:active {
  transform: scale(0.98);
}

.arrival-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold) 0%, #8d6a34 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrival-card-content {
  flex: 1;
  min-width: 0;
}

.arrival-card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 4px 0;
}

.arrival-card-text {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  margin: 0;
  line-height: 1.4;
}

.arrival-card-arrow {
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.7;
}

@keyframes arrivalCardGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182,144,90,0); }
  50% { box-shadow: 0 0 12px 2px rgba(182,144,90,0.2); }
}

.arrival-confirmed-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(34, 136, 58, 0.08);
  border: 1.5px solid rgba(34, 136, 58, 0.35);
  color: #176f47;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.modal-card--arrival {
  padding-top: 34px;
}

.arrival-cert-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(182, 144, 90, 0.14);
  color: var(--gold-dark);
  font-size: 13px;
  line-height: 1.45;
}

.arrival-status {
  margin-top: 12px;
  border-radius: 10px;
  border: 1px solid rgba(48, 58, 127, 0.18);
  background: #f6f8fb;
  padding: 10px 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.arrival-status.info {
  border-color: rgba(48, 58, 127, 0.26);
}

.arrival-status.success {
  border-color: rgba(23, 133, 76, 0.35);
  background: rgba(23, 133, 76, 0.08);
  color: #176f47;
}

.arrival-status.error {
  border-color: rgba(184, 52, 52, 0.35);
  background: rgba(184, 52, 52, 0.08);
  color: #963b3b;
}

.arrival-scanner {
  margin-top: 12px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #101012;
  border: 1px solid rgba(48, 58, 127, 0.22);
}

.arrival-scanner-video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #101012;
}

.arrival-scanner-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68%;
  max-width: 270px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  border: 2px solid rgba(182, 144, 90, 0.88);
  box-shadow: inset 0 0 0 5000px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.arrival-actions {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* ============================================
   DESKTOP (tablets and up)
   ============================================ */
@media (min-width: 768px) {
  .main {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    border-radius: 0 0 24px 24px;
    margin: 0 -16px;
  }

  .quick-links {
    gap: 16px;
  }

  .speakers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .session-card {
    padding: 20px;
  }
}

@media (min-width: 1024px) {
  .main {
    max-width: 860px;
  }

  .speakers-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .bottom-nav {
    max-width: 860px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }
}

/* ============================================
   AUTH BUTTON (topbar)
   ============================================ */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.auth-btn:active {
  background-color: var(--blue-light);
}

.auth-btn.logged-in {
  background-color: var(--gold);
}

/* ============================================
   MODAL SYSTEM
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background-color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop--dark {
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  padding: 16px;
}

@media (min-width: 600px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.modal-card {
  background-color: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-card--tall {
  max-height: 95vh;
}

@media (min-width: 600px) {
  .modal-card {
    border-radius: 20px;
    padding: 32px 28px;
    animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes scaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gray-200);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-logo {
  text-align: center;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Modal tab switcher */
.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 20px;
}

.modal-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.modal-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  background-color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--blue);
}

.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  appearance: none;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-error {
  color: #e53e3e;
  font-size: 12px;
  padding: 8px 12px;
  background-color: #fff5f5;
  border-radius: 8px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background-color: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  margin-top: 4px;
}

.btn-primary:active {
  transform: scale(0.98);
  background-color: var(--blue-light);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-link {
  background: none;
  border: none;
  color: #889;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0 0;
  width: 100%;
  text-align: center;
  transition: color 0.2s;
}
.btn-link:hover {
  color: var(--gold);
}
.btn-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 11px;
  background-color: transparent;
  color: var(--gray-400);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 10px;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:active {
  background-color: var(--gray-100);
}

/* ============================================
   PROFILE PHOTO UPLOAD
   ============================================ */
.profile-photo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.profile-photo-ring {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  cursor: pointer;
  background-color: var(--beige);
  border: 3px solid var(--gold);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo-ring.profile-ring--arrival {
  border-color: #22883a;
}

.profile-photo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-photo-ring .speaker-initials {
  width: 100%;
  height: 100%;
  margin: 0;
  font-size: 28px;
}

.profile-photo-edit-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 30px;
  height: 30px;
  background-color: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  z-index: 1;
}

/* ============================================
   PHOTO CROP UI
   ============================================ */
.crop-container {
  width: 100%;
  max-width: 420px;
  background-color: #111;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background-color: #1a1a1a;
}

.crop-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.crop-cancel {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-body);
}

.crop-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #000;
  touch-action: none;
}

.crop-image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.crop-image-wrap:active { cursor: grabbing; }

.crop-image-wrap img {
  display: block;
  max-width: none;
  pointer-events: none;
}

.crop-circle-mask {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at center,
    transparent 42%,
    rgba(0, 0, 0, 0.6) 42%
  );
}

.crop-guide-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.crop-controls {
  padding: 16px 20px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.crop-zoom-label {
  color: var(--gray-400);
  font-size: 12px;
  white-space: nowrap;
}

.crop-zoom-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--gray-600);
  outline: none;
}

.crop-zoom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
}

.crop-actions {
  padding: 8px 20px 20px;
}

/* ============================================
   SPEAKER CARD EDIT BUTTON
   ============================================ */
.speaker-edit-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: var(--gold);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.speaker-edit-btn:active {
  transform: scale(0.9);
}

.speaker-card {
  position: relative;
}

/* --- Profile: Events & Notifications --- */
.profile-section-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 1.25rem 0;
}

.profile-events-section {
  margin-top: 0.5rem;
}

.profile-events-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.profile-events-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.notif-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notif-toggle-label {
  color: #aab;
  font-size: 0.8rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #444;
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gold);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.profile-events-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 250px;
  overflow-y: auto;
}

.profile-events-empty {
  color: #667;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem 0;
  margin: 0;
}

.profile-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
}

.profile-event-info {
  flex: 1;
  min-width: 0;
}

.profile-event-title {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-event-meta {
  color: #889;
  font-size: 0.75rem;
  margin-top: 2px;
}

.profile-event-remove {
  background: none;
  border: none;
  color: #f66;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.profile-event-remove:hover {
  background: rgba(255,80,80,0.15);
}

/* --- Phone input with prefix --- */
.phone-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
}

.phone-prefix {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 0.6rem 0.6rem;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  min-width: 52px;
  text-align: center;
}

.phone-input {
  border-radius: 0 8px 8px 0 !important;
  flex: 1;
}

/* --- Visibility toggles --- */
.profile-visibility-title {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.visibility-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.75rem;
}

.visibility-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #aab;
  font-size: 0.8rem;
  cursor: pointer;
}

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

/* --- Speaker Detail Modal --- */
.speaker-detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1rem;
}

.speaker-detail-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
}

.speaker-detail-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
}

.speaker-detail-name {
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.speaker-detail-area {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.speaker-detail-fields {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.speaker-detail-field {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.speaker-detail-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.speaker-detail-label {
  color: var(--gray-600);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.speaker-detail-value {
  color: var(--dark);
  font-size: 0.9rem;
  line-height: 1.4;
}

.speaker-detail-bio {
  color: var(--gray-600);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
}

/* --- Session Detail Modal --- */
.session-detail-header {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--gray-200);
}

.session-detail-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 0.4rem;
  line-height: 1.35;
}

.session-detail-meta {
  font-size: 0.86rem;
  color: var(--gray-600);
  margin-top: 0.2rem;
}

.session-detail-description {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.session-detail-section + .session-detail-section {
  margin-top: 1rem;
}

.session-detail-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
}

.session-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.session-person-chip {
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--dark);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.8rem;
  line-height: 1.2;
  font-family: var(--font-body);
}

button.session-person-chip {
  cursor: pointer;
}

.session-person-chip.speaker {
  border-color: rgba(48, 58, 127, 0.35);
  color: var(--blue);
  font-weight: 500;
}

.session-person-chip.moderator {
  border-color: rgba(182, 144, 90, 0.4);
  background-color: rgba(182, 144, 90, 0.12);
  color: var(--gold-dark);
  font-weight: 600;
}

.session-detail-empty {
  margin: 0;
  font-size: 0.84rem;
  color: var(--gray-400);
}

/* --- Install Banner --- */
/* iOS fullscreen install modal */
.ios-install-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ios-install-modal-card {
  background: linear-gradient(160deg, #1a1f4e, #2a3070);
  border: 2px solid var(--gold);
  border-radius: 24px;
  padding: 32px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  animation: slideUpModal 0.4s ease-out;
}

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

.ios-install-modal-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 16px;
}

.ios-install-modal-card h2 {
  color: #fff;
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.ios-install-modal-sub {
  color: #aab;
  font-size: 0.9rem;
  margin: 0 0 24px;
  line-height: 1.4;
}

.ios-install-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.ios-install-step {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.ios-install-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--blue);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-install-step-text {
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
}

.ios-install-hint {
  color: #8899bb;
  font-size: 0.8rem;
}

.ios-install-modal-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #8899bb;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
}

.ios-install-modal-btn:active {
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   ROOM CHAT
   ============================================ */

.modal-card--chat {
  background-color: #1e2035;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

/* --- Header --- */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.chat-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(182, 144, 90, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-room-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-align: left;
}

.chat-room-sub {
  font-size: 11px;
  color: #667;
  display: block;
  margin-top: 1px;
}

/* --- Messages --- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-loading,
.chat-empty {
  text-align: center;
  color: #667;
  font-size: 13px;
  padding: 32px 16px;
  margin: auto;
}

/* --- Bubbles --- */
.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.chat-bubble-wrap.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble-wrap.theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble-wrap.mine .chat-bubble {
  background-color: var(--blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble-wrap.theirs .chat-bubble {
  background-color: #2c3060;
  color: #dde;
  border-bottom-left-radius: 4px;
}

.chat-bubble-name {
  font-size: 11px;
  margin-bottom: 4px;
}

.chat-username {
  color: var(--gold);
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: default;
}

.chat-username--speaker {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(182,144,90,0.4);
  text-underline-offset: 2px;
}

.chat-bubble-body {
  color: inherit;
}

.chat-bubble-time {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  margin-top: 4px;
  text-align: right;
}

.chat-mention-highlight {
  color: var(--gold);
  font-weight: 600;
}

/* --- Compose --- */
.chat-compose {
  flex-shrink: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.08);
  background-color: #181a30;
  position: relative;
}

.chat-auth-wall {
  padding: 16px;
  text-align: center;
  color: #889;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.chat-compose-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 9px 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  resize: none;
  outline: none;
  overflow: hidden;
  min-height: 38px;
  max-height: 100px;
  transition: border-color 0.2s;
}

.chat-input::placeholder {
  color: #556;
}

.chat-input:focus {
  border-color: rgba(182,144,90,0.5);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--blue);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.chat-send-btn:active {
  transform: scale(0.92);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-char-count {
  font-size: 10px;
  color: #445;
  text-align: right;
  margin-top: 4px;
  padding-right: 4px;
}

.chat-char-warn {
  color: #e59e3a;
}

/* --- @Mention Dropdown --- */
.chat-mention-dropdown {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 12px;
  right: 60px;
  background-color: #252845;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  max-height: 220px;
  overflow-y: auto;
}

.chat-mention-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: none;
  border: none;
  color: #dde;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background-color 0.1s;
}

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

.chat-mention-item--active,
.chat-mention-item:active {
  background-color: rgba(182,144,90,0.15);
  color: var(--gold);
}

.chat-mention-item-sub {
  font-size: 11px;
  color: #667;
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 8px;
}

/* --- Session Card Chat Badge --- */
.chat-room-badge {
  position: absolute;
  bottom: 12px;
  right: 48px;
  background-color: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Chat icon on session cards */
.chat-open-btn {
  position: absolute;
  top: 12px;
  right: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: var(--gray-400);
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}

.chat-open-btn:active {
  transform: scale(0.9);
  color: var(--blue);
}

/* ============================================
   HOTEL STAY TOGGLE
   ============================================ */
.profile-section-subtitle {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.hotel-toggle-wrap {
  display: flex;
  gap: 0.5rem;
}

.hotel-toggle-btn {
  flex: 1;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: #889;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.hotel-toggle-btn.active {
  background: var(--gold);
  color: var(--blue);
  border-color: var(--gold);
}

.form-hint {
  display: block;
  color: #889;
  font-size: 0.75rem;
  margin-top: 4px;
  font-style: italic;
}

/* ============================================
   ATTENDEES PAGE
   ============================================ */
.attendees-search-wrap {
  padding: 0 0 1rem;
}

.attendees-search {
  width: 100%;
}

.attendees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.attendee-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.2rem 0.75rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.attendee-card:active {
  transform: scale(0.97);
}

.attendee-photo-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.6rem;
  position: relative;
}

.attendee-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.attendee-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}

.attendee-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
  line-height: 1.3;
}

.attendee-specialty {
  font-size: 0.72rem;
  color: var(--gray-600);
}

.attendee-institution {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* ============================================
   PUBLIC PROFILE (Attendee detail)
   ============================================ */
.public-profile-hotel {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
}

.public-profile-hotel-badge {
  background: rgba(182,144,90,0.15);
  color: var(--gold-dark);
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.public-profile-hotel-room {
  color: var(--gray-600);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  padding-left: 0.25rem;
}

.public-profile-events {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
}

.public-profile-events-title {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.public-profile-event-item {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
}

.public-profile-event-title {
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 500;
}

.public-profile-event-meta {
  color: var(--gray-600);
  font-size: 0.75rem;
  margin-top: 2px;
}
