/* ═══════════════════════════════════════════════════
   VALPERO — Design System v2
   Global uptime monitoring
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ─────────────────────────────── */
:root {
  /* Primary palette — deep indigo-violet */
  --primary: #5B4CF5;
  --primary-light: #7C6FF7;
  --primary-dark: #4438E0;
  --primary-glow: rgba(91, 76, 245, 0.4);

  /* Accent — vivid green (status ok / positive) */
  --accent: #22C55E;
  --accent-light: #4ADE80;
  --accent-glow: rgba(34, 197, 94, 0.3);

  /* Status colors */
  --green: #22C55E;
  --green-glow: rgba(34, 197, 94, 0.3);
  --red: #EF4444;
  --red-glow: rgba(239, 68, 68, 0.3);
  --yellow: #F59E0B;
  --yellow-glow: rgba(245, 158, 11, 0.3);

  /* Backgrounds — warm dark */
  --bg-primary: #0F0E17;
  --bg-secondary: #1A1927;
  --bg-card: rgba(26, 25, 39, 0.85);
  --bg-card-hover: rgba(33, 31, 52, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --bg-input: rgba(255, 255, 255, 0.05);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(91, 76, 245, 0.55);

  /* Text */
  --text-primary: #F5F3FF;
  --text-secondary: #A8A5C0;
  --text-muted: #8B89A8;
  --text-inverse: #0F0E17;

  /* Sizing */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 48px var(--primary-glow);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-light), var(--accent));

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ─── Reset & Base ──────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-light);
}

/* ─── Animated Background ───────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(91, 76, 245, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 76, 245, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-gradient-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-gradient-orbs::before {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(91, 76, 245, 0.22) 0%,
    rgba(68, 56, 224, 0.08) 45%,
    transparent 70%);
  top: -400px;
  right: -250px;
  animation: orbFloat 28s ease-in-out infinite;
}

.bg-gradient-orbs::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(34, 197, 94, 0.13) 0%,
    rgba(16, 185, 129, 0.04) 45%,
    transparent 70%);
  bottom: -300px;
  left: -200px;
  animation: orbFloat 35s ease-in-out infinite reverse;
}

/* Grain texture overlay */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -40px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 30px) scale(0.95);
  }
}

/* ─── Container ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 26, 0.8);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px var(--primary-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Landing Nav Hamburger */
.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-right: 8px;
}

.nav-hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger:hover span {
  background: var(--text-primary);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-danger {
  background: linear-gradient(135deg, var(--red), #dc2626);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, var(--green), #059669);
  color: white;
}

/* ─── Hero Section ──────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  min-height: 3.5em;
  /* Prevent layout shift on mobile */
}

.hero h1 .gradient-text {
  background: linear-gradient(125deg, #A78BFA 0%, #5B4CF5 40%, #22C55E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(91, 76, 245, 0.3));
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Hero Platforms ────────────────────────────── */
.hero-platforms {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.platform-btn:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 76, 245, 0.25);
}

.platform-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.platform-btn span {
  font-weight: 500;
  font-size: 0.95rem;
}

.platform-btn.disabled {
  opacity: 0.6;
  cursor: default;
  border-color: transparent;
}

.platform-btn .badge-soon {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  transform: rotate(10deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ─── Section ───────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  background: rgba(91, 76, 245, 0.1);
  border: 1px solid rgba(91, 76, 245, 0.28);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Cards ─────────────────────────────────────── */
.card {
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, rgba(91, 76, 245, 0.28), rgba(255, 255, 255, 0.05) 50%, rgba(34, 197, 94, 0.14)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

.card:hover {
  background:
    linear-gradient(var(--bg-card-hover), var(--bg-card-hover)) padding-box,
    linear-gradient(135deg, rgba(91, 76, 245, 0.5), rgba(255, 255, 255, 0.08) 50%, rgba(34, 197, 94, 0.25)) border-box;
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 0 transparent;
}

/* ─── Problems Section ──────────────────────────── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.problem-card {
  text-align: center;
  padding: 40px 32px;
}

.problem-card .icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: block;
}

.problem-icon-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
  transition: transform 0.3s ease;
}

.problem-icon-img:hover {
  transform: scale(1.1) rotate(5deg);
}

.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ─── Features Grid ─────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

@media (min-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.feature-card {
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover::before {
  opacity: 1;
}


.feature-icon-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.25));
  transition: transform 0.3s ease;
}

.feature-icon-img:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Deprecated old icon style, kept just in case but unused */
.feature-icon-old {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── Features Storytelling ──────────────────────── */
.features-storytelling {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-story-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-story-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}

.feature-story-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg);
}

.feature-story-card:hover::before {
  opacity: 1;
}

.feature-story-icon {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
}

.feature-story-icon .feature-icon-img {
  width: 64px;
  height: 64px;
  margin: 0;
}

.feature-story-body {
  flex: 1;
}

.feature-story-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-story-lead {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.feature-story-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-story-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.feature-story-how ul,
.feature-story-get ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-story-how li,
.feature-story-get li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}

.feature-story-how li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}

.feature-story-get li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ─── CTA Urgency ────────────────────────────────── */
.cta-urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  position: relative;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.cta-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}



/* ─── Pricing ───────────────────────────────────── */
/* ─── Pricing Toggle ────────────────────────────── */
.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.toggle-label {
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.toggle-label.active {
  color: var(--text-primary);
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .4s;
}

input:checked+.slider {
  background-color: var(--primary);
  border-color: var(--primary);
}

input:checked+.slider:before {
  transform: translateX(24px);
  background-color: white;
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.badge-discount {
  background: var(--green);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: 4px;
  vertical-align: middle;
}

/* ─── Pricing Grid ──────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .pricing-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
  }
}

.pricing-card {
  text-align: center;
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  background:
    linear-gradient(var(--bg-card-hover), var(--bg-card-hover)) padding-box,
    linear-gradient(145deg, rgba(91, 76, 245, 0.7), rgba(34, 197, 94, 0.4) 60%, rgba(91, 76, 245, 0.3)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 50px rgba(91, 76, 245, 0.2), 0 16px 48px rgba(0, 0, 0, 0.4);
  transform: scale(1.04);
}

.pricing-card.featured:hover {
  transform: scale(1.06);
  box-shadow: 0 0 70px rgba(91, 76, 245, 0.25), 0 20px 56px rgba(0, 0, 0, 0.45);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 4px 20px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.pricing-price .currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pricing-year-subtext {
  font-size: 0.9rem;
  color: var(--green);
  margin-top: -24px;
  margin-bottom: 24px;
  font-weight: 600;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ─── How It Works ──────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  opacity: 0.3;
}

.step-card {
  text-align: center;
  padding: 36px 24px;
  position: relative;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 24px;
  color: white;
  box-shadow: 0 0 24px var(--primary-glow);
  position: relative;
  z-index: 1;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ─── FAQ ───────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-light);
}

.faq-question .arrow {
  transition: var(--transition);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-item.active .faq-question .arrow {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── CTA Section ───────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 0;
}

.cta-box {
  background:
    linear-gradient(135deg, rgba(91, 76, 245, 0.14) 0%, rgba(34, 197, 94, 0.07) 100%) padding-box,
    linear-gradient(135deg, rgba(91, 76, 245, 0.45), rgba(34, 197, 94, 0.3) 70%, rgba(91, 76, 245, 0.2)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.1;
}

.cta-box h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.cta-box p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.1rem;
  position: relative;
}

/* ─── Footer ────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 0;
  text-align: left !important;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0C0B14 100%);
}

.footer .footer-top {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer .footer-brand {
  flex: 0 1 340px;
  min-width: 220px;
}

.footer .footer-logo-link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary) !important;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer .footer-tagline {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 300px;
}

.footer .footer-email {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary) !important;
  font-size: 0.85rem;
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  text-decoration: none;
  margin-bottom: 20px;
}

.footer .footer-email:hover {
  border-color: var(--primary);
  color: var(--primary-light) !important;
  background: rgba(91, 76, 245, 0.08);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.footer .footer-nav {
  display: flex !important;
  flex-direction: row;
  gap: 48px;
  flex-shrink: 0;
}

.footer .footer-col {
  min-width: 140px;
}

.footer .footer-col h4 {
  color: var(--text-primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer .footer-col a {
  display: block !important;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 4px 0;
  transition: var(--transition-fast);
  line-height: 1.5;
}

.footer .footer-col a:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

.footer .footer-badges {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}

.footer .footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  gap: 4px;
}

.footer .footer-bottom {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  gap: 20px;
  flex-wrap: wrap;
}

.footer .footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

.footer .footer-bottom-links {
  display: flex !important;
  flex-direction: row;
  gap: 24px;
}

.footer .footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer .footer-bottom-links a:hover {
  color: var(--text-secondary);
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer .footer-top {
    flex-direction: column;
    gap: 32px;
    padding: 40px 0 32px;
  }

  .footer .footer-brand {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  .footer .footer-nav {
    gap: 32px;
  }

  .footer .footer-badges {
    gap: 8px;
    justify-content: flex-start;
  }

  .footer .footer-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .footer .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .footer .footer-nav {
    flex-direction: column;
    gap: 24px;
  }

  .footer .footer-col {
    min-width: auto;
  }
}

/* ─── Modal ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  transform: translateY(20px) scale(0.95);
  transition: var(--transition);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.modal h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* ─── Forms ─────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201L6%206L11%201%22%20stroke%3D%22%2394a3b8%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.form-input option {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 12px;
}

/* ─── Multi-Region Checkbox Picker ──────────────── */
.region-multi-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.region-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 0.9rem;
  color: var(--text-primary);
  user-select: none;
}

.region-checkbox:hover {
  background: var(--bg-glass-hover);
}

.region-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.region-checkbox.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.region-checkbox .region-code {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-glass);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.region-limit-hint .upgrade-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.region-limit-hint .upgrade-link:hover {
  opacity: 0.8;
}

.form-error {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 4px;
}

.form-switch {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  text-align: center;
}

.form-switch a {
  color: var(--primary-light);
  font-weight: 600;
}

/* Checkbox & Textarea overrides */
.checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.4;
}

/* ─── Dashboard ─────────────────────────────────── */
.dashboard {
  display: none;
  min-height: 100vh;
  padding-top: 72px;
}

.dashboard.active {
  display: block;
}

.landing.hidden {
  display: none;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 24px;
}

.dash-title {
  font-size: 1.8rem;
  font-weight: 800;
}

.dash-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  backdrop-filter: blur(20px);
}

.dash-stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.dash-stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
}

.dash-stat-card .stat-value.green {
  color: var(--green);
}

.dash-stat-card .stat-value.red {
  color: var(--red);
}

.dash-stat-card .stat-value.yellow {
  color: var(--yellow);
}

/* ─── Sites Table ───────────────────────────────── */
.sites-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.sites-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.sites-table-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.sites-table {
  width: 100%;
  border-collapse: collapse;
}

.sites-table th {
  text-align: left;
  padding: 12px 24px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.sites-table td {
  padding: 16px 24px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  transition: var(--transition-fast);
}

.sites-table tr:hover td {
  background: var(--bg-glass);
}

.sites-table tr:last-child td {
  border-bottom: none;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.status-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.up::before {
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}

.status-dot.down::before {
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  animation: pulse 1.5s infinite;
}

.status-dot.unknown::before {
  background: var(--text-muted);
}

.uptime-bar {
  width: 120px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.uptime-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--green);
  transition: width 0.5s ease;
}

.site-url {
  display: flex;
  flex-direction: column;
}

.site-url .name {
  font-weight: 600;
  color: var(--text-primary);
}

.site-url .url {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.response-time {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ─── Toast Notifications ───────────────────────── */
.toast-container {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  font-size: 0.9rem;
}

.toast.success {
  border-left: 3px solid var(--green);
}

.toast.error {
  border-left: 3px solid var(--red);
}

.toast.info {
  border-left: 3px solid var(--primary);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ─── Loader ────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary-light);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 768px) {

  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-inner {
    height: 60px;
    padding: 0 16px;
  }

  .nav-logo {
    font-size: 1.25rem;
    gap: 8px;
  }

  .nav-logo .logo-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .nav-actions .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  /* Container */
  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
    margin-bottom: 16px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 14px 24px;
  }

  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 32px;
    justify-content: center;
  }

  .hero-stat .number {
    font-size: 1.6rem;
  }

  .hero-stat .label {
    font-size: 0.75rem;
  }

  /* Sections */
  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-desc {
    font-size: 0.95rem;
  }

  .section-label {
    font-size: 0.72rem;
  }

  /* Problems */
  .problems-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .problem-card {
    padding: 28px 20px;
  }

  .problem-card .icon {
    font-size: 2.4rem;
    margin-bottom: 14px;
  }

  .problem-card h3 {
    font-size: 1.05rem;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-story-card {
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
  }

  .feature-story-icon {
    width: auto;
  }

  .feature-story-icon .feature-icon-img {
    width: 52px;
    height: 52px;
  }

  .feature-story-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    margin-bottom: 14px;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .pricing-price {
    font-size: 2.4rem;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-grid::before {
    display: none;
  }

  .step-card {
    padding: 24px 20px;
  }

  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1rem;
    margin-bottom: 16px;
  }

  /* FAQ */
  .faq-question {
    font-size: 0.9rem;
    padding: 18px 0;
  }

  .faq-answer p {
    font-size: 0.88rem;
    padding-bottom: 18px;
  }

  /* CTA */
  .cta-section {
    padding: 48px 0;
  }

  .cta-box {
    padding: 40px 24px;
    border-radius: var(--radius-lg);
  }

  .cta-box h2 {
    font-size: 1.5rem;
  }

  .cta-box p {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .cta-box .btn {
    width: 100%;
  }

  /* Modal */
  .modal {
    margin: 16px;
    padding: 28px;
  }

  /* Dashboard */
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sites-table th:nth-child(3),
  .sites-table td:nth-child(3),
  .sites-table th:nth-child(4),
  .sites-table td:nth-child(4) {
    display: none;
  }

  /* Legal pages */
  .legal-page {
    padding: 24px 0 60px;
  }

  .legal-page h1 {
    font-size: 1.5rem;
  }

  .legal-page h2 {
    font-size: 1.1rem;
    margin-top: 24px;
  }

  .legal-table {
    font-size: 0.8rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 8px 10px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.65rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-stat {
    flex: 1;
    min-width: 80px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .pricing-grid {
    max-width: 100%;
  }

  .cta-box {
    padding: 32px 16px;
  }

  .cta-box h2 {
    font-size: 1.3rem;
  }
}

/* ─── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* ═══════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ═══════════════════════════════════════════════════ */

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ───────────────────────────────────── */
.sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 50;
}

.sidebar-header {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 20px var(--primary-glow);
}

.sidebar-title {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  margin-bottom: 4px;
}

.sidebar-link .icon,
.sidebar-link .sidebar-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-link svg,
.mobile-nav-item svg {
  stroke-width: 2px;
}

.sidebar-link:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--bg-glass-hover);
  color: var(--primary-light);
  border: 1px solid var(--border);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* ─── Dashboard Main Content ────────────────────── */
.dashboard-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  background: var(--bg-primary);
  padding: 32px;
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-wrap: wrap;
  /* Standard property for wrapping text */
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.page-actions {
  display: flex;
  gap: 12px;
}

/* ─── Toolbar (Search + Filter) ─────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 300px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--border-focus);
  background: var(--bg-glass-hover);
}

.filter-buttons {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 10px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: transparent;
}

/* ─── Stats Grid ────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* 4-column grid for site detail page */
.site-detail-stats {
  grid-template-columns: repeat(4, 1fr);
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.stat-value.green {
  color: var(--green);
}

.stat-value.red {
  color: var(--red);
}

/* ─── Sites Grid (Cards) ────────────────────────── */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
}

.site-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.site-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green));
  opacity: 0;
  transition: var(--transition);
}

.site-card.status-up::before {
  background: linear-gradient(90deg, var(--green), var(--green));
  opacity: 1;
}

.site-card.status-down::before {
  background: linear-gradient(90deg, var(--red), var(--red));
  opacity: 1;
  animation: pulse 2s infinite;
}

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

.site-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.site-card-title {
  flex: 1;
  min-width: 0;
}

.site-card-title h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-card-title .url {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.site-status-badge.up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.site-status-badge.down {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.site-status-badge.unknown {
  background: var(--bg-glass);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.site-status-badge .pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.site-status-badge.up .pulse-dot {
  animation: pulse 2s infinite;
}

.site-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.site-card-stat {
  display: flex;
  flex-direction: column;
}

.site-card-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.site-card-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.site-card-graph {
  height: 40px;
  margin-top: 8px;
  opacity: 0.6;
}

/* ─── Site Detail Page ──────────────────────────── */
.site-detail-header {
  margin-bottom: 32px;
}

.site-detail-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.site-detail-title h1 {
  font-size: 2rem;
  font-weight: 800;
}

.site-detail-url {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.site-detail-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.detail-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Overview Dashboard ───────────────────────── */
.overview-section {
  margin-bottom: 48px;
}

.overview-section:last-child {
  margin-bottom: 0;
}

.overview-stats-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px;
}

.overview-stat {
  position: relative;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.stat-icon svg {
  stroke-width: 2px;
}

.overview-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.82rem;
}

.detail-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-card-header h3 {
  margin-bottom: 0;
}

.heatmap-legend {
  display: flex;
  gap: 14px;
  align-items: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

.section-hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 16px;
}

#activity-timeline {
  min-height: 48px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

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

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.response-chart-container {
  position: relative;
  min-height: 300px;
}

.response-chart-container #response-time-chart {
  width: 100%;
}

/* ApexCharts dark theme overrides */
.apexcharts-tooltip {
  background: #1A1927 !important;
  border: 1px solid rgba(91, 76, 245, 0.3) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
}
.apexcharts-tooltip-title {
  background: rgba(91, 76, 245, 0.12) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  color: #A8A5C0 !important;
  font-size: 11px !important;
}
.apexcharts-tooltip-series-group {
  padding: 6px 12px !important;
}
.apexcharts-xaxistooltip {
  background: #1A1927 !important;
  border-color: rgba(91,76,245,0.3) !important;
  color: #A8A5C0 !important;
}
.apexcharts-xaxistooltip-bottom:after {
  border-bottom-color: #1A1927 !important;
}
.apexcharts-menu {
  background: #1A1927 !important;
  border-color: var(--border) !important;
}

.chart-period-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.chart-period-tab {
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chart-period-tab.active {
  background: var(--primary);
  color: white;
  border-color: transparent;
}

.uptime-timeline {
  display: flex;
  gap: 2px;
  height: 32px;
  margin-top: 12px;
}

.uptime-day {
  flex: 1;
  border-radius: 3px;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.uptime-day.up {
  background: var(--green);
  opacity: 0.8;
}

.uptime-day.down {
  background: var(--red);
  opacity: 0.9;
}

.uptime-day.unknown {
  background: var(--bg-glass);
  opacity: 0.4;
}

.uptime-day:hover {
  opacity: 1;
  transform: scaleY(1.2);
}

.incident-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.incident-item {
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.incident-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.incident-message {
  font-weight: 600;
  color: var(--red);
}

.incident-duration {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.incident-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ssl-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.ssl-info-item {
  display: flex;
  flex-direction: column;
}

.ssl-info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ssl-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ssl-info-value.warning {
  color: var(--yellow);
}

.ssl-info-value.danger {
  color: var(--red);
}

/* ─── Settings Page ─────────────────────────────── */
.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(20px);
}

.settings-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.settings-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.settings-row span:first-child {
  color: var(--text-secondary);
  font-weight: 500;
}

.settings-row span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* ─── Landing Hidden When Dashboard Active ─────── */
.landing.hidden {
  display: none;
}

/* ─── Section Visual Improvements ───────────────── */
.section+.section {
  position: relative;
}

.section+.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
}

.problems-grid .card,
.features-grid .card,
.steps-grid .card {
  border-color: rgba(255, 255, 255, 0.05);
}

.cta-section {
  padding: 100px 0;
}

.cta-box {
  padding: 80px 48px;
}

.hero-stats {
  padding-top: 48px;
  gap: 56px;
}

.hero-stat .number {
  font-size: 2.2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ─── Legal Pages ───────────────────────────────── */
.legal-page {
  min-height: 100vh;
  padding: 40px 0 80px;
  background: var(--bg-primary);
}

.legal-container {
  max-width: 800px;
}

.legal-back {
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-page p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-page ul {
  margin: 8px 0 16px 24px;
  color: var(--text-secondary);
}

.legal-page ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.legal-page a {
  color: var(--primary-light);
  text-decoration: none;
}

.legal-page a:hover {
  color: var(--primary);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.legal-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.legal-table tr:hover td {
  background: rgba(99, 102, 241, 0.03);
}

/* ─── Cookie Banner ─────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: none;
  justify-content: center;
  padding: 16px 24px;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  animation: slideUp 0.4s ease;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 800px;
  width: 100%;
}

.cookie-banner-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}

.cookie-banner-content a {
  color: var(--primary-light);
  text-decoration: none;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ─── Overview Dashboard ────────────────────────── */
.date-range-selector {
  display: flex;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
}

.range-btn {
  padding: 8px 16px;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.range-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.range-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.section-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.comparison-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: var(--transition-fast);
}

.comparison-table th.sortable:hover {
  color: var(--primary-light);
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.comparison-table tr:hover td {
  background: rgba(99, 102, 241, 0.05);
}

.table-site-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.table-site-url {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Heatmap */
#heatmap-container {
  overflow-x: auto;
  padding: 8px 0;
}

#heatmap-container canvas {
  display: block;
}

/* PDF Button */
.btn-pdf {
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  color: var(--primary-light) !important;
  font-weight: 600;
}

.btn-pdf:hover {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: var(--primary) !important;
}

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar {
    width: 220px;
  }

  .dashboard-main {
    margin-left: 220px;
  }

  .sites-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .dashboard-main {
    margin-left: 0;
    padding: 16px;
    padding-bottom: 80px;
    padding-top: 60px;
  }

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

  .page-header h1 {
    font-size: 1.4rem;
  }

  .page-actions {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  .page-actions .btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    font-size: 0.8rem;
    padding: 10px 12px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    min-width: 100%;
  }

  .filter-buttons {
    flex-wrap: wrap;
  }

  .sites-grid {
    grid-template-columns: 1fr;
  }

  /* Force all stats grids (including site-detail 4-col) to 2 columns */
  .stats-grid,
  .stats-grid.site-detail-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .stat-card {
    min-width: 0;
    overflow: hidden;
  }

  .stat-value {
    font-size: 1.5rem;
    word-break: break-word;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  /* Overview stats grid — also 2 columns */
  .overview-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .site-card-stats {
    grid-template-columns: 1fr 1fr;
  }

  .ssl-info {
    grid-template-columns: 1fr;
  }

  /* Site detail title */
  .site-detail-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-detail-title h1 {
    font-size: 1.4rem;
  }

  /* Response time chart */
  .response-chart-container {
    height: 200px;
    max-width: 100%;
    overflow: hidden;
  }

  /* Uptime timeline — scrollable on mobile */
  .uptime-timeline {
    overflow-x: auto;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .uptime-day {
    min-width: 4px;
    flex-shrink: 0;
  }

  /* Chart period tabs */
  .chart-period-tabs {
    gap: 4px;
  }

  .chart-period-tab {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  /* Incident items */
  .incident-header {
    flex-direction: column;
    gap: 4px;
  }

  .incident-item {
    padding: 12px;
  }

  .incident-message {
    font-size: 0.9rem;
    word-break: break-word;
  }

  /* SSL details grid */
  .ssl-details-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ssl-info-main {
    flex-direction: column;
    gap: 12px;
  }

  /* Date range selector */
  .date-range-selector {
    gap: 4px;
    padding: 3px;
  }

  .range-btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  /* Settings page */
  .settings-section {
    padding: 16px;
  }

  .settings-row {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  /* Telegram integration cards */
  #tg-connected-card>div,
  #tg-disconnected-card>div:first-child {
    flex-direction: column;
    text-align: center;
  }

  #tg-connect-steps>div>div {
    flex-direction: column;
  }

  /* Heatmap */
  #heatmap-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Heatmap legend */
  .heatmap-legend {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Comparison table */
  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
  }

  /* Hide less important columns in comparison table */
  .comparison-table th:nth-child(4),
  .comparison-table td:nth-child(4),
  .comparison-table th:nth-child(6),
  .comparison-table td:nth-child(6) {
    display: none;
  }

  /* Detail card header */
  .detail-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .detail-card {
    padding: 16px;
  }

  /* Overview actions */
  .overview-actions-row {
    flex-direction: column;
  }

  .overview-actions-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* Modal improvements for mobile */
  .modal {
    margin: 12px;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
    max-width: calc(100vw - 24px);
  }

  .modal h2 {
    font-size: 1.2rem;
  }

  /* Stacking keyword inputs in modals */
  .modal .form-group div[style*="display:flex"][style*="gap:8px"],
  .modal .form-group div[style*="display: flex"][style*="gap: 8px"] {
    flex-direction: column !important;
  }

  .modal .form-group select.form-input {
    width: 100% !important;
  }

  /* Status page list */
  .sites-list-selection {
    max-height: 300px;
    overflow-y: auto;
  }

  /* RKN card */
  .rkn-card-content {
    flex-direction: column;
    text-align: center;
    padding: 16px 12px;
  }

  /* Show mobile elements */
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-bottom-nav {
    display: flex !important;
  }

  /* Landing nav hamburger */
  .nav-hamburger {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex;
  }
}

/* ─── Mobile Menu Toggle ────────────────────────── */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 110;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu-toggle:hover span {
  background: var(--text-primary);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Mobile Bottom Nav ─────────────────────────── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
  backdrop-filter: blur(20px);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  min-width: 64px;
  text-align: center;
}

.mobile-nav-item .icon {
  font-size: 1.3rem;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--primary-light);
}

/* ─── Mobile Overlay ────────────────────────────── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90;
}

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

/* ─── PWA Install Banner ────────────────────────── */
.install-banner {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  z-index: 200;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideUp 0.3s ease;
}

.install-banner.show {
  display: flex;
}

.install-banner-text {
  flex: 1;
}

.install-banner-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.install-banner-text p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ─── Safe Area Insets ──────────────────────────── */
@supports (padding: max(0px)) {
  .dashboard-main {
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
  }
}

/* ─── Touch Targets ─────────────────────────────── */
@media (pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }

  .sidebar-link {
    min-height: 44px;
  }

  .filter-btn {
    min-height: 44px;
  }

  .faq-question {
    min-height: 48px;
  }
}

/* ─── Hero Layout Update ────────────────────────── */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-img {
  width: 150%;
  max-width: 680px;
  height: auto;
  filter: drop-shadow(0 0 80px rgba(91, 76, 245, 0.45));
  animation: floatLogo 8s ease-in-out infinite;
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

/* Adjustments for side-by-side layout */
.hero-layout .hero-content {
  text-align: left;
  margin: 0;
  max-width: none;
}

.hero-layout .hero-content h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}

/* ─── Iron-clad Layout Shift Prevention ─────────── */
/* The Typed.js animation changes word length. We pre-reserve
   enough height for the WORST CASE word at every breakpoint.
   Longest phrase: "сервер не отвечает" (may wrap on mobile).
   Strategy: fix the height of the entire h1, not just one line. */
.hero-content h1,
.hero-layout .hero-content h1 {
  /* Reserve 3 full lines: "Узнайте первым," + 2 lines for "если [длинная фраза]" */
  min-height: 3.6em;
}

.hero-typed-line {
  display: block;
  /* Reserve space for the typed line — up to 3 lines on very small screens */
  min-height: 3.5em;
  white-space: normal;
}

/* On large screens text is bigger but fits in 1 line */
@media (min-width: 768px) {
  .hero-content h1,
  .hero-layout .hero-content h1 {
    min-height: 3.5em;
  }
  .hero-typed-line {
    /* "when server not responding" can wrap to 2 lines at intermediate widths */
    min-height: 2.2em;
  }
}

.hero-layout .hero-content p {
  margin-left: 0;
  margin-right: 0;
}

.hero-layout .hero-actions {
  justify-content: flex-start;
}

.hero-layout .hero-stats {
  justify-content: flex-start;
  gap: 40px;
}

/* Responsive Styles */
@media (max-width: 968px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-layout .hero-content {
    text-align: center;
  }

  .hero-layout .hero-actions {
    justify-content: center;
  }

  .hero-layout .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-img {
    max-width: 280px;
    margin-bottom: 10px;
  }
}

/* ─── Hero Monitor Widget ───────────────────────── */
.hero-monitor-widget {
  background:
    linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
    linear-gradient(145deg, rgba(91, 76, 245, 0.65), rgba(255, 255, 255, 0.06) 55%, rgba(34, 197, 94, 0.35)) border-box;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 24px;
  max-width: 460px;
  width: 100%;
  backdrop-filter: blur(24px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 90px rgba(91, 76, 245, 0.1);
  animation: floatLogo 8s ease-in-out infinite;
}

.hmw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.hmw-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hmw-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  padding: 4px 11px;
  border-radius: var(--radius-full);
}

.hmw-status-badge .hmw-dot-sm {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-glow);
  animation: pulse 2s infinite;
}

.hmw-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hmw-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.hmw-item:hover {
  background: rgba(255, 255, 255, 0.055);
}

.hmw-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hmw-dot.green {
  background: var(--green);
  box-shadow: 0 0 7px var(--green-glow);
  animation: pulse 2.5s infinite;
}

.hmw-dot.red {
  background: var(--red);
  box-shadow: 0 0 7px var(--red-glow);
  animation: pulse 1.4s infinite;
}

.hmw-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hmw-rt {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  min-width: 44px;
  text-align: right;
}

.hmw-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.hmw-badge.up {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.hmw-badge.down {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.hmw-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Floating Background Elements ───────────────── */
.floating-bg-image {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.15;
  will-change: transform;
}

.pricing-float-left {
  width: 800px;
  max-width: 50vw;
  left: -250px;
  top: 50%;
  transform: translateY(-50%) rotate(5deg);
  animation: bg-float-pricing 10s ease-in-out infinite alternate;
}

@keyframes bg-float-pricing {
  0% {
    transform: translateY(-50%) rotate(5deg);
  }

  100% {
    transform: translateY(calc(-50% - 30px)) rotate(8deg);
  }
}

@media (max-width: 968px) {
  .pricing-float-left {
    width: 350px;
    left: -120px;
    opacity: 0.08;
  }
}

/* ─── Problems Floating Image ────────────────────── */
#problems {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.problems-float-right {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: 650px;
  max-width: 45vw;
  right: -80px;
  top: 50px;
  opacity: 0.4;
  filter: blur(4px);
  transform: rotate(10deg);
  animation: bg-float-problems 12s ease-in-out infinite alternate;
  will-change: transform;
}


@keyframes bg-float-problems {
  0% {
    transform: translate(0, 0) rotate(10deg);
  }

  50% {
    transform: translate(-30px, -20px) rotate(15deg);
  }

  100% {
    transform: translate(-10px, -40px) rotate(12deg);
  }
}


@media (max-width: 968px) {
  .problems-float-right {
    width: 250px;
    right: -30px;
    opacity: 0.4;
  }
}

/* ─── How it works Floating Image ───────────────── */
#how-it-works {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.howitworks-float-right {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: 750px;
  max-width: 45vw;
  right: -80px;
  top: 10%;
  opacity: 0.4;
  filter: blur(4px);
  transform: rotate(-15deg);
  animation: bg-float-how 12s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bg-float-how {
  0% {
    transform: translate(0, 0) rotate(-15deg);
  }
  50% {
    transform: translate(-30px, 40px) rotate(-18deg);
  }
  100% {
    transform: translate(-10px, -20px) rotate(-12deg);
  }
}


@media (max-width: 968px) {
  .howitworks-float-right {
    width: 200px;
    right: -40px;
    opacity: 0.5;
  }
}

/* ─── Features Floating Image ─────────────────── */
#features {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.features-float-left {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: 500px;
  max-width: 50vw;
  left: -80px;
  top: 10%;
  opacity: 0.4;
  filter: blur(4px);
  transform: rotate(-8deg);
  animation: bg-float-features-left 12s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bg-float-features-left {
  0% {
    transform: translate(0, 0) rotate(-8deg);
  }
  50% {
    transform: translate(30px, -20px) rotate(-12deg);
  }
  100% {
    transform: translate(10px, -50px) rotate(-5deg);
  }
}

@media (max-width: 968px) {
  .features-float-left {
    width: 280px;
    left: -50px;
    opacity: 0.5;
  }
}



/* ─── Pricing Parallax Image ────────────────────── */
#pricing {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.pricing-bg-image {
  position: absolute;
  top: 50%;
  right: -100px;
  width: 700px;
  height: auto;
  opacity: 0.1;
  z-index: -1;
  transform: translateY(-50%) rotate(-10deg);
  pointer-events: none;
  filter: blur(5px);
  will-change: transform;
}

.pricing-float-left-v2 {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: 550px;
  max-width: 45vw;
  left: -80px;
  top: 50px;
  opacity: 0.4;
  filter: blur(4px);
  transform: rotate(5deg);
  animation: bg-float-pricing-left-v2 14s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes bg-float-pricing-left-v2 {
  0% {
    transform: translate(0, 0) rotate(5deg);
  }
  50% {
    transform: translate(40px, 20px) rotate(8deg);
  }
  100% {
    transform: translate(15px, 50px) rotate(3deg);
  }
}

@media (max-width: 968px) {
  .pricing-bg-image {
    width: 400px;
    right: -100px;
    opacity: 0.05;
  }
  .pricing-float-left-v2 {
    width: 250px;
    left: -30px;
    opacity: 0.4;
  }
}



/* ─── SSL Details ───────────────────────────────── */
.ssl-info-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ssl-info-main {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ssl-info-item {
  flex: 1;
}

.ssl-info-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.ssl-info-value {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.ssl-info-value.danger {
  color: var(--red);
}

.ssl-info-value.warning {
  color: var(--yellow);
}

.ssl-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  font-size: 0.9rem;
}

.ssl-detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ssl-detail-row.full-width {
  grid-column: 1 / -1;
}

.ssl-detail-row .label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.ssl-detail-row .value {
  color: var(--text-primary);
  font-weight: 500;
  word-break: break-all;
  line-height: 1.4;
}

/* ─── RKN Card ──────────────────────────────────── */
.rkn-card-content {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--bg-body);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  gap: 16px;
}

.rkn-card-content.locked {
  background: rgba(255, 255, 255, 0.03);
  border-style: dashed;
}

.rkn-card-content.success {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.rkn-card-content.danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.rkn-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.rkn-icon-wrapper.locked {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.rkn-text h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
}

.rkn-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.rkn-text .btn {
  margin-top: 8px;
}

.rkn-text .text-link {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 4px;
  display: inline-block;
  text-decoration: none;
}

.ssl-detail-row .value.monospace {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', monospace;
  font-size: 0.85em;
  opacity: 0.8;
  letter-spacing: 0.05em;
}


/* ─── Safe Browsing Card ─────────────────────────────────────────── */

.safebrowsing-card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.safebrowsing-card.sb-safe {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.safebrowsing-card.sb-threat {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
}

.sb-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sb-icon {
  font-size: 1.4rem;
}

.sb-status-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sb-safe .sb-status-text {
  color: #10b981;
}

.sb-threat .sb-status-text {
  color: #ef4444;
}

.sb-threat-detail {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.06);
  border-radius: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sb-threat-detail .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.sb-threat-detail .value {
  color: #ef4444;
  font-weight: 600;
  font-size: 0.85rem;
}

.sb-checked-at {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
}

.sb-checked-at .label {
  color: var(--text-muted);
}

.sb-checked-at .value {
  color: var(--text-secondary);
}

/* ─── Passkeys ────────────────────────────────────────── */
.passkey-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.passkey-divider::before,
.passkey-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.passkey-divider span {
  padding: 0 10px;
}

.btn-passkey {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-passkey svg {
  min-width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-passkey:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.passkey-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
}

.passkey-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.passkey-icon {
  font-size: 1.2rem;
}

.passkey-name {
  font-weight: 500;
  color: var(--text-primary);
}

.passkey-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Verification Modals ────────────────────────── */
.modal-icon-wrapper {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 40px var(--primary-glow);
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-icon-wrapper svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.modal-icon-wrapper.success {
  box-shadow: 0 0 40px var(--green-glow);
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.05);
}

@keyframes popIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════
   TAGS — Filter, Badges, Manager
════════════════════════════════════════════════════ */

/* Toolbar tag filter section */
.tag-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.tag-filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 140px;
}

.tag-filter-select:hover,
.tag-filter-select:focus {
  border-color: var(--accent);
  outline: none;
}

/* Tag badges on site cards */
.site-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.92;
  white-space: nowrap;
}

.tag-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

/* Tag Manager Modal */
.tag-create-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.tag-create-form .form-input {
  flex: 1;
}

.tag-color-input {
  width: 44px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  background: transparent;
  flex-shrink: 0;
}

.tag-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.tag-item:hover {
  border-color: var(--accent);
}

.tag-item-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tag-item-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.tag-item-actions {
  display: flex;
  gap: 6px;
}

.tag-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px 0;
}

/* Tag checkboxes in site form */
.tag-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.tag-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.tag-checkbox-label:hover {
  border-color: var(--accent);
}

.tag-checkbox-label input[type="checkbox"] {
  display: none;
}

.tag-checkbox-label.checked {
  color: #fff;
  border-color: transparent;
}

.tag-no-tags {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ─── SSO Buttons ───────────────────────────────── */
.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  width: 100%;
}

.sso-btn svg {
  width: 20px;
  height: 20px;
}

.sso-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}