/* ! ============= global styling ============== */

:root {
  --main-border-radius: 12px;
  --card-padding: 15px 20px;

  --small-border-radius: 12px;
  --grid-gap: 20px;
  --flex-gap: 50px;
  --icon-font-size: 24px;
  --gray-color: #4b515a;
  --tx-gray-color: 12px;
  --main-color: #fbfdfe;
  --green-color: #00a63e;
  --card-box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.256);
  --green-card-color: #1ec55c;
  --table-green-color: oklch(52.7% 0.154 150.069);
  --table-green-bg: #d5fad7;
}
html {
  scroll-behavior: smooth;
}
*,
::after,
::before {
  box-sizing: border-box;
}
body {
  font-family:
    IBM Plex Sans Arabic,
    sans-serif;
  perspective: 1000px;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  background-color: #f9fafb;
}
span,
a {
  display: inline-block;
}
img {
  max-width: 100%;
}
a {
  text-decoration: none;
}
ul {
  list-style-type: none;
}
button,
a {
  cursor: pointer;
}
/*  ^ ==============================      
    ^              aside            
    ^ ==============================  */
aside {
  display: none;
  flex-direction: column;
  gap: 20px;
  width: 20%;
  height: 100vh;
  padding: 20px;
  overflow: auto;
  position: sticky;
  top: 0;
  right: 0;
  scrollbar-width: thin;
  scrollbar-color: #9ca3af4d transparent;
  box-shadow: var(--card-box-shadow);
  background-color: white;

  @media (min-width: 1200px) {
    display: flex;
  }
  .logo {
    display: flex;
    gap: 15px;
    align-items: center;
    .favicon {
      display: flex;
      width: fit-content;
      padding: 14px 10px;
      border-radius: var(--small-border-radius);
      background-color: #3f39df;
      i {
        color: white;
        font-weight: 600;
        font-size: var(--icon-font-size);
      }
    }
    .title {
      h1 {
        font-size: 40px;
        font-weight: 700;
        margin-block: 0;
      }
      p {
        margin-block: 0;
        font-size: var(--tx-gray-color);
        color: var(--gray-color);
        font-weight: 600;
      }
    }
  }
  .main-page {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 98%;
    height: 50px;
    padding: 17px;
    padding-right: 9px;
    border: 1px solid #dfebdf;
    border-radius: var(--small-border-radius);
    background-color: #efffef;
    .home-icon {
      i {
        color: #155dfc;
        font-size: 18px;
      }
    }
    p {
      margin-block: 0;

      font-weight: 600;
      color: #155dfc;
    }
  }
  .nav-links {
    ul {
      padding-right: 5px;
      margin: 0;
      color: rgb(113, 113, 113);
      li:first-child {
        margin-block: 0;
      }
      li {
        padding: 8px 10px;
        margin-block: 25px;
        border-radius: 5px;

        transition: background-color 0.3s;
        &:hover {
          background-color: #f9fafb;
        }
        a {
          margin-right: 5px;
          font-size: 17px;
          font-weight: 700;
          color: rgb(113, 113, 113);
        }
      }
    }
  }
  .bottom-links {
    color: rgb(113, 113, 113);
    h3 {
      font-size: 16px;
    }
    ul {
      padding-right: 5px;
      margin: 0;
      color: rgb(113, 113, 113);
      li:first-child {
        margin-block: 0;
      }
      li {
        display: flex;
        gap: 10px;
        align-items: center;
        padding: 8px 10px;
        margin-block: 20px;
        border-radius: 5px;
        .icon {
          width: fit-content;
          padding: 5px 7px;
          border-radius: 5px;
          background-color: #dbe8fc;
          i {
            color: #155dfc;
          }
        }
        a {
          color: rgb(95, 94, 94);
          font-weight: 500;
          font-size: 14px;
        }
      }
      li:nth-child(2) {
        .icon {
          background-color: #d4f3e1;
          i {
            color: #00a63e;
          }
        }
      }
      li:nth-child(3) {
        .icon {
          background-color: #efe0fc;
          i {
            color: #9810fa;
          }
        }
      }
      li:nth-child(4) {
        .icon {
          background-color: #fbe4d4;
          i {
            color: orangered;
          }
        }
      }
    }
  }
}

main {
  width: 100%;
  margin-right: auto;
  padding: 0px 10px 20px 20px;
  background-color: #f9fafb;
  @media (min-width: 1200px) {
    width: 80%;
  }

  /*  * ==============================      
    *              Header            
    * ==============================  */
  header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-inline: 30px;
    margin-block: 30px;
    border-radius: var(--main-border-radius);
    background-color: #f6f8fb9c;
    box-shadow: var(--card-box-shadow);

    .logo {
      display: flex;
      flex-wrap: wrap;

      justify-content: space-between;
      align-items: center;
      gap: 20px;
      .favicon {
        display: flex;
        width: fit-content;

        /* justify-content: center; */
        /* align-items: center; */

        padding: 17px 13px;
        border-radius: var(--small-border-radius);
        background-color: #3f39df;
        i {
          color: white;
          font-weight: 600;
          font-size: var(--icon-font-size);
        }
      }
      .title {
        h1 {
          font-size: 40px;
          font-weight: 700;
          margin-block: 0;
        }
        p {
          font-size: var(--tx-gray-color);
          color: var(--gray-color);
          font-weight: 600;
        }
      }
      .status {
        span {
          padding: 7px 11px;
          font-size: 12px;
          background-color: #dcf9e5;
          border-radius: var(--small-border-radius);
          i {
            color: var(--green-color);
            font-size: 6px;
          }
        }
      }
    }
    .profile {
      /* background-color: aqua; */
      display: flex;
      gap: 10px;
      align-items: center;
      .notification {
        position: relative;
        span {
          position: absolute;
          top: -8px;
          right: -5px;
          padding: 1px 5px;
          font-size: 12px;
          font-weight: 700;
          color: white;
          background-color: red;
          border-radius: 25px;
        }
      }
      .search,
      .notification {
        width: fit-content;
        padding: 6px 10px;
        background-color: #f3f4f6;
        border: 1px solid rgba(164, 163, 163, 0.64);
        border-radius: 10px;

        &:hover {
          background-color: #d3d6dbce;
        }
        i {
          font-weight: 600;
          font-size: 15px;
          color: rgb(134, 133, 133);
        }
      }

      .profile-img {
        display: flex;
        background-color: #ffffff;

        border-radius: var(--small-border-radius);
        gap: 12px;
        padding: 10px;
        box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.156);
        &:hover {
          box-shadow: 2px 2px 9px 0px rgba(0, 0, 0, 0.156);
        }

        .name {
          p {
            font-weight: 500;
            font-size: 0.9rem;
            margin: 0;
          }
          span {
            font-size: 0.7rem;
            color: gray;
          }
        }

        img {
          width: 40px;
          height: 40px;
          border-radius: var(--small-border-radius);
        }
      }
    }
  }
  /* ?  ==============================      
    ?         Summary Cards            
    ? ==============================  */

  .summary-cards {
    display: flex;
    flex-direction: column;

    /* grid-template-rows: repeat(3,1fr); */
    gap: var(--grid-gap);
    @media (min-width: 768px) {
      flex-direction: row;
      margin-bottom: 30px;
    }
    .current-balance {
      flex-grow: 1;

      padding: 20px;
      border-radius: var(--small-border-radius);

      box-shadow: var(--card-box-shadow);
      background-color: white;

      p {
        font-weight: 500;
        font-size: 15px;
        color: var(--gray-color);
      }
      p:nth-child(2) {
        margin-block: 10px;
        color: black;
        font-size: 36px;
        font-weight: 700;
      }
      span {
        color: var(--green-color);
        font-size: 14px;
      }
      .red-arrow {
        color: rgb(238, 19, 19);
      }
    }
  }
  .main-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(7, auto);
    grid-auto-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    grid-auto-flow: row;
    grid-template-areas:
      "recent-activities"
      "transaction"
      "monthly-bills"
      "budget-overview"
      "income-expenses"
      "account-summary"
      "payment-methods";
    @media (min-width: 768px) {
      display: grid;
      grid-auto-columns: 1fr 1fr 1fr 1fr;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: repeat(5, auto);
      grid-template-areas:
        "recent-activities income-expenses "
        "transaction transaction"
        "monthly-bills account-summary  "
        " budget-overview payment-methods"
        "budget-overview .";
    }
    @media (min-width: 1280px) {
      display: grid;
      grid-auto-columns: 1fr 1fr 1fr 1fr;
      grid-template-columns: 1fr 1fr 1fr;
      grid-template-rows: repeat(5, auto);
      grid-template-areas:
        "recent-activities transaction transaction"
        "monthly-bills transaction transaction"
        "budget-overview income-expenses payment-methods"
        "budget-overview account-summary payment-methods"
        "budget-overview . .";
    }

    /* ^ ========== Recent Activities ====== */

    .recent-activities {
      grid-area: recent-activities;
      padding: var(--card-padding);
      /* border: 2px solid black; */
      display: flex;
      flex-direction: column;
      gap: 20px;
      box-shadow: var(--card-box-shadow);
      border-radius: var(--small-border-radius);
      background-color: rgb(255, 255, 255);

      h2 {
        margin-block: 4px;
        font-size: 22px;
        font-weight: 600;
        color: #101828;
      }
      .card {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        align-items: flex-start;
        padding: 20px 15px;
        background-color: #eff6ff;
        border-left: 4px solid #2b63f2;
        border-radius: var(--small-border-radius);

        .icon {
          width: fit-content;
          padding: 4px 6px;
          color: black;
          background-color: #dee2f4;
          border-radius: var(--small-border-radius);

          i {
            font-size: 14px;
            color: #2b63f2;
          }
        }
        .content {
          flex-grow: 1;
          h3 {
            margin-block: 0;
            font-size: 15px;
          }
          p {
            margin-bottom: 5px;
            font-size: 15px;
            color: var(--gray-color);
            font-weight: 400;
          }
          span {
            font-size: 12px;
            color: var(--gray-color);
          }
        }
        span {
          font-size: 12px;
          color: #2b63f2;
        }
      }
      .green-card {
        border-left: 4px solid var(--green-card-color);
        .icon {
          i {
            color: var(--green-card-color);
          }
        }
        span {
          color: var(--green-card-color);
        }
      }
      button {
        align-self: center;
        width: fit-content;
        font-weight: 500;
        font-size: 17px;
        border: none;
        color: #155dfc;
      }
    }
    /* ! ===========   Transactions ============ */
    .transaction {
      overflow-x: auto;
      grid-area: transaction;
      padding: var(--card-padding);

      border-radius: var(--main-border-radius);
      box-shadow: var(--card-box-shadow);
      background-color: rgb(217, 177, 238);
      background-color: #ffffff;

      .title {
        display: flex;
        justify-content: space-between;
        margin-block: 20px;
        h2 {
          margin-block: 0;
          font-size: 19px;
          font-weight: 500;
        }
        span {
          color: var(--gray-color);
          cursor: pointer;
        }
      }
      table {
        width: 100%;
        overflow-x: auto;
        td,
        th {
          padding-block: 20px;
          border-bottom: 1px solid #dfe6d865;
        }
        thead {
          color: rgb(57, 53, 53);
          th {
            border-bottom: 1px solid #dfe6d8;
            text-align: right;
          }
        }
        tbody {
          tr {
            td:nth-child(1) {
              display: flex;
              gap: 10px;
              img {
                width: 40px;
                height: 40px;

                border-radius: 20px;
              }
              div {
                p {
                  margin-block: 0;
                  font-size: 15px;
                }
                p:last-child {
                  color: var(--gray-color);
                  font-size: 13px;
                }
              }
            }
            td:nth-child(2),
            td:nth-child(4) {
              span:first-child {
                width: fit-content;
                padding: 3px 8px;
                background-color: var(--table-green-bg);
                border-radius: 20px;
                font-size: 14px;
                color: var(--table-green-color);

                i {
                  font-size: 8px;
                }
              }
            }
            td:nth-child(3) {
              font-size: 15px;
              color: var(--gray-color);
            }
            td:last-child {
              color: var(--table-green-color);
              font-size: 15px;
              font-weight: 500;
            }
          }
          tr:nth-child(2) {
            td:nth-child(1) {
              div:first-child {
                padding: 10px;
                width: 40px;
                height: 40px;
                border-radius: 20px;
                background-color: #f5edc6;
                i {
                  color: rgb(255, 145, 0);
                }
              }
            }
            td:nth-child(2) {
              span:first-child {
                background-color: #f5edc6;
                color: oklch(47% 0.157 37.304);
              }
            }
            td:nth-child(5) {
              color: black;
            }
          }

          tr:nth-child(3) {
            td:nth-child(1) {
              div:first-child {
                padding: 10px;
                width: 40px;
                height: 40px;
                border-radius: 20px;
                background-color: #dbeafe;
                i {
                  color: #155dfc;
                }
              }
            }
            td:nth-child(2) {
              span:first-child {
                background-color: #dbeafe;
                color: #155dfc;
              }
            }
            td:nth-child(5) {
              color: black;
            }
          }
          tr:nth-child(4) {
            td:nth-child(2) {
              span:first-child {
                background-color: #dbeafe;
                color: purple;
              }
            }
            td:nth-child(5) {
              color: black;
            }
          }
          tr:nth-child(6) {
            td:nth-child(1) {
              div:first-child {
                padding: 10px;
                width: 40px;
                height: 40px;
                border-radius: 20px;
                background-color: #ffe2e2;
                i {
                  color: rgb(227, 2, 2);
                }
              }
            }
            td:nth-child(2) {
              span:first-child {
                background-color: #ffe2e2;
                color: rgb(208, 1, 1);
              }
            }
            td:nth-child(5) {
              color: black;
            }
          }
          tr:nth-child(7) {
            td:nth-child(1) {
              div:first-child {
                padding: 10px;
                width: 40px;
                height: 40px;
                border-radius: 20px;
                background-color: #e0e7ff;
                i {
                  color: #4f39f6;
                }
              }
            }
            td:nth-child(2) {
              span:first-child {
                background-color: #e0e7ff;
                color: #4f39f6;
              }
            }
            td:nth-child(5) {
              color: black;
            }
          }
          tr:nth-child(8) {
            td:nth-child(1) {
              div:first-child {
                padding: 10px;
                width: 40px;
                height: 40px;
                border-radius: 20px;
                background-color: #cefafe;
                i {
                  color: #0092b8;
                }
              }
            }
            td:nth-child(2) {
              span:first-child {
                background-color: #cefafe;
                color: #0092b8;
              }
            }
            td:nth-child(5) {
              color: black;
            }
          }
          tr:nth-child(9) {
            td:nth-child(1) {
              div:first-child {
                padding: 10px;
                width: 40px;
                height: 40px;
                border-radius: 20px;
                background-color: rgba(155, 220, 155, 0.527);
                i {
                  color: green;
                }
              }
            }
            td:nth-child(2) {
              span:first-child {
                background-color: rgba(155, 220, 155, 0.527);
                color: green;
              }
            }
            td:nth-child(5) {
              color: black;
            }
          }
        }
      }
    }
    /* ~=========== Monthly Bills  ==============*/
    .monthly-bills {
      grid-area: monthly-bills;
      padding: var(--card-padding);
      padding-bottom: 0px;

      background-color: #ffffff;
      box-shadow: var(--card-box-shadow);
      border-radius: var(--main-border-radius);

      .title {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        h2 {
          margin-block: 0;
          font-size: 19px;
          font-weight: 500;
        }
        span {
          color: var(--gray-color);
          cursor: pointer;
        }
      }
      .content {
        display: grid;
        grid-template-columns: repeat(2, minmax(100px, 1fr));
        grid-template-rows: 80px repeat(1, 1fr);
        gap: 10px;

        .content-title {
          grid-area: 1 /1/2/3;
          justify-self: center;
          p {
            margin-block: 0px;
            font-size: 28px;
            font-weight: 700;
          }
          span {
            font-size: 14px;
            color: var(--gray-color);
          }
        }
        .card {
          display: flex;
          flex-direction: column;
          align-items: center;
          padding-block: 20px;

          background-color: #f9fafb;
          border-radius: var(--main-border-radius);
          box-shadow: var(--card-box-shadow);
          .icon {
            width: fit-content;
            padding: 3px 6px;
            background-color: #dbeafe;
            border-radius: var(--small-border-radius);
            i {
              font-size: 12px;
              color: #2c51f1;
            }
          }
          span {
            font-size: 14px;
            color: var(--gray-color);
          }
          p {
            margin-block: 0px;
            font-size: 18px;
            font-weight: 600;
          }
          span:last-child {
            color: red;
          }
        }
        .car:nth-child(2) {
          grid-area: 2/1/3/2;
        }

        .card:nth-child(3) {
          grid-area: 2/2/3/3;
          .icon {
            background-color: #fef9c2;

            i {
              color: #d08700;
            }
          }
          span:last-child {
            color: #d08700;
          }
        }
        .card:nth-child(4) {
          grid-area: 3/1/4/2;
          .icon {
            background-color: var(--table-green-bg);

            i {
              color: var(--table-green-color);
            }
          }
          span:last-child {
            color: var(--green-color);
          }
        }
        .card:nth-child(5) {
          grid-area: 3/2/4/3;
          .icon {
            background-color: #ffe2e2;

            i {
              color: #e7000b;
            }
          }
        }
      }
    }

    /* &============ Budget Overview ============= */
    .budget-overview {
      grid-area: budget-overview;
      padding: var(--card-padding);

      border-radius: var(--main-border-radius);
      box-shadow: var(--card-box-shadow);
      background-color: white;
      .title {
        display: flex;
        justify-content: space-between;
        margin-block: 20px;
        h2 {
          margin-block: 0;
          font-size: 19px;
          font-weight: 500;
        }
        span {
          color: var(--gray-color);
          cursor: pointer;
        }
      }
      .total-budget {
        padding: 15px;
        background-color: #eff4ff;
        border-radius: var(--small-border-radius);
        background-color: #e3e9f6;
        border: 1px solid #becae5;
        .flex-container {
          display: flex;
          justify-content: space-between;
          .total {
            p:first-child {
              font-size: 15px;
              color: #7393d7;
              font-weight: 500;
            }
            p {
              font-size: 26px;

              font-weight: 700;
              color: #2654af;
              margin-block: 0;
            }
          }
          .remain {
            span {
              font-size: 15px;
              color: var(--gray-color);
            }
            p {
              margin-block: 0;
              font-size: 22px;
              font-weight: 700;
              color: rgb(80, 170, 80);
            }
          }
        }
        .user {
          display: flex;
          justify-content: space-between;
          margin-block: 10px;
          span {
            font-size: 14px;
            color: var(--gray-color);
          }
        }
        .progress {
          height: 10px;
          background-color: #e5e7eb;

          border-radius: var(--small-border-radius);
          .progress-fill {
            width: 82%;
            height: 9px;
            background-color: #4b72ff;
            border-radius: var(--small-border-radius);
          }
        }
      }
      .card {
        padding: 15px;
        margin-block: 20px;
        background-color: #f5f6f8;
        border-radius: var(--small-border-radius);
        border: 1px solid #becae5;
        .content {
          display: flex;
          gap: 40px;
          justify-content: space-between;
          align-items: center;

          .flex-container {
            display: flex;
            align-items: center;
            gap: 20px;
            .icon {
              width: fit-content;
              padding: 10px;
              background-color: #fbe7cb;
              border-radius: var(--small-border-radius);
              i {
                color: #ff6900;
              }
            }
            .icon + div {
              width: fit-content;

              p {
                margin-block: 0;
                font-size: 19px;
                font-weight: 600;
              }
              span {
                color: var(--gray-color);
              }
            }
          }
          .flex-container + div {
            p {
              margin-block: 0;
              font-size: 20px;
              font-weight: 700;
            }
            span {
              width: fit-content;

              padding: 3px;
              margin-block: 10px;
              font-size: 13px;
              background-color: #f5debd;
              border-radius: var(--small-border-radius);
            }
          }
        }
        .progress {
          height: 10px;
          margin-block: 15px;
          background-color: #e5e7eb;

          border-radius: var(--small-border-radius);
          .progress-fill {
            width: 50%;
            height: 9px;
            background-color: #ff6900;
            border-radius: var(--small-border-radius);
          }
        }
      }
      .red-card {
        .content {
          .flex-container {
            .icon {
              i {
                color: #fb2c36;
              }
            }
          }
          .flex-container + div {
            span {
              background-color: #ff414b44;
            }
          }
        }

        .progress {
          .progress-fill {
            width: 100%;

            background-color: #fb2c36;
          }
        }
      }
      .pink-card {
        .content {
          .flex-container {
            .icon {
              i {
                color: #e60076;
              }
            }
          }
        }

        .progress {
          .progress-fill {
            width: 80%;

            background-color: #e60076;
          }
        }
      }
      .green-card {
        .content {
          .flex-container {
            .icon {
              background-color: #00c9502a;
              i {
                color: #00c950;
              }
            }
          }
          .flex-container + div {
            span {
              background-color: #00c95081;
            }
          }
        }

        .progress {
          .progress-fill {
            width: 86%;

            background-color: #00c9506b;
          }
        }
      }
    }
    /* todo ========= Income vs. Expenses Chart: ===== */
    .income-expenses {
      grid-area: income-expenses;
      padding: var(--card-padding);

      border-radius: var(--main-border-radius);
      box-shadow: var(--card-box-shadow);
      background-color: #ffffff;
      .title {
        display: flex;
        justify-content: space-between;
        margin-block: 10px 30px;
        h2 {
          margin-block: 0;
          font-size: 19px;
          font-weight: 500;
        }
        span {
          color: var(--gray-color);
          cursor: pointer;
        }
      }
      .income-expenses-color-cont {
        width: fit-content;
        margin: 0px auto 70px auto;
        .income-expenses-color {
          width: 20%;
          display: flex;
          gap: 20px;
          justify-content: space-evenly;
          .income,
          .expenses {
            display: flex;
            align-items: center;
            gap: 7px;

            div {
              width: 15px;
              height: 15px;
              background-color: #40c79a;
              border-radius: 3px;
            }
            span {
              font-size: 14px;
              font-weight: 500;
              color: var(--gray-color);
            }
          }
          .expenses {
            div {
              background-color: #f26969;
            }
          }
        }
      }
      .weeks {
        display: flex;
        justify-content: space-evenly;
        margin-top: 30px;
        .week {
          .week-container {
            display: flex;
            gap: 7px;
            align-items: flex-end;
            .income-chart,
            .expenses-chart {
              width: 17px;
              height: 110px;
              background-color: #19aa7a;
              border-radius: 3px;
              /* border: 2px solid black; */
            }
            .expenses-chart {
              height: 55px;
              background-color: #e44e4e;
            }
          }
          p {
            margin-block: 5px;
            font-size: 14px;
            font-weight: 500;
            color: var(--gray-color);
          }
        }
      }
    }
    /* ^========== Account Summary  ========= */
    .account-summary {
      grid-area: account-summary;
      padding: var(--card-padding);

      border-radius: var(--main-border-radius);
      box-shadow: var(--card-box-shadow);
      background-color: #ffffff;
      .title {
        display: flex;
        justify-content: space-between;
        margin-block: 4px 30px;
        h2 {
          margin-block: 0;
          font-size: 19px;
          font-weight: 500;
        }
        span {
          color: var(--gray-color);
          cursor: pointer;
        }
      }
      .content {
        .card {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 20px;
          margin-bottom: 20px;
          background-color: #f9fafb;
          border: 1px solid #e1e6e9d7;
          border-radius: var(--small-border-radius);
          .card-right {
            display: flex;
            align-items: center;
            gap: 15px;
            .icon {
              width: fit-content;
              padding: 8px;
              background-color: #dbeafe;
              border-radius: 7px;
              i {
                font-size: 19px;
                color: #155dfc;
              }
            }
            .account {
              p {
                margin-block: 0px;
                font-size: 18px;
                font-weight: 600;
              }
              span {
                font-size: 12px;
                color: var(--gray-color);
              }
            }
          }
          p {
            margin-block: 0;
            font-size: 18px;
            font-weight: 600;
          }
        }
        .saving--card {
          .card-right {
            .icon {
              background-color: #dbfce7;
              i {
                color: #00a63e;
              }
            }
          }
        }
        .atm--card {
          .card-right {
            .icon {
              background-color: #f3e8ff;
              i {
                color: #9810fa;
              }
            }
          }
          .card-right + p {
            color: red;
          }
        }
      }
    }
    /* ? =========  Payment Methods ========== */
    .payment-methods {
      grid-area: payment-methods;
      display: flex;
      flex-direction: column;
      gap: 20px;
      padding: var(--card-padding);

      border-radius: var(--main-border-radius);
      box-shadow: var(--card-box-shadow);
      background-color: #ffffff;
      .title {
        display: flex;
        justify-content: space-between;
        margin-block: 20px;
        h2 {
          margin-block: 0;
          font-size: 19px;
          font-weight: 500;
        }
        span {
          color: var(--gray-color);
          cursor: pointer;
        }
      }
      .content {
        perspective: 1200px;
        .flip-card {
          position: relative;
          height: 220px;

          transition: transform 0.9s;
          transform-style: preserve-3d;
          /* border-radius: var(--small-border-radius); */

          &:hover {
            transform: rotateY(180deg);
          }
          .back {
            transform: rotateY(180deg);
            backface-visibility: hidden;
            position: absolute;
            width: 100%;
            height: 100%;
            padding: 30px;
            color: white;
            background-color: #252331;
            border-radius: var(--small-border-radius);

            .rectangle {
              width: 100%;
              height: 35px;

              background: linear-gradient(
                to left,
                #5a5675,
                rgba(225, 221, 221, 0.647)
              );
              border-radius: 5px;
            }
            p {
              font-size: 14px;
              color: rgb(139, 136, 136);
            }
            .sec-rec {
              width: 100%;
              height: 30px;
              padding: 2px 15px 3px 15px;
              background-color: rgba(255, 255, 255, 0.79);
              border-radius: 5px;
              display: flex;
              gap: 9px;
              align-items: center;
              div {
                width: 80%;
                height: 55%;

                border-radius: 2px;
                background: linear-gradient(
                  to left,
                  #5a5675,
                  rgba(170, 159, 159, 0.647)
                );
              }
              span {
                color: black;
              }
            }
            .cvv {
              width: fit-content;
              margin-right: auto;
              margin-top: 5px;

              span {
                font-size: 14px;
                color: white;
              }
              p {
                width: fit-content;
                padding: 7px;

                margin-block: 0;
                font-size: 18px;
                font-weight: 600;
                color: black;
                background-color: white;
                border-radius: 4px;
              }
            }
          }
          .front {
            position: absolute;
            backface-visibility: hidden;
            width: 100%;
            height: 100%;
            padding: 20px;
            color: white;
            background-color: #372aac;
            border-radius: var(--small-border-radius);
            .card {
              display: flex;
              justify-content: space-between;
              align-items: center;

              .squre {
                position: relative;
                width: 50px;
                height: 34px;
                border-radius: 5px;
                background-color: #655bac;
                div {
                  width: 55%;
                  height: 55%;
                  position: absolute;
                  top: 50%;
                  left: 50%;
                  transform: translate(-50%, -50%);
                  background-color: red;
                  border-radius: 5px;
                  background-color: #bfbae1;
                }
              }
              .visa {
                width: fit-content;
                i {
                  font-size: 30px;
                  color: white;
                }
              }
            }
            .card + p {
              font-size: 22px;
              font-weight: 700;
              margin-block: 10px;
              letter-spacing: 4px;
            }
            .info {
              display: flex;
              justify-content: space-between;
              align-items: center;
              .name {
                p {
                  margin-block: 2px;
                  font-size: 13px;
                  font-weight: 700;
                }
              }
              .date {
                p {
                  margin-block: 2px;
                  font-size: 13px;
                  font-weight: 700;
                }
              }
            }
          }
        }
        .card-master {
          .front {
            background-color: #c70036;
          }
        }
        .card-paypal {
          .front {
            background-color: #193cb8;
          }
        }
      }
    }
  }
}
