/* =============================================
   IsItDown  -  Minimal Design v3 
   Inspired by clean utility tools (OnlineOrNot)
   ============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:             #f9fafb;
  --bg-raised:      #ffffff;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f3f4f6;
  --border:         #e5e7eb;
  --border-focus:   #2563eb;
  --text:           #111827;
  --text-dim:       #374151;
  --text-muted:     #9ca3af;
  --accent:         #2563eb;
  --accent-hover:   #1d4ed8;
  --accent-glow:    rgba(37,99,235,0.1);
  --green:          #16a34a;
  --green-bg:       #dcfce7;
  --red:            #dc2626;
  --red-bg:         rgba(220,38,38,0.05);
  --yellow:         #f59e0b;
  --yellow-bg:      rgba(245,158,11,0.05);
  --orange:         #f97316;
  --orange-bg:      rgba(249,115,22,0.05);
  --radius:         8px;
  --radius-sm:      6px;
  --radius-xs:      4px;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition:     0.15s ease;
  --max-w:          680px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
main.page { flex: 1; padding: 0 0 60px; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ----- Header ----- */
.header {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  position: sticky; top: 0; z-index: 100;
}
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.15rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.logo span { color: var(--accent); }
.logo-icon { font-size: 1.2rem; }
.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
.nav a {
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { color: var(--text); }
.nav a.active {
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-glow);
}
.nav a.active::after {
  display: none;
}

@media (max-width: 600px) {
  .header .container { flex-direction: column; gap: 16px; text-align: center; }
  .nav { justify-content: center; gap: 12px; }
  .logo { justify-content: center; }
}

/* ----- Hero ----- */
.hero-wrapper {
  margin-top: 32px;
  background: radial-gradient(circle at top left, #1e293b 0%, #0f172a 100%);
  border-radius: 24px;
  padding: 100px 20px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}
.hero-wrapper::before {
  content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(37,99,235,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-wrapper h1 { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.05em; margin-bottom: 12px; line-height: 1.05; color: #ffffff; }
.hero-wrapper h1 .highlight { 
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-wrapper p { color: #e0e0e0; font-size: 1.25rem; line-height: 1.6; margin-bottom: 48px; font-weight: 400; max-width: 580px; margin-left: auto; margin-right: auto; }

/* ----- Search ----- */
.search-box {
  display: flex; gap: 16px;
  max-width: 680px; margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transition: all var(--transition);
  align-items: center;
}
.search-box:focus-within {
  border-color: transparent;
  box-shadow: none;
}
.search-input-wrapper {
  position: relative;
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  transition: all var(--transition);
}
.search-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}
.search-box input {
  flex: 1; padding: 14px 20px;
  background: transparent; border: none; outline: none;
  color: #fff; font-size: 1.05rem; font-family: var(--font);
}
.search-box input::placeholder { color: #9ca3af; }
.search-box button {
  padding: 14px 36px;
  background: #ffffff; color: #0f172a; border: none; border-radius: 12px;
  font-size: 1.05rem; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.search-box button:hover { 
  background: #f8fafc; 
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.hero-subtext {
  margin-top: 24px;
  font-size: 0.85rem;
  color: #d0d0d0;
  line-height: 1.6;
}
.trending-searches {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #d0d0d0;
}
.trending-searches a {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 50px;
  transition: all var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.trending-searches a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}
.keyword-trending {
  margin-top: 18px;
}
.keyword-intent-links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #d0d0d0;
}
.keyword-intent-links a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  text-decoration: none;
  transition: all var(--transition);
}
.keyword-intent-links a:hover,
.keyword-intent-links a.is-current {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(147, 197, 253, 0.35);
  color: #ffffff;
}

.autocomplete-items {
  position: absolute;
  top: calc(100% + 10px);
  border: 1px solid rgba(148, 163, 184, 0.18);
  z-index: 99;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
}
.autocomplete-items div {
  padding: 14px 16px;
  cursor: pointer;
  background-color: transparent;
  color: #e5e7eb;
  font-size: 0.9rem;
  text-align: left;
  transition: background 0.2s, transform 0.2s;
}
.autocomplete-items div:hover {
  background-color: rgba(255, 255, 255, 0.06);
}
.autocomplete-items div strong {
  color: #93c5fd;
}
.autocomplete-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.autocomplete-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.autocomplete-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.autocomplete-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  flex: 0 0 auto;
}
.autocomplete-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  font-size: 0.75rem;
  font-weight: 800;
}
.autocomplete-label {
  display: block;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.autocomplete-path {
  color: #d0d0d0;
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.autocomplete-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 0;
  font-size: 0.74rem;
  color: #cbd5e1;
  white-space: nowrap;
}
.autocomplete-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ----- Result Card ----- */
.result-card {
  text-align: center; padding: 40px 28px;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); margin: 32px auto 0; max-width: 560px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  animation: fadeUp 0.35s ease;
}
.result-card.is-up     { border-top: 4px solid var(--green); }
.result-card.is-down   { border-top: 4px solid var(--red); }

/* ----- Confidence Badge ----- */
.conf-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
}
.conf-ok       { background: var(--green-bg);  color: var(--green); }
.conf-warn     { background: var(--yellow-bg); color: var(--yellow); }
.conf-bad      { background: var(--orange-bg); color: var(--orange); }
.conf-critical { background: var(--red-bg);    color: var(--red); }
.conf-unknown  { background: #f3f4f6; color: var(--text-dim); }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.status-dot.up, .status-dot.operational          { background: var(--green); }
.status-dot.down, .status-dot.confirmed_outage   { background: var(--red); }
.status-dot.issues                               { background: var(--yellow); }
.status-dot.likely_outage                        { background: var(--orange); }
.status-dot.unknown                              { background: var(--text-muted); }

.result-domain { font-size: 1.5rem; font-weight: 700; margin: 16px 0 8px; color: var(--text); }
.result-meta { color: var(--text-dim); font-size: 0.85rem; }
.result-meta span { margin: 0 8px; }

.result-link {
  display: inline-block; margin-top: 20px;
  color: var(--accent);
  font-size: 0.9rem; font-weight: 600;
}
.result-link:hover { text-decoration: underline; }

/* ----- Checking spinner ----- */
.checking { display: none; align-items: center; justify-content: center; gap: 10px; padding: 24px; color: var(--text-dim); font-size: 0.9rem; }
.checking.active { display: flex; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; }

/* ----- Section ----- */
.section { margin-top: 64px; }
.section-title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 12px;
  color: var(--text);
  text-align: center;
}
/* ----- Info / FAQ Section ----- */
.info-section {
  padding: 80px 0;
  background: var(--bg);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.1);
}
.info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.info-card p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ----- Trusted / Popular Services ----- */
.trusted-section {
  text-align: center;
  margin-top: 60px;
}
.trusted-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  color: #fbbf24;
  margin-bottom: 12px;
}
.trusted-stars svg { width: 18px; height: 18px; }
.trusted-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 40px;
}
.popular-marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100vw;
  max-width: 100%;
  left: 50%;
  transform: translateX(-50%);
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.popular-row {
  display: inline-flex;
  gap: 60px;
  align-items: center;
  padding: 10px 30px;
  animation: scrollMarquee 25s linear infinite;
}
.popular-row:hover {
  animation-play-state: paused;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 30px)); }
}
.popular-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: #4b5563;
  transition: all 0.2s ease;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
}
.popular-brand img {
  width: 24px;
  height: 24px;
  transition: all 0.2s ease;
  border-radius: 4px;
}
.popular-brand:hover {
  color: #2563eb;
  transform: translateY(-2px);
  border-color: #2563eb;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

/* ----- Domain Grid & Shared Cards ----- */
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.related-pages-section {
  margin-top: 48px;
}
.related-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.related-page-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.related-page-card:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -18px rgba(37, 99, 235, 0.55);
}
.related-page-card strong {
  font-size: 0.98rem;
  line-height: 1.4;
}
.related-page-type {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-card-hover);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Recently Checked Redesign */
.recent-list { display: flex; flex-direction: column; gap: 12px; max-width: 600px; margin: 0 auto; }
.recent-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 16px 20px; 
  background: #ffffff;
  border: 1px solid #e5e7eb; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600; color: #111827;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  text-decoration: none;
}
.recent-item:hover { 
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}
.recent-item .status-dot { width: 10px; height: 10px; margin-right: 2px; }
.recent-item-left { display: flex; align-items: center; gap: 12px; }
.recent-item-right { color: #9ca3af; font-size: 0.85rem; font-weight: 400; }
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ----- Timeline ----- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content:''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 20px; }
.timeline-icon {
  position: absolute; left: -28px; top: 2px;
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; background: var(--bg-raised); border: 2px solid var(--border); border-radius: 50%;
  z-index: 1;
}
.timeline-content { font-size: 0.9rem; color: var(--text); line-height: 1.5; font-weight: 500; }
.timeline-time { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }

/* ----- Uptime Bar Chart ----- */
.uptime-chart { display: flex; gap: 3px; align-items: flex-end; height: 60px; margin: 16px 0; }
.uptime-bar { flex: 1; border-radius: 2px 2px 0 0; min-width: 5px; position: relative; transition: opacity var(--transition); }
.uptime-bar.good { background: var(--green); }
.uptime-bar.warn { background: var(--yellow); }
.uptime-bar.bad  { background: var(--red); }
.uptime-bar:hover { opacity: 0.7; }
.uptime-bar[data-tooltip]:hover::after {
  content: attr(data-tooltip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  padding: 4px 8px; background: var(--text); color: #fff; font-size: 0.75rem; white-space: nowrap; border-radius: var(--radius-xs); margin-bottom: 4px;
}
.uptime-summary { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-dim); font-weight: 500;}

/* ----- Reports & Forms ----- */
.report-form { display: flex; flex-direction: column; gap: 12px; }
.report-form textarea, .form-input, .input-row input {
  width: 100%;
  resize: vertical; min-height: 60px; padding: 12px 16px;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: var(--font); font-size: 0.95rem;
  transition: all var(--transition);
}
.report-form textarea:focus, .input-row input:focus, .form-input:focus { 
  border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.input-row { display: flex; gap: 12px; }
.input-row input { flex: 1; min-height: unset; height: 44px; }
.btn { 
  padding: 0 24px; height: 44px; background: var(--text); color: #fff; border: none; 
  border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; font-family: var(--font); 
  cursor: pointer; transition: background var(--transition); display: inline-flex; align-items: center; justify-content: center;
}
.btn:hover { background: #000; }
.hp-field { position: absolute; left: -9999px; }

.report-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.report-item { padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; color: var(--text); }
.report-meta { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.country-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.country-tag { padding: 4px 12px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 50px; font-size: 0.8rem; color: var(--text-dim); }

/* ----- Troubleshooting ----- */
.troubleshoot-box {
  padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.95rem; line-height: 1.6; color: var(--text-dim);
}
.troubleshoot-box strong { color: var(--text); }
.troubleshoot-box ul { margin-left: 20px; margin-top: 8px; }
.troubleshoot-box li { margin-bottom: 6px; }

/* ----- Official Links ----- */
.official-links { display: flex; gap: 12px; flex-wrap: wrap; }
.official-link {
  padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; color: var(--text-dim);
  transition: all var(--transition);
}
.official-link:hover { border-color: var(--text-dim); color: var(--text); box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

/* ----- FAQ ----- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.faq-q { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; color: var(--text); }
.faq-a { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }
/* ----- Verification Regions ----- */
.verification-regions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.region-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.region-name { font-weight: 700; color: var(--text); margin-bottom: 8px; font-size: 0.9rem; }
.region-servers { font-size: 0.8rem; color: var(--text-dim); }

@media (max-width: 768px) {
  .verification-regions { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .verification-regions { grid-template-columns: 1fr; }
}

/* ----- Content Pages ----- */
.content-page { max-width: 600px; margin: 0 auto; padding-top: 48px; }
.content-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 24px; color: var(--text); letter-spacing: -0.02em; }
.content-page h2 { font-size: 1.3rem; font-weight: 700; margin-top: 32px; margin-bottom: 12px; color: var(--text); }
.content-page p { color: var(--text-dim); font-size: 1rem; margin-bottom: 16px; line-height: 1.7; }
.content-page ul { margin: 12px 0 16px 20px; }
.content-page li { color: var(--text-dim); font-size: 1rem; margin-bottom: 8px; }
.content-page a { border-bottom: 1px solid var(--accent); color: var(--text); }
.content-page a:hover { color: var(--accent); }

/* ----- Admin Dashboard ----- */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ----- Tables & Badges ----- */
.status-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.status-table th, .status-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.status-table th {
  background: var(--bg-card-hover);
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.status-table tr:last-child td {
  border-bottom: none;
}
.status-filters {
  margin-top: 16px;
}
.status-filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.status-search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-raised);
  color: var(--text);
  font-size: 0.95rem;
}
.status-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.status-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.status-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 600;
}
.status-filter-chip.is-active,
.status-filter-chip:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-glow);
}
.status-sparkline {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  min-width: 72px;
}
.status-sparkline-bar {
  width: 7px;
  height: 18px;
  border-radius: 999px;
  background: var(--border);
}
.status-sparkline-bar--good { background: var(--green); }
.status-sparkline-bar--warn { background: var(--yellow); }
.status-sparkline-bar--bad { background: var(--red); }
.status-sparkline-bar--unknown { background: var(--text-muted); }
.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
}
.status-badge.up { background: var(--green-bg); color: var(--green); }
.status-badge.down { background: var(--red-bg); color: var(--red); }
.status-badge.unknown { background: var(--border); color: var(--text-dim); }

/* ----- Admin Log ----- */
.admin-log {
  padding: 16px;
  background: #111827;
  border-radius: var(--radius);
  font-family: inherit; /* use monospace but nicely themed */
  font-size: 0.85rem;
  color: #a7f3d0;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
  line-height: 1.5;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

/* ----- Footer ----- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); background: #111827; color: #9ca3af; }
.footer .logo span { color: #ffffff; }
.footer .logo { margin-bottom: 24px; color: #ffffff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.brand-col {
  padding-right: 40px;
}
.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links-list a {
  color: #9ca3af;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}
.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 2px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid #374151;
  font-size: 0.85rem;
}
.sitemap-link {
  color: #6b7280;
}
.sitemap-link:hover {
  color: #ffffff;
}

/* ----- Messages ----- */
.error-msg { color: var(--red); font-size: 0.9rem; margin-bottom: 12px; font-weight: 500; }
.success-msg { color: var(--green); font-size: 0.9rem; margin-bottom: 12px; font-weight: 500; }

/* ----- Two Column Layout with Sidebar ----- */
.container--wide { max-width: 1080px; }
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.page-main { min-width: 0; }

/* ----- Sidebar ----- */
.sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sidebar-widget-header {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-widget-header--green { background: linear-gradient(135deg, #16a34a, #15803d); }
.sidebar-widget-header--red   { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.sidebar-widget-icon { font-size: 1rem; }
.sidebar-widget-body {
  padding: 4px 0;
  max-height: 420px;
  overflow-y: auto;
}
.sidebar-widget-body::-webkit-scrollbar { width: 4px; }
.sidebar-widget-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background var(--transition);
}
.sidebar-row:last-child { border-bottom: none; }
.sidebar-row:hover { background: var(--bg-card-hover); color: var(--text); }
.sidebar-row-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  line-height: 1.3;
}
.sidebar-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.sidebar-dot--green { background: var(--green); box-shadow: 0 0 6px rgba(22,163,74,0.4); }
.sidebar-dot--red   { background: var(--red);   box-shadow: 0 0 6px rgba(220,38,38,0.4); }
.sidebar-favicon { border-radius: 3px; flex-shrink: 0; }
.sidebar-domain {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.sidebar-domain strong { font-weight: 700; color: var(--text); }
.sidebar-row-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-left: 32px;
  line-height: 1.4;
}
.sidebar-empty {
  padding: 20px 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sidebar pulse animation for newest entry */
.sidebar-row--new {
  animation: sidebarPulse 0.6s ease;
}
@keyframes sidebarPulse {
  0% { background: rgba(37,99,235,0.08); }
  100% { background: transparent; }
}

/* ----- Animations ----- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-widget {
    min-width: 300px;
    flex-shrink: 0;
  }
}
@media (max-width: 600px) {
  .hero-wrapper {
    padding: 60px 16px;
    margin-top: 16px;
  }
  .hero-wrapper h1 { font-size: 2.2rem; }
  .hero-wrapper p { font-size: 1.1rem; }
  .search-box { flex-direction: column; gap: 12px; }
  .search-box button { width: 100%; border-radius: 8px; }
  .search-input-wrapper { border-radius: 8px; }
  .keyword-intent-links { gap: 8px; }
  .autocomplete-item { align-items: flex-start; flex-direction: column; }
  .autocomplete-meta { margin-left: 32px; }
  .popular-row { gap: 32px; }
  .domain-grid { grid-template-columns: 1fr; }
  .input-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-col { padding-right: 0; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .sidebar { flex-direction: column; }
  .sidebar-widget { min-width: 0; }
  .status-filter-row { flex-direction: column; align-items: stretch; }
  .status-table { display: block; overflow-x: auto; white-space: nowrap; }
  .status-table th, .status-table td { padding: 14px 12px; }
}

/* ----- Ad Slots ----- */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px auto;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 90px;
  max-width: 728px;
  color: var(--text-muted, #6b7280);
  font-size: 0.8rem;
  overflow: hidden;
}
.ad-slot--leaderboard {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
}
.ad-slot--rectangle {
  max-width: 300px;
  min-height: 250px;
}
.ad-slot--sidebar {
  max-width: 100%;
  min-height: 250px;
  margin: 16px 0;
}
.ad-slot--fullwidth {
  max-width: 100%;
  min-height: 90px;
}
@media (max-width: 600px) {
  .ad-slot--leaderboard {
    max-width: 100%;
    min-height: 50px;
  }
}

/* =========================================
   Keyword Landing Pages  -  Components
   ========================================= */

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 7px;
  padding: 16px 0 0; font-size: 0.83rem; color: var(--text-dim); flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-muted); }

/* Trust pills in hero */
.trust-badges {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px;
}
.trust-badge {
  display: inline-flex; align-items: center; padding: 5px 13px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px; color: #d0d0d0; font-size: 0.79rem; font-weight: 600;
}

/* Result card  -  verdict headline */
.result-verdict {
  font-size: 1.3rem; font-weight: 900; letter-spacing: -0.01em; margin: 12px 0 2px;
}
.result-verdict--up   { color: var(--green); }
.result-verdict--down { color: var(--red); }
.result-note {
  font-size: 0.84rem; color: var(--text-dim); line-height: 1.6;
  margin: 8px auto 0; max-width: 440px;
}

/* "Down for everyone or just me?" explainer cards */
.verdict-explainer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px;
}
.ve-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 20px; border-radius: 14px; border: 1.5px solid;
}
.ve-card--up   { background: var(--green-bg); border-color: rgba(22,163,74,0.35); }
.ve-card--down { background: var(--red-bg);   border-color: rgba(220,38,38,0.25); }
.ve-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 1px; }
.ve-card strong { display: block; font-size: 0.92rem; font-weight: 700; margin-bottom: 5px; }
.ve-card--up   strong { color: var(--green); }
.ve-card--down strong { color: var(--red); }
.ve-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; margin: 0; }
@media (max-width: 600px) { .verdict-explainer { grid-template-columns: 1fr; } }

/* Keyword section typography */
.kw-section h2 {
  font-size: 1.22rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.025em; margin-bottom: 12px;
}
.kw-section p {
  font-size: 0.96rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 14px;
}
.kw-section p:last-of-type { margin-bottom: 0; }
.kw-section p strong { color: var(--text); }

/* How-it-works step cards */
.steps-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px;
}
.step-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  transition: border-color var(--transition);
}
.step-card:hover { border-color: var(--accent); }
.step-num {
  min-width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 0.86rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.step-card h3 { font-size: 0.92rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.step-card p  { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; margin: 0; }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } }

/* Troubleshoot steps */
.troubleshoot-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ts-step {
  display: flex; align-items: flex-start; gap: 14px; padding: 15px 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
}
.ts-num {
  min-width: 26px; height: 26px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--border); color: var(--text-dim); font-weight: 800; font-size: 0.76rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ts-step strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.ts-step p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.55; margin: 0; }

/* FAQ accordion using <details>/<summary> */
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.faq-item {
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: border-color var(--transition);
}
.faq-item:hover, .faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 17px 22px; cursor: pointer; user-select: none;
  font-size: 0.94rem; font-weight: 700; color: var(--text); list-style: none; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  min-width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-card-hover);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--text-muted); font-weight: 400; line-height: 1;
  transition: background var(--transition), color var(--transition);
}
.faq-item[open] .faq-toggle { background: var(--accent); color: #fff; }
.faq-body {
  padding: 0 22px 18px; font-size: 0.91rem; color: var(--text-dim); line-height: 1.78;
}

/* Domain quick-link pills */
.domain-quick-links {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 9px; margin-top: 14px;
}
.domain-quick-link {
  display: flex; align-items: center; gap: 8px; padding: 10px 13px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 0.87rem; font-weight: 600; text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
.domain-quick-link:hover { border-color: var(--accent); transform: translateY(-1px); color: var(--text); }
.domain-quick-link img { width: 18px; height: 18px; border-radius: 3px; flex-shrink: 0; }

/* Tool cards  -  used on homepage + keyword landing related section */
.tool-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px;
}
.tool-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 24px;
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: 16px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.tool-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(37,99,235,0.18);
}
.tool-card-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.tool-card-desc  { font-size: 0.87rem; color: var(--text-dim); line-height: 1.5; }
.tool-card-cta   { font-size: 0.82rem; color: var(--accent); font-weight: 700; margin-top: 2px; }
@media (max-width: 600px) { .tool-cards { grid-template-columns: 1fr; } }

/* Premium outage feed */
.outage-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.outage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.outage-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -18px rgba(37, 99, 235, 0.55);
}
.outage-item-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.outage-item-domain { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.outage-item-reason { font-size: 0.83rem; color: var(--text-dim); line-height: 1.45; }
.outage-item-meta { display: inline-flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }
.outage-item-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Article cards used on homepage + tools + status */
.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.article-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.article-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -18px rgba(37, 99, 235, 0.55);
}
.article-card-title { color: var(--text); font-size: 0.95rem; font-weight: 700; line-height: 1.45; }
.article-card-desc { color: var(--text-dim); font-size: 0.85rem; line-height: 1.6; }
.article-card-cta { margin-top: auto; color: var(--accent); font-size: 0.82rem; font-weight: 700; }

@media (max-width: 600px) {
  .outage-item { flex-direction: column; align-items: flex-start; }
  .outage-item-meta { white-space: normal; }
  .article-cards { grid-template-columns: 1fr; }
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 32px 0 16px;
  padding: 0;
  list-style: none;
}
.pg-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  user-select: none;
}
.pg-item:hover:not(.pg-disabled):not(.pg-active):not(.pg-ellipsis) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-raised);
}
.pg-item.pg-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
}
.pg-item.pg-disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}
.pg-item.pg-ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  min-width: 24px;
  font-size: 1rem;
}
.pg-item.pg-arrow { font-size: 1.2rem; font-weight: 700; }
@media (max-width: 480px) {
  .pg-item { min-width: 34px; height: 34px; font-size: 0.8rem; padding: 0 7px; }
  .pg-item.pg-arrow { min-width: 34px; }
}
