/* ==========================================================================
   AI STATUS HUB - NOTION MONOCHROME DESIGN SYSTEM
   Strict Black & White Palette with Red (#eb5757) for Outages/Alerts Only.
   High Contrast & Enhanced Readability Edition.
   ========================================================================== */

:root {
  /* Notion Dark Theme (Default) - High Contrast & Crisp Readability */
  --bg-page: #191919;
  --bg-surface: #202020;
  --bg-surface-hover: #292929;
  --bg-card: #202020;
  --bg-subtle: #292929;
  --bg-subtle-hover: #333333;
  --border-color: #333333;
  --border-color-hover: #4a4a4a;

  --text-main: #ffffff;
  --text-muted: #b8b7b3;
  --text-dim: #8e8d8a;
  --text-inverse: #191919;

  /* Notion Monochrome Status Tokens */
  --status-normal-bg: rgba(255, 255, 255, 0.08);
  --status-normal-border: #404040;
  --status-normal-text: #ffffff;
  --status-normal-dot: #ffffff;

  /* Notion Red (Outages / Degraded Performance Only) */
  --color-red: #eb5757;
  --color-red-bg: rgba(235, 87, 87, 0.15);
  --color-red-border: rgba(235, 87, 87, 0.45);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  --font-sans: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
  /* Notion Light Theme - High Contrast */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f7f6f3;
  --bg-card: #ffffff;
  --bg-subtle: #f7f6f3;
  --bg-subtle-hover: #ebe9e5;
  --border-color: #deddd9;
  --border-color-hover: #c4c2ba;

  --text-main: #201f1d;
  --text-muted: #4e4d49;
  --text-dim: #706e69;
  --text-inverse: #ffffff;

  --status-normal-bg: #f1f1ef;
  --status-normal-border: #dcdbd6;
  --status-normal-text: #201f1d;
  --status-normal-dot: #201f1d;

  --color-red: #eb5757;
  --color-red-bg: #ffe2dd;
  --color-red-border: #f8c9c4;
}

/* ==========================================================================
   RESET & BASE STYLES (ENHANCED FONT WEIGHT FOR READABILITY)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-page);
  font-weight: 450;
}

p, span, li, a, button, input {
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HEADER / NAVBAR (SYMMETRICAL 3-COLUMN NOTION BAR)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* Left: Brand */
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-logo-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.badge-live-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color-hover);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.brand-tagline {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Center: Countdown Card */
.header-center {
  justify-self: center;
}

.countdown-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: default;
  transition: all 0.15s ease;
}

.countdown-card:hover {
  background: var(--bg-subtle-hover);
  border-color: var(--border-color-hover);
}

.countdown-svg-wrap {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-svg {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 3.5;
}

.circle-progress {
  fill: none;
  stroke: var(--text-main);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 1s linear;
}

.countdown-icon {
  position: absolute;
  font-size: 9px;
}

.countdown-text-group {
  display: flex;
  flex-direction: column;
}

.countdown-label {
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 650;
}

.countdown-timer {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Right: Action Buttons & Menu */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

/* Menu Dropdown */
.menu-dropdown-wrap {
  position: relative;
}

.btn-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.menu-dropdown-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  z-index: 1000;
  flex-direction: column;
  gap: 2px;
}

.menu-dropdown-popover.open {
  display: flex;
}

.menu-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}

.menu-dropdown-item:hover, .menu-dropdown-item.active {
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 650;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-action:hover {
  background: var(--bg-subtle-hover);
  border-color: var(--border-color-hover);
}

.refresh-icon {
  width: 13px;
  height: 13px;
}

.spinning {
  animation: spinRotate 0.8s linear infinite;
}

@keyframes spinRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

/* ==========================================================================
   MAIN LAYOUT WRAPPER
   ========================================================================== */
.main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 90px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-detail-wrapper {
  max-width: 860px;
}

/* ==========================================================================
   HERO STATUS BANNER
   ========================================================================== */
.hero-status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  transition: border-color 0.2s ease;
}

.hero-status-card.status-issue {
  border-color: var(--color-red-border);
  background: var(--color-red-bg);
}

.hero-status-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 320px;
}

.hero-status-badge-wrap {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-status-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--text-main);
}

.hero-status-card.status-issue .hero-status-icon-box {
  background: var(--color-red-bg);
  border-color: var(--color-red-border);
  color: var(--color-red);
}

.hero-status-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-status-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-status-title {
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.hero-status-desc {
  font-size: 0.86rem;
  font-weight: 450;
  color: var(--text-muted);
  max-width: 660px;
  line-height: 1.5;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex-shrink: 0;
}

.stat-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  text-align: center;
  min-width: 96px;
}

.stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   CENTERED NEWSLETTER & MULTI-SELECT SUBSCRIPTION SECTION
   ========================================================================== */
.subscribe-card {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.subscribe-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.subscribe-card .detail-section-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
}

.subscribe-card .detail-section-subtitle {
  font-size: 0.84rem;
  font-weight: 450;
  color: var(--text-muted);
  max-width: 520px;
  margin: 4px auto 0;
  line-height: 1.45;
}

.subscribe-form-v2 {
  width: 100%;
  display: flex;
  justify-content: center;
}

.subscribe-inputs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 580px;
}

/* Reduced width & increased height for email input */
.subscribe-input {
  width: 220px;
  max-width: 240px;
  flex: 0 1 220px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.15s ease;
}

.subscribe-input:focus {
  border-color: var(--text-main);
}

/* Custom Multi-Select Dropdown Container */
.services-dropdown-container {
  position: relative;
  width: 210px;
  flex: 0 1 210px;
}

.services-dropdown-trigger {
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.15s ease;
}

.services-dropdown-trigger:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-subtle-hover);
}

.dropdown-trigger-icon {
  font-size: 13px;
}

.dropdown-trigger-text {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-chevron {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.services-dropdown-trigger[aria-expanded="true"] .dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu Popover */
.services-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  flex-direction: column;
  overflow: hidden;
  animation: modalFadeIn 0.15s ease-out;
  text-align: left;
}

.services-dropdown-menu.open {
  display: flex;
}

.dropdown-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.dropdown-header-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}

.dropdown-quick-actions {
  display: flex;
  gap: 4px;
}

.btn-quick-toggle {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-toggle:hover {
  color: var(--text-main);
  background: var(--bg-subtle-hover);
  border-color: var(--border-color-hover);
}

.dropdown-search-wrap {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.dropdown-filter-input {
  width: 100%;
  padding: 6px 9px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 500;
  outline: none;
}

.dropdown-services-list {
  max-height: 240px;
  overflow-y: auto;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dropdown-service-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-main);
  user-select: none;
  transition: background-color 0.12s ease;
}

.dropdown-service-item:hover {
  background: var(--bg-subtle);
}

.dropdown-service-item input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--text-main);
}

.dropdown-item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-item-cat {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 550;
}

.dropdown-menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.dropdown-selection-count {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-dim);
}

.btn-dropdown-confirm {
  padding: 5px 14px;
  background: var(--text-main);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.subscribe-btn {
  height: 42px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: var(--text-main);
  color: var(--text-inverse);
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

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

.subscribe-feedback {
  margin-top: 10px;
  font-weight: 550;
}

/* ==========================================================================
   TOOLBAR: CATEGORY FILTER TABS
   ========================================================================== */
.toolbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  color: var(--text-main);
  border-color: var(--border-color-hover);
}

.filter-pill.active {
  background: var(--text-main);
  color: var(--text-inverse);
  border-color: var(--text-main);
  font-weight: 700;
}

.filter-pill.pill-alert.active {
  background: var(--color-red);
  color: #ffffff;
  border-color: var(--color-red);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-issue { background: var(--color-red); }

.pill-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
}

.toolbar-meta-note {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ==========================================================================
   PROVIDERS GRID (3 COLUMNS)
   ========================================================================== */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.provider-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease;
}

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

.provider-card.has-incident {
  border-color: var(--color-red-border);
}

.provider-card.sponsored-ad-card {
  border: 1px solid var(--border-color-hover);
  background: var(--bg-card);
}

.provider-card.sponsored-ad-card:hover {
  border-color: var(--text-main);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.provider-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.provider-logo-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-main);
  flex-shrink: 0;
}

.provider-meta {
  display: flex;
  flex-direction: column;
}

.provider-name {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.provider-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
}

.provider-page-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-color-hover);
  transition: color 0.15s ease;
  padding-bottom: 1px;
}

.provider-page-link:hover {
  color: var(--text-main);
}

.card-status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.status-indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 650;
  transition: all 0.2s ease;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-operational {
  background: var(--status-normal-bg);
  color: var(--status-normal-text);
  border: 1px solid var(--status-normal-border);
}
.status-operational .status-dot {
  background: var(--status-normal-dot);
}

.status-minor, .status-degraded, .status-major, .status-outage {
  background: var(--color-red-bg);
  color: var(--color-red);
  border: 1px solid var(--color-red-border);
}
.status-minor .status-dot, .status-degraded .status-dot, .status-major .status-dot, .status-outage .status-dot {
  background: var(--color-red);
}

.status-loading {
  background: var(--bg-subtle);
  color: var(--text-dim);
  border: 1px solid var(--border-color);
}
.status-loading .status-dot {
  background: var(--text-dim);
}

.latency-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.status-summary-text {
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.45;
  min-height: 18px;
}

/* 30-Day Uptime Bar */
.uptime-bar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.uptime-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
}

.uptime-percent {
  font-family: var(--font-mono);
  color: var(--text-main);
  font-weight: 700;
}

.uptime-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.uptime-bar-segment {
  flex: 1;
  height: 100%;
  border-radius: 1px;
  background: var(--text-dim);
  opacity: 0.55;
  transition: opacity 0.15s ease;
  cursor: pointer;
}

.uptime-bar-segment:hover {
  opacity: 1;
  background: var(--text-main);
}

.uptime-bar-segment.segment-minor, .uptime-bar-segment.segment-major {
  background: var(--color-red);
  opacity: 0.95;
}

/* ==========================================================================
   COMPONENTS ACCORDION & TABLE (NOTION REFINED)
   ========================================================================== */
.components-accordion {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
}

.accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  background: var(--bg-subtle);
  border: none;
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.accordion-toggle:hover {
  background: var(--bg-subtle-hover);
}

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

.accordion-arrow {
  width: 12px !important;
  height: 12px !important;
  max-width: 12px;
  max-height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.accordion-toggle[aria-expanded="true"] .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-panel {
  display: none;
  padding: 6px 10px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  flex-direction: column;
  gap: 4px;
}

.accordion-panel.open {
  display: flex;
}

.components-table-wrap {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 8px 12px;
}

.components-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.component-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
}

.component-item-row:last-child {
  border-bottom: none;
}

.component-item-name {
  color: var(--text-main);
  font-weight: 500;
}

.component-status-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.component-status-tag.status-minor, .component-status-tag.status-major {
  background: var(--color-red-bg);
  border-color: var(--color-red-border);
  color: var(--color-red);
  font-weight: 700;
}

/* Incidents Box inside Card */
.incidents-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.78rem;
}

.no-incidents-msg {
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 500;
}

.card-active-incident {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-incident-title {
  font-weight: 700;
  color: var(--color-red);
  font-size: 0.78rem;
}

.card-incident-desc {
  font-size: 0.76rem;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-view-report {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-view-report:hover {
  background: var(--text-main);
  color: var(--text-inverse);
}

/* ==========================================================================
   SERVICE DETAIL PAGE STYLES
   ========================================================================== */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--text-dim);
}

.breadcrumb-bar a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-bar a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.crumb-current {
  color: var(--text-main);
  font-weight: 700;
}

.service-hero-verdict {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s ease;
}

.service-hero-verdict.status-issue {
  border-color: var(--color-red-border);
  background: var(--color-red-bg);
}

.service-hero-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-large-logo {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px;
  max-height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-main);
  flex-shrink: 0;
}

.service-meta-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-pre-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 650;
}

.service-verdict-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.service-verdict-title.status-err {
  color: var(--color-red);
}

.service-hero-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.service-live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-main);
}

.service-reports-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.detail-card-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 700;
}

.detail-latency-pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.detail-test-statement {
  font-size: 0.86rem;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.45;
}

.probe-meta-note {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-top: 4px;
}

.detail-section-title {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.detail-section-subtitle {
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Issue Reporting Box */
.user-signal-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.badge-normal {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

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

.report-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.report-prompt-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.report-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-report {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-report:hover {
  background: var(--bg-subtle-hover);
  border-color: var(--border-color-hover);
}

.btn-report-ok {
  border-color: var(--status-normal-border);
}

.btn-report.submitting {
  opacity: 0.5;
  pointer-events: none;
}

.feedback-success {
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 600;
}

.feedback-err {
  color: var(--color-red);
  font-size: 0.8rem;
  font-weight: 600;
}

/* Alternatives Pills */
.alternatives-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alternative-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.82rem;
  transition: all 0.15s ease;
}

.alternative-card-link:hover {
  background: var(--bg-subtle-hover);
  border-color: var(--border-color-hover);
}

.alt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-main);
}

.alt-name {
  font-weight: 700;
}

.alt-status {
  color: var(--text-dim);
  font-size: 0.74rem;
  font-weight: 550;
}

/* FAQ Accordion */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  width: 12px !important;
  height: 12px !important;
  max-width: 12px;
  max-height: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.55;
}

.methodology-list {
  padding-left: 18px;
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

/* ==========================================================================
   RELIABILITY & HOW IT WORKS PAGES
   ========================================================================== */
.info-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 700;
}

.info-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.info-hero-desc {
  font-size: 0.88rem;
  font-weight: 450;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.5;
}

.reliability-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.table-responsive {
  overflow-x: auto;
}

.notion-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.notion-table th {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dim);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.notion-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 500;
}

.notion-table tr:hover td {
  background: var(--bg-subtle);
}

.rank-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--text-dim);
}

.rank-1, .rank-2, .rank-3 {
  color: var(--text-main);
}

.table-cat-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.uptime-high {
  font-family: var(--font-mono);
  font-weight: 750;
  color: var(--text-main);
}

.uptime-med {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-red);
}

.table-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

.table-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

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

.methodology-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.methodology-icon-box {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-main);
}

.methodology-title {
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-main);
}

.methodology-text {
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.methodology-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 8px;
}

/* ==========================================================================
   GLOBAL INCIDENT TIMELINE
   ========================================================================== */
.incidents-feed-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--text-muted);
}

.incidents-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.timeline-provider-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-main);
  flex-shrink: 0;
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.timeline-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-provider-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
}

.timeline-status-badge {
  font-size: 0.7rem;
  font-weight: 650;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.timeline-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-desc {
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.45;
}

.timeline-btn-more {
  align-self: flex-start;
  margin-top: 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.timeline-btn-more:hover {
  color: var(--text-main);
}

.timeline-loading {
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  text-align: center;
}

/* ==========================================================================
   DISCLAIMER BANNER
   ========================================================================== */
.disclaimer-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.78rem;
  font-weight: 450;
  color: var(--text-dim);
  line-height: 1.55;
}

.disclaimer-banner strong {
  color: var(--text-muted);
  font-weight: 650;
}

/* ==========================================================================
   FOOTER & KOMINIKE DIGITAL BRANDING
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 40px 24px 50px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1.3fr;
  gap: 28px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.footer-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-main);
}

.footer-tagline {
  font-size: 0.82rem;
  font-weight: 450;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
  max-width: 360px;
}

.footer-heading {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links-list li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links-list a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.kominike-badge-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease;
}

.kominike-badge-box:hover {
  border-color: var(--border-color-hover);
}

.kominike-link {
  text-decoration: none;
}

.kominike-glow-text {
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.kominike-link:hover .kominike-glow-text {
  text-decoration: underline;
}

.kominike-sub {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-dim);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

.inline-kominikee-link {
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
}

.inline-kominikee-link:hover {
  text-decoration: underline;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
}

/* ==========================================================================
   INCIDENT MODAL
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  animation: modalFadeIn 0.18s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

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

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

.modal-provider-tag {
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.modal-title {
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-main);
}

.modal-btn-close {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-btn-close:hover {
  background: var(--text-main);
  color: var(--text-inverse);
}

.modal-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.86rem;
  font-weight: 450;
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-body p {
  color: var(--text-muted);
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   STICKY BOTTOM SYNC BAR
   ========================================================================== */
.sticky-sync-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  z-index: 99;
}

.sync-bar-progress {
  height: 2px;
  background: var(--text-main);
  width: 100%;
  transition: width 1s linear;
}

.sync-bar-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sync-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 550;
  color: var(--text-muted);
}

.sync-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-main);
}

.btn-quick-sync {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-sync:hover {
  background: var(--bg-subtle-hover);
  border-color: var(--border-color-hover);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1100px) {
  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .hero-status-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats-grid, .reliability-stats-grid, .methodology-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .providers-grid, .reliability-stats-grid, .methodology-grid {
    grid-template-columns: 1fr;
  }

  .header-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .main-wrapper {
    padding: 16px 14px 90px;
  }

  .subscribe-inputs-row {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-input {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
  }

  .services-dropdown-container {
    width: 100%;
    flex: 1 1 auto;
  }

  .services-dropdown-menu {
    width: 100%;
    left: 0;
    transform: none;
  }
}

/* ===== Live status additions ===== */
.status-unknown, .status-checking {
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-color: var(--border-color);
}
.status-unknown .status-dot, .status-checking .status-dot {
  background: var(--text-dim);
  box-shadow: none;
}
.official-feed-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.official-feed-link:hover { color: var(--text-main); }
.service-intro-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 6px 0 0;
}
.source-incident {
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 0.85rem;
}
.source-incident strong { color: var(--text-main); }
.footer-all-services {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}
.footer-all-services p {
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--text-dim);
}
.footer-all-services a {
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.footer-all-services a:hover { color: var(--text-main); text-decoration: underline; }

/* ===== Uptime history ===== */
.card-uptime { margin: 4px 0 2px; }
.ub-row, .history-bars { display: flex; gap: 2px; align-items: stretch; }
.ub-row .ub { flex: 1; height: 16px; }
.history-bars .ub { flex: 1; height: 30px; }
.ub { border-radius: 2px; background: var(--bg-subtle); min-width: 2px; }
.ub-operational { background: #2e9e5b; }
.ub-minor { background: #d18b16; }
.ub-major { background: #d6443c; }
.ub-label { font-size: 0.72rem; color: var(--text-dim); margin-top: 4px; }
.hist-event { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border-color); font-size: 0.86rem; }
.hist-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; }
.hist-meta { font-size: 0.76rem; color: var(--text-dim); margin-top: 2px; }
.embed-code { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 0.75rem; padding: 8px; border-radius: 6px;
  border: 1px solid var(--border-color); background: var(--bg-subtle); color: var(--text-main); resize: vertical; }
.detail-section-subtitle a, .tr-steps a { color: var(--text-muted); text-decoration: underline; }

/* ===== Follow / alert channels ===== */
.follow-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 720px; margin: 14px auto 6px; }
.follow-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  background: var(--bg-surface); color: var(--text-main); text-decoration: none; }
.follow-card:hover { border-color: var(--border-color-hover); background: var(--bg-surface-hover); }
.follow-card b { display: block; font-size: 0.86rem; }
.follow-card small { display: block; font-size: 0.74rem; color: var(--text-dim); margin-top: 1px; }
.follow-ico { width: 30px; height: 30px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.9rem; }
@media (max-width: 680px) { .follow-strip { grid-template-columns: 1fr; } }
