:root {
  --bg-main: #0a0f14;
  --bg-card: rgba(16, 24, 32, 0.75);
  --bg-card-hover: rgba(22, 34, 46, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-emerald: rgba(16, 185, 129, 0.3);
  --emerald: #10b981;
  --emerald-dark: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --danger: #ef4444;
  --blue: #3b82f6;
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --font-bn: 'Hind Siliguri', sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-bn), var(--font-en);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Helpers */
.text-emerald { color: var(--emerald); }
.text-gold { color: var(--gold); }
.text-blue { color: var(--blue); }
.text-danger { color: var(--danger); }
.font-bold { font-weight: 700; }

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #062b1e 0%, #0c3e2c 50%, #062b1e 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 0;
  font-size: 0.88rem;
  color: #a7f3d0;
}

.announcement-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-halal {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--emerald);
  color: #34d399;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--emerald) 0%, #047857 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  box-shadow: 0 4px 15px var(--emerald-glow);
}

.brand-name {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.accent-text {
  color: var(--emerald);
}

.brand-tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--emerald);
}

.btn-post-nav {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--emerald);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--emerald) !important;
}

.btn-post-nav:hover {
  background: var(--emerald);
  color: #ffffff !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.wallet-pill:hover {
  background: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 15px var(--gold-glow);
}

.wallet-amount {
  font-weight: 700;
  color: var(--gold);
}

.btn-quick-withdraw {
  background: var(--gold);
  color: #000;
  border: none;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: 4px;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.avatar {
  width: 34px;
  height: 34px;
  background: #1e293b;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: #e5e7eb;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: var(--transition);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px var(--emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  backdrop-filter: blur(10px);
}

.stat-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-en), var(--font-bn);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Halal Section */
.halal-banner-section {
  padding: 40px 0;
}

.halal-card {
  background: linear-gradient(135deg, rgba(6, 43, 30, 0.6) 0%, rgba(10, 25, 20, 0.8) 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.halal-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 36px;
}

.badge-icon {
  font-size: 2.2rem;
  color: var(--emerald);
  margin-bottom: 12px;
}

.halal-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.halal-header p {
  color: #a7f3d0;
  font-size: 0.95rem;
}

.halal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.halal-item {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 24px;
}

.halal-item i {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: block;
}

.halal-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.halal-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Tasks Marketplace */
.tasks-section {
  padding: 70px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-tag {
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.task-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
}

/* Tasks Grid */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  backdrop-filter: blur(10px);
}

.task-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-emerald);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.task-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.task-category-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.task-payout {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-en), var(--font-bn);
}

.task-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.task-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

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

.task-meta-info {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.task-meta-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-start-task {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid var(--emerald);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-start-task:hover {
  background: var(--emerald);
  color: #ffffff;
}

/* How It Works */
.how-section {
  padding: 70px 0;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  position: relative;
  text-align: center;
}

.step-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--emerald);
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #111822;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  color: #ffffff;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close-modal:hover {
  color: #ffffff;
}

.modal-body {
  padding: 24px;
}

/* Wallet Box in Modal */
.wallet-summary-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  text-align: center;
}

.summary-item .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.summary-item .value {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-en), var(--font-bn);
}

/* Payment Method Selector */
.payment-method-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.method-option input {
  display: none;
}

.method-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 6px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.method-card i {
  font-size: 1.2rem;
}

.method-option input:checked + .bkash-card {
  border-color: #e2136e;
  background: rgba(226, 19, 110, 0.15);
  color: #f472b6;
}

.method-option input:checked + .nagad-card {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
}

.method-option input:checked + .rocket-card {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group label, .form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

input[type="text"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald-glow);
}

.recent-payouts {
  margin-top: 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.recent-payouts h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.payout-list {
  list-style: none;
}

.payout-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Task Modal Specifics */
.task-meta-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge-reward {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.badge-time, .badge-slots {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.task-instructions-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.task-instructions-box h4 {
  font-size: 0.95rem;
  color: var(--emerald);
  margin-bottom: 10px;
}

.steps-content ol {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.steps-content ol li {
  margin-bottom: 6px;
}

.alert-halal-note {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #a7f3d0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #111822;
  border: 1px solid var(--emerald);
  border-left: 4px solid var(--emerald);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s ease-out;
  font-size: 0.9rem;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Footer */
.footer {
  background: #06090d;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-links h4, .footer-payment h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--emerald);
}

.payment-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.pay-badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.pay-badge.bkash { background: #e2136e; color: #fff; }
.pay-badge.nagad { background: #f97316; color: #fff; }
.pay-badge.rocket { background: #8b5cf6; color: #fff; }

.copy-text {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.3rem; }
  .nav-links { display: none; }
  .footer-content { grid-template-columns: 1fr; gap: 30px; }
  .tasks-grid { grid-template-columns: 1fr; }
}
