/* assets/css/style.css - EARNCLICK Primary Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #060913;
  --bg-app: #080e1e;
  --bg-card: #0e172e;
  --bg-card-glass: rgba(14, 23, 46, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  
  --color-primary: #6366f1;
  --color-gold: #facc15;
  --color-gold-dark: #ca8a04;
  --color-green: #10b981;
  --color-green-light: #34d399;
  --color-blue: #3b82f6;
  --color-purple: #8b5cf6;
  --color-amber: #f59e0b;
  --color-pink: #ec4899;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --font-bangla: 'Hind Siliguri', sans-serif;
  --font-en: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
  --shadow-glow-green: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Base & Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-bangla);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  overflow-x: hidden;
}

/* App Container Wrapper */
.app-wrapper {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: var(--bg-app);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 100px rgba(79, 70, 229, 0.1);
  display: flex;
  flex-direction: column;
  padding-bottom: 85px; /* Space for bottom nav */
}

@media (min-width: 768px) {
  body {
    padding: 20px 0;
    background: radial-gradient(circle at 50% 20%, #151238 0%, #060913 70%);
  }
  .app-wrapper {
    border-radius: 36px;
    border: 8px solid #1a2238;
    overflow: hidden;
    min-height: 94vh;
  }
}

/* Typography Helpers */
.font-en {
  font-family: var(--font-en);
}
.font-bn {
  font-family: var(--font-bangla);
}

/* Top App Bar Header */
.app-header {
  height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 14, 30, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  position: relative;
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-btn .badge-count {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-en);
  width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-app);
}

.header-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-page-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-bangla);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo-img {
  height: 38px;
  width: auto;
}

/* Main Content Area */
.app-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Hero Promo Banner (Image 1 Style) */
.hero-promo-card {
  position: relative;
  background: linear-gradient(135deg, #150936 0%, #2e1065 40%, #4c1d95 80%, #581c87 100%);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: var(--shadow-card), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  min-height: 108px;
}

.hero-left-art {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
}

.hero-center-text {
  flex: 1;
  text-align: center;
  padding: 0 6px;
}

.hero-center-text h2 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.scroll-down-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #c4b5fd;
  margin-top: 5px;
  font-family: var(--font-en);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero-right-art {
  width: 75px;
  height: 65px;
  flex-shrink: 0;
}

/* Available Balance Card */
.balance-card {
  background: linear-gradient(145deg, #0e172e 0%, #0a1122 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 16px 14px 16px;
  position: relative;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.balance-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.balance-info-left {
  display: flex;
  flex-direction: column;
}

.balance-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.eye-toggle-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0;
  transition: color 0.2s ease;
}
.eye-toggle-btn:hover {
  color: #fff;
}

.balance-usd-amount {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-en);
  margin-top: 4px;
  letter-spacing: 0.5px;
}

.balance-bdt-amount {
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
  font-family: var(--font-bangla);
  margin-top: 2px;
}

.balance-art-right {
  width: 105px;
  height: 85px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.balance-art-right img, .balance-art-right svg {
  width: 100%;
  height: auto;
  max-height: 85px;
  object-fit: contain;
}

/* Deposit & Withdraw Buttons Row */
.balance-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-balance-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-en);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-deposit {
  background: #0d1e29;
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}
.btn-deposit:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-withdraw {
  background: #181333;
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
}
.btn-withdraw:hover {
  background: #8b5cf6;
  color: #ffffff;
  border-color: #8b5cf6;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Feature Action Gradient Cards (5 Main Action Buttons) */
.action-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.action-card:hover {
  transform: translateY(-2px);
}

.card-bg-green {
  background: linear-gradient(135deg, #044b36 0%, #065f46 35%, #059669 70%, #10b981 100%);
}
.card-bg-green:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.card-bg-blue {
  background: linear-gradient(135deg, #0d285c 0%, #1e3a8a 35%, #1d4ed8 70%, #3b82f6 100%);
}
.card-bg-blue:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.card-bg-purple {
  background: linear-gradient(135deg, #240c4a 0%, #4c1d95 35%, #581c87 70%, #7c3aed 100%);
}
.card-bg-purple:hover {
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
}

.card-bg-amber {
  background: linear-gradient(135deg, #4f2503 0%, #78350f 35%, #92400e 70%, #d97706 100%);
}
.card-bg-amber:hover {
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.35);
}

.card-bg-pink {
  background: linear-gradient(135deg, #4f0823 0%, #831843 35%, #9d174d 70%, #db2777 100%);
  flex-direction: column;
  align-items: stretch;
  padding: 14px 16px 12px 16px;
}
.card-bg-pink:hover {
  box-shadow: 0 8px 25px rgba(219, 39, 119, 0.35);
}

.card-content-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.card-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-text-box h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.card-text-box p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 3px;
  line-height: 1.25;
}

.card-right-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease;
}

.action-card:hover .card-right-btn {
  background: rgba(255, 255, 255, 0.3);
}

/* Sub-review banner on Pink Card */
.pink-card-sub-pill {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #fbcfe8;
  font-weight: 500;
}

.pink-sub-arrow {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: #db2777;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
}

/* ====================================================
   REFERRAL PAGE STYLES (MATCHING IMAGE 2 EXACTLY)
   ==================================================== */
.refer-hero-card {
  position: relative;
  background: linear-gradient(135deg, #160a38 0%, #2e1065 40%, #431407 100%);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  min-height: 135px;
}

.refer-hero-text {
  flex: 1;
  padding-right: 8px;
}

.refer-hero-text h2 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
}

.refer-hero-text p {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.35;
}

.refer-hero-text .highlight-amt {
  color: #4ade80;
  font-weight: 700;
  font-family: var(--font-en);
}

.refer-hero-text .highlight-comm {
  color: #facc15;
  font-weight: 700;
  font-family: var(--font-en);
  display: block;
  margin-top: 4px;
}

.refer-hero-art {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.refer-hero-art svg, .refer-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Referral Link Input Box Card */
.refer-link-card {
  background: #0b1328;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.refer-link-card .card-heading {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 10px;
}

.refer-input-group {
  display: flex;
  align-items: center;
  background: #060a17;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-md);
  padding: 4px 6px 4px 12px;
  gap: 8px;
}

.refer-link-text {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-en);
  font-size: 13px;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-copy-link {
  background: #4f46e5;
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-bangla);
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.btn-copy-link:hover {
  background: #4338ca;
}

.refer-hint-text {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Referral Commission Details List Card */
.commission-details-card {
  background: #0b1328;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.commission-details-card .card-heading {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 12px;
}

.comm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.comm-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.comm-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.comm-icon-green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.comm-icon-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.comm-text h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}
.comm-text span {
  font-size: 11px;
  color: #94a3b8;
}

.comm-amt-green {
  font-size: 15px;
  font-weight: 700;
  color: #34d399;
  font-family: var(--font-en);
}
.comm-amt-blue {
  font-size: 15px;
  font-weight: 700;
  color: #60a5fa;
  font-family: var(--font-en);
}

/* 4-Grid Referral Statistics */
.refer-stats-card {
  background: #0b1328;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.refer-stats-card .card-heading {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 12px;
}

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

.stat-box {
  border-radius: var(--radius-md);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stat-box-blue {
  background: #092042;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.stat-box-green {
  background: #072a24;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.stat-box-amber {
  background: #2e1e07;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.stat-box-purple {
  background: #241142;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.stat-box-icon {
  font-size: 16px;
  margin-bottom: 4px;
}
.stat-box-blue .stat-box-icon { color: #60a5fa; }
.stat-box-green .stat-box-icon { color: #34d399; }
.stat-box-amber .stat-box-icon { color: #fbbf24; }
.stat-box-purple .stat-box-icon { color: #c084fc; }

.stat-box-title {
  font-size: 10.5px;
  color: #cbd5e1;
  margin-bottom: 4px;
  white-space: nowrap;
}

.stat-box-value {
  font-size: 15px;
  font-weight: 800;
  font-family: var(--font-en);
}
.stat-box-blue .stat-box-value { color: #ffffff; }
.stat-box-green .stat-box-value { color: #34d399; }
.stat-box-amber .stat-box-value { color: #fbbf24; }
.stat-box-purple .stat-box-value { color: #c084fc; }

/* Recent Referrals Card */
.recent-referrals-card {
  background: #0b1328;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-header-flex .card-heading {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
}

.link-see-all {
  font-size: 12px;
  color: #818cf8;
  text-decoration: none;
  font-weight: 600;
}
.link-see-all:hover {
  text-decoration: underline;
}

.ref-user-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ref-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ref-user-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ref-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #e2e8f0;
  font-family: var(--font-en);
}

.ref-details h5 {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}
.ref-details span {
  font-size: 11px;
  color: #64748b;
  font-family: var(--font-en);
}

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

.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-en);
  font-weight: 600;
}

.badge-buyer {
  background: rgba(139, 92, 246, 0.15);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-family: var(--font-en);
  font-weight: 600;
}

.ref-reward-col {
  text-align: right;
}
.ref-reward-amt {
  font-size: 13px;
  font-weight: 700;
  color: #34d399;
  font-family: var(--font-bangla);
}
.ref-reward-time {
  font-size: 10px;
  color: #64748b;
  display: block;
}

/* How it works workflow (4 Circles) */
.how-it-works-card {
  background: #0b1328;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.how-it-works-card .card-heading {
  font-size: 14px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 16px;
}

.workflow-steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 22%;
  position: relative;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.step-circle-1 { background: #1d4ed8; color: #fff; }
.step-circle-2 { background: #059669; color: #fff; }
.step-circle-3 { background: #7c3aed; color: #fff; }
.step-circle-4 { background: #d97706; color: #fff; }

.step-title {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.25;
  margin-bottom: 2px;
}

.step-desc {
  font-size: 9.5px;
  color: #94a3b8;
  line-height: 1.2;
}

.step-connector-arrow {
  color: #475569;
  font-size: 14px;
  margin-top: 10px;
}

/* ====================================================
   BOTTOM NAVIGATION BAR
   ==================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: 68px;
  background: rgba(8, 14, 30, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  z-index: 50;
}

@media (min-width: 768px) {
  .bottom-nav {
    border-radius: 0 0 28px 28px;
  }
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #94a3b8;
  gap: 3px;
  transition: all 0.2s ease;
}

.nav-item .nav-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.nav-item .nav-label {
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font-en);
}

.nav-item.active {
  color: #38bdf8;
}

.nav-item.active .nav-icon {
  transform: translateY(-2px);
  color: #38bdf8;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

/* Side Drawer Menu */
.side-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.side-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.side-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 290px;
  height: 100%;
  background: #0a1124;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 101;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
}
.side-drawer.active {
  left: 0;
}

.drawer-header {
  padding: 24px 20px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.drawer-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.drawer-phone {
  font-size: 12px;
  color: #c7d2fe;
  font-family: var(--font-en);
}

.drawer-nav-list {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.drawer-nav-link:hover, .drawer-nav-link.active {
  background: rgba(99, 102, 241, 0.15);
  color: #ffffff;
}

.drawer-nav-link i, .drawer-nav-link span.icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 200;
  white-space: nowrap;
}
.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Standard Buttons & Forms */
.form-group {
  margin-bottom: 14px;
}
.form-label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  background: #090f20;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #ffffff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-primary-action {
  width: 100%;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border: none;
  color: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  transition: all 0.2s ease;
}
.btn-primary-action:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  transform: translateY(-1px);
}

.alert-box {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
/* ====================================================
   ENHANCED MODERN TASK PAGE & TASK VIEWER STYLES
   ==================================================== */
.task-header-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.task-stat-card {
  background: linear-gradient(135deg, rgba(15, 28, 63, 0.9) 0%, rgba(30, 27, 75, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.task-stat-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, transparent 70%);
}

.task-filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.task-filter-chips::-webkit-scrollbar {
  display: none;
}

.task-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: #0b1429;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.task-chip.active, .task-chip:hover {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
}

.modern-task-item {
  background: linear-gradient(145deg, #0d172e 0%, #0a1020 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
}

.modern-task-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.15);
}

.task-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.icon-bg-web {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.4));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.icon-bg-video {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.4));
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.icon-bg-social {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(147, 51, 234, 0.4));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.task-meta-col {
  flex: 1;
}

.task-title-text {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.task-desc-text {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.25;
}

.task-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.task-reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 14px;
  font-weight: 800;
  font-family: var(--font-bangla);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.task-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #cbd5e1;
  font-family: var(--font-en);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.btn-task-action {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-task-action:hover {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-task-done {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

