:root {
  --auth-bg: #e9f0ff;
  --auth-sky: radial-gradient(circle at 8% -12%, rgba(12, 90, 219, 0.22), transparent 52%), radial-gradient(circle at 92% 12%, rgba(80, 181, 255, 0.24), transparent 60%), #f5f8ff;
  --auth-surface: #ffffff;
  --auth-surface-muted: rgba(255, 255, 255, 0.92);
  --auth-stage-surface: rgba(255, 255, 255, 0.94);
  --auth-form-surface: rgba(255, 255, 255, 0.96);
  --auth-pane-gradient: linear-gradient(145deg, #0c5adb 0%, #5a8bff 46%, #4dd2ff 100%);
  --auth-pane-overlay: rgba(13, 32, 72, 0.38);
  --auth-accent: #0f5bff;
  --auth-accent-soft: rgba(15, 91, 255, 0.14);
  --auth-accent-strong: rgba(15, 91, 255, 0.38);
  --auth-text: #0d1b34;
  --auth-text-muted: #5c6d86;
  --auth-border: rgba(15, 91, 255, 0.12);
  --auth-border-strong: rgba(15, 91, 255, 0.22);
  --auth-radius-xl: 44px;
  --auth-radius-lg: 30px;
  --auth-radius-md: 20px;
  --auth-radius-sm: 14px;
  --auth-shadow: 0 58px 120px -60px rgba(15, 34, 79, 0.52);
  --auth-shadow-soft: 0 26px 68px -54px rgba(13, 64, 165, 0.6);
  --auth-focus-ring: 0 0 0 4px rgba(15, 91, 255, 0.22);
  --auth-danger: #d14343;
  --auth-success: #1b9a6d;
  --auth-warning: #f59e0b;
  --auth-ink-inverse: #ffffff;
  --auth-ink-muted-inverse: rgba(255, 255, 255, 0.74);
  --auth-input-bg: rgba(245, 248, 255, 0.94);
  --auth-input-border: rgba(15, 91, 255, 0.16);
  --auth-avatar-border: rgba(255, 255, 255, 0.65);
  --auth-form-shadow: 0 42px 110px -68px rgba(13, 35, 73, 0.45);
  --auth-font-base: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --auth-font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-bs-theme=dark],
[data-theme=dark] {
  --auth-bg: #04070f;
  --auth-sky: radial-gradient(circle at 50% -40%, rgba(77, 141, 255, 0.22), transparent 60%), radial-gradient(circle at 92% 32%, rgba(61, 211, 182, 0.18), transparent 55%), #050913;
  --auth-surface: rgba(12, 18, 32, 0.94);
  --auth-surface-muted: rgba(12, 22, 38, 0.88);
  --auth-stage-surface: rgba(7, 12, 22, 0.86);
  --auth-form-surface: rgba(12, 20, 32, 0.92);
  --auth-pane-gradient: linear-gradient(150deg, #2148ff 0%, #3a7bff 45%, #15c6f8 100%);
  --auth-pane-overlay: rgba(2, 9, 27, 0.62);
  --auth-accent: #4d8dff;
  --auth-accent-soft: rgba(77, 141, 255, 0.18);
  --auth-accent-strong: rgba(77, 141, 255, 0.42);
  --auth-text: #e6edf8;
  --auth-text-muted: #8897b7;
  --auth-border: rgba(77, 141, 255, 0.16);
  --auth-border-strong: rgba(77, 141, 255, 0.32);
  --auth-shadow: 0 68px 140px -76px rgba(0, 0, 0, 0.85);
  --auth-shadow-soft: 0 36px 80px -60px rgba(0, 0, 0, 0.8);
  --auth-focus-ring: 0 0 0 4px rgba(77, 141, 255, 0.28);
  --auth-danger: #ff7b7b;
  --auth-success: #3fd5a3;
  --auth-warning: #f4b740;
  --auth-ink-inverse: #0d1221;
  --auth-ink-muted-inverse: rgba(6, 52, 91, 0.65);
  --auth-input-bg: rgba(20, 28, 44, 0.92);
  --auth-input-border: rgba(77, 141, 255, 0.26);
  --auth-avatar-border: rgba(9, 15, 28, 0.65);
  --auth-form-shadow: 0 42px 110px -70px rgba(2, 6, 18, 0.95);
}

/* Minimal, polished theme alignment for guest Explore */
body.guest-explore {
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Navbar */
body.guest-explore .guest-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--auth-bg); /* same base background as sign-in */
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border-bottom: 1px solid var(--auth-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

body.guest-explore .guest-navbar .nav-link {
  position: relative;
  font-weight: 600;
  color: var(--auth-text);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

body.guest-explore .guest-navbar .nav-link:hover,
body.guest-explore .guest-navbar .nav-link.active {
  color: var(--auth-accent);
}

body.guest-explore .guest-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -8px;
  height: 2px;
  background: var(--auth-accent);
  opacity: 0.85;
  border-radius: 1px;
}

body.guest-explore .guest-navbar .btn-outline-primary {
  color: var(--auth-accent);
  border-color: var(--auth-accent);
  background: transparent;
}

body.guest-explore .guest-navbar .btn-outline-primary:hover {
  background: var(--auth-accent);
  color: #fff;
  border-color: var(--auth-accent);
}

body.guest-explore .guest-navbar .btn-primary {
  background: var(--auth-accent);
  color: #fff;
  border-color: var(--auth-accent);
}

body.guest-explore .guest-navbar .btn-primary:hover {
  filter: brightness(1.05);
}

body.guest-explore .guest-navbar input.form-control {
  background: var(--auth-surface);
  border-color: var(--auth-border);
  color: var(--auth-text);
}

body.guest-explore .guest-navbar input.form-control::-moz-placeholder {
  color: var(--auth-text-muted);
}

body.guest-explore .guest-navbar input.form-control::placeholder {
  color: var(--auth-text-muted);
}

body.guest-explore .guest-navbar input.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 90, 219, 0.25);
  border-color: var(--auth-accent);
}

/* Brand */
body.guest-explore .guest-navbar a.text-decoration-none strong {
  color: var(--auth-text);
}

body.guest-explore .guest-navbar img {
  filter: none;
}

body.guest-explore .container-narrow {
  max-width: 1100px;
}

/* Hero: minimal overlay and stat cards consistent with login */
body.guest-explore .landing-hero {
  position: relative;
  min-height: 70vh;
}

body.guest-explore .landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12, 90, 219, 0.35) 0%, rgba(25, 135, 84, 0.28) 55%, rgba(111, 66, 193, 0.25) 100%);
  z-index: 1;
}

body.guest-explore .landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 12% 20%, rgba(255, 255, 255, 0.12), transparent 60%), radial-gradient(360px 180px at 85% 70%, rgba(255, 255, 255, 0.1), transparent 60%);
  z-index: 2;
}

body.guest-explore .landing-hero .hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

body.guest-explore .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}

body.guest-explore .stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

body.guest-explore .stats .stat {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  color: var(--auth-text);
  padding: 1rem 1.1rem;
  min-width: 180px;
  text-align: center;
  box-shadow: 0 18px 38px -32px rgba(12, 90, 219, 0.26);
}

body.guest-explore .stats .number {
  color: var(--auth-accent);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

body.guest-explore .stats .label {
  color: var(--auth-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

/* Hero login card: align to form-card aesthetic */
body.guest-explore .hero-login-card {
  position: absolute;
  top: 12%;
  right: 32px;
  transform: translateY(-50%);
  z-index: 4;
  width: 400px;
  max-width: calc(100vw - 64px);
}

@media (max-width: 991.98px) {
  body.guest-explore .hero-login-card {
    position: static;
    transform: none;
    width: auto;
    max-width: 100%;
    margin: 24px auto 0;
  }
}
body.guest-explore .glass-card {
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-md);
  box-shadow: 0 22px 42px -32px rgba(12, 90, 219, 0.28);
}

body.guest-explore .glass-card .form-control {
  border-radius: 16px;
  border: 1px solid var(--auth-border);
  background: var(--auth-surface-muted);
  color: var(--auth-text);
}

body.guest-explore .glass-card .form-control:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: var(--auth-focus-ring);
  background: var(--auth-surface);
}

body.guest-explore .glass-card .btn.btn-primary {
  background: var(--auth-accent);
  border-color: var(--auth-accent);
  border-radius: 18px;
  box-shadow: 0 18px 36px -22px rgba(12, 90, 219, 0.36);
  font-weight: 700;
}

/* Page hero band */
body.guest-explore .page-hero {
  background: linear-gradient(135deg, #e8f0ff 0%, #f8e9ff 100%);
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 16px;
}

body.guest-explore .page-hero .lead {
  color: #60708a;
}

/* Cards and elements: unify to token surfaces */
body.guest-explore .mini-card,
body.guest-explore .feature-card,
body.guest-explore .how-step,
body.guest-explore .medical-blog-card {
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
}

body.guest-explore .mini-card:hover,
body.guest-explore .feature-card:hover,
body.guest-explore .how-step:hover,
body.guest-explore .medical-blog-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Blogs */
body.guest-explore .blog-title {
  color: var(--auth-text);
}

body.guest-explore .blog-title:hover {
  color: var(--auth-accent);
}

body.guest-explore .blog-excerpt, body.guest-explore .mini-excerpt {
  color: var(--auth-text-muted);
}

body.guest-explore .blogs-grid .featured {
  background: var(--auth-surface-muted);
  border: 1px solid var(--auth-border);
}

body.guest-explore .blogs-grid .featured::after {
  background: linear-gradient(180deg, rgba(13, 110, 253, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
}

body.guest-explore .blogs-grid .chip {
  background: rgba(12, 90, 219, 0.1);
  border: 1px solid rgba(12, 90, 219, 0.18);
  color: var(--auth-text);
}

/* Features */
body.guest-explore .feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--auth-radius-sm);
  padding: 1px;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.2), rgba(111, 66, 193, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
  pointer-events: none;
}

body.guest-explore .feature-body {
  position: relative;
  z-index: 2;
}

/* How it works */
body.guest-explore .icon-pill-xl {
  border: 1px solid var(--auth-border);
  background: var(--auth-surface-muted);
  color: var(--auth-accent);
}

body.guest-explore .num-badge {
  background: var(--auth-surface-muted);
  color: var(--auth-accent);
}

/* Screenshots */
body.guest-explore .shot {
  border: 1px solid var(--auth-border);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

body.guest-explore .h-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}

/* CTA */
body.guest-explore .cta-card {
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-md);
}

body.guest-explore .cta-pills .pill {
  background: var(--auth-surface-muted);
  border: 1px solid var(--auth-border);
  color: var(--auth-text);
}

body.guest-explore .cta-pills .pill:hover {
  transform: translateY(-2px);
}

/* Dark theme variants */
[data-bs-theme=dark], [data-theme=dark] {
  /* Ensure CTA card content (icons, headings, paragraphs, list items) is readable in dark theme */
  /* Make secondary paragraph text slightly muted but readable */
  /* Material symbols inside CTA should inherit readable color */
}
[data-bs-theme=dark] body.guest-explore, [data-theme=dark] body.guest-explore {
  background: var(--auth-bg);
  color: var(--auth-text);
}
[data-bs-theme=dark] body.guest-explore .page-hero, [data-theme=dark] body.guest-explore .page-hero {
  border-color: #1f2a3d;
}
[data-bs-theme=dark] body.guest-explore .mini-card,
[data-bs-theme=dark] body.guest-explore .feature-card,
[data-bs-theme=dark] body.guest-explore .how-step,
[data-bs-theme=dark] body.guest-explore .medical-blog-card, [data-theme=dark] body.guest-explore .mini-card,
[data-theme=dark] body.guest-explore .feature-card,
[data-theme=dark] body.guest-explore .how-step,
[data-theme=dark] body.guest-explore .medical-blog-card {
  border-color: #1f2a3d;
  background: #121a28;
}
[data-bs-theme=dark] body.guest-explore .blogs-grid .featured, [data-theme=dark] body.guest-explore .blogs-grid .featured {
  background: #101723;
  border-color: #1f2a3d;
}
[data-bs-theme=dark] body.guest-explore .blogs-grid .chip, [data-theme=dark] body.guest-explore .blogs-grid .chip {
  background: rgba(77, 141, 255, 0.12);
  border-color: rgba(77, 141, 255, 0.22);
  color: #d4def2;
}
[data-bs-theme=dark] body.guest-explore .glass-card, [data-theme=dark] body.guest-explore .glass-card {
  background: #121a28;
  border-color: #1f2a3d;
  box-shadow: none;
}
[data-bs-theme=dark] body.guest-explore .glass-card .form-control, [data-theme=dark] body.guest-explore .glass-card .form-control {
  background: #101723;
  border-color: #1f2a3d;
  color: #d4def2;
}
[data-bs-theme=dark] body.guest-explore .shot, [data-theme=dark] body.guest-explore .shot {
  border-color: #1f2a3d;
  box-shadow: none;
}
[data-bs-theme=dark] body.guest-explore .cta-card, [data-theme=dark] body.guest-explore .cta-card {
  background: #121a28;
  border-color: #1f2a3d;
}
[data-bs-theme=dark] body.guest-explore .cta-card,
[data-bs-theme=dark] body.guest-explore .cta-card .feature-icon,
[data-bs-theme=dark] body.guest-explore .cta-card h5,
[data-bs-theme=dark] body.guest-explore .cta-card .list-group-item,
[data-bs-theme=dark] body.guest-explore .cta-card .list-group-item .me-2,
[data-bs-theme=dark] body.guest-explore .cta-card .list-group-item h6,
[data-bs-theme=dark] body.guest-explore .cta-card .list-group-item p, [data-theme=dark] body.guest-explore .cta-card,
[data-theme=dark] body.guest-explore .cta-card .feature-icon,
[data-theme=dark] body.guest-explore .cta-card h5,
[data-theme=dark] body.guest-explore .cta-card .list-group-item,
[data-theme=dark] body.guest-explore .cta-card .list-group-item .me-2,
[data-theme=dark] body.guest-explore .cta-card .list-group-item h6,
[data-theme=dark] body.guest-explore .cta-card .list-group-item p {
  color: var(--auth-text);
}
[data-bs-theme=dark] body.guest-explore .cta-card p, [data-theme=dark] body.guest-explore .cta-card p {
  color: var(--auth-text-muted);
}
[data-bs-theme=dark] body.guest-explore .cta-card .material-symbols-outlined, [data-theme=dark] body.guest-explore .cta-card .material-symbols-outlined {
  color: var(--auth-text);
}
