@import url("https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  --font-exo: "Exo", sans-serif;
  --font-inter: "Inter", sans-serif;

  --text-primary: hsl(229, 95%, 95%);

  --body-background: hsl(233, 65%, 12%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip; 
  color: var(--text-primary);
  font: 400 16px var(--font-exo);
  background: var(--body-background);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin-bottom: 0;
}

ul {
  padding-left: 0;
  margin-bottom: 0;
  list-style-type: none;
}

img {
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0;
}

/* ============================================
                DEFAULT: styles
============================================ */
@media (max-width: 575.9px) {
  .container {
    padding-inline: 20px;
  }
}

.bg-sf-primary {
  background: hsl(229, 57%, 20%);
}

.section {
  margin-bottom: 70px;
}

.btn-one {
  display: flex;
  font-weight: 800;
  color: #57e9ff;
  padding: 16px 8px;
  text-align: center;
  border-radius: 12px;
  justify-content: center;
  border: 3px solid hsla(228, 36%, 46%, 0.5);
  background: linear-gradient(to bottom, #233572, #172761);
}

.btn-one.outline {
  background: transparent;
}

.custom-input {
  width: 100%;
  padding: 18px;
  font-weight: 500;
  border-radius: 10px;
  background: transparent;
  color: var(--text-primary);
  border: 3px solid #404c7e;
  transition: border-color 250ms ease;
}

.custom-input:focus-visible {
  outline: 0;
  border-color: hsl(188, 100%, 40%);
}

.custom-input::placeholder {
  color: hsl(230, 26%, 74%);
}

/* ============================================
                SECTION: header
============================================ */
#header {
  top: 0;
  position: sticky;
  background: var(--body-background);
}

.nav-bar {
  gap: 20px;
  height: 10vh;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links {
  gap: 30px;
  display: flex;
  font-size: 15px;
  font-weight: 500;
  margin-left: auto;
  letter-spacing: 1px;
  align-items: center;
}

.nav-links li.red {
  color: #ff9c83;
}

.nav-links li {
  transition: color 300ms ease;
}

.nav-links li:not(.red):hover {
  color: #fee4a4;
}

.nav-links-sm {
  display: none;
}

.nav-toggler {
  display: none;
}

/* ======= Responsive: header ======= */
@media (max-width: 991.9px) {
  .nav-links li:not(.red) {
    display: none;
  }

  .nav-toggler {
    width: 32px;
    border: none;
    display: flex;
    margin-top: -4px;
    background: none;
  }

  .nav-links-sm {
    top: 0;
    opacity: 0;
    left: -261px;
    width: 260px;
    padding: 38px;
    display: block;
    height: 100dvh;
    position: fixed;
    font-weight: 500;
    transition: left 250ms ease, opacity 250ms ease;
    background: hsl(229 56% 25% / 1);
  }

  .nav-links-sm li {
    margin-bottom: 22px;
  }

  .nav-links-sm.show {
    left: 0;
    opacity: 1;
  }
}

/* ============================================
              SECTION: statistics
============================================ */
#stats {
  margin-top: 30px;
}

.grid-col-2 {
  gap: 20px;
  display: grid;
  grid-template-columns: 52% 1fr;
}

/* ========== card sm ========== */
.card-sm-grid {
  gap: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card-sm {
  width: 210px;
  border-radius: 12px;
  padding: 30px 12px 30px 32px;
}

.card-sm-icon {
  max-width: 80px;
  margin-bottom: 40px;
}

.card-sm-title {
  font-size: 17px;
  font-weight: 700;
  margin-top: 10px;
  padding-bottom: 32px;
}

.card-sm-line {
  max-width: 100px;
}

/* ========== refer card ========== */
.refer-card {
  gap: 28px;
  padding: 38px;
  display: flex;
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
}

.refer-card .sub-title {
  font-size: 15px;
  margin-top: 12px;
}

.refer-link-wrap {
  display: flex;
  align-items: center;
}

.refer-copy-btn {
  border: 0;
  outline: 0;
  padding: 8px;
  max-width: 44px;
  margin-left: -54px;
  border-radius: 4px;
  background: #5161c5;
}

.toast {
  width: 260px;
  border-radius: 10px;
  background: hsl(229, 56%, 38%);
  border: 3px solid hsl(229, 56%, 48%) !important;
}

.toast .checkmark {
  max-width: 26px;
}

/* ======= Responsive: header ======= */
@media (max-width: 1399.9px) {
  .grid-col-2 {
    grid-template-columns: 61% 1fr;
  }
}

@media (max-width: 1199.9px) {
  .grid-col-2 {
    grid-template-columns: 1fr;
  }

  .card-sm {
    width: 100%;
  }
}

@media (max-width: 767.9px) {
  .card-sm:nth-child(3) {
    grid-column: 1/-1;
  }
}

/* ============================================
              SECTION: link cards
============================================ */
.card-link {
  padding: 32px 28px;
  text-align: center;
  border-radius: 12px;
}

.card-link p {
  font-weight: 500;
  margin-bottom: 18px;
  text-transform: capitalize;
}

/* ===== modal ===== */
.modal-content {
  color: var(--text-primary);
  background: hsl(229, 57%, 20%);
}

.modal-header {
  border-bottom: 2px solid hsla(228, 36%, 46%, 0.8);
}

.modal-content .btn-close {
  width: 22px;
  margin-bottom: 1px;
  --bs-btn-close-bg: url(../img/menu-close.png);
}

.modal-content .custom-input {
  padding-left: 50px;
}

.input-icon {
  top: 49%;
  left: 18px;
  max-width: 23px;
  position: absolute;
  transform: translateY(-50%);
}

/* ======= Responsive: link cards ======= */
@media (max-width: 330px) {
  .card-link {
    padding-inline: 18px;
  }
}

/* ============================================
              SECTION: charts
============================================ */
.card-lg {
  padding: 38px;
  min-height: 300px;
  border-radius: 12px;
}

.card-lg .title {
  font-weight: 700;
  margin-bottom: 28px;
  text-transform: capitalize;
}

/* ===== table ===== */
.data-table {
  width: 100%;
  text-transform: capitalize;
}

.data-table thead {
  color: #fff;
  background: hsl(214deg 86% 25% / 60%);
}

.data-table th:first-child,
.data-table td:first-child {
  padding-left: 20px;
  min-width: 140px;
}

.data-table th {
  padding: 20px 0;
}

.data-table tr:not(:last-child) {
  border-bottom: 2px solid hsla(229, 50%, 76%, 0.5);
}

.data-table td {
  padding: 16px 0;
  font-weight: 500;
  min-width: 140px;
  background: transparent;
}


/* ==============================
              card fix
============================== */
      @media (max-width: 440px) {
        .card-sm {
          gap: 14px;
          display: flex;
          position: relative;
          align-items: center;
          padding-inline: 18px;
        }

        .card-sm-line {
          display: none;
        }

        .card-sm-icon {
          width: 65px;
          margin-bottom: 0;
        }

        .card-sm-title {
          padding-bottom: 0;
        }
      }

      /* nav icons */
      .nav-links-sm a {
        gap: 8px;
        display: flex;
        align-items: center;
      }

      .nav-links-sm a>i {
        width: 20px;
        margin-top: -1px;
      }
