:root {
  --bg-color: #1a1208;
  --card-gold: #b8862b;
  --card-blue: #452f03;
  --card-purple: #714c05;
  --card-dark: rgba(255, 255, 255, 0.08);
  --text-light: #ffffff;
  --text-muted: #cfcfcf;
}

/* ================= GLOBAL ================= */
.dash-container {
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-color);
  min-height: 100vh;
  color: var(--text-light);
}

/* ================= HEADER ================= */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.dash-stream-logo {
  height: 35px;
}

.dash-support-icon {
  width: 45px;
  height: 45px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
}

.dash-support-icon i {
  font-size: 22px;
  color: #1a1208;
}

/* ================= PROFILE ================= */
.dash-profile {
  background: #fff;
  padding: 18px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: #000;
}

.dash-welcome-msg h2 {
  margin: 0;
  font-size: 15px;
  color: #777;
}

.dash-welcome-msg p {
  margin: 2px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.dash-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.dash-status-inactive {
  background: #ffe3e3;
  color: #c62828;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 800;
  cursor: pointer;
}

/* ================= WALLET (FIXED STACK) ================= */
.dash-wallet-stack {
  position: relative;
  height: 380px; /* IMPORTANT: gives enough space */
  margin-top: 10px;
  margin-bottom: 20px;
}

/* BASE CARD STYLE */
.dash-wallet-card {
  position: absolute;
  width: 100%;
  border-radius: 25px;
  padding: 20px;
  color: #fff;
  box-sizing: border-box;
  transition: 0.3s ease;
}

/* ================= CARD 1 ================= */
.dash-c-reward {
  background: linear-gradient(135deg, #b8862b, #d4a63a);
  top: 0;
  height: 170px;
  z-index: 1;
}

/* ================= CARD 2 ================= */
.dash-c-task {
  background: linear-gradient(135deg, #2f6f6d, #3fa8a3);
  top: 55px;
  height: 170px;
  z-index: 2;
}

/* ================= CARD 3 (BIGGEST) ================= */
.dash-c-total {
  background: linear-gradient(135deg, #5a4aa3, #7a66d6);
  top: 110px;
  height: 210px;
  z-index: 3;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

/* ================= TEXT ================= */
.dash-card-title {
  font-size: 12px;
  opacity: 0.9;
}

.dash-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

/* LEFT VALUE */
.dash-card-value {
  font-size: 18px;
  font-weight: 700;
}

/* BIG VALUE (LAST CARD) */
.dash-card-value-big {
  font-size: 26px;
  font-weight: 800;
}

/* RIGHT ACTION (WITHDRAW) */
.dash-action-text {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ================= ALERT ================= */
.dash-activation-alert {
  background: rgba(255, 193, 7, 0.12);
  padding: 15px;
  border-radius: 15px;
  border: 1px dashed #ffc107;
  text-align: center;
  margin-bottom: 25px;
}

.dash-activation-alert p {
  font-size: 13px;
  color: var(--text-muted);
}

.dash-activation-alert button {
  background: #ffc107;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* ================= ACTION GRID ================= */
.dash-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.dash-action-item {
  background: #fff;
  color: #000;
  padding: 15px 10px;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: 0.2s;
}

.dash-action-item:hover {
  transform: translateY(-3px);
}

.dash-action-item i {
  font-size: 26px;
  margin-bottom: 8px;
}

.dash-action-item p {
  font-size: 11px;
}

/* ================= MODAL (IMPROVED POP STYLE) ================= */
.dash-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.dash-modal-box {
  background: #fff;
  width: 85%;
  max-width: 380px;
  padding: 25px;
  border-radius: 22px;
  text-align: center;
  animation: pop 0.25s ease;
}

.dash-modal-box h3 {
  margin-bottom: 10px;
}

.dash-modal-box::before {
  content: "🔔";
  font-size: 28px;
  display: block;
  margin-bottom: 10px;
}

@keyframes pop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= NAV ================= */
.dash-bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #452f03;
  padding: 12px 0;
  display: flex;
  justify-content: space-around;
  z-index: 9000;
}

.dash-nav-item {
  color: white;
  font-size: 12px;
  text-align: center;
}

/* ================= NOTIFICATION ================= */
.dash-stream-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);

  width: 92%;
  max-width: 380px;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);

  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 12px 14px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 10001;
}

.dash-stream-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

.dash-live-tag {
  position: absolute;
  top: -8px;
  left: 14px;
  background: red;
  color: white;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 5px;
}

.dash-notif-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
}

.dash-notif-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-stream-notification strong {
  font-size: 13px;
  color: #1a1208;
}

.dash-stream-notification p {
  font-size: 11px;
  color: #555;
}

.dash-join-btn {
  background: #1a1208;
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
/* FIX CARD LAYOUT POSITIONING */
.dash-wallet-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* pushes bottom section down */
}

/* BOTTOM SECTION */
.dash-wallet-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto; /* forces it to bottom */
}

/* BIG CARD SPECIAL ALIGNMENT */
.dash-wallet-bottom.large {
  margin-top: auto;
  padding-top: 25px;
}

/* WITHDRAW BUTTON */
.dash-action-text {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.dash-action-text:hover {
  transform: scale(1.05);
}
/* ================= BOTTOM NAV FIX ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-around;
  align-items: center;

  background: #452f03;
  padding: 10px 0;

  z-index: 9999;
}

.nav-item {
  color: white;
  text-decoration: none;
  font-size: 11px;
  text-align: center;
}

.nav-item i {
  font-size: 18px;
  display: block;
  margin-bottom: 3px;
}

.nav-item.active {
  color: #f4a622;
}
.firt-c {
  display: flex;
  align-items: center;
  gap: 5px;
}

.popup-card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  width: 300px;
  animation: pop 0.3s ease-in-out;
}

.popup-card img {
  width: 100%;
  border-radius: 12px;
}

.close-btn {
  margin-top: 15px;
  padding: 10px 15px;
  border: none;
  background: green;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

@keyframes pop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
