/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #e91e8c;
  --secondary: #7c3aed;
  --accent: #f97316;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --bg: #f4f6fb;
  --white: #ffffff;
  --text-dark: #1e1e2e;
  --text-muted: #6b7280;
  --nav-height: 64px;
  --bottom-nav-height: 68px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

body.sidebar-open {
  overflow: hidden;
}

.bg-warning{
    background: linear-gradient(135deg, #e91e8c 0%, #9c27b0 50%, #7c3aed 100%)!important;
}

.btn-warning{
    background: linear-gradient(135deg, #e91e8c 0%, #9c27b0 50%, #7c3aed 100%);
    color: #fff;
    border: 1px solid #fff !important;
}

.text-warning{
    color: #9c27b0!important;
}

/* =============================================
   TOP NAVBAR
   ============================================= */
.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: linear-gradient(135deg, #e91e8c 0%, #9c27b0 50%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 20px rgba(124, 58, 237, 0.35);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hamburger-btn:hover {
  background: rgba(255,255,255,0.25);
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,140,0,0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.brand-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notif-btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  transition: background 0.2s;
}
.notif-btn:hover {
  background: rgba(255,255,255,0.25);
}
.badge-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  background: #ffd700;
  color: #1e1e2e;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
}

.avatar-wrap {
  position: relative;
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.7);
  object-fit: cover;
}
.online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1200;
  transition: left 0.3s ease;
  box-shadow: 4px 0 30px rgba(0,0,0,0.15);
  overflow-y: auto;
}
.sidebar.open {
  left: 0;
}

.sidebar-header {
  background: linear-gradient(135deg, #e91e8c, #7c3aed);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-menu {
  list-style: none;
  padding: 12px 0;
}
.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  color: #374151;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.sidebar-menu li a i {
  width: 20px;
  color: #7c3aed;
  font-size: 16px;
}
.sidebar-menu li:hover a,
.sidebar-menu li.active a {
  background: linear-gradient(90deg, rgba(124,58,237,0.1), transparent);
  color: #7c3aed;
  border-left: 3px solid #7c3aed;
}

/* Toast */
.toast{
    position:fixed;
    bottom:30px;
    right:30px;
    background:#22c55e;
    color:white;
    padding:14px 20px;
    border-radius:10px;
    box-shadow:0 8px 20px rgba(0,0,0,0.15);
    font-size:15px;
    opacity:0;
    transform:translateY(20px);
    transition:all 0.3s ease;
    pointer-events:none;
}

.toast.show{
    opacity:1;
    transform:translateY(0);
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  margin-top: var(--nav-height);
  padding: 16px;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .main-content {
    max-width: 960px;
    padding: 24px;
  }
}

.card-shadow {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* =============================================
   WELCOME BANNER
   ============================================= */
.welcome-banner {
  background: linear-gradient(135deg, #e91e8c 0%, #9c27b0 55%, #7c3aed 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
  min-height: 130px;
}
.welcome-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.07);
  border-radius: 50%;
}
.welcome-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 30%;
  width: 140px;
  height: 140px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.welcome-text {
  z-index: 1;
}
.welcome-line {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}
.user-name {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}
.member-badge {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1e1e2e;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(255,140,0,0.5);
}
.member-badge i {
  color: #fff;
  font-size: 11px;
}

.banner-illustration {
  z-index: 1;
  flex-shrink: 0;
}
.coin-stack {
  position: relative;
  width: 110px;
  height: 100px;
}
.coin {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.4);
}
.c1 {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  bottom: 0; left: 10px;
  box-shadow: 0 4px 12px rgba(255,140,0,0.6);
}
.c2 {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  bottom: 20px; left: 30px;
  box-shadow: 0 4px 10px rgba(251,191,36,0.5);
}
.c3 {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  bottom: 40px; left: 50px;
}
.arrow-up {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 32px;
  color: #4ade80;
  filter: drop-shadow(0 2px 6px rgba(74,222,128,0.6));
  animation: bounce 1.5s ease-in-out infinite;
}
.wallet-icon {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 36px;
  color: #a78bfa;
  filter: drop-shadow(0 2px 8px rgba(167,139,250,0.6));
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* =============================================
   BALANCE CARD
   ============================================= */
.balance-card {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 14px;
  gap: 0;
}

.balance-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.balance-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}
.icon-red {
  background: linear-gradient(135deg, #f43f5e, #e91e8c);
  box-shadow: 0 4px 12px rgba(244,63,94,0.4);
}
.icon-green {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16,185,129,0.4);
}

.balance-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}
.balance-amount {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #e91e8c;
  line-height: 1;
}
.income-green {
  color: #10b981 !important;
}
.taka {
  font-size: 16px;
}

.divider-v {
  width: 1px;
  height: 50px;
  background: #e5e7eb;
  flex-shrink: 0;
  margin: 0 10px;
}

/* =============================================
   QUICK ACTIONS
   ============================================= */
.quick-actions {
  padding: 20px 16px;
  margin-bottom: 14px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.action-item span {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-align: center;
}

.action-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.action-item:hover .action-icon {
  transform: translateY(-3px);
}

.a-red    { background: linear-gradient(135deg, #f43f5e, #e91e8c); box-shadow: 0 4px 12px rgba(244,63,94,0.4); }
.a-green  { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 12px rgba(16,185,129,0.4); }
.a-orange { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 4px 12px rgba(249,115,22,0.4); }
.a-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 12px rgba(59,130,246,0.4); }
.a-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 4px 12px rgba(139,92,246,0.4); }

/* =============================================
   STATS GRID
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.stat-purple { background: linear-gradient(135deg, #7c3aed, #9c27b0); }
.stat-red    { background: linear-gradient(135deg, #ef4444, #e91e8c); }
.stat-green  { background: linear-gradient(135deg, #10b981, #059669); }
.stat-blue   { background: linear-gradient(135deg, #3b82f6, #06b6d4); }

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.taka-sm {
  font-size: 18px;
}
.stat-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}
.stat-icon {
  font-size: 44px;
  color: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* =============================================
   QUICK ACCESS
   ============================================= */
.quick-access-section {
  margin-bottom: 14px;
}
.section-title {
  font-size: 17px;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lightning {
  color: #f59e0b;
}

.quick-access-grid {
  padding: 18px 12px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 4px;
}

.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.qa-item span {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  text-align: center;
}
.qa-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.qa-item:hover .qa-icon {
  transform: translateY(-3px);
}

.qa-purple  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); box-shadow: 0 3px 10px rgba(139,92,246,0.4); }
.qa-pink    { background: linear-gradient(135deg, #ec4899, #e91e8c); box-shadow: 0 3px 10px rgba(236,72,153,0.4); }
.qa-yellow  { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 3px 10px rgba(245,158,11,0.4); }
.qa-teal    { background: linear-gradient(135deg, #14b8a6, #0891b2); box-shadow: 0 3px 10px rgba(20,184,166,0.4); }
.qa-green2  { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 3px 10px rgba(34,197,94,0.4); }
.qa-orange2 { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 3px 10px rgba(249,115,22,0.4); }
.qa-blue2   { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 3px 10px rgba(59,130,246,0.4); }
.qa-emerald { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 3px 10px rgba(16,185,129,0.4); }
.qa-rose    { background: linear-gradient(135deg, #f43f5e, #dc2626); box-shadow: 0 3px 10px rgba(244,63,94,0.4); }
.qa-indigo  { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 3px 10px rgba(99,102,241,0.4); }

/* =============================================
   EARN BANNER
   ============================================= */
.earn-banner {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.earn-banner::before {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 40%;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.earn-text {
  z-index: 1;
}
.earn-text h4 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.earn-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  font-weight: 400;
}

.invite-btn {
  background: #fff;
  color: #f97316;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.invite-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  color: #ea580c;
}

.earn-img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  z-index: 1;
  flex-shrink: 0;
}

/* =============================================
   BOTTOM NAVIGATION
   ============================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
  z-index: 900;
  padding: 0 8px;
  border-radius: 0;
}

.bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  cursor: pointer;
  padding: 10px 6px;
  color: #9ca3af;
  transition: color 0.2s;
}
.bn-item i {
  font-size: 20px;
}
.bn-item span {
  font-size: 10px;
  font-weight: 600;
}
.bn-item.active {
  color: #e91e8c;
}

.bn-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.bn-home {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #e91e8c, #9c27b0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(233,30,140,0.5);
  margin-top: -28px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 4px solid #fff;
}
.bn-home:hover {
  transform: scale(1.1);
}

/* =============================================
   RIPPLE EFFECT
   ============================================= */
.ripple-effect {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(124,58,237,0.15);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
  top: 50%;
  left: 50%;
  margin-left: -30px;
  margin-top: -30px;
}
@keyframes ripple {
  to { transform: scale(2.5); opacity: 0; }
}

/* =============================================
   DESKTOP LAYOUT (>=992px)
   ============================================= */
@media (min-width: 992px) {
  .main-content {
    margin-top: var(--nav-height);
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 40px;
  }

  .bottom-nav {
    display: none;
  }

  .top-navbar {
    padding: 0 32px;
  }

  .welcome-banner {
    padding: 32px 36px;
    min-height: 160px;
  }
  .user-name {
    font-size: 30px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .action-grid {
    justify-items: center;
  }

  .quick-access-grid {
    grid-template-columns: repeat(10, 1fr);
  }

  .stat-value {
    font-size: 30px;
  }

  .balance-amount {
    font-size: 24px;
  }
}

/* =============================================
   TABLET (768–991px)
   ============================================= */
@media (min-width: 768px) and (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-access-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .action-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .main-content {
    padding: 20px;
  }
}

/* =============================================
   SMALL MOBILE (<380px)
   ============================================= */
@media (max-width: 380px) {
  .action-icon {
    width: 48px;
    height: 48px;
    font-size: 18px;
    border-radius: 12px;
  }
  .action-item span {
    font-size: 10px;
  }
  .qa-icon {
    width: 42px;
    height: 42px;
    font-size: 17px;
  }
  .qa-item span {
    font-size: 10px;
  }
  .user-name {
    font-size: 20px;
  }
  .stat-value {
    font-size: 22px;
  }
  .balance-amount {
    font-size: 17px;
  }
  .earn-img {
    width: 80px;
  }
}

/* =============================================
   SMOOTH TRANSITIONS
   ============================================= */
.action-item,
.qa-item,
.stat-card,
.invite-btn {
  transition: transform 0.2s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#e91e8c, #7c3aed);
  border-radius: 10px;
}
