/* General Theme */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #111, #1e293b);
  color: #fff;
  overflow-x: hidden;
}

.hidden {
  display: none;
}

/* Header styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(to right, #111, #1e293b);
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.greeting {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f1f5f9;
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-container {
  position: relative;
  margin: 10px;
}

.avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #fff;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.edit-icon {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #0ea5e9;
  padding: 4px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: none;
}

.prof-verified-badge{
  position: absolute;
  top: -4px;
  right: -3px;
  background: #3b82f6;
  color: white;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 50%;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(0, 153, 255, 0.5);
  animation: pulseBadge 1.5s infinite ease-in-out;

}

.profile-container:hover .edit-icon {
  display: block;
}

.logout-icon {
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logout-icon:hover {
  background: #f43f5e;
  transform: rotate(-15deg) scale(1.1);
}

.logout-icon svg {
  transition: stroke 0.3s ease;
}

.logout-icon:hover svg path {
  stroke: #fff;
}


/* Loading Overlay */
#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 17, 17, 0.8);
  color: white;
  font-size: 1.5rem;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* ATM Card */
.atm-card {
  position: relative;
  background: linear-gradient(120deg, #111, #1e293b #1a1a1a);
  background-size: 300% 300%;
  animation: waterFlow 10s ease infinite;
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  min-width: 160px;
  height: 22px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: inset 0 0 0 1000px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.3s ease;
}

.atm-card::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08), transparent);
  animation: glowPulse 6s ease-in-out infinite;
  z-index: 0;
}

.atm-card > * {
  position: relative;
  z-index: 1;
}

@keyframes waterFlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 300% 300%;
  }
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.6; }
}

.atm-balance-label {
  font-size: 8px;
  text-transform: uppercase;
  opacity: 0.7;
}

.atm-balance {
  font-size: 1.0rem;
  font-weight: bold;
  color: #0cc572;
  margin-left: 10px;
}

.add-funds-text-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  color: #fff;
  font-size: 10px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  align-self: self-start;
}

.add-funds-text-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

/* Add Funds Modal */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #1e1e1e;
  color: white;
  padding: 20px;
  border-radius: 12px;
  z-index: 9999;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(255, 145, 0, 0.5);
  display: none;
  animation: popupFadeIn 0.3s ease forwards;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal input {
  width: 100%;
  padding: 10px;
  margin-top: 12px;
  margin-bottom: 16px;
  border-radius: 6px;
  border: none;
}

.modal button {
  background: orange;
  border: none;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}

/* Leaderboard Section */
.leaderboard-container {
  max-width: 100%;
  width: 100%;
  padding: 5px;
  background: transparent;
  overflow: hidden;
  position: relative;
}

.leaderboard-header {
  font-weight: 400;
  font-size: 15px;
  color: orange;
  padding-left: 12px;
  user-select: none;
}

.leaderboard-scroll {
  display: flex;
  overflow-x: hidden;
  gap: 10px;
  padding: 12px;
  scroll-behavior: auto;
  white-space: nowrap;
}
.leaderboard-scroll::-webkit-scrollbar {
  visibility: hidden;
}

.investors-wrapper {
  display: flex;
}

.investor-card {
  flex: 0 0 120px;
  background: transparent;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.7s;
  cursor: pointer;
  color: #f1f5f9;
  border: 2px solid #333;
  user-select: none;
}

.investor-card:hover {
  scale: 1.05;
}

.investor-rank {
  font-weight: 700;
  font-size: 8pt;
  color: orange;
  margin-bottom: 12px;
}

.investor-photo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 2px solid #555;
}

.investor-name {
  font-weight: 600;
  font-size: 8pt;
  color: #eee;
  margin-bottom: 4px;
  text-align: center;
}

.investor-amount {
  font-weight: 700;
  font-size: 9pt;
  color: greenyellow;
  margin-bottom: 5px;
}

.top-investor {
  border: 2px solid orange;
  box-shadow: 0 5px 10px rgba(249, 178, 11, 0.6);
  background-color: #312e2b;
}

.top-investor .investor-rank {
  color: #facc15;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-left-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
  }

  .user-controls {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }

  .greeting {
    font-size: 1.2rem;
  }

  .investor-card {
    flex: 0 0 130px;
  }

  .investor-photo {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 480px) {
  .greeting {
    font-size: 1rem;
    text-align: left;
    width: 100%;
  }

  .user-controls {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
  }

  .profile-container .avatar {
    width: 45px;
    height: 45px;
  }

 

  .investor-card {
    flex: 0 0 120px;
    padding: 8px;
  }

  .investor-amount,
  .investor-name,
  .investor-rank {
    font-size: 7.5pt;
  }
}

/* ATM Exit Animation */
.atm-card.animate-exit {
  animation: zoomOutFade 1s ease forwards;
}

@keyframes zoomOutFade {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(5deg);
    opacity: 0.7;
  }
  100% {
    transform: scale(0) rotate(720deg);
    opacity: 0;
  }
}
.live-rates-bar {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
  scroll-behavior: smooth;
}

.crypto-rate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  padding: 4px 10px;
  border: 1px solid #333;
  background: transparent;
  border-radius: 8px;
  transition: color 0.3s ease;
  min-width: fit-content;
}

.crypto-rate.btc {
  background: red;
  color: #fff;
}

.price::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background-color: #10b981;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0.9; }
}
.photo-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
}

.verified-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #3b82f6;
  color: white;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 50%;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(0, 153, 255, 0.5);
  animation: pulseBadge 1.5s infinite ease-in-out;
}

@keyframes pulseBadge {
  0% { transform: scale(1); box-shadow: 0 0 4px rgba(0, 153, 255, 0.5); }
  50% { transform: scale(1.2); box-shadow: 0 0 4px rgba(0, 153, 255, 0.8); }
  100% { transform: scale(1); box-shadow: 0 0 4px rgba(0, 153, 255, 0.5); }
}
.verification-notice {
  font-size: 12px;
  background: #f43f5e;
  padding: 6px 10px;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  margin-right: 8px;
}

.notification-container {
  position: relative;
}

.notification-bell {
  position: relative;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.notification-bell:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: bold;
}

.notif-popup {
  position: absolute;
  right: 0;
  top: 40px;
  width: 220px;
  background: #1e293b;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  z-index: 999;
  animation: fadeInUp 0.3s ease forwards;
}

.notif-popup.hidden {
  display: none;
}

.notif-header {
  font-weight: bold;
  color: orange;
  margin-bottom: 8px;
}

.notif-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 150px;
  overflow-y: auto;
}

.notif-list li {
  padding: 6px 0;
  border-bottom: 1px solid #333;
  color: #f1f5f9;
  font-size: 13px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.logout-icon-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 80px;
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 6px 8px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 120%; /* above the icon */
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.logout-icon-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}
.verify-notice {
  background: rgba(10, 96, 71, 0.1);
  color: #000;
  border: 1px solid rgba(7, 156, 106, 0.4);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  animation: glowPulse 3s ease-in-out infinite;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 8px rgba(4, 100, 70, 0.15);
  transition: all 0.3s ease;
}

.verify-icon {
  font-size: 14px;
  animation: iconNudge 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(3, 106, 80, 0.1);
  }
  50% {
    box-shadow: 0 0 12px rgba(2, 107, 58, 0.4);
  }
}

@keyframes iconNudge {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-1px);
  }
}
/* Avatar Popup Modal */
.avatar-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease;
}

.avatar-popup-content {
  background: #1f2937;
  border-radius: 16px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease forwards;
}

.avatar-popup h3 {
  color: #f1f5f9;
  text-align: center;
  margin-bottom: 16px;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 15px;
  justify-items: center;
  padding: 10px 0;
}

.avatar-grid img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s;
}

.avatar-grid img:hover {
  transform: scale(1.1);
  border-color: #0ea5e9;
}

.close-avatar-popup {
  display: block;
  width: 100%;
  background: #ef4444;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 10px;
  font-weight: bold;
  margin-top: 12px;
  cursor: pointer;
}

.hidden {
  display: none;
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.avatar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeIn 0.3s ease-in;
}

.avatar-modal.hidden {
  display: none;
}

.avatar-modal-content {
  background: #1e293b;
  padding: 24px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  color: white;
  text-align: center;
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

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

.avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 15px;
}

.avatar-grid img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

.avatar-grid img:hover {
  transform: scale(1.1);
  border: 2px solid #38bdf8;
}

.close-modal-btn {
  margin-top: 20px;
  background: #f43f5e;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.verified-badge1 {
  background-color: #0cc572;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  display: inline-block;
}

.fade-out-right {
  animation: slideOut 0.5s forwards;
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(80px);
    opacity: 0;
  }
}
/* Animated Verified Badge */
.verified-badge1 {
  background: linear-gradient(135deg, #107f57, #0c6e98);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  display: inline-block;
  box-shadow: 0 0 4px rgba(0, 255, 200, 0.7);
  animation: pulse-glow 1.8s infinite ease-in-out;
}

/* Pulse Animation */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 2px rgba(26, 121, 101, 0.6);
  }
  50% {
    box-shadow: 0 0 2px rgba(0, 255, 200, 0.9);
  }
  100% {
    box-shadow: 0 0 2px rgba(2, 104, 82, 0.6);
  }
}

/* Not Verified Styling */
.not-verified {
  color: #ff4d4d;
  background-color: #fff3f3;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.3s ease;
}

/* Smooth slide-out on click */
.fade-out-right {
  animation: slideOutRight 0.5s forwards;
}

@keyframes slideOutRight {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100px);
    opacity: 0;
  }
}
.dashboard-tabs {
  display: flex;
  overflow-x: auto;
  background: #111;
  border-bottom: 1px solid #333;
}
.tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  color: #ccc;
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}
.tab-btn.active {
  color: #fff;
  border-color: #0f0;
}

.tab-content {
  padding: 20px;
  background: #121212;
}
.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* TABS WRAPPER */
.dashboard-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 16px;
  background: #0a0a0a;
  border-bottom: 2px solid #222;
  scrollbar-width: none;
}
.dashboard-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to right, #111, #1a1a1a);
  color: #aaa;
  border: 1px solid #333;
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}
.tab-btn i {
  font-size: 16px;
}
.tab-btn.active {
  color: #00ffcc;
  border-color: #00ffcc;
  box-shadow: 0 0 8px #00ffcc66;
  background: #111;
}

.tab-content {
  padding: 20px;
  background: #0f0f0f;
  border-radius: 8px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.tab-pane {
  display: none;
  animation: fadeSlide 0.4s ease;
}
.tab-pane.active {
  display: block;
}

/* Slide + Fade Animation */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}
.notification-container {
  position: relative;
  display: inline-block;
}

.notification-bell {
  position: relative;
  cursor: pointer;
  font-size: 30px;
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 50%;
  display: inline-block;
}

.notif-popup {
  position: absolute;
  right: 0;
  top: 30px;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  background: linear-gradient(to bottom right, #111, #1e293b);
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  border-radius: 8px;
}

.notif-popup.hidden {
  display: none;
}

.notif-header {
  padding: 10px;
  background: #00ffcc;
  color: #1e293b;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notif-list li {
  padding: 10px;
  color: #fff;
  border-bottom: 1px solid #eee;
}

.notif-list li:last-child {
  border-bottom: none;
}

.notif-badge.hidden {
  display: none;
}
.notif-item.unread {
  background: #eef6ff;
  font-weight: 600;
  padding: 10px;
  border-left: 4px solid #3b82f6;
}
  .notification-container {
    position: relative;
    display: inline-block;
  }

  .notification-bell {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    color: #3b82f6;
    transition: transform 0.2s ease;
  }

  .notification-bell:hover {
    transform: scale(1.15);
  }

  .notif-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: red;
    color: white;
    font-size: 0.7rem;
    padding: 2px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    font-weight: bold;
  }

  .notif-popup {
    position: absolute;
    right: 0;
    top: 35px;
    width: 320px;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 50;
    animation: slideDown 0.25s ease-out forwards;
    border: 1px solid #e2e8f0;
  }

  .notif-popup.hidden {
    display: none;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .notif-header {
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f1f1;
    border-radius: 10px;
  }

  .notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .notif-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
  }

  .notif-item.unread {
    background: #eef6ff;
    font-weight: 600;
    border-left: 4px solid #3b82f6;
  }

  .notif-item small {
    color: #999;
    font-size: 0.75rem;
  }

  /* Scrollbar styling (optional) */
  .notif-popup::-webkit-scrollbar {
    background-color: transparent;
    width: 6px;
  }

  .notif-popup::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
  }

  /* Responsive fallback */
  @media screen and (max-width: 500px) {
    .notif-popup {
      width: 90vw;
      right: 5%;
    }
  }

  .notif-popup {
  max-height: 300px; /* Adjust as needed */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #00ffcc transparent;

  /* Optional smooth scroll feel */
  scroll-behavior: smooth;
}

/* For WebKit browsers (Chrome, Safari, Edge) */
.notif-popup::-webkit-scrollbar {
  width: 8px;
}

.notif-popup::-webkit-scrollbar-track {
  background: transparent;
}

.notif-popup::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #60a5fa, #3b82f6);
  border-radius: 10px;
  border: 2px solid white;
}

/* Hide scrollbar if not scrollable */
.notif-popup:has(li:nth-child(-n+3))::-webkit-scrollbar {
  display: none;
}
.notif-popup::-webkit-scrollbar {
  opacity: 0;
  transition: opacity 0.3s;
}
.notif-popup:hover::-webkit-scrollbar {
  opacity: 1;
}
/* Notification side alert */
.notif-alert {
  position: absolute;
  top: -10px;
  right: -130px;
  background-color: #3b82f6;
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  white-space: nowrap;
  animation: fadeout 5s forwards;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@keyframes fadeout {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; display: none; }
}

/* Bell shake animation */
@keyframes shake {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-10deg); }
  40% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  80% { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}

.bell-shake {
  animation: shake 0.5s ease-in-out 2;
}
/* 🔘 Withdrawals List Container */
/* 💼 Withdrawals List Layout */
#withdrawalsList {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

/* 💳 Withdrawal Card */
.withdrawal-card {
  background: linear-gradient(to bottom right, #111, #1e293b);
  border: 1px solid #e5e7eb;
  border-left: 6px solid #fff;
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.withdrawal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* 🔵 Title */
.withdrawal-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 📄 Info Section */
.withdrawal-card p {
  font-size: 0.88rem;
  color: #1f2937;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

/* 🏷️ Status Badge */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge.pending {
  background-color: #fef3c7;
  color: #b45309;
}
.badge.approved {
  background-color: #d1fae5;
  color: #047857;
}
.badge.declined {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* ❌ Optional Cancel Button */
.cancel-btn {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ef4444;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.cancel-btn:hover {
  color: #dc2626;
}

/* 📱 Responsive */
@media (max-width: 500px) {
  #withdrawalsList {
    grid-template-columns: 1fr;
  }
  .withdrawal-card {
    padding: 1.25rem;
  }
}
/* ✅ Shared Card Style */
.withdrawal-card {
  padding: 1.5rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(6px);
}
.withdrawal-card:hover {
  transform: translateY(-4px);
}

/* 🟢 Approved */
.withdrawal-card.approved {
  background: linear-gradient(135deg, #222, #10b981);
}

/* 🟠 Pending */
.withdrawal-card.pending {
  background: linear-gradient(135deg, #222, #f59e0b);
}

/* 🔴 Declined */
.withdrawal-card.declined {
  background: linear-gradient(135deg, #222, #ef4444);
}

/* 🔹 Title */
.withdrawal-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

/* 🔸 Info Text */
.withdrawal-card p {
  font-size: 0.875rem;
  font-weight: 500;
  color: #f0fdf4;
  margin-bottom: 0.5rem;
}

/* 🏷️ Status Badge (Optional, lighter tone for contrast) */
.badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-slideUp {
  animation: slideUp 0.3s ease-out;
}

/* Smooth fade for popup */
#withdrawPopup {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Withdraw Button */
#openWithdrawPopup {
  background: linear-gradient(to right, #3b82f6, #2563eb);
  color: white;
  padding: 0.65rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#openWithdrawPopup:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Withdraw Popup Overlay */
#withdrawPopup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

/* Withdraw Card */
#withdrawPopup .withdraw-card {
  background: linear-gradient(to bottom right, #111, #1e293b);;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  width: 90%;
  max-width: 450px;
  animation: slideUpFade 0.3s ease-out;
  position: relative;
}

/* Close Button */
.close-btn {
  background: transparent;
  border: none;
  color: #9ca3af; /* Tailwind slate-400 */
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 12px;
  right: 16px;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 10;
  animation: fadePop 0.3s ease;
}

/* Hover effect */
.close-btn:hover {
  color: #ef4444; /* Tailwind red-500 */
  transform: rotate(90deg) scale(1.2);
}

/* Focus outline for accessibility */
.close-btn:focus {
  outline: 2px solid #ef4444;
  outline-offset: 2px;
}

/* Optional entrance animation */
@keyframes fadePop {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Form Fields */
#withdrawPopup input[type="number"],
#withdrawPopup input[type="text"] {
  width: 90%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  font-size: 1rem;
  outline: none;
  margin-top: 5px;
  margin-bottom: 5px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#withdrawPopup input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Submit Button */
#withdrawPopup button[type="submit"] {
  width: 100%;
  background: linear-gradient(to right, #3b82f6, #2563eb);
  color: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s ease;
}

#withdrawPopup button[type="submit"]:hover {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
}

/* Animation */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Margin */
#withdrawTriggerContainer {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}
#openWithdrawPopup.float-withdraw {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #fff;
  color: #0f5841;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 50;
  animation: float-in 0.4s ease-in-out;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Default appearance */
.withdraw-btn {
  background: #2563eb;
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Float only when class added by JS */
.withdraw-btn.float-withdraw {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 100;
  animation: floatFadeIn 0.4s ease-in-out;
}

/* Optional: entrance animation */
@keyframes floatFadeIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Base style for the Withdraw button */
#openWithdrawPopup {
  background: linear-gradient(135deg, #22c55e, #16a34a); /* Vibrant green gradient */
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
  outline: none;
  display: inline-block;
  animation: popUpFade 0.4s ease;
}

/* Hover effect */
#openWithdrawPopup:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Optional: Floating position (if added dynamically via JS) */
#openWithdrawPopup.float-withdraw {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 100;
}

/* Pop animation */
@keyframes popUpFade {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
#openWithdrawPopup.float-withdraw {
  animation: pulseGlow 1.5s ease-in-out infinite, popUpFade 0.4s ease;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.0);
  }
  50% {
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
  }
}
/* Popup animation */
@keyframes popupSlide {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-popup {
  animation: popupSlide 0.3s ease-out;
}

/* Close button style */
.close-btn {
  font-size: 1.2rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Wallet text */
#userBalanceText {
  font-weight: bold;
  color: #0cc572;
}



#wtext {
  opacity: 0.4;
  margin: 10px;
  font-size: 10pt;
  font-style: italic;
}
@keyframes fade-in-out {
  0% { opacity: 0; transform: translateY(-10px); }
  10% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

.animate-fade-in-out {
  animation: fade-in-out 4s ease-in-out forwards;
}
.toggle-mode-switch {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.toggle-label {
  color: #3b82f6;
}

.toggle-group {
  display: inline-flex;
  border: 2px solid #3b82f6;
  border-radius: 9999px;
  overflow: hidden;
  background: #f1f5f9;
}

.toggle-group input[type="radio"] {
  display: none;
}

.toggle-group label {
  cursor: pointer;
  padding: 0.4rem 1.2rem;
  color: #1e293b;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.toggle-group input[type="radio"]:checked + label {
  background: #3b82f6;
  color: white;
}
.loader {
  border: 2px solid white;
  border-top: 2px solid transparent;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-block;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#canwith{
  border: 0;
  background: red;
  padding: 10px;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
#canwith:hover{
transform: scale(1.05);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in {
  animation: slideIn 0.4s ease-out forwards;
}
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-slide {
  animation: fadeSlide 0.3s ease-out forwards;
}


.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.toast {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fff;
  color: #333;
  padding: 12px 18px;
  margin-top: 10px;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  min-width: 300px;
  max-width: 90vw;
  font-size: 15px;
  font-weight: 500;
  animation: fadeSlide 0.5s ease, fadeOut 0.5s ease 4s forwards;
}

.toast.success { background-color: #e6ffed; color: #107c41; border-left: 4px solid #23a455; }
.toast.error   { background-color: #ffe6e6; color: #b30000; border-left: 4px solid #e63946; }
.toast.warning { background-color: #fff7e6; color: #b26a00; border-left: 4px solid #ff9800; }
.toast.info    { background-color: #e6f4ff; color: #004085; border-left: 4px solid #2196f3; }

.toast button {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 18px;
  margin-left: auto;
  cursor: pointer;
}

@keyframes fadeSlide {
  0%   { opacity: 0; transform: translateY(-20px) translateX(-50%); }
  100% { opacity: 1; transform: translateY(0) translateX(-50%); }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-20px) translateX(-50%); }
}
#rcpd {
  display: inline-block;
  margin-top: 6px;
  background-color: #333;
  color: white;
  padding:10px;
  font-size: 12px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#rcpd:hover {
  background-color: #111;
}
.wallet-input-wrapper {
  margin-bottom: 1rem;
  position: relative;
}

.wallet-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151; /* text-gray-700 */
  margin-bottom: 0.4rem;
  display: block;
}

.wallet-input-container {
  position: relative;
}

.wallet-input {
  width: 100%;
  padding: 10px 40px 10px 12px; /* right padding for icon space */
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.wallet-input:focus {
  border-color: #2563eb; /* blue-600 */
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.paste-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  margin-right: 5px;
  font-size: 1rem;
  cursor: pointer;
  color: #6b7280; /* text-gray-500 */
  transition: color 0.2s ease;
}

.paste-btn:hover {
  color: #2563eb; /* blue-600 */
}
@keyframes fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fade-in 0.4s ease-out;
}
/* === Blocked Overlay Styling === */
#blockedOverlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#blockedOverlay .overlay-box {
  background: white;
  padding: 2rem;
  border-radius: 1.25rem;
  max-width: 90%;
  width: 400px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#blockedOverlay h2 {
  color: #e3342f;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#blockedOverlay p {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

#contactSupportBtn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #ef4444, #b91c1c);
  color: white;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
  animation: pulseBtn 1.5s infinite ease-in-out;
  transition: transform 0.2s ease;
}

#contactSupportBtn:hover {
  transform: scale(1.05);
}

@keyframes pulseBtn {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

/* Optional: Prevent background scroll */
body.modal-open {
  overflow: hidden;
}
.chat-options-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

.chat-card {
  background: #222;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.chat-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #3b82f6;
}

.chat-card h3 {
  font-size: 1.4rem;
  color: cyan;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.chat-card p {
  font-size: 0.95rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.chat-card button {
  background: linear-gradient(to right, #3b82f6, #2563eb);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-card button:hover {
  background: linear-gradient(to right, #2563eb, #1d4ed8);
}

.pulse-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  animation: pulseGlow 2.5s infinite ease-out;
  z-index: -1;
}

@keyframes pulseGlow {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.2;
  }
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.7;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .chat-options-container {
    flex-direction: column;
    align-items: center;
  }

  .chat-card {
    width: 100%;
    max-width: 90%;
  }
}
body.modal-open {
      overflow: hidden;
    }
    .hidden {
      display: none;
    }
    /* Fallback styling in case Tailwind isn't active */
    .centered {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .modal-content {
      background: white;
      border-radius: 12px;
      box-shadow: 0 0 20px rgba(0,0,0,0.3);
      width: 95%;
      max-width: 400px;
      height: 90%;
      overflow: hidden;
      position: relative;
    }
    .close-btn {
      position: absolute;
      top: 12px;
      left: 12px;
      font-size: 24px;
      background: none;
      border: none;
      cursor: pointer;
    }
    /* Support Modal Styles */
.support-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.support-modal.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.support-header {
  background: #1e293b;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px 10px 0 0;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

.agent-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

.agent-name {
  font-weight: bold;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: limegreen;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.chat-body {
  background: linear-gradient(to bottom right, #111, #1e293b);
  width: 100%;
  max-width: 420px;
  height: 300px;
  overflow-y: auto;
  padding: 16px;
}

.chat-row {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  margin-right: 8px;
}

.chat-message {
  background: linear-gradient(to bottom right, #111, #1e293b);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  max-width: 75%;
}

.chat-message.user {
  background: #1d4ed8;
  color: #fff;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border-radius: 0 0 10px 10px;
  width: 100%;
  max-width: 420px;
}

.chat-input-bar input {
  flex: 1;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.chat-input-bar button {
  background: #1d4ed8;
  color: white;
  border: none;
  padding: 0 16px;
  border-radius: 6px;
}
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #1e40af;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 80%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
.support-modal {
  display: none;
  /* ... your other styles */
}
.support-modal.active {
  display: flex !important;
}

#closeSupportModal{
  cursor: pointer;
  background: rgb(184, 3, 3);
  padding: 3px;
  height: 30px;
  width: 30px;
  color: #fff;
  border-radius: 1000px;
  border: 0;
}
.chat-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 12px;
  gap: 8px;
}

.chat-row.user {
  justify-content: flex-end;
}

.chat-message {
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 70%;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  word-wrap: break-word;
}

.chat-message.user {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  border-bottom-right-radius: 0;
}

.chat-message.support {
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  color: #333;
  border-bottom-left-radius: 0;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.typing-bubble .dots::after {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  background: linear-gradient(to bottom right, #111, #1e293b);
  color: #fff;
  margin-left: 6px;
  animation: typing 1s infinite steps(3);
}

@keyframes typing {
  0% { content: ''; }
  33% { content: '.'; }
  66% { content: '..'; }
  100% { content: '...'; }
}


#luckBtn {
    background: #444;
}

#chatSupportBtn {

  background: linear-gradient(to right, orange, darkorange);
  transition: background 0.3s ease;
}

#chatSupportBtn:hover {
background: linear-gradient(to right, rgb(207, 134, 0), rgb(178, 98, 1));
}
.leaderboard-wrapper {
  width: 100%;
  overflow: hidden;
  background: #111;
  padding: 10px 0;
  position: relative; /* important to stay fixed */
}

.leaderboard-scroll {
  display: flex;
  width: max-content;
  animation: scrollLoop 55s linear infinite;
}

.user-card {
  flex: 0 0 auto;
  margin-right: 15px;
  background: #222;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  white-space: nowrap;
}
.user-card:hover{
  animation-play-state: paused;
}

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


/* 🔲 Modal Overlay */
.user-avatar-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.user-avatar-modal.show {
  display: flex;
}

.user-avatar-content {
  background: linear-gradient(to bottom right, #111, #1e293b);
  border-radius: 16px;
  padding: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: fadeIn 0.3s ease;
  position: relative;
  text-align: center;
}

.user-avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.user-avatar-choice {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar-choice:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

@keyframes fadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.user-avatar-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #444;
  transition: transform 0.2s ease;
  z-index: 10;
}

.user-avatar-close:hover {
  transform: scale(1.2);
  color: red;
}
/* Modal base (already used) */
.user-avatar-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.user-avatar-modal.show {
  display: flex;
  animation: fadeInModal 0.3s ease forwards;
}

.user-avatar-modal.hide {
  animation: fadeOutModal 0.3s ease forwards;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95) blur(3px);
  }
  to {
    opacity: 1;
    transform: scale(1) blur(0);
  }
}

@keyframes fadeOutModal {
  from {
    opacity: 1;
    transform: scale(1) blur(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) blur(3px);
  }
}
.user-avatar-modal {
  backdrop-filter: blur(3px);
}
.user-avatar-note {
  font-size: 0.9rem;
  color: #444;
  background: #f7f7f7;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  text-align: left;
  line-height: 1.5;
}
.user-avatar-choice.selected {
  outline: 3px solid #4F46E5; /* Indigo ring */
  outline-offset: 2px;
  transform: scale(1.1);
}

.save-avatar-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #4F46E5;
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.save-avatar-btn:hover {
  background: #3730a3;
}

.avatar-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

.avatar-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ddd;
  border-top: 4px solid #4F46E5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Success animation container */
.avatar-save-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
  font-weight: 600;
  color: #16a34a;          /* emerald-600 */
}

/* SVG sizes */
.success-check {
  width: 60px;
  height: 60px;
  stroke: #16a34a;
  stroke-width: 4;
  stroke-linecap: round;
  overflow: visible;
}

/* Green circle outline */
.success-check-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: circleDash 0.6s ease-out forwards;
}

/* Check mark */
.success-check-mark {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkDash 0.4s 0.6s ease-out forwards;
}

/* Keyframes */
@keyframes circleDash {
  to { stroke-dashoffset: 0; }
}

@keyframes checkDash {
  to { stroke-dashoffset: 0; }
}
#openSupportBtn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, #ef4444, #b91c1c);
  color: white;
  border: none;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4);
  animation: pulseBtn 1.5s infinite ease-in-out;
  transition: transform 0.2s ease;
}
.user-avatar-modal.hide {
  animation: fadeOutModal 0.3s ease forwards;
}
@keyframes fadeOutModal {
  from {
    opacity: 1;
    transform: scale(1) blur(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) blur(3px);
  }
}

.leaderboard-scroll {
  overflow: hidden;
  position: relative;
}

.leaderboard-track {
  display: flex;
  gap: 16px;
  animation: scrollLeft 30s linear infinite;
}

@keyframes scrollLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Paused state */
.leaderboard-scroll.paused .leaderboard-track {
  animation-play-state: paused;
}
.user-earnings-section {
  background: linear-gradient(to bottom right, #111, #1e293b);
  padding: 20px;
  border-radius: 16px;
  color: white;
  margin: 40px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  max-width: 100%;
  overflow: hidden;
}

.user-earnings-section h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #facc15;
}

.user-earnings-section canvas {
  width: 100% !important;
  height: 300px !important; /* fix vertical growth */
  max-height: 300px;
  display: block;
}
.earnings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #facc15;
  font-size: 1rem;
}

.usd-amount {
  font-weight: bold;
  color: #22c55e;
  font-size: 1.1rem;
}
.btc-amount {
  font-weight: normal;
  color: #60a5fa;
  margin-left: 8px;
  font-size: 0.95rem;
}
.no-earnings-msg {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  margin-top: 20px;
  display: none;
}
.chart-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  justify-content: flex-end;
}

.chart-controls button {
  background-color: transparent;
  color: #facc15;
  border: 1px solid #374151;
  padding: 8px;
  border-radius: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chart-controls button:hover {
  background-color: #374151;
  color: white;
}

#leaderboardScroll.collapsed {
  height: 48px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 12px;
  background-color: transparent;
  border-radius: 8px;
  scroll-behavior: smooth;
}

#leaderboardScroll.collapsed .investor-card {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background-color: transparent;
  border: 1px solid #444;
  border-radius: 20px;
  font-size: 13px;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
}

#leaderboardScroll.collapsed .top-investor {
  border: 2px solid orange;
  box-shadow: 0 2px 2px rgba(249, 178, 11, 0.6);
  background-color: #312e2b;
}

#leaderboardScroll.collapsed .investor-rank {
  color: #facc15;
  font-weight: bold;
}

#leaderboardScroll.collapsed .investor-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#leaderboardScroll.collapsed .photo-wrapper,
#leaderboardScroll.collapsed .investor-photo {
  display: none !important;
}
.leaderboard-header-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.leaderboard-header {
  font-size: 1.3rem;
  color: white;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.toggle-icon {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.toggle-icon.collapsed .arrow-icon {
  transform: rotate(180deg);
}

/* Leaderboard collapse animation */
.leaderboard-scroll {
  transition: max-height 0.5s ease, padding 0.3s ease;
  overflow: hidden;
  max-height: 350px;
}

.leaderboard-scroll.collapsed {
  max-height: 90px;
  padding-top: 4px;
}

#leaderboardTitle {
  font-size: 13px;
}


/* Collapse the title */
#leaderboardTitle.collapsed {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.leaderboard-toggle-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.leaderboard-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}

.arrow-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.leaderboard-toggle-btn.collapsed .arrow-icon {
  transform: rotate(180deg);
}

#leaderboardScroll {
  transition: max-height 0.5s ease, padding 0.3s ease;
  overflow: hidden;
  max-height: 360px;
}

#leaderboardScroll.collapsed {
  max-height: 90px;
  padding-top: 4px;
}

#leaderboardScroll {
  transition: max-height 0.5s ease, padding 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
  max-height: 360px; /* expanded state */
  opacity: 1;
  padding: 8px 0;
}

#leaderboardScroll.collapsed {
  max-height: 90px;  /* collapsed state height */
  padding: 4px 0;
  opacity: 0.85;     /* optional: slight dim for compact mode */
}
.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 999; /* Ensure it stays above other elements */
  background-color: #0f172a; /* Match your dark header bg */
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}
.dashboard-header.scrolled {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
@keyframes priceUp {
  0% { color: #22c55e; background-color: rgba(34,197,94,0.1); }
  100% { color: inherit; background-color: transparent; }
}

@keyframes priceDown {
  0% { color: #ef4444; background-color: rgba(239,68,68,0.1); }
  100% { color: inherit; background-color: transparent; }
}

.price-up {
  animation: priceUp 1s ease-out;
}

.price-down {
  animation: priceDown 1s ease-out;
}
.achievement-section {
  margin-top: 2rem;
  padding: 1rem;
  background: #111827;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  color: white;
  transition: all 0.3s ease-in-out;
}

.achievement-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.achievement-badges {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.badge {
  min-width: 100px;
  text-align: center;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: #1f2937;
  transition: transform 0.3s ease;
}

.badge img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.25rem;
}

.badge span {
  font-size: 0.85rem;
  color: #d1d5db;
}

.badge.earned {
  border: 2px solid #22c55e;
  background-color: #14532d;
}

.badge.locked {
  opacity: 0.4;
  filter: grayscale(100%);
  position: relative;
}

.badge.locked::after {
  content: "🔒";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 0.8rem;
  color: #f87171;
}
.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.badge {
  background: #1f2937;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  text-align: center;
  width: 130px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 0 transparent;
  opacity: 0.5;
}

.badge img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.badge span {
  color: #fff;
  font-size: 0.9rem;
}

.badge.earned {
  opacity: 1;
  border: 2px solid #22c55e;
  box-shadow: 0 0 10px #22c55e80;
  transform: scale(1.05);
}
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;

}

.badge {
  display: flex;
  align-items: center;
  background: #1f2937;
  padding: 8px 12px;
  border-radius: 8px;
  color: white;
  transition: opacity 0.3s ease;
  opacity: 0.4;
}

.badge.unlocked {
  opacity: 1;
  background: #22c55e;
}

.badge img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}
.badge-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1e293b;
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 1000;
}
.badge-toast img {
  width: 40px;
  height: 40px;
}
.badge-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (max-width: 600px) {
  .badge-list {
    flex-direction: column;
    align-items: stretch;
  }

  .badge {
    justify-content: flex-start;
    padding: 12px;
    font-size: 14px;
    width: 80%;
    align-self: center;
  }

  .badge img {
    width: 28px;
    height: 28px;
  }
}
.footer-section.feedback-section {
  margin-top: 40px;
  background: #1f2937;
  padding: 20px;
  border-radius: 12px;
  color: #fff;
}
.feedback-section textarea {
  width: 100%;
  min-height: 80px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  padding: 10px;
  font-size: 14px;
}
.feedback-section button {
  background: #22c55e;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.footer-section.newsletter-section {
  margin-top: 30px;
  background: #111827;
  padding: 20px;
  border-radius: 12px;
  color: #e5e7eb;
}
.newsletter-section input {
  width: 90%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  margin-right: 10px;
}
.newsletter-section button {
  background: #3b82f6;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
}
.legal-footer {
  text-align: center;
  padding: 20px;
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}
.footer-links a {
  color: #60a5fa;
  text-decoration: none;
}
.footer-links a:hover {
  text-decoration: underline;
}
.feedback-section {
  background: #1f2937;
  padding: 30px 20px;
  border-radius: 12px;
  color: #f3f4f6;
  text-align: center;
  margin: 50px auto 20px;
  max-width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.feedback-section h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #10b981;
}

.feedback-section p {
  font-size: 0.9em;
  margin-bottom: 20px;
  color: #d1d5db;
}

#feedbackForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#feedbackMessage {
  min-height: 100px;
  resize: vertical;
  padding: 10px;
  width: 98%;
  border-radius: 8px;
  border: none;
  background: #374151;
  color: white;
  font-size: 1em;
}

#feedbackName {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #374151;
  color: white;
  font-size: 0.9em;
}

#feedbackForm button {
  background: #10b981;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#feedbackForm button:hover {
  background: #059669;
}

#feedbackToast {
  margin-top: 10px;
  background: #22c55e;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  display: inline-block;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

#feedbackToast.show {
  opacity: 1;
}



@media (max-width: 600px) {
.newsletter-section button {
  background: #3b82f6;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  margin-top: 10px;
  border: none;
}

#feedbackMessage {
  min-height: 100px;
  resize: vertical;
  padding: 10px;
  width: 94%;
  border-radius: 8px;
  border: none;
  background: #374151;
  color: white;
  font-size: 1em;
}
}

.start-investment-btn {
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 999;
  padding: 12px 20px;
  background: linear-gradient(to right, #22c55e, #15803d);
  color: white;
  font-weight: bold;
  border-radius: 50px;
  border: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.start-investment-btn.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
}
.start-investment-btn {
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.start-investment-btn.hidden {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
}
@media (max-width: 768px) {
  .start-investment-btn {
    bottom: 80px; /* adjust if needed */
  }
}
@media (max-width: 768px) {

  .live-rates-bar {
    font-size: 8px;
    gap: 10px;
    padding: 8px;
    margin-left: 5px;
  }

  .logout-icon-wrapper {
    order: 1;
    margin-left: auto;
    margin-right: 25px;
    margin-top: 13px;
    top: 5px;
    right: 0;
    position: absolute;
  }

  .profile-container {
    order: 2;
    margin-left: auto;
    margin-right: 25px;
    margin-top: 10px;
    top: 70px;
    right: 0;
    position: absolute;
  }


  .notification-container {
    order: 3;
    margin-left: auto;
    margin-right: 90px;
    margin-top: 15px;
    top: 5px;
    right: 0;
    font-size: larger;
    position: absolute;
  }


  .verify-notice {
    order: 4;
    margin-left: auto;
    margin-right: 90px;
    margin-top: 70px;
    top: 15px;
    right: 0;
    font-size: 10px;
    position: absolute;

  }

  .notif-popup {
    width: 300px;
    height: 800px;
  }
  
  .notif-list{
    max-height: 80%;
  }

  .tab-btn{
    width: 20%;
    height: 30px;
    font-size: 8px;
  }

  .investor-photo{
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .verified-badge{
    font-size: 6px;
  }

  .greeting {
    font-size: 15px;
  }

  .photo-wrapper{
    margin-bottom: 0;
  }

  #investmentCards {
    height: 70%;
  }

  #plan-name{
    font-size: 12px;
  }

  #info{
    font-size: 12px;
  }

  #pgbar {
    width: 130px;
    height: 5px;
  }

  .log-section{
    width: 200px;
    order: 4;
    margin-left: auto;
    margin-right: 20px;
    margin-top: 50px;
    top: 55px;
    right: 0;
    font-size: 10px;
    position: absolute;
  }

  #earnbox {
    width: 200px;
    height: 50px;
    order: 4;
    margin-left: auto;
    margin-right: 20px;
    margin-top: 10px;
    top: 155px;
    right: 0;
    font-size: 10px;
    position: absolute;
  }


}

/* === SIDEBAR STYLING === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 260px;
  background-color: white;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.sidebar.show {
  transform: translateX(0);
}

.sidebar-header {
  padding: 20px;
  font-size: 22px;
  font-weight: bold;
  color: #2563eb; /* BitFidelity blue */
  border-bottom: 1px solid #eee;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 18px;
}

.sidebar-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
}

.sidebar-nav a:hover {
  color: #2563eb;
}

/* === OVERLAY === */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* === Toggle Button (header icon) === */
.nav-toggle {
  font-size: 24px;
  cursor: pointer;
  color: #333;
  margin-right: 16px;
}

/* === Hide helper class === */
.hidden {
  display: none;
}
.site-footer {
  background: #0a0a0a;
  color: #ccc;
  padding: 60px 20px 30px;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,255,204,0.05), transparent 70%);
  animation: pulseBG 8s infinite linear;
  z-index: 0;
}

@keyframes pulseBG {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(360deg) scale(1.2); }
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.footer-brand {
  flex: 1 1 250px;
  margin-bottom: 20px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 10px;
}

.footer-tagline {
  color: #aaa;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex: 2 1 400px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.link-column h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 10px;
}

.link-column a {
  display: block;
  margin-bottom: 8px;
  color: #888;
  transition: color 0.3s;
}

.link-column a:hover {
  color: #00ffcc;
}

.footer-social {
  flex: 1 1 180px;
}

.footer-social h4 {
  color: #fff;
  margin-bottom: 12px;
}

.social-icons a {
  color: #888;
  font-size: 18px;
  margin-right: 14px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #00ffcc;
}

.footer-bottom {
  border-top: 1px solid #222;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  z-index: 2;
  position: relative;
}

.footer-bottom .legal-links a {
  margin-left: 20px;
  color: #666;
  text-decoration: none;
}

.footer-bottom .legal-links a:hover {
  color: #00ffcc;
}

@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .footer-bottom .legal-links a {
    margin-left: 0;
    margin-right: 15px;
  }
}
