@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  font-family: "Space Grotesk", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #0a0a0c;
  --surface: #121216;
  --surface-raised: #1a1a1f;
  --line: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --muted: #a0a0ab;
  --red: #e30613;
  --red-hot: #ff2800;
  --yellow: #fff200;
  --green: #81d39b;
  --display: "Barlow Condensed", sans-serif;
  --body: "Space Grotesk", sans-serif;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

input,
select,
textarea {
  min-width: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

::selection {
  background: var(--red);
  color: #fff;
}

.honda-auth-container {
  display: none;
}

.honda-auth-container.active {
  display: flex;
}

.dashboard,
.product-page,
.profile-page,
.bank-page,
.recharge-page,
.records-page,
.withdraw-page,
.invite-page,
.investment-page,
#earningsPage,
.team-reward-page {
  display: none;
  min-height: 100vh;
}

#bottomNav {
  display: none;
}

body:not(.logged-in) #bottomNav {
  display: none !important;
}

#pageLoader,
.daily-loader,
.custom-alert,
.popup-overlay,
.modal-overlay {
  display: none;
}

#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(8px);
}

.dotted-loader span {
  background: var(--red-hot);
}

.maintenance-overlay[hidden] {
  display: none !important;
}

.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 5, 7, 0.98);
  color: var(--text);
}

html.maintenance-lock,
html.maintenance-lock body,
body.maintenance-lock {
  height: 100%;
  overflow: hidden !important;
  touch-action: none;
}

html.maintenance-lock body > *:not(#maintenanceOverlay),
body.maintenance-lock > *:not(#maintenanceOverlay) {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.maintenance-lock .maintenance-overlay,
body.maintenance-lock .maintenance-overlay {
  display: grid !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.maintenance-card {
  width: min(100%, 460px);
  padding: 34px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.maintenance-card h1 {
  margin: 8px 0;
  font-family: var(--display);
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
}

.maintenance-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(227, 6, 19, 0.3);
  border-radius: 8px;
  background: rgba(227, 6, 19, 0.12);
  color: var(--red-hot);
  font-size: 20px;
}

.maintenance-eyebrow {
  margin: 0;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.maintenance-card > p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    125deg,
    transparent 0 6px,
    rgba(255, 255, 255, 0.012) 7px 8px
  );
  content: "";
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
