/* ============================================================
   DASHBOARD SPECIFIC STYLES - Matching screenshot exactly
   ============================================================ */

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: white;
  border-right: 1px solid var(--gray-100);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 24px 20px 12px;
  text-align: center;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-logo-text {
  font-size: 20px;
  font-weight: 800;
}
.sidebar-logo-text .vem { color: var(--primary); }
.sidebar-logo-text .engajar { color: var(--primary-dark); }
.sidebar-logo-sub {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 400;
  display: block;
  text-align: center;
  margin-top: -2px;
}

/* User section */
.sidebar-user {
  padding: 16px 20px 8px;
}
.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #7C3AED;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.sidebar-user-name { font-size: 14px; font-weight: 700; color: var(--gray-800); }
.sidebar-user-balance { font-size: 12px; color: var(--gray-600); }
.sidebar-user-today { font-size: 11px; color: var(--primary); font-weight: 500; }

/* Quick actions */
.sidebar-actions {
  display: flex;
  gap: 6px;
  padding: 8px 20px 12px;
}
.sidebar-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.sidebar-action-btn:hover { background: var(--gray-50); }
.sidebar-action-btn.notify::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid white;
}

/* Progress section - yellow/gold card like reference */
.sidebar-progress {
  margin: 8px 16px 12px;
  background: #FFFEF5;
  border: 1.5px solid #F5D98E;
  border-radius: 12px;
  padding: 16px;
}
.progress-card {
  margin-bottom: 14px;
}
.progress-card:last-of-type { margin-bottom: 8px; }
.progress-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.progress-icon { font-size: 14px; }
.progress-label { font-size: 13px; font-weight: 700; color: var(--gray-800); }
.progress-value { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--primary); }
.progress-bar {
  height: 6px;
  background: #FEF3C7;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar.orange .progress-fill { background: #FBBF24; }
.progress-bar.blue .progress-fill { background: #7DD3FC; }
.progress-fill {
  height: 100%;
  background: #FBBF24;
  border-radius: 3px;
  transition: width 0.3s;
}
.progress-desc {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 5px;
  line-height: 1.4;
}
.sidebar-details-btn {
  display: inline-block;
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  background: white;
  border: 1.5px solid #F5D98E;
  border-radius: 6px;
  padding: 5px 14px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s;
}
.sidebar-details-btn:hover { background: #FFFEF5; }

/* Nav items */
.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  border-top: 1px solid var(--gray-100);
  margin-top: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--gray-600);
  transition: all 0.15s;
  margin-bottom: 2px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-weight: 500;
}
.nav-item:hover { background: var(--gray-50); color: var(--gray-800); }
.nav-item.active { 
  background: var(--primary-50); 
  color: var(--primary-dark); 
  font-weight: 600; 
}
.nav-item .icon { font-size: 18px; width: 24px; text-align: center; opacity: 0.8; }
.nav-item.active .icon { opacity: 1; }
.nav-item .badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-item.logout { color: var(--red); font-weight: 500; }
.nav-item.logout .icon { opacity: 1; }

.sidebar-footer {
  padding: 12px 12px 20px;
  border-top: 1px solid var(--gray-100);
}

/* ============================================================
   DASHBOARD CONTENT
   ============================================================ */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dash-greeting {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}
.dash-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 2px;
}
.dash-header-actions {
  display: flex;
  gap: 10px;
}

/* Dark button */
.btn-dark {
  background: var(--gray-800);
  color: white;
}
.btn-dark:hover { background: var(--gray-900); }

/* Top Grid: Missions + Tutorial */
.dash-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Missions Card */
.dash-missions-card {
  background: white;
  border: 2px solid var(--primary-200);
  border-radius: var(--radius);
  padding: 20px;
}
.dash-missions-header {
  margin-bottom: 16px;
}
.dash-missions-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dash-missions-header h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.dash-missions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.dash-mission-item {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 14px;
  position: relative;
}
.dash-mission-item.completed {
  border-color: var(--primary-200);
  background: var(--primary-50);
}
.dash-mission-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dash-mission-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}
.dash-mission-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 14px;
}
.dash-mission-reward {
  display: block;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}
.dash-mission-progress {
  display: block;
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 8px;
}

/* Roleta */
.dash-roleta {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-roleta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-roleta-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.dash-roleta-label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}
.dash-roleta-left h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 2px;
}
.dash-roleta-left p {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}
.dash-roleta-progress-text {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}
.dash-roleta-right {
  text-align: center;
}
.dash-roleta-count {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: var(--primary-dark);
}
.dash-roleta-countlabel {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-500);
}

/* Tutorial Card */
.dash-tutorial-card {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius);
  padding: 20px;
}
.dash-tutorial-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.dash-tutorial-label {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: 0.5px;
}
.dash-tutorial-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.dash-tutorial-help {
  margin-left: auto;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}
.dash-video-container {
  border-radius: 12px;
  overflow: hidden;
}
.dash-video-container iframe {
  display: block;
}

/* WhatsApp Banner */
.dash-whatsapp-banner {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.dash-whatsapp-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-whatsapp-icon { font-size: 24px; }
.dash-whatsapp-icon-img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; flex-shrink: 0; }
.dash-whatsapp-left h4 { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.dash-whatsapp-left p { font-size: 13px; color: var(--gray-500); margin-top: 3px; line-height: 1.5; }
.btn-whatsapp-outline {
  background: white;
  color: #25D366;
  border: 1.5px solid #25D366;
  border-radius: 24px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-whatsapp-outline:hover { background: #f0fdf9; box-shadow: 0 2px 8px rgba(37,211,102,0.15); }
.btn-whatsapp-solid {
  display: none;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 14px;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
  margin-top: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,211,102,0.3);
  transition: all 0.2s;
}
.btn-whatsapp-solid:hover { background: #1fbc5e; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,211,102,0.35); }

/* Connect TikTok Banner */
.dash-connect-banner {
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  color: white;
  margin-bottom: 12px;
}
.dash-connect-banner h4 { font-size: 16px; font-weight: 700; margin-top: 12px; }
.dash-connect-banner p { font-size: 13px; opacity: 0.9; margin-top: 4px; margin-bottom: 16px; }
.dash-connect-icon-big { font-size: 32px; }

.dash-connect-tiktok {
  background: linear-gradient(135deg, #ff0050 0%, #00f2ea 100%);
}
.dash-connect-instagram {
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #F77737 100%);
}

.dash-connect-banner .btn-white {
  background: white;
  color: var(--gray-800);
  border: none;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 20px;
}

/* Stats Grid */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.dash-stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--gray-100);
}
.dash-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
}
.dash-stat-icon.blue { background: #EFF6FF; }
.dash-stat-icon.green { background: var(--primary-50); }
.dash-stat-icon.gray { background: var(--gray-100); }
.dash-stat-icon.purple { background: #F5F3FF; }
.dash-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.dash-stat-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}
.dash-stat-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  display: inline-block;
}

/* Bottom Grid */
.dash-bottom-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.dash-transactions-card,
.dash-referral-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  padding: 20px;
}
.dash-transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dash-transactions-header h3 { font-size: 16px; font-weight: 600; }
.dash-transactions-header a { font-size: 13px; color: var(--primary); cursor: pointer; font-weight: 500; }
.dash-empty-transactions {
  text-align: center;
  padding: 32px 16px;
  color: var(--gray-400);
}
.dash-empty-icon { font-size: 32px; margin-bottom: 8px; }
.dash-empty-transactions p { font-size: 13px; margin-top: 4px; }

.dash-referral-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.dash-referral-box {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 10px;
  padding: 16px;
}
.dash-referral-text {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 10px;
}
.dash-referral-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 12px;
  background: white;
  color: var(--gray-600);
}
.dash-referral-input:focus { outline: none; }
.dash-referral-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 11px;
  color: var(--gray-400);
}
.dash-referral-stats a { color: var(--primary); cursor: pointer; font-weight: 500; }

/* Footer */
.dash-footer {
  margin-left: var(--sidebar-width);
  padding: 24px 32px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-400);
}
.dash-footer-links { display: flex; gap: 20px; }
.dash-footer-links a { color: var(--gray-400); }
.dash-footer-links a:hover { color: var(--gray-600); }

/* Responsive */
@media (max-width: 1024px) {
  .dash-top-grid { grid-template-columns: 1fr; }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .dash-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dash-header-actions { width: 100%; }
  .dash-stats-grid { grid-template-columns: 1fr 1fr; }
  .dash-missions-grid { grid-template-columns: 1fr; }
  .dash-connect-banner { flex-direction: column; text-align: center; }
  .dash-footer { margin-left: 0; flex-direction: column; gap: 8px; }
  
  /* WhatsApp banner mobile - stacked layout with solid green button */
  .dash-whatsapp-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .dash-whatsapp-left {
    flex-direction: row;
    align-items: flex-start;
  }
  .btn-whatsapp-outline { display: none; }
  .btn-whatsapp-solid { display: block; }
}


/* ============================================================
   ACCOUNTS PAGE - Premium Design
   ============================================================ */
.acc-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.acc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-800);
}

/* Add account form */
.acc-add-form {
  margin-bottom: 24px;
}
.acc-add-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--gray-100);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.acc-add-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.acc-add-desc {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
}
.acc-requirements {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.acc-req-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.acc-req-header strong { font-size: 13px; }
.acc-req-badge {
  font-size: 10px;
  background: #FF6B6B;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}
.acc-req-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.acc-req-item {
  font-size: 12px;
  color: var(--gray-700);
  padding: 4px 0;
}
.acc-req-note {
  font-size: 11px;
  color: #F59E0B;
  font-style: italic;
}
.acc-add-input-row {
  display: flex;
  gap: 12px;
}
.acc-add-input-row .form-input {
  flex: 1;
}

/* Accounts list */
.acc-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acc-loading {
  text-align: center;
  padding: 32px;
  color: var(--gray-400);
}

/* Account card */
.acc-card {
  background: linear-gradient(135deg, #f0fdf8 0%, #f8fffe 50%, #f0f9ff 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.06), 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.acc-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.1), 0 2px 6px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

/* Instagram card - rosa vibrante */
.acc-card.acc-card-instagram {
  background: linear-gradient(135deg, #fff5f7 0%, #fff9fa 50%, #fef2f8 100%);
  border: 2px solid #f472b6;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1), 0 1px 3px rgba(0,0,0,0.04);
}
.acc-card.acc-card-instagram:hover {
  border-color: #ec4899;
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.15), 0 2px 6px rgba(0,0,0,0.05);
}

/* TikTok card - azul vibrante */
.acc-card.acc-card-tiktok {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 50%, #eef4ff 100%);
  border: 2px solid #60a5fa;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1), 0 1px 3px rgba(0,0,0,0.04);
}
.acc-card.acc-card-tiktok:hover {
  border-color: #3b82f6;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15), 0 2px 6px rgba(0,0,0,0.05);
}
.acc-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.acc-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.acc-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acc-card-avatar span {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-500);
}
.acc-card-info {
  min-width: 0;
}
.acc-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.acc-card-username {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}
.acc-card-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-50);
  color: var(--primary-dark);
  padding: 2px 10px;
  border-radius: 10px;
  border: 1px solid var(--primary-200);
}
.acc-card-id {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-card-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}
.acc-card-stats strong { color: var(--gray-700); }

.acc-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-set-default {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
}
.btn-set-default:hover { border-color: var(--primary); color: var(--primary); }
.btn-remove {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: #FEE2E2;
  font-size: 12px;
  font-weight: 600;
  color: #DC2626;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-remove:hover { background: #FECACA; }

/* Empty state */
.acc-empty {
  text-align: center;
  padding: 48px 24px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--gray-100);
}
.acc-empty-icon { font-size: 48px; margin-bottom: 12px; }
.acc-empty h3 { font-size: 16px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.acc-empty p { font-size: 13px; color: var(--gray-400); }

/* Mobile responsiveness */
@media (max-width: 640px) {
  .acc-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }
  .acc-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .acc-card-stats {
    flex-wrap: wrap;
  }
  .acc-add-input-row {
    flex-direction: column;
  }
  .acc-req-list {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   BACK BUTTON
   ============================================================ */
.page-header-with-back {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  margin-top: 4px;
}
.back-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-900);
}


/* ============================================================
   MOBILE TOP BAR
   ============================================================ */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: white;
  border-bottom: 1px solid var(--gray-100);
  padding: 8px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.mobile-topbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mobile-topbar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mobile-topbar-brand {
  font-size: 14px;
  font-weight: 800;
}
.mobile-topbar-brand .vem { color: var(--primary); }
.mobile-topbar-brand .engajar { color: var(--primary-dark); }
.mobile-topbar-actions {
  display: flex;
  gap: 4px;
}
.mobile-topbar-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--gray-50);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mobile-topbar-btn.notify::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid white;
}
.mobile-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mobile-topbar-balance {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 10px;
  color: var(--gray-600);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 8px;
  padding: 3px 8px;
  line-height: 1.5;
  white-space: nowrap;
}
.mobile-topbar-balance strong {
  font-weight: 700;
}
.mobile-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}
.mobile-menu-btn:hover { background: var(--primary-dark); }

@media (max-width: 768px) {
  .mobile-topbar {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
  .main-content {
    padding-top: 70px;
  }
}


/* ============================================================
   TASKS PAGE - Premium Design
   ============================================================ */
.tasks-account-section {
  margin-bottom: 24px;
}
.tasks-account-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.tasks-account-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 14px;
}
.tasks-account-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tasks-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}
.tasks-account-item:hover {
  border-color: var(--primary-light);
  background: var(--primary-50);
}
.tasks-account-item.active {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.tasks-account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tasks-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tasks-account-avatar span {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-500);
}
.tasks-account-platform-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}
.tasks-account-platform-badge.tiktok { background: #010101; }
.tasks-account-platform-badge.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.tasks-account-platform-badge img { width: 10px; height: 10px; }
.tasks-account-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.tasks-account-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}
.tasks-account-handle {
  font-size: 12px;
  color: var(--gray-500);
}
.tasks-account-followers {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}
.tasks-account-arrow {
  font-size: 16px;
  color: var(--gray-300);
  transition: color 0.2s;
}
.tasks-account-item:hover .tasks-account-arrow,
.tasks-account-item.active .tasks-account-arrow { color: var(--primary); }

.tasks-account-add {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1.5px dashed var(--gray-300);
  border-radius: 12px;
  background: none;
  font-size: 13px;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}
.tasks-account-add:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

.tasks-no-account {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tasks-no-account p {
  color: var(--gray-500);
  font-size: 14px;
}

/* Tasks list */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: all 0.3s;
}
.task-item:hover {
  border-color: var(--primary-200);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.task-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.task-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.task-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.task-item-avatar-placeholder {
  font-size: 24px;
}
.task-item-info {
  display: flex;
  flex-direction: column;
}
.task-item-action {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}
.task-item-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}
.task-item-platform {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}
.task-item-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.task-item-reward {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
}
.task-item-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.task-item-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Empty state */
.tasks-empty {
  text-align: center;
  padding: 48px 24px;
  background: white;
  border-radius: 14px;
  border: 1px solid var(--gray-100);
}
.tasks-empty-icon { font-size: 48px; margin-bottom: 12px; }
.tasks-empty h3 { font-size: 16px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.tasks-empty p { font-size: 13px; color: var(--gray-400); }
.tasks-loading {
  text-align: center;
  padding: 32px;
  color: var(--gray-400);
  font-size: 14px;
}

/* Bottom links */
.tasks-bottom-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--gray-400);
}
.tasks-bottom-links a {
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
}
.tasks-bottom-links a:hover { text-decoration: underline; }

/* Mobile adjustments */
@media (max-width: 640px) {
  .task-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }
  .task-item-right {
    width: 100%;
    justify-content: space-between;
  }
  .tasks-account-item {
    padding: 10px 12px;
  }
}


/* ============================================================
   TASK EXECUTION VIEW
   ============================================================ */
.tasks-execution-view {
  max-width: 560px;
  margin: 0 auto;
}
.tasks-exec-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tasks-exec-header h1 { font-size: 24px; font-weight: 700; }
.tasks-exec-header p { font-size: 14px; color: var(--gray-500); margin-top: 2px; }
.tasks-exec-history {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Account bar */
.tasks-exec-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--primary-50);
  border: 1.5px solid var(--primary-200);
  border-radius: 12px;
  margin-bottom: 20px;
}
.tasks-exec-account-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tasks-exec-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.tasks-exec-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
}
.tasks-exec-label {
  display: block;
  font-size: 11px;
  color: var(--gray-500);
}
.tasks-exec-username {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}
.tasks-exec-switch {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--primary-200);
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  transition: all 0.15s;
}
.tasks-exec-switch:hover { background: var(--primary-100); }

/* Task card */
.tasks-exec-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.tasks-exec-card-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
}
.tasks-exec-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tasks-exec-card-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.tasks-exec-card-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}
.tasks-exec-card-badge.tiktok { background: #010101; }
.tasks-exec-card-badge.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.tasks-exec-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}
.tasks-exec-card-handle {
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
}
.tasks-exec-card-reward {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.tasks-exec-reward-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  padding: 4px 14px;
  border-radius: 20px;
}
.tasks-exec-reward-time {
  font-size: 12px;
  color: var(--gray-500);
}

/* Timer */
.tasks-exec-timer {
  margin: 24px auto;
  width: 100px;
  height: 100px;
  position: relative;
}
.tasks-exec-timer-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: pulse-border 2s infinite;
}
@keyframes pulse-border {
  0%, 100% { border-color: var(--primary); }
  50% { border-color: var(--primary-light); }
}
.tasks-exec-timer-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--gray-900);
}
.tasks-exec-timer-label {
  font-size: 11px;
  color: var(--gray-500);
}

/* Action buttons */
.tasks-exec-actions {
  margin-top: 24px;
}
.tasks-exec-accept-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.tasks-exec-accept-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}
.tasks-exec-accept-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.tasks-exec-accept-btn:not(:disabled) {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.tasks-exec-after {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tasks-exec-open-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 50%, #00b4d8 100%);
  color: white;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.tasks-exec-open-btn:hover { opacity: 0.9; }
.tasks-exec-confirm-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.tasks-exec-confirm-btn:hover { background: var(--primary-dark); }

.tasks-exec-secondary {
  margin-top: 16px;
}
.tasks-exec-skip {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 13px;
  cursor: pointer;
  padding: 8px;
}
.tasks-exec-skip:hover { color: var(--gray-600); }
.tasks-exec-note {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 16px;
  line-height: 1.5;
}

/* Progress bar */
.tasks-exec-progress {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}


/* ============================================================
   TASK TYPE SELECTOR + AUTOMATION
   ============================================================ */
.tasks-exec-type-card {
  background: white;
  border: 1.5px solid var(--primary-200);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.tasks-exec-type-header {
  margin-bottom: 12px;
}
.tasks-exec-type-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
}
.tasks-exec-type-header p {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}
.tasks-exec-type-tabs {
  display: inline-flex;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}
.tasks-type-btn {
  padding: 8px 18px;
  border: none;
  background: white;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
}
.tasks-type-btn.active {
  background: var(--gray-900);
  color: white;
}
.tasks-type-btn:not(.active):hover {
  background: var(--gray-50);
}

/* Automation card */
.tasks-exec-automation {
  background: white;
  border: 1.5px solid #6366F1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.tasks-exec-automation-header {
  background: linear-gradient(135deg, #312E81 0%, #4338CA 100%);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
.tasks-exec-automation-header strong {
  font-size: 14px;
  display: block;
}
.tasks-exec-automation-header p {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}
.tasks-exec-automation-icon {
  font-size: 18px;
  background: rgba(255,255,255,0.15);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tasks-exec-automation-options {
  padding: 0 20px;
}
.tasks-exec-automation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}
.tasks-exec-automation-row:last-child { border-bottom: none; }
.tasks-exec-automation-row strong {
  font-size: 13px;
  color: var(--gray-800);
  display: block;
}
.tasks-exec-automation-row p {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--gray-200);
  border-radius: 24px;
  transition: 0.3s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Report button */
.tasks-exec-report {
  background: none;
  border: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  margin-top: 4px;
}
.tasks-exec-report:hover { text-decoration: underline; }

.tasks-exec-secondary {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}


/* ============================================================
   PLATFORM-SPECIFIC COLORS (Instagram vs TikTok)
   ============================================================ */

/* Instagram colors */
.tasks-exec-type-card.platform-instagram {
  border-color: rgba(225, 48, 108, 0.2);
}
.tasks-exec-type-card.platform-instagram .tasks-exec-type-label {
  color: #E1306C;
}
.tasks-exec-automation.platform-instagram {
  border-color: rgba(225, 48, 108, 0.25);
}
.tasks-exec-automation.platform-instagram .tasks-exec-automation-header {
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #F77737 100%);
}

/* TikTok colors (purple/dark) */
.tasks-exec-type-card.platform-tiktok {
  border-color: rgba(99, 102, 241, 0.2);
}
.tasks-exec-type-card.platform-tiktok .tasks-exec-type-label {
  color: #6366F1;
}
.tasks-exec-automation.platform-tiktok {
  border-color: #6366F1;
}
.tasks-exec-automation.platform-tiktok .tasks-exec-automation-header {
  background: linear-gradient(135deg, #312E81 0%, #4338CA 100%);
}

/* Accept button per platform */
.tasks-exec-card.platform-instagram .tasks-exec-accept-btn {
  background: linear-gradient(135deg, #833AB4 0%, #E1306C 50%, #F77737 100%);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}
.tasks-exec-card.platform-instagram .tasks-exec-accept-btn:hover {
  box-shadow: 0 6px 16px rgba(225, 48, 108, 0.4);
}
.tasks-exec-card.platform-tiktok .tasks-exec-accept-btn {
  background: #010101;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.tasks-exec-card.platform-tiktok .tasks-exec-accept-btn:hover {
  background: #1a1a1a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Account bar per platform */
.tasks-exec-account-bar.platform-instagram {
  background: #FFF1F5;
  border-color: rgba(225, 48, 108, 0.2);
}
.tasks-exec-account-bar.platform-tiktok {
  background: var(--primary-50);
  border-color: var(--primary-200);
}


/* Task account arrow button */
.tasks-account-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: white;
  font-size: 16px;
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.tasks-account-arrow-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}
.tasks-account-item.active .tasks-account-arrow-btn {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}


/* Dashboard today stats */
.dash-today-stats {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.dash-today-stat {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
}
.dash-today-stat:first-child {
  background: linear-gradient(135deg, #fff5f7 0%, #fff0f3 100%);
  border: 1px solid rgba(225, 48, 108, 0.12);
}
.dash-today-stat:last-child {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid rgba(99, 102, 241, 0.12);
}
.dash-today-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}
.dash-today-count {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
}
.dash-today-label-text {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
}
@media (max-width: 480px) {
  .dash-today-stats { flex-direction: column; }
}


/* ============================================================
   ADMIN PAGE - Premium Design
   ============================================================ */
.admin-page { }
.admin-header { margin-bottom: 24px; }
.admin-header h1 { font-size: 24px; font-weight: 700; }
.admin-header p { font-size: 14px; color: var(--gray-500); margin-top: 4px; }

/* Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.admin-stat-card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--gray-100);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.admin-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
}
.admin-stat-icon.purple { background: #F5F3FF; }
.admin-stat-icon.green { background: var(--primary-50); }
.admin-stat-icon.blue { background: #EFF6FF; }
.admin-stat-icon.yellow { background: #FEF3C7; }
.admin-stat-value { font-size: 28px; font-weight: 900; color: var(--gray-900); }
.admin-stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.admin-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
}
.admin-tab.active {
  background: white;
  color: var(--gray-900);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Create card */
.admin-create-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.admin-create-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
  border-bottom: 1px solid var(--gray-100);
}
.admin-create-header h3 { font-size: 17px; font-weight: 700; }
.admin-create-header p { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.admin-create-form { padding: 24px; }
.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.admin-form-group { }
.admin-form-group.flex-2 { grid-column: span 1; }
.admin-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.admin-form-hint {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
  display: block;
}
.admin-create-btn {
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.admin-create-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}
.admin-create-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Content card */
.admin-content-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.admin-table-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.admin-table-header h3 { font-size: 15px; font-weight: 600; }
.admin-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
}

/* Task items */
.admin-tasks-list { }
.admin-task-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-50);
  gap: 20px;
  transition: background 0.15s;
}
.admin-task-item:hover { background: var(--gray-50); }
.admin-task-item:last-child { border-bottom: none; }
.admin-task-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1.5;
  min-width: 0;
}
.admin-task-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}
.admin-task-avatar img { width: 100%; height: 100%; object-fit: cover; }
.admin-task-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.admin-task-info { min-width: 0; }
.admin-task-username {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-task-platform {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}
.admin-task-center {
  text-align: center;
  flex: 0.8;
}
.admin-task-reward {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.admin-task-reward-label {
  font-size: 10px;
  color: var(--gray-400);
  text-transform: uppercase;
}
.admin-task-exec {
  text-align: center;
  flex: 0.8;
}
.admin-task-exec-count {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-700);
}
.admin-task-exec-label {
  font-size: 10px;
  color: var(--gray-400);
}
.admin-task-status { flex: 0.6; }
.admin-task-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.admin-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.admin-action-btn.play:hover { background: var(--primary-50); border-color: var(--primary); }
.admin-action-btn.pause:hover { background: #FEF3C7; border-color: #F59E0B; }
.admin-action-btn.delete:hover { background: #FEE2E2; border-color: var(--red); }

@media (max-width: 768px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-form-row { grid-template-columns: 1fr; }
  .admin-task-item { flex-wrap: wrap; gap: 12px; }
  .admin-task-center, .admin-task-exec { text-align: left; }
}


/* ============================================================
   ADMIN TASKS - Dual Panel (Instagram + TikTok side by side)
   ============================================================ */
.admin-tasks-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.admin-tasks-panel {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.admin-tasks-panel.instagram { border-top: 2.5px solid #E1306C; }
.admin-tasks-panel.tiktok { border-top: 2.5px solid #010101; }

.admin-tasks-panel-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.admin-tasks-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}
.admin-tasks-panel-search {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
}
.admin-tasks-panel-search .search-icon { font-size: 13px; color: var(--gray-400); }
.admin-tasks-panel-search input {
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--gray-600);
  background: transparent;
  width: 100%;
}

.admin-tasks-table-wrap { overflow-y: visible; max-height: none; }
.admin-tasks-table { width: 100%; border-collapse: collapse; }
.admin-tasks-table th {
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gray-400);
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
  position: sticky;
  top: 0;
  z-index: 1;
}
.admin-tasks-table td {
  padding: 8px 10px;
  font-size: 12px;
  border-bottom: 1px solid var(--gray-50);
  vertical-align: middle;
}
.admin-tasks-table tr:hover td { background: #fafafa; }
.admin-empty-row { text-align: center; color: var(--gray-400); padding: 24px !important; }

/* Profile cell */
.admin-task-cell-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-task-cell-pic-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.admin-task-cell-pic-wrap.ig { border-color: #E1306C; }
.admin-task-cell-pic-wrap.tt { border-color: #010101; }
.admin-task-cell-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-task-cell-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  font-size: 10px;
}
.admin-task-cell-name {
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  overflow: visible;
}
.admin-task-cell-name.ig { color: #E1306C; }
.admin-task-cell-name.tt { color: #6366F1; }

/* Data cells */
.admin-task-cell-meta { font-size: 12px; color: var(--gray-600); }
.admin-task-cell-reward { font-size: 12px; font-weight: 700; color: var(--gray-800); }
.admin-task-cell-cred { font-size: 12px; color: var(--gray-500); }

/* Status dot */
.admin-task-status-dot {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.admin-task-status-dot.active { background: var(--primary-50); color: var(--primary-dark); }
.admin-task-status-dot.paused { background: #FEF3C7; color: #92400E; }

/* Action buttons */
.admin-task-cell-actions { display: flex; gap: 4px; }
.admin-cell-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: none;
  background: var(--gray-50);
  font-size: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.admin-cell-btn.play:hover { background: var(--primary-50); }
.admin-cell-btn.pause:hover { background: #FEF3C7; }
.admin-cell-btn.delete:hover { background: #FEE2E2; }

@media (max-width: 1024px) { .admin-tasks-dual { grid-template-columns: 1fr; } }


/* Admin panel buttons (Import + Verify) */
.admin-tasks-panel-btns {
  display: flex;
  gap: 8px;
}
.admin-panel-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.admin-panel-btn.import {
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-panel-btn.import:hover { background: var(--primary-dark); }
.admin-panel-btn.verify {
  background: #7C3AED;
  color: white;
}
.admin-panel-btn.verify:hover { background: #6D28D9; }

/* Import section */
.admin-import-section {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.admin-import-header { margin-bottom: 12px; }
.admin-import-header h3 { font-size: 15px; font-weight: 700; }
.admin-import-header p { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.admin-import-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-import-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 2px dashed var(--gray-300);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
}
.admin-import-file-btn:hover { border-color: var(--primary); color: var(--primary); }
.admin-import-info { font-size: 12px; color: var(--gray-400); }

@media (max-width: 768px) {
  .admin-tasks-panel-header { flex-direction: column; gap: 10px; align-items: flex-start; }
  .admin-tasks-panel-btns { width: 100%; }
  .admin-import-row { flex-direction: column; align-items: flex-start; }
}


/* Admin Pagination */
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--gray-100);
}
.admin-page-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  background: white;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.15s;
}
.admin-page-btn:hover:not(:disabled) { background: var(--primary-50); border-color: var(--primary); color: var(--primary); }
.admin-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.admin-page-info { font-size: 12px; color: var(--gray-500); font-weight: 500; }


/* Priority button */
.admin-priority-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--gray-300);
  transition: all 0.15s;
  padding: 0 4px;
}
.admin-priority-btn:hover { color: #F59E0B; transform: scale(1.2); }
.admin-priority-btn.active { color: #F59E0B; }
.admin-task-row.priority { background: #FFFBEB; }
.admin-task-row.priority td:first-child { border-left: 3px solid #F59E0B; }


/* Verify private status bar */
.admin-verify-status {
  display: none;
  padding: 12px 18px;
  background: #F0F9FF;
  border-bottom: 1px solid #BAE6FD;
}
.verify-status-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.verify-status-content.done {
  background: none;
}
.verify-status-content.error {
  color: var(--red);
}
.verify-status-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid #BAE6FD;
  border-top-color: #0EA5E9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.verify-status-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.verify-status-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-800);
}
.verify-status-detail {
  font-size: 11px;
  color: var(--gray-500);
}
.verify-status-counts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.verify-count-checked {
  font-size: 16px;
  font-weight: 800;
  color: #0EA5E9;
}
.verify-count-removed {
  font-size: 16px;
  font-weight: 800;
  color: var(--red);
}
.verify-count-label {
  font-size: 10px;
  color: var(--gray-400);
  margin-right: 8px;
}
.verify-count-label-red {
  font-size: 10px;
  color: var(--red);
}
.verify-progress-bar {
  height: 3px;
  background: #E0F2FE;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.verify-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0EA5E9, #06B6D4);
  border-radius: 2px;
  transition: width 0.3s;
  width: 0%;
}
.verify-done-icon {
  font-size: 20px;
}


/* Admin task initials */
.admin-task-cell-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: var(--primary);
  border-radius: 50%;
}
.admin-task-cell-pic-wrap.ig .admin-task-cell-initials {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743);
}
.admin-task-cell-pic-wrap.tt .admin-task-cell-initials {
  background: #010101;
}


/* Photos button */
.admin-panel-btn.photos {
  background: #F59E0B;
  color: white;
}
.admin-panel-btn.photos:hover { background: #D97706; }


/* Admin comments list */
.admin-comments-list { }
.admin-comment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-50);
  gap: 16px;
}
.admin-comment-item:hover { background: var(--gray-50); }
.admin-comment-info { flex: 1; min-width: 0; }
.admin-comment-info strong { display: block; font-size: 14px; }
.admin-comment-url { display: block; font-size: 11px; color: var(--gray-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.admin-comment-meta { display: block; font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.admin-comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}
.admin-comment-actions > * { flex-shrink: 0; white-space: nowrap; }

/* ===== Mission status badges (premium solid) ===== */
.mission-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: white;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  line-height: 1;
}
.mission-status-badge.active   { background: linear-gradient(135deg, #10b981, #059669); }
.mission-status-badge.complete { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.mission-status-badge.done     { background: linear-gradient(135deg, #6b7280, #4b5563); }

/* ===== Mission action buttons (premium solid) ===== */
.mission-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1px;
  color: white;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  line-height: 1;
}
.mission-btn:hover  { transform: translateY(-1px); filter: brightness(1.05); }
.mission-btn:active { transform: translateY(0); filter: brightness(0.96); }
.mission-btn:focus-visible { outline: 2px solid rgba(59, 130, 246, .5); outline-offset: 2px; }

.mission-btn-conclude {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.mission-btn-reactivate {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}
.mission-btn-edit {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  padding: 0 12px;
  font-size: 15px;
}
.mission-btn-delete {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  padding: 0 12px;
  font-size: 15px;
}

/* Comment task view for users */
.comment-task-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.comment-task-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.comment-task-code { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.comment-task-desc {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.comment-task-url { font-size: 11px; color: var(--gray-400); margin-bottom: 12px; word-break: break-all; }
.comment-task-hint {
  background: linear-gradient(135deg, #f0fdf8 0%, #ecfdf5 50%, #f0f9ff 100%);
  border: 1px solid var(--primary-200);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 16px 0;
  text-align: center;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  text-align: left;
}
.comment-item {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.comment-item:hover { border-color: var(--primary); background: var(--primary-50); }
.comment-item.selected { border-color: var(--primary); background: var(--primary-50); }
.comment-item.copied::after {
  content: '✓ Copiado!';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}
.comment-copy-hint { font-size: 11px; color: var(--gray-400); margin-top: 8px; }


/* Comment task post image */
.comment-task-image {
  width: 200px;
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.comment-task-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Admin comment item with image */
.admin-comment-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.admin-comment-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.admin-comment-thumb-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.admin-comment-link {
  display: block;
  font-size: 11px;
  color: var(--primary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}
.admin-comment-link:hover { text-decoration: underline; }

/* ============================================================
   BOTTOM NAVIGATION BAR (Mobile)
   ============================================================ */
.bottom-nav {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 8px 12px 12px;
  z-index: 999;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex !important;
  }
  .main-content {
    padding-bottom: 80px !important;
  }
  .dash-footer {
    padding-bottom: 80px !important;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 10px;
  transition: all 0.2s;
}

.bottom-nav-item.active {
  color: var(--primary);
}

.bottom-nav-item:not(.active) {
  color: #9ca3af;
}

.bottom-nav-icon {
  font-size: 20px;
  line-height: 1;
}

.bottom-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.bottom-nav-center {
  position: relative;
  margin-top: -20px;
}

.bottom-nav-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}

.bottom-nav-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.bottom-nav-avatar span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  border: 2px solid white;
}


/* ============================================================
   EARNING EFFECT - Animação de ganho (verde, sobe de baixo pra cima)
   ============================================================ */
.earning-effect {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  pointer-events: none;
  animation: earningSlideUp 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.earning-effect-text {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 20px;
  font-weight: 900;
  padding: 14px 32px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes earningSlideUp {
  0% {
    bottom: -80px;
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
  25% {
    bottom: 50%;
    transform: translateX(-50%) translateY(50%) scale(1);
  }
  45% {
    bottom: 50%;
    transform: translateX(-50%) translateY(50%) scale(1);
    opacity: 1;
  }
  70% {
    bottom: 50%;
    transform: translateX(-50%) translateY(50%) scale(1);
    opacity: 1;
  }
  100% {
    bottom: 50%;
    transform: translateX(-50%) translateY(50%) scale(0.9);
    opacity: 0;
  }
}

/* Mobile: texto um pouco menor */
@media (max-width: 768px) {
  .earning-effect-text {
    font-size: 17px;
    padding: 12px 24px;
    border-radius: 14px;
  }
}


/* ============================================================
   NAV ITEM HIGHLIGHT (Como Funciona - efeito de luz roxo)
   ============================================================ */
.nav-item.nav-item-highlight {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white !important;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.nav-item.nav-item-highlight .icon { opacity: 1; }
.nav-item.nav-item-highlight:hover {
  background: linear-gradient(135deg, #6d28d9, #9333ea);
  transform: translateX(2px);
}
/* Efeito de luz passando */
.nav-item.nav-item-highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: navShine 3s ease-in-out infinite;
}
@keyframes navShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* ============================================================
   HOW IT WORKS PAGE
   ============================================================ */
.hiw-page {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* Hero */
.hiw-hero {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #f5f3ff 100%);
  border-radius: 20px;
  margin-bottom: 32px;
  border: 1px solid #ddd6fe;
}
.hiw-hero-emoji {
  font-size: 56px;
  margin-bottom: 16px;
  animation: bounceIn 0.6s ease;
}
.hiw-hero-title {
  font-size: 28px;
  font-weight: 900;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.hiw-hero-subtitle {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* Steps */
.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.hiw-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  transition: all 0.2s;
}
.hiw-step:hover {
  border-color: #a855f7;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.1);
  transform: translateX(4px);
}
.hiw-step-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: #f5f3ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hiw-step-content h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 4px;
}
.hiw-step-content p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* Cards */
.hiw-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.hiw-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
}
.hiw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.hiw-card-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.hiw-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.hiw-card p {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}
.hiw-card-pix { border-top: 3px solid #f59e0b; }
.hiw-card-accounts { border-top: 3px solid #7c3aed; }
.hiw-card-invite { border-top: 3px solid #10b981; }

/* Tips */
.hiw-tips {
  background: #fffef5;
  border: 1.5px solid #f5d98e;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 32px;
}
.hiw-tips h3 {
  font-size: 16px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 14px;
}
.hiw-tips ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hiw-tips li {
  font-size: 13px;
  color: #555;
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  border-bottom: 1px solid #fef3c7;
  line-height: 1.5;
}
.hiw-tips li:last-child { border-bottom: none; }
.hiw-tips li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 700;
}

/* CTA */
.hiw-cta {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
}
.hiw-cta h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.hiw-cta p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}
.hiw-cta-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}
.hiw-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hiw-hero { padding: 28px 16px; }
  .hiw-hero-title { font-size: 22px; }
  .hiw-hero-subtitle { font-size: 14px; }
  .hiw-cards { grid-template-columns: 1fr; }
  .hiw-step { padding: 16px; }
}

@keyframes bounceIn {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}


/* Missões de comentário — pill de tipo (Personalizado / Automático) */
.admin-comment-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.comment-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1;
}
.comment-mode-pill.free {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #93c5fd;
}
.comment-mode-pill.predefined {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  color: #be185d;
  border: 1px solid #f9a8d4;
}


/* ============================================================
   Admin — Badge de Gênero
   ============================================================ */
.gender-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.gender-badge.male {
  background: #dbeafe;
  color: #1e40af;
}
.gender-badge.female {
  background: #fce7f3;
  color: #be185d;
}
.gender-badge.empty {
  background: #f3f4f6;
  color: #9ca3af;
}

/* Badge de contadores IG/TT — clicáveis */
.accounts-badge {
  padding: 3px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  min-width: 32px;
}
.accounts-badge:disabled {
  cursor: default;
  opacity: 0.6;
}
.accounts-badge.ig {
  background: #fce7f3;
  color: #be185d;
}
.accounts-badge.tt {
  background: #f0fdf4;
  color: #166534;
}
.accounts-badge.ig.active:hover:not(:disabled) {
  background: linear-gradient(135deg, #ec4899, #be185d);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}
.accounts-badge.tt.active:hover:not(:disabled) {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* ============================================================
   Popup moderno — Contas do usuário
   ============================================================ */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: admModalFadeIn 0.22s ease-out;
}
@keyframes admModalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes admModalSlideUp {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.admin-modal-box {
  background: white;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  animation: admModalSlideUp 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.admin-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}
.admin-modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.user-accounts-header {
  padding: 24px 22px;
  color: white;
  display: flex;
  align-items: center;
  gap: 14px;
}
.user-accounts-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.user-accounts-header h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 3px;
  color: white;
}
.user-accounts-header p {
  font-size: 12.5px;
  margin: 0;
  opacity: 0.9;
}

.user-accounts-list {
  padding: 12px;
  overflow-y: auto;
  flex: 1;
}

.user-accounts-empty {
  padding: 40px 20px;
  text-align: center;
  color: #9ca3af;
}
.user-accounts-empty-icon {
  font-size: 42px;
  margin-bottom: 8px;
  opacity: 0.7;
}

.user-account-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.15s;
}
.user-account-item:hover {
  background: #f9fafb;
}
.user-account-item + .user-account-item {
  border-top: 1px solid #f3f4f6;
}

.user-account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.user-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-account-info {
  flex: 1;
  min-width: 0;
}
.user-account-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.user-account-username {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-account-username:hover {
  color: #ec4899;
  text-decoration: underline;
}
.user-account-default {
  padding: 2px 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.user-account-meta {
  font-size: 11.5px;
  color: #6b7280;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
