:root {
  --primary: #c40000;
  --primary-dark: #a00000;
  --primary-light: #e60000;
  --secondary: #1a1a2e;
  --accent: #ff6b35;
  --bg: #f0f2f5;
  --bg-card: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --border: #e9ecef;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --nav-height: 65px;
  --header-height: 56px;
  --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --gradient-primary: linear-gradient(135deg, #c40000, #e60000);
  --gradient-gold: linear-gradient(135deg, #f39c12, #e74c3c);
  --gradient-blue: linear-gradient(135deg, #0984e3, #6c5ce7);
  --gradient-green: linear-gradient(135deg, #00b894, #00cec9);
  --gradient-purple: linear-gradient(135deg, #6c5ce7, #a29bfe);
  --gradient-orange: linear-gradient(135deg, #e17055, #fdcb6e);
  --gradient-teal: linear-gradient(135deg, #00b894, #55efc4);
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  padding-bottom: calc(var(--nav-height) + 16px);
  padding-top: var(--header-height);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s, visibility 0.5s;
}
.loading-screen.hide { opacity: 0; visibility: hidden; }
.loader {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Top Header */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(196,0,0,0.3);
}
.app-header .hamburger {
  background: none; border: none; color: #fff;
  font-size: 22px; cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}
.app-header .hamburger:hover { background: rgba(255,255,255,0.15); }
.app-header .logo {
  font-size: 20px; font-weight: 800; color: #fff;
  letter-spacing: 1px;
}
.app-header .logo span { font-weight: 300; }
.app-header .notif-btn {
  position: relative;
  background: none; border: none; color: #fff;
  font-size: 20px; cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}
.app-header .notif-btn:hover { background: rgba(255,255,255,0.15); }
.app-header .notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  background: #ffd700;
  color: #000;
  font-size: 10px; font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Notifications Panel */
.notif-panel {
  position: fixed;
  top: var(--header-height); right: -100%;
  width: 340px; max-width: 100%;
  height: calc(100vh - var(--header-height));
  background: #fff;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.notif-panel.open { right: 0; }
.notif-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 16px;
}

/* Sidebar Panel */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
.sidebar-overlay.open { opacity: 1; visibility: visible; }
.sidebar-panel {
  position: fixed;
  top: 0; left: -300px;
  width: 300px; max-width: 80%;
  height: 100%;
  background: #fff;
  z-index: 1002;
  transition: left 0.3s ease;
  overflow-y: auto;
}
.sidebar-panel.open { left: 0; }
.sidebar-user {
  background: var(--gradient-primary);
  padding: 30px 20px 24px;
  text-align: center;
  color: #fff;
}
.sidebar-user .avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  object-fit: cover;
  margin-bottom: 12px;
}
.sidebar-user .name { font-size: 18px; font-weight: 700; }
.sidebar-user .phone { font-size: 13px; opacity: 0.8; }
.sidebar-menu { padding: 8px 0; }
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 15px;
  transition: all 0.2s;
}
.sidebar-menu a:hover {
  background: #f8f9fa;
  color: var(--primary);
}
.sidebar-menu a i {
  width: 22px;
  text-align: center;
  font-size: 18px;
  color: var(--primary);
}
.sidebar-menu .logout {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.sidebar-menu .logout i { color: #e74c3c; }
.sidebar-menu .logout:hover { color: #e74c3c; }

/* Scrolling Notice Bar */
.notice-bar {
  background: var(--secondary);
  color: #ffd700;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
.notice-bar .scroll-content {
  display: inline-block;
  animation: scrollNotice 25s linear infinite;
}
@keyframes scrollNotice {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* User Info Card */
.user-info-card {
  background: var(--gradient-primary);
  margin: 16px;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(196,0,0,0.25);
}
.user-info-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.user-info-card .user-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-info-card .avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  object-fit: cover;
  flex-shrink: 0;
}
.user-info-card .user-details { flex: 1; }
.user-info-card .username {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}
.user-info-card .phone {
  font-size: 13px;
  opacity: 0.85;
}
.user-info-card .balance-badge {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.user-info-card .balance-badge i { font-size: 16px; }
.user-stats-row {
  display: flex;
  gap: 12px;
  margin: 16px;
}
.user-stats-row .stat-item {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow);
}
.user-stats-row .stat-item .num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}
.user-stats-row .stat-item .label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Grid Menu */
.grid-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 20px;
}
.grid-menu .menu-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 16px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.grid-menu .menu-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.grid-menu .menu-item:active {
  transform: scale(0.95);
}
.grid-menu .menu-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 20px;
  color: #fff;
  transition: transform 0.3s;
}
.grid-menu .menu-item:hover .icon { transform: scale(1.1); }
.grid-menu .menu-item .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.icon-red { background: var(--gradient-primary); }
.icon-blue { background: var(--gradient-blue); }
.icon-green { background: var(--gradient-green); }
.icon-purple { background: var(--gradient-purple); }
.icon-orange { background: var(--gradient-orange); }
.icon-teal { background: var(--gradient-teal); }
.icon-gold { background: var(--gradient-gold); }

/* Section Headers */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
}
.section-header h3 {
  font-size: 17px;
  font-weight: 700;
}
.section-header a {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

/* Task Cards */
.task-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin: 0 16px 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  transition: all 0.3s;
}
.task-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.task-card .task-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}
.task-card .task-body { flex: 1; }
.task-card .task-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.task-card .task-meta {
  font-size: 12px;
  color: var(--text-light);
}
.task-card .task-reward {
  font-weight: 800;
  color: var(--primary);
  font-size: 16px;
}
.task-card .task-action {
  display: flex;
  align-items: center;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--border);
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  transition: all 0.3s;
  cursor: pointer;
  color: var(--text-muted);
  position: relative;
}
.bottom-nav .nav-item i {
  font-size: 20px;
  transition: all 0.3s;
}
.bottom-nav .nav-item span {
  font-size: 10px;
  font-weight: 600;
  transition: all 0.3s;
}
.bottom-nav .nav-item.active {
  color: var(--primary);
}
.bottom-nav .nav-item.active i {
  transform: translateY(-2px);
}
.bottom-nav .nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 0 0 4px 4px;
}

/* Page Header */
.page-header {
  background: var(--gradient-primary);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
}
.page-header .back-btn {
  background: none; border: none; color: #fff;
  font-size: 20px; cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}
.page-header .back-btn:hover { background: rgba(255,255,255,0.15); }
.page-header h2 {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
}
.page-header .badge {
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

/* Cards (general) */
.card-modern {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: none;
  margin-bottom: 16px;
}
.card-modern .card-body { padding: 20px; }
.card-modern .card-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

/* Forms */
.form-control-modern {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.3s;
  background: #fafafa;
}
.form-control-modern:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(196,0,0,0.1);
  background: #fff;
}
.form-control-modern::placeholder { color: var(--text-muted); }

.btn-modern {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: none;
  transition: all 0.3s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-modern:active { transform: scale(0.97); }
.btn-primary-modern {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(196,0,0,0.3);
}
.btn-primary-modern:hover {
  box-shadow: 0 6px 20px rgba(196,0,0,0.4);
  color: #fff;
}
.btn-outline-modern {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline-modern:hover {
  background: var(--primary);
  color: #fff;
}
.btn-success-modern {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,184,148,0.3);
}
.btn-gold-modern {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(243,156,18,0.3);
}

/* Wallet Card */
.wallet-card {
  background: var(--gradient-primary);
  margin: 16px;
  padding: 24px;
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 20px rgba(196,0,0,0.25);
}
.wallet-card .amount {
  font-size: 36px;
  font-weight: 800;
  margin: 8px 0;
}
.wallet-card .label {
  font-size: 13px;
  opacity: 0.85;
}
.wallet-card .wallet-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.wallet-card .wallet-actions a {
  background: rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.wallet-card .wallet-actions a:hover {
  background: rgba(255,255,255,0.3);
}

/* Withdraw/Deposit Methods */
.method-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 12px;
}
.method-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(196,0,0,0.1);
}
.method-card.active {
  border-color: var(--primary);
  background: rgba(196,0,0,0.03);
}
.method-card .method-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}
.method-card .method-info { flex: 1; }
.method-card .method-name {
  font-weight: 700;
  font-size: 15px;
}
.method-card .method-desc {
  font-size: 12px;
  color: var(--text-light);
}

/* Leaderboard */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  margin: 0 16px 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.leaderboard-item:hover {
  transform: translateX(4px);
}
.leaderboard-item .rank {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.leaderboard-item .rank.gold { background: #ffd700; color: #000; }
.leaderboard-item .rank.silver { background: #c0c0c0; color: #000; }
.leaderboard-item .rank.bronze { background: #cd7f32; color: #fff; }
.leaderboard-item .rank.normal { background: var(--border); color: var(--text-light); }
.leaderboard-item .lb-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.leaderboard-item .lb-info { flex: 1; }
.leaderboard-item .lb-name {
  font-weight: 700;
  font-size: 14px;
}
.leaderboard-item .lb-amount {
  font-weight: 800;
  color: var(--primary);
  font-size: 15px;
}

/* Profile Page */
.profile-header-card {
  background: var(--gradient-primary);
  margin: 0;
  padding: 30px 20px;
  text-align: center;
  color: #fff;
}
.profile-header-card .avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  object-fit: cover;
  margin-bottom: 12px;
}
.profile-header-card .name { font-size: 20px; font-weight: 700; }
.profile-header-card .level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  backdrop-filter: blur(10px);
}
.profile-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.profile-detail:last-child { border-bottom: none; }
.profile-detail .pd-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.profile-detail .pd-label {
  font-size: 12px;
  color: var(--text-light);
}
.profile-detail .pd-value {
  font-weight: 600;
  font-size: 15px;
}

/* History/List pages */
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  margin: 0 16px 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}
.list-item .li-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.list-item .li-body { flex: 1; }
.list-item .li-title {
  font-weight: 700;
  font-size: 14px;
}
.list-item .li-meta {
  font-size: 12px;
  color: var(--text-light);
}
.list-item .li-amount {
  font-weight: 800;
  font-size: 16px;
}
.list-item .li-status {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }
.status-rejected { background: #f8d7da; color: #721c24; }

/* Support Ticket */
.ticket-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin: 0 16px 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.ticket-card .ticket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ticket-card .ticket-subject {
  font-weight: 700;
  font-size: 15px;
}
.ticket-card .ticket-status {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.ticket-card .ticket-message {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.ticket-card .ticket-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* Referral Page */
.referral-card {
  background: var(--gradient-primary);
  margin: 16px;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  color: #fff;
}
.referral-card .ref-link {
  background: rgba(255,255,255,0.2);
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 14px;
  word-break: break-all;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  backdrop-filter: blur(10px);
}
.referral-card .ref-link button {
  background: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 12px;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
}

/* Daily Bonus */
.bonus-card {
  background: var(--gradient-gold);
  margin: 16px;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(243,156,18,0.25);
}
.bonus-card .bonus-icon { font-size: 40px; margin-bottom: 8px; }
.bonus-card .bonus-amount {
  font-size: 32px;
  font-weight: 800;
}
.bonus-card .bonus-streak {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.9;
}
.bonus-card .streak-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}
.bonus-card .streak-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
.bonus-card .streak-dot.active {
  background: #fff;
  color: var(--accent);
}

/* Login/Register */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}
.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 24px;
}
.auth-card .auth-logo h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}
.auth-card .auth-logo p {
  color: var(--text-light);
  font-size: 14px;
}

/* Tasks Page */
.task-screen-header {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.task-screen-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.task-screen-header .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}
.task-screen-header .overlay h2 { font-size: 20px; font-weight: 700; }
.task-screen-header .overlay .reward {
  font-size: 24px;
  font-weight: 800;
  color: #ffd700;
}

/* Admin Login */
.admin-login-body {
  background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Admin Panel Styles */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  background: var(--secondary);
  color: #fff;
  position: fixed;
  top: 0; left: 0;
  height: 100%;
  z-index: 1000;
  overflow-y: auto;
  transition: all 0.3s;
}
.admin-sidebar .sidebar-brand {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
}
.admin-sidebar .sidebar-brand span { color: var(--primary-light); }
.admin-sidebar .nav-item {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  transition: all 0.3s;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.admin-sidebar .nav-item:hover,
.admin-sidebar .nav-item.active {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-left-color: var(--primary-light);
}
.admin-sidebar .nav-item i { width: 20px; text-align: center; }

.admin-main {
  margin-left: 260px;
  flex: 1;
  background: var(--bg);
  min-height: 100vh;
}
.admin-topbar {
  background: #fff;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}
.admin-topbar .toggle-sidebar {
  display: none;
  background: none; border: none;
  font-size: 22px; cursor: pointer;
}
.admin-content { padding: 24px; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}
.admin-stat-card .stat-body { flex: 1; }
.admin-stat-card .stat-num {
  font-size: 24px;
  font-weight: 800;
}
.admin-stat-card .stat-label {
  font-size: 13px;
  color: var(--text-light);
}

.admin-table th {
  background: var(--secondary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table td { vertical-align: middle; }

/* Notification Item */
.notif-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
.notif-item:hover { background: #f8f9fa; }
.notif-item.unread {
  background: rgba(196,0,0,0.03);
  border-left: 3px solid var(--primary);
}
.notif-item .notif-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.notif-item .notif-body { flex: 1; }
.notif-item .notif-title { font-weight: 600; font-size: 14px; }
.notif-item .notif-msg { font-size: 13px; color: var(--text-light); }
.notif-item .notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; }
.empty-state h5 { font-weight: 600; margin-bottom: 8px; color: var(--text-light); }

/* Modal Custom */
.modern-modal .modal-content {
  border-radius: var(--radius);
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 420px) {
  .grid-menu { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .grid-menu .menu-item { padding: 12px 6px; }
  .grid-menu .menu-item .icon { width: 42px; height: 42px; font-size: 18px; }
  .grid-menu .menu-item .label { font-size: 10px; }
}

@media (min-width: 768px) {
  body {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    min-height: 100vh;
  }
  .app-header { max-width: 480px; left: 50%; transform: translateX(-50%); }
  .bottom-nav { max-width: 480px; left: 50%; transform: translateX(-50%); }
  .notif-panel { max-width: 480px; right: -100%; left: auto; }
  .notif-panel.open { right: 0; }
  .sidebar-panel { left: -300px; }
  .sidebar-panel.open { left: 0; }
}

@media (min-width: 1200px) {
  body {
    max-width: 420px;
    margin: 0 auto;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.animate-in {
  animation: fadeIn 0.4s ease forwards;
}
.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}
.pulse { animation: pulse 2s ease infinite; }

/* Counter Animation */
.counter-animate {
  display: inline-block;
  transition: all 0.3s;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + 20px);
  right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(196,0,0,0.35);
  cursor: pointer;
  transition: all 0.3s;
  z-index: 999;
  border: none;
}
.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(196,0,0,0.45);
}

/* Scrollable tab */
.tab-scroll {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 12px 16px;
  -webkit-overflow-scrolling: touch;
}
.tab-scroll::-webkit-scrollbar { display: none; }
.tab-scroll .tab-item {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg);
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
}
.tab-scroll .tab-item.active {
  background: var(--primary);
  color: #fff;
}

/* Avatar Upload */
.avatar-upload {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}
.avatar-upload img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.avatar-upload .upload-overlay {
  position: absolute;
  bottom: 0; right: 0;
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid #fff;
}

/* Video task container */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* Toast notification */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 10px);
  right: 10px;
  z-index: 99999;
}
.toast-msg {
  background: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  animation: slideInRight 0.3s ease;
  border-left: 4px solid var(--primary);
}
.toast-msg.success { border-left-color: #00b894; }
.toast-msg.error { border-left-color: #e74c3c; }
.toast-msg.warning { border-left-color: #f39c12; }
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Typography helpers */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.fw-800 { font-weight: 800 !important; }

/* Progress bar custom */
.progress-modern {
  height: 8px;
  border-radius: 8px;
  background: var(--border);
  overflow: hidden;
}
.progress-modern .progress-bar-modern {
  height: 100%;
  border-radius: 8px;
  background: var(--gradient-primary);
  transition: width 1s ease;
}

/* Empty state for admin */
.admin-empty {
  text-align: center;
  padding: 60px 20px;
}
.admin-empty i { font-size: 60px; color: var(--text-muted); margin-bottom: 16px; }
.admin-empty h4 { color: var(--text-light); font-weight: 600; }

/* Task type badge */
.task-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.task-badge.video { background: #e8f4fd; color: #0984e3; }
.task-badge.channel { background: #e8f8f5; color: #00b894; }
.task-badge.social { background: #fef9e7; color: #f39c12; }
.task-badge.daily { background: #f5eef8; color: #6c5ce7; }
