/* ViralMoment AI — marketing site (matches extension theme) */

:root {
  --bg-deep: #0a0a0f;
  --bg-card: rgba(18, 18, 28, 0.85);
  --bg-card-hover: rgba(28, 28, 42, 0.95);
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(167, 139, 250, 0.35);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --purple: #a78bfa;
  --cyan: #22d3ee;
  --orange: #fb923c;
  --pink: #f472b6;
  --green: #34d399;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1080px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(167, 139, 250, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(34, 211, 238, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(251, 146, 60, 0.08), transparent),
    var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Gradient text */
.gradient-text {
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
  font-weight: 700;
}

.gradient-text--hero {
  background-image: linear-gradient(135deg, #a78bfa 0%, #22d3ee 45%, #fb923c 100%);
}

.gradient-text--accent {
  background-image: linear-gradient(90deg, #c084fc, #38bdf8);
}

.gradient-text--warm {
  background-image: linear-gradient(90deg, #fb923c, #f472b6);
}

.gradient-text--cool {
  background-image: linear-gradient(90deg, #22d3ee, #818cf8);
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(14px);
}

.site-nav__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav__brand:hover {
  text-decoration: none;
}

.site-nav__logo {
  width: 36px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(124, 58, 237, 0.4));
}

.site-nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.site-nav__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.site-nav__links a:hover,
.site-nav__links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.site-nav__account {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 240px;
}

.site-nav__user {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.site-nav__user:hover {
  color: var(--text);
  text-decoration: none;
}

.site-nav__text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: 600 0.85rem/1 var(--font);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__text-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.site-nav__text-btn--accent {
  border-color: rgba(34, 211, 238, 0.35);
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.08);
}

.site-nav__text-btn--accent:hover {
  background: rgba(34, 211, 238, 0.16);
  color: #cffafe;
}

.site-nav__menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1.1rem;
}

.site-nav__chrome {
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn--hero {
  background: linear-gradient(135deg, #7c3aed, #0891b2, #ea580c);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  animation: shimmer-bg 5s ease infinite;
  padding: 16px 28px;
  font-size: 1.05rem;
}

.btn--hero:hover {
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.55);
}

.btn--chrome {
  background: linear-gradient(135deg, #7c3aed, #0891b2);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.btn--chrome:hover {
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

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

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

@keyframes shimmer-bg {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.chrome-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 32px;
}

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

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-bottom: 36px;
}

.hero-scan-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  margin-top: 4px;
}

.hero-scan-bar__input {
  flex: 1 1 240px;
  min-width: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font: 500 0.95rem/1.2 var(--font);
  text-align: left;
}

.hero-scan-bar__btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.hero-scan-bar__hint {
  margin: -8px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.4;
}

.hero-scan-bar__status {
  margin: -4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-scan-bar__status--error {
  color: #fca5a5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__media {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 48px;
  box-sizing: border-box;
  background: transparent;
  border: none;
}

.hero__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hero__logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin: 8px 0;
}

.hero__logo-glow {
  position: absolute;
  width: 180px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(ellipse 100% 80%, rgba(124, 58, 237, 0.55), transparent 70%);
  filter: blur(20px);
  animation: logoGlowPulse 2.5s ease-in-out infinite;
}

.hero__logo {
  position: relative;
  z-index: 1;
  width: 160px;
  filter: drop-shadow(0 8px 24px rgba(124, 58, 237, 0.45));
  animation: logoFloat 4s ease-in-out infinite;
}

.logo-sparkle {
  position: absolute;
  font-size: 0.9rem;
  color: #e9d5ff;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.9);
  pointer-events: none;
  animation: logoSparkle 2.4s ease-in-out infinite;
}

.logo-sparkle--1 { top: 10%; left: 28%; }
.logo-sparkle--2 { top: 20%; right: 26%; animation-delay: 0.4s; font-size: 1.1rem; }
.logo-sparkle--3 { bottom: 24%; left: 22%; animation-delay: 0.8s; }
.logo-sparkle--4 { bottom: 14%; right: 28%; animation-delay: 1.2s; font-size: 1.3rem; }

@keyframes logoGlowPulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes logoSparkle {
  0%, 100% { opacity: 0.15; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero__heading {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 720px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

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

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

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

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

.glass-card__icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.glass-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.glass-card__desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 20px 16px;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #0891b2);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
}

.step__title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.step__desc {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border-glow);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.2), transparent),
    var(--bg-card);
  box-shadow: var(--shadow), 0 0 40px rgba(167, 139, 250, 0.1);
}

.cta-band__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-band__sub {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Legal / prose pages */
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.page-hero p {
  color: var(--text-muted);
}

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--text);
}

.prose h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
  color: var(--text-muted);
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: 16px;
}

.prose a {
  color: var(--cyan);
}

.prose .updated {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 20px 24px;
}

.faq-item__q {
  font-weight: 700;
  margin-bottom: 8px;
}

.faq-item__a {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 32px;
  margin-top: 40px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.site-footer__brand {
  max-width: 280px;
}

.site-footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-footer__logo:hover {
  text-decoration: none;
}

.site-footer__tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.site-footer__cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.site-footer__col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.site-footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer__col a:hover {
  color: var(--text);
  text-decoration: none;
}

.site-footer__bottom {
  width: 100%;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .site-nav {
    position: sticky;
  }

  .site-nav__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    position: relative;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 12px 16px 16px;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border);
    z-index: 110;
  }

  .site-nav__links.is-open {
    display: flex;
  }

  .site-nav__links a {
    width: 100%;
    text-align: left;
  }

  .site-nav__actions {
    gap: 8px;
  }

  .site-nav__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav__chrome,
  .site-nav .btn--chrome {
    display: none;
  }

  .site-nav__user {
    display: none;
  }

  .hero {
    padding: 32px 0 0;
  }

  .hero__media {
    padding: 0 16px 36px;
  }

  .hero-scan-bar {
    flex-direction: column;
  }

  .hero-scan-bar__btn {
    width: 100%;
  }
}

.is-hidden { display: none !important; }

.btn--sm {
  padding: 8px 12px;
  font-size: 0.85rem;
  min-height: 36px;
}

/* App pages */
.app-page {
  padding: 32px 0 64px;
  min-height: calc(100vh - var(--nav-h) - 180px);
}

.app-page__narrow {
  max-width: 440px;
}

.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.app-header--compact {
  align-items: center;
  margin-bottom: 16px;
}

.app-header__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.app-header__sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.app-back {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.app-back:hover {
  color: var(--text);
  text-decoration: none;
}

.app-banner {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 0.9rem;
}

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

/* Auth */
.auth-page {
  display: flex;
  align-items: center;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: stretch;
  max-width: 960px;
  margin: 0 auto;
}

.auth-panel {
  min-width: 0;
}

.auth-panel--form {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-panel__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
  text-align: center;
}

.auth-panel--promo {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(251, 146, 60, 0.1), transparent 50%),
    linear-gradient(160deg, rgba(18, 18, 28, 0.95), rgba(10, 10, 15, 0.98));
  padding: 36px 32px;
  display: flex;
  align-items: center;
}

.auth-promo {
  width: 100%;
}

.auth-promo__logo {
  width: 72px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 16px rgba(34, 211, 238, 0.25));
}

.auth-promo__title {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}

.auth-promo__lead {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 36ch;
}

.auth-promo__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
}

.auth-promo__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.auth-promo__mark {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.auth-promo__list strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2px;
}

.auth-promo__list span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-promo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.auth-promo__note {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
  max-width: 40ch;
}

.auth-card {
  padding: 28px 24px;
}

.auth-card__title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card__sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
  line-height: 1.45;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
}

.auth-form__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.auth-form__input:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.45);
}

.auth-form__link {
  align-self: flex-end;
  border: 0;
  background: none;
  color: var(--cyan);
  font: 600 0.85rem/1 var(--font);
  cursor: pointer;
  padding: 0;
}

.auth-form__submit {
  width: 100%;
  margin-top: 4px;
}

.auth-form__error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.88rem;
}

.auth-form__info {
  margin: 0;
  color: #86efac;
  font-size: 0.88rem;
}

.auth-card__switch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

/* Scans */
.scans-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 16px;
  color: var(--text-muted);
}

.scans-loading__pulse {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.25);
  border-top-color: var(--purple);
  animation: dl-spin 0.8s linear infinite;
}

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

.scans-empty {
  text-align: center;
  max-width: 460px;
  margin: 24px auto;
  padding: 40px 20px;
}

.scans-empty__icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--purple);
}

.scans-empty__title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.scans-empty__desc {
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.scans-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.scans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.scans-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.scan-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.scan-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

.scan-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.scan-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scan-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.scan-card__placeholder--lg {
  min-height: 180px;
  border-radius: var(--radius-sm);
}

.scan-card__status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font: 700 0.7rem/1 var(--font);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.65);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.scan-card__status--completed {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
}

.scan-card__status--failed {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.scan-card__status--processing,
.scan-card__status--downloading,
.scan-card__status--queued {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.35);
}

.scan-card__body {
  padding: 14px;
}

.scan-card__title {
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.new-scan {
  padding: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.new-scan__label {
  font: 700 0.95rem/1.2 var(--font);
}

.new-scan__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.new-scan__input {
  flex: 1 1 260px;
  min-width: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font: 500 0.95rem/1.2 var(--font);
}

.new-scan__hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.new-scan__status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.new-scan__status--error {
  color: #fca5a5;
}

.scan-progress {
  padding: 16px;
  margin-bottom: 22px;
}

.scan-progress__row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.scan-progress__title {
  margin: 0 0 4px;
  font: 700 1rem/1.3 var(--font);
}

.scan-progress__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Scan detail */
.scan-hero {
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: 20px;
  margin-bottom: 28px;
  align-items: stretch;
}

.scan-hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
}

.scan-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 180px;
}

.scan-hero__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.scan-hero__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.scan-hero__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.scan-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.scan-hero .scan-card__status {
  position: static;
  align-self: flex-start;
}

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

.hl-card {
  display: flex;
  gap: 14px;
  padding: 16px;
}

.hl-card__rank {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--orange);
  min-width: 28px;
}

.hl-card__body {
  flex: 1;
  min-width: 0;
}

.hl-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.hl-card__reason {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.45;
}

.hl-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hl-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.hl-card--clickable:hover {
  border-color: rgba(251, 146, 60, 0.45);
  transform: translateY(-1px);
}

/* Clip editor (full-screen chunk view) */
.clip-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto 40px;
}

.clip-editor__back {
  align-self: flex-start;
  padding-left: 0;
}

.clip-editor__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
}

.clip-editor__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: -4px 0 0;
}

.clip-editor__player {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clip-editor__iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.clip-editor__iframe-wrap iframe,
#yt-player {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.clip-editor__no-yt {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  margin: 0;
  background: #111;
}

.clip-editor__player-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clip-editor__trim {
  padding: 14px;
}

.clip-editor__times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.clip-trim {
  position: relative;
  height: 36px;
  touch-action: none;
  user-select: none;
}

.clip-trim__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.clip-trim__selection {
  position: absolute;
  top: 50%;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #fb923c);
  pointer-events: none;
}

.clip-trim__peak {
  position: absolute;
  top: 50%;
  width: 2px;
  height: 18px;
  margin-top: -9px;
  margin-left: -1px;
  background: #fde68a;
  box-shadow: 0 0 8px rgba(253, 230, 138, 0.7);
  pointer-events: none;
  z-index: 2;
}

.clip-trim__handle {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 28px;
  margin-top: -14px;
  margin-left: -9px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: ew-resize;
  z-index: 3;
  padding: 0;
}

.clip-trim__handle:active {
  transform: scale(1.05);
}

.clip-editor__hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.clip-editor__warn {
  margin: 0;
  font-size: 0.88rem;
  color: #fca5a5;
  text-align: center;
}

.clip-export-opts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
}

.clip-export-opts__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clip-export-opts__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.clip-export-opts__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clip-export-opts__chip {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font: 600 0.8rem/1 var(--font);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.clip-export-opts__chip:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.clip-export-opts__chip--active {
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(251, 146, 60, 0.16);
  color: var(--text);
}

.clip-export-opts__chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.clip-export-opts__chip--locked {
  border-style: dashed;
}

.clip-export-opts__plan-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-dim);
}

.clip-export-opts__plan-note a {
  color: var(--cyan);
  font-weight: 700;
}

.btn--start {
  width: 100%;
  justify-content: center;
  padding-top: 14px;
  padding-bottom: 14px;
}

.clip-panel__status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.clip-panel__status--error {
  color: #f87171;
}

/* Download notification bell */
.site-nav__downloads {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav__downloads[hidden] {
  display: none !important;
}

.dl-bell {
  position: relative;
}

.dl-bell__btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.dl-bell__btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dl-bell__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font: 700 0.65rem/18px var(--font);
  text-align: center;
}

.dl-bell__badge--active {
  background: #0891b2;
}

.dl-bell__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px, calc(100vw - 24px));
  max-height: 420px;
  overflow: auto;
  z-index: 80;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #141414;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 12px;
}

.dl-bell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.dl-bell__title {
  margin: 0;
  font: 700 0.95rem/1.2 var(--font);
}

.dl-bell__clear {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: 600 0.75rem/1 var(--font);
  cursor: pointer;
}

.dl-bell__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 0;
}

.dl-bell__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-bell__item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.dl-bell__item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.dl-bell__status {
  font: 700 0.72rem/1 var(--font);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.dl-bell__item--running .dl-bell__status,
.dl-bell__item--queued .dl-bell__status {
  color: #67e8f9;
}

.dl-bell__item--done .dl-bell__status {
  color: #86efac;
}

.dl-bell__item--error .dl-bell__status {
  color: #fca5a5;
}

.dl-bell__label {
  margin: 0;
  font: 600 0.88rem/1.3 var(--font);
}

.dl-bell__meta {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-bell__error {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #fca5a5;
  line-height: 1.35;
}

.dl-bell__spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(103, 232, 249, 0.25);
  border-top-color: #67e8f9;
  animation: dl-spin 0.7s linear infinite;
}

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

/* Razorpay Standard Checkout — keep QR / modal above site chrome */
.razorpay-container,
.razorpay-backdrop,
div.razorpay-container {
  z-index: 2147483000 !important;
}

.razorpay-checkout-frame,
iframe.razorpay-checkout-frame,
.razorpay-container iframe {
  z-index: 2147483001 !important;
  max-height: none !important;
  min-height: min(720px, 92vh) !important;
  height: 92vh !important;
  width: min(420px, 100vw) !important;
}

/* While checkout is open: don't let sticky nav / blur layers steal focus or clip */
body.rzp-checkout-open {
  overflow: hidden !important;
}

body.rzp-checkout-open .site-nav {
  z-index: 1 !important;
  pointer-events: none;
}

body.rzp-checkout-open .cookie-modal {
  z-index: 1 !important;
}

/* Avoid backdrop-filter stacking bugs that hide Razorpay QR on some browsers */
body.rzp-checkout-open .site-nav,
body.rzp-checkout-open .glass-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.cookie-modal.is-hidden {
  display: none !important;
}

.cookie-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 12, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

body.modal-open {
  overflow: hidden;
}

.cookie-modal__card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: modal-pop 0.16s ease-out;
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.cookie-modal__title {
  margin: 0;
  font-size: 1.25rem;
}

.cookie-modal__body {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.cookie-modal__status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cookie-modal__status--error {
  color: #fca5a5;
}

.cookie-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font: 600 0.75rem/1.2 var(--font);
}

.chip--time,
.chip--score {
  color: var(--text);
}

.chip--peak {
  border-color: rgba(251, 146, 60, 0.5);
  color: #fdba74;
  background: rgba(251, 146, 60, 0.1);
}

.chip--tag {
  text-transform: capitalize;
}

@media (max-width: 768px) {
  .scan-hero {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .auth-panel--promo {
    padding: 28px 22px;
  }

  .auth-promo__lead {
    max-width: none;
  }
}

/* ——— Pricing ——— */
.pricing-mount {
  margin-top: 8px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.pricing-card--featured {
  border-color: rgba(34, 211, 238, 0.45);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
    var(--bg-card);
  box-shadow: 0 12px 36px rgba(8, 145, 178, 0.18);
}

.pricing-card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font: 700 0.7rem/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #083344;
  background: linear-gradient(135deg, #22d3ee, #a5f3fc);
  padding: 6px 10px;
  border-radius: 999px;
}

.pricing-card__name {
  font-size: 1.45rem;
  margin: 0;
  padding-right: 90px;
}

.pricing-card__blurb {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  min-height: 2.8em;
}

.pricing-card__price {
  margin: 4px 0 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pricing-card__amount {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.pricing-card__period {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
}

.pricing-card__limit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.1);
}

.pricing-card__limit--unlimited {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.1);
}

.pricing-card__limit-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}

.pricing-card__limit--unlimited .pricing-card__limit-value {
  color: #67e8f9;
}

.pricing-card__limit-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.pricing-card__billing {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.pricing-card__features {
  list-style: none;
  margin: 8px 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-card__features li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.pricing-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff, transparent 40%),
    linear-gradient(135deg, #22d3ee, #a78bfa);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.pricing-card__cta {
  width: 100%;
  margin-top: 10px;
}

.pricing-note {
  text-align: center;
  margin: 22px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (max-width: 720px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .pricing-card__name {
    padding-right: 0;
  }
}

.pricing-guest-hint {
  max-width: 640px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.pricing-guest-hint p {
  margin: 0;
}

.pricing-guest-hint--error {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
}

.pricing-card__hosted {
  margin-top: 6px;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font: 600 0.8rem/1.3 var(--font);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 0;
}

.pricing-card__hosted:hover {
  color: var(--cyan);
}

.pricing-inline-link {
  display: inline;
  margin-left: 4px;
  border: none;
  background: none;
  color: var(--cyan);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

/* ---- Auth-aware blocks ---- */
[hidden] {
  display: none !important;
}

.hero__badge--member {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.32);
}

.hero__media-caption {
  margin: 12px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---- Chrome extension band ---- */
.ext-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
}

.ext-band__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.ext-band__title {
  margin: 14px 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.ext-band__desc {
  margin: 0 0 14px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 60ch;
}

.ext-band__list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ext-band__list li {
  position: relative;
  padding-left: 26px;
  color: var(--text);
  font-size: 0.95rem;
}

.ext-band__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: 700;
}

.ext-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ext-band__meta {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.ext-band__art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ext-band__art img {
  width: 100%;
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(167, 139, 250, 0.35));
}

@media (max-width: 780px) {
  .ext-band {
    grid-template-columns: 1fr;
    padding: 24px;
    text-align: left;
  }

  .ext-band__art {
    order: -1;
  }

  .ext-band__art img {
    max-width: 130px;
  }
}

/* ---- Nav density: account dropdown instead of inline email + sign out ---- */
.site-nav__inner {
  gap: 16px;
}

.site-nav__links {
  gap: 2px;
}

.site-nav__links a {
  padding: 8px 10px;
  font-size: 0.88rem;
}

.site-nav__account {
  position: relative;
  max-width: none;
  gap: 0;
}

.site-nav__avatar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
  font: 600 0.8rem/1 var(--font);
}

.site-nav__avatar:hover,
.site-nav__avatar[aria-expanded="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(167, 139, 250, 0.45);
}

.site-nav__avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #0a0a0f;
  font-size: 0.85rem;
  font-weight: 800;
}

.site-nav__avatar-caret {
  font-size: 0.7rem;
  line-height: 1;
}

.site-nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 232px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(16, 16, 24, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  z-index: 120;
}

.site-nav__menu-email {
  margin: 0 0 8px;
  padding: 6px 10px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav__menu-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.site-nav__menu-list a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav__menu-list a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
}

.site-nav__menu-signout {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font: 700 0.85rem/1 var(--font);
  cursor: pointer;
  text-align: left;
}

.site-nav__menu-signout:hover {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.1);
}

.site-nav__scan-cta {
  white-space: nowrap;
}

/* Collapse the link row into the hamburger earlier so the bar never crowds */
@media (max-width: 1000px) {
  .site-nav__inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
    position: relative;
  }

  .site-nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 12px 16px 16px;
    background: rgba(10, 10, 15, 0.98);
    border-bottom: 1px solid var(--border);
    z-index: 110;
  }

  .site-nav__links.is-open {
    display: flex;
  }

  .site-nav__links a {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
  }

  .site-nav__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .site-nav__inner {
    padding: 10px 16px;
  }

  .site-nav__avatar-caret {
    display: none;
  }
}

/* ---- Branded loader (logo + orbiting ring) ---- */
.brand-loader {
  position: relative;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(167, 139, 250, 0) 0deg,
    rgba(167, 139, 250, 0.15) 140deg,
    var(--cyan) 300deg,
    var(--purple) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: brand-loader-spin 1.15s linear infinite;
}

.brand-loader__glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
  animation: brand-loader-glow 2s ease-in-out infinite;
}

.brand-loader__logo {
  position: relative;
  width: 62%;
  height: auto;
  object-fit: contain;
  animation: brand-loader-breathe 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 10px rgba(124, 58, 237, 0.55));
}

.brand-loader--sm {
  width: 46px;
  height: 46px;
}

.brand-loader--sm .brand-loader__ring {
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

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

@keyframes brand-loader-breathe {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes brand-loader-glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-loader__ring,
  .brand-loader__logo,
  .brand-loader__glow {
    animation-duration: 3s;
  }
}

/* ---- Scan card: link wrapper + delete action ---- */
.scan-card {
  position: relative;
}

.scan-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.scan-card__link:hover {
  text-decoration: none;
}

.scan-card__delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.62);
  color: #e2e8f0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.15s, transform 0.15s, color 0.15s, border-color 0.15s, background 0.15s;
}

.scan-card:hover .scan-card__delete,
.scan-card__delete:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.scan-card__delete:hover {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.75);
}

/* Touch devices have no hover — keep the action visible */
@media (hover: none) {
  .scan-card__delete {
    opacity: 1;
    transform: none;
  }
}

.scan-card--removing {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.18s, transform 0.18s;
}

.delete-modal__name {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 700;
}

.btn--danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.28);
}

.btn--danger:hover {
  filter: brightness(1.06);
}

.btn--danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: none;
}

/* ---- Signed-in homepage workspace ---- */
body.is-authed .hero {
  padding-bottom: 12px;
}

.hero__greeting {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.01em;
}

.hero__heading--member {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.hero__sub--member {
  max-width: 42ch;
}

.home-dash {
  padding: 0 24px 48px;
  max-width: var(--max);
  margin: 0 auto;
  box-sizing: border-box;
}

.home-dash__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-dash__card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.home-dash__card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.home-dash__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.home-dash__label {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.home-dash__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.home-dash__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .home-dash {
    padding: 0 16px 36px;
  }

  .home-dash__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Export progress (clip editor + download bell) ---- */
.dl-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.dl-progress__track {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.dl-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 0.35s ease;
}

.dl-progress__pct {
  font: 700 0.72rem/1 var(--font);
  color: var(--text-muted);
  min-width: 32px;
  text-align: right;
}

.clip-progress {
  margin: 4px 0 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.clip-progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.clip-progress__label {
  font: 700 0.92rem/1.2 var(--font);
  color: var(--text);
}

.clip-progress__pct {
  font: 700 0.85rem/1 var(--font);
  color: var(--cyan);
}

.clip-progress__hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.clip-progress--done .dl-progress__fill {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.clip-progress--done .clip-progress__pct {
  color: #86efac;
}

.clip-progress--error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}

.clip-progress--error .dl-progress__fill {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.clip-progress--error .clip-progress__label {
  color: #fecaca;
}
