/* ============================================================
   VEM ENGAJAR - Design System
   Cor primária: Verde Premium + Branco
   ============================================================ */

:root {
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #34D399;
  --primary-50: #ECFDF5;
  --primary-100: #D1FAE5;
  --primary-200: #A7F3D0;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --red: #EF4444;
  --red-light: #FEE2E2;
  --yellow: #F59E0B;
  --yellow-light: #FEF3C7;
  --blue: #3B82F6;
  --purple: #8B5CF6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sidebar-width: 290px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-primary { color: var(--primary); }
.text-green { color: var(--primary-dark); }
.text-red { color: var(--red); }
.text-gray { color: var(--gray-500); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-primary-lg {
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}
.btn-primary-lg:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-50); }

.btn-white {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.btn-white:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn-danger {
  background: var(--red);
  color: white;
}
.btn-danger:hover { background: #DC2626; }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25D366; color: white; }
.btn-telegram { background: #0088cc; color: white; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group .hint {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ===== Password toggle (mostrar/ocultar senha) ===== */
.pwd-wrap {
  position: relative;
  display: block;
}
.pwd-wrap .pwd-input,
.pwd-wrap .form-input {
  padding-right: 46px;
}
.pwd-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--gray-500);
  transition: background 0.15s, transform 0.1s;
}
.pwd-toggle:hover {
  background: rgba(16, 185, 129, 0.08);
}
.pwd-toggle:active {
  transform: translateY(-50%) scale(0.92);
}
.pwd-toggle span {
  pointer-events: none;
  line-height: 1;
}
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}
.card-body { padding: 24px; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  padding: 16px 0;
}
.landing-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}
.landing-nav .logo .vem { color: var(--gray-800); }
.landing-nav .logo .engajar { color: var(--primary); }
.landing-nav .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-auth {
  display: flex;
  gap: 12px;
}

/* Hero */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-50) 0%, white 50%, var(--primary-50) 100%);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-100);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 20px;
}
.hero h1 .highlight {
  color: var(--primary);
  position: relative;
}
.hero p {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image {
  display: flex;
  justify-content: center;
}
.hero-image-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  max-width: 400px;
  width: 100%;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.hero-stat {
  text-align: center;
  padding: 16px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
}
.hero-stat .number {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}
.hero-stat .label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-100);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-200);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
}
.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 20px;
}
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--gray-500);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
}
.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn {
  background: white;
  color: var(--primary-dark);
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 700;
}
.cta-section .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }

/* Footer */
.landing-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 24px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: white;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--gray-400);
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
  font-size: 13px;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
  padding: 24px;
}
.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
}
.auth-card .logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-card .logo h1 {
  font-size: 24px;
  font-weight: 800;
}
.auth-card .logo h1 .vem { color: var(--gray-800); }
.auth-card .logo h1 .engajar { color: var(--primary); }
.auth-card .logo p {
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 4px;
}
.auth-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.auth-card .subtitle {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 32px;
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-500);
}
.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}
.error-msg {
  background: var(--red-light);
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* 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;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 800;
}
.sidebar-logo-text {
  font-size: 16px;
  font-weight: 800;
}
.sidebar-logo-text .vem { color: var(--gray-800); }
.sidebar-logo-text .engajar { color: var(--primary); }

/* User info in sidebar */
.sidebar-user {
  padding: 20px;
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.sidebar-user-name { font-size: 14px; font-weight: 600; }
.sidebar-user-balance { font-size: 12px; color: var(--primary); font-weight: 600; }
.sidebar-user-today { font-size: 11px; color: var(--gray-400); }

/* Progress bars */
.sidebar-progress {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.progress-item {
  margin-bottom: 12px;
}
.progress-item:last-child { margin-bottom: 0; }
.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}
.progress-header .label { font-weight: 600; color: var(--gray-700); }
.progress-header .value { color: var(--primary); font-weight: 600; }
.progress-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Nav links */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-600);
  transition: all 0.2s;
  margin-bottom: 2px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.nav-item:hover { background: var(--gray-50); color: var(--gray-900); }
.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; }
.nav-item .badge {
  margin-left: auto;
  background: var(--primary);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--gray-100);
}
.sidebar-footer .nav-item { color: var(--red); }

/* Main content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px 48px;
  min-height: 100vh;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.page-header h1 {
  font-size: 24px;
  font-weight: 700;
}
.page-header p {
  font-size: 14px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============================================================
   DASHBOARD CARDS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--gray-100);
}
.stat-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.stat-card .icon.green { background: var(--primary-50); }
.stat-card .icon.blue { background: #EFF6FF; }
.stat-card .icon.purple { background: #F5F3FF; }
.stat-card .icon.yellow { background: var(--yellow-light); }
.stat-card .value {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
}
.stat-card .label {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}
.stat-card .link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  margin-top: 8px;
  display: inline-block;
}

/* Missions */
.missions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.mission-card {
  background: white;
  border: 2px solid var(--yellow-light);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.mission-card.completed {
  border-color: var(--primary-200);
  background: var(--primary-50);
}
.mission-card .mission-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.mission-card .mission-reward {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}
.mission-card .mission-progress {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 8px;
}
.mission-card .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 16px;
}

/* Banner */
.banner {
  padding: 20px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.banner-tiktok {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
}
.banner-whatsapp {
  background: white;
  border: 1px solid var(--gray-200);
}
.banner-info h3 { font-size: 16px; font-weight: 700; }
.banner-info p { font-size: 13px; opacity: 0.8; margin-top: 4px; }

/* Wallet header */
.wallet-header {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}
.wallet-header .badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
}
.wallet-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.wallet-header p { opacity: 0.7; font-size: 14px; margin-bottom: 24px; }
.wallet-balance-row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.wallet-balance .amount {
  font-size: 36px;
  font-weight: 900;
}
.wallet-balance .label { font-size: 13px; opacity: 0.7; }
.wallet-min {
  background: rgba(255,255,255,0.1);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.wallet-min .label { opacity: 0.7; }
.wallet-min .value { font-weight: 700; }
.wallet-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-left: auto;
}
.wallet-total-card {
  background: rgba(255,255,255,0.08);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}
.wallet-total-card .label { font-size: 11px; opacity: 0.6; }
.wallet-total-card .value { font-size: 18px; font-weight: 700; margin-top: 4px; }

/* PIX */
.pix-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}
.pix-header .badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
}
.pix-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.pix-header p { opacity: 0.85; font-size: 14px; }

/* Referrals */
.referral-header {
  background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
  border: 2px solid var(--primary-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}
.referral-header .badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-dark);
  background: var(--primary-100);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
}
.referral-header h1 { font-size: 28px; font-weight: 800; color: var(--gray-900); }
.referral-header p { color: var(--gray-600); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* Tables */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: var(--gray-50);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-50);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.status-approved { background: var(--primary-100); color: var(--primary-dark); }
.status-pending, .status-pending_verification { background: var(--yellow-light); color: #92400E; }
.status-verifying { background: #dbeafe; color: #1d4ed8; }
.status-rejected, .status-failed { background: var(--red-light); color: var(--red); }
.status-skipped { background: #f3f4f6; color: #6b7280; }

/* Alert boxes */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-warning {
  background: var(--yellow-light);
  border: 1px solid #FDE68A;
  color: #92400E;
}
.alert-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}
.alert-success {
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--primary-dark);
}
.alert-danger {
  background: var(--red-light);
  border: 1px solid #FECACA;
  color: var(--red);
}

/* Account cards */
.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.account-item:last-child { border-bottom: none; }
.account-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-username { font-weight: 600; font-size: 14px; }
.account-details { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.account-actions { display: flex; gap: 8px; align-items: center; }
.badge-default {
  background: var(--primary-100);
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

/* Referral link */
.referral-link-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.referral-link-box input {
  flex: 1;
  border: none;
  background: none;
  font-size: 14px;
  color: var(--gray-700);
}
.referral-link-box input:focus { outline: none; }

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2147483000; /* acima de qualquer modal */
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast-container > * { pointer-events: auto; }
.toast {
  background: white;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  font-size: 14px;
  animation: slideIn 0.3s ease;
  max-width: 360px;
}
.toast.error { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--yellow); }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* Task cards */
.task-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.task-card:hover { border-color: var(--primary-200); box-shadow: var(--shadow-sm); }
.task-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.task-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--gray-200);
}
.task-avatar img { width: 100%; height: 100%; object-fit: cover; }
.task-details h4 { font-size: 15px; font-weight: 600; }
.task-details p { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.task-reward {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* Mobile Sidebar Toggle */
.mobile-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 24px;
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-content { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .wallet-balance-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .wallet-totals { margin-left: 0; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
  .sidebar.open { transform: translateX(0); z-index: 10000; }
  .sidebar.open + .sidebar-overlay { z-index: 9999; }
  .sidebar { padding-bottom: 80px; }
  .main-content { margin-left: 0; padding: 20px 16px; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .landing-nav .nav-links { display: none; }
  .features-grid, .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .missions-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .auth-card { padding: 32px 24px; }
  .nav-auth .btn:first-child { display: inline-flex; font-size: 12px; padding: 6px 12px; }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* Filters row */
.filters-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: flex-end;
}
.filters-row .form-group { margin-bottom: 0; flex: 1; min-width: 150px; }

/* Performance cards colored */
.perf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .perf-cards { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}
.perf-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.perf-card.green { background: var(--primary-50); border-color: var(--primary-200); }
.perf-card.green .value { color: var(--primary-dark); }
.perf-card.blue { background: #EFF6FF; border-color: #BFDBFE; }
.perf-card.blue .value { color: var(--blue); }
.perf-card.purple { background: #F5F3FF; border-color: #DDD6FE; }
.perf-card.purple .value { color: var(--purple); }
.perf-card.yellow { background: var(--yellow-light); border-color: #FDE68A; }
.perf-card.yellow .value { color: #92400E; }
.perf-card.red { background: var(--red-light); border-color: #FECACA; }
.perf-card.red .value { color: var(--red); }
.perf-card .label { font-size: 11px; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.perf-card .value { font-size: 20px; font-weight: 800; margin-top: 4px; }

/* Account selector */
.account-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.account-selector-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}
.account-selector-btn.active {
  border-color: var(--primary);
  background: var(--primary-50);
}
.account-selector-btn:hover { border-color: var(--primary-light); }
.platform-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.platform-tab {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.platform-tab .tab-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.platform-tab.active {
  background: white;
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}
/* Instagram tab active */
.platform-tab.tab-instagram.active {
  background: linear-gradient(135deg, #fff1f5 0%, #ffffff 100%);
  color: #E1306C;
  box-shadow: 0 2px 8px rgba(225, 48, 108, 0.1);
  border: 1px solid rgba(225, 48, 108, 0.15);
}
/* TikTok tab active */
.platform-tab.tab-tiktok.active {
  background: linear-gradient(135deg, #f0fdf8 0%, #ffffff 100%);
  color: #010101;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ============================================================
   NEW LANDING PAGE STYLES
   ============================================================ */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-left h1 { font-size: 42px; font-weight: 900; line-height: 1.15; color: #1a1a2e; margin-bottom: 16px; }
.hero-sub { font-size: 17px; color: #555; line-height: 1.6; margin-bottom: 20px; }
.hero-bullets { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-bullets span { font-size: 14px; font-weight: 600; color: var(--primary-dark); background: var(--primary-50); padding: 6px 14px; border-radius: 20px; }
.hero-cta .btn { font-size: 16px; padding: 16px 36px; }
.hero-card { background: white; border-radius: 20px; padding: 28px 24px; box-shadow: 0 8px 40px rgba(0,0,0,0.08); border: 1px solid var(--gray-100); }
.hero-card-steps { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-step { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: #f8fafc; width: 100%; }
.hero-step.highlight { background: var(--primary-50); border: 1px solid var(--primary-200); }
.hero-step-icon { font-size: 20px; }
.hero-step span:last-child { font-size: 14px; font-weight: 600; color: #374151; }
.hero-step-arrow { font-size: 16px; color: var(--primary); font-weight: 700; }
.hero-card-note { text-align: center; font-size: 12px; color: #666; margin-top: 14px; }
.hero-indicators { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--gray-100); }
.indicator { font-size: 14px; font-weight: 600; color: #374151; display: flex; align-items: center; gap: 6px; }
.indicator-icon { font-size: 16px; }

/* Sections */
.section-light { padding: 80px 0; background: #f8fafb; }
.section-white { padding: 80px 0; background: white; }
.section-green { padding: 80px 0; background: linear-gradient(135deg, #059669, #10b981); }
.section-center { text-align: center; max-width: 700px; margin: 0 auto; }
.section-center h2 { font-size: 32px; font-weight: 800; color: #1a1a2e; margin-bottom: 16px; }
.section-text { font-size: 16px; color: #555; line-height: 1.7; margin-bottom: 24px; }
.section-highlights { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: #374151; }
.section-badge { display: inline-block; background: var(--primary-50); color: var(--primary-dark); padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; text-align: center; }
.section-title { font-size: 32px; font-weight: 800; color: #1a1a2e; margin-bottom: 48px; text-align: center; }
.section-note { font-size: 14px; color: #666; margin-top: 24px; line-height: 1.6; }

/* Steps */
.steps-grid-new { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-new { text-align: center; padding: 32px 24px; background: #f8fafb; border-radius: 16px; border: 1px solid var(--gray-100); }
.step-number-new { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin: 0 auto 16px; }
.step-new h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1a1a2e; }
.step-new p { font-size: 14px; color: #666; line-height: 1.5; }

/* Task list */
.task-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 500px; margin: 0 auto 24px; text-align: left; }
.task-item { font-size: 15px; color: #374151; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.task-check { color: var(--primary); font-weight: 700; font-size: 16px; }

/* Benefits */
.benefits-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 500px; margin: 0 auto; text-align: left; }
.benefit-item { font-size: 15px; color: #374151; font-weight: 500; display: flex; align-items: center; gap: 8px; padding: 8px 0; }
.benefit-check { color: var(--primary); font-weight: 700; font-size: 16px; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.testimonial { background: white; border: 1px solid var(--gray-100); border-radius: 16px; padding: 24px; text-align: left; }
.testimonial p { font-size: 15px; color: #374151; line-height: 1.5; font-style: italic; margin-bottom: 12px; }
.testimonial-stars { color: #f59e0b; font-size: 16px; }

/* CTA Final */
.section-cta-final { padding: 80px 0; background: linear-gradient(135deg, #059669, #10b981); text-align: center; }
.section-cta-final h2 { font-size: 32px; font-weight: 800; color: white; margin-bottom: 16px; }
.section-cta-final p { font-size: 16px; color: rgba(255,255,255,0.9); margin-bottom: 28px; line-height: 1.6; }
.btn-xl { font-size: 18px !important; padding: 18px 48px !important; }
.btn-white { background: white; color: var(--primary-dark); border: none; font-weight: 700; }
.btn-white:hover { background: #f0fdf4; }
.cta-sub { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 16px; }

/* Footer */
.landing-footer { padding: 32px 0; border-top: 1px solid var(--gray-100); background: white; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.footer-brand { font-size: 18px; font-weight: 800; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: #666; text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 12px; color: #999; text-align: center; }

/* Mobile */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-left h1 { font-size: 28px; }
  .hero-right { order: -1; }
  .hero-indicators { gap: 12px; }
  .indicator { font-size: 12px; }
  .steps-grid-new { grid-template-columns: 1fr; gap: 16px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .task-list, .benefits-list { grid-template-columns: 1fr; }
  .section-center h2, .section-title { font-size: 24px; }
  .section-cta-final h2 { font-size: 24px; }
  .hero-bullets { flex-direction: column; gap: 8px; }
  .footer-grid { flex-direction: column; gap: 16px; text-align: center; }
}
