@import url(./assets_main/css/fonts.css);

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

:root {
  /* Colors */
  --color-accent: rgba(240, 185, 11, 1);
  --color-bg: rgba(24, 26, 32, 1);
  --color-text: rgba(255, 255, 255, 1);

  /* Typography */
  --font-base: "Anuphan", sans-serif;
  --font-size-base: 16px;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --line-height-base: 1.3;

  /* Borders & Radius */
  --border-color: rgba(95, 103, 114, 1);
}

html {
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  height: 100%;
}

html,
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background-color: transparent;
}

ul,
ol {
  list-style: none;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  height: 100%;
  /* overflow: hidden; */
  display: flex;
  flex-direction: column;
  background: url(../images/background.webp) no-repeat center/cover fixed;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.link {
  color: var(--color-accent);
  text-decoration: underline;
}

.link:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
  visibility: hidden;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1;
}

/* Animations */
.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.header {
  background-color: var(--color-bg);
  padding: 12px 10px 12px 20px;
}

.logo {
  height: 20px;
  width: auto;
}

.main {
  flex: 1;
  padding: 15px 10px;
  overflow: hidden;
}

.footer {
  background-color: var(--color-bg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 4px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}

.footer-links a {
  font-family: "IBMPlexSans", sans-serif;
  font-weight: 500;
  font-size: 10px;
}

.footer-legal {
  padding: 4px 0px 10px 0px;
  font-weight: 300;
  font-size: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.footer-copy {
  font-size: 8px;
  color: rgba(112, 122, 138, 1);
  text-align: center;
}

/* First Screen */
.first-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.first-screen h1 {
  font-family: "IBMPlexSans", sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.first-screen .desc {
  font-weight: 400;
  font-size: 12px;
  margin-bottom: 18px;
}

.btn-accent {
  font-family: "IBMPlexSans", sans-serif;
  font-size: 12px;
  display: inline-flex;
  padding: 8px 32px;
  background: var(--color-accent);
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 0 10px 0 rgba(21, 22, 27, 0.25);
  backdrop-filter: blur(6px);
  border: 1px solid transparent;
}

.btn-accent:hover {
  background: #ffd95f;
}

.btn-accent.btn-outline,
.btn-accent:disabled {
  background: rgba(95, 103, 114, 0.2);
  color: rgba(95, 103, 114, 1);
  border: 1px solid rgba(95, 103, 114, 1);
  cursor: not-allowed;
}

.avg-profit-block {
  font-family: "IBMPlexSans", sans-serif;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.avg-profit {
  font-weight: 700;
  font-size: 24px;
  color: var(--color-accent);
}

.avg-caption {
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
}

/* Second Screen */
.second-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.second-screen h1 {
  font-family: "IBMPlexSans", sans-serif;
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 26px;
  margin-top: 5px;
  text-transform: uppercase;
}

.second-screen .desc {
  font-size: 16px;
  margin-bottom: 70px;
}

/* Slider */
.slider-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  gap: 16px;
  width: 100%;
  height: 187px;
}

.slider-wrap {
  position: absolute;
  top: 59px;
  width: 100%;
  padding: 12px 7px 20px 7px;
  background: rgba(95, 103, 114, 0.2);
  border-radius: 15px;
  box-shadow: 0 0 10px 0 rgba(21, 22, 27, 0.25);
  backdrop-filter: blur(6px);
}

.range-bubble {
  position: absolute;
  top: 0px;
  background: #fff;
  color: var(--color-accent);
  font-weight: 600;
  font-size: 24px;
  border-radius: 4px;
  padding: 2px 24px 6px 24px;
  pointer-events: none;
  box-shadow: 0 0 10px 0 rgba(21, 22, 27, 0.15);
  text-align: center;
  z-index: 5;
  transition: left 0.09s;
}

.range-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--bubble-arrow, 10%);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 24px solid #fff;
  z-index: 3;
}

.custom-range {
  width: 100%;
  margin: 0;
  height: 6px;
  background: transparent;
  border-radius: 6px;
  accent-color: var(--color-accent);
  appearance: none;
  outline: none;
}

.custom-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(
    to right,
    var(--color-accent) 0%,
    var(--color-accent) var(--range-percent, 0%),
    rgba(255, 255, 255, 0.17) var(--range-percent, 0%),
    rgba(255, 255, 255, 0.17) 100%
  );
  padding-left: 10px;
  padding-right: 10px;
}

.custom-range::-webkit-slider-thumb {
  appearance: none;
  width: 7px;
  height: 7px;
  background: #fff;
  cursor: pointer;
  transform: rotate(45deg);
  transition: background 0.15s;
  box-shadow: 0 0 2px 0 rgba(21, 22, 27, 0.45);
}

/* Ticks */
.slider-ticks {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 40px;
  height: 12px;
  pointer-events: none;
}

.slider-ticks span {
  position: absolute;
  top: 0;
  width: 1px;
  background: #fff;
  left: 0;
  transform: translateX(-50%);
}

.tick-big {
  height: 12px;
}

.tick-medium {
  height: 6px;
}

.tick-small {
  height: 4px;
}

.slider-labels {
  font-family: "IBMPlexSans", sans-serif;
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 600;
}

.second-screen .disclaimer {
  font-size: 8px;
  margin-top: auto;
  text-align: center;
}

.second-screen .btn-accent {
  margin-top: 60px;
}

/* Third Screen */
.third-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
  margin-bottom: 20px;
}

.third-balance-value {
  font-weight: 600;
}

.third-table-outer {
  padding: 0;
  margin-bottom: 26px;
  overflow-x: auto;
}

.third-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-weight: 600;
}

.third-table th,
.third-table td {
  border: 1px solid rgba(112, 122, 138, 1);
  text-align: left;
  padding: 12px 6px;
}

.cell-container {
  display: flex;
  align-items: center;
  gap: 2px;
}

.flag {
  display: inline-flex;
  width: 13px;
  height: 13px;
}

.heatmap-cell {
  transition: background 0.8s, opacity 1s;
  opacity: 0;
  background: transparent;
}

.heatmap-green,
.heatmap-red {
  opacity: 1;
}

.heatmap-green {
  background: rgba(64, 228, 151, 0.77);
}
.heatmap-red {
  background: rgba(238, 86, 102, 0.77);
}

.third-demo-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 16px;
}

.third-timer {
  font-weight: 600;
}

.deal-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 100%;
  max-width: 95vw;
  z-index: 2000;
  background: rgba(95, 103, 114, 0.22);
  border-radius: 18px;
  box-shadow: 0 0 20px 0 rgba(21, 22, 27, 0.65);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, -54%) scale(0.97);
  transition: opacity 0.2s, transform 0.21s;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deal-popup.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.deal-popup-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
}

.deal-popup-logo {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.deal-popup-title {
  font-family: "IBM Plex Sans", "Anuphan", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.deal-popup-title.profit {
  color: rgba(46, 189, 133, 1);
}

.deal-popup-title.loss {
  color: rgba(46, 189, 133, 1);
}

.deal-popup-balance {
  font-size: 20px;
  color: #fff;
  text-align: center;
}

.last-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.last-screen h1 {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.last-screen h1 span {
  color: var(--color-accent);
}

.last-screen .text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
}

.last-screen .text ul {
  text-align: left;
  padding-left: 20px;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#form {
  width: 100%;
  margin: 0 auto;
}

.iti__country-list {
  color: black !important;
  min-width: 270px;
}

.lander-form-header {
  display: none;
}
