/* ==========================================================================
   Hovav's Place · Tel Aviv House Manual & Host Checklist
   Design System & Editorial Stylesheet
   Mirroring the exact aesthetic of hovavnuriel.com
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --bg-tertiary: #EEEEF0;
  --bg-card: #FFFFFF;
  --bg-overlay: rgba(0, 0, 0, 0.75);

  --text-primary: #000000;
  --text-secondary: #555558;
  --text-muted: #8E8E93;
  --text-inverted: #FFFFFF;

  --border-hairline: #E5E5E5;
  --border-subtle: #D1D1D6;
  --border-strong: #000000;
  --border-focus: #000000;

  /* Premium Calm Alert Palette: Electric Cyan & Emerald Neon */
  --accent-alert: #0088A3;
  --accent-alert-bg: #F0FBFD;
  --accent-alert-border: #C2EEF7;

  --accent-cyan: #00B8D9;
  --accent-neon-green: #10B981;
  --accent-neon-bg: #F0FDF4;
  --accent-neon-border: #BBF7D0;

  --accent-warning: #78350F;
  --accent-warning-bg: #FEF3C7;
  --accent-warning-border: #FDE68A;

  --accent-success: #10B981;
  --accent-success-bg: #F0FDF4;

  --font-display: -apple-system, BlinkMacSystemFont, "Space Grotesk", "Plus Jakarta Sans", "Inter", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
  --font-hebrew: -apple-system, BlinkMacSystemFont, "Assistant", "Heebo", "Rubik", "Arial", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Menlo", "Monaco", "Consolas", monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.15);

  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg-primary: #0A0A0A;
  --bg-secondary: #141414;
  --bg-tertiary: #1E1E1E;
  --bg-card: #141414;
  --bg-overlay: rgba(0, 0, 0, 0.88);

  --text-primary: #FFFFFF;
  --text-secondary: #A1A1A6;
  --text-muted: #636366;
  --text-inverted: #000000;

  --border-hairline: #262626;
  --border-subtle: #38383A;
  --border-strong: #FFFFFF;
  --border-focus: #FFFFFF;

  --accent-alert: #00F0FF;
  --accent-alert-bg: rgba(0, 240, 255, 0.08);
  --accent-alert-border: rgba(0, 240, 255, 0.28);

  --accent-cyan: #00F0FF;
  --accent-neon-green: #10B981;
  --accent-neon-bg: rgba(16, 185, 129, 0.08);
  --accent-neon-border: rgba(16, 185, 129, 0.28);

  --accent-warning: #FBBF24;
  --accent-warning-bg: rgba(251, 191, 36, 0.08);
  --accent-warning-border: rgba(251, 191, 36, 0.25);

  --accent-success: #10B981;
  --accent-success-bg: rgba(16, 185, 129, 0.08);

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

.quick-access-section,
.critical-alerts-section,
#apartmentSection,
#neighborhoodSection,
.quick-card,
.alert-card,
[id$="Section"],
[id$="Anchor"],
[id$="Card"] {
  scroll-margin-top: 75px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: var(--font-hebrew);
  letter-spacing: normal;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: var(--font-hebrew);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

/* --- App Container & Layout --- */
.app-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem 1.25rem;
  position: relative;
}

@media (min-width: 768px) {
  .app-container {
    padding: 0 1.5rem 6rem 1.5rem;
  }
}

/* --- Clean Sticky Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

[data-theme="dark"] .site-header {
  background-color: rgba(10, 10, 10, 0.92);
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-monogram {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  user-select: none;
}

.brand-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  padding: 2px;
  cursor: pointer;
  user-select: none;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background-color: var(--text-primary);
  color: var(--text-inverted);
}

/* Minimalist Red Siren Button (Trigger for Shelter Protocol) */
.emergency-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.emergency-icon-btn:hover {
  transform: scale(1.08);
  background-color: rgba(239, 68, 68, 0.2);
}

/* Hamburger Menu Button */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.menu-btn:hover {
  border-color: var(--border-strong);
}

/* --- Slide-Over Drawer --- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer-sheet {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 86%;
  max-width: 350px;
  background-color: var(--bg-primary);
  z-index: 96;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

[dir="rtl"] .drawer-sheet {
  right: auto;
  left: 0;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
}

.drawer-backdrop.open .drawer-sheet {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 1rem;
}

.drawer-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
}

/* Minimal Live Weather Widget inside Drawer */
.weather-widget-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.weather-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.weather-city {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.weather-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.weather-current-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.weather-temp {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.weather-icon-badge {
  font-size: 1.5rem;
}

.weather-forecast-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-hairline);
}

.weather-forecast-day {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.drawer-link:hover {
  background-color: var(--bg-secondary);
}

.drawer-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem 0.5rem;
}

.drawer-action-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.drawer-action-card h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.drawer-action-card p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-lock-prominent {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-weight: 700;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.btn-lock-prominent:hover {
  background-color: var(--accent-alert-bg);
  border-color: var(--accent-alert-border);
}

/* --- Hero Section & Offline PDF Button --- */
.hero-section {
  padding: 2rem 0 1.5rem 0;
  border-bottom: 1px solid var(--border-hairline);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-tag::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10B981;
}

.hero-heading {
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 0.85rem;
  letter-spacing: -0.04em;
}

[dir="rtl"] .hero-heading {
  font-size: 2.1rem;
  letter-spacing: -0.02em;
}

.hero-subhead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-pdf-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-pdf-hero:hover {
  background-color: var(--text-primary);
  color: var(--text-inverted);
}

/* --- Quick Access Grid --- */
.quick-access-section {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border-hairline);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quick-card-span-2 {
    grid-column: span 2;
  }
}

.quick-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  transition: border-color var(--transition-smooth);
}

.quick-card:hover {
  border-color: var(--border-strong);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.card-icon-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-icon {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

.card-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.quick-data-block {
  margin-bottom: 1rem;
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.data-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.data-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.code-badge-large {
  display: inline-block;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.visual-cue-box {
  margin-top: 0.5rem;
  padding: 0.5rem 0.7rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  user-select: none;
}

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

.btn-primary {
  background-color: var(--text-primary);
  color: var(--text-inverted);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: var(--bg-secondary);
  border-color: var(--border-hairline);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-primary);
}

/* Subtle, Soft Executive Outline Button (Softer UI) */
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background-color: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.42rem 0.82rem;
  border-radius: var(--radius-md);
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  user-select: none;
}

.btn-soft:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

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

[data-theme="dark"] .btn-soft {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--border-hairline);
  color: var(--text-secondary);
}

[data-theme="dark"] .btn-soft:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.address-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-hairline);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* Dual Maps Buttons Group (Monochrome Linear) */
.btn-maps-group {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  background-color: transparent;
  border: 1px solid var(--border-hairline);
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-maps:hover {
  border-color: var(--border-subtle);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="dark"] .btn-maps {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--border-hairline);
  color: var(--text-secondary);
}

[data-theme="dark"] .btn-maps:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.map-icon-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex-shrink: 0;
}

/* --- Critical Alerts & Collapsible Shelter Section --- */
.critical-alerts-section {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border-hairline);
}

.alert-card {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-card);
}

.alert-card-calm {
  border-left: 4px solid var(--accent-cyan);
}

[dir="rtl"] .alert-card-calm {
  border-left: 1px solid var(--border-hairline);
  border-right: 4px solid var(--accent-cyan);
}

.alert-card-siren-collapsible {
  border-left: 4px solid var(--accent-neon-green);
  transition: all var(--transition-smooth);
}

[dir="rtl"] .alert-card-siren-collapsible {
  border-left: 1px solid var(--border-hairline);
  border-right: 4px solid var(--accent-neon-green);
}

.alert-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.7rem;
}

.badge-calm-cyan {
  background-color: var(--accent-alert-bg);
  color: var(--accent-alert);
  border: 1px solid var(--accent-alert-border);
}

.badge-calm-neon {
  background-color: var(--accent-neon-bg);
  color: var(--accent-neon-green);
  border: 1px solid var(--accent-neon-border);
}

.alert-heading {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.alert-intro {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

/* Collapsible Siren Header Trigger */
.siren-header-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  user-select: none;
}

[dir="rtl"] .siren-header-trigger {
  text-align: right;
}

.siren-trigger-content {
  flex: 1;
}

.siren-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.alert-card-siren-collapsible.expanded .siren-chevron {
  transform: rotate(180deg);
}

.siren-collapsible-body {
  display: none;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-hairline);
  margin-top: 1.15rem;
}

.alert-card-siren-collapsible.expanded .siren-collapsible-body {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rule-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
}

.rule-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-alert);
  border: 1px solid var(--border-hairline);
}

.rule-content h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.rule-content p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.siren-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
}

.step-num {
  font-size: 0.85rem;
  font-weight: 800;
  background-color: var(--text-primary);
  color: var(--text-inverted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.step-body p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.app-download-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.app-download-header {
  margin-bottom: 0.75rem;
}

.app-download-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.app-download-header p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .app-buttons {
    flex-direction: row;
  }
}

.emergency-services-strip-inside {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.emergency-services-strip-inside h4 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.emergency-num-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.emergency-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  background-color: var(--bg-card);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  transition: all var(--transition-fast);
}

.emergency-chip:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.contact-person-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 520px) {
  .contact-person-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.contact-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-phone {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  display: block;
}

.contact-btn-group {
  display: flex;
  gap: 0.45rem;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background-color: #20BD5A;
}

/* --- Section Nav & Categories --- */
.section-nav-wrapper {
  position: sticky;
  top: 51px;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  margin: 0 -1.25rem 1.5rem -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-bottom: 1px solid var(--border-hairline);
}

[data-theme="dark"] .section-nav-wrapper {
  background-color: rgba(10, 10, 10, 0.94);
}

.main-tabs-row {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.main-tab-btn {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.main-tab-btn.active {
  background-color: var(--text-primary);
  color: var(--text-inverted);
  border-color: var(--text-primary);
}

.category-filter-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-pill.active {
  background-color: var(--text-primary);
  color: var(--text-inverted);
  border-color: var(--text-primary);
}

.controls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.item-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.expand-toggle-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Accordions --- */
.manual-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: border-color var(--transition-smooth);
}

.manual-card:hover {
  border-color: var(--border-subtle);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

[dir="rtl"] .accordion-header {
  text-align: right;
}

.header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
}

.accordion-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-primary);
}

.header-title-group h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.header-title-group p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.chevron-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.manual-card.expanded .chevron-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.manual-card.expanded .accordion-content {
  display: block;
}

.accordion-body-inner {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.content-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.content-block h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.content-block p {
  font-size: 0.88rem;
}

.callout-box {
  padding: 0.85rem 1rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  font-size: 0.84rem;
}

.callout-box-calm {
  background-color: var(--accent-alert-bg);
  border-color: var(--accent-alert-border);
  color: var(--accent-alert);
}

.ac-mode-badge-row {
  display: flex;
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.ac-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
}

.timer-widget {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.timer-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.timer-widget-header h4 {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timer-display {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.timer-progress-track {
  width: 100%;
  height: 6px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.timer-progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--text-primary);
  transition: width 1s linear;
}

.photo-placeholder-frame {
  border: 2px dashed var(--border-hairline);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  margin-top: 0.5rem;
}

.photo-placeholder-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 0.5rem auto;
  color: var(--text-muted);
}

.photo-placeholder-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.photo-placeholder-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bin-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bin-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
}

.bin-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}

.bin-swatch.green { background-color: #10B981; }
.bin-swatch.blue { background-color: #00B8D9; }
.bin-swatch.orange { background-color: #f97316; }

/* --- Neighborhood Guide Cards --- */
.guide-category-section {
  margin-bottom: 2rem;
}

.guide-category-heading {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-subtle);
}

.guide-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.guide-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.guide-type-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.guide-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.guide-card-actions {
  display: flex;
  justify-content: flex-start;
}

/* ==========================================================================
   HOST PRE-DEPARTURE CHECKLIST STYLES (HEBREW RTL)
   ========================================================================== */
.host-checklist-container {
  padding: 1rem 0;
  direction: rtl;
  text-align: right;
  font-family: var(--font-hebrew);
}

.host-header-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.host-badge {
  display: inline-block;
  background-color: var(--accent-neon-bg);
  border: 1px solid var(--accent-neon-border);
  color: var(--accent-neon-green);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.host-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.host-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.host-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
}

.host-progress-box {
  width: 100%;
  margin-bottom: 0.75rem;
}

.host-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.host-progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
}

.host-progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--accent-neon-green);
  transition: width 0.3s ease;
}

.checklist-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.checklist-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.checklist-item.is-done {
  border-color: var(--border-hairline);
  background-color: var(--bg-secondary);
  opacity: 0.85;
}

.checklist-item-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-subtle);
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--transition-fast);
}

.checklist-item.is-done .custom-checkbox {
  background-color: var(--accent-neon-green);
  border-color: var(--accent-neon-green);
  color: #FFFFFF;
}

.custom-checkbox svg {
  display: none;
}

.checklist-item.is-done .custom-checkbox svg {
  display: block;
}

.checklist-content {
  flex: 1;
}

.checklist-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.checklist-item.is-done .checklist-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.checklist-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checklist-note-wrapper {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-hairline);
}

.checklist-note-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
  font-family: var(--font-hebrew);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
  resize: vertical;
  min-height: 48px;
}

.checklist-note-input:focus {
  border-color: var(--border-strong);
  background-color: var(--bg-card);
}

.checklist-item.is-done .checklist-note-wrapper {
  display: none;
}

/* Secure Reset Checklist Modal */
.secure-reset-modal {
  text-align: center;
}

.secure-reset-input {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  text-align: center;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  margin: 1rem 0;
  outline: none;
  letter-spacing: 0.15em;
}

.secure-reset-input:focus {
  border-color: var(--border-strong);
}

/* --- Password Gate / Lock Screen --- */
.lock-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lock-card {
  width: 100%;
  max-width: 400px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.lock-monogram {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.lock-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.lock-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.lock-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lock-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1.15rem;
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.15em;
  outline: none;
  transition: border-color var(--transition-fast);
}

.lock-input:focus {
  border-color: var(--border-strong);
}

.lock-error-msg {
  display: none;
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 0.35rem;
  font-weight: 600;
}

.lock-error-msg.visible {
  display: block;
}

.lock-secure-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* --- Modals --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-sheet {
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  box-shadow: var(--shadow-modal);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 1rem;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.qr-display-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  margin-bottom: 1.25rem;
}

.qr-meta-text {
  text-align: center;
  font-size: 0.78rem;
  color: #555555;
  margin-top: 0.75rem;
}

/* Keypad visualizer */
.keypad-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.keypad-header {
  margin-bottom: 1rem;
}

.keypad-screen {
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.keypad-screen-dots {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-primary);
}

.keypad-screen-status {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.keypad-screen-status.success {
  color: var(--accent-neon-green);
}

.keypad-screen-status.error {
  color: #EF4444;
}

.keypad-grid-container {
  position: relative;
  max-width: 260px;
  margin: 0 auto 0.75rem auto;
}

.keypad-arrow-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.keypad-arrow-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
  border-radius: 2px;
}

[data-theme="dark"] .keypad-arrow-line {
  background: linear-gradient(to top, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.5));
}

.keypad-arrow-head {
  font-size: 10px;
  color: var(--text-primary);
  margin-top: -6px;
}

.keypad-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 5;
}

.keypad-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.keypad-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.1s ease, background-color 0.15s ease;
  user-select: none;
}

.key-char {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.key-step-badge {
  position: absolute;
  bottom: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  background-color: var(--text-primary);
  color: var(--text-inverted);
  border-radius: var(--radius-full);
  padding: 0 4px;
  line-height: 12px;
}

.keypad-target {
  border-color: var(--text-primary);
  background-color: var(--bg-card);
}

.keypad-btn:active, .keypad-btn.active-tap {
  transform: scale(0.92);
  background-color: var(--text-primary);
  color: var(--text-inverted);
}

.keypad-cue-text {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 110;
  background-color: var(--text-primary);
  color: var(--text-inverted);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

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

/* Footer with Interactive Website & Instagram Links */
.site-footer {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.footer-brand {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-credits-line {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.footer-host-link {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

.footer-host-link:hover {
  opacity: 0.7;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-primary);
  margin-left: 0.2rem;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.footer-social-link:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

.footer-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-link-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   PRINT STYLESHEET (@media print)
   Offline Flight Mode / Black & White Clean Print
   ========================================================================== */
@media print {
  body {
    background-color: #FFFFFF !important;
    color: #000000 !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  .site-header,
  .drawer-backdrop,
  .lock-screen-overlay,
  .card-actions,
  .expand-toggle-btn,
  .btn,
  .btn-soft,
  .btn-maps,
  .btn-maps-group,
  .emergency-header-btn,
  .emergency-icon-btn,
  .btn-whatsapp,
  .theme-toggle-btn,
  .menu-btn,
  .modal-backdrop,
  .toast-container,
  .section-nav-wrapper,
  .hero-actions,
  .footer-actions,
  .keypad-footer-actions {
    display: none !important;
  }

  .app-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .accordion-content,
  .siren-collapsible-body {
    display: block !important;
    padding: 0.5rem 0 0 0 !important;
    border-top: 1px solid #E5E5E5 !important;
  }

  .manual-card, .quick-card, .alert-card, .guide-card, .host-header-card, .checklist-item {
    box-shadow: none !important;
    border: 1px solid #CCCCCC !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    margin-bottom: 1rem !important;
  }

  h1, h2, h3, h4 {
    color: #000000 !important;
  }

  .chevron-icon, .siren-chevron {
    display: none !important;
  }
}
