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

:root {
  --page-bg: #F5F7FB;
  --app-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-border: #f0f0f0;
  --text-color: #1A2C3E;
  --muted-color: #64748b;
  --button-bg: #F0F2F5;
  --button-text: #1F2A3E;
  --primary-color: #1E3A5F;
  --primary-text: #FFFFFF;
  --input-bg: #FFFFFF;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--page-bg);
  color: var(--text-color);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* main container - mobile first */
.app-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--app-bg);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.03);
  position: relative;
  /* Add padding-top to push content below fixed header and nav */
  padding-top: 130px;
}

/* tablet & desktop scaling */
@media (min-width: 768px) {
  .app-container {
    max-width: 800px;
    border-radius: 32px;
    margin: 20px auto;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    padding-top: 80px;
  }

  body {
    padding: 20px;
    background: #EFF2F9;
  }
}

@media (min-width: 1024px) {
  .app-container {
    max-width: 1100px;
  }
}

/* ===== reusable components ===== */
.card {
  background: var(--card-bg);
  border-radius: 24px;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.03);
  padding: 1.25rem;
  transition: all 0.2s ease;
  border: 1px solid var(--card-border);
}

.card-soft {
  background: var(--card-bg);
  border-radius: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn {
  border: none;
  background: var(--button-bg);
  padding: 12px 20px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
  color: var(--button-text);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--primary-text);
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.15);
}

.btn-primary:hover {
  background: #0F2B48;
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--card-border);
}

/* top header — single unified bar */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #E86125; /* entire header is orange — one connected bar */
  display: flex;
  align-items: center;
  z-index: 1000;
}

.hamburger-btn {
  width: 56px;
  height: 100%;
  border: none;
  background: transparent; /* inherits orange from .top-header */
  font-size: 1.4rem;
  cursor: pointer;
  color: #ffffff; /* white icon on orange bg */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* NO border-right — no divider */
}

.header-banner {
  flex: 1;
  height: 100%;
  background: transparent; /* orange comes from .top-header */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0 10px;
  text-align: center;
  font-weight: 500;
}

/* navigation bar (top nav) */
.top-nav {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--app-bg);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-around;
  padding: 12px 16px;
  max-width: 500px;
  margin: 0 auto;
  z-index: 999;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .top-nav {
    max-width: 800px;
  }
}

@media (min-width: 1024px) {
  .top-nav {
    max-width: 1100px;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: #7C8B9C;
  transition: 0.2s;
  cursor: pointer;
  font-family: inherit;
}

.nav-item.active {
  color: #1E3A5F;
  font-weight: 600;
}

/* grid utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .profile-top-grid {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: start;
  }
}

.profile-left-column {
  display: grid;
  gap: 20px;
}

.profile-summary-card,
.profile-details-card,
.chat-history-card {
  min-width: 0;
}

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

body.theme-dark {
  --page-bg: #0F172A;
  --app-bg: #111827;
  --card-bg: #1F2937;
  --card-border: #374151;
  --text-color: #F8FAFC;
  --muted-color: #94A3B8;
  --button-bg: #374151;
  --button-text: #F8FAFC;
  --primary-color: #F97316;
  --primary-text: #FFFFFF;
  --input-bg: #1F2937;
}

body.theme-orange {
  --page-bg: #FED7AA;
  --app-bg: #FFEDD5;
  --card-bg: #F97316;
  --card-border: #EA580C;
  --text-color: #FFFFFF;
  --muted-color: #FFEDD5;
  --button-bg: #EA580C;
  --button-text: #FFFFFF;
  --primary-color: #FFFFFF;
  --primary-text: #F97316;
  --input-bg: #FFFFFF;
}

body.theme-white {
  --page-bg: #F5F7FB;
  --app-bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-border: #f0f0f0;
  --button-bg: #F0F2F5;
  --button-text: #1F2A3E;
  --primary-color: #1E3A5F;
  --input-bg: #FFFFFF;
}

.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  z-index: 2000;
  padding: 20px;
  justify-content: center;
  align-items: center;
}

.app-modal-card {
  width: min(100%, 540px);
  background: var(--card-bg);
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--card-border);
  padding: 24px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted-color);
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-option {
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--card-bg);
}

.theme-option:hover,
.theme-option input:checked + div {
  transform: translateY(-1px);
}

.theme-option input:checked + div {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}

.theme-option span {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--text-color);
}

.settings-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--button-bg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-color);
}

.settings-toggle input {
  width: 18px;
  height: 18px;
}

select,
textarea,
input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: var(--input-bg);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: 0.2s;
}

select:focus,
textarea:focus,
input:focus {
  border-color: var(--primary-color);
}

/* awareness & warnings */
.warning-card {
  border-left: 4px solid #E67E22;
  background: #FFFBF5;
}

.event-card,
.news-card {
  transition: 0.2s;
  cursor: pointer;
}

/* form elements */
select,
textarea,
input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  /* 16px minimum prevents iOS auto-zoom */
  outline: none;
  transition: 0.2s;
}

select:focus,
textarea:focus,
input:focus {
  border-color: #1E3A5F;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.track-stages {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  position: relative;
}

.stage {
  text-align: center;
  flex: 1;
  font-size: 12px;
  color: #94A3B8;
  position: relative;
}

.stage.active {
  color: #1E3A5F;
  font-weight: 600;
}

/* main content area */
.page-content {
  padding: 20px;
  display: none;
  animation: fade 0.22s ease;
}

.page-content.active-page {
  display: block;
}

/* pageContent container — hidden until first render to prevent glitch */
#pageContent {
  opacity: 0;
  transition: opacity 0.2s ease;
}
#pageContent.CALLITIN-ready {
  opacity: 1;
}

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

/* ===== SKELETON LOADING ===== */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skel {
  background: linear-gradient(90deg, #e8ecf0 25%, #f5f7fa 50%, #e8ecf0 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: 10px;
  display: block;
}

body.theme-dark .skel {
  background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
  background-size: 600px 100%;
}

/* Skeleton shape helpers */
.skel-line       { height: 14px; margin-bottom: 10px; }
.skel-line.short { width: 45%; }
.skel-line.med   { width: 70%; }
.skel-line.full  { width: 100%; }
.skel-line.title { height: 22px; width: 55%; margin-bottom: 18px; }
.skel-circle     { border-radius: 50%; }
.skel-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
}
.skel-btn {
  height: 48px;
  border-radius: 60px;
  margin-top: 14px;
}

/* Font Awesome icons */
.nav-item i {
  font-size: 1.3rem;
  color: inherit;
}

.icon-em {
  font-size: 1.5rem;
  display: inline-block;
}

.icon-em i {
  color: inherit;
}

.notification-bell {
  background: #FEF3C7;
  border-radius: 50px;
  padding: 6px 12px;
}

hr {
  margin: 16px 0;
  border-color: #EDF2F7;
}

.status-chip {
  background: #EFF6FF;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
}

/* Pulse animation for recording */
@keyframes pulse-red {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.pulse {
  animation: pulse-red 1.5s infinite;
  border: 2px solid white !important;
}

/* Sidebar styling */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 300px;
  max-width: 80vw;
  height: 100vh;
  background: var(--card-bg);
  z-index: 2001;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-menu.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--card-border);
}

.sidebar-header h2 {
  margin: 0;
  color: var(--primary-color);
}

.close-sidebar-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-color);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.sidebar-item {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--card-border);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar-item:hover {
  background: var(--button-bg);
}

.sidebar-item i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.ml-auto {
  margin-left: auto;
}

/* ===== About Page Refined Aesthetics (Matching CALLITIN_about_page.html) ===== */
.CALLITIN-about { 
  font-family: 'DM Sans', sans-serif; 
  color: var(--text-color); 
  padding: 0 0 40px 0;
}

.b-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 0.5px solid var(--card-border);
  margin-bottom: 2.5rem;
}

.b-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  background: #E1F5EE; color: #0F6E56;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 1.25rem;
}

.b-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 42px; font-weight: 400; line-height: 1.15;
  margin: 0 0 1rem; color: var(--text-color);
}

.b-hero h1 em { font-style: italic; color: #1D9E75; }

.b-hero-sub {
  font-size: 17px; color: var(--muted-color);
  line-height: 1.7; max-width: 580px; margin: 0;
  font-weight: 300;
}

.b-mission {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 2.5rem;
}

@media (max-width: 600px) {
  .b-mission { grid-template-columns: 1fr; }
}

.b-mission-card {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
}

.b-mission-card.accent {
  background: #E1F5EE; border-color: #9FE1CB;
}

.b-mission-card .icon {
  font-size: 22px; color: #1D9E75; margin-bottom: 10px;
  display: block;
}

.b-mission-card.accent .icon { color: #0F6E56; }

.b-mission-card h3 {
  font-size: 15px; font-weight: 500; margin: 0 0 6px;
  color: var(--text-color);
}

.b-mission-card.accent h3 { color: #085041; }

.b-mission-card p {
  font-size: 13px; color: var(--muted-color); margin: 0; line-height: 1.6;
}

.b-mission-card.accent p { color: #0F6E56; }

.b-section-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: #1D9E75; margin: 0 0 1rem;
}

.b-features { margin-bottom: 2.5rem; }

.b-features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px;
}

.b-feat {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 20px;
  padding: 1rem 1.1rem; cursor: default;
  transition: border-color 0.2s;
}

.b-feat:hover { border-color: #5DCAA5; }

.b-feat .f-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #E1F5EE; display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}

.b-feat .f-icon i { font-size: 18px; color: #1D9E75; }

.b-feat h4 { font-size: 13px; font-weight: 500; margin: 0 0 4px; color: var(--text-color); }

.b-feat p { font-size: 12px; color: var(--muted-color); margin: 0; line-height: 1.55; }

.b-orgs { margin-bottom: 2.5rem; }

.b-orgs-strip {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem;
}

.b-org-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  background: var(--button-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 20px; padding: 5px 12px;
  color: var(--muted-color);
}

.b-org-pill i { font-size: 14px; color: #1D9E75; }

.b-how { margin-bottom: 2.5rem; }

.b-steps { display: flex; flex-direction: column; gap: 0; margin-top: 1rem; }

.b-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 1rem 0; border-bottom: 0.5px solid var(--card-border);
  background: transparent; border-radius: 0;
}

.b-step:last-child { border-bottom: none; }

.b-step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: #1D9E75; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; margin-top: 1px;
}

.b-step-body h4 { font-size: 14px; font-weight: 500; margin: 0 0 3px; color: var(--text-color); }

.b-step-body p { font-size: 13px; color: var(--muted-color); margin: 0; line-height: 1.55; }

.b-impact {
  background: #111827;
  color: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
}

.b-impact h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 10px;
  color: #1D9E75;
}

.b-impact p {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.7;
  font-weight: 300;
}

.b-footer {
  border-top: 0.5px solid var(--card-border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.b-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: 20px; font-style: italic; color: var(--muted-color);
}

.b-tagline span { color: #1D9E75; }

.b-version { font-size: 12px; color: var(--muted-color); }

body.theme-dark .b-badge { background: #0F6E56; color: #E1F5EE; }
body.theme-dark .b-mission-card.accent { background: #085041; border-color: #0F6E56; }
body.theme-dark .b-mission-card.accent p,
body.theme-dark .b-mission-card.accent h3,
body.theme-dark .b-mission-card.accent .icon { color: #E1F5EE; }
body.theme-dark .b-feat .f-icon { background: #0F6E56; }
body.theme-dark .b-feat .f-icon i { color: #E1F5EE; }

.profile-item {
  background: var(--button-bg);
  margin: 10px 20px 20px;
  width: calc(100% - 40px);
  border-radius: 12px;
  border: none;
}

.icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

.logout-item {
  color: var(--primary-color);
  margin-top: auto;
  border-bottom: none;
}

/* ===== Guideline Video Carousel ===== */
.guide-carousel-wrap {
  position: relative;
  margin-bottom: 20px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.guide-carousel {
  display: flex;
  overflow: hidden;
  transition: none;
}

.guide-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: none;
  flex-direction: column;
}

.guide-slide.active {
  display: flex;
}

/* video area */
.guide-video-area {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--primary-color);
  overflow: hidden;
}

.guide-video-area iframe,
.guide-video-area video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* placeholder shown when no video URL */
.guide-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.guide-placeholder i {
  font-size: 2.8rem;
  color: rgba(255,255,255,0.4);
}

/* top-right monitor icon badge */
.guide-monitor-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  z-index: 2;
  pointer-events: none;
}

/* bottom gradient title overlay */
.guide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  pointer-events: none;
}

.guide-overlay-org {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
}

.guide-overlay-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

/* bottom info strip */
.guide-info-strip {
  padding: 10px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--card-border);
}

.guide-info-desc {
  flex: 1;
  font-size: 0.78rem;
  color: var(--muted-color);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-watch-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 30px;
  background: var(--primary-color);
  color: var(--primary-text);
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}

.guide-watch-btn:hover { opacity: 0.85; }

/* dot navigation */
.guide-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 0 12px;
  background: var(--card-bg);
}

.guide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--card-border);
  border: 1.5px solid var(--muted-color);
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.5;
}

.guide-dot.active {
  width: 20px;
  border-radius: 4px;
  background: var(--primary-color);
  border-color: var(--primary-color);
  opacity: 1;
}

/* ─── collapsible header (replaces guide-section-header) ─── */
.guide-collapse-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--card-bg);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.guide-collapse-header.open {
  border-bottom-color: var(--card-border);
}

.guide-collapse-header:hover {
  background: var(--button-bg);
}

.guide-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-count-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--button-bg);
  color: var(--muted-color);
  border-radius: 20px;
  padding: 2px 9px;
  border: 1px solid var(--card-border);
}

/* chevron icon */
.guide-chevron {
  font-size: 0.8rem;
  color: var(--muted-color);
  transition: transform 0.3s ease;
  display: inline-block;
}

.guide-chevron.open {
  transform: rotate(180deg);
}

/* chevron bounce hint animation — 3 iterations, then stops */
@keyframes guideChevronBounce {
  0%, 100% { transform: translateY(0); }
  35%       { transform: translateY(-5px); }
  65%       { transform: translateY(2px); }
}

.guide-chevron-bounce {
  animation: guideChevronBounce 0.55s ease 3;
}

/* ─── collapsible body ─── */
.guide-collapse-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease-in-out;
}

.guide-collapse-body.open {
  /* large enough for video aspect-ratio + info strip + dots */
  max-height: 700px;
}
/* ===== Help Page Refined Aesthetics (Matching About Page Style) ===== */
.b-help {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-color);
  padding: 0 0 40px 0;
}

.h-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 0.5px solid var(--card-border);
  margin-bottom: 2.5rem;
  text-align: left;
}

.h-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 42px; font-weight: 400; line-height: 1.15;
  margin: 0 0 1rem; color: var(--text-color);
}

.h-hero p {
  font-size: 17px; color: var(--muted-color);
  line-height: 1.7; max-width: 580px; margin: 0 0 1.5rem;
  font-weight: 300;
}

.h-search-wrap {
  position: relative;
  max-width: 500px;
}

.h-search-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #1D9E75;
  font-size: 18px;
}

.h-search-wrap input {
  padding: 16px 16px 16px 52px;
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 20px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.h-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 2.5rem;
}

@media (max-width: 500px) {
  .h-grid { grid-template-columns: 1fr; }
}

.h-card {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.h-card:hover {
  border-color: #5DCAA5;
  transform: translateY(-2px);
}

.h-card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #E1F5EE;
  color: #0F6E56;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 20px;
}

.h-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-color);
}

.h-card p {
  font-size: 13px;
  color: var(--muted-color);
  line-height: 1.5;
}

.h-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-color);
}

.h-section-title i { color: #1D9E75; font-size: 20px; }

.h-guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.h-guide-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.h-guide-item:hover {
  border-color: #5DCAA5;
  background: rgba(225, 245, 238, 0.2);
}

.h-guide-item i.main-icon {
  font-size: 20px;
  color: #1D9E75;
  width: 40px;
  height: 40px;
  background: #E1F5EE;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-guide-item .text-box { flex: 1; }

.h-guide-item .text-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-color);
}

.h-guide-item .text-box p {
  font-size: 13px;
  color: var(--muted-color);
  line-height: 1.4;
}

.h-guide-item i.chevron {
  font-size: 12px;
  color: var(--card-border);
}

.h-contact-box {
  background: #111827;
  color: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-family: 'DM Sans', sans-serif;
}

.h-contact-box h3 {
  font-family: 'DM Serif Display', serif;
  color: #1D9E75;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 10px;
}

.h-contact-box p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.h-contact-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.h-contact-btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s;
}

.h-contact-btn:hover { opacity: 0.9; }

.h-contact-btn.primary {
  background: #1D9E75;
  color: #fff;
}

.h-contact-btn.secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

body.theme-dark .h-card .icon-box { background: #0F6E56; color: #E1F5EE; }
body.theme-dark .h-guide-item i.main-icon { background: #0F6E56; color: #E1F5EE; }
body.theme-dark .h-guide-item:hover { background: rgba(15, 110, 86, 0.1); }

/* ===== Help Page Expanded Guides ===== */
.h-guide-item {
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.h-guide-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.h-guide-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
  padding-left: 56px; /* align with text start */
}

.h-guide-item.open {
  background: rgba(225, 245, 238, 0.4);
  border-color: #1D9E75;
}

.h-guide-item.open .h-guide-content {
  max-height: 500px;
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

.h-guide-item.open i.chevron {
  transform: rotate(90deg);
  color: #1D9E75;
}

.guide-step {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.step-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1D9E75;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 13px;
  color: var(--muted-color);
  line-height: 1.4;
}

.step-text strong {
  color: var(--text-color);
  display: block;
  margin-bottom: 2px;
}

/* ===== Safety Page Aesthetics ===== */
.b-safety {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-color);
  padding: 0 0 40px 0;
}

.s-hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 0.5px solid var(--card-border);
  margin-bottom: 2.5rem;
}

.s-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 42px; font-weight: 400; line-height: 1.15;
  margin: 0 0 1rem; color: var(--text-color);
}

.s-hero h1 em { font-style: italic; color: #1D9E75; }

.s-hero p {
  font-size: 17px; color: var(--muted-color);
  line-height: 1.7; max-width: 580px; margin: 0;
  font-weight: 300;
}

.s-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 2.5rem;
}

.s-card {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.s-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #E1F5EE;
  color: #1D9E75;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.s-card.danger .icon-wrap {
  background: #FEF2F2;
  color: #EF4444;
}

.s-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-color);
}

.s-card p {
  font-size: 14px;
  color: var(--muted-color);
  line-height: 1.6;
  margin-bottom: 12px;
}

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

.s-tip {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-color);
  margin-bottom: 8px;
  line-height: 1.4;
}

.s-tip i {
  color: #1D9E75;
  font-size: 12px;
  margin-top: 3px;
}

.s-emergency-banner {
  background: #EF4444;
  color: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.s-emergency-banner h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.s-emergency-banner p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}

.s-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #EF4444;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.2s;
}

.s-call-btn:hover { transform: scale(1.05); }

body.theme-dark .s-card.danger .icon-wrap { background: #451a1a; color: #f87171; }
