/* ==========================================================================
   Mausam Component Library - Persona Modules, AI Drawer & Modals
   Strict Zero Emoji Policy - 100% Vector Icon Components
   ========================================================================== */

/* Persona Header Banner */
.persona-hero-header {
  margin-bottom: 14px;
}

.persona-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.persona-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.location-pill:hover {
  background: var(--bg-surface-elevated);
}

.persona-headline {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 2px;
}

.persona-tagline {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* IMD Severe Alert Banner */
.imd-alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  animation: pulseAlert 4s infinite ease-in-out;
}

.alert-yellow {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}
.alert-orange {
  background: #FFF7ED;
  border-color: #FDBA74;
  color: #9A3412;
}
.alert-red {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}

.alert-icon-box {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.alert-desc {
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 4px;
  opacity: 0.9;
}

.alert-time {
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.75;
}

/* Card Headers */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon-tag {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
}

/* ==========================================================================
   HEALTH PERSONA WIDGETS
   ========================================================================== */
.aqi-card-layout {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 0;
}

.aqi-main-gauge {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.aqi-circular-svg {
  width: 100%;
  height: 100%;
}

.aqi-gauge-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.aqi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.aqi-sub {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 2px;
}

.aqi-breakout-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aqi-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  width: max-content;
}

.pollutant-bars-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pol-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pol-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
}
.pol-header strong {
  color: var(--text-main);
  font-weight: 600;
}

.pol-bar-bg {
  width: 100%;
  height: 5px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.pol-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.advice-card {
  background: #F8FAFC;
  border-left: 4px solid var(--brand-emerald);
}

.advice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.advice-header h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.advice-item {
  font-size: 11.5px;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 6px;
}
.advice-item:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   FITNESS PERSONA WIDGETS
   ========================================================================== */
.running-hours-scroll-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px 0;
  scrollbar-width: none;
}
.running-hours-scroll-track::-webkit-scrollbar {
  display: none;
}

.run-hour-chip {
  flex-shrink: 0;
  width: 105px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.run-hour-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.rating-prime {
  border-color: #86EFAC;
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
}
.rating-prime .score-num { color: #16A34A; }

.rating-good {
  border-color: #BAE6FD;
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
}
.rating-good .score-num { color: #0284C7; }

.rating-danger {
  border-color: #FECACA;
  background: linear-gradient(180deg, #FEF2F2 0%, #FFFFFF 100%);
}
.rating-danger .score-num { color: #DC2626; }

.hour-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hour-score-circle {
  display: flex;
  align-items: baseline;
  margin-bottom: 3px;
}
.score-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}
.score-max {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
}

.hour-label {
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hour-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 9px;
  color: var(--text-muted);
}
.hour-meta span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.sun-timings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sun-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.sun-time {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}
.sun-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.sun-golden {
  font-size: 9.5px;
  color: var(--brand-amber);
  font-weight: 500;
  margin-top: 2px;
}

/* ==========================================================================
   BEACH & SURFERS WIDGETS
   ========================================================================== */
.tide-chart-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tide-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tide-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.tide-high .pill-dot {
  width: 7px;
  height: 7px;
  background: #0284C7;
  border-radius: 50%;
}
.tide-low .pill-dot {
  width: 7px;
  height: 7px;
  background: #94A3B8;
  border-radius: 50%;
}

.tide-svg-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.marine-submetrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.submetric-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.submetric-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.submetric-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.beach-safety-card {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border-left: 4px solid #16A34A;
}

.surf-score-bar {
  display: flex;
  align-items: center;
  gap: 14px;
}

.surf-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #16A34A;
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.score-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.score-sub {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

.surf-condition-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.surf-condition-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.empty-marine-state {
  text-align: center;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.empty-title {
  font-size: 14px;
  font-weight: 700;
}

.empty-text {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.4;
  margin-bottom: 4px;
}

/* ==========================================================================
   TRAVELERS HUB WIDGETS
   ========================================================================== */
.travel-transit-card {
  background: linear-gradient(145deg, #FAF5FF 0%, #FFFFFF 100%);
}

.transit-status-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.transit-icon {
  color: var(--brand-purple);
  margin-top: 2px;
}

.transit-head {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
}

.transit-body {
  font-size: 10.5px;
  color: var(--text-muted);
}

.saved-cities-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-city-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.saved-city-card:hover {
  background: #FFFFFF;
  transform: translateX(2px);
}

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

.city-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.city-cond {
  font-size: 10px;
  color: var(--text-muted);
}

.city-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.city-temp {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.city-note {
  font-size: 9.5px;
  color: var(--brand-blue);
  font-weight: 500;
}

/* Packing Checklist */
.packing-list-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.packing-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.packing-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.packing-text {
  flex: 1;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
}

.packing-cat {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  background: #E2E8F0;
  color: #475569;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.item-checked {
  background: #F1F5F9;
  opacity: 0.6;
}
.item-checked .packing-text {
  text-decoration: line-through;
}

/* ==========================================================================
   PARENTS & FAMILY WIDGETS
   ========================================================================== */
.commute-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.commute-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
}

.morning-bell {
  border-top: 3px solid var(--brand-amber);
}

.afternoon-bell {
  border-top: 3px solid var(--brand-orange);
}

.bell-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.bell-time {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.bell-temp-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.bell-temp {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.bell-cond {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.bell-tip {
  font-size: 9.5px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.3;
}

/* ==========================================================================
   AGRICULTURE & GARDENING WIDGETS
   ========================================================================== */
.soil-depth-visualizer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.soil-layer-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.soil-layer-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}
.layer-depth { color: var(--text-muted); }
.layer-status { color: var(--text-main); font-weight: 700; }

.soil-bar-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.soil-bar-val {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.agri-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.agri-stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-elevated);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.stat-icon-wrap {
  display: flex;
}

.stat-label {
  font-size: 9px;
  color: var(--text-muted);
  display: block;
}
.agri-stat-item strong {
  font-size: 11px;
  color: var(--text-main);
}

.agri-advice-card {
  background: #F0FDF4;
  border-left: 4px solid #16A34A;
}

/* ==========================================================================
   COMMUTERS WIDGETS
   ========================================================================== */
.visibility-meter-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.vis-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.vis-stat {
  display: flex;
  flex-direction: column;
}

.vis-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.vis-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

.flyover-alert-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #854D0E;
  background: #FEF3C7;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
}

.transit-modes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transit-mode-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
}

.mode-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #E0F2FE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mode-details {
  flex: 1;
}

.mode-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.mode-status {
  font-size: 10px;
  color: var(--text-muted);
}

.mode-score {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-emerald);
}

/* ==========================================================================
   EVENT PLANNER WIDGETS
   ========================================================================== */
.rain-pop-chart-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.pop-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pop-risk-badge {
  font-size: 10px;
  font-weight: 700;
  background: #EFF6FF;
  color: #2563EB;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.pop-svg {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   MAUSAM AI ASSISTANT CHAT SCREEN & VOICE DRAWER
   ========================================================================== */
.ai-screen-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ai-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.ai-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-bot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
}

.ai-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.ai-sub {
  font-size: 10px;
  color: var(--brand-emerald);
  font-weight: 600;
}

.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-blue);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.voice-btn.voice-active {
  background: #EF4444;
  color: white;
  border-color: #EF4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Quick Prompt Chips */
.quick-prompt-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.quick-prompt-track::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.quick-chip:hover {
  background: var(--bg-surface-elevated);
  border-color: #CBD5E1;
}

/* Chat Messages List */
.ai-messages-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 12px 0;
  max-height: 480px;
}

.ai-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  animation: fadeInMsg 0.25s ease;
}

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

.msg-user {
  flex-direction: row-reverse;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-user .msg-avatar {
  background: #E2E8F0;
  color: #334155;
}

.msg-assistant .msg-avatar {
  background: #E0F2FE;
  color: #0284C7;
}

.msg-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.45;
}

.msg-user .msg-bubble {
  background: #0F172A;
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.msg-assistant .msg-bubble {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  background: #94A3B8;
  border-radius: 50%;
  animation: blinkDot 1.4s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blinkDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

.msg-bubble-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 82%;
}

.msg-speech-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.75;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  margin-bottom: 2px;
}

.msg-speech-btn:hover {
  opacity: 1;
  color: var(--brand-blue);
  background: rgba(2, 132, 199, 0.1);
  border-color: var(--brand-blue);
  transform: scale(1.1);
}

/* Chat Input Bar */
.ai-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 6px 4px 14px;
  box-shadow: var(--shadow-sm);
  margin-top: auto;
}

.ai-input-field {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--text-main);
  outline: none;
}
.ai-input-field::placeholder {
  color: var(--text-light);
}

.ai-mic-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.ai-mic-btn:hover {
  color: var(--brand-blue);
  border-color: var(--brand-blue);
  transform: scale(1.05);
}

.ai-mic-btn.listening {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
  animation: listeningPulse 1.2s infinite;
}

.ai-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.ai-send-btn:hover {
  background: #0369A1;
  transform: scale(1.05);
}

.voice-active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.25)) !important;
  color: #EF4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  animation: voiceActiveGlow 1.5s infinite alternate;
}

@keyframes voiceActiveGlow {
  0% { box-shadow: 0 0 0 rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 12px rgba(239, 68, 68, 0.4); }
}

/* ==========================================================================
   RADAR & SATELLITE SCREEN
   ========================================================================== */
.radar-view-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radar-canvas-box {
  width: 100%;
  height: 280px;
  background: #F8FAFC;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.04);
}

.radar-canvas-element {
  width: 100%;
  height: 100%;
}

.radar-overlay-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   MODALS & TOASTS
   ========================================================================== */
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  width: 100%;
  max-width: 100%;
  background: var(--bg-surface);
  border-radius: 28px 28px 0 0;
  padding: 16px 16px 28px 16px;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.25);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-top: 1px solid var(--border-subtle);
}

.modal-backdrop.active .modal-sheet {
  transform: translateY(0);
}

.modal-handle-bar {
  width: 36px;
  height: 4px;
  background: #CBD5E1;
  border-radius: 2px;
  margin: 0 auto 16px auto;
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.modal-close-btn:hover {
  background: #E2E8F0;
  color: var(--text-main);
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
}

.search-input-box input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-main);
}

.locations-list-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
}

.location-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.location-item-row:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  transform: translateX(2px);
}

.location-item-row.selected {
  background: #E0F2FE;
  border-color: #7DD3FC;
}

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

.loc-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.loc-state {
  font-size: 10.5px;
  color: var(--text-muted);
}

.loc-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.loc-temp {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.loc-cond {
  font-size: 10px;
  color: var(--text-muted);
}

/* Toast Notification Popup */
.toast-popup {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(15, 23, 42, 0.95);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  z-index: 150;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-width: 88%;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.toast-success {
  background: #065F46;
}

/* ==========================================================================
   LIVE API STATUS BADGE & OFFICIAL DATA SOURCES
   ========================================================================== */
.live-api-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #047857;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10B981;
  animation: pulseLiveDot 1.8s infinite;
}

@keyframes pulseLiveDot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.live-sources-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  margin-top: 14px;
}

.sources-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}

.sources-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  color: var(--brand-blue);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.source-link-pill:hover {
  background: #E0F2FE;
  border-color: #7DD3FC;
  transform: translateY(-1px);
}

.sih-pill {
  background: #FEF3C7;
  border-color: #FDE68A;
  color: #92400E;
}
.sih-pill:hover {
  background: #FDE68A;
}

.search-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 4px 6px 4px;
}

.live-fetch-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-blue);
  background: #E0F2FE;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   LANGUAGE PICKER & THEME SWITCHER CONTROLS
   ========================================================================== */
.lang-picker-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 2px 4px;
  box-shadow: var(--shadow-sm);
}

.lang-btn-chip {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn-chip:hover {
  color: var(--text-main);
}

.lang-btn-chip.active {
  background: var(--brand-blue);
  color: #FFFFFF;
}

.theme-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: #CBD5E1;
}

/* ==========================================================================
   PROMINENT TOP LIVE LOCATION BANNER (AUTO-FETCH TELEMETRY)
   ========================================================================== */
.top-live-location-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .top-live-location-banner {
  background: linear-gradient(135deg, #1E293B 0%, #172554 100%);
  border-color: rgba(56, 189, 248, 0.2);
}

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

.loc-pin-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .loc-pin-icon-wrap {
  background: rgba(14, 165, 233, 0.2);
  color: #38BDF8;
}

.loc-info-group {
  display: flex;
  flex-direction: column;
}

.loc-status-sub {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--brand-emerald);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.loc-name-main {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.loc-banner-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.autofetch-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-blue);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.autofetch-btn:hover {
  background: var(--bg-surface-elevated);
}

.loc-coords-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
}

/* ==========================================================================
   SETTINGS & CONFIGURATION PANEL STYLES
   ========================================================================== */
.settings-section-block {
  margin-bottom: 16px;
}

.settings-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-section-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.35;
}

.settings-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.settings-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.settings-lang-card {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.settings-lang-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

.settings-lang-card.active {
  border-color: var(--brand-blue);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.08) 0%, var(--bg-surface) 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.lang-card-code {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.lang-card-native {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.lang-card-name {
  font-size: 10px;
  color: var(--text-muted);
}

.settings-theme-card {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.settings-theme-card:hover {
  transform: translateY(-1px);
}

.settings-theme-card.active {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, var(--bg-surface) 100%);
}

.theme-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.theme-card-info {
  display: flex;
  flex-direction: column;
}

.theme-card-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
}

.theme-card-sub {
  font-size: 9.5px;
  color: var(--text-muted);
}

/* Figma onboarding flow */
.onboarding-overlay {
  position: absolute;
  inset: 48px 0 0;
  z-index: 60;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-primary);
}

.onboarding-overlay.hidden {
  display: none !important;
}

.onboarding-step-view {
  display: none;
  height: 100%;
  min-height: 0;
  padding: 16px 20px 24px;
  flex-direction: column;
  color: var(--text-main);
  box-sizing: border-box;
  animation: onboardingFadeIn 0.25s ease-out;
}

.onboarding-step-view.active {
  display: flex;
}

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

.splash-nature-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  background: #F4F6F9;
}

.splash-mountain-art {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.splash-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.splash-content-box {
  padding-top: 28%;
}

.splash-logo-mark {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #FFFFFF;
}

.splash-app-title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.splash-slogan {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 600;
}

.splash-bottom-bar {
  position: relative;
  z-index: 2;
  padding-bottom: 24px;
}

.splash-tricolor-ribbon {
  display: flex;
  width: 52px;
  height: 3px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: var(--radius-full);
}

.tricolor-saffron,
.tricolor-white,
.tricolor-green {
  flex: 1;
}

.tricolor-saffron { background: #FF9933; }
.tricolor-white { background: #FFFFFF; }
.tricolor-green { background: #138808; }

.splash-tagline {
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.splash-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(2, 132, 199, 0.25);
  transition: transform var(--transition-fast);
}
.splash-start-btn:hover {
  transform: translateY(-1px);
}

.onboarding-top-nav {
  display: flex;
  justify-content: flex-end;
  min-height: 24px;
}

.skip-text-btn {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.onboarding-hero-art {
  width: 100%;
  height: 170px;
  margin: 4px 0 12px;
}

.onboarding-title {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.onboarding-sub {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.onboarding-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onboarding-feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feat-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(2, 132, 199, 0.12);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.onboarding-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.step-dots-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: all 0.25s ease;
}

.step-dot.active {
  width: 18px;
  border-radius: 3px;
  background: var(--brand-blue);
}

.circle-next-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
  transition: transform var(--transition-fast);
}
.circle-next-btn:hover {
  transform: scale(1.05);
}

/* Screen 3: Select Interests */
.interests-grid-2x4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 20px;
}

.interest-tile {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.interest-tile:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
}

.interest-tile.selected {
  border-color: var(--brand-blue);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.08) 0%, var(--bg-surface) 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.22);
}

.interest-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.interest-tile-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.interest-check-mark {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #FFFFFF;
  display: none;
  align-items: center;
  justify-content: center;
}

.interest-tile.selected .interest-check-mark {
  display: flex;
}

/* Screen 4: Location Permission */
.location-visual-art {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 50%, #7DD3FC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  margin-top: 10px;
}

[data-theme="dark"] .location-visual-art {
  background: linear-gradient(135deg, #0F172A 0%, #0369A1 100%);
}

.location-radar-rings {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px dashed rgba(2, 132, 199, 0.4);
  animation: spinSlow 20s linear infinite;
}

.location-pin-hero {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
  z-index: 2;
  animation: pulseAlert 3s infinite ease-in-out;
}

/* Screen 5: Profile Setup Form */
.profile-form-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.profile-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.profile-input-field, .profile-select-field {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition-fast);
}

.profile-input-field:focus, .profile-select-field:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.units-toggle-segmented {
  display: flex;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
}

.unit-segment-btn {
  flex: 1;
  padding: 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.unit-segment-btn.active {
  background: var(--brand-blue);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.notification-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

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

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 24px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .switch-slider {
  background-color: var(--brand-blue);
}

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

/* ==========================================================================
   PERSONA SWITCHER SHEET (SCREEN 6)
   ========================================================================== */
.persona-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.persona-sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.persona-sheet-item:hover {
  border-color: #CBD5E1;
}

.persona-sheet-item.active {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, var(--bg-surface) 100%);
}

.persona-sheet-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.persona-sheet-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.persona-sheet-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.persona-sheet-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.persona-sheet-item.active .persona-sheet-radio {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
}

.persona-sheet-radio:after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
  display: none;
}

.persona-sheet-item.active .persona-sheet-radio:after {
  display: block;
}

/* ==========================================================================
   FIGMA-STYLE PERSONA HOMEPAGE COMPONENTS (SCREENS 7 TO 11)
   ========================================================================== */
.figma-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-top: 2px;
}

.figma-greeting-box {
  display: flex;
  flex-direction: column;
}

.figma-greeting-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.figma-loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--brand-blue);
  font-weight: 600;
  cursor: pointer;
  margin-top: 2px;
}
.figma-loc-tag:hover {
  text-decoration: underline;
}

.figma-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border: 2px solid var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  transition: transform var(--transition-fast);
}
.figma-avatar-btn:hover {
  transform: scale(1.08);
}

/* Subtabs row */
.persona-subtabs-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.subtab-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.subtab-chip:hover {
  color: var(--text-main);
}

.subtab-chip.active {
  background: var(--brand-blue);
  color: #FFFFFF;
  border-color: var(--brand-blue);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* Best Running Hours Figma Card */
.best-running-figma-card {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

[data-theme="dark"] .best-running-figma-card {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
  border-color: #047857;
}

.running-runner-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #10B981;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.running-hours-title {
  font-size: 11px;
  font-weight: 700;
  color: #065F46;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
[data-theme="dark"] .running-hours-title { color: #A7F3D0; }

.running-hours-time {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #064E3B;
  margin: 1px 0;
}
[data-theme="dark"] .running-hours-time { color: #ECFDF5; }

.running-hours-sub {
  font-size: 10px;
  color: #047857;
  font-weight: 600;
}
[data-theme="dark"] .running-hours-sub { color: #6EE7B7; }

/* 3-Metric Row */
.metric-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.metric-pill-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.metric-pill-label {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.metric-pill-val {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-main);
}

.metric-pill-sub {
  font-size: 8.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Hourly Forecast Horizontal Strip */
.hourly-forecast-track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.hourly-forecast-item {
  flex: 0 0 54px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hourly-item-time {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hourly-item-icon {
  margin-bottom: 4px;
}

.hourly-item-temp {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
}

/* Health Recommendations List */
.health-rec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.health-rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
}

.health-rec-icon {
  color: #10B981;
  flex-shrink: 0;
}

/* Traveler London Card */
.traveler-hero-card {
  position: relative;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-md);
}

.traveler-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.traveler-city-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
}

.traveler-city-temp {
  font-size: 14px;
  font-weight: 700;
  color: #93C5FD;
}

.traveler-miniforecast-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.traveler-mini-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  gap: 2px;
}

/* Crop Guidance Grid */
.crop-guidance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.crop-guidance-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.crop-card-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
}

.crop-card-badge {
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 4px;
  background: #DCFCE7;
  color: #166534;
  margin-top: 3px;
}

[data-theme="dark"] .crop-card-badge {
  background: #064E3B;
  color: #A7F3D0;
}

/* Commuter Route Map Card */
.commute-route-box {
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 12px;
  margin-top: 10px;
}

.route-map-mock {
  width: 100%;
  height: 80px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .route-map-mock {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
}

.route-line-svg {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   FLOATING VOICE ASSISTANT MIC FAB (GEMINI LIVE STYLE)
   ========================================================================== */
.floating-mic-fab {
  position: absolute;
  right: 18px;
  bottom: 86px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284C7 0%, #4F46E5 50%, #7C3AED 100%);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 44;
  box-shadow: 
    0 10px 25px -4px rgba(79, 70, 229, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.floating-mic-fab:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 14px 30px -4px rgba(79, 70, 229, 0.65), 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.floating-mic-fab:active {
  transform: scale(0.92);
}

.floating-mic-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0) 70%);
  animation: micPulseGlow 2.5s infinite ease-out;
  pointer-events: none;
  z-index: -1;
}

@keyframes micPulseGlow {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0.2; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ==========================================================================
   GEMINI-STYLE FULLSCREEN VOICE ASSISTANT MODAL
   ========================================================================== */
.voice-assistant-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 20px 32px 20px;
  color: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.voice-assistant-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

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

.voice-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #38BDF8;
}

.voice-lang-picker {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.voice-lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.voice-lang-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
}

.voice-lang-btn.active {
  background: #38BDF8;
  color: #0F172A;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

.voice-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.voice-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

/* Gemini Glowing Voice Orb Animation */
.voice-orb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  position: relative;
}

.gemini-voice-orb {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #38BDF8 0%, #6366F1 45%, #A855F7 80%, #EC4899 100%);
  position: relative;
  box-shadow: 
    0 0 50px rgba(56, 189, 248, 0.45),
    0 0 90px rgba(168, 85, 247, 0.35),
    inset -8px -8px 20px rgba(15, 23, 42, 0.6),
    inset 8px 8px 20px rgba(255, 255, 255, 0.5);
  animation: orbRotate 8s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gemini-voice-orb:hover {
  transform: scale(1.06);
}

.gemini-voice-orb.listening {
  animation: orbPulseListening 1.4s ease-in-out infinite alternate, orbRotate 7s linear infinite;
}

.gemini-voice-orb.speaking {
  animation: orbPulseSpeaking 1.6s ease-in-out infinite alternate, orbRotate 5s linear infinite;
}

@keyframes orbRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbPulseListening {
  0% { transform: scale(1); box-shadow: 0 0 40px rgba(56, 189, 248, 0.6), 0 0 80px rgba(99, 102, 241, 0.4); }
  100% { transform: scale(1.1); box-shadow: 0 0 80px rgba(56, 189, 248, 0.9), 0 0 120px rgba(99, 102, 241, 0.7); }
}

@keyframes orbPulseSpeaking {
  0% { transform: scale(0.96); box-shadow: 0 0 40px rgba(56, 189, 248, 0.4); }
  100% { transform: scale(1.15); box-shadow: 0 0 90px rgba(168, 85, 247, 0.75), 0 0 130px rgba(236, 72, 153, 0.5); }
}

/* Animated Soundwave Bars */
.voice-soundwave-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4.5px;
  height: 32px;
}

.soundwave-bar {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  animation: soundwaveJump 1.1s ease-in-out infinite;
}
.soundwave-bar:nth-child(2) { animation-delay: 0.15s; }
.soundwave-bar:nth-child(3) { animation-delay: 0.3s; }
.soundwave-bar:nth-child(4) { animation-delay: 0.45s; }
.soundwave-bar:nth-child(5) { animation-delay: 0.6s; }

.gemini-voice-orb:not(.speaking):not(.listening) .soundwave-bar {
  animation: none;
  height: 8px;
  opacity: 0.7;
}

@keyframes soundwaveJump {
  0%, 100% { height: 7px; opacity: 0.6; }
  50% { height: 26px; opacity: 1; }
}

.voice-status-label {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #F8FAFC;
  margin-top: 14px;
  text-align: center;
  min-height: 22px;
}

.voice-transcript-card {
  width: 100%;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #E2E8F0;
  max-height: 110px;
  overflow-y: auto;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.voice-quick-chips-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
  width: 100%;
  scrollbar-width: none;
}
.voice-quick-chips-row::-webkit-scrollbar { display: none; }

.voice-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 600;
  color: #F1F5F9;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.voice-chip-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.voice-bottom-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.voice-mic-main-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284C7, #2563EB);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.5);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.voice-mic-main-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 35px rgba(2, 132, 199, 0.65);
}

.voice-mic-main-btn.listening {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.7);
  animation: listeningPulse 1.5s infinite;
}

.voice-mic-main-btn.speaking {
  background: linear-gradient(135deg, #8B5CF6, #EC4899);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.7);
}

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

/* ==========================================================================
   REAL-TIME SPOKEN WORD HIGHLIGHTING (KARAOKE SYNCHRONIZED VOICE)
   ========================================================================== */
.spoken-word {
  display: inline-block;
  padding: 1px 3px;
  margin: 0 1px;
  border-radius: 4px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
}

.spoken-word.active-speaking {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(99, 102, 241, 0.5));
  color: #38BDF8 !important;
  font-weight: 700;
  transform: scale(1.12);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7), inset 0 0 4px rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

[data-theme="dark"] .spoken-word.active-speaking {
  color: #7DD3FC !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.85);
}

.spoken-word.spoken-done {
  opacity: 0.95;
  color: #E2E8F0;
}

.msg-bubble .spoken-word.active-speaking {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(79, 70, 229, 0.35));
  color: var(--brand-blue) !important;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.35);
  text-shadow: none;
}

[data-theme="dark"] .msg-bubble .spoken-word.active-speaking {
  color: #38BDF8 !important;
  background: rgba(56, 189, 248, 0.25);
}

/* Floating Voice Subtitle Card for Live Voice Briefing & Assistant playback */
.floating-voice-subtitle {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 84px;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  color: #FFFFFF;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-voice-subtitle.hidden {
  display: none;
}

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

.floating-subtitle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #38BDF8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.floating-subtitle-text {
  font-size: 12px;
  line-height: 1.5;
  color: #F1F5F9;
  max-height: 72px;
  overflow-y: auto;
}

.floating-subtitle-stop-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.floating-subtitle-stop-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   SERVICES & PROBLEM STATEMENT MENU MODAL (HEADER ☰ DRAWER)
   ========================================================================== */
.services-grid-modal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
  max-height: 480px;
  overflow-y: auto;
  padding-bottom: 12px;
}

.service-tile-item {
  background: var(--bg-surface-elevated);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.service-tile-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-card-hover);
}

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

.service-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-badge-tag {
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
}

.service-tile-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.service-tile-desc {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   SMART TRIP PLANNER & KISAN MITRA HUB (SCREEN 2)
   ========================================================================== */
.services-tab-carousel {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 16px;
  margin-left: -16px;
  margin-right: -16px;
  padding: 2px 16px;
}
.services-tab-carousel::-webkit-scrollbar { display: none; }

.services-tab-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.services-tab-chip.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

[data-theme="dark"] .services-tab-chip.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* Trip Planner Route Box */
.trip-route-picker {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trip-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trip-input-row select {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
}

.trip-hazard-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  color: #92400E;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

[data-theme="dark"] .trip-hazard-banner {
  background: #78350F;
  border-color: #92400E;
  color: #FEF3C7;
}

/* Kisan Soil & Crop Tiles */
.kisan-moisture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.kisan-moisture-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.kisan-moisture-val {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-emerald);
  margin: 4px 0;
}

.kisan-moisture-label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.spray-safe-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #DCFCE7;
  color: #166534;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .spray-safe-pill {
  background: #064E3B;
  color: #A7F3D0;
}

/* ==========================================================================
   FIGMA SCREEN 04: HOME (FITNESS) & PERSONA HERO ILLUSTRATION SYSTEM
   ========================================================================== */
.figma-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}

.figma-greeting-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.figma-greeting-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.figma-loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.figma-loc-tag:hover {
  color: var(--brand-blue);
}

.figma-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.figma-notif-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.figma-notif-btn:hover {
  background: var(--bg-surface-elevated);
  transform: scale(1.05);
}

.figma-notif-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #EF4444;
  border-radius: 50%;
  border: 1.5px solid #FFFFFF;
}

.figma-avatar-header-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  background: #E2E8F0;
  padding: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.figma-avatar-header-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.figma-avatar-header-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero Weather Illustrated Card (Figma Screen 04) */
.figma-hero-illustrated-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.12), 0 0 1px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #E0F2FE;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.figma-hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.5s ease-in-out;
  z-index: 1;
}

.figma-hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.35) 0%, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.5) 65%, #FFFFFF 100%);
  z-index: 2;
  pointer-events: none;
}

[data-theme="dark"] .figma-hero-scrim {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.15) 30%, rgba(15, 23, 42, 0.7) 65%, #1E293B 100%);
}

.figma-hero-content {
  position: relative;
  z-index: 3;
  padding: 18px 16px 16px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  min-height: 400px;
}

.figma-weather-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.figma-sun-3d-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 18px rgba(245, 158, 11, 0.4));
  animation: floatSun 4s infinite ease-in-out;
}

@keyframes floatSun {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.03); }
}

.figma-3d-sun-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.figma-weather-text-block {
  text-align: right;
}

.figma-temp-large {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: #0F172A;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .figma-temp-large {
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.figma-feels-like-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .figma-feels-like-text {
  color: #CBD5E1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.figma-condition-tag {
  font-size: 12px;
  font-weight: 700;
  color: #0284C7;
}

/* Floating Best Time to Run Card */
.figma-best-time-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.1), 0 0 1px rgba(0, 0, 0, 0.05);
  margin-top: auto;
  margin-bottom: 12px;
  transition: transform var(--transition-fast);
}

[data-theme="dark"] .figma-best-time-card {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.35);
}

.figma-runner-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2);
}

[data-theme="dark"] .figma-runner-icon-wrap {
  background: #064E3B;
  color: #34D399;
}

.figma-best-time-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.figma-best-time-range {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin: 1px 0;
}

.figma-best-time-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: #16A34A;
}

[data-theme="dark"] .figma-best-time-sub {
  color: #34D399;
}

/* 3-Metrics Grid (AQI, UV, Wind) */
.figma-3metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.figma-metric-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 10px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: transform var(--transition-fast);
}

[data-theme="dark"] .figma-metric-card {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.figma-metric-head {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.figma-metric-val {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin: 2px 0 1px 0;
}

.figma-metric-status {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.figma-status-good {
  background: #DCFCE7;
  color: #166534;
}

.figma-status-mod {
  background: #FEF3C7;
  color: #92400E;
}

.figma-status-wind {
  color: var(--text-muted);
  font-weight: 600;
}

[data-theme="dark"] .figma-status-good {
  background: #064E3B;
  color: #A7F3D0;
}

[data-theme="dark"] .figma-status-mod {
  background: #78350F;
  color: #FDE68A;
}

/* ==========================================================================
   FIGMA SCREEN 12: PROFILE & ACCOUNT VIEW
   ========================================================================== */
.figma-profile-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
}

.figma-profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 24px 16px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.figma-profile-avatar-big {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FFFFFF;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.2);
  margin-bottom: 12px;
  position: relative;
}

.figma-profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figma-profile-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.figma-profile-email {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Menu list matching Screen 12 */
.figma-menu-list {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.figma-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background var(--transition-fast);
}

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

.figma-menu-item:hover {
  background: var(--bg-surface-elevated);
}

.figma-menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.figma-menu-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284C7;
  background: rgba(2, 132, 199, 0.1);
}

.figma-menu-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.figma-menu-item-sub {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.2;
}

.figma-menu-item-right {
  color: var(--text-light);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.figma-sign-out-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 18px;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  color: #DC2626;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.figma-sign-out-btn:hover {
  background: #FCA5A5;
  color: #991B1B;
}

[data-theme="dark"] .figma-sign-out-btn {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #F87171;
}

/* ==========================================================================
   SERVICES MENU BOTTOM SHEET GRID
   ========================================================================== */
.services-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 4px 0 8px 0;
}

.service-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.service-menu-item:hover {
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .service-menu-item {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .service-menu-item:hover {
  background: #334155;
  border-color: rgba(56, 189, 248, 0.3);
}

.service-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-menu-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-menu-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-menu-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   LANGUAGE SELECTOR MODAL
   ========================================================================== */
.language-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 12px 0;
}

.lang-select-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-select-item:hover {
  border-color: #0284C7;
  background: rgba(2, 132, 199, 0.04);
}

.lang-select-item.active {
  border-color: #0284C7;
  background: rgba(2, 132, 199, 0.08);
}

[data-theme="dark"] .lang-select-item {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .lang-select-item.active {
  border-color: #38BDF8;
  background: rgba(56, 189, 248, 0.12);
}

.lang-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-code-pill {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #E0F2FE;
  color: #0284C7;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .lang-code-pill {
  background: rgba(56, 189, 248, 0.2);
  color: #38BDF8;
}

.lang-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.lang-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.lang-check-icon {
  display: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0284C7;
  color: #FFFFFF;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lang-select-item.active .lang-check-icon {
  display: flex;
}

[data-theme="dark"] .lang-check-icon {
  background: #38BDF8;
  color: #0F172A;
}

/* ==========================================================================
   FIGMA SCREEN 10: AI ASSISTANT VERTICAL PILLS & CLOUD BOT
   ========================================================================== */
.figma-ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.figma-ai-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.figma-ai-cloud-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284C7, #0369A1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.figma-ai-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
}

.figma-ai-badge-beta {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: #0F172A;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="dark"] .figma-ai-badge-beta {
  background: var(--brand-sky);
  color: #0F172A;
}

.figma-vertical-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.figma-prompt-pill {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1.5px solid rgba(14, 165, 233, 0.35);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: #0284C7;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.figma-prompt-pill:hover {
  background: #F0F9FF;
  border-color: #0284C7;
  transform: translateX(3px);
}

[data-theme="dark"] .figma-prompt-pill {
  background: var(--bg-surface);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.3);
}

[data-theme="dark"] .figma-prompt-pill:hover {
  background: #0B2447;
  border-color: #38BDF8;
}

.figma-chat-send-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.figma-chat-send-circle:hover {
  transform: scale(1.06);
  background: #0284C7;
}

/* ==========================================================================
   FIGMA SETUP FLOW & ONBOARDING PHOTO ART (SCREENS 1 TO 5)
   ========================================================================== */
.onboarding-photo-splash {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.onboarding-photo-splash img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.onboarding-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
}

.onboarding-profile-avatar-setup {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.onboarding-avatar-preview-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--brand-blue);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.25);
  margin-bottom: 6px;
}

.onboarding-avatar-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   5 YEARS AGO — WHAT WAS THIS DAY LIKE? (HISTORICAL COMPARISON CARD)
   Clean, Modern, Aesthetic, Minimalist Glassmorphism Widget
   ========================================================================== */

/* Micro Icon Utility Classes */
.icon-xxs { width: 12px; height: 12px; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.icon-md { width: 22px; height: 22px; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; flex-shrink: 0; }

.historical-comp-card {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 14px 14px 16px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.historical-comp-card:hover {
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="dark"] .historical-comp-card {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .historical-comp-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Card Top Header */
.h-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.h-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.h-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(2, 132, 199, 0.08);
  color: #0284C7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(2, 132, 199, 0.18);
}

[data-theme="dark"] .h-pill-tag {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.25);
}

.h-date-range {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.h-vs-text {
  font-weight: 700;
  color: #0284C7;
  font-size: 9.5px;
  text-transform: uppercase;
  margin: 0 2px;
}

[data-theme="dark"] .h-vs-text {
  color: #38BDF8;
}

.h-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.h-action-btn:hover {
  background: rgba(2, 132, 199, 0.1);
  color: #0284C7;
  transform: rotate(45deg);
}

[data-theme="dark"] .h-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Fluid Side-by-Side Hero Comparison */
.h-hero-compare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.5) 100%);
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

[data-theme="dark"] .h-hero-compare {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.3) 100%);
  border-color: rgba(255, 255, 255, 0.05);
}

.h-temp-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.h-side-past {
  align-items: flex-end;
  text-align: right;
}

.h-side-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
}

.h-side-past .h-side-meta {
  flex-direction: row-reverse;
}

.h-time-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 1px 6px;
  border-radius: 4px;
}

.h-side-today .h-time-label {
  background: rgba(2, 132, 199, 0.12);
  color: #0284C7;
}

[data-theme="dark"] .h-side-today .h-time-label {
  background: rgba(56, 189, 248, 0.18);
  color: #38BDF8;
}

.h-side-past .h-time-label {
  background: rgba(100, 116, 139, 0.12);
  color: #64748B;
}

[data-theme="dark"] .h-side-past .h-time-label {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
}

.h-cond-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-main);
}

.h-big-temp {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  font-family: var(--font-display, inherit);
  letter-spacing: -0.5px;
}

.h-past-temp {
  color: #64748B;
}

[data-theme="dark"] .h-past-temp {
  color: #94A3B8;
}

/* Center Floating Delta Capsule */
.h-delta-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  flex-shrink: 0;
}

.h-delta-capsule {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.h-delta-capsule.delta-warmer {
  background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 100%);
  color: #B45309;
  border: 1px solid #FCD34D;
}

[data-theme="dark"] .h-delta-capsule.delta-warmer {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.4);
}

.h-delta-capsule.delta-cooler {
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
  color: #0369A1;
  border: 1px solid #7DD3FC;
}

[data-theme="dark"] .h-delta-capsule.delta-cooler {
  background: rgba(14, 165, 233, 0.2);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.4);
}

.h-delta-capsule.delta-equal {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
}

[data-theme="dark"] .h-delta-capsule.delta-equal {
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  border-color: rgba(255, 255, 255, 0.15);
}

.h-delta-sub {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

/* 4-Column Micro Metrics Grid */
.h-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.h-metric-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 2px 5px 2px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

[data-theme="dark"] .h-metric-chip {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.h-chip-header {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
  white-space: nowrap;
}

.h-chip-compare {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.h-cur-val {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.h-past-val {
  font-size: 8.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.1;
}

/* Percentage of Change Badges */
.h-pct-badge {
  font-size: 8px;
  font-weight: 800;
  border-radius: 4px;
  padding: 1px 4px;
  margin-top: 3px;
  line-height: 1.1;
  letter-spacing: -0.2px;
}

.h-pct-badge.pct-up {
  background: rgba(245, 158, 11, 0.14);
  color: #B45309;
}

[data-theme="dark"] .h-pct-badge.pct-up {
  background: rgba(245, 158, 11, 0.22);
  color: #FBBF24;
}

.h-pct-badge.pct-down {
  background: rgba(2, 132, 199, 0.12);
  color: #0284C7;
}

[data-theme="dark"] .h-pct-badge.pct-down {
  background: rgba(56, 189, 248, 0.22);
  color: #38BDF8;
}

.h-pct-badge.pct-neutral {
  background: rgba(100, 116, 139, 0.1);
  color: #64748B;
}

[data-theme="dark"] .h-pct-badge.pct-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
}

/* Interactive 3-Tab Navigator */
.h-insight-tabs-nav {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 8px;
}

[data-theme="dark"] .h-insight-tabs-nav {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.h-insight-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 4px;
  border-radius: 9px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.h-insight-tab-btn:hover {
  color: var(--text-main);
}

.h-insight-tab-btn.active {
  background: var(--bg-card);
  color: #0284C7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-weight: 800;
}

[data-theme="dark"] .h-insight-tab-btn.active {
  background: #1E293B;
  color: #38BDF8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Tab Panes */
.h-tab-pane {
  display: none;
  animation: fadeIn 0.25s ease;
}

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

/* AI Climate Insight & Safety Capsule (Tab 1) */
.h-insight-capsule {
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 12px;
  padding: 9px 10px;
}

[data-theme="dark"] .h-insight-capsule {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
}

.h-insight-lead {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 6px;
}

.h-ai-icon {
  margin-top: 1px;
  flex-shrink: 0;
  color: #6366F1;
}

[data-theme="dark"] .h-ai-icon {
  color: #818CF8;
}

.h-insight-text {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--text-main);
  margin: 0;
}

.h-insight-text strong {
  color: #0284C7;
  font-weight: 700;
}

[data-theme="dark"] .h-insight-text strong {
  color: #38BDF8;
}

/* Action Tags & Risks */
.h-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.h-mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 2.5px 7px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
}

.h-mini-tag.risk-amber {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}
[data-theme="dark"] .h-mini-tag.risk-amber {
  background: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.35);
}

.h-mini-tag.risk-sky {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}
[data-theme="dark"] .h-mini-tag.risk-sky {
  background: rgba(14, 165, 233, 0.18);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.35);
}

.h-mini-tag.risk-blue {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}
[data-theme="dark"] .h-mini-tag.risk-blue {
  background: rgba(59, 130, 246, 0.18);
  color: #60A5FA;
  border-color: rgba(96, 165, 250, 0.35);
}

.h-mini-tag.risk-cyan {
  background: #CFFAFE;
  color: #155E75;
  border: 1px solid #A5F3FC;
}
[data-theme="dark"] .h-mini-tag.risk-cyan {
  background: rgba(6, 182, 212, 0.18);
  color: #22D3EE;
  border-color: rgba(34, 211, 238, 0.35);
}

.h-mini-tag.risk-emerald {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}
[data-theme="dark"] .h-mini-tag.risk-emerald {
  background: rgba(34, 197, 94, 0.18);
  color: #4ADE80;
  border-color: rgba(74, 222, 128, 0.35);
}

.h-mini-tag.risk-rose {
  background: #FFE4E6;
  color: #9F1239;
  border: 1px solid #FECDD3;
}
[data-theme="dark"] .h-mini-tag.risk-rose {
  background: rgba(244, 63, 94, 0.18);
  color: #FB7185;
  border-color: rgba(251, 113, 133, 0.35);
}

.h-mini-tag.h-precaution-tag {
  background: rgba(16, 185, 129, 0.08);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .h-mini-tag.h-precaution-tag {
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Harmful Impacts Container (Tab 2) */
.h-harm-container {
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  padding: 8px 10px;
}

[data-theme="dark"] .h-harm-container {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.22);
}

.h-impact-sec-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 5px;
}

.h-impact-cards-list,
.h-solution-cards-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.h-impact-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 8px;
}

[data-theme="dark"] .h-impact-item {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.h-impact-item-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.h-impact-item-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.h-impact-item-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.h-impact-item-desc {
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--text-muted);
  margin: 0;
}

/* Solutions Container (Tab 3) */
.h-solution-container {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 12px;
  padding: 8px 10px;
}

[data-theme="dark"] .h-solution-container {
  background: rgba(16, 185, 129, 0.07);
  border-color: rgba(16, 185, 129, 0.25);
}

.h-solution-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 6px 8px;
}

[data-theme="dark"] .h-solution-item {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.h-solution-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

[data-theme="dark"] .h-solution-icon {
  background: rgba(16, 185, 129, 0.2);
}

.h-solution-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.h-solution-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.h-solution-desc {
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--text-muted);
  margin: 0;
}

/* Skeleton Loading State */
.h-loading-skeleton {
  padding: 10px 0 4px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h-skel-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
}

.h-skel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.h-skel-chip {
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
}

[data-theme="dark"] .h-skel-line,
[data-theme="dark"] .h-skel-chip {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
}

.h-empty-notice {
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 0;
  margin: 0;
}

/* ==========================================================================
   7-DAY WEEKLY FORECAST & SMART CLIMATE INSIGHTS (FIGMA / SLEEK MODERN)
   ========================================================================== */
.weekly-forecast-card {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 14px 14px 16px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.weekly-forecast-card:hover {
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="dark"] .weekly-forecast-card {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .weekly-forecast-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* Card Top Header */
.wf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wf-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wf-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(2, 132, 199, 0.08);
  color: #0284C7;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(2, 132, 199, 0.18);
}

[data-theme="dark"] .wf-pill-tag {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.25);
}

.wf-subtitle {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Segmented View Switcher (Forecast vs Insights) */
.wf-view-switcher {
  display: inline-flex;
  gap: 3px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2.5px;
}

[data-theme="dark"] .wf-view-switcher {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.wf-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wf-view-btn:hover {
  color: var(--text-main);
}

.wf-view-btn.active {
  background: var(--bg-card);
  color: #0284C7;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-weight: 800;
}

[data-theme="dark"] .wf-view-btn.active {
  background: #1E293B;
  color: #38BDF8;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* 7-Day List & Day Rows */
.wf-days-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wf-day-row {
  display: flex;
  flex-direction: column;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.wf-day-row:hover {
  background: rgba(2, 132, 199, 0.04);
  border-color: rgba(2, 132, 199, 0.2);
}

[data-theme="dark"] .wf-day-row {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .wf-day-row:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
}

.wf-day-row.is-today {
  border-left: 3px solid #0284C7;
  background: rgba(2, 132, 199, 0.05);
}

[data-theme="dark"] .wf-day-row.is-today {
  border-left-color: #38BDF8;
  background: rgba(56, 189, 248, 0.08);
}

.wf-day-main-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Day Meta */
.wf-day-meta {
  width: 58px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.wf-day-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.wf-day-date {
  font-size: 8.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 1px;
}

/* Condition Cell */
.wf-cond-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.wf-icon-wrap {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wf-cond-text-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

.wf-cond-text {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-pop-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(2, 132, 199, 0.12);
  color: #0284C7;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  flex-shrink: 0;
}

[data-theme="dark"] .wf-pop-chip {
  background: rgba(56, 189, 248, 0.18);
  color: #38BDF8;
}

/* Temperature Range Bar */
.wf-temp-range-box {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 120px;
  flex-shrink: 0;
  justify-content: flex-end;
}

.wf-temp-val {
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

.wf-min-temp {
  color: var(--text-muted);
  width: 26px;
  text-align: right;
}

.wf-max-temp {
  color: var(--text-main);
  font-weight: 800;
  width: 26px;
  text-align: left;
}

.wf-range-track {
  flex: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .wf-range-track {
  background: rgba(255, 255, 255, 0.1);
}

.wf-range-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #38BDF8 0%, #F59E0B 60%, #EF4444 100%);
  border-radius: 4px;
}

/* Expandable Detail Pane */
.wf-day-detail-pane {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
  animation: fadeIn 0.2s ease;
}

.wf-sub-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   WEEKLY SMART AI INSIGHTS VIEW
   ========================================================================== */
.wf-insights-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.25s ease;
}

.wf-ai-box {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 14px;
  padding: 10px 12px;
}

[data-theme="dark"] .wf-ai-box {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.22);
}

.wf-ai-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.wf-ai-title {
  font-size: 10.5px;
  font-weight: 800;
  color: #6366F1;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

[data-theme="dark"] .wf-ai-title {
  color: #818CF8;
}

.wf-ai-text {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--text-main);
  margin: 0;
}

.wf-ai-text strong {
  color: #0284C7;
  font-weight: 700;
}

[data-theme="dark"] .wf-ai-text strong {
  color: #38BDF8;
}

/* 4-Stat Highlight Grid */
.wf-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.wf-highlight-card {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 10px;
}

[data-theme="dark"] .wf-highlight-card {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.wf-hl-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .wf-hl-icon {
  background: rgba(255, 255, 255, 0.05);
}

.wf-hl-content {
  display: flex;
  flex-direction: column;
}

.wf-hl-label {
  font-size: 8.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.wf-hl-val {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

/* Advisories List */
.wf-advisories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wf-adv-sec-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.wf-adv-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 8px 10px;
}

[data-theme="dark"] .wf-adv-item {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
}

.wf-adv-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(2, 132, 199, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

[data-theme="dark"] .wf-adv-icon {
  background: rgba(56, 189, 248, 0.15);
}

.wf-adv-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wf-adv-item-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
}

.wf-adv-item-desc {
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--text-muted);
  margin: 0;
}

.wf-adv-item-desc strong {
  color: var(--text-main);
  font-weight: 700;
}





