@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

@font-face {
  font-family: "stolzl";
  src: url("../assets/fonts/stolzl/stolzl_regular.otf");
}
/* ====== RESET ====== */
html,
body {
  overflow-x: hidden;
  height: 100%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  min-width: 0;
}
.main,
.grid{
  min-width: 0;
}
ul{
  list-style: none;
}
button,
input {
  border: 0;
  outline: 0;
  background: none;
  color: inherit;
  font: inherit;
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

button {
  cursor: pointer;
  transition: 0.3s all ease;
}
button:hover {
  opacity: 0.8;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  min-height: 100%;
  object-fit: cover;
}
figure {
  object-fit: cover;
  overflow: hidden;
}
body {
  font-family: var(--ff-dm-sans);
  background: linear-gradient(
    190deg,
    rgba(185, 251, 106, 0.4) 0%,
    rgba(0, 0, 0, 0.4) 20%,
    rgba(0, 0, 0, 1) 100%
  );
  color: white;
  height: 100%;

}

/* ====== THEME ====== */
:root {
  --bg-white: #ffffff;
  --bg-black: #000000;
  --bg: #0b0d0f;
  --panel: #282828;
  --panel-2: rgba(24, 27, 30, 0.9);
  --stroke: rgba(255, 255, 255, 0.08);
  --muted: rgba(255, 255, 255, 0.6);
  --green: #b9fb6a;
  --green2: #7cff4f;
  --soft: rgba(185, 255, 90, 0.15);
  --shadow: 0 16px 30px rgba(0, 0, 0, 0.6);

  --ff-stolzl: "stolzl", sans-serif;
  --ff-dm-sans: "DM Sans", sans-serif;

  --letter-spacing-200: -0.02em;
  --letter-spacing-300: -0.03em;
}

/* ====== BUTTONS ====== */
.btn {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  letter-spacing: var(--letter-spacing-200);
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.25s all ease;
  border-radius: 16px;
}
.btn-green {
  background: #4b6729;
  color: var(--bg-white);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.btn-green:hover {
  opacity: 0.8;
}
.btn-white {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
}
.btn-outline {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.75);
}
.btn.small {
  padding: 8px 12px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn.small figure {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
}

.dot-menu {
  width: 40px;
  height: 34px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.7);
}

.filter-btn {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: #b9fb6a;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.filter-btn figure {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 18px;
}

/* ====== APP LAYOUT ====== */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
  background: linear-gradient(
    220deg,
    rgba(185, 251, 106, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 2%,
    rgba(0, 0, 0, 0.7) 20%,
    rgba(0, 0, 0, 1) 100%
  );
}

/* ====== SIDEBAR ====== */
.sidebar {
  background:
    radial-gradient(
      circle at 30% 10%,
      rgba(185, 255, 90, 0.12),
      transparent 40%
    ),
    rgba(0, 0, 0, 0.55);
  border: 1px solid var(--stroke);
  border-radius: 26px;
  padding: 22px 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border-right: 2px solid var(--green);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  height: 100dvh;
}
.sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}
.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: var(--green);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}
.sidebar-scroll::-webkit-scrollbar-thumb:hover {
  background: #9dff7a;
}
.sidebar-header {
  flex-shrink: 0;
}
.brand {
  display: flex;
  align-items: center;
  margin-bottom: 26px;
}
.brand-logo {
  filter: drop-shadow(0 0 22px rgba(185, 255, 90, 0.35));
}
.user a{
  padding: 14px 12px;
  border-radius: 18px;
  margin-bottom: 18px;
}

.user-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: url("../assets/dashboard/profile.svg") center / cover no-repeat;
}
.user-name {
  font-family: var(--ff-stolzl);
  letter-spacing: var(--letter-spacing-200);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 1px;
  display: block;
}
.ac-type {
  font-size: 15px;
  color: var(--muted);
  display: block;
}
.user-chevron {
  margin-left: auto;
  width: 13px;
  height: 13px;
  background: url("../assets/dashboard/bottom-chevron-icon.svg") center /
    contain no-repeat;
  border-radius: 6px;
  cursor: pointer;
}
.sidebar-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px 20px;
  scroll-behavior: smooth;
}
.menu-title {
  font-family: var(--ff-stolzl);
  margin: 18px 10px 10px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 1.2px;
}
.nav {
  display: grid;
  gap: 10px;
  padding: 0 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.02);
  transition: 0.25s;
}
.nav-link .ico {
  width: 18px;
  height: 18px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.top-nav .nav-link:nth-child(1) .ico {
  background-image: url("../assets/dashboard/dashboard-icon.svg");
}
.top-nav .nav-link:nth-child(2) .ico {
  background-image: url("../assets/dashboard/payments-icon.svg");
}
.top-nav .nav-link:nth-child(3) .ico {
  background-image: url("../assets/dashboard/transactions-icon.svg");
}
.top-nav .nav-link:nth-child(4) .ico {
  background-image: url("../assets/dashboard/my-wallets-icon.svg");
}
.top-nav .nav-link:nth-child(5) .ico {
  background-image: url("../assets/dashboard/goal.svg");
}
.bottom-nav .nav-link:nth-child(1) .ico {
  background-image: url("../assets/dashboard/promos-icon.svg");
}
.bottom-nav .nav-link:nth-child(2) .ico {
  background-image: url("../assets/dashboard/settings-icon.svg");
}
.bottom-nav .nav-link:nth-child(3) .ico {
  background-image: url("../assets/dashboard/help-center.svg");
}
.bottom-nav .nav-link:nth-child(4) .ico {
  background-image: url("../assets/dashboard/logout-icon.svg");
}
.nav-link:hover {
  border-color: rgba(185, 255, 90, 0.25);
  background: rgba(185, 255, 90, 0.05);
}
.nav-link.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.upgrade {
  background: linear-gradient(
    290deg,
    rgba(155, 255, 36, 0.6) 0%,
    rgba(75, 103, 40, 0.6) 100%
  );
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  flex-shrink: 0;
}
.upgrade-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.upgrade-top .brand-logo {
  width: 140px;
}
.upgrade h2 {
  margin-bottom: 6px;
  font-size: 18px;
  letter-spacing: var(--letter-spacing-200);
  text-align: center;
}
.upgrade p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 12px;
  max-width: 196px;
  width: 100%;
  margin: 0 auto 12px;
  text-align: center;
}
.upgrade .btn {
  padding: 10px 16px;
  border-radius: 33px;
  transition: all 0.3s ease;
}
.btn-white {
  background: white !important;
  color: black;

}
.btn-white:hover {
  background: black !important;
  color: white;
}
/* ====== MAIN ====== */
.main {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke);
  padding: 18px;
  box-shadow: var(--shadow);
  z-index: 44;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.hello {
  font-family: var(--ff-stolzl);
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 1);
  letter-spacing: var(--letter-spacing-200);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search {
  width: min(420px, 30vw);
  height: 42px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #282828;
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 10px;
}
.search input {
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.search input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.search-ico {
  width: 18px;
  height: 18px;
  border-radius: 8px;
  background: url("../assets/dashboard/search-icon.svg") center / contain
    no-repeat;
  opacity: 0.6;
  cursor: pointer;
}

.topbar-right button {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
}
.topbar-right button:first-of-type {
  background: url("../assets/dashboard/message-icon.svg") var(--green) center
    no-repeat;
}
.topbar-right button:last-of-type {
  background: url("../assets/dashboard/notification-icon.svg") var(--green)
    center no-repeat;
}
.profile-mini {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
}
.profile-mini .name {
  font-size: 14px;
  letter-spacing: var(--letter-spacing-300);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}
.profile-mini .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: url("../assets/dashboard/profile.svg") center / contain no-repeat;
}

/* ✅ MENU TOGGLE INPUT HIDE */
.menu-toggle {
  display: none;
}

/* ✅ TOPBAR LEFT (menu + h1) */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ✅ MENU ICON BUTTON */
.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  display: none;
  /* ✅ only show on small screens */
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
}

/* ✅ OVERLAY (hidden by default) */
.overlay {
  display: none;
}

/* ✅ CLOSE BUTTON INSIDE SIDEBAR */
.sidebar-close {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* ================= GRID START ====== */

/* ====== GRID ====== */

.row > *,
.row-1 > *,
.row-2 > *,
.row-3 > * {
  min-width: 0;
}

.row {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 350px);
}
.col {
  display: grid;
  gap: 16px;
}
.row-1 {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto;
  padding: 32px;
  background: #282828;
  border-radius: 16px;
  align-items: center;
}
.row-2 {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 16px;
}
.row-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}



.btn{
    padding: 12px 24px;
    background: transparent;
    font-size: 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.3s all ease;
}
.btn-primary{
    color: var(--bg-white);
    border-color: var(--green);
}
.btn-primary:hover{
    color: var(--green);
}
.btn-secondary{
color: var(--bg-black);
background: var(--green);
}
.btn-secondary:hover{
    border-color: var(--green);
    background: transparent;
    color: var(--green);
}

.profile {
  display: flex;
  align-items: center;
  gap: 24px;
}
.profile-mini-right{
  display: flex;
  justify-content: center;
  align-content: center;
  gap: 22px;
}
.user-name-main {
  font-family: "stolzl";
  font-size: clamp(38px, 4vw, 48px);
  letter-spacing: -0.03em;
}
.user-email {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 300;
}
.membership{
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
}
.membership span{
  font-size: 16px;
  border: 1px solid #b9fb6a;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
  padding-left: 10px;
}

.member-right-ico {
  padding: 12px;
  background: var(--green);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 12px;
  border-radius: 0 10px 10px 0;
}
.profile-update{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 62px;
    width: fit-content;
}
.edit-upgrade{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 400px;
    width: 100%;
}
.total-expence-btm span{
    font-size: 24px;
    line-height: 1;

}


/* Row 2  Start*/


:root {
  --bg-white: #ffffff;
  --bg-black: #000000;
  --bg: #0b0d0f;
  --panel: #282828;
  --panel-2: rgba(24, 27, 30, 0.9);
  --stroke: rgba(255, 255, 255, 0.08);
  --muted: rgba(255, 255, 255, 0.6);
  --green: #b9fb6a;
  --green2: #7cff4f;
  --soft: rgba(185, 255, 90, 0.15);
  --shadow: 0 16px 30px rgba(0, 0, 0, 0.6);

  --ff-stolzl: "stolzl", sans-serif;
  --ff-dm-sans: "DM Sans", sans-serif;

  --letter-spacing-200: -0.02em;
  --letter-spacing-300: -0.03em;
}


.financial-card {
  background: #282828;
  border-radius: 16px;
  padding: 25px;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  border: 1px solid #30363D;
}

.financial-card-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.financial-card h3 {
  font-size: 24px;
  line-height: 1.33;
  margin-bottom: 16px;
}

.positive {
  color: var(--green);
  color: #b9fb6a;
}

.financial-negative {
  color: #F87171;
}

/* Progress Bar */
.progress {
  height: 8px;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  width: 65%;
  height: 100%;
  background: var(--green);
}

/* Mini Chart */
.financial-mini-chart {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.financial-mini-chart span {
  max-width: 54px;
  width: 100%;
  height: 18px;
  background: #2b323b;
  border-radius: 4px 4px 0 0;
}
.financial-mini-chart span:nth-child(1){
    background-color: rgba(185, 251, 106, 0.2);
    height: 15px;
}
.financial-mini-chart span:nth-child(2){
    background-color: rgba(185, 251, 106, 0.4);
    height: 22px;
}
.financial-mini-chart span:nth-child(3){
    background-color: rgba(185, 251, 106, 0.2);
    height: 15px;
}
.financial-mini-chart span:nth-child(4){
    background-color: rgba(185, 251, 106, 1);
    height: 39px;
}


/* Approval Row */
.approval-row{
  display: flex;
  align-items: center;
  gap: 16px;
}

.financial-avatars {
  display: flex;
  margin-bottom: 16px;
}

.financial-avatars figure{
    border: 2px solid #282828;
    border-radius: 50%;
    aspect-ratio: 1;
}
.financial-avatars figure:not(:first-child){
    margin-left: -10px;
}

.fn-btn{
    color: var(--green);
    color: #b9fb6a;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    transition: 0.3s all ease;
}
.fn-btn:hover{
    opacity: 0.8;
}
.sub-text {
  font-size: 11px;
  color: #94A3B8;
}

.financial-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.financial-title strong {
  color: #D5DDF0;
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
}

.financial-title .hr-line {
  flex: 1;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.6);
}



/* Card */
.settings-card {
  background-color: #282828;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  margin: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid #D5DDF0;
  margin-bottom: 24px;
}

.tab {
  background: transparent;
  border: none;
  color: #fff;
  padding: 14px 24px;
  cursor: pointer;
  font-size: 16px;
}

.tab.active {
  background: #a6e26b;
  color: #282828;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
}

/* Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

/* Form */
.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 14px;
  font-weight: bold;
  line-height: 20px;
  color: rgba(203, 213, 225, 0.9);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  background: #0A0C10;
  border: 1px solid #30363D;
  border-radius: 12px;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 24px;
  
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}

/* Button */
.save-btn {
  margin-top: 32px;
  background: var(--green);
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  color: #0b0f14;
  font-size: 15px;
  transition: 0.3s all ease;
}
.save-btn:hover{
    background-color: rgba(185, 251, 106, 0.8);
}


.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
}

.select-wrapper::after {
  content: ""; /* You can change this */
  height: 10px;
  width: 10px;
  background: url(../assets/profile/chevron-bottom.svg) center / cover no-repeat;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 1900px) {
  /* ✅ app becomes 1 column */
  .app {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
  }

  /* ✅ show menu icon */
  .menu-btn {
    display: inline-flex;
  }

  /* ✅ sidebar becomes drawer */
  .sidebar {
    position: fixed;
    /* top: 18px;
    left: 18px;
    bottom: 18px; */
    width: min(320px, 86vw);
    z-index: 1000;

    transform: translateX(-120%);
    transition: transform 0.35s ease;
  }

  /* ✅ close button visible */
  .sidebar-close {
    display: flex;
  }

  /* ✅ overlay */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: 0.35s ease;
  }

  /* ✅ when checked: open sidebar */
  .menu-toggle:checked ~ .app .sidebar {
    transform: translateX(0%);
  }

  /* ✅ when checked: show overlay */
  .menu-toggle:checked ~ .app .overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 1200px) {
  .row,
  .row-1,
  .row-3 {
    grid-template-columns: 1fr;
  }
  .row-2{
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .user-details{
    gap: 32px;
  }
  
}

@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .row-2{
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-wrap: wrap;
  }
  .dashboard-cards {
    grid-template-columns: 1fr;
  }
  .profile-mini-right{
    flex-direction: column;
  }
}
@media (max-width: 520px) {
  .topbar {
    /* flex-direction: column; */
    align-items: center;
    gap: 12px;
  }

  .topbar-right {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }
  .search {
    display: none;
  }
  .profile-mini .name {
    display: none;
  }
  .profile-mini {
    width: 46px;
    height: 46px;
    padding: 5px 5px;
    background: var(--green);
  }

  .search {
    width: 100%;
  }
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }

  .main {
    padding: 14px;
  }
}
@media (max-width: 420px) {
  .profile-mini {
    display: none;
  }
  
}
@media (max-width: 320px) {
  .topbar-right button:first-of-type {
    display: none;
  }
  .app {
    padding: 0;
    border-radius: 0;
  }
  .main {
    padding: 8px;
  }

}
