/* Reset — Binance inspired theme */
:root {
  --primary-color: #F0B90B;
  --primary-bright: #F3BA2F;
  --primary-soft: #FFF6D6;
  --bg-dark: #0B0E11;
  --card-dark: #181A20;
  --surface-dark: #1E2329;
  --line-dark: #2B3139;
  --text-dark: #EAECEF;
  --text-secondary-dark: #848E9C;

  --bg-light: #FAFAFA;
  --card-light: #FFFFFF;
  --line-light: #E6E8EA;
  --text-light: #0B0E11;
  --text-secondary-light: #474D57;
  --input-light: #F4F6F8;
}

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

/* Flutter Web requires the viewport to fill the window */
html, body {
  inline-size: 100%;
  block-size: 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

flt-glass-pane,
flutter-view {
  display: block !important;
  inline-size: 100%;
  block-size: 100%;
  width: 100%;
  height: 100%;
}

/* Loader */
.preloader {
  position: fixed;
  inline-size: 100%;
  block-size: 100%;
  background-color: var(--bg-light);
  display: grid;
  place-items: center;
}
.theme-dark .preloader {
   background-color: var(--bg-dark);
   color: var(--text-dark);
 }
.preloader-img {
  animation: goldFade 2000ms ease-in-out infinite alternate;
  filter: saturate(1.1);
}
.preloader-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-block-end: 5rem;
}
.preloader .loader {
  width: 50px;
  height: 8px;
  background: radial-gradient(circle closest-side, var(--primary-color) 90%, rgba(0, 0, 0, 0)) 0% 50%, radial-gradient(circle closest-side, var(--primary-color) 90%, rgba(0, 0, 0, 0)) 50% 50%, radial-gradient(circle closest-side, var(--primary-color) 90%, rgba(0, 0, 0, 0)) 100% 50%;
  background-size: 33.3333333333% 100%;
  background-repeat: no-repeat;
  animation: animloader 1000ms infinite linear;
}

/* Header */
.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  background-color: var(--card-light);
  box-shadow: 0px 6px 12px -3px rgba(240, 185, 11, 0.08);
}
.theme-dark .header{
   background-color: var(--card-dark);
   box-shadow: 0px 6px 12px -3px rgba(0, 0, 0, 0.5);
 }
 .header-end {
   color: var(--text-secondary-light);
 }
 .theme-dark .header-end {
     color: var(--text-secondary-dark);
 }
.header-container {
  max-inline-size: 1290px;
  margin-inline: auto;
  padding: 1.45rem 1.6rem;
  border-radius: 0 0 0.625rem 0.625rem;
}
.header-top-line {
  padding: 1rem;
  background-color: var(--primary-soft);
  color: var(--text-light);
}
.theme-dark .header-top-line {
  background-color: var(--surface-dark);
  color: var(--primary-bright);
}
.header .logo {
  max-block-size: 2.315rem;
}
@media (max-width: 1024px) {
  .header {
    display: none;
  }
}

.placeholder {
  block-size: 0.825rem;
  inline-size: 3rem;
  background-color: var(--input-light);
  border-radius: 0.3rem;
}
.theme-dark .placeholder {
  background-color: var(--line-dark);
}
.placeholder-wide {
  inline-size: 20rem;
}

/* Common Classes */
.d-flex {
  display: flex;
}
.align-items-center {
  align-items: center;
}
.justify-content-center {
  justify-content: center;
}
.justify-content-between {
  justify-content: space-between;
}
.flex-column {
  flex-direction: column;
}
.text-center {
  text-align: center;
}
.gap-3 {
  gap: 1rem;
}
.gap-4 {
  gap: 1.5rem;
}
.gap-5 {
  gap: 3rem;
}

@keyframes animloader {
  33% {
    background-size: 33.3333333333% 0%, 33.3333333333% 100%, 33.3333333333% 100%;
  }
  50% {
    background-size: 33.3333333333% 100%, 33.3333333333% 0%, 33.3333333333% 100%;
  }
  66% {
    background-size: 33.3333333333% 100%, 33.3333333333% 100%, 33.3333333333% 0%;
  }
}
@keyframes goldFade {
  0% {
    opacity: 0.55;
    filter: drop-shadow(0 0 0 rgba(240,185,11,0));
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(240,185,11,0.35));
  }
}
