
/* ====== TOP BAR ====== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #252a2d;
  color: #fff;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.left-actions {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
}

/* Hamburger */
.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.hamburger__bar {
  height: 2px;
  background: #7d8489;
  border-radius: 2px;
  transition: transform .18s ease;
}

/* Longest to shortest */
.hamburger__bar--1 { width: 22px; }
.hamburger__bar--2 { width: 21px; }
.hamburger__bar--3 { width: 20px; }
.hamburger__bar--4 { width: 19px; }

.hamburger-btn:hover .hamburger__bar {
  transform: translateX(2px);
}

/* Logo styles */
.logo {
  height: 26px;
  margin-left: -40px; /* keeps it very close to the hamburger */
}

/* Spacer (to keep layout centered) */
.center-spacer {
  flex: 1;
}

/* Right-side actions */
.right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 20px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 4px;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  margin-right: 17px;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #383d40;
  border-radius: 5px;
  overflow: hidden;
  font-weight: 600;
  border: 1px solid #3e4346;
  height: 26px;
  padding: 0;
  line-height: 1;
  min-width: 0;
  margin-bottom: 4px;
}

.balance-amount {
  color: #fff;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.deposit-btn {
  background-color: #9be22d;
  color: #000;
  padding: 4px 8px;
  border: none;
  outline: none;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.deposit-btn:hover {
  background-color: #8ad926;
}

/* RESPONSIVE DESIGN */
@media (max-width: 480px) {
  .balance-pill {
    height: 27px;
    border-radius: 20px;
    gap: 3px;
    top: 10px;
    margin-left: -20px;
  }

  .balance-amount {
    padding: 2px 6px;
    font-size: 14px;
    margin-left: 5px;
  }

  .deposit-btn {
    width: 19px;
    height: 19px;
    font-size: 14px;
    border-radius: 20px;
    margin-right: 4px;
  }

  .deposit-btn strong {
    font-size: 18px;
    margin-bottom: 3px;
  }

  .logo {
    height: 26px;
    margin-left: 1px;
  }
}

#preloader-2 {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  width: 360px;
  height: 65px;
  max-width: 70%;
  margin-bottom: 20px;
}

/* Loader bar */
.loader-track {
  width: 220px;
  height: 3.5px;
  background: #eaeaea;
  overflow: hidden;
  border-radius: 0px;
  margin: 0 auto;
}

.loader-fill {
  width: 80px;
  height: 100%;
  background: #9be22d;
  border-radius: 0px;
  animation: moveFill 3.0s ease-in-out infinite;
}

@keyframes moveFill {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(280%);
  }
  100% {
    transform: translateX(-100%);
  }
}



#preloader {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.bar-spinner {
  position: relative;
  margin-top: -50px;
  top: -205px;
  width: 40px;   /* was 32px */
  height: 40px;  /* was 32px */
  border-radius: 50%;
}

.bar-spinner div {
  transform-origin: 20px 20px; /* center = half of width/height */
  animation: spinFade 1.2s linear infinite;
}

.bar-spinner div:after {
  content: "";
  display: block;
  position: absolute;
  top: 3.2px;       /* slightly inward → smaller center space */
  left: 19px;        /* horizontal center stays the same */
  width: 3px;
  height: 10px;      /* unchanged */
  border-radius: 6px;
  background: #161616;
}

/* keep the same rotation + delay pattern */
.bar-spinner div:nth-child(1)  { transform: rotate(0deg);   animation-delay: -1.1s; }
.bar-spinner div:nth-child(2)  { transform: rotate(30deg);  animation-delay: -1s; }
.bar-spinner div:nth-child(3)  { transform: rotate(60deg);  animation-delay: -0.9s; }
.bar-spinner div:nth-child(4)  { transform: rotate(90deg);  animation-delay: -0.8s; }
.bar-spinner div:nth-child(5)  { transform: rotate(120deg); animation-delay: -0.7s; }
.bar-spinner div:nth-child(6)  { transform: rotate(150deg); animation-delay: -0.6s; }
.bar-spinner div:nth-child(7)  { transform: rotate(180deg); animation-delay: -0.5s; }
.bar-spinner div:nth-child(8)  { transform: rotate(210deg); animation-delay: -0.4s; }
.bar-spinner div:nth-child(9)  { transform: rotate(240deg); animation-delay: -0.3s; }
.bar-spinner div:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
.bar-spinner div:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
.bar-spinner div:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

@keyframes spinFade {
  0%   { opacity: 1; }
  100% { opacity: 0.25; }
}

#preloader-3 {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

.bar-spinner-3 {
  position: relative;
  margin-top: -50px;
  top: -85px;
  width: 40px;   /* was 32px */
  height: 40px;  /* was 32px */
  border-radius: 50%;
}

.bar-spinner-3 div {
  transform-origin: 20px 20px; /* center = half of width/height */
  animation: spinFade 1.2s linear infinite;
}

.bar-spinner-3 div:after {
  content: "";
  display: block;
  position: absolute;
  top: 3.2px;       /* slightly inward → smaller center space */
  left: 19px;        /* horizontal center stays the same */
  width: 3px;
  height: 10px;      /* unchanged */
  border-radius: 6px;
  background: #333;
}

/* keep the same rotation + delay pattern */
.bar-spinner-3 div:nth-child(1)  { transform: rotate(0deg);   animation-delay: -1.1s; }
.bar-spinner-3 div:nth-child(2)  { transform: rotate(30deg);  animation-delay: -1s; }
.bar-spinner-3 div:nth-child(3)  { transform: rotate(60deg);  animation-delay: -0.9s; }
.bar-spinner-3 div:nth-child(4)  { transform: rotate(90deg);  animation-delay: -0.8s; }
.bar-spinner-3 div:nth-child(5)  { transform: rotate(120deg); animation-delay: -0.7s; }
.bar-spinner-3 div:nth-child(6)  { transform: rotate(150deg); animation-delay: -0.6s; }
.bar-spinner-3 div:nth-child(7)  { transform: rotate(180deg); animation-delay: -0.5s; }
.bar-spinner-3 div:nth-child(8)  { transform: rotate(210deg); animation-delay: -0.4s; }
.bar-spinner-3 div:nth-child(9)  { transform: rotate(240deg); animation-delay: -0.3s; }
.bar-spinner-3 div:nth-child(10) { transform: rotate(270deg); animation-delay: -0.2s; }
.bar-spinner-3 div:nth-child(11) { transform: rotate(300deg); animation-delay: -0.1s; }
.bar-spinner-3 div:nth-child(12) { transform: rotate(330deg); animation-delay: 0s; }

@keyframes spinFade {
  0%   { opacity: 1; }
  100% { opacity: 0.25; }
}


.browse-btn {
    text-align: center;
    margin-top: 27px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e0e0dd;
    width: 100%;
}


/* Container */
.container {
  max-width: 600px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin: 0 auto;
  background-color: white;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .container {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    top: -25px;
    margin-top: 10px;
  }
}

.match-5 {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.slide-page {
    position: fixed;
    top: 0;
    right: -100%;        /* start off-screen */
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: right 0.45s ease-in-out; /* smooth slide */
    overflow-y: auto;
}

.slide-page.open {
    right: 0; /* slide into view */
}

.statement-page {
    height: 100vh;
    font-family: Arial, sans-serif;
    padding: 15px;
    background: #f1f1edff;
}

.statement-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.statement-list {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background: #fff;
    padding: 12px;
    border-radius: 0px;
}

.statement-item {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}

.statement-item:last-child {
    border-bottom: none;
}

.left .label {
    font-size: 13px;
    color: #222;
    margin-left: 6px;
}

.left .code {
    font-weight: bold;
}

.left .date {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
    margin-left: 6px;
}

.right {
    text-align: right;
}

.amount {
    font-size: 13px;
    font-weight: 600;
    margin-right: 6px;
}

.amount.positive {
    color: #8ad926 /* green */
}

.amount.negative {
    color: #cc371b; /* red */
}

.balance {
    font-size: 13px;
    color: #000000;
    margin-top: 3px;
    margin-right: 6px;
}

.balance span {
    font-weight: 600;
}

.info-box {
  background-color: #dff6fb;
  border: 2px solid #7fd3e0;
  padding: 18px 40px 18px 18px;
  max-width: 370px;
  position: relative;
  font-family: Arial, sans-serif;
  color: #000;
  margin-left: 10px;
  margin-top: 10px;
}

/* Close (X) button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #7a7a7a;
}

.close-btn:hover {
  color: #000;
}

/* Text */
.info-box p {
  margin-bottom: 10px;
  font-size: 14px;
}

/* Learn more link */
.learn-more {
  font-weight: bold;
  text-decoration: underline;
  color: #000;
  cursor: pointer;
  font-size: 14px;
}