/* PixelPing Cyber Glow & Light/Dark Theme System */
:root {
  --bg-main: #0b0f19;
  --bg-navbar: rgba(11, 15, 25, 0.9);
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-input: #1e293b;
  --bg-card-hover: rgba(24, 33, 54, 0.9);
  --border-card: rgba(139, 92, 246, 0.25);
  --border-card-hover: rgba(6, 182, 212, 0.6);
  --border-light: rgba(255, 255, 255, 0.12);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-violet: #8b5cf6;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --glow-violet: 0 0 25px -5px rgba(139, 92, 246, 0.25);
  --glow-cyan: 0 0 30px -5px rgba(6, 182, 212, 0.3);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

html.light {
  --bg-main: #f8fafc;
  --bg-navbar: rgba(255, 255, 255, 0.95);
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-input: #f1f5f9;
  --bg-card-hover: #ffffff;
  --border-card: rgba(139, 92, 246, 0.2);
  --border-card-hover: rgba(6, 182, 212, 0.7);
  --border-light: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --glow-violet: 0 4px 20px -2px rgba(139, 92, 246, 0.15);
  --glow-cyan: 0 6px 25px -2px rgba(6, 182, 212, 0.2);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   Desktop Navbar & Unified Pill Capsule
   ===================================================== */
.navbar {
  background: var(--bg-navbar);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
}

/* Unified Pill Capsule */
.nav-menu {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 50px;
  padding: 0.35rem 0.6rem;
  box-shadow: var(--card-shadow);
  gap: 0.25rem;
  transition: all 0.2s ease;
}

.nav-menu:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--glow-violet);
}

.nav-pill-divider {
  width: 1px;
  height: 18px;
  background: var(--border-light);
  flex-shrink: 0;
  margin: 0 0.15rem;
}

/* Dropdowns in Pill */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: 50px;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
}

.dropdown-btn:hover,
.dropdown:hover .dropdown-btn {
  background: var(--bg-input);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.dropdown-arrow {
  font-size: 0.6rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
  color: var(--accent-violet);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #0f172a;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  min-width: 280px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  padding: 0.6rem;
  z-index: 200;
}

html.light .dropdown-content {
  background: #ffffff;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s ease;
}

.dropdown-content a:hover {
  background: rgba(139, 92, 246, 0.15);
  color: var(--text-primary);
}

.tool-menu-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
}

.tool-menu-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.tool-menu-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.lang-flag-img {
  width: 18px !important;
  height: 12px !important;
  max-width: 18px !important;
  max-height: 12px !important;
  border-radius: 2px;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ToolPing Pill Badge */
.toolping-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.4rem 0.85rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.toolping-pill-badge:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: var(--accent-violet);
  color: #ffffff;
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =====================================================
   Mobile Navigation Drawer
   ===================================================== */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mobile-drawer.active {
  display: block;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: #0b0f19;
  border-left: 1px solid var(--border-card);
  padding: 1.5rem;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

html.light .mobile-drawer-content {
  background: #ffffff;
  border-left-color: rgba(0,0,0,0.12);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.mobile-drawer-close {
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-action-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-action-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.mobile-action-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mobile-pill-btn.active, .mobile-pill-btn:hover {
  background: var(--accent-violet);
  color: #fff;
  border-color: var(--accent-violet);
}

.mobile-contact-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--accent-cyan);
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.mobile-toolping-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.mobile-tools-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.mobile-section-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.mobile-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-tool-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.mobile-tool-link:hover {
  border-color: var(--accent-cyan);
}

/* Cards & Layout */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--glow-violet);
}

.card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

html.light .btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Hero */
.hero {
  padding: 50px 0 40px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.hero-title-gradient {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  max-width: 680px;
  margin: 0 auto 32px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Comparison Box */
.compare-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 0 30px -10px rgba(139, 92, 246, 0.2);
}

.compare-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.badge-saved {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
  padding: 2px 10px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.8rem;
}

.compare-slider-container {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid var(--accent-cyan);
}

.compare-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.compare-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

/* Tool Grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-card-top {
  margin-bottom: 20px;
}

.tool-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

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

.tool-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tool-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
  margin-bottom: 12px;
}

/* Upload Zone */
.dropzone {
  border: 2px dashed rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.05);
  border-radius: 16px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
  margin-top: 60px;
  background: var(--bg-navbar);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: #f8fafc;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid var(--accent-emerald);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  z-index: 1000;
  animation: slideUp 0.3s ease;
}

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

@media (max-width: 900px) {
  .nav-menu { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
}


/* ---------- Cookie Banner (ToolPing Style) ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.1rem 1.5rem;
  z-index: 99999;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  animation: slideUpCookie 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html.light .cookie-banner {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
}

@keyframes slideUpCookie {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .cookie-buttons {
    width: 100%;
    justify-content: stretch;
  }
  .cookie-buttons .btn {
    flex: 1;
    text-align: center;
  }
}


/* ---------- SEO Search & Filter Pills ---------- */
.search-filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-filter-pill:hover,
.search-filter-pill.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
}

html.light .search-filter-pill {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

html.light .search-filter-pill:hover,
html.light .search-filter-pill.active {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
}

.faq-details[open] summary .fa-chevron-down {
  transform: rotate(180deg);
}

.faq-details summary {
  list-style: none;
}
.faq-details summary::-webkit-details-marker {
  display: none;
}


/* ---------- Photo Comparison Slider Enhancement ---------- */
.compare-box {
  max-width: 780px;
  margin: 2rem auto 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(6, 182, 212, 0.12);
}

.compare-slider-container {
  position: relative;
  width: 100%;
  height: 290px;
  border-radius: 12px;
  overflow: hidden;
  user-select: none;
  background: #0b0f19;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.compare-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-sharp {
  filter: contrast(1.05) brightness(1.02) saturate(1.1);
}

.compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid var(--accent-cyan);
  box-shadow: 4px 0 18px rgba(6, 182, 212, 0.5);
}

.compare-overlay-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 780px;
  max-width: none;
  object-fit: cover;
}

.compare-blurry {
  filter: blur(1.2px) contrast(0.95) saturate(0.92);
}

.compare-label-tag {
  position: absolute;
  bottom: 12px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  pointer-events: none;
  z-index: 5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag-sharp {
  right: 12px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.tag-blurry {
  left: 12px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.compare-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-cyan);
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 14px var(--accent-cyan);
}

.compare-handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: #0b0f19;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.6);
}

.compare-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
}

/* =====================================================
   Dual Skyscraper Side Ads Layout (Desktop & Mobile)
   ===================================================== */
.page-layout-with-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.ad-sidebar-col {
  width: 160px;
  min-width: 160px;
  max-width: 160px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  z-index: 40;
}

.page-main-col {
  flex: 1;
  min-width: 0;
  max-width: 1120px;
  width: 100%;
}

.ad-skyscraper-wrapper {
  text-align: center;
  width: 160px;
}

.ad-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.ad-skyscraper-box {
  width: 160px;
  height: 600px;
  min-height: 600px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px dashed rgba(6, 182, 212, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease;
}

.ad-skyscraper-box:hover {
  border-color: var(--accent-cyan);
}

html.light .ad-skyscraper-box {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Hide desktop skyscraper ads on screens under 1180px */
@media (max-width: 1180px) {
  .ad-sidebar-col {
    display: none !important;
  }
  .page-layout-with-ads {
    padding: 0;
    gap: 0;
  }
}

/* =====================================================
   Mobile In-Content Ad Banner
   ===================================================== */
.ad-mobile-wrapper {
  display: none;
  margin: 28px auto;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.ad-mobile-box {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px dashed rgba(6, 182, 212, 0.3);
  border-radius: 12px;
  min-height: 90px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

html.light .ad-mobile-box {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Show mobile ad banner only on screens under 1180px */
@media (max-width: 1180px) {
  .ad-mobile-wrapper {
    display: block !important;
  }
}


/* =====================================================
   Smart Cookie Consent Modal & Site Blocker
   ===================================================== */
.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInBackdrop 0.3s ease;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal-card {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 20px;
  max-width: 580px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(6, 182, 212, 0.15);
  animation: scaleUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes scaleUpModal {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

html.light .cookie-modal-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(14, 165, 233, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(14, 165, 233, 0.15);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cookie-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cookie-badge-sub {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-emerald);
  letter-spacing: 0.5px;
}

.cookie-modal-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

.cookie-choices-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.cookie-choice-card {
  text-align: left;
  padding: 14px 18px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  border: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
}

.choice-primary {
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.3);
}

.choice-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
}

.choice-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

html.light .choice-secondary {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.choice-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

html.light .choice-secondary:hover {
  background: #e2e8f0;
  border-color: #0ea5e9;
}

.choice-title {
  font-size: 0.95rem;
  display: block;
  margin-bottom: 2px;
}

.choice-badge-star {
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.choice-desc {
  font-size: 0.78rem;
  opacity: 0.88;
  line-height: 1.4;
  margin: 0;
}

.cookie-modal-footer {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}


/* Theme-Adaptive Navbar Brand */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #131d31;
  border: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

html.light .nav-logo-icon-box {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.nav-logo:hover .nav-logo-icon-box {
  transform: scale(1.05);
}

.nav-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo-ping {
  color: #10b981;
}

/* Tool Header Titles & Forms (Theme Aware) */
.tool-page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 8px;
}

.tool-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.theme-input, .theme-select {
  width: 100%;
  background: var(--bg-input) !important;
  border: 1px solid var(--border-light) !important;
  color: var(--text-primary) !important;
  padding: 10px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.theme-input:focus, .theme-select:focus {
  outline: none;
  border-color: var(--accent-cyan) !important;
}

html.light .theme-input, html.light .theme-select {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light .dropzone {
  background: rgba(139, 92, 246, 0.04);
  border-color: rgba(139, 92, 246, 0.3);
}

html.light .dropzone:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: #0ea5e9;
}


/* =====================================================
   Exact ToolPing Brand Typography & Layout System
   ===================================================== */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.45));
  transition: transform 0.2s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.08) rotate(-4deg);
}

/* "Pixel" in Dark Mode: White with Cyan Contour */
.nav-logo .logo-tool {
  color: #ffffff;
  -webkit-text-stroke: 1px #00f2fe;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

/* "Pixel" in Light Mode: Crisp Cyan/Slate Blue */
html.light .nav-logo .logo-tool {
  color: #0284c7;
  -webkit-text-stroke: 0px transparent;
  text-shadow: none;
}

.nav-logo:hover .logo-tool {
  background: linear-gradient(135deg, #00f2fe 0%, #00f5a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0px transparent;
  filter: drop-shadow(0 0 14px rgba(0, 245, 160, 0.65));
  transform: translateY(-1px);
}

/* "Ping" — Signature Vibrant Gradient */
.nav-logo .highlight {
  background: linear-gradient(135deg, #00f2fe 0%, #00f5a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0, 245, 160, 0.35));
  transition: filter 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.nav-logo:hover .highlight {
  filter: drop-shadow(0 0 16px rgba(0, 245, 160, 0.8));
  transform: translateY(-1px);
}

/* ---------- Tool Pages (Exact ToolPing Layout) ---------- */
.tool-page {
  padding: 2.5rem 0 4rem;
}

.tool-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.tool-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 4px;
}

.tool-header p {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

.tool-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.tool-main {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 280px;
  flex-shrink: 0;
}

/* Sidebar Ad Placeholder */
.ad-placeholder {
  background: var(--bg-card);
  border: 2px dashed rgba(6, 182, 212, 0.3);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

html.light .ad-placeholder {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(14, 165, 233, 0.35);
}

/* In-Content Horizontal Ad Banner */
.ad-banner {
  background: var(--bg-card);
  border: 2px dashed rgba(6, 182, 212, 0.3);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 2rem 0;
  overflow: hidden;
  min-height: 90px;
}

html.light .ad-banner {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(14, 165, 233, 0.35);
}

@media (max-width: 960px) {
  .tool-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}


/* =====================================================
   Strict Light Mode Typography & Card Consistency
   ===================================================== */
html.light body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light h6,
html.light .tool-section-title,
html.light .tool-page-title {
  color: #0f172a !important;
}

html.light p,
html.light label {
  color: #475569 !important;
}

html.light .card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

html.light .tool-seo-section,
html.light .tool-seo-section div,
html.light .tool-seo-section details,
html.light .step-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light .tool-seo-section {
  background: #ffffff !important;
}

html.light .dropzone {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light .theme-input,
html.light .theme-select,
html.light input[type="text"],
html.light input[type="url"],
html.light input[type="number"],
html.light input[type="tel"],
html.light input[type="email"],
html.light select,
html.light textarea {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light .ad-placeholder,
html.light .ad-banner {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}


/* Light Mode Hero Comparison Box (Clean White Card) */
html.light .compare-box {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06), 0 0 20px rgba(6, 182, 212, 0.08) !important;
}

html.light .compare-header {
  color: #475569 !important;
}

html.light .compare-header span {
  color: #475569 !important;
}

html.light .compare-slider-container {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}
