/* ===================================================
   YehAds PRO - Unified P2P Micro-Task & Escrow Design System
   Typography: Plus Jakarta Sans + JetBrains Mono | Primary: #0866FF
   =================================================== */

:root {
  /* Surfaces */
  --bg-app: #F0F2F5;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F2F4F7;
  --bg-overlay: rgba(0, 0, 0, 0.55);

  /* Borders & Dividers */
  --border-color: #E4E6EB;
  --border-light: #E4E6EB;
  --border-medium: #CED0D4;
  --border-focus: #0866FF;

  /* Typography */
  --text-primary: #050505;
  --text-secondary: #65676B;
  --text-muted: #8A8D91;

  /* Facebook Brand Palette */
  --fb-blue: #0866FF;
  --fb-blue-hover: #1877F2;
  --fb-blue-soft: #E7F3FF;
  --fb-blue-border: rgba(8, 102, 255, 0.25);

  --emerald-primary: #00A859;
  --emerald-soft: #E6F8EF;
  --emerald-border: rgba(0, 168, 89, 0.25);

  --amber-primary: #D97706;
  --amber-soft: #FEF3E6;
  --amber-border: rgba(217, 119, 6, 0.25);

  --rose-primary: #E11D48;
  --rose-soft: #FFE4E6;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 6px 20px rgba(0, 0, 0, 0.1);
  --shadow-sheet: 0 -4px 24px rgba(0, 0, 0, 0.16);

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 14px;
  line-height: 1.45;
}

body {
  font-family: var(--font-main);
  background: #E2E5E9;
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===================================================
   Mobile Viewport Frame (Centered on Desktop)
   =================================================== */
.app-viewport {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.1);
}

/* ===================================================
   Top App Navigation Bar
   =================================================== */
.app-top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.top-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1877F2 0%, #00C6FF 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(24, 119, 242, 0.35);
  flex-shrink: 0;
}

.brand-name-text {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.4px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-pro-pill {
  background: #1877F2;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}

.brand-slogan-text {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 1px;
}

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Compact Sleek Role Chip */
.top-role-chip {
  background: #F1F5F9;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  height: 32px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.top-role-chip .role-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.top-role-chip.adv .role-dot {
  background: #3B82F6;
}

.top-role-chip:active {
  transform: scale(0.96);
  background: #E2E8F0;
}

/* Notification Button */
.icon-circle-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.icon-circle-btn:active {
  transform: scale(0.94);
  background: #E2E8F0;
}

.notification-ping {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-primary);
  border: 1.5px solid #FFFFFF;
}

/* User Avatar / Auth Button */
.top-avatar-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  padding: 0;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.top-avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-auth-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  border: 1.5px solid #FFFFFF;
}

.top-avatar-btn:active {
  transform: scale(0.94);
}

/* ===================================================
   Main Content Layout
   =================================================== */
.main-body-container {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px 85px 14px;
  scroll-behavior: smooth;
}

.view-panel {
  display: none;
  animation: panelFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-panel.active {
  display: block;
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   Hero Promotion Carousel Card (Photographic Multi-Slide)
   =================================================== */
.hero-carousel-card {
  position: relative;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(8, 102, 255, 0.22);
  min-height: 195px;
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
  min-height: 195px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  padding: 16px 16px 20px 16px;
  color: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.98);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  padding-right: 85px; /* Tuyệt đối không đè lên cụm nút điều hướng góc phải */
}

.hero-badge-live {
  font-size: 9.5px;
  font-weight: 800;
  background: rgba(8, 102, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 2.5px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  letter-spacing: 0.5px;
}

.hero-badge-partner {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.4px;
}

.hero-headline {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  padding-right: 45px; /* Tránh sát mép điều hướng */
}

.hero-subline {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.btn-hero-primary {
  background: #FFFFFF;
  color: var(--fb-blue);
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.15s ease;
}

.btn-hero-primary:active {
  transform: scale(0.96);
}

.hero-meta-stat {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Top-Right Slider Navigation Pill (Zero Text Overlap) */
.hero-nav-controls-top {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-nav-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 17px;
  line-height: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.hero-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-nav-btn:active {
  transform: scale(0.9);
}

.hero-nav-counter {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  padding: 0 4px;
  user-select: none;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 5;
}

.hero-carousel-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-carousel-dots .dot.active {
  width: 18px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
}

/* ===================================================
   Daily Quest & Check-in Bar
   =================================================== */
.daily-quest-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.quest-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quest-icon {
  font-size: 22px;
  line-height: 1;
}

.quest-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.quest-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.btn-quest-claim {
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--amber-primary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-quest-claim:active {
  transform: scale(0.96);
}

/* ===================================================
   Compact Wallet Card
   =================================================== */
.compact-wallet-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.w-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
}

.w-amount {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 1px;
}

.w-amount small {
  font-size: 12px;
  color: var(--fb-blue);
  font-weight: 700;
}

.w-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.w-sub .bullet {
  color: var(--border-medium);
}

.text-amber { color: var(--amber-primary); }
.text-emerald { color: var(--emerald-primary); }
.text-blue { color: var(--fb-blue); }

.btn-wallet-action {
  background: var(--fb-blue);
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-wallet-action:active {
  transform: scale(0.96);
}

/* ===================================================
   Home Gateway Portals & Overview Hub
   =================================================== */
.portal-hub-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.portal-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.portal-hub-card.primary {
  border-left: 4px solid var(--fb-blue);
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFD 100%);
}

.portal-hub-card.secondary {
  border-left: 4px solid var(--emerald-primary);
  background: linear-gradient(180deg, #FFFFFF 0%, #F6FAF7 100%);
}

.portal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

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

.portal-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.portal-hub-card.primary .portal-icon-box {
  background: var(--fb-blue-soft);
  color: var(--fb-blue);
}

.portal-hub-card.secondary .portal-icon-box {
  background: var(--emerald-soft);
  color: var(--emerald-primary);
}

.portal-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.portal-hub-card.primary .portal-badge {
  background: var(--fb-blue-soft);
  color: var(--fb-blue);
}

.portal-hub-card.secondary .portal-badge {
  background: var(--emerald-soft);
  color: var(--emerald-primary);
}

.portal-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.portal-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
}

.btn-portal-action {
  width: 100%;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.btn-portal-action.primary {
  background: var(--fb-blue);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(8, 102, 255, 0.25);
}

.btn-portal-action.primary:active {
  transform: scale(0.98);
  background: var(--fb-blue-hover);
}

.btn-portal-action.secondary {
  background: #FFFFFF;
  color: var(--emerald-primary);
  border: 1.5px solid var(--emerald-primary);
}

.btn-portal-action.secondary:active {
  transform: scale(0.98);
  background: var(--emerald-soft);
}

/* How It Works 3 Steps Box */
.how-it-works-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.how-box-header {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.how-steps-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fb-blue-soft);
  color: var(--fb-blue);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--fb-blue-border);
}

.step-content strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.step-content p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 1px;
}

/* Trust Stats Bar */
.trust-stats-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.trust-stat-col {
  padding: 0 4px;
  border-right: 1px solid var(--border-light);
}

.trust-stat-col:last-child {
  border-right: none;
}

.trust-stat-num {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.trust-stat-label {
  font-size: 9.5px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
}

/* Tasks Top Navigation Bar inside Tasks Screen */
.tasks-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.btn-back-home {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--fb-blue);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.btn-back-home:active {
  transform: scale(0.96);
  background: var(--bg-subtle);
}

/* ===================================================
   Platform Channel Navigation Bar & Filter Toolbar
   (Phân chia Facebook, Zalo, TikTok, Google Maps)
   =================================================== */
.feed-hero-header {
  margin-bottom: 12px;
}

.feed-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fb-blue-soft);
  color: var(--fb-blue);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 5px;
  border: 1px solid var(--fb-blue-border);
}

.feed-main-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.feed-sub-heading {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.4;
}

/* Tier 1: Social Platform Selector */
.platform-channel-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px 2px;
  margin-bottom: 10px;
  scrollbar-width: none;
}
.platform-channel-bar::-webkit-scrollbar { display: none; }

.platform-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1.5px solid var(--border-medium);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.platform-tab-btn:hover {
  background: #F8F9FA;
  color: var(--text-primary);
  border-color: #CBD5E1;
}

.platform-tab-btn .tab-count-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  background: #F1F5F9;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

/* Active States with Distinct Platform Brand Colors */
.platform-tab-btn.active {
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

/* All Tab Active */
.platform-tab-btn.tab-all.active {
  background: #1E293B;
  border-color: #1E293B;
  color: #FFFFFF;
}
.platform-tab-btn.tab-all.active .tab-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Facebook Tab */
.platform-tab-btn.tab-fb {
  color: #1877F2;
}
.platform-tab-btn.tab-fb.active {
  background: #1877F2;
  border-color: #1877F2;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}
.platform-tab-btn.tab-fb.active .tab-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Zalo Tab */
.platform-tab-btn.tab-zalo {
  color: #0068FF;
}
.platform-tab-btn.tab-zalo.active {
  background: #0068FF;
  border-color: #0068FF;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 104, 255, 0.35);
}
.platform-tab-btn.tab-zalo.active .tab-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* TikTok Tab */
.platform-tab-btn.tab-tiktok {
  color: #000000;
}
.platform-tab-btn.tab-tiktok.active {
  background: #000000;
  border-color: #000000;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.platform-tab-btn.tab-tiktok.active .tab-count-badge {
  background: #FE2C55;
  color: #FFFFFF;
}

/* Google Maps Tab */
.platform-tab-btn.tab-maps {
  color: #EA4335;
}
.platform-tab-btn.tab-maps.active {
  background: #EA4335;
  border-color: #EA4335;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(234, 67, 53, 0.35);
}
.platform-tab-btn.tab-maps.active .tab-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Tier 2: Compact Secondary Filter Toolbar */
.compact-filter-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.compact-filter-toolbar::-webkit-scrollbar { display: none; }

.compact-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.compact-chip:hover {
  background: #F8F9FA;
  color: var(--text-primary);
}

.compact-chip.active {
  background: var(--fb-blue-soft);
  border-color: var(--fb-blue-border);
  color: var(--fb-blue);
  font-weight: 700;
}

.filter-toolbar-divider {
  width: 1px;
  height: 18px;
  background: var(--border-medium);
  flex-shrink: 0;
  margin: 0 2px;
}

/* Platform Tag on Cards */
.platform-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.1px;
}
.platform-brand-tag.pf-facebook {
  background: #EBF5FF;
  color: #1877F2;
  border: 1px solid rgba(24, 119, 242, 0.25);
}
.platform-brand-tag.pf-zalo {
  background: #EFF6FF;
  color: #0068FF;
  border: 1px solid rgba(0, 104, 255, 0.25);
}
.platform-brand-tag.pf-tiktok {
  background: #F1F5F9;
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.25);
}
.platform-brand-tag.pf-google_maps {
  background: #FEF2F2;
  color: #EA4335;
  border: 1px solid rgba(234, 67, 53, 0.25);
}

/* Zalo, TikTok, Google Maps Simulators */
.zalo-post-simulator {
  background: #F0F4FA;
  border-radius: 8px;
  border: 1px solid #D0DCEE;
  padding: 10px;
  font-size: 11.5px;
}
.zalo-sim-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.zalo-sim-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #0068FF;
}

.tiktok-post-simulator {
  background: #000000;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 10px;
  font-size: 11.5px;
}
.tiktok-sim-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.maps-post-simulator {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px;
  font-size: 11.5px;
}
.maps-sim-stars {
  color: #F59E0B;
  font-size: 14px;
  margin: 4px 0;
}

/* ===================================================
   Rich Visual Campaign Cards (Thẻ Bài Đăng Chuẩn Facebook)
   =================================================== */
.rich-campaign-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rich-campaign-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease;
}

.rich-campaign-card:hover {
  box-shadow: var(--shadow-float);
}

/* Brand Meta Top Header */
.card-brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
}

.brand-left-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

.brand-name-wrap strong {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-icon {
  color: var(--fb-blue);
}

.brand-name-wrap small {
  font-size: 10.5px;
  color: var(--text-secondary);
  display: block;
}

.bounty-payout-badge {
  text-align: right;
}

.bounty-amount {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--emerald-primary);
}

.bounty-sub {
  font-size: 10px;
  color: var(--text-secondary);
  display: block;
}

/* Card Visual Banner Image */
.card-media-banner {
  position: relative;
  width: 100%;
  height: 160px;
  background: #E4E6EB;
  cursor: pointer;
  overflow: hidden;
}

.card-media-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.rich-campaign-card:hover .card-media-banner img {
  transform: scale(1.02);
}

.banner-overlay-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
}

.banner-overlay-loc {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.banner-overlay-match {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 168, 89, 0.92);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Card Body Content */
.card-text-body {
  padding: 12px 14px 10px 14px;
}

.card-headline-title {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 6px;
  cursor: pointer;
}

.card-headline-title:hover {
  color: var(--fb-blue);
}

.card-sample-caption {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.btn-fb-preview-toggle {
  background: var(--fb-blue-soft);
  color: var(--fb-blue);
  border: 1px solid var(--fb-blue-border);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.btn-fb-preview-toggle:hover {
  background: #D8EBFF;
}

.preview-arrow {
  font-size: 8px;
  transition: transform 0.2s ease;
}

.btn-fb-preview-toggle.open .preview-arrow {
  transform: rotate(180deg);
}

.card-fb-preview-box {
  margin-top: 6px;
  margin-bottom: 8px;
  animation: fadeIn 0.2s ease;
}

/* Card Interactive Footer Action */
.card-bottom-actions {
  padding: 10px 14px 12px 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAFAFA;
}

.slots-stat-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.slots-info-text {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.slots-bar {
  width: 85px;
  height: 5px;
  background: #E4E6EB;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.slots-bar-fill {
  height: 100%;
  background: var(--fb-blue);
}

.card-btn-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-card-detail {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-card-detail:hover {
  background: #E4E6EB;
}

.btn-card-claim {
  background: var(--fb-blue);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(8, 102, 255, 0.25);
  white-space: nowrap;
}

.btn-card-claim:active {
  transform: scale(0.96);
  background: var(--fb-blue-hover);
}

/* ===================================================
   Advertiser Studio Analytics Hero & Cards
   =================================================== */
.adv-hero-analytics {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.analytics-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--fb-blue);
  letter-spacing: 0.5px;
}

.analytics-main-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 1px;
}

.status-live-dot {
  font-size: 10px;
  font-weight: 700;
  color: var(--emerald-primary);
  background: var(--emerald-soft);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

.analytics-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metric-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.m-label {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.m-number {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2px 0;
}

.m-sub {
  font-size: 10px;
  font-weight: 600;
}

/* Create Campaign Big Hero Button */
.create-campaign-hero-card {
  background: linear-gradient(135deg, rgba(8, 102, 255, 0.08), rgba(0, 168, 89, 0.08));
  border: 1.5px dashed var(--fb-blue);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 14px;
  transition: all 0.15s ease;
}

.create-campaign-hero-card:active {
  transform: scale(0.98);
  background: var(--fb-blue-soft);
}

.hero-btn-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-plus-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fb-blue);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(8, 102, 255, 0.3);
}

.hero-btn-text strong {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
}

.hero-btn-text p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* Advertiser Subnav Tabs */
.adv-subnav-tabs {
  display: flex;
  background: #E4E6EB;
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 12px;
  gap: 2px;
}

.adv-tab-pill {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.adv-tab-pill.active {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

.alert-count {
  background: var(--amber-primary);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.adv-tab-pane {
  display: none;
}
.adv-tab-pane.active {
  display: block;
}

/* Campaign Stream */
.campaign-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.camp-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  box-shadow: var(--shadow-card);
}

.camp-item-thumb-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.camp-thumb-img {
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.camp-thumb-meta {
  flex: 1;
  min-width: 0;
}

.camp-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 3px;
}

.camp-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.camp-meta-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 4px 0 8px 0;
}

.c-tag {
  font-size: 10px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 1.5px 6px;
  border-radius: var(--radius-xs);
}

.camp-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  margin: 8px 0;
  text-align: center;
}

.camp-stat-cell {
  display: flex;
  flex-direction: column;
}

.camp-stat-cell small {
  font-size: 9.5px;
  color: var(--text-muted);
}

.camp-stat-cell strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.camp-progress-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--border-light);
}

.btn-export-csv {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.15s ease;
}

.btn-export-csv:active {
  transform: scale(0.97);
  background: #E4E6EB;
}

/* Proof Stream */
.proof-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proof-review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  box-shadow: var(--shadow-card);
}

.proof-worker-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}

.proof-worker-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.proof-channel-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.proof-link-text {
  font-size: 11.5px;
  color: var(--fb-blue);
  text-decoration: underline;
  display: block;
  margin-bottom: 10px;
  word-break: break-all;
}

.proof-btn-row {
  display: flex;
  gap: 8px;
}

.btn-proof-approve {
  flex: 1;
  background: var(--emerald-primary);
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-proof-reject {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  color: var(--rose-primary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

/* Leaderboard */
.leaderboard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.leaderboard-header strong {
  font-size: 13.5px;
  display: block;
}

.leaderboard-header p {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  margin-bottom: 10px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leader-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.leader-rank {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  color: var(--fb-blue);
  width: 20px;
}

.leader-info strong {
  font-size: 12px;
  display: block;
}

.leader-info small {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.leader-clicks {
  margin-left: auto;
  text-align: right;
  font-family: var(--font-mono);
}

.leader-clicks strong {
  font-size: 13px;
  color: var(--emerald-primary);
}

.leader-clicks small {
  display: block;
  font-size: 9.5px;
  color: var(--text-muted);
}

/* ===================================================
   Realistic Facebook Post Simulator (Trong Task Detail)
   =================================================== */
.fb-post-simulator {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.fb-sim-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.fb-sim-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.fb-sim-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.fb-sim-meta {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.fb-sim-text {
  padding: 0 12px 10px 12px;
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.45;
  white-space: pre-line;
}

.fb-sim-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.fb-sim-actions {
  display: flex;
  justify-content: space-around;
  padding: 8px 12px;
  border-top: 1px solid var(--border-light);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Objective Radio Cards */
.objective-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.obj-card {
  position: relative;
  cursor: pointer;
}

.obj-card input {
  position: absolute;
  opacity: 0;
}

.obj-box {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  transition: all 0.15s ease;
}

.obj-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 3px;
}

.obj-box strong {
  display: block;
  font-size: 12px;
  color: var(--text-primary);
}

.obj-box small {
  font-size: 10px;
  color: var(--text-secondary);
  display: block;
  margin-top: 2px;
  line-height: 1.3;
}

.obj-card input:checked + .obj-box {
  background: var(--fb-blue-soft);
  border-color: var(--fb-blue);
}

/* Audience Reach Meter Box */
.audience-reach-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 10px;
}

.reach-top-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.reach-meter-bar {
  width: 100%;
  height: 6px;
  background: #E4E6EB;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 4px;
}

.reach-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #0866FF, #00A859);
}

.reach-note {
  font-size: 10px;
  color: var(--text-secondary);
  display: block;
}

/* Spin Text Box */
.btn-generate-spin {
  background: var(--fb-blue-soft);
  border: 1px solid var(--fb-blue-border);
  color: var(--fb-blue);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.spin-preview-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 1.45;
}

.spin-label {
  font-weight: 700;
  color: var(--fb-blue);
  margin-bottom: 5px;
}

.spin-item {
  margin-bottom: 4px;
  color: var(--text-secondary);
}

/* VietQR Payment Modal Box */
.vietqr-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

.qr-image {
  width: 160px;
  height: 160px;
  margin: 0 auto 8px auto;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: block;
}

.qr-amount {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald-primary);
  margin-bottom: 10px;
}

.qr-meta-table {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 8px;
  text-align: left;
  font-size: 11.5px;
}

.qr-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  color: var(--text-secondary);
}

.qr-row strong {
  color: var(--text-primary);
}

.qr-code-tag {
  background: var(--fb-blue-soft);
  color: var(--fb-blue);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
}

.qr-note {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Community Guidelines */
.guide-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}

.guide-item h4 {
  font-size: 12.5px;
  color: var(--fb-blue);
  margin-bottom: 3px;
}

.guide-item p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* History & Profile Views */
.section-heading-box {
  margin-bottom: 12px;
}

.section-heading-box h2 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-heading-box p {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.history-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-card-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-card);
  gap: 8px;
}

.h-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.h-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.h-payout {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-primary);
  flex-shrink: 0;
  white-space: nowrap;
}

.profile-hero-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.hero-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px auto;
}

.hero-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--fb-blue);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

.tier-crown-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
  letter-spacing: 0.3px;
}

.hero-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hero-id-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-secondary);
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
}

.hero-tier-text {
  font-size: 11.5px;
  color: var(--fb-blue);
  font-weight: 700;
  margin: 3px 0 6px 0;
}

.hero-badges-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.hero-pill-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hero-pill-badge.verified {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}
.hero-pill-badge.trust {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

/* Profile Mini Balance Bar */
.profile-balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: left;
}
.p-strip-lbl {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 600;
}
.p-strip-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--emerald-primary);
}
.p-strip-actions {
  display: flex;
  gap: 6px;
}
.btn-strip-wd {
  background: var(--emerald-primary);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-strip-wd:active {
  transform: scale(0.96);
}

/* Creator Performance Analytics Grid */
.creator-stats-box {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.creator-stats-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.creator-stats-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.creator-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.c-metric-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 10px;
  position: relative;
}
.c-metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 3px;
}
.c-metric-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.c-metric-sub {
  font-size: 9.5px;
  color: #10B981;
  font-weight: 700;
  margin-top: 2px;
}

/* Creator Tier Progress & Privileges */
.creator-tier-card {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}
.tier-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.tier-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tier-title-wrap strong {
  font-size: 13.5px;
  color: #FCD34D;
  font-weight: 800;
}
.tier-progress-bar-wrap {
  margin: 10px 0 12px 0;
}
.tier-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}
.tier-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
  border-radius: 10px;
}
.tier-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #94A3B8;
}
.tier-privileges-list {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tier-privilege-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #E2E8F0;
}
.tier-privilege-item span.icon-check {
  color: #10B981;
  font-weight: 800;
  font-size: 12px;
}

/* Connected Social Channels Card */
.connected-channels-card {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.channel-row-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}
.channel-row-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.channel-icon-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.channel-icon-avatar.fb { background: #EBF5FF; color: #1877F2; }
.channel-icon-avatar.zalo { background: #EFF6FF; color: #0068FF; }
.channel-icon-avatar.tiktok { background: #000000; color: #FFFFFF; }
.channel-icon-avatar.maps { background: #FEF2F2; color: #EA4335; }

.channel-info-col {
  flex: 1;
  min-width: 0;
}
.channel-name-txt {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.channel-detail-txt {
  font-size: 10.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.btn-channel-edit {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.btn-channel-edit:hover {
  background: var(--fb-blue-soft);
  color: var(--fb-blue);
  border-color: var(--fb-blue-border);
}

/* Bank Account & Payment Methods Card */
.bank-payment-card {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.bank-item-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bank-logo-text {
  font-weight: 800;
  font-size: 12px;
  color: #1E3A8A;
  margin-bottom: 2px;
}
.bank-acc-no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.bank-holder-name {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.btn-add-bank-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 8px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fb-blue);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-add-bank-row:hover {
  background: var(--fb-blue-soft);
  border-color: var(--fb-blue);
}

/* Settings Menu Card */
.settings-menu-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.menu-group-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  padding: 10px 14px 4px 14px;
}
.menu-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-top: 1px solid var(--border-light);
  cursor: pointer;
}
.menu-item-row:hover {
  background: var(--bg-subtle);
}
.m-icon {
  color: var(--fb-blue);
  display: flex;
  flex-shrink: 0;
}
.m-body {
  flex: 1;
  min-width: 0;
}
.m-body strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}
.m-body small {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 1px;
}
.m-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 16px;
}

/* ===================================================
   Modals & Bottom Sheets
   =================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  overscroll-behavior: contain;
}

.modal-backdrop.show {
  display: flex;
}

.modal-sheet-panel {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border-top: 1px solid var(--border-light);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sheet);
  animation: sheetUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-sheet-panel.fullscreen {
  max-height: 94vh;
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-drag-handle {
  width: 36px;
  height: 4px;
  background: var(--border-medium);
  border-radius: var(--radius-full);
  margin: 10px auto 4px auto;
  cursor: pointer;
}

.sheet-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-light);
  gap: 8px;
}

.sheet-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.sheet-sub {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.btn-sheet-close {
  background: var(--bg-subtle);
  border: none;
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-sheet-close:active {
  transform: scale(0.92);
  background: #E4E6EB;
}

.sheet-body-scroll {
  padding: 14px 16px 24px 16px;
  overflow-y: auto;
}

/* Form Blocks */
.form-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.block-header {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fb-blue-soft);
  color: var(--fb-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
}

.block-content {
  padding: 12px;
}

.input-field {
  margin-bottom: 10px;
}

.input-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.input-field input,
.input-field textarea,
.input-field select {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-field input:focus,
.input-field textarea:focus,
.input-field select:focus {
  border-color: var(--fb-blue);
  box-shadow: 0 0 0 2px rgba(8, 102, 255, 0.15);
}

.field-hint {
  font-size: 10.5px;
  color: var(--text-secondary);
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}

.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.suffix-input {
  position: relative;
  display: flex;
  align-items: center;
}

.suffix-input input {
  padding-right: 44px;
}

.suffix-input span {
  position: absolute;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  pointer-events: none;
}

/* Scope Choice Cards */
.scope-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.scope-card {
  position: relative;
  cursor: pointer;
}

.scope-card input {
  position: absolute;
  opacity: 0;
}

.scope-content {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  transition: all 0.15s ease;
}

.sc-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.sc-desc {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 1px;
  line-height: 1.3;
}

.scope-card input:checked + .scope-content {
  background: var(--fb-blue-soft);
  border-color: var(--fb-blue);
}

.local-fields-wrap {
  padding-top: 8px;
  border-top: 1px dashed var(--border-medium);
}

/* Tag Selector Grid */
.tag-selector-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-select-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-select-pill input {
  display: none;
}

.tag-select-pill.checked,
.tag-select-pill:has(input:checked) {
  background: var(--fb-blue-soft);
  border-color: var(--fb-blue);
  color: var(--fb-blue);
  font-weight: 700;
}

/* Modern Segmented Control Pills (Zero Native Radio Elements) */
.modern-segmented-control {
  display: flex;
  background: #E4E6EB;
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
  width: 100%;
}

.modern-segmented-control .seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}

.modern-segmented-control .seg-btn:hover {
  color: var(--text-primary);
}

.modern-segmented-control .seg-btn.active {
  background: #FFFFFF;
  color: var(--fb-blue);
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Service Type Grid (Đăng bài, Like/Seeding, Xem Live, Review Maps) */
.service-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.service-card {
  position: relative;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 10px 8px 10px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-color: #B0C4DE;
  transform: translateY(-1px);
}

.service-card.active {
  border-color: var(--fb-blue);
  background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
  box-shadow: 0 3px 10px rgba(8, 102, 255, 0.12);
}

.service-card .svc-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  margin-bottom: 5px;
}

.service-card .svc-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 3px;
}

.service-card.active .svc-title {
  color: var(--fb-blue);
}

.service-card .svc-desc {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card .svc-price-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #00A859;
  background: rgba(0, 168, 89, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

/* Modern Channel Cards with Toggle Switches */
.channel-card-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.channel-select-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.channel-select-card:hover {
  background: #F8F9FA;
}

.channel-select-card.checked {
  border-color: var(--fb-blue);
  background: #F0F7FF;
}

.channel-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.channel-icon-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.channel-info-text strong {
  display: block;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 700;
}

.channel-info-text small {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.channel-toggle-switch {
  width: 36px;
  height: 20px;
  background: #CED0D4;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.channel-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.channel-select-card.checked .channel-toggle-switch {
  background: var(--fb-blue);
}

.channel-select-card.checked .channel-toggle-switch::after {
  transform: translateX(16px);
}

/* AI Studio & Anti-Fraud Components */
.ai-smart-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #7C3AED 0%, #0866FF 100%);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.25);
}

.ai-studio-panel {
  background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 100%);
  border: 1px solid #DDD6FE;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-top: 8px;
}

.ai-studio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ai-studio-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #6D28D9;
}

.ai-policy-badge {
  font-size: 9.5px;
  font-weight: 700;
  color: #047857;
  background: #D1FAE5;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.budget-breakdown {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 11.5px;
  margin-top: 8px;
}

.b-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.b-line.total {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 168, 89, 0.3);
  color: var(--text-primary);
  font-weight: 800;
}

.b-line .highlight {
  color: var(--emerald-primary);
}

.btn-solid-primary {
  width: 100%;
  background: var(--fb-blue);
  border: none;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(8, 102, 255, 0.25);
}

.btn-solid-primary:active {
  transform: scale(0.98);
  background: var(--fb-blue-hover);
}

/* AI Verification Overlay (Modal Audit Simulation) */
.ai-audit-modal {
  text-align: center;
  padding: 8px 4px;
}

.ai-scan-orb {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #7C3AED 0%, #0866FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
  animation: aiPulse 1.8s infinite ease-in-out;
}

@keyframes aiPulse {
  0% { transform: scale(1); box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3); }
  50% { transform: scale(1.06); box-shadow: 0 10px 30px rgba(8, 102, 255, 0.5); }
  100% { transform: scale(1); box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3); }
}

.ai-audit-steps {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.ai-audit-step-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.ai-audit-step-row.completed {
  color: #059669;
  font-weight: 700;
}

.ai-audit-step-row.running {
  color: var(--fb-blue);
  font-weight: 700;
}

/* File Drop Box */
.file-drop-box {
  border: 1.5px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  transition: border-color 0.15s ease;
}

.file-drop-box:active {
  border-color: var(--fb-blue);
}

.drop-primary {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.drop-sub {
  font-size: 10.5px;
  color: var(--text-secondary);
  display: block;
}

/* Payout card */
.payout-balance-card {
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  margin-bottom: 12px;
}

.p-caption {
  font-size: 10.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 800;
}

.p-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--emerald-primary);
  margin-top: 2px;
}

/* Notifications Box */
.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--border-light);
}

.notif-item.unread {
  background: var(--fb-blue-soft);
  border-radius: var(--radius-sm);
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fb-blue);
  margin-top: 5px;
  flex-shrink: 0;
}

.notif-dot.read {
  background: var(--border-medium);
}

.notif-item strong {
  font-size: 12.5px;
  color: var(--text-primary);
  display: block;
}

.notif-item p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 2px 0;
}

.notif-item small {
  font-size: 10px;
  color: var(--text-muted);
}

/* ===================================================
   Bottom Dock Navigation Bar
   =================================================== */
.app-bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px)) 10px;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.03);
}

.nav-dock-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.15s ease;
}

.nav-dock-btn:active {
  transform: scale(0.92);
}

.nav-dock-btn.active {
  color: var(--fb-blue);
}

.dock-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-active-dot {
  position: absolute;
  top: -1px;
  right: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose-primary);
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #242526;
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  white-space: nowrap;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===================================================
   Feature 1: 7-Day Daily Streak & Mission Pass Bar
   =================================================== */
.streak-card-box {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  padding: 12px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.streak-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.streak-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.streak-fire-icon {
  color: #F97316;
  font-size: 14px;
}

.streak-status-badge {
  font-size: 10px;
  font-weight: 700;
  color: #EA580C;
  background: #FFF7ED;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.streak-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.streak-day-col {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 2px;
  text-align: center;
  transition: all 0.15s ease;
}

.streak-day-col.done {
  background: #F0FDF4;
  border-color: #86EFAC;
}

.streak-day-col.today {
  background: #EFF6FF;
  border-color: var(--fb-blue);
  box-shadow: 0 0 0 1px var(--fb-blue);
  transform: scale(1.04);
}

.streak-day-label {
  font-size: 9px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 2px;
}

.streak-day-col.today .streak-day-label {
  color: var(--fb-blue);
  font-weight: 800;
}

.streak-day-reward {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-primary);
}

.streak-day-col.done .streak-day-reward {
  color: #16A34A;
}

.streak-day-col.today .streak-day-reward {
  color: var(--fb-blue);
}

/* ===================================================
   Feature 2: Service Filter Pills (1-Tap Filter)
   =================================================== */
.service-filter-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.service-filter-scroll::-webkit-scrollbar {
  display: none;
}

.svc-tab-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.svc-tab-btn:hover {
  background: #F8F9FA;
  color: var(--text-primary);
}

.svc-tab-btn.active {
  background: var(--fb-blue);
  border-color: var(--fb-blue);
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(8, 102, 255, 0.25);
}

/* ===================================================
   Feature 3: Live Companion Countdown Timer Box
   =================================================== */
.live-timer-card {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
}

.live-timer-ring {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.live-timer-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid #1E293B;
  border-top-color: #EF4444;
  animation: timerSpin 1.5s linear infinite;
  pointer-events: none;
}

@keyframes timerSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.timer-digits-box {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: #EF4444;
  margin-bottom: 2px;
}

.timer-sub-txt {
  font-size: 11px;
  color: #94A3B8;
  margin-bottom: 14px;
}

/* ===================================================
   Feature 4: AI Ads ROI Calculator & Simulator
   =================================================== */
.ai-roi-card-box {
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.roi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.roi-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #166534;
}

.roi-slider-row {
  margin-bottom: 12px;
}

.roi-slider-row input[type="range"] {
  width: 100%;
  accent-color: #16A34A;
}

.roi-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #DCFCE7;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.roi-col-val {
  font-size: 13px;
  font-weight: 800;
  color: #16A34A;
}

.roi-col-label {
  font-size: 9.5px;
  color: var(--text-secondary);
}

/* ===================================================
   Feature 5: Live Geo Coverage Heatmap Grid
   =================================================== */
.geo-coverage-box {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.geo-cov-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.geo-cov-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.6s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.commune-chips-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.commune-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-full);
  padding: 3.5px 9px;
  font-size: 10.5px;
  color: var(--text-primary);
}

.commune-chip strong {
  color: var(--fb-blue);
}

/* ===================================================
   Feature 6: Referral / Affiliate Hub Card
   =================================================== */
.referral-hub-card {
  background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(49, 46, 129, 0.2);
}

.ref-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ref-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  margin: 10px 0;
}

.ref-code-text {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: #FDE047;
  letter-spacing: 1px;
}

/* ===================================================
   Task Search & Quick Bounty Tier Dropdown
   =================================================== */
.task-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap svg {
  position: absolute;
  left: 10px;
  color: var(--text-secondary);
  pointer-events: none;
}

.search-input-wrap input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 8px 30px 8px 32px;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.search-input-wrap input:focus {
  border-color: var(--fb-blue);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.15);
}

.btn-clear-search {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
}

.bounty-select-dropdown {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 0 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
  white-space: nowrap;
}

/* ===================================================
   Floating Sticky Active Task Bar
   =================================================== */
.active-task-sticky-bar {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  padding: 0 12px;
  z-index: 90;
  animation: slideUpFloat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFloat {
  from { transform: translate(-50%, 40px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.sticky-task-info {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sticky-task-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.sticky-task-texts {
  min-width: 0;
  flex: 1;
}

.sticky-task-title {
  font-size: 11.8px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-task-timer {
  font-size: 10.2px;
  color: #94A3B8;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-task-timer strong {
  color: #EF4444;
  font-family: var(--font-mono);
}

.sticky-task-timer span {
  color: #10B981;
  font-weight: 800;
  font-family: var(--font-mono);
}

.btn-sticky-submit {
  background: var(--fb-blue);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.4);
  transition: all 0.15s ease;
}

.btn-sticky-submit:active {
  transform: scale(0.96);
}

/* ===================================================
   History & Audit Log Enhancements
   =================================================== */
.history-stats-banner {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
}

.history-stat-col {
  padding: 2px;
}

.h-stat-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}

.h-stat-lbl {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.history-filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.history-filter-tabs::-webkit-scrollbar { display: none; }

.h-tab-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.h-tab-btn.active {
  background: #1E293B;
  color: #FFFFFF;
  border-color: #1E293B;
  box-shadow: 0 2px 8px rgba(30, 41, 59, 0.25);
}

.history-rich-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
}

.history-rich-item:hover {
  border-color: #CBD5E1;
}

.h-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.h-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.h-channel-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 4px;
}

.h-channel-badge.fb { background: #EBF5FF; color: #1877F2; }
.h-channel-badge.zalo { background: #EFF6FF; color: #0068FF; }
.h-channel-badge.tiktok { background: #F1F5F9; color: #0F172A; }
.h-channel-badge.maps { background: #FEF2F2; color: #EA4335; }
.h-channel-badge.bank { background: #ECFDF5; color: #059669; }

.h-tx-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
}

.h-item-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.h-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F8FAFC;
  padding-top: 6px;
  margin-top: 6px;
  font-size: 11px;
}

.h-meta-text {
  color: var(--text-secondary);
}

.btn-receipt-view {
  background: transparent;
  border: none;
  color: var(--fb-blue);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

/* ===================================================
   YehAds Brand & Channel Safety Quota Strip
   =================================================== */
.channel-safety-strip {
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.channel-safety-strip::-webkit-scrollbar { display: none; }

.safety-strip-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.safety-pills-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.safety-pill-tag {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.safety-pill-tag.cooling {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #B45309;
}

.safety-pill-tag.normal {
  color: var(--text-secondary);
}

.trust-score-badge {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===================================================
   YehAds Auth Modal Tabs & Forms
   =================================================== */
.auth-segmented-switch {
  display: flex;
  background: #F1F5F9;
  padding: 3px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.auth-seg-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 8px 0;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-seg-btn.active {
  background: #FFFFFF;
  color: var(--fb-blue);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-role-chooser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-role-card {
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #FFFFFF;
}

.auth-role-card.selected {
  border-color: var(--fb-blue);
  background: #EFF6FF;
}

.auth-role-card .role-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.auth-role-card .role-sub {
  font-size: 10px;
  color: var(--text-secondary);
}



/* ===================================================
   YehAds PRO - Modal Sheet & Form Controls Precision Styling
   =================================================== */

.sheet-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 18px !important;
  border-bottom: 1px solid #F1F5F9 !important;
  margin-bottom: 16px !important;
  position: relative !important;
}

.sheet-title-row h3 {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--text-primary, #0F172A) !important;
  letter-spacing: -0.3px !important;
}

.btn-close-modal {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
  color: #64748B !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

.btn-close-modal:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

/* Form Groups & Inputs */
.form-group-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-bottom: 14px !important;
  text-align: left !important;
  width: 100% !important;
}

.form-label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  letter-spacing: -0.2px !important;
}

.form-input {
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  padding: 11px 14px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 10px !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  -webkit-appearance: none !important;
}

.form-input:focus {
  background: #FFFFFF !important;
  border-color: #0866FF !important;
  box-shadow: 0 0 0 3px rgba(8, 102, 255, 0.15) !important;
}

.form-input::placeholder {
  color: #94A3B8 !important;
  font-weight: 400 !important;
}

/* Primary Button Solid */
.btn-solid-primary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 12px 18px !important;
  background: linear-gradient(135deg, #0866FF 0%, #0052CC 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(8, 102, 255, 0.35) !important;
  transition: all 0.15s ease !important;
}

.btn-solid-primary:active {
  transform: scale(0.98) !important;
}

/* ===================================================
   Modern Premium Location Header (Tasks Marketplace)
   =================================================== */
.tasks-location-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 12px;
}

.loc-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.loc-badge-premium:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
}

.loc-badge-premium:active {
  transform: scale(0.96);
}

.loc-pin-icon {
  font-size: 13px;
  line-height: 1;
}

.loc-label-muted {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

.loc-text-name {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
}

.loc-change-tag {
  background: #0084FF;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
}

.tasks-active-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
}


/* ===================================================
   YEHADS PRO v31 — COMPLETE COMPONENT & ZERO-OVERLAP SYSTEM
   =================================================== */

/* 1. Layout, Hero Carousel & Wallet Anti-Collision */
.main-body-container {
  padding: 12px 14px 96px 14px;
}

.hero-carousel-card,
.hero-slides-wrapper {
  min-height: 206px;
}

.hero-slide {
  padding: 16px 16px 30px 16px;
}

.hero-slide.active {
  min-height: 206px;
}

.hero-carousel-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.hero-cta-row {
  gap: 8px;
  flex-wrap: wrap;
}

.compact-wallet-card {
  gap: 10px;
}

.wallet-left-col {
  min-width: 0;
  flex: 1;
}

.w-sub {
  flex-wrap: wrap;
  row-gap: 2px;
}

.wallet-right-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.ref-top-row {
  gap: 8px;
  align-items: flex-start;
}

/* 2. Tasks Location Bar, Search Row & YehAds Shield Pills */
.tasks-location-header {
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
}

.loc-badge-premium {
  min-width: 0;
  max-width: 100%;
  gap: 5px;
}

.loc-text-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.tasks-active-indicator {
  white-space: nowrap;
  flex-shrink: 0;
}

.task-search-row {
  align-items: center;
  gap: 8px;
}

.search-input-wrap {
  min-width: 0;
  flex: 1;
}

.search-input-wrap input {
  height: 36px;
  padding: 0 28px 0 31px;
  font-size: 12px;
}

.bounty-select-dropdown {
  height: 36px;
  padding: 0 11px;
  flex-shrink: 0;
  max-width: 138px;
  background-color: #FFFFFF;
}

.safety-pill-tag.cooldown,
.safety-pill-tag.cooling {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #B45309;
}

.safety-pill-tag.maxed {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #B91C1C;
}

.streak-day-col.claimed,
.streak-day-col.done {
  background: #ECFDF5;
  border-color: #86EFAC;
}

.streak-day-col.claimed .streak-day-reward,
.streak-day-col.done .streak-day-reward {
  color: #059669;
}

/* 3. Worker Marketplace Campaign Feed Cards */
.campaign-feed-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.campaign-feed-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-float);
}

.c-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.c-brand-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.c-brand-row > div {
  min-width: 0;
  flex: 1;
}

.c-brand-avatar {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  background: #F1F5F9;
}

.c-brand-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.25;
}

.c-brand-name span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.c-brand-name svg {
  flex-shrink: 0;
}

.c-meta-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 6px;
  line-height: 1.25;
  white-space: nowrap;
}

.meta-pill.local {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
}

.meta-pill.national {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
}

.c-bounty-box {
  text-align: right;
  flex-shrink: 0;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 5px 9px;
  border-radius: 10px;
}

.c-bounty-amount {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: #059669;
  line-height: 1.15;
  white-space: nowrap;
}

.c-bounty-unit {
  font-size: 9.5px;
  font-weight: 600;
  color: #047857;
  margin-top: 1px;
  white-space: nowrap;
}

.c-card-headline {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.15px;
}

/* AI Spin Variant Picker Bar */
.variant-picker-bar {
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.vp-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #6D28D9;
}

.vp-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.vp-tab {
  background: #FFFFFF;
  border: 1px solid #DDD6FE;
  color: #5B21B6;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vp-tab.active {
  background: #6D28D9;
  border-color: #6D28D9;
  color: #FFFFFF;
}

/* 4. Native Social Platform Simulators (FB, Zalo, TikTok, Google Maps) */
/* 4A. Facebook Post Simulator */
.sim-post-fb {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.sim-fb-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px 8px;
}

.sim-fb-header img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #E2E8F0;
  flex-shrink: 0;
}

.sim-fb-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sim-fb-meta strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.sim-fb-meta span {
  font-size: 10px;
  color: var(--text-secondary);
}

.sim-fb-caption {
  padding: 0 12px 9px;
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.45;
}

.sim-fb-media {
  border-top: 1px solid #F1F5F9;
  border-bottom: 1px solid #F1F5F9;
  background: #F8FAFC;
}

.sim-fb-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.sim-fb-linkbox {
  padding: 8px 12px;
  background: #F0F2F5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sim-fb-linkbox small {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.sim-fb-linkbox strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.sim-fb-actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #FFFFFF;
}

/* 4B. Zalo Diary & Group Simulator */
.sim-post-zalo {
  background: #F0F7FF;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.sim-zalo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.zalo-tag-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #0068FF;
  background: #FFFFFF;
  border: 1px solid #93C5FD;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.sim-zalo-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 9px;
  border: 1px solid #DBEAFE;
}

.sim-zalo-body img {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.sim-zalo-texts {
  flex: 1;
  min-width: 0;
}

.sim-zalo-texts p {
  font-size: 11.5px;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sim-zalo-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #0068FF;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 4C. TikTok Creator & Livestream Simulator */
.sim-post-tiktok {
  position: relative;
  height: 215px;
  border-radius: 12px;
  overflow: hidden;
  background: #0F172A;
  margin-bottom: 10px;
}

.sim-tt-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.8;
}

.sim-tt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.1) 42%, rgba(15, 23, 42, 0.9) 100%);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #FFFFFF;
}

.sim-tt-badge {
  align-self: flex-start;
  background: rgba(254, 44, 85, 0.92);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

.sim-tt-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.sim-tt-left {
  flex: 1;
  min-width: 0;
}

.sim-tt-left strong {
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  display: block;
  margin-bottom: 2px;
}

.sim-tt-left p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sim-tt-left p strong {
  display: inline;
  font-size: 11px;
  color: #38BDF8;
}

.sim-tt-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tt-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #FFFFFF;
}

.tt-act small {
  font-size: 9.5px;
  font-weight: 700;
}

/* 4D. Google Maps 5-Star Review Simulator */
.sim-post-tg {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.sim-tg-bubble {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 10px;
  border: 1px solid #FEF3C7;
}

.sim-tg-channel {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin-bottom: 7px;
  gap: 6px;
}

.sim-tg-bubble img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 8px;
}

.sim-tg-bubble p {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 9px;
}

.sim-tg-btn {
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Suggested Groups & Quick Tools & Card Footer */
.suggested-groups-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.sg-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.sg-chip {
  font-size: 10px;
  font-weight: 600;
  color: #334155;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 2px 8px;
  border-radius: 999px;
}

.campaign-feed-card.is-claimed-active {
  border: 1.5px solid #3B82F6;
  box-shadow: 0 8px 24px rgba(8, 102, 255, 0.1);
}

.c-task-req-strip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.4;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  margin-bottom: 10px;
}

.c-task-req-strip svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #0866FF;
}

.c-task-req-strip.live {
  background: #FEF2F2;
  border-color: #FECACA;
  color: #991B1B;
}
.c-task-req-strip.live svg { color: #DC2626; }

.c-task-req-strip.comment {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}
.c-task-req-strip.comment svg { color: #00A859; }

.c-task-req-strip.map {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}
.c-task-req-strip.map svg { color: #D97706; }

.claimed-task-workbench {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 11px;
}

.ctw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #1D4ED8;
}

.ctw-head span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ctw-detail-link {
  background: none;
  border: none;
  color: #0866FF;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.c-quick-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.claimed-task-workbench .c-quick-tools {
  margin-bottom: 0;
}

.btn-quick-tool {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 6.5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-quick-tool.primary-tool {
  background: #0866FF;
  border-color: #0866FF;
  color: #FFFFFF;
}

.btn-quick-tool.primary-tool:hover {
  background: #0052CC;
  border-color: #0052CC;
  color: #FFFFFF;
}

.btn-quick-tool:hover {
  background: #EBF5FF;
  border-color: #93C5FD;
  color: var(--fb-blue);
}

.c-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.c-slot-progress {
  flex: 1;
  min-width: 0;
}

.slot-lbl-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  gap: 6px;
}

.slot-lbl-row strong {
  color: var(--text-primary);
}

.slot-bar-bg {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.slot-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0866FF 0%, #00A859 100%);
  border-radius: 999px;
}

.btn-card-claim.done {
  background: #E2E8F0;
  color: #64748B;
  box-shadow: none;
  cursor: default;
}

.btn-card-claim.submit-now {
  background: linear-gradient(135deg, #00A859 0%, #047857 100%);
  box-shadow: 0 3px 10px rgba(0, 168, 89, 0.3);
}

/* 5. Profile Social Channels, Bank Cards & Hero Anti-Overlap */
.hero-name {
  flex-wrap: wrap;
}

.profile-balance-strip {
  gap: 8px;
  flex-wrap: wrap;
}

.tier-header-row {
  gap: 8px;
}

#profTierCardTag {
  white-space: nowrap;
  flex-shrink: 0;
}

.tier-progress-label {
  gap: 8px;
  flex-wrap: wrap;
}

.social-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
}

.social-channel-row:first-child {
  padding-top: 2px;
}

.social-channel-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sc-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.sc-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.sc-meta strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-meta span {
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.sc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.bank-account-item,
.bank-selector-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 10px;
}

.bank-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.bank-logo-pill,
.bank-logo-box {
  min-width: 44px;
  height: 36px;
  padding: 0 8px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0866FF 0%, #1E40AF 100%);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.bank-meta,
.bank-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.bank-meta strong,
.bank-info strong {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bank-meta span,
.bank-info span {
  font-size: 10.5px;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-add-bank-row {
  min-height: 40px;
  padding: 10px 12px;
  line-height: 1.3;
  background: #F8FAFC;
}

/* 6. Advertiser Studio Subnav Tabs, Campaign Cards, Proofs & Leaderboard */
.adv-subnav-tabs {
  padding: 4px;
  gap: 4px;
  border-radius: 10px;
}

.adv-tab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  font-size: 11.5px;
  border-radius: 7px;
  white-space: nowrap;
  min-width: 0;
}

.tab-pill-count {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.3;
}

.adv-tab-pill.active .tab-pill-count {
  background: #EBF5FF;
  color: var(--fb-blue);
}

.alert-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 17px;
  padding: 0 5px;
  line-height: 1;
}

.adv-camp-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: var(--shadow-card);
}

.adv-camp-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.adv-camp-top > div {
  min-width: 0;
  flex: 1;
}

.adv-camp-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
}

.status-pill-live {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.adv-camp-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.proof-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: var(--shadow-card);
}

.proof-user-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.lb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
}

.lb-rank {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #E2E8F0;
  color: #334155;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lb-rank.top-1 {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
}

.lb-rank.top-2 {
  background: linear-gradient(135deg, #64748B, #475569);
  color: #FFFFFF;
}

.lb-rank.top-3 {
  background: linear-gradient(135deg, #B45309, #92400E);
  color: #FFFFFF;
}

.lb-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.lb-user-meta strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lb-user-meta span {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.lb-score {
  text-align: right;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.lb-score strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--fb-blue);
}

.lb-score small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #059669;
}

/* 7. Financial History & Audit Ledger Cards */
.history-audit-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.history-audit-card:hover {
  border-color: #93C5FD;
}

.history-audit-card:active {
  transform: scale(0.99);
}

.h-audit-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.h-channel-badge.tg {
  background: #FEF2F2;
  color: #EA4335;
}

.h-tx-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.h-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.h-status-pill.paid {
  background: #ECFDF5;
  color: #047857;
}

.h-status-pill.pending {
  background: #FFFBEB;
  color: #B45309;
}

.h-status-pill.withdrawn {
  background: #EBF5FF;
  color: #0866FF;
}

.h-audit-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.h-audit-main > div:first-child {
  min-width: 0;
  flex: 1;
}

.h-audit-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.h-audit-amount {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.h-audit-amount.positive {
  color: #059669;
}

.h-audit-amount.withdraw {
  color: #0866FF;
}

.h-audit-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #F1F5F9;
  font-size: 10.5px;
  color: var(--text-secondary);
}

/* 8. Modals (.open), Toast (.visible), Tag Pills, Notifications & AI Audit */
.modal-backdrop.open,
.modal-backdrop.show {
  display: flex;
}

.toast-notice {
  max-width: min(408px, calc(100vw - 28px));
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.toast-notice.visible,
.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.active-reminder-box {
  background: #F0F7FF;
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 12px;
}

.ai-audit-step-row.done,
.ai-audit-step-row.completed {
  color: #059669;
  font-weight: 700;
}

.step-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.tag-pill input {
  display: none;
}

.tag-pill:has(input:checked) {
  background: var(--fb-blue-soft);
  border-color: var(--fb-blue);
  color: var(--fb-blue);
  font-weight: 700;
}

.notif-row {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #F1F5F9;
  margin-bottom: 8px;
  background: #FFFFFF;
}

.notif-row.unread {
  background: #F0F7FF;
  border-color: #BFDBFE;
}

.notif-row strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.notif-row p {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 9. Unified SVG Button Flex Alignment & Subpage Shell */
.compact-chip,
.btn-solid-primary,
.btn-quick-tool,
.btn-card-claim,
.btn-wallet-action,
.seg-btn,
.meta-pill,
.sim-fb-actions span,
.commune-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.commune-chip {
  justify-content: flex-start;
}

.btn-solid-primary {
  width: 100%;
  gap: 7px;
}

.subpage-hero-banner {
  background: linear-gradient(135deg, #0866FF 0%, #4F46E5 100%);
  border-radius: 16px;
  padding: 20px 18px;
  color: #FFFFFF;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -8px rgba(8, 102, 255, 0.35);
}

.subpage-hero-banner .sp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.subpage-hero-banner h1 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 6px 0;
}

.subpage-hero-banner p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.subpage-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.subpage-card h2 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px 0;
}

.subpage-card p,
.subpage-card li {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.subpage-card ul {
  margin: 6px 0 0 0;
  padding-left: 18px;
}

.subpage-card li {
  margin-bottom: 5px;
}

/* ===================================================
   10. Tasks Control Deck (Gọn gàng, Khoa học, Dễ thao tác)
   + Video Media Simulators & Gemini AI Badges
   =================================================== */
.tasks-control-deck {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.tcd-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.tcd-title-group {
  min-width: 0;
  flex: 1;
}

.tcd-heading-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tcd-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.tcd-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
  line-height: 1.3;
}

.tcd-loc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 178px;
  padding: 5px 6px 5px 9px;
  border-radius: 999px;
  border: 1px solid #BFDBFE;
  background: #EFF6FF;
  color: #1E40AF;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.tcd-loc-btn:hover {
  background: #DBEAFE;
}

.tcd-loc-btn svg {
  color: #0866FF;
  flex-shrink: 0;
}

.tcd-loc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 112px;
}

.tcd-loc-edit {
  background: #0866FF;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.tasks-control-deck .task-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 7px;
  margin-bottom: 9px;
  align-items: center;
}

.tasks-control-deck .search-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
}

.tasks-control-deck .search-input-wrap:focus-within {
  background: #FFFFFF;
  border-color: var(--fb-blue);
  box-shadow: 0 0 0 2px rgba(8, 102, 255, 0.12);
}

.tasks-control-deck .search-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-primary);
}

.tasks-control-deck .bounty-select-dropdown {
  width: 100%;
  height: 36px;
  padding: 0 26px 0 10px;
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  background-color: #F8FAFC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 13px 13px;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tasks-control-deck .platform-channel-bar {
  gap: 6px;
  padding: 1px 1px 4px 1px;
  margin-bottom: 6px;
}

.tasks-control-deck .platform-tab-btn {
  padding: 6px 11px;
  font-size: 11.5px;
  gap: 5px;
}

.tasks-control-deck .compact-filter-toolbar {
  gap: 5px;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.tasks-control-deck .channel-safety-strip {
  margin: 0;
  padding: 6px 9px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.tasks-control-deck .safety-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #334155;
}

.tasks-control-deck .safety-pills-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.tasks-control-deck .safety-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
}

/* Video Media Rendering inside Simulators & Modals */
.sim-fb-media video,
.zalo-post-simulator video,
.tiktok-post-simulator video,
.maps-post-simulator video,
.task-video-player {
  width: 100%;
  max-height: 230px;
  object-fit: cover;
  border-radius: 8px;
  background: #0F172A;
  display: block;
}

.btn-download-media-asset {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
  background: #EFF6FF;
  color: #0866FF;
  border: 1px solid #BFDBFE;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-download-media-asset:hover {
  background: #DBEAFE;
}

.ai-verdict-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.ai-verdict-chip.safe {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.ai-verdict-chip.review {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.ai-verdict-chip.violation {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

/* ==========================================================================
   CATEGORY-SMART CAMPAIGN BUILDER, GUIDED WORKER FLOW & MULTI-LAYER SCORECARD
   ========================================================================== */
.camp-blueprint-banner {
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.camp-blueprint-banner .cbp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.camp-blueprint-banner .cbp-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #1D4ED8;
  text-transform: uppercase;
}

.camp-blueprint-banner .cbp-shield {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 2px 7px;
  border-radius: 999px;
}

.camp-blueprint-banner .cbp-desc {
  font-size: 11.2px;
  line-height: 1.45;
  color: #334155;
}

.camp-special-config {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.camp-special-config .csc-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 8px;
}

.camp-inline-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.4;
  color: #334155;
  cursor: pointer;
  padding-top: 4px;
}

.camp-inline-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--fb-blue);
  flex-shrink: 0;
}

.proof-checklist-card {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 12px;
  font-size: 11.2px;
  line-height: 1.45;
  color: #14532D;
}

.guided-step-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.guided-step-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #1E293B;
}

.guided-step-badge {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--fb-blue);
  color: #FFF;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-sticky-open {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sticky-open:hover {
  background: rgba(255, 255, 255, 0.24);
}

.audit-scorecard-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.audit-signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
}

.audit-signal-chip.ok {
  background: #ECFDF5;
  color: #065F46;
  border-color: #A7F3D0;
}

.audit-signal-chip.warn {
  background: #FFFBEB;
  color: #92400E;
  border-color: #FDE68A;
}

.audit-signal-chip.code {
  font-family: var(--font-mono);
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

/* ===================================================
   Progressive Dynamic Viewport (dvh) & Narrow Mobile Polish
   =================================================== */
@supports (min-height: 100dvh) {
  body,
  .app-viewport {
    min-height: 100dvh;
  }
  .modal-sheet-panel {
    max-height: 88dvh;
  }
}

body:has(#activeTaskStickyBar[style*="block"]) .main-body-container {
  padding-bottom: 138px;
}

@media (max-width: 380px) {
  .btn-sticky-open,
  .btn-sticky-submit {
    padding: 6px 9px;
    font-size: 10.8px;
  }
}
