/* --- Core Structural Overrides & Variables --- */
body.traffic-lock { 
  overflow: hidden; 
  touch-action: none; 
}

#trafficComponentContainer {
  width: 100%;
  height: 42px;
  position: relative;
  z-index: 999999;
  vertical-align: middle;
  font-family: system-ui, -apple-system, sans-serif;
}

/* --- Ticker Strip Layout Properties --- */
.traffic-ticker-container { 
  display: flex; 
  align-items: center; 
  overflow: hidden; 
  height: 40px; 
  position: relative; 
  cursor: pointer;
  background: #1a1a1a;
} 

.ticker-label { 
  border-radius: 1000px; 
  color: #fff; 
  padding: 0 12px 0 16px; 
  height: 100%; 
  display: flex; 
  align-items: center; 
  font-weight: 700; 
  font-size: 11px; 
  letter-spacing: 1px; 
  white-space: nowrap; 
  z-index: 20; 
  box-shadow: 6px 0 12px rgba(0,0,0,0.5); 
  gap: 8px;
} 

.tap-indicator-dot {
  width: 6px; 
  height: 6px; 
  background-color: red; 
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0.7); 
  animation: pulseHint 2s infinite;
}

@keyframes pulseHint {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.ticker-action-hint {
  position: absolute; 
  right: 0; 
  top: 0; 
  height: 100%;
  background: linear-gradient(90deg, rgba(26,26,26,0) 0%, rgba(26,26,26,0.95) 20%, #1a1a1a 100%);
  color: #ff3b30; 
  font-size: 11px; 
  font-weight: 700; 
  letter-spacing: 0.5px;
  display: flex; 
  align-items: center; 
  padding: 0 16px 0 40px; 
  z-index: 20;
  pointer-events: none; 
  opacity: 0; 
  transform: translateX(10px); 
  transition: opacity 0.4s, transform 0.4s;
}

.ticker-action-hint.show-hint { 
  opacity: 1; 
  transform: translateX(0); 
}

.ticker-wrap { display: flex; width: 100%; overflow: hidden; position: relative; height: 100%; align-items: center; } 
.ticker { display: flex; white-space: nowrap; position: absolute; left: 0; will-change: transform; padding-left: 10px; } 
.ticker-item { display: inline-block; color: #e5e5e5; padding: 0 1.5rem; font-size: 13px; } 
.ticker-time { color: #8e8e93; font-size: 11px; margin-left: 4px; } 
.ticker-divider { color: #ff3b30; margin: 0 4px; font-weight: bold; }

/* --- Fullscreen Overlay Window Container --- */
.overlay-viewport-cover {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999999;
  touch-action: none; 
}

.overlay-viewport-cover.is-active { 
  opacity: 1; 
  pointer-events: auto; 
}

.dashboard-card {
  width: 100%; max-width: 680px; height: 100%; margin: 0 auto;
  display: flex; flex-direction: column; overflow: hidden; background: transparent; 
  transform: translateY(20px); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay-viewport-cover.is-active .dashboard-card { 
  transform: translateY(0); 
}

.modal-header { 
  display: flex; justify-content: space-between; align-items: center; padding: 24px 20px; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); z-index: 10; background: rgba(10, 10, 12, 0.1);
}

.modal-header h3 { 
  margin: 0; color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;   
}

.close-btn {
  background: rgba(255, 255, 255, 0.1); border: none; color: #fff; font-size: 22px; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s, transform 0.2s;
}
.close-btn:hover { background: rgba(255, 255, 255, 0.18); transform: scale(1.05); }

.modal-content-list { 
  padding: 10px 20px 0px 20px; overflow-y: auto; flex: 1;
  touch-action: pan-y; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent; position: relative;
}
.modal-content-list::-webkit-scrollbar { width: 6px; }
.modal-content-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 10px; }

/* --- Dashboard Items Structure --- */
.modal-list-item { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 10px; }
.severity-badge { 
  color: #fff; font-size: 10px; font-weight: 800; padding: 3px 0; width: 58px;               
  text-align: center; border-radius: 4px; text-transform: uppercase; white-space: nowrap; display: inline-block; flex-shrink: 0;            
}
.item-title { color: #f3f3f6; font-weight: 500; line-height: 1.45; font-size: 14.5px; text-align: left; }
.item-meta { display: flex; justify-content: space-between; align-items: center; margin-left: 70px; font-size: 12.5px; color: #a1a1aa; }
.verify-link { color: #34c759; text-decoration: none; font-weight: 600; }
.verify-link:hover { text-decoration: underline; }

/* --- Promo Pull-Up Animations --- */
.promo-trigger-wrapper { margin-top: 40px; min-height: calc(100% - 60px); display: flex; flex-direction: column; justify-content: flex-start; position: relative; }
.promo-card {
  background: linear-gradient(180deg, rgba(52, 199, 89, 0.02) 0%, rgba(52, 199, 89, 0.08) 100%);
  border: 1px dashed rgba(52, 199, 89, 0.4); border-radius: 20px; padding: 40px 24px; text-align: center; margin-top: 20px; will-change: transform, opacity; transition: border-style 0.3s;
}
.promo-badge { display: inline-block; background: #34c759; color: #000; font-size: 9px; font-weight: 900; padding: 3px 12px; border-radius: 20px; letter-spacing: 0.8px; margin-bottom: 16px; }
.promo-card h4 { margin: 0 0 12px 0; color: #fff; font-size: 22px; font-weight: 800; }
.promo-card p { margin: 0 auto 32px auto; color: #d1d1d6; font-size: 14px; line-height: 1.6; max-width: 400px; }
.promo-btn { display: inline-block; background: #34c759; color: #000; text-decoration: none; font-weight: 700; font-size: 14px; padding: 12px 36px; border-radius: 24px; box-shadow: 0 8px 24px rgba(52, 199, 89, 0.2); transition: transform 0.2s, background-color 0.2s; }
.promo-btn:hover { transform: scale(1.03); background: #2ec051; }
.promo-card.snapped-fullscreen { border-style: solid; background: #0b0b0d; }
