@font-face {
  font-family: Inter;
  src: url("../fonts/crx-inter.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("../fonts/crx-manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

.crx-wordmark {
  color: var(--crx-foreground, currentColor);
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(.91rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.crx-wordmark strong {
  color: var(--crx-gold-text, #D4A843);
  font-weight: inherit;
}

:is(.is-landing-mode, .crx-console-theme) {
  --crx-bg: #0C0E12;
  --crx-foreground: #F5F6F8;
  --crx-card: #15181E;
  --crx-secondary: #22262E;
  --crx-muted: #A2A9B5;
  --crx-accent: #2C2619;
  --crx-gold: #D4A843;
  --crx-gold-hover: #E7BE63;
  --crx-gold-text: #E7BE63;
  --crx-border: #2B3039;
  --crx-input: #424955;
  --crx-ring: #D4A843;
  --crx-error: #EF4444;
  --crx-success: #4ADE80;
  --crx-warning: #FBBF24;
  --crx-info: #60A5FA;
  --bz-primary: var(--crx-gold);
  --bz-secondary: var(--crx-gold-text);
  --bz-accent: var(--crx-gold-text);
  --bz-secondary-on-dark: var(--crx-gold-text);
  --bz-muted-on-dark: var(--crx-muted);
  --bz-font-display: Manrope, system-ui, sans-serif;
  --bz-font-sans: Inter, system-ui, sans-serif;
  color-scheme: dark;
}

[data-crx-theme="light"] :is(.is-landing-mode, .crx-console-theme) {
  --crx-bg: #FAF9F6;
  --crx-foreground: #171A21;
  --crx-card: #FFFFFF;
  --crx-secondary: #F0EEE8;
  --crx-muted: #5F6570;
  --crx-accent: #F5EBD5;
  --crx-gold-hover: #C69A38;
  --crx-gold-text: #775714;
  --crx-border: #E8E5DE;
  --crx-input: #858B95;
  --crx-ring: #8A661B;
  --crx-error: #B91C1C;
  --crx-success: #15803D;
  --crx-warning: #92400E;
  --crx-info: #1D4ED8;
  color-scheme: light;
}

body.is-landing-mode,
.is-landing-mode :is(#root, .main-home-content, .app-preloader) {
  background: var(--crx-bg) !important;
  color: var(--crx-foreground) !important;
}

body.is-landing-mode #root {
  display: flex !important;
  flex-direction: column;
  min-height: 100dvh !important;
}

.is-landing-mode .bz-landing-footer {
  margin-top: auto;
  padding-bottom: 16px;
}

.is-landing-mode .app-preloader {
  display: none !important;
}

.is-landing-mode .bz-landing-wrapper {
  max-width: 1280px;
  padding-inline: clamp(16px, 4vw, 32px);
}

body.is-landing-mode nav.header.bz-landing-nav,
.is-landing-mode :is(.crx-mobile-nav, .bz-landing-footer, .bz-payout-strip) {
  background: var(--crx-card) !important;
  color: var(--crx-foreground) !important;
  border-color: var(--crx-border) !important;
  backdrop-filter: none !important;
}

.is-landing-mode :is(.bz-step-card, .bz-faq-item, .bz-page-card, .bz-cta-card, .bz-card, .bz-payout-badge, .crx-public-panel) {
  background: var(--crx-card);
  border: 1px solid var(--crx-border);
  border-radius: 12px;
  box-shadow: none;
}

.is-landing-mode :is(.bz-landing-nav-link, .bz-landing-link-signin, .bz-hero-cta-sub, .crx-theme-toggle, .crx-menu-toggle, .crx-mobile-nav a) {
  color: var(--crx-foreground) !important;
}

.is-landing-mode :is(.bz-hero-main-title, .bz-block-title, .bz-step-title, .bz-card-title, .bz-cta-title, .bz-faq-btn, .bz-page-title, .bz-footer-col-title, .bz-prose h2, .bz-prose h3, .bz-prose strong, .crx-public-title) {
  color: var(--crx-foreground);
}

.is-landing-mode :is(.bz-hero-lead, .bz-block-subtitle, .bz-step-desc, .bz-card-subtitle, .bz-cta-desc, .bz-faq-answer, .bz-page-subtitle, .bz-page-meta, .bz-prose, .bz-footer-brand-desc, .bz-footer-nav-item, .bz-footer-bottom-bar, .bz-payout-badge, .text-slate-400, .text-slate-500, .text-slate-700) {
  color: var(--crx-muted);
}

.is-landing-mode :is(.bz-hero-highlight, .bz-prose a, .crx-public-accent, .bz-step-icon) {
  color: var(--crx-gold-text);
}

.is-landing-mode :is(.bz-landing-btn-start, .bz-hero-cta-main, .crx-mobile-nav a.crx-mobile-start, .crx-public-action) {
  background: var(--crx-gold);
  border: 1px solid transparent;
  border-radius: 8px;
  color: #171A21 !important;
  box-shadow: none;
  min-height: 44px;
  transform: none;
  transition: background-color 150ms ease-out;
}

.is-landing-mode :is(.bz-landing-btn-start, .bz-hero-cta-main, .crx-mobile-nav a.crx-mobile-start, .crx-public-action):hover {
  background: var(--crx-gold-hover);
  box-shadow: none;
  transform: none;
}

.is-landing-mode :is(.bz-hero-cta-sub, .bz-landing-link-signin, .crx-theme-toggle, .crx-menu-toggle) {
  background: var(--crx-card);
  border: 1px solid var(--crx-input);
  border-radius: 8px;
  box-shadow: none;
  min-height: 44px;
}

.is-landing-mode :is(.bz-hero-cta-sub, .bz-landing-link-signin, .crx-theme-toggle, .crx-menu-toggle):hover {
  background: var(--crx-secondary);
  border-color: var(--crx-input);
}

.is-landing-mode :is(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--crx-ring);
  outline-offset: 3px;
}

.is-landing-mode :is(.bz-step-icon, .bz-points-badge, .bz-badge) {
  color: var(--crx-gold-text);
  background: var(--crx-accent);
  border-color: var(--crx-border);
}

.is-landing-mode .bz-hero-centered > * {
  animation: none;
}

.is-landing-mode .bz-hero-main-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
}

.is-landing-mode .bz-hero-glow {
  display: none;
}

.crx-hero-emblem {
  width: 80px;
  height: auto;
  margin-bottom: 24px;
}

.crx-theme-toggle,
.crx-menu-toggle {
  display: inline-grid;
  min-width: 44px;
  place-items: center;
  cursor: pointer;
}

.crx-theme-toggle [data-show-theme="light"],
[data-crx-theme="light"] .crx-theme-toggle [data-show-theme="dark"] {
  display: none;
}

[data-crx-theme="light"] .crx-theme-toggle [data-show-theme="light"] {
  display: inline;
}

.crx-mobile-nav {
  top: 100%;
}

.crx-skip-link {
  position: fixed;
  z-index: 100;
  inset: 8px auto auto 8px;
  padding: 10px 16px;
  background: var(--crx-card);
  color: var(--crx-foreground);
  transform: translateY(-150%);
}

.crx-skip-link:focus {
  transform: none;
}

.crx-desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .crx-desktop-nav { display: flex; }
  .crx-menu-toggle, .crx-mobile-nav { display: none !important; }
}

@media (max-width: 420px) {
  .is-landing-mode .bz-landing-nav-inner > div:last-of-type { gap: 6px; }
  .is-landing-mode .bz-landing-btn-start { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .is-landing-mode *, .is-landing-mode *::before, .is-landing-mode *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

.crx-auth-section {
  display: grid;
  justify-items: center;
  align-items: center;
  min-height: 460px;
  padding: clamp(32px, 6vw, 64px) 16px;
}

.crx-auth-card {
  width: 100%;
  max-width: 440px;
  min-width: 0;
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid var(--crx-border);
  border-radius: 12px;
  background: var(--crx-card);
  color: var(--crx-foreground);
}

.crx-auth-heading {
  margin-bottom: 24px;
}

.crx-auth-heading h1 {
  margin: 0;
  font-family: var(--bz-font-display);
  font-size: clamp(1.65rem, 5vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
}

.crx-auth-heading p,
.crx-auth-meta,
.crx-auth-copy,
.crx-reward-card p {
  margin-top: 8px;
  color: var(--crx-muted);
  overflow-wrap: anywhere;
}

.crx-auth-form,
.crx-auth-field {
  display: grid;
}

.crx-auth-form {
  gap: 16px;
}

.crx-auth-field {
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
}

.crx-auth-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--crx-input);
  border-radius: 8px;
  background: var(--crx-bg);
  color: var(--crx-foreground);
  font-size: 1rem;
}

.crx-auth-field input[aria-invalid="true"] {
  border-color: var(--crx-error, #FCA5A5);
}

.crx-auth-options,
.crx-auth-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: .875rem;
}

.crx-auth-options {
  justify-content: space-between;
  flex-wrap: wrap;
}

.crx-auth-check input {
  flex: none;
  width: 16px;
  height: 16px;
  appearance: auto;
  accent-color: var(--crx-gold);
}

.crx-auth-submit {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  text-align: center;
  font-weight: 700;
}

.crx-auth-meta {
  margin-top: 20px;
  text-align: center;
  font-size: .875rem;
}

.crx-auth-card :is(a:not(.crx-auth-submit), .crx-auth-link) {
  color: var(--crx-gold-text);
  text-underline-offset: .2em;
  text-decoration: underline;
}

.crx-auth-copy {
  margin-bottom: 16px;
}

.crx-auth-notice {
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid var(--crx-border);
  border-radius: 8px;
  background: var(--crx-secondary);
  color: var(--crx-foreground);
  font-size: .875rem;
}

.crx-auth-errors {
  padding-inline-start: 32px;
  list-style: disc;
  color: var(--crx-error, #FCA5A5);
}

.crx-reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
}

.crx-reward-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.crx-reward-card h2 {
  color: var(--crx-foreground);
  font-size: 1.125rem;
}

.crx-reward-card .crx-auth-submit {
  margin-top: 14px;
}

.crx-auth-input-control {
  position: relative;
}

.crx-password-controls-ready .crx-register-password input {
  padding-inline-end: 48px;
}

.crx-password-eye {
  position: absolute;
  inset: 0 0 0 auto;
  width: 44px;
  border-radius: 8px;
  color: var(--crx-muted);
  cursor: pointer;
}

.crx-password-eye:hover,
.crx-password-generate:hover {
  color: var(--crx-foreground);
}

.crx-password-generate {
  min-height: 32px;
  margin-top: 4px;
  color: var(--crx-gold-text);
  font-size: .875rem;
  font-weight: 600;
  text-align: start;
  text-underline-offset: .2em;
  text-decoration: underline;
  cursor: pointer;
}

.crx-password-status {
  color: var(--crx-muted);
  font-size: .8125rem;
}

.crx-password-status:empty {
  display: none;
}

.crx-icon {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
