/* ============================================================
   HariSree SSL Alerts — design tokens
   Palette grows from the logo: deep navy + signal teal + coral
   alert accent. Fraunces for display type (echoes the wordmark's
   serif), Inter for everything functional.
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0A2740;
  --navy-2: #0E3A56;
  --navy-deep: #071B2E;
  --teal: #1BC7B5;
  --teal-dark: #109385;
  --coral: #FF6F5E;
  --amber: #E6A700;
  --red: #D8453A;
  --bg: #F3F6F7;
  --paper: #FFFFFF;
  --ink: #12232F;
  --muted: #5B707C;
  --line: #E1E8EA;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(10,39,64,0.04), 0 8px 24px rgba(10,39,64,0.06);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* Very subtle grain for a tactile, less "flat digital" feel — barely
   perceptible, tiled as a fixed background so it doesn't move on scroll. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
}
a { color: inherit; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em; background: #EAF2F5; color: var(--navy-2);
  padding: 1px 6px; border-radius: 5px;
}
button { font-family: var(--sans); cursor: pointer; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 8px rgba(10,39,64,0.18); }
.btn-primary:hover { background: var(--navy-2); }
.btn-accent { background: var(--teal); color: var(--navy-deep); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 10px rgba(16,147,133,0.25); }
.btn-accent:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-danger { background: transparent; color: var(--red); border-color: #F3D6D3; }
.btn-danger:hover { background: #FCEEEC; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Top nav (sticky, glass on scroll) ---------- */
.topnav-wrap {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.topnav-wrap.scrolled {
  background: rgba(243, 246, 247, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(10, 39, 64, 0.06);
}
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.topnav-links { display: flex; gap: 28px; }
.topnav-links a {
  color: var(--navy-2); text-decoration: none; font-size: 14px; font-weight: 500;
}
.topnav-links a:hover { color: var(--teal-dark); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand-word { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--navy); }

/* ---------- Landing hero ---------- */
.site-glow { display: none; } /* reserved for future global background accents */

.hero-section { position: relative; overflow: hidden; }
.hero-aurora {
  position: absolute; inset: -10% -10% -30% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 45% at 78% 18%, rgba(27, 199, 181, 0.20), transparent 70%),
    radial-gradient(30% 38% at 15% 70%, rgba(255, 111, 94, 0.14), transparent 70%),
    radial-gradient(45% 50% at 50% 100%, rgba(10, 39, 64, 0.06), transparent 70%);
  animation: auroraDrift 22s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 2%, 0) scale(1.05); }
}

.hero {
  position: relative; z-index: 1;
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 33px;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: 6px;
}
.hero-title-main {
  display: block;
  font-size: 34px;
  font-weight: 800;
  color: #FFFFFF !important;
  margin-bottom: 3px;
}
.hero-title-sub1 {
  display: block;
  font-size: 29px;
  font-weight: 800;
  margin-bottom: 3px;
}
.hero-title-sub2 {
  display: block;
  font-size: 29px;
  font-weight: 800;
}
.hero-title-gradient {
  background: linear-gradient(135deg, #00A896 0%, #028090 45%, #0A2740 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero .lede { color: var(--muted); font-size: 18px; max-width: 46ch; margin-top: 18px; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 999px;
  background: linear-gradient(145deg, #FFFFFF 0%, #E6FAF6 100%);
  color: var(--teal-dark);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.4;
  margin-bottom: 20px;
  border: 1.5px solid rgba(0, 168, 150, 0.35);
  box-shadow: 
    0 4px 6px -1px rgba(0, 168, 150, 0.1),
    0 12px 24px -3px rgba(10, 39, 64, 0.12),
    inset 0 1.5px 1px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(0, 168, 150, 0.08);
  transform: perspective(600px) translateZ(0);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: default;
  max-width: 100%;
}
.hero-badge:hover {
  transform: perspective(600px) translateY(-4px) scale(1.025) rotateX(5deg);
  box-shadow: 
    0 16px 30px -4px rgba(0, 168, 150, 0.22),
    0 8px 16px -2px rgba(10, 39, 64, 0.15),
    inset 0 1.5px 1px #fff;
  border-color: var(--teal);
}
.hero-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  filter: drop-shadow(0 2px 4px rgba(0, 168, 150, 0.4));
  flex-shrink: 0;
}

/* The one bold moment: a real 3D-perspective stack of certificate cards.
   The card needing attention (critical) sits physically closest to the
   viewer; the healthy one recedes — depth encodes urgency, not decoration. */
.hero-stage {
  position: relative;
  height: 440px;
  perspective: 1400px;
}
.hero-scene {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}
.cert-card-3d {
  position: absolute; left: 50%; top: 50%; width: 320px; margin-left: -160px;
  transform-style: preserve-3d;
}
.cert-card-3d.depth-back  { margin-top: -186px; transform: translateZ(-70px) rotateY(-9deg) rotateX(6deg) scale(0.9); z-index: 1; }
.cert-card-3d.depth-mid   { margin-top: -96px;  transform: translateZ(-15px) rotateY(4deg) rotateX(-2deg) scale(0.97); z-index: 2; }
.cert-card-3d.depth-front { margin-top: 6px;    transform: translateZ(35px) rotateY(-4deg) rotateX(-1deg) scale(1.05); z-index: 3; }

.cert-card {
  background: var(--paper);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  animation: cardFloat 6.5s ease-in-out infinite;
}
.depth-back .cert-card  { box-shadow: 0 14px 26px rgba(10, 39, 64, 0.10); animation-delay: -1.2s; }
.depth-mid .cert-card   { box-shadow: 0 20px 36px rgba(10, 39, 64, 0.14); animation-delay: -3.6s; }
.depth-front .cert-card { box-shadow: 0 32px 56px rgba(10, 39, 64, 0.22); animation-delay: 0s; }
.cert-card-critical {
  box-shadow: 0 32px 56px rgba(10, 39, 64, 0.24), 0 0 0 1px rgba(255, 111, 94, 0.35), 0 0 44px rgba(255, 111, 94, 0.22) !important;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.cert-host { font-weight: 600; font-size: 14px; color: var(--navy); }
.cert-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .hero-aurora, .cert-card { animation: none; }
  .hero-scene { transition: none; }
}

/* ---------- Hero 3D Trust Badges & Interactive Cards ---------- */
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 28px;
  align-items: center;
  perspective: 1200px;
}
.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  border-radius: 14px;
  background: linear-gradient(145deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid rgba(203, 213, 225, 0.85);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
  box-shadow: 
    0 4px 6px -1px rgba(10, 39, 64, 0.05),
    0 10px 20px -3px rgba(10, 39, 64, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 4px rgba(0, 0, 0, 0.02);
  transform: translateZ(0);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: default;
  transform-style: preserve-3d;
}
.hero-trust-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.hero-trust-badge:hover {
  transform: translateY(-5px) scale(1.03) rotateX(6deg) rotateY(-2deg);
  box-shadow: 
    0 18px 32px -4px rgba(10, 39, 64, 0.16),
    0 8px 16px -2px rgba(0, 168, 150, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(0, 168, 150, 0.45);
}
.hero-trust-badge .badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #F0FDF4 0%, #E6FFFA 100%);
  border: 1px solid rgba(0, 168, 150, 0.25);
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04), inset 0 1px 0 #fff;
  flex-shrink: 0;
  transform: translateZ(8px);
}
.hero-trust-badge strong {
  font-weight: 800;
  color: var(--navy);
  font-size: 15px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  display: inline-block;
}
.hero-trust-badge a {
  color: var(--teal-dark);
  text-decoration: underline;
  font-weight: 600;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center;
  padding: 22px 24px; margin: 8px auto 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--navy-2); font-weight: 500;
}
.trust-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

/* One orchestrated scroll reveal for the features section only. */
.reveal-group { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-group.revealed { opacity: 1; transform: translateY(0); }

/* ---------- FAQ (condensed — full documentation lives at /docs.html) ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.faq-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--paper); }
.faq-card h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.faq-card p { color: var(--muted); font-size: 14px; }
.docs-cta-link { color: var(--teal-dark); font-weight: 600; font-size: 14px; text-decoration: none; }
.docs-cta-link:hover { text-decoration: underline; }

/* ---------- Footer (redesigned) ---------- */
.site-footer-new { background: var(--navy-deep); color: #C9D6DC; padding: 56px 0 0; margin-top: 24px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand-word { color: #fff; }
.footer-brand p { color: #94A7B0; font-size: 14px; margin: 14px 0 18px; max-width: 32ch; }
.social-links { display: flex; gap: 10px; }
.social-icon {
  width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center; color: #C9D6DC;
  transition: background .15s ease, color .15s ease;
}
.social-icon svg { width: 17px; height: 17px; }
a.social-icon:hover { background: var(--teal); color: var(--navy-deep); }
.social-icon.disabled { opacity: 0.35; cursor: default; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #6E828C; margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #C9D6DC; text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { padding: 20px 0; font-size: 13px; color: #6E828C; }

@media (max-width: 700px) {
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer-brand .brand { justify-content: center; }
  .footer-brand p { margin-left: auto; margin-right: auto; }
  .social-links { justify-content: center; }
}


/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* ---------- Product preview mockup ---------- */
.product-preview {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.preview-frame { perspective: 1200px; }
.preview-frame > .preview-chrome { transform: rotateY(-6deg) rotateX(2deg); transform-style: preserve-3d; }
.preview-chrome {
  background: #E4EAEC; border-radius: 14px 14px 0 0; padding: 12px 16px;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 40px 70px rgba(10, 39, 64, 0.20);
}
.preview-chrome span { width: 10px; height: 10px; border-radius: 50%; background: #C7D1D4; }
.preview-url {
  margin-left: 10px; background: var(--paper); border-radius: 6px; padding: 4px 12px;
  font-size: 12px; color: var(--muted); flex: 1;
}
.preview-body {
  background: var(--paper); border-radius: 0 0 14px 14px; padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transform: rotateY(-6deg) rotateX(2deg) translateZ(-1px);
  box-shadow: 0 40px 70px rgba(10, 39, 64, 0.14);
}
.preview-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.preview-row .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.preview-row > div:nth-child(2) { flex: 1; min-width: 0; }
.preview-host { font-weight: 600; font-size: 13px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.preview-row .pill { font-size: 10px; padding: 3px 8px; flex-shrink: 0; }
.preview-copy h2 { font-size: 28px; }
.preview-copy p { color: var(--muted); font-size: 16px; margin: 14px 0 24px; max-width: 42ch; }
@media (max-width: 860px) {
  .product-preview { grid-template-columns: 1fr; }
  .preview-copy { text-align: center; }
  .preview-copy p { margin-left: auto; margin-right: auto; }
  .preview-chrome, .preview-body { transform: none; }
}

/* ---------- How it works (a real sequence, so numbered markers earn their place) ---------- */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  position: relative;
}
.steps::before {
  content: ''; position: absolute; top: 22px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-marker {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 18px; font-weight: 600;
  margin-bottom: 16px;
  box-shadow: 0 0 0 6px var(--bg), 0 8px 18px rgba(10, 39, 64, 0.22);
}
.step h3 { font-size: 17px; font-family: var(--sans); font-weight: 600; color: var(--navy); }
.step p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.feature .icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(155deg, var(--navy-2), var(--navy-deep));
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 6px 14px rgba(10,39,64,0.18);
}
.feature h3 { font-size: 17px; font-family: var(--sans); font-weight: 600; color: var(--navy); }
.feature p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Pricing Carousel & Grid ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pricing-carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.pricing-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 24px 8px 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pricing-carousel-track::-webkit-scrollbar {
  display: none;
}
.pricing-carousel-track .plan-card {
  flex: 0 0 calc((100% - 48px) / 3);
  max-width: calc((100% - 48px) / 3);
  min-width: calc((100% - 48px) / 3);
  scroll-snap-align: start;
  box-sizing: border-box;
}
@media (max-width: 992px) {
  .pricing-carousel-track .plan-card {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
    min-width: calc((100% - 20px) / 2);
  }
}
@media (max-width: 640px) {
  .pricing-carousel-track .plan-card {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 100%;
  }
}
.pricing-carousel-btn {
  position: absolute;
  top: 48%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0A2740;
  border: 2px solid var(--teal, #1BC7B5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-carousel-btn:hover {
  background: var(--teal, #1BC7B5);
  color: #0A2740;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(27, 199, 181, 0.5);
}
.pricing-carousel-btn.prev-btn {
  left: -24px;
}
.pricing-carousel-btn.next-btn {
  right: -24px;
}
@media (max-width: 1100px) {
  .pricing-carousel-btn.prev-btn { left: 4px; }
  .pricing-carousel-btn.next-btn { right: 4px; }
}
.pricing-carousel-btn:disabled, .pricing-carousel-btn.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.pricing-carousel-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.pricing-dot {
  width: 12px;
  height: 12px;
  border-radius: 6px;
  border: none;
  background: rgba(10, 39, 64, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}
.pricing-dot.active {
  width: 34px;
  background: var(--teal, #1BC7B5);
}

.plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 24px;
  position: relative;
  overflow: hidden; /* keeps the corner ribbon from poking past the card edge and causing scroll on narrow screens */
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), 0 20px 44px rgba(16, 147, 133, 0.18);
  transform: scale(1.03);
}
.plan-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-card .tag {
  position: absolute; top: 16px; right: -34px;
  background: var(--coral); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 36px; transform: rotate(45deg); letter-spacing: 0.5px;
}
.plan-card h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; }
.plan-card .plan-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
  margin: 4px 0 10px;
  line-height: 1.4;
  min-height: 38px;
  display: flex;
  align-items: center;
}
body.landing-page-3d .plan-card .plan-subtitle {
  color: rgba(255, 255, 255, 0.72);
}
.plan-card .price {
  font-family: var(--serif);
  color: var(--navy);
  margin: 10px 0 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 72px;
  gap: 4px;
}
.plan-card .price span { font-size: 15px; color: var(--muted); font-family: var(--sans); font-weight: 500; }
.plan-card .price .price-original { font-size: 24px; font-weight: 800; color: #64748B; margin-right: 6px; vertical-align: middle; }

/* ---------- Enhanced Pricing Strikethrough & Discount Badges ---------- */
.price-cross-container {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  line-height: 1 !important;
}

.price-active-container {
  display: inline-flex !important;
  align-items: baseline !important;
  white-space: nowrap !important;
  gap: 4px !important;
  line-height: 1 !important;
}

.price-original-cross,
.plan-card .price .price-original-cross,
.modal-plan .mp-price .price-original-cross {
  font-family: var(--sans) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #64748B !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  text-decoration: line-through !important;
  text-decoration-color: #EF4444 !important;
  text-decoration-thickness: 3.5px !important;
}

.price-original-cross::after {
  content: '';
  position: absolute;
  left: -5px;
  right: -5px;
  top: 48%;
  height: 3.5px;
  background: #EF4444;
  transform: rotate(-14deg);
  border-radius: 2px;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.4);
  pointer-events: none;
}

.discount-badge-pill,
.plan-card .price .discount-badge-pill,
.modal-plan .mp-price .discount-badge-pill {
  display: inline-flex !important;
  align-items: center !important;
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%) !important;
  color: #DC2626 !important;
  border: 1.5px solid #FCA5A5 !important;
  font-family: var(--sans) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 3px 9px !important;
  border-radius: 999px !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  box-shadow: 0 2px 5px rgba(220, 38, 38, 0.15) !important;
  vertical-align: middle !important;
}

.price-current,
.plan-card .price .price-current {
  font-family: var(--serif) !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  color: var(--navy) !important;
  line-height: 1 !important;
}

.modal-plan .mp-price .price-current {
  font-family: var(--serif) !important;
  font-size: 38px !important;
  font-weight: 800 !important;
  color: var(--navy) !important;
  line-height: 1 !important;
}

.mp-period,
.plan-card .price .mp-period,
.modal-plan .mp-price .mp-period {
  font-size: 14px !important;
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-weight: 500 !important;
}

.plan-card ul { list-style: none; padding: 0; margin: 20px 0 24px; color: var(--muted); font-size: 14px; }
.plan-card li { position: relative; padding: 5px 0 5px 22px; display: block; line-height: 1.45; }
.plan-card li::before { content: '✓'; position: absolute; left: 0; top: 5px; color: var(--teal-dark); font-weight: 700; line-height: 1.45; }
.plan-card li strong { color: var(--navy); font-weight: 700; white-space: nowrap; }

.enterprise-cta-card {
  margin-top: 32px;
  background: linear-gradient(135deg, #0A2740 0%, #173B5E 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(10, 39, 64, 0.15);
}
.enterprise-cta-card h3 {
  color: #fff;
  font-size: 20px;
  margin: 0 0 6px;
}
.enterprise-cta-card p {
  color: #94A3B8;
  font-size: 14px;
  margin: 0;
  max-width: 600px;
}
@media (max-width: 768px) {
  .enterprise-cta-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Auth panels ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  background: linear-gradient(155deg, #071929 0%, #0A2740 45%, #051424 100%);
  color: #fff;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.08);
}
.auth-side::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 40%, rgba(27, 199, 181, 0.25) 0%, rgba(14, 58, 86, 0.2) 40%, transparent 68%);
  pointer-events: none;
}
.auth-side::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.7;
}

.auth-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  transition: transform 0.2s ease;
}
.auth-brand-link:hover {
  transform: translateX(2px);
}
.auth-brand-link img {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 8px rgba(27, 199, 181, 0.4));
}
.auth-brand-link span {
  color: #FFFFFF;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.3px;
}

.auth-butterfly-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 330px;
  perspective: 1200px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto;
}
.auth-butterfly-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.15s cubic-bezier(0.2, 0, 0.38, 0.9);
}
.auth-butterfly-stage .butterfly-3d-centerpiece {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  margin-left: -110px;
  margin-top: -110px;
  animation: butterflyFlight 2.6s ease-in-out infinite;
  z-index: 2;
}
.auth-butterfly-stage .butterfly-halo-aura {
  inset: -38px;
  filter: blur(28px);
}

.auth-cert-badge {
  position: absolute;
  padding: 10px 14px;
  background: rgba(8, 28, 48, 0.88);
  border: 1px solid rgba(45, 212, 191, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F1F5F9;
  z-index: 4;
  pointer-events: none;
  white-space: nowrap;
}
.auth-cert-badge.badge-top-left {
  top: 18px;
  left: 4px;
  right: auto;
  animation: authBadgeFloatL 4.5s ease-in-out infinite;
}
.auth-cert-badge.badge-bottom-right {
  bottom: 18px;
  right: 4px;
  left: auto;
  animation: authBadgeFloatR 4.5s ease-in-out infinite;
}
@keyframes authBadgeFloatL {
  0%, 100% { transform: translateY(0px) translateZ(36px); }
  50% { transform: translateY(-8px) translateZ(48px); }
}
@keyframes authBadgeFloatR {
  0%, 100% { transform: translateY(0px) translateZ(36px); }
  50% { transform: translateY(8px) translateZ(48px); }
}
.status-dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2DD4BF;
  box-shadow: 0 0 10px #2DD4BF;
  animation: dotPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px #2DD4BF; }
}
.auth-cert-badge .cert-host {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}
.auth-cert-badge .cert-sub {
  font-size: 11px;
  color: #94A3B8;
  line-height: 1.25;
  margin-top: 2px;
}
.auth-cert-badge .pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-left: 2px;
}
.auth-cert-badge .pill-valid {
  background: rgba(27, 199, 181, 0.2);
  color: #2DD4BF;
  border: 1px solid rgba(45, 212, 191, 0.45);
}
.auth-cert-badge .pill-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.auth-side-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
}
.auth-side h2 {
  color: #FFFFFF;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.5px;
}
.auth-side p {
  color: #94A3B8;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  max-width: 44ch;
}
.auth-trust-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.auth-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
}
.auth-trust-item .check-icon {
  color: #2DD4BF;
  font-weight: 700;
  font-size: 13px;
}

.auth-mobile-header {
  display: none;
  text-align: center;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .auth-mobile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .mobile-butterfly-preview {
    width: 96px;
    height: 96px;
    position: relative;
    animation: butterflyFlight 2.6s ease-in-out infinite;
    margin: 4px 0;
  }
  .mobile-butterfly-preview .butterfly-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 14px 28px rgba(27, 199, 181, 0.22));
  }
  .mobile-brand-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}
.auth-form-wrap {
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.auth-form {
  width: 100%; max-width: 380px;
}
.auth-form h1 { font-size: 26px; margin-bottom: 6px; }
.auth-form .sub { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--line); font-size: 14px; font-family: var(--sans);
  background: var(--paper);
}
.field input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.form-error {
  background: #FCEEEC; color: var(--red); border: 1px solid #F3D6D3;
  padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none;
}
.form-error.visible { display: block; }
.auth-switch { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- Dashboard shell ---------- */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy); color: #fff; padding: 20px 16px 16px;
  display: flex; flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  align-self: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  box-sizing: border-box;
}
.sidebar::-webkit-scrollbar {
  width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.sidebar .brand-word { color: #fff; }
.sidebar-brand-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}
.sidebar-plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1;
  transition: all 0.2s ease;
  user-select: none;
}
.plan-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.plan-pill-free {
  background: rgba(255, 255, 255, 0.08);
  color: #C9D6DC;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-transform: none;
  letter-spacing: 0.2px;
  font-weight: 600;
  white-space: nowrap;
}
.plan-pill-free .plan-pill-dot {
  background: #2DD4BF;
  box-shadow: 0 0 6px rgba(45, 212, 191, 0.4);
}
.plan-pill-free.trial-expired {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.35);
}
.plan-pill-free.trial-expired .plan-pill-dot {
  background: #EF4444;
  box-shadow: 0 0 6px #EF4444;
}
.plan-pill-starter {
  background: rgba(0, 168, 150, 0.18);
  color: #2DD4BF;
  border: 1px solid rgba(45, 212, 191, 0.35);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.2);
}
.plan-pill-starter .plan-pill-dot {
  background: #2DD4BF;
  box-shadow: 0 0 6px #2DD4BF;
}
.plan-pill-pro {
  background: rgba(249, 115, 22, 0.18);
  color: #FB923C;
  border: 1px solid rgba(251, 146, 60, 0.35);
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.2);
}
.plan-pill-pro .plan-pill-dot {
  background: #FB923C;
  box-shadow: 0 0 6px #FB923C;
}
.plan-pill-enterprise {
  background: rgba(168, 85, 247, 0.18);
  color: #C084FC;
  border: 1px solid rgba(192, 132, 252, 0.35);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.25);
}
.plan-pill-enterprise .plan-pill-dot {
  background: #C084FC;
  box-shadow: 0 0 6px #C084FC;
}
.plan-pill-guest {
  background: rgba(255, 255, 255, 0.05);
  color: #64748B;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.plan-pill-guest .plan-pill-dot {
  background: #64748B;
}

.sidebar nav {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 0 auto;
}
.sidebar-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 7px 4px;
}
.sidebar nav a, .sidebar-user {
  color: #C9D6DC;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.sidebar nav a .nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
  flex-shrink: 0;
  transition: all 0.18s ease;
  stroke: currentColor;
}
.sidebar nav a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  transform: translateX(2px);
}
.sidebar nav a:hover:not(.active) .nav-icon {
  opacity: 1;
  color: var(--teal, #2DD4BF);
}
.sidebar nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-weight: 600;
  border-left: 3px solid var(--teal, #2DD4BF);
  padding-left: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.15);
}
.sidebar nav a.active .nav-icon {
  opacity: 1;
  color: var(--teal, #2DD4BF);
}

.plan-widget {
  margin-top: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 13px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.plan-widget:hover {
  border-color: rgba(45, 212, 191, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 14px rgba(45, 212, 191, 0.12);
}
.plan-widget .name {
  font-size: 11px;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plan-widget .usage {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 4px 0 7px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.usage-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.usage-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #10B981 0%, #0EA5E9 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.plan-widget-upgrade-btn {
  margin-top: 10px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #10B981 0%, #0EA5E9 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.plan-widget-upgrade-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.plan-widget-upgrade-btn:hover::after {
  left: 140%;
}
.plan-widget-upgrade-btn:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.plan-widget-upgrade-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}
.plan-widget-upgrade-btn .plan-upgrade-icon {
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}
.plan-widget-upgrade-btn .plan-upgrade-arrow {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease;
}
.plan-widget-upgrade-btn:hover .plan-upgrade-arrow {
  transform: translateX(3px);
}
.plan-widget-upgrade-btn.is-urgent {
  background: linear-gradient(135deg, #EF4444 0%, #F59E0B 100%);
  box-shadow: 0 3px 14px rgba(239, 68, 68, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: pulseUrgent 2.5s infinite ease-in-out;
}
@keyframes pulseUrgent {
  0%, 100% { box-shadow: 0 3px 14px rgba(239, 68, 68, 0.45); }
  50% { box-shadow: 0 4px 22px rgba(239, 68, 68, 0.8); }
}

/* Responsive height compaction for monitors and short viewports */
@media (max-height: 680px) and (min-width: 769px) {
  .sidebar {
    padding: 14px 12px 12px;
  }
  .sidebar-brand-wrapper {
    gap: 5px;
  }
  .sidebar nav {
    margin-top: 12px;
    gap: 2.5px;
  }
  .sidebar-nav-divider {
    margin: 5px 2px;
  }
  .sidebar nav a, .sidebar-user {
    padding: 6.5px 10px;
    font-size: 13px;
    gap: 8px;
  }
  .sidebar nav a.active {
    padding-left: 7px;
  }
  .sidebar nav a .nav-icon {
    width: 15px;
    height: 15px;
  }
  .plan-widget {
    padding: 10px 11px;
    margin-top: auto;
  }
  .plan-widget .name {
    font-size: 10.5px;
  }
  .plan-widget .usage {
    font-size: 15.5px;
    margin: 2px 0 5px;
  }
  .plan-widget-upgrade-btn {
    padding: 6.5px 10px;
    font-size: 12px;
    margin-top: 7px;
  }
}
@media (max-height: 560px) and (min-width: 769px) {
  .sidebar {
    padding: 10px 10px 10px;
  }
  .sidebar-brand-wrapper {
    gap: 3px;
  }
  .sidebar-plan-pill {
    padding: 2.5px 8px;
    font-size: 10px;
  }
  .sidebar nav {
    margin-top: 8px;
    gap: 1.5px;
  }
  .sidebar-nav-divider {
    margin: 3px 2px;
  }
  .sidebar nav a, .sidebar-user {
    padding: 4.5px 8px;
    font-size: 12px;
    gap: 7px;
  }
  .sidebar nav a.active {
    padding-left: 5px;
  }
  .sidebar nav a .nav-icon {
    width: 14px;
    height: 14px;
  }
  .plan-widget {
    padding: 8px 10px;
    margin-top: auto;
  }
  .plan-widget .usage {
    font-size: 13.5px;
    margin: 1px 0 3px;
  }
  .plan-widget-upgrade-btn {
    padding: 5px 8px;
    font-size: 11px;
    margin-top: 5px;
  }
}

.main {
  padding: 32px 40px;
}
.main-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.main-head h1 { font-size: 26px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.stat-card .n { font-family: var(--serif); font-size: 28px; color: var(--navy); }
.stat-card .l { font-size: 13px; color: var(--muted); margin-top: 4px; }

.add-domain-form {
  display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap;
}
.add-domain-form input[type="text"] {
  flex: 1; min-width: 220px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px;
}
.add-domain-form input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.add-domain-form select {
  padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px;
  background: var(--paper); color: var(--ink); max-width: 180px;
}
.new-group-row {
  display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap;
}
.new-group-row input {
  flex: 1; min-width: 200px; padding: 10px 13px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px;
}

/* ---------- Internal certificate (pasted PEM) toggle row ---------- */
.add-internal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 22px 0;
  flex-wrap: wrap;
}

.internal-cert-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--sans);
  color: #1E293B;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.internal-cert-toggle-btn:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.07);
}

.internal-cert-icon {
  font-size: 14px;
  line-height: 1;
}

.add-internal-hint {
  font-size: 13px;
  color: #64748B;
  font-weight: 400;
}

.internal-panel-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.internal-panel-head h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.internal-panel-head p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.internal-cert-panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 24px; box-shadow: 0 4px 16px rgba(10,39,64,0.06);
}
.internal-cert-panel label {
  display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px;
}
.internal-cert-panel input,
.internal-cert-panel textarea {
  width: 100%; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line);
  font-size: 14px; font-family: var(--sans); margin-bottom: 16px; background: var(--paper);
}
.internal-cert-panel textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.5; resize: vertical;
}
.internal-cert-panel input:focus,
.internal-cert-panel textarea:focus {
  outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent;
}
.internal-cert-actions { display: flex; gap: 10px; }
.source-tag {
  font-size: 11px; font-weight: 600; color: var(--navy-2); background: #EAF2F5;
  padding: 2px 8px; border-radius: 999px; display: inline-block;
}
.source-tag.internal-ca-tag {
  background: #EEF2FF;
  color: #4338CA;
  border: 1px solid #C7D2FE;
  font-weight: 700;
  padding: 2px 9px;
}

.active-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #EAF2F5; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; margin-bottom: 16px; font-size: 14px; color: var(--navy);
}

.billing-paused-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #FDE9E3; border: 1px solid #F3C7BB; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 20px; font-size: 14px; color: #A3402E; font-weight: 500;
}

.stat-card { cursor: pointer; transition: box-shadow .12s ease, border-color .12s ease; }
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card.active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }

.group-tag {
  font-size: 11px; font-weight: 600; color: var(--navy-2); background: #EAF2F5;
  padding: 2px 8px; border-radius: 999px; margin-top: 4px; display: inline-block;
}

/* ---------- Mobile top bar + slide-in sidebar ---------- */
.mobile-topbar { display: none; }
.hamburger {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  width: 40px; height: 40px; font-size: 18px; color: var(--navy);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.hamburger:active {
  background: var(--bg);
}
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(10,39,64,0.5); z-index: 90;
  touch-action: none; overscroll-behavior: contain;
}

body.nav-open,
body.modal-open {
  overflow: hidden !important;
}

.domain-list { display: flex; flex-direction: column; gap: 10px; }
.domain-row {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; align-items: center; gap: 16px;
}
.domain-row .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.domain-row .host { font-weight: 600; color: var(--navy); font-size: 15px; }
.domain-row .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.domain-row .spacer { flex: 1; }
.pill {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.4px;
}
.pill-valid { background: #E7F8F1; color: #1B8F5C; }
.pill-warning { background: #FDF2DA; color: #A8760A; }
.pill-critical { background: #FDE9E3; color: #C6472F; }
.pill-expired { background: #FBDEDA; color: var(--red); }
.pill-error { background: #EFEFEF; color: #6B6B6B; }
.pill-pending { background: #EAF2F5; color: var(--navy-2); }

.empty-state {
  text-align: center; padding: 60px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper);
}
.empty-state h3 { color: var(--navy); margin-bottom: 8px; font-family: var(--sans); font-weight: 600; }

.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--navy); color: #fff; padding: 14px 18px; border-radius: 10px;
  font-size: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease; pointer-events: none; max-width: 320px;
}
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: var(--red); }

.admin-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.admin-table tr:last-child td { border-bottom: none; }
.plan-chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: capitalize; }
.plan-chip-trial { background: #EAF2F5; color: var(--navy-2); }
.plan-chip-starter { background: #E9FBF8; color: var(--teal-dark); }
.plan-chip-pro { background: #FDE9E3; color: var(--coral); }
.plan-chip-enterprise, .plan-chip-unlimited { background: #7c3aed; color: #fff; }

/* ---------- Upgrade modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10,39,64,0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 24px 16px; z-index: 200;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.modal-overlay.visible { display: flex; }
.modal {
  background: var(--paper); border-radius: 16px; padding: 22px 24px;
  max-width: 980px; width: 100%; box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  margin: auto; /* Vertically & horizontally centers when it fits, never cuts off top */
  position: relative; box-sizing: border-box;
  max-height: calc(100vh - 40px); overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h2 { font-size: 21px; margin: 0; color: var(--navy); }
.modal-close {
  background: none; border: none; font-size: 18px; color: var(--muted);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--bg); color: var(--navy); }
.modal-plans-wrapper {
  position: relative;
  width: 100%;
}
.modal-plans {
  display: flex !important;
  gap: 14px !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  padding: 4px 2px 10px !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y !important;
  overscroll-behavior: contain !important;
}
.modal-plans::-webkit-scrollbar {
  display: none !important;
}
.modal-plan {
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px;
  display: flex; flex-direction: column; background: var(--paper);
  transition: all 0.2s ease; position: relative;
  flex: 0 0 calc((100% - 28px) / 3) !important;
  max-width: calc((100% - 28px) / 3) !important;
  min-width: calc((100% - 28px) / 3) !important;
  box-sizing: border-box !important;
  scroll-snap-align: start !important;
}
@media (max-width: 860px) {
  .modal-plan {
    flex: 0 0 calc((100% - 14px) / 2) !important;
    max-width: calc((100% - 14px) / 2) !important;
    min-width: calc((100% - 14px) / 2) !important;
  }
}
@media (max-width: 580px) {
  .modal-overlay {
    padding: 10px 8px !important;
  }
  .modal {
    padding: 16px 12px !important;
    border-radius: 14px !important;
    max-height: calc(100vh - 20px) !important;
  }
  .modal-head {
    margin-bottom: 10px !important;
  }
  .modal-head h2 {
    font-size: 18px !important;
  }
  .modal-plan {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    padding: 16px 14px !important;
    scroll-snap-align: center !important;
  }
  #modalEnterpriseCard {
    padding: 12px 14px !important;
    margin-top: 10px !important;
  }
  #modalEnterpriseCard .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}
@media (max-width: 380px) {
  .modal-carousel-nav-btn {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }
  .modal-carousel-dots {
    gap: 5px !important;
  }
  .modal-dot {
    width: 7px !important;
    height: 7px !important;
  }
  .modal-dot.active {
    width: 18px !important;
  }
}
.modal-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 2px;
}
.modal-carousel-nav-btn {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #0A2740;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}
.modal-carousel-nav-btn:hover {
  background: #0A2740;
  color: #fff;
  border-color: #0A2740;
}
.modal-carousel-nav-btn:disabled, .modal-carousel-nav-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.modal-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-dot {
  width: 9px;
  height: 9px;
  border-radius: 5px;
  background: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.modal-dot.active {
  width: 24px;
  background: var(--teal, #1BC7B5);
}
.modal-plan:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.modal-plan.current {
  border: 2px solid var(--teal);
  background: linear-gradient(180deg, #F3FCFB 0%, #FFFFFF 100%);
  box-shadow: 0 6px 22px rgba(0, 168, 150, 0.16);
}
.modal-plan .mp-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.modal-plan .mp-price {
  font-family: var(--serif);
  color: var(--navy);
  margin: 6px 0 4px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 56px;
  gap: 3px;
}
.modal-plan .mp-price span { font-size: 13px; color: var(--muted); font-family: var(--sans); }
.modal-plan .mp-price .price-current {
  font-size: 32px !important;
  font-weight: 800 !important;
  color: var(--navy) !important;
  line-height: 1 !important;
}
.modal-plan .mp-price .mp-period {
  font-size: 13px !important;
  color: var(--muted) !important;
  font-family: var(--sans) !important;
  font-weight: 500 !important;
}
.modal-plan .mp-detail { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; flex: 1; line-height: 1.45; }
.modal-plan .mp-subtitle {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748B;
  margin: 2px 0 4px;
  line-height: 1.3;
  min-height: 28px;
  display: flex;
  align-items: center;
}
.modal-plan ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  flex: 1;
}
.modal-plan li {
  position: relative;
  padding: 2.5px 0 2.5px 18px;
  line-height: 1.4;
  color: var(--muted);
  display: block;
  font-size: 12.5px;
}
.modal-plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2.5px;
  color: var(--teal-dark, #00A896);
  font-weight: 700;
  line-height: 1.4;
}
.modal-plan li strong {
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}
.modal-plan .btn { margin-top: auto; padding: 10px 14px; font-size: 13px; }
.modal-plan .mp-current-badge {
  font-size: 12px; font-weight: 700; color: var(--teal-dark);
  background: rgba(0, 168, 150, 0.12); border: 1px solid rgba(0, 168, 150, 0.25);
  padding: 8px 12px; border-radius: 8px; margin-top: auto; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.modal-plan .mp-included-badge {
  font-size: 12px; font-weight: 600; color: #64748B;
  background: #F1F5F9; border: 1px solid #E2E8F0;
  padding: 8px 12px; border-radius: 8px; margin-top: auto; text-align: center;
}

/* ---------- Documentation page ---------- */
.docs-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 48px;
  padding: 48px 0 80px; align-items: start;
}
.docs-toc {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 14px;
}
.docs-toc-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 8px; }
.docs-toc a {
  color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; border-left: 2px solid transparent;
}
.docs-toc a:hover { color: var(--navy); background: #EAF2F5; }

.docs-content h1 { font-size: 34px; }
.docs-lede { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 62ch; }
.docs-section { margin-top: 44px; padding-top: 8px; border-top: 1px solid var(--line); }
.docs-section h2 { font-size: 22px; margin-bottom: 12px; }
.docs-section p { color: var(--ink); font-size: 15px; line-height: 1.7; margin-bottom: 12px; max-width: 68ch; }
.docs-list { margin: 0 0 12px; padding-left: 20px; max-width: 68ch; }
.docs-list li { color: var(--ink); font-size: 15px; line-height: 1.7; margin-bottom: 8px; }
.docs-faq-item { margin-bottom: 20px; }
.docs-faq-item h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.docs-faq-item p { color: var(--muted); font-size: 14px; margin-bottom: 0; }
.docs-support {
  margin-top: 48px; padding: 20px 24px; background: #EAF2F5; border-radius: var(--radius);
  font-size: 14px; color: var(--navy-2);
}
.docs-support a { color: var(--teal-dark); font-weight: 600; }

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; padding: 20px 0 60px; }
  .docs-toc {
    position: sticky; top: 62px; z-index: 40;
    background: rgba(243, 246, 247, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: row; flex-wrap: nowrap; gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 0 12px; margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .docs-toc::-webkit-scrollbar { display: none; }
  .docs-toc-title { display: none; }
  .docs-toc a {
    flex-shrink: 0;
    white-space: nowrap;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy-2);
    box-shadow: 0 1px 3px rgba(10, 39, 64, 0.04);
  }
  .docs-toc a:hover, .docs-toc a:active {
    background: var(--navy);
    color: #FFFFFF;
    border-color: var(--navy);
  }
}

/* ---------- DNS lookup tool ---------- */
.lookup-panel { max-width: 720px; margin: 0 auto; }
.lookup-form { display: flex; gap: 10px; margin-bottom: 16px; }
.lookup-form input {
  flex: 1; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line);
  font-size: 15px; background: var(--paper);
}
.lookup-form input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.lookup-types { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.type-pill {
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-size: 13px; font-weight: 600; color: var(--navy-2); cursor: pointer;
}
.type-pill:hover { border-color: var(--navy); }
.type-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.lookup-status { color: var(--muted); font-size: 14px; padding: 20px 0; text-align: center; }
.lookup-status.lookup-error { color: var(--red); }
.lookup-group {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 12px;
}
.lookup-group-type {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 8px;
}
.lookup-table { width: 100%; border-collapse: collapse; }
.lookup-table td { padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.lookup-table tr:first-child td { border-top: none; }
.lookup-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink); word-break: break-all;
}
.lookup-meta { color: var(--muted); text-align: right; white-space: nowrap; padding-left: 12px; }
.lookup-empty { color: var(--muted); font-size: 13px; }

.tools-cta { padding-top: 0; }
.tools-cta-card {
  background: var(--navy); border-radius: 20px; padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.tools-cta-card h2 { color: #fff; font-size: 22px; }
.tools-cta-card p { color: #B9C7CF; font-size: 14px; margin-top: 8px; max-width: 48ch; }

@media (max-width: 700px) {
  .lookup-form { flex-direction: column; }
  .tools-cta-card { flex-direction: column; text-align: center; }
  .tools-cta-card p { margin-left: auto; margin-right: auto; }
}

/* ---------- Account settings page ---------- */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; }
.account-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.account-card h2 { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.account-card .field input:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: -10px; margin-bottom: 16px; }
.form-success {
  background: #E7F8F1; color: #1B8F5C; border: 1px solid #BEE9D6;
  padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none;
}
.form-success.visible { display: block; }
.plan-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-summary-name { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.plan-summary-detail { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
}

footer.site-footer {
  border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 13px;
  display: flex; justify-content: space-between;
}

@media (max-width: 860px) {
  .topnav {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 14px 0;
  }
  .topnav-links { display: none; }
  #navButtons { justify-content: flex-end; width: auto; order: 2; gap: 8px; }
  #navButtons .btn { padding: 7px 14px; font-size: 13px; }

  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .cta-row { justify-content: center; }

  /* The 3D fan is a desktop moment — on mobile it collapses to a simple
     flat stack inside a navy card, same as the original static layout. */
  .hero-stage {
    height: auto; perspective: none; max-width: 440px; margin: 0 auto;
    background: var(--navy); border-radius: 20px; padding: 28px;
  }
  .hero-scene {
    transform: none !important; position: static;
    display: flex; flex-direction: column; gap: 12px;
  }
  .cert-card-3d { position: static; width: auto; margin: 0 !important; transform: none !important; }
  .cert-card { animation: none; box-shadow: var(--shadow) !important; }

  .section-head { text-align: center; margin-left: auto; margin-right: auto; }
  .features, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step { text-align: center; }
  .step-marker { margin-left: auto; margin-right: auto; }
  .feature { text-align: center; }
  .feature .icon { margin-left: auto; margin-right: auto; }
  .pricing-grid { max-width: 420px; margin: 0 auto; }

  .plan-card { text-align: center; }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-4px); }
  .plan-card ul { text-align: left; display: inline-block; }
  .plan-card .tag {
    position: static; display: inline-block; transform: none;
    background: var(--coral); color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px;
  }

  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-form-wrap { padding: 36px 20px 48px; }

  .app-shell { grid-template-columns: 1fr; }
  .mobile-topbar {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
  }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 270px; max-width: 82vw; z-index: 100;
    height: 100%; height: 100dvh;
    transform: translateX(-100%); transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.visible { display: block; }
  .main { padding: 16px 18px 24px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .add-domain-form { flex-direction: column; }
  .add-domain-form select { max-width: none; width: 100%; }
  .add-domain-form input { width: 100%; }
  .add-domain-form button { width: 100%; }

  .add-internal-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .dashboard-ssl-shell, .cert-generator-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ssl-tools-sidebar {
    padding: 12px; border-right: none; border-bottom: 1px solid var(--line);
  }
  .ssl-tools-menu {
    display: flex; flex-direction: row; overflow-x: auto;
    -webkit-overflow-scrolling: touch; gap: 8px; white-space: nowrap; scrollbar-width: none;
  }
  .ssl-tools-menu::-webkit-scrollbar { display: none; }
  .ssl-tools-menu button {
    flex-shrink: 0; padding: 8px 14px; font-size: 13px;
  }

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

  .domain-row {
    flex-direction: column; align-items: stretch; gap: 12px; padding: 14px 16px;
  }
  .domain-row .spacer { display: none; }

  .account-grid { grid-template-columns: 1fr; gap: 16px; }
  .account-card { padding: 20px 18px; }

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

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 24px; }
  .hero-title-main { font-size: 24px; }
  .hero-title-sub1, .hero-title-sub2 { font-size: 19px; }
  .hero .lede { font-size: 15px; margin-left: auto; margin-right: auto; }
  .hero-badge { margin-bottom: 12px; }
  .section { padding: 36px 0; }
  .section-head h2 { font-size: 22px; }
  .plan-card .price { font-size: 32px; }
  .main { padding: 14px 14px 20px; }
  .main-head h1 { font-size: 21px; }
  .stat-card { padding: 14px 14px; }
  .stat-card .n { font-size: 22px; }
  .domain-row { padding: 12px 14px; gap: 10px; }
  .domain-row .host { font-size: 14px; }
}

/* ---------- Guest Mode & Unified App Shell ---------- */
.guest-auth-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px;
  margin-top: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}
.guest-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.guest-card-icon {
  font-size: 13px;
}
.guest-card-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #82E5D0;
}
.guest-auth-card p {
  color: #D1DCE2;
  font-size: 11.5px;
  line-height: 1.4;
  margin-bottom: 8px;
}
.guest-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.guest-btn-login {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  text-decoration: none;
}
.guest-btn-login:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}
.guest-btn-register {
  background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}
.guest-btn-register:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
  color: #FFFFFF !important;
}

.auth-modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: -6px 0 18px;
}
.auth-modal-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.auth-modal-tab:hover {
  color: var(--navy);
}
.auth-modal-tab.active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal-dark);
}

.auth-context-banner {
  background: #EAF2F5;
  border: 1px solid #D1E1E8;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--navy-2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-docs-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  height: calc(100vh - 130px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dashboard-docs-wrap .docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.dashboard-docs-wrap .docs-toc {
  position: static;
  top: auto;
  height: 100%;
  overflow-y: auto;
  padding-right: 18px;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 39, 64, 0.15) transparent;
}
.dashboard-docs-wrap .docs-toc::-webkit-scrollbar {
  width: 4px;
}
.dashboard-docs-wrap .docs-toc::-webkit-scrollbar-thumb {
  background: rgba(10, 39, 64, 0.15);
  border-radius: 4px;
}

.dashboard-docs-wrap .docs-content {
  height: 100%;
  overflow-y: auto;
  padding-right: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 39, 64, 0.25) transparent;
}
.dashboard-docs-wrap .docs-content::-webkit-scrollbar {
  width: 6px;
}
.dashboard-docs-wrap .docs-content::-webkit-scrollbar-thumb {
  background: rgba(10, 39, 64, 0.25);
  border-radius: 6px;
}

@media (max-width: 860px) {
  .dashboard-docs-wrap {
    height: auto;
    overflow: visible;
    padding: 18px 16px;
  }
  .dashboard-docs-wrap .docs-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  .dashboard-docs-wrap .docs-toc {
    height: auto;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 20px;
  }
  .dashboard-docs-wrap .docs-content {
    height: auto;
    overflow-y: visible;
    padding-right: 0;
  }
}

/* ---------- Universal Pagination Bar ---------- */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  font-size: 13px;
  color: var(--muted, #64748b);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.page-btn:hover:not(:disabled) {
  background: var(--accent-light, #f1f5f9);
  border-color: var(--accent, #0284c7);
  color: var(--accent, #0284c7);
}

.page-btn.active {
  background: var(--accent, #0284c7);
  border-color: var(--accent, #0284c7);
  color: #ffffff !important;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: var(--line);
}

/* ---------- Welcome Page Mobile Sub-Header ---------- */
.mobile-subnav {
  display: none;
}

@media (max-width: 860px) {
  .mobile-subnav {
    display: block;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    position: sticky;
    top: 56px;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(10, 39, 64, 0.04);
  }

  .mobile-subnav-items {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-subnav-items::-webkit-scrollbar {
    display: none;
  }

  .mobile-subnav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.18s ease;
    flex-shrink: 0;
  }

  .mobile-subnav-link:active,
  .mobile-subnav-link:hover {
    background: var(--accent-light, #EFF6FF);
    border-color: var(--accent, #0284c7);
    color: var(--accent, #0284c7);
  }

  .mobile-subnav-link .subnav-icon {
    font-size: 14px;
    line-height: 1;
  }
}

/* Certificate Forms & Sections */
.form-section-header {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 14px 0 6px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-top: 10px;
  margin-bottom: 6px;
}

.san-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.san-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.san-input-row input {
  flex: 1;
}

.san-remove-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  border-radius: 6px;
  width: 36px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.san-remove-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #ef4444;
}

.add-san-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px dashed #38bdf8;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  width: fit-content;
}

.add-san-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

/* SSL Tools Rich Output Card */
.ssl-tool-detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ssl-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ssl-detail-table th, .ssl-detail-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
  vertical-align: top;
}

.ssl-detail-table th {
  width: 28%;
  color: #64748b;
  font-weight: 600;
}

.ssl-detail-table td {
  color: #1e293b;
  word-break: break-all;
}

.san-tag-badge {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin: 2px 4px 2px 0;
}

.cert-type-btn.active {
  background: var(--navy, #0A2740) !important;
  color: #ffffff !important;
  border-color: var(--navy, #0A2740) !important;
}

/* ============================================================
   IMMERSIVE 3D LANDING PAGE STYLING (Image 2 - Apple Dark Glass)
   Scoped to body.landing-page-3d so dashboard/admin remain untouched.
   ============================================================ */

html {
  overflow-x: hidden !important;
  max-width: 100vw;
}

body.landing-page-3d {
  background-color: #06121E !important;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(27, 199, 181, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 40% at 90% 18%, rgba(14, 58, 86, 0.4), transparent 60%),
    radial-gradient(ellipse 50% 35% at 5% 45%, rgba(14, 58, 86, 0.3), transparent 60%),
    radial-gradient(circle 800px at 50% 100%, rgba(14, 58, 86, 0.25), transparent 75%) !important;
  background-attachment: fixed;
  color: #E2E8F0 !important;
  overflow-x: hidden !important;
  max-width: 100vw;
}

/* Centered container width with generous left/right breathing room on both monitors and laptops */
body.landing-page-3d .container {
  max-width: 1340px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 36px !important;
  padding-right: 36px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
body.landing-page-3d .topnav-wrap .container {
  max-width: 1340px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 36px !important;
  padding-right: 36px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body.landing-page-3d .site-glow {
  position: absolute;
  top: 0; left: 0; right: 0; height: 900px;
  background: radial-gradient(circle 700px at 70% 18%, rgba(27, 199, 181, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body.landing-page-3d h1,
body.landing-page-3d h2,
body.landing-page-3d h3,
body.landing-page-3d .display,
body.landing-page-3d .hero-title-main {
  color: #FFFFFF !important;
  letter-spacing: -0.02em;
}

body.landing-page-3d .hero-title-gradient {
  background: linear-gradient(135deg, #2DD4BF 0%, #38BDF8 50%, #1BC7B5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(45, 212, 191, 0.35));
}

body.landing-page-3d .hero-copy p.lede {
  color: #94A3B8 !important;
  font-size: 17px;
  line-height: 1.65;
}

/* ---------- Top Navigation (Dark Frosted Glass) ---------- */
body.landing-page-3d .topnav-wrap {
  background: rgba(6, 18, 30, 0.75) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.3s ease;
}
body.landing-page-3d .topnav-wrap.scrolled {
  background: rgba(6, 18, 30, 0.94) !important;
  border-bottom-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
}
body.landing-page-3d .topnav-3d-split {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 12px 0 !important;
}
body.landing-page-3d .topnav-left-links {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}
body.landing-page-3d .topnav-left-links a {
  color: #94A3B8 !important;
  font-weight: 500 !important;
  font-size: 14.5px !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}
body.landing-page-3d .topnav-left-links a:hover {
  color: #2DD4BF !important;
}
body.landing-page-3d .topnav-center-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  justify-self: center !important;
  text-decoration: none !important;
}
body.landing-page-3d .topnav-center-brand img {
  width: 28px !important;
  height: 28px !important;
}
body.landing-page-3d .brand-word {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  letter-spacing: -0.3px !important;
}
body.landing-page-3d .topnav-right-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 24px !important;
}
body.landing-page-3d .topnav-right-links {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
}
body.landing-page-3d .topnav-right-links a {
  color: #94A3B8 !important;
  font-weight: 500 !important;
  font-size: 14.5px !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}
body.landing-page-3d .topnav-right-links a:hover {
  color: #2DD4BF !important;
}
body.landing-page-3d .btn-ghost {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
}
body.landing-page-3d .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}
body.landing-page-3d .btn-primary {
  background: linear-gradient(135deg, #1BC7B5 0%, #00A896 100%) !important;
  color: #071B2E !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(27, 199, 181, 0.3) !important;
}
body.landing-page-3d .btn-primary:hover {
  background: linear-gradient(135deg, #2DD4BF 0%, #109385 100%) !important;
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.45) !important;
}
body.landing-page-3d .btn-accent {
  background: linear-gradient(135deg, #1BC7B5 0%, #00A896 100%) !important;
  color: #071B2E !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(27, 199, 181, 0.4) !important;
}
body.landing-page-3d .btn-accent:hover {
  background: linear-gradient(135deg, #2DD4BF 0%, #109385 100%) !important;
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.6) !important;
  transform: translateY(-2px);
}

/* Auth button responsiveness (desktop defaults) */
.mobile-only-btn {
  display: none !important;
}
.desktop-only-btn {
  display: inline-flex !important;
}

/* ---------- Hero Trust Badges (Single Horizontal Line on Desktop) ---------- */
body.landing-page-3d .hero-trust-badges {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  align-items: center !important;
  margin-top: 32px !important;
  width: auto !important;
}
body.landing-page-3d .hero-trust-badge {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F8FAFC !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.landing-page-3d .hero-trust-badge:hover {
  border-color: rgba(45, 212, 191, 0.5) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(45, 212, 191, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
body.landing-page-3d .hero-trust-badge strong {
  color: #FFFFFF !important;
}
body.landing-page-3d .hero-trust-badge .badge-icon {
  background: rgba(45, 212, 191, 0.12) !important;
  border: 1px solid rgba(45, 212, 191, 0.35) !important;
  color: #2DD4BF !important;
}

/* ============================================================
   3D HERO STAGE & BUTTERFLY PADLOCK CENTERPIECE
   ============================================================ */
body.landing-page-3d .hero-section {
  padding-top: 36px !important;
  padding-bottom: 56px !important;
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
}

body.landing-page-3d .hero {
  display: grid !important;
  grid-template-columns: 1fr 1.08fr !important;
  gap: 48px !important;
  align-items: center !important;
  max-width: 1340px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 36px !important;
  padding-right: 36px !important;
  padding-top: 24px !important;
  padding-bottom: 24px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Tasteful, balanced vertical spacing across landing page sections */
body.landing-page-3d .section {
  padding: 68px 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
body.landing-page-3d .section-head {
  margin-bottom: 38px !important;
}

body.landing-page-3d .hero-stage {
  position: relative;
  height: 505px;
  perspective: 1400px;
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}
body.landing-page-3d .hero-scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

/* The 3D Butterfly Padlock Centerpiece with Flying 3D Wings */
.butterfly-3d-centerpiece {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 250px;
  height: 250px;
  margin-left: -125px;
  margin-top: -125px;
  transform-style: preserve-3d;
  perspective: 900px;
  pointer-events: none;
  z-index: 2;
  transform: translateZ(0);
  animation: butterflyFlight 2.6s ease-in-out infinite;
}
.butterfly-halo-aura {
  position: absolute;
  inset: -45px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 199, 181, 0.32) 0%, rgba(14, 58, 86, 0.22) 50%, transparent 75%);
  filter: blur(32px);
  pointer-events: none;
  animation: auraBreathe 2.6s ease-in-out infinite;
}
.butterfly-model {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  perspective: 900px;
}
.butterfly-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 20px 42px rgba(0, 0, 0, 0.7));
  transform-style: preserve-3d;
  perspective: 900px;
}

/* 3D Wing Flap Physics - Left Wings */
.butterfly-wings-group-left {
  transform-box: fill-box;
  transform-origin: 100% 45%;
  animation: flapWingLeft 2.6s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  transform-style: preserve-3d;
}

/* 3D Wing Flap Physics - Right Wings */
.butterfly-wings-group-right {
  transform-box: fill-box;
  transform-origin: 0% 45%;
  animation: flapWingRight 2.6s cubic-bezier(0.42, 0, 0.58, 1) infinite;
  transform-style: preserve-3d;
}

/* Central Body Flight Resonance */
.butterfly-body-core {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: bodyFlightSync 2.6s ease-in-out infinite;
}

.butterfly-keyhole {
  animation: keyholePulse 3.5s ease-in-out infinite;
}

/* Authentic 3D Wing Flapping & Flying Flutter */
@keyframes flapWingLeft {
  0%, 100% {
    transform: rotateY(0deg) rotateZ(0deg);
    filter: brightness(1);
  }
  16% {
    transform: rotateY(60deg) rotateZ(-5deg);
    filter: brightness(1.28) drop-shadow(0 0 16px rgba(45, 212, 191, 0.6));
  }
  30% {
    transform: rotateY(-16deg) rotateZ(2deg);
    filter: brightness(0.9);
  }
  44% {
    transform: rotateY(56deg) rotateZ(-4deg);
    filter: brightness(1.22) drop-shadow(0 0 12px rgba(45, 212, 191, 0.5));
  }
  58% {
    transform: rotateY(0deg) rotateZ(0deg);
    filter: brightness(1);
  }
  74% {
    transform: rotateY(20deg) rotateZ(-1deg);
    filter: brightness(1.08);
  }
}

@keyframes flapWingRight {
  0%, 100% {
    transform: rotateY(0deg) rotateZ(0deg);
    filter: brightness(1);
  }
  16% {
    transform: rotateY(-60deg) rotateZ(5deg);
    filter: brightness(1.28) drop-shadow(0 0 16px rgba(45, 212, 191, 0.6));
  }
  30% {
    transform: rotateY(16deg) rotateZ(-2deg);
    filter: brightness(0.9);
  }
  44% {
    transform: rotateY(-56deg) rotateZ(4deg);
    filter: brightness(1.22) drop-shadow(0 0 12px rgba(45, 212, 191, 0.5));
  }
  58% {
    transform: rotateY(0deg) rotateZ(0deg);
    filter: brightness(1);
  }
  74% {
    transform: rotateY(-20deg) rotateZ(1deg);
    filter: brightness(1.08);
  }
}

@keyframes bodyFlightSync {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg);
  }
  16% {
    transform: translateY(-8px) rotateX(5deg);
  }
  30% {
    transform: translateY(3px) rotateX(-2deg);
  }
  44% {
    transform: translateY(-6px) rotateX(4deg);
  }
  58% {
    transform: translateY(2px) rotateX(0deg);
  }
  74% {
    transform: translateY(0px) rotateX(-1deg);
  }
}

@keyframes butterflyFlight {
  0%, 100% {
    transform: translateZ(0) translateY(0) rotateX(0deg);
  }
  16% {
    transform: translateZ(26px) translateY(-16px) rotateX(5deg);
  }
  30% {
    transform: translateZ(8px) translateY(-2px) rotateX(-2deg);
  }
  44% {
    transform: translateZ(22px) translateY(-12px) rotateX(4deg);
  }
  58% {
    transform: translateZ(4px) translateY(4px) rotateX(0deg);
  }
  74% {
    transform: translateZ(-8px) translateY(8px) rotateX(-2deg);
  }
}

@keyframes auraBreathe {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.65;
  }
  16%, 44% {
    transform: scale(1.18);
    opacity: 0.95;
  }
  74% {
    transform: scale(1.02);
    opacity: 0.8;
  }
}

@keyframes keyholePulse {
  0%, 100% {
    opacity: 0.85;
    filter: drop-shadow(0 0 6px #1BC7B5) drop-shadow(0 0 12px rgba(27, 199, 181, 0.7));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 12px #2DD4BF) drop-shadow(0 0 24px rgba(45, 212, 191, 1));
  }
}

/* Surrounding Spatial 3D Certificate Cards (Framing around the Butterfly) */
body.landing-page-3d .cert-card-3d {
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

body.landing-page-3d .cert-card-3d.depth-tl {
  left: -8px;
  top: 16px;
  width: 236px;
  margin: 0 !important;
  transform: translateZ(-10px) rotateY(-5deg) rotateX(4deg) scale(0.98);
  z-index: 3;
}

body.landing-page-3d .cert-card-3d.depth-tr {
  right: -8px;
  left: auto;
  top: 16px;
  width: 236px;
  margin: 0 !important;
  transform: translateZ(-10px) rotateY(5deg) rotateX(4deg) scale(0.98);
  z-index: 3;
}

body.landing-page-3d .cert-card-3d.depth-bl {
  left: -8px;
  top: 405px;
  bottom: auto !important;
  width: 242px;
  margin: 0 !important;
  transform: translateZ(15px) rotateY(-4deg) rotateX(-3deg) scale(1.0);
  z-index: 4;
}

body.landing-page-3d .cert-card-3d.depth-br {
  right: -8px;
  left: auto;
  top: 405px;
  bottom: auto !important;
  width: 242px;
  margin: 0 !important;
  transform: translateZ(15px) rotateY(4deg) rotateX(-3deg) scale(1.0);
  z-index: 5;
}

body.landing-page-3d .cert-card-3d.depth-tl .cert-card { animation-delay: 0s; }
body.landing-page-3d .cert-card-3d.depth-tr .cert-card { animation-delay: -3.2s; }
body.landing-page-3d .cert-card-3d.depth-bl .cert-card { animation-delay: -1.6s; }
body.landing-page-3d .cert-card-3d.depth-br .cert-card { animation-delay: -4.8s; }

body.landing-page-3d .cert-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: rgba(11, 28, 48, 0.78) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px;
  padding: 12px 16px !important;
  color: #F8FAFC;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  animation: cardFloat 6.5s ease-in-out infinite;
  white-space: nowrap !important;
}
body.landing-page-3d .cert-host {
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap !important;
}
body.landing-page-3d .cert-sub {
  color: #94A3B8 !important;
  font-size: 11.5px;
  white-space: nowrap !important;
}
body.landing-page-3d .cert-card-critical {
  border-color: rgba(255, 111, 94, 0.45) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 32px rgba(255, 111, 94, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

/* Status Pills */
body.landing-page-3d .pill-valid {
  background: rgba(27, 199, 181, 0.18) !important;
  color: #2DD4BF !important;
  border: 1px solid rgba(27, 199, 181, 0.4) !important;
}
body.landing-page-3d .pill-warning {
  background: rgba(230, 167, 0, 0.18) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(230, 167, 0, 0.4) !important;
}
body.landing-page-3d .pill-critical {
  background: rgba(255, 111, 94, 0.2) !important;
  color: #FF6F5E !important;
  border: 1px solid rgba(255, 111, 94, 0.5) !important;
}

/* ============================================================
   PRICING SECTION (Frosted Glass Slabs & Crossed Discounts)
   ============================================================ */
body.landing-page-3d .section-head h2 {
  color: #FFFFFF !important;
}
body.landing-page-3d .section-head p {
  color: #94A3B8 !important;
}
body.landing-page-3d .plan-card {
  background: rgba(11, 28, 48, 0.65) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px;
  color: #E2E8F0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
body.landing-page-3d .plan-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(45, 212, 191, 0.4) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(45, 212, 191, 0.15) !important;
}
body.landing-page-3d .plan-card h3 {
  color: #FFFFFF !important;
}
body.landing-page-3d .plan-card.featured {
  background: linear-gradient(180deg, rgba(14, 45, 75, 0.85) 0%, rgba(10, 32, 54, 0.9) 100%) !important;
  border: 1.5px solid rgba(45, 212, 191, 0.65) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55), 0 0 38px rgba(45, 212, 191, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-6px);
}
body.landing-page-3d .plan-card.featured:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 50px rgba(45, 212, 191, 0.35) !important;
}
body.landing-page-3d .plan-card.featured .tag {
  background: linear-gradient(135deg, #FF6F5E 0%, #E65A4A 100%) !important;
  box-shadow: 0 2px 10px rgba(255, 111, 94, 0.4);
}
body.landing-page-3d .price-original-cross,
body.landing-page-3d .plan-card .price .price-original-cross {
  color: #94A3B8 !important;
  font-size: 19px !important;
  font-weight: 700;
  text-decoration: line-through;
  text-decoration-color: #FF6F5E !important;
  text-decoration-thickness: 2.5px !important;
}
body.landing-page-3d .price-current,
body.landing-page-3d .plan-card .price .price-current {
  color: #FFFFFF !important;
  font-family: var(--serif) !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
body.landing-page-3d .plan-card.featured .price .price-current {
  color: #2DD4BF !important;
  text-shadow: 0 0 24px rgba(45, 212, 191, 0.45);
}
body.landing-page-3d .mp-period,
body.landing-page-3d .plan-card .price .mp-period {
  color: #94A3B8 !important;
}
body.landing-page-3d .plan-card .plan-subtitle {
  color: #94A3B8 !important;
}
body.landing-page-3d .plan-card ul li {
  color: #F8FAFC !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 13.5px !important;
}
body.landing-page-3d .plan-card ul li::before {
  color: #2DD4BF !important;
  font-weight: 800 !important;
}
body.landing-page-3d .plan-card ul li strong {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
body.landing-page-3d .enterprise-cta-card {
  background: linear-gradient(135deg, rgba(14, 42, 70, 0.75) 0%, rgba(9, 27, 46, 0.85) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4) !important;
}
body.landing-page-3d .enterprise-cta-card h3 {
  color: #FFFFFF !important;
}
body.landing-page-3d .enterprise-cta-card p {
  color: #94A3B8 !important;
}

/* ============================================================
   "SET UP ONCE, FORGET ABOUT IT" WORKFLOW
   ============================================================ */
body.landing-page-3d .step {
  background: rgba(11, 28, 48, 0.6) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px;
  padding: 30px 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
body.landing-page-3d .step:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, 0.4) !important;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.5), 0 0 25px rgba(45, 212, 191, 0.15) !important;
}
body.landing-page-3d .step-marker {
  background: linear-gradient(135deg, #1BC7B5 0%, #0E3A56 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 22px rgba(27, 199, 181, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
body.landing-page-3d .step h3 {
  color: #FFFFFF !important;
}
body.landing-page-3d .step p {
  color: #94A3B8 !important;
}

/* ============================================================
   PRODUCT PREVIEW, FEATURES & TOOLS
   ============================================================ */
body.landing-page-3d .preview-frame {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
body.landing-page-3d .preview-chrome {
  background: #071A2B !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px 14px 0 0 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}
body.landing-page-3d .preview-body {
  background: #0B2135 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: none !important;
  border-radius: 0 0 14px 14px !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
}
body.landing-page-3d .preview-url {
  background: #051422 !important;
  color: #94A3B8 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.landing-page-3d .preview-row {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-radius: 10px !important;
}
body.landing-page-3d .preview-row:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(45, 212, 191, 0.3) !important;
}
body.landing-page-3d .preview-host {
  color: #FFFFFF !important;
}
body.landing-page-3d .preview-sub {
  color: #94A3B8 !important;
}
body.landing-page-3d .preview-copy h2 {
  color: #FFFFFF !important;
}
body.landing-page-3d .preview-copy p {
  color: #94A3B8 !important;
}
body.landing-page-3d .feature {
  background: rgba(11, 28, 48, 0.55) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
body.landing-page-3d .feature:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 212, 191, 0.35) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
}
body.landing-page-3d .feature h3 {
  color: #FFFFFF !important;
}
body.landing-page-3d .feature p {
  color: #94A3B8 !important;
}
body.landing-page-3d .feature code {
  background: #0B2338 !important;
  color: #2DD4BF !important;
  border: 1px solid rgba(45, 212, 191, 0.25) !important;
}

/* FAQ & Footer */
body.landing-page-3d .faq-card {
  background: rgba(11, 28, 48, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px;
  padding: 24px;
}
body.landing-page-3d .faq-card h3 {
  color: #FFFFFF !important;
}
body.landing-page-3d .faq-card p {
  color: #94A3B8 !important;
}
body.landing-page-3d .docs-cta-link {
  color: #2DD4BF !important;
}
body.landing-page-3d .site-footer-new {
  background: #040D16 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body.landing-page-3d .site-footer-new .brand-word {
  color: #FFFFFF !important;
}
body.landing-page-3d .site-footer-new p,
body.landing-page-3d .footer-col a,
body.landing-page-3d .footer-bottom {
  color: #94A3B8 !important;
}
body.landing-page-3d .footer-col a:hover {
  color: #2DD4BF !important;
}
body.landing-page-3d .footer-col-title {
  color: #FFFFFF !important;
}
body.landing-page-3d .social-icon {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94A3B8 !important;
}
body.landing-page-3d .social-icon:hover {
  color: #2DD4BF !important;
  border-color: rgba(45, 212, 191, 0.4) !important;
}

/* ============================================================
   MEDIUM LAPTOPS & TABLETS (861px - 1200px)
   ============================================================ */
@media (max-width: 1200px) and (min-width: 991px) {
  body.landing-page-3d .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  body.landing-page-3d .topnav-wrap .container {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  body.landing-page-3d .hero {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  body.landing-page-3d .hero h1 {
    font-size: 38px !important;
  }
  body.landing-page-3d .hero-stage {
    max-width: 580px !important;
    height: 480px !important;
  }
  body.landing-page-3d .hero-scene {
    transform: scale(0.88) !important;
    transform-origin: center center !important;
  }
}

@media (max-width: 990px) and (min-width: 861px) {
  body.landing-page-3d .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.landing-page-3d .topnav-wrap .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.landing-page-3d .hero {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.landing-page-3d .hero h1 {
    font-size: 34px !important;
  }
  body.landing-page-3d .hero-stage {
    max-width: 500px !important;
    height: 430px !important;
  }
  body.landing-page-3d .hero-scene {
    transform: scale(0.76) !important;
    transform-origin: center center !important;
  }
}

/* ============================================================
   MOBILE RESPONSIVE DESIGN (Flawless UX on all phones & tablets)
   ============================================================ */
@media (max-width: 860px) {
  /* Mobile Container Padding (removes 48px desktop margins so header and sections aren't pushed inward) */
  body.landing-page-3d .container {
    max-width: 100% !important;
    padding: 0 16px !important;
  }
  body.landing-page-3d .topnav-wrap .container {
    max-width: 100% !important;
    padding: 0 16px !important;
  }

  /* Mobile Top Navigation: Clean left-aligned brand, right-aligned Log in & Register, no Start free */
  body.landing-page-3d .topnav-3d-split {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    width: 100% !important;
  }
  body.landing-page-3d .topnav-left-links,
  body.landing-page-3d .topnav-right-links {
    display: none !important;
  }
  body.landing-page-3d .topnav-center-brand {
    order: 1 !important;
    margin: 0 !important;
    justify-self: flex-start !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  body.landing-page-3d .topnav-right-wrap {
    order: 2 !important;
    margin: 0 !important;
    justify-self: flex-end !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .mobile-only-btn {
    display: inline-flex !important;
  }
  .desktop-only-btn {
    display: none !important;
  }
  body.landing-page-3d .nav-login-btn,
  body.landing-page-3d .nav-register-btn {
    padding: 6px 12px !important;
    font-size: 12.5px !important;
    border-radius: 8px !important;
  }

  /* Completely remove mobile subnav (Cert Generator and SSL Tools) */
  body.landing-page-3d .mobile-subnav {
    display: none !important;
  }

  /* Gaps between sections on Mobile (moderately spaced) */
  body.landing-page-3d .hero-section {
    padding-top: 24px !important;
    padding-bottom: 42px !important;
  }
  body.landing-page-3d .hero {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 28px !important;
    padding: 0 16px !important;
  }
  body.landing-page-3d .hero-copy {
    text-align: center !important;
    max-width: 520px !important;
    margin: 0 auto !important;
  }
  body.landing-page-3d .hero h1 {
    font-size: 29px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.4px !important;
    margin-bottom: 12px !important;
  }
  body.landing-page-3d .hero p.lede {
    font-size: 15px !important;
    line-height: 1.6 !important;
    max-width: 100% !important;
    margin: 0 auto 20px auto !important;
  }
  body.landing-page-3d .cta-row {
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }

  .badge-label-long {
    display: none !important;
  }

  /* Mobile Trust Badges: Row 1 = 1,000+ Customers & 24/7 Support in ONE line; Row 2 = 99.99% Uptime under */
  body.landing-page-3d .hero-trust-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    max-width: 360px !important;
    margin: 24px auto 0 auto !important;
    width: 100% !important;
  }
  body.landing-page-3d .hero-trust-badge.badge-customers,
  body.landing-page-3d .hero-trust-badge.badge-support {
    flex: 1 1 calc(50% - 6px) !important;
    max-width: calc(50% - 4px) !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    font-size: 11px !important;
    padding: 7px 4px !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  body.landing-page-3d .hero-trust-badge.badge-uptime {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 4px auto 0 auto !important;
    justify-content: center !important;
    font-size: 11.5px !important;
    padding: 7px 14px !important;
    white-space: nowrap !important;
  }
  body.landing-page-3d .hero-trust-badge .badge-icon {
    width: 22px !important;
    height: 22px !important;
    font-size: 12px !important;
  }

  /* Hero 3D Stage on Mobile with balanced vertical gaps */
  body.landing-page-3d .hero-stage {
    height: auto !important;
    perspective: none !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 28px auto 28px auto !important;
    background: rgba(11, 28, 48, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 24px 16px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
  }
  body.landing-page-3d .hero-scene {
    transform: none !important;
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
  }
  body.landing-page-3d .butterfly-3d-centerpiece {
    position: static !important;
    width: 190px !important;
    height: 190px !important;
    margin: 0 auto 16px auto !important;
    animation: none !important;
  }
  body.landing-page-3d .butterfly-halo-aura {
    inset: -20px !important;
    filter: blur(20px) !important;
  }
  body.landing-page-3d .cert-card-3d {
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }
  body.landing-page-3d .cert-card {
    animation: none !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
  }

  /* Remove 1 valid card (app.example.com) on mobile view */
  body.landing-page-3d .cert-card-3d.depth-tr,
  body.landing-page-3d .card-app-valid {
    display: none !important;
  }

  /* Moderate, balanced gaps for every section on Mobile */
  body.landing-page-3d .section {
    padding: 48px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  body.landing-page-3d .section-head {
    margin-bottom: 24px !important;
  }

  /* Pricing Grid & Carousel on Mobile */
  body.landing-page-3d .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    gap: 20px !important;
  }
  body.landing-page-3d .pricing-carousel-wrapper {
    max-width: 100% !important;
  }
  body.landing-page-3d .pricing-carousel-track {
    padding: 16px 8px 24px !important;
    gap: 16px !important;
  }
  body.landing-page-3d .pricing-carousel-track .plan-card {
    flex: 0 0 90% !important;
    max-width: 90% !important;
    min-width: 90% !important;
  }
  body.landing-page-3d .pricing-carousel-btn {
    display: none !important;
  }
  body.landing-page-3d .plan-card.featured {
    transform: none !important;
  }

  /* Steps and Features on Mobile */
  body.landing-page-3d .steps {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  body.landing-page-3d .features {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  body.landing-page-3d .product-preview {
    grid-template-columns: 1fr !important;
  }
  body.landing-page-3d .enterprise-cta-card {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
  }
}


