:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1f2630;
  --bg-card-hover: #26303d;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --accent-orange: #ff6a00;
  --accent-amber: #ee0979;
  --flame-grad: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
  --gold: #f59e0b;
  --cyan: #06b6d4;
  --green: #10b981;
  --purple: #8b5cf6;
  --border-color: #30363d;
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.6);
  --glow-orange: 0 0 20px rgba(255, 106, 0, 0.35);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
  --bg-primary: #f6f8fa;
  --bg-secondary: #ffffff;
  --bg-card: #f0f3f6;
  --bg-card-hover: #e6ebf1;
  --text-primary: #1f2328;
  --text-secondary: #57606a;
  --text-muted: #8c959f;
  --border-color: #d0d7de;
  --border-light: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.12);
  --glow-orange: 0 0 15px rgba(255, 106, 0, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

[data-theme="light"] .navbar {
  background: rgba(246, 248, 250, 0.92);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-badge {
  background: var(--flame-grad);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  box-shadow: var(--glow-orange);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.brand-title h1 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-title p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-orange);
}

/* COUNTDOWN BAR */
.countdown-banner {
  background: linear-gradient(90deg, #2b1100, #401804, #1f2630);
  border-bottom: 1px solid rgba(255, 106, 0, 0.3);
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

[data-theme="light"] .countdown-banner {
  background: linear-gradient(90deg, #fff3e0, #ffe0b2, #f0f3f6);
}

.countdown-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff9d5c;
}

[data-theme="light"] .countdown-info {
  color: #b7410e;
}

.countdown-timer-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timer-digits {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  background: rgba(0,0,0,0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 106, 0, 0.4);
  color: #fff;
}

[data-theme="light"] .timer-digits {
  background: #ffffff;
  color: #b7410e;
  border-color: #ffb74d;
}

/* NAVIGATION TABS */
.nav-tabs-wrapper {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.5rem 1.25rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-tabs {
  display: flex;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--flame-grad);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255, 106, 0, 0.3);
}

/* MAIN CONTENT */
.main-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  flex: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

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

/* CARDS & GRIDS */
.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-header p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(255, 106, 0, 0.4);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.badge-orange { background: rgba(255, 106, 0, 0.15); color: #ff8533; border: 1px solid rgba(255, 106, 0, 0.3); }
.badge-gold { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.3); }
.badge-red { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

/* SURVIVAL HERO BANNER */
.survival-hero {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.15), rgba(238, 9, 121, 0.05)), var(--bg-card);
  border: 1px solid rgba(255, 106, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.survival-hero::after {
  content: "🔥";
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 5rem;
  opacity: 0.1;
  pointer-events: none;
}

.survival-hero h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ff8533;
  margin-bottom: 0.5rem;
}

/* TIMELINE LIST */
.timeline-item {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
  border-left: 2px solid var(--border-color);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange);
}

.timeline-year {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ff8533;
  font-family: var(--font-mono);
}

.timeline-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* SCRIPT ACCORDION */
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.accordion-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  user-select: none;
}

.accordion-header:hover {
  background: var(--bg-card-hover);
}

.accordion-icon {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--border-light);
}

.accordion-item.open .accordion-content {
  display: block;
}

/* FONT SIZE CONTROLS */
.font-size-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
}

.btn-font-size {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.825rem;
  transition: all 0.2s ease;
}

.btn-font-size:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.btn-font-size.active {
  color: #fff;
  background: var(--accent-orange);
}

/* FONT SIZE SCALING */
[data-font-size="large"] .speech-bubble,
[data-font-size="large"] .galeria-speech-box {
  font-size: 1.3rem !important;
  line-height: 1.85 !important;
}

[data-font-size="large"] .galeria-desc,
[data-font-size="large"] .speech-tips {
  font-size: 1.15rem !important;
}

[data-font-size="xlarge"] .speech-bubble,
[data-font-size="xlarge"] .galeria-speech-box {
  font-size: 1.5rem !important;
  line-height: 2 !important;
}

[data-font-size="xlarge"] .galeria-desc,
[data-font-size="xlarge"] .speech-tips {
  font-size: 1.25rem !important;
}

/* SCRIPT QUOTE BOX */
.speech-bubble {
  background: rgba(255, 106, 0, 0.09);
  border-left: 5px solid var(--accent-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.15rem 1.4rem;
  font-size: 1.14rem;
  line-height: 1.75;
  color: var(--text-primary);
  margin: 0.85rem 0;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.speech-bubble strong {
  color: #ff9d5c;
  font-weight: 700;
}

.speech-tips {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0.75rem 0;
  line-height: 1.6;
}

/* SPEECH QUICK NAV */
.speech-quick-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.quick-nav-pill {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.95rem;
  border-radius: 50px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-nav-pill:hover {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  transform: translateY(-1px);
}

/* GALERIA DEL ACERO & GALERIA DE HISTORIA MASTER CARDS */
.galeria-master-grid,
.historia-master-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.galeria-master-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.galeria-master-card:hover {
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-md);
}

.galeria-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.75rem;
}

.galeria-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.galeria-location-tag {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
}

.galeria-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.galeria-speech-box {
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(238, 9, 121, 0.05)), var(--bg-secondary);
  border-left: 6px solid var(--accent-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.galeria-speech-box strong {
  color: #ffa466;
  font-weight: 700;
}

.galeria-tip-row {
  background: rgba(16, 185, 129, 0.08);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.6;
}

/* GALERÍA DE HISTORIA MASTER STYLES */
.historia-era-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.historia-era-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.historia-era-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.historia-era-btn.active {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  box-shadow: var(--shadow-sm);
}

.historia-master-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.historia-master-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.historia-master-card.era-hidden {
  display: none !important;
}

.historia-era-tag {
  font-size: 0.775rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.historia-era-tag.era-1 {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.historia-era-tag.era-2 {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.historia-era-tag.era-3 {
  background: rgba(255, 106, 0, 0.15);
  color: #ff8533;
  border: 1px solid rgba(255, 106, 0, 0.35);
}

.historia-era-tag.era-4 {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.35);
}

/* AUDIO TTS CONTROLS */
.audio-action-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.btn-tts {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tts:hover {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
}

.btn-tts.speaking {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  animation: pulse 1.5s infinite;
}

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

/* TOUR SELECTOR PILLS */
.tour-selector-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
}

.pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.1rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.pill-btn.active {
  background: var(--accent-orange);
  color: #fff;
  border-color: var(--accent-orange);
  box-shadow: 0 2px 10px rgba(255, 106, 0, 0.4);
}

/* VISUAL EXPLORER */
.visual-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.visual-img-container {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.visual-card:hover .visual-img {
  transform: scale(1.03);
}

.visual-overlay-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.visual-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.visual-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.visual-subtitle {
  font-size: 0.825rem;
  color: #ff8533;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.visual-features-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.visual-features-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
}

.visual-features-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: bold;
}

/* FUN FACTS CARDS */
.fun-fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.fun-fact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.fact-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fact-hook {
  font-size: 0.85rem;
  color: #ff8533;
  font-weight: 600;
}

.fact-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.fact-badge {
  font-size: 0.7rem;
  font-weight: 700;
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* SEARCH SOS */
.sos-search-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.sos-input {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem 0.9rem 3rem;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.sos-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.25);
}

.sos-search-icon {
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  pointer-events: none;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.quick-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.tag-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent-orange);
}

/* QUIZ / SIMULATOR */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--flame-grad);
  transition: width 0.3s ease;
}

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

.quiz-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.quiz-score-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.quiz-question {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  font-size: 0.925rem;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.quiz-option:hover:not(.disabled) {
  background: var(--bg-card-hover);
  border-color: var(--accent-orange);
}

.quiz-option.correct {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--green);
  color: #34d399;
}

.quiz-option.incorrect {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #f87171;
}

.quiz-option.disabled {
  cursor: default;
}

.quiz-feedback-box {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
}

.quiz-feedback-box.correct {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.quiz-feedback-box.incorrect {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
}

.btn-next-question {
  background: var(--flame-grad);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 1.25rem;
  width: 100%;
  display: none;
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.4);
}

/* STOPWATCH WIDGET */
.stopwatch-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stopwatch-display {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-orange);
}

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

.btn-small {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-small:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-orange);
}

/* FOOTER */
.app-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.app-footer a {
  color: var(--accent-orange);
  text-decoration: none;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .navbar {
    padding: 0.6rem 0.9rem;
  }
  .brand-title h1 {
    font-size: 0.95rem;
  }
  .main-container {
    padding: 1rem 0.75rem 2.5rem;
  }
  .grid-cols-2, .grid-cols-3, .visual-gallery {
    grid-template-columns: 1fr;
  }
  .visual-img-container {
    height: 180px;
  }
  .countdown-banner {
    padding: 0.5rem 0.9rem;
  }
  .speech-bubble {
    font-size: 1.05rem;
    line-height: 1.7;
  }
}

/* SHIFT PLANNER (12:00 PM - 6:00 PM) */
.shift-planner-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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

.shift-selector-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.shift-timeline-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.shift-block-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  position: relative;
  transition: all 0.2s ease;
}

.shift-block-card:hover {
  border-color: var(--accent-orange);
  transform: translateX(4px);
}

.shift-block-card.break-card {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
}

.shift-block-card.tour-card {
  border-left: 4px solid var(--accent-orange);
}

.shift-time-col {
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shift-time-range {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.shift-dur-tag {
  font-size: 0.75rem;
  color: #ff8533;
  font-weight: 600;
}

.shift-details-col {
  flex: 1;
}

.shift-block-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.shift-block-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.shift-tips-box {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 106, 0, 0.08);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 106, 0, 0.3);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .shift-block-card {
    flex-direction: column;
    gap: 0.5rem;
  }
  .shift-time-col {
    min-width: unset;
  }
}

/* LIVE BREAK TIMER & TOUR FLOW */
.break-timer-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.08)), var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.break-timer-display {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 1px;
}

.break-timer-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-break {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-break:hover {
  background: var(--bg-card-hover);
  border-color: #34d399;
}

.btn-break.active-break {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.tour-flow-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flow-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
  transition: all 0.2s ease;
}

.flow-step-card:hover {
  border-color: var(--accent-orange);
}

.flow-step-card.flow-tour {
  border-left: 5px solid var(--accent-orange);
}

.flow-step-card.flow-break {
  border-left: 5px solid var(--green);
  background: rgba(16, 185, 129, 0.05);
}

.flow-step-card.flow-key-break {
  border-left: 5px solid var(--gold);
  background: rgba(245, 158, 11, 0.08);
  border-right: 2px solid rgba(245, 158, 11, 0.3);
}

.flow-step-card.flow-prep {
  border-left: 5px solid var(--cyan);
  background: rgba(6, 182, 212, 0.05);
}

.flow-step-card.flow-support {
  border-left: 5px solid #818cf8;
  background: rgba(129, 140, 248, 0.05);
}

.flow-step-card.flow-close {
  border-left: 5px solid #a855f7;
  background: rgba(168, 85, 247, 0.05);
}

.flow-step-card.step-completed {
  opacity: 0.72;
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.06) !important;
}

.flow-step-card.step-completed .flow-step-title {
  text-decoration: line-through;
  color: var(--text-secondary);
}

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

.flow-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.flow-action-row {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
