/* ============================================================
   SATURDAY - EARN MONEY PLATFORM
   Main Stylesheet | Dark Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #15151e;
  --bg-card-hover: #1c1c28;
  --bg-input: #1a1a24;
  --border: #2a2a3a;
  --border-light: #333344;

  --gold: #f5c842;
  --gold-light: #ffd966;
  --gold-dark: #c9a227;
  --gold-glow: rgba(245, 200, 66, 0.15);

  --green: #22c55e;
  --green-dark: #16a34a;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --orange: #f97316;

  --text-primary: #f0f0f5;
  --text-secondary: #9999aa;
  --text-muted: #55556a;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 30px rgba(245,200,66,0.2);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --header-h: 64px;
  --nav-h: 64px;
  --sidebar-w: 280px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, textarea, select { font-family: var(--font-body); outline: none; }

ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

/* ── Utility Classes ── */
.hidden { display: none !important; }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.fw-bold { font-weight: 700; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── LOGO ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px var(--gold-glow);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--text-primary);
}

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.header-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.header-right { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 18px;
  transition: var(--transition);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.menu-btn:hover { background: var(--bg-card-hover); border-color: var(--gold); color: var(--gold); }

.header-balance {
  background: linear-gradient(135deg, var(--gold-glow), transparent);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── SIDEBAR / DRAWER ── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.sidebar-overlay.open { opacity: 1; visibility: visible; }

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--sidebar-w);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  z-index: 201;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
}

.sidebar-close {
  width: 32px;
  height: 32px;
  background: var(--bg-input);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: var(--transition);
}

.sidebar-close:hover { background: var(--red); color: white; }

.sidebar-profile {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--bg-primary);
  font-family: var(--font-heading);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--gold-dark);
}

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

.sidebar-user-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.sidebar-user-phone { font-size: 12px; color: var(--text-muted); }
.sidebar-balance-badge {
  background: var(--gold-glow);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 4px;
  display: inline-block;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  color: var(--gold);
  background: var(--gold-glow);
  border-left-color: var(--gold);
}

.sidebar-nav a .nav-icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-nav .nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 20px;
}

.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }

/* ── BOTTOM NAVIGATION ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(17, 17, 24, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.bottom-nav-item .nav-icon-wrap {
  width: 40px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 20px;
  transition: var(--transition);
}

.bottom-nav-item.active .nav-icon-wrap {
  background: var(--gold-glow);
}

.bottom-nav-item.active {
  color: var(--gold);
}

.bottom-nav-item:hover { color: var(--gold); }

/* ── MAIN CONTENT ── */
.main {
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: calc(var(--nav-h) + 20px);
  min-height: 100vh;
}

.page { padding: 0 16px; max-width: 480px; margin: 0 auto; }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.card:hover { border-color: var(--border-light); }

.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── WELCOME BANNER ── */
.welcome-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  border-radius: 50%;
}

.welcome-banner-tag {
  background: var(--gold-glow);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 12px;
}

.welcome-banner h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.welcome-banner p { color: var(--text-secondary); font-size: 14px; }

/* ── BALANCE CARD ── */
.balance-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a2e 100%);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

.balance-card::after {
  content: '৳';
  position: absolute;
  right: -10px;
  top: -20px;
  font-size: 100px;
  font-weight: 900;
  color: rgba(245, 200, 66, 0.05);
  font-family: var(--font-heading);
}

.balance-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.balance-amount { font-size: 40px; font-weight: 800; color: var(--gold); font-family: var(--font-heading); line-height: 1; margin-bottom: 16px; }
.balance-amount span { font-size: 20px; }
.balance-stats { display: flex; gap: 20px; }
.balance-stat { flex: 1; }
.balance-stat-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.balance-stat-value { font-size: 15px; font-weight: 700; color: var(--text-primary); }

/* ── STATUS BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-warning { background: rgba(245, 200, 66, 0.15); color: var(--gold); border: 1px solid rgba(245, 200, 66, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--red); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--blue); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-purple { background: rgba(139, 92, 246, 0.15); color: var(--purple); border: 1px solid rgba(139, 92, 246, 0.3); }

/* ── VIP BADGE ── */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vip-0 { background: rgba(85,85,106,0.2); color: var(--text-muted); border: 1px solid var(--border); }
.vip-1 { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.vip-2 { background: rgba(59,130,246,0.15); color: var(--blue); border: 1px solid rgba(59,130,246,0.3); }
.vip-3 { background: rgba(139,92,246,0.15); color: var(--purple); border: 1px solid rgba(139,92,246,0.3); }
.vip-4 { background: rgba(245,200,66,0.15); color: var(--gold); border: 1px solid rgba(245,200,66,0.3); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn:hover::after { background: rgba(255,255,255,0.05); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg-primary);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 200, 66, 0.3);
}

.btn-primary:hover { box-shadow: 0 6px 30px rgba(245, 200, 66, 0.5); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

.btn-danger { background: var(--red); color: white; }
.btn-success { background: var(--green); color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 14px;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--gold);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-control::placeholder { color: var(--text-muted); }

.form-control-icon {
  position: relative;
}

.form-control-icon .form-control { padding-left: 44px; }
.form-control-icon .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.form-error { color: var(--red); font-size: 12px; margin-top: 6px; }
.form-hint { color: var(--text-muted); font-size: 12px; margin-top: 6px; }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

/* ── TASK CARD ── */
.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  transition: var(--transition);
}

.task-card:hover { border-color: var(--border-light); }

.task-card-header {
  padding: 16px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.task-type-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.task-type-youtube { background: rgba(255, 0, 0, 0.15); }
.task-type-tiktok { background: rgba(0, 255, 255, 0.1); }
.task-type-telegram { background: rgba(0, 136, 204, 0.15); }
.task-type-website { background: rgba(245, 200, 66, 0.1); }

.task-info { flex: 1; }
.task-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.4; }
.task-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

.task-reward {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-heading);
  flex-shrink: 0;
  text-align: right;
}

.task-reward span { font-size: 11px; color: var(--text-muted); display: block; font-family: var(--font-body); font-weight: 400; }

.task-card-body { padding: 0 16px 12px; }

.task-embed {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-input);
  margin-bottom: 12px;
  min-height: 200px;
}

.task-embed iframe { width: 100%; height: 220px; border: none; display: block; }

.task-link-preview {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  word-break: break-all;
}

.task-timer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.task-timer.ready { color: var(--green); font-weight: 600; }

.task-card-footer { padding: 12px 16px 16px; border-top: 1px solid var(--border); }

.task-completed-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: var(--radius-md);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

/* ── VIP CARDS ── */
.vip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }

.vip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.vip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.vip-card.v1::before { background: var(--green); }
.vip-card.v2::before { background: var(--blue); }
.vip-card.v3::before { background: var(--purple); }
.vip-card.v4::before { background: linear-gradient(90deg, var(--gold), var(--gold-dark)); }

.vip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.vip-card-level {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.vip-card-price {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.vip-card-tasks { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.vip-card-tasks strong { color: var(--text-primary); }

/* ── HISTORY LIST ── */
.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.history-item:last-child { border-bottom: none; }

.history-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.history-icon.credit { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.history-icon.debit { background: rgba(239, 68, 68, 0.15); color: var(--red); }

.history-info { flex: 1; }
.history-desc { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.history-date { font-size: 11px; color: var(--text-muted); }

.history-amount { font-size: 15px; font-weight: 700; font-family: var(--font-heading); }
.history-amount.credit { color: var(--green); }
.history-amount.debit { color: var(--red); }

/* ── TEAM/REFERRAL ── */
.referral-link-box {
  background: var(--bg-input);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.referral-link-text {
  flex: 1;
  font-size: 12px;
  color: var(--gold);
  word-break: break-all;
  font-family: monospace;
}

.referral-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.referral-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.referral-stat-number { font-size: 28px; font-weight: 800; color: var(--gold); font-family: var(--font-heading); }
.referral-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.team-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.team-member:last-child { border-bottom: none; }

.team-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), #8b6c1f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--bg-primary);
  flex-shrink: 0;
}

/* ── PAYMENT METHOD ── */
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }

.payment-method-btn {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.payment-method-btn:hover { border-color: var(--gold); background: var(--gold-glow); }
.payment-method-btn.selected { border-color: var(--gold); background: var(--gold-glow); }
.payment-method-btn .pm-icon { font-size: 32px; }
.payment-method-btn .pm-name { font-size: 15px; font-weight: 700; }
.payment-method-btn .pm-color-bkash { color: #e2136e; }
.payment-method-btn .pm-color-nagad { color: #f6821f; }

/* ── ALERTS ── */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }
.alert-warning { background: rgba(245,200,66,0.1); border: 1px solid rgba(245,200,66,0.3); color: var(--gold); }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: var(--blue); }

/* ── TOAST ── */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + 10px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 32px);
  max-width: 440px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: all;
}

.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
.toast.warning { border-left: 4px solid var(--gold); }

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

/* ── LOADING ── */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 15, 0.9);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-loading .btn-text { display: none; }
.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* ── AUTH PAGES (login/register) ── */
.auth-page {
  min-height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo { justify-content: center; }
.auth-logo .logo-icon { width: 60px; height: 60px; font-size: 30px; border-radius: 16px; }
.auth-logo .logo-text { font-size: 28px; }

.auth-title { text-align: center; margin-bottom: 28px; }
.auth-title h2 { font-size: 22px; margin-bottom: 6px; }
.auth-title p { font-size: 14px; color: var(--text-muted); }

.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-secondary); }

/* ── PAGE SECTIONS ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── HELP PAGE ── */
.help-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  transition: var(--transition);
}

.help-item:hover { border-color: var(--border-light); }

.help-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--gold-glow);
  border: 1px solid var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.help-info { flex: 1; }
.help-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.help-phone { font-size: 13px; color: var(--text-secondary); }
.help-phone a { color: var(--gold); font-weight: 600; }

/* ── ACTIVATE PAGE ── */
.activate-info-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
}

.activate-info-box .payment-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-heading);
  letter-spacing: 1px;
  margin: 8px 0;
}

/* ── PROFILE PAGE ── */
.profile-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #1a1a2e 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--bg-primary);
  font-family: var(--font-heading);
  margin: 0 auto 14px;
  border: 3px solid var(--gold-dark);
  overflow: hidden;
  position: relative;
}

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

.avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--bg-primary);
  border: 2px solid var(--bg-card);
  cursor: pointer;
}

.profile-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.profile-phone { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }

/* ── INFO ROWS ── */
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.info-row:last-child { border-bottom: none; }
.info-row-label { color: var(--text-muted); font-size: 13px; }
.info-row-value { font-weight: 600; }

/* ── ACTIVE BANNER ── */
.active-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--green);
  margin-bottom: 16px;
  font-weight: 600;
}

.inactive-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--red);
  margin-bottom: 16px;
  font-weight: 600;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.empty-state-title { font-size: 16px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state-text { font-size: 14px; line-height: 1.6; }

/* ── PROGRESS BAR ── */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* ── ANNOUNCEMENT ── */
.announcement-card {
  background: linear-gradient(135deg, rgba(245,200,66,0.08) 0%, rgba(245,200,66,0.03) 100%);
  border: 1px solid rgba(245,200,66,0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.announcement-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.announcement-text { font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.announcement-text strong { color: var(--text-primary); }

/* ── TASK PROGRESS ── */
.task-progress-bar {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.task-progress-header { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.task-progress-label { color: var(--text-secondary); font-weight: 600; }
.task-progress-count { color: var(--gold); font-weight: 700; }

/* ── ABOUT ── */
.about-card {
  text-align: center;
  padding: 28px 20px;
}

.about-logo { font-size: 60px; margin-bottom: 16px; }
.about-name { font-size: 26px; font-weight: 800; color: var(--gold); margin-bottom: 8px; }
.about-tagline { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }

/* ── RESPONSIVE ── */
@media (min-width: 640px) {
  .container { max-width: 600px; }
  .page { max-width: 600px; }
  .vip-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  :root { --sidebar-w: 260px; }

  .bottom-nav { display: none; }

  .header { left: var(--sidebar-w); }

  .sidebar {
    transform: translateX(0);
    position: fixed;
    box-shadow: none;
  }

  .sidebar-overlay { display: none; }
  .sidebar-close { display: none; }
  .menu-btn { display: none; }

  .main {
    margin-left: var(--sidebar-w);
    padding-bottom: 40px;
  }

  .page { max-width: 700px; padding: 0 24px; }
  .container { max-width: 700px; }
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-in { animation: fadeInUp 0.4s ease both; }
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }

.pulse { animation: pulse 2s infinite; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── MISC ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-8 { margin-top: 32px; }
.gap-2 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
