/* ODYL Health - Phase 1 Prototype */
/* Design reference: Figma (mobile-first, peach → coral gradient, warm icon accents) */

:root {
  --gradient-top: #ffb380;
  --gradient-mid: #ff9a7a;
  --gradient-bottom: #ff6b8b;
  --coral: #ff6b8b;
  --peach: #ffb380;
  --amber-light: #ffb347;
  --amber-deep: #e0783a;
  --icon-stroke: #c45a1a;
  --card-bg: #ffffff;
  --card-shadow: 0 8px 32px rgba(180, 60, 80, 0.12);
  --rewards-pink: #ffd6de;
  --rewards-pink-border: rgba(255, 107, 139, 0.35);
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-medium: #555;
  --text-light: #888;
  --btn-green: #7ec89b;
  --btn-purple: #b491d1;
  --modal-pink: #f9c6d0;
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: #0d0d0d;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

@media (min-width: 480px) {
  body {
    padding: 20px;
  }
}

/* App shell: full bleed on phones; framed on wider viewports */
.phone-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--gradient-top) 0%, var(--gradient-mid) 45%, var(--gradient-bottom) 100%);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  box-shadow: none;
}

@media (min-width: 480px) {
  .phone-frame {
    display: flex;
    flex-direction: column;
    width: 390px;
    min-height: 844px;
    border-radius: 44px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 2px #2a2a2a;
    max-width: 390px;
  }
}

/* Status bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 0;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
}

.status-bar-icons {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 8px;
}

.app-header .logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-dark);
  flex: 1;
  text-align: center;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.header-icon-btn .odyl-icon-svg {
  display: block;
}

.header-gear-wrap {
  position: relative;
  flex-shrink: 0;
}

.header-gear-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 11rem;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  padding: 6px 0;
  z-index: 200;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.header-gear-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  cursor: pointer;
  text-decoration: none;
}

a.header-gear-item:hover,
button.header-gear-item:hover {
  background: rgba(255, 107, 139, 0.12);
}

.login-session-banner {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.login-session-banner p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.4;
}

.login-session-banner .btn-login-switch {
  width: 100%;
}

/* Welcome / page title pills */
.welcome-banner,
.page-title {
  margin: 8px 20px;
  background: var(--card-bg);
  border-radius: 999px;
  padding: 12px 20px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.welcome-banner h2,
.page-title h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Dashboard white card */
.dashboard-card {
  margin: 12px 16px 0;
  background: var(--card-bg);
  border-radius: 28px;
  padding: 24px 16px 20px;
  box-shadow: var(--card-shadow);
}

.carousel-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.carousel-pages {
  display: flex;
  width: 200%;
  transition: transform 0.35s ease;
}

.carousel-pages[data-page='1'] {
  transform: translateX(-50%);
}

.carousel-panel {
  flex: 0 0 50%;
  width: 50%;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
}

.feature-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.feature-tile:hover {
  transform: scale(1.03);
}

.feature-tile:active {
  transform: scale(0.98);
}

.feature-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon .odyl-icon-svg {
  width: 56px;
  height: 56px;
}

.feature-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.25;
}

/* Rewards bar — Figma: pink panel, dark text, medal + arrow */
.rewards-bar {
  margin: 16px 20px 8px;
  background: var(--rewards-pink);
  border: 1px solid var(--rewards-pink-border);
  border-radius: 20px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(255, 107, 139, 0.15);
}

.rewards-bar:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(255, 107, 139, 0.22);
}

.rewards-bar-left h3 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.rewards-bar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.rewards-points {
  font-family: var(--font-accent);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.rewards-medal-wrap {
  display: flex;
  align-items: center;
}

.rewards-medal-wrap .odyl-icon-svg {
  width: 36px;
  height: 36px;
}

.rewards-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Page dots */
.page-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 8px;
}

.page-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
}

.page-dot.active {
  background: var(--amber-deep);
  width: 22px;
  border-radius: 4px;
}

/* ================================
   CALENDAR PAGE
   ================================ */

.calendar-container {
  margin: 16px 20px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.calendar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.calendar-nav button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-dark);
  padding: 4px 8px;
}

.calendar-nav h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar-grid .day-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-medium);
  padding: 6px 0;
}

.calendar-grid .day {
  font-size: 13px;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-dark);
  transition: background 0.15s ease;
}

.calendar-grid .day:hover {
  background: rgba(255, 107, 139, 0.12);
}

.calendar-grid .day.today {
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.calendar-grid .day.other-month {
  color: var(--text-light);
}

.calendar-grid .day.has-event {
  position: relative;
}

.calendar-grid .day.has-event::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 20px;
}

.action-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 24px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
  text-align: center;
  text-decoration: none;
}

.action-btn:hover {
  opacity: 0.92;
  transform: scale(1.02);
}

.action-btn:active {
  transform: scale(0.98);
}

.action-btn.coral {
  background: var(--coral);
  color: var(--white);
}

.action-btn.purple {
  background: var(--btn-purple);
  color: var(--white);
}

.action-btn.green {
  background: var(--btn-green);
  color: var(--white);
}

.action-btn.outline-dark {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  border: 2px solid rgba(26, 26, 26, 0.15);
}

/* Serif CTA (Test Results intro) */
.cta-pill-serif {
  display: inline-block;
  margin: 24px auto;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-deep));
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(224, 120, 58, 0.35);
}

.results-intro {
  text-align: center;
  padding: 16px 20px 8px;
}

.results-floating-actions {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 350px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 50;
}

.results-floating-actions a {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: var(--card-shadow);
  text-decoration: none;
}

.results-floating-actions .odyl-icon-svg {
  width: 28px;
  height: 28px;
}

.results-scroll-area {
  padding-bottom: 120px;
}

/* ================================
   ACTIVITY LOG MODAL
   ================================ */

.modal-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--modal-pink);
  border-radius: 20px;
  padding: 24px;
  margin: 40px 20px;
  width: calc(100% - 40px);
  position: relative;
  max-height: 80%;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: #e05555;
  border: none;
  color: var(--white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-date {
  text-align: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 16px;
}

.modal-section h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.modal-section {
  margin-bottom: 16px;
}

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

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dark);
}

.checkbox-item input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--coral);
  cursor: pointer;
}

.checkbox-item input[type='text'] {
  border: none;
  border-bottom: 2px solid var(--text-dark);
  background: transparent;
  padding: 2px 4px;
  font-size: 14px;
  width: 120px;
  font-family: var(--font-body);
}

.modal-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.modal-field input {
  border: none;
  border-bottom: 2px solid var(--text-dark);
  background: transparent;
  padding: 2px 4px;
  font-size: 14px;
  flex: 1;
  font-family: var(--font-body);
}

.submit-btn {
  display: block;
  margin: 0 auto;
  padding: 12px 32px;
  background: var(--btn-green);
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  cursor: pointer;
}

/* ================================
   RESULTS PAGE
   ================================ */

.results-container {
  margin: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.result-info h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.result-info p {
  font-size: 12px;
  color: var(--text-medium);
}

.result-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-badge.positive {
  background: #ffe0e0;
  color: #c0392b;
}

.result-badge.negative {
  background: #d5f5e3;
  color: #27ae60;
}

.result-badge.indeterminate {
  background: #fef3cd;
  color: #b8860b;
}

.results-actions {
  margin: 8px 20px 24px;
  display: flex;
  gap: 12px;
}

.results-actions .action-btn {
  flex: 1;
  font-size: 11px;
  padding: 12px 10px;
}

/* ================================
   PERSONA LOGIN
   ================================ */

.login-container {
  margin: 16px 20px;
  padding: 24px 20px;
}

.login-container h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 8px;
}

.login-container p {
  font-size: 13px;
  color: var(--text-medium);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.persona-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(480px, 70vh);
  overflow-y: auto;
  padding-right: 4px;
}

.persona-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.persona-card:hover {
  transform: scale(1.02);
  background: var(--white);
}

.persona-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}

.persona-details {
  flex: 1;
}

.persona-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.persona-meta {
  font-size: 12px;
  color: var(--text-medium);
}

.persona-arrow {
  color: var(--text-light);
  font-size: 18px;
}

/* ================================
   NAV BAR (bottom)
   ================================ */

/*
 * Bottom nav is injected inside #odyl-nav-mount. That wrapper is the direct
 * flex child of .phone-frame — margin-top: auto must live here, not on .bottom-nav,
 * or the bar sits mid-frame with empty space below.
 */
#odyl-nav-mount {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  align-self: stretch;
}

.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-shrink: 0;
  padding: 10px 0 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-dark);
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.nav-item.active {
  opacity: 1;
}

.nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.nav-item-icon .odyl-icon-svg {
  width: 26px;
  height: 26px;
}

.nav-item span:last-child {
  font-size: 10px;
  font-family: var(--font-display);
  font-weight: 600;
}

/* ================================
   SURVEY PAGE
   ================================ */

.survey-container {
  margin: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
}

.survey-question {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.survey-question h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.survey-question p {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 14px;
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.survey-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 14px;
  color: var(--text-dark);
}

.survey-option:hover {
  background: rgba(255, 255, 255, 0.9);
}

.survey-option.selected {
  background: var(--coral);
  color: var(--white);
}

.survey-option input[type='radio'] {
  display: none;
}

.survey-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-light);
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.survey-option.selected .survey-radio {
  border-color: var(--white);
  background: var(--white);
  box-shadow: inset 0 0 0 4px var(--coral);
}

.survey-feedback {
  margin-top: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.5;
  display: none;
}

.survey-feedback.visible {
  display: block;
}

/* ================================
   EDUCATION, LOCATOR, SUPPORT, REWARDS, PROFILE, LUMI
   ================================ */

.content-stack {
  margin: 12px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--card-shadow);
}

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

.info-card p,
.info-card li {
  font-size: 13px;
  color: var(--text-medium);
  line-height: 1.5;
}

.info-card ul {
  margin-left: 18px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  margin-bottom: 6px;
}

.locator-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

a.locator-item--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 107, 90, 0.15);
}

a.locator-item--link:active {
  opacity: 0.92;
}

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

.locator-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-dark);
}

.locator-meta {
  font-size: 12px;
  color: var(--text-medium);
  margin-top: 4px;
}

.support-hotline {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--coral);
  text-decoration: none;
}

.rewards-hero {
  text-align: center;
  padding: 20px;
}

.rewards-hero .big-points {
  font-family: var(--font-accent);
  font-size: 48px;
  font-weight: 600;
  color: var(--text-dark);
}

.rewards-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rewards-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
}

.rewards-list li span:last-child {
  font-weight: 700;
  color: var(--amber-deep);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.profile-avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.profile-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 13px;
}

.profile-dl dt {
  color: var(--text-light);
}

.profile-dl dd {
  color: var(--text-dark);
  font-weight: 600;
}

/* LUMI chat */
.lumi-chat {
  margin: 12px 16px 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--amber-light), var(--amber-deep));
  color: var(--text-dark);
  border-bottom-right-radius: 4px;
}

.lumi-input-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding: 12px 0 0;
}

.lumi-input-row input {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--card-shadow);
}

.lumi-send {
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  background: var(--coral);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lumi-send .odyl-icon-svg {
  width: 22px;
  height: 22px;
}

.lumi-disclaimer {
  font-size: 11px;
  color: rgba(26, 26, 26, 0.65);
  text-align: center;
  margin: 8px 20px 0;
  line-height: 1.4;
}

/* Lock / PIN screen */
.pin-lock-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.pin-lock-overlay {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px 28px;
  width: 100%;
  min-height: 0;
}

.pin-lock-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dark);
  margin-bottom: 28px;
}

.pin-lock-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  margin: 0 0 8px;
}

.pin-lock-sub {
  font-size: 13px;
  color: var(--text-medium);
  text-align: center;
  margin: 0 0 20px;
  line-height: 1.45;
  max-width: 280px;
}

.pin-dots {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 6px;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(26, 26, 26, 0.3);
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pin-dot.filled {
  background: linear-gradient(145deg, var(--amber-light), var(--amber-deep));
  border-color: rgba(224, 120, 58, 0.5);
}

@keyframes pin-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.pin-dots.pin-error-shake {
  animation: pin-shake 0.38s ease;
}

.pin-error {
  min-height: 22px;
  font-size: 13px;
  color: #c0392b;
  text-align: center;
  margin: 0 0 12px;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 288px;
  margin-top: auto;
  padding-top: 8px;
}

.pin-key {
  aspect-ratio: 1;
  max-height: 72px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(180, 60, 80, 0.14);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.pin-key:hover {
  box-shadow: 0 6px 20px rgba(180, 60, 80, 0.2);
}

.pin-key:active {
  transform: scale(0.96);
}

.pin-key--action {
  font-size: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 214, 200, 0.92));
}

.pin-key-spacer {
  visibility: hidden;
  pointer-events: none;
}

.pin-lock-disclaimer {
  margin-top: 20px;
  font-size: 11px;
  color: rgba(26, 26, 26, 0.5);
  text-align: center;
  line-height: 1.4;
  max-width: 260px;
}

/* ================================
   UTILITIES
   ================================ */

.visit-header {
  text-align: center;
  margin: 0 20px 8px;
}

.visit-header h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.visit-header p {
  font-size: 12px;
  color: var(--text-medium);
}

.privacy-note {
  text-align: center;
  font-size: 11px;
  color: rgba(45, 45, 45, 0.55);
  margin: 0 20px;
  padding: 4px 0;
}

.hidden-until-reveal {
  display: none;
}

.hidden-until-reveal.visible {
  display: block;
}
