/**
 * AfriAds Studio 2.0 - Ultra-Slick, High-Performance, Fully Responsive Design System
 * Inspired by modern fintech/creator dashboards (Deep Obsidian Teal #0B1E22 + Emerald #0FA87F + Crisp Surfaces)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  /* Colors */
  --afri-bg-app: #F4F7F6;
  --afri-surface-card: #FFFFFF;
  --afri-surface-subtle: #F8FAFB;
  --afri-border: #E6ECEB;
  --afri-border-subtle: #F1F5F9;
  
  --afri-text-main: #0F172A;
  --afri-text-secondary: #475569;
  --afri-text-muted: #94A3B8;

  /* Sidebar Deep Obsidian Teal */
  --afri-sidebar-bg: #0B1E22;
  --afri-sidebar-surface: #11282D;
  --afri-sidebar-border: rgba(255, 255, 255, 0.07);
  --afri-sidebar-text: #FFFFFF;
  --afri-sidebar-text-active: #FFFFFF;
  --afri-sidebar-active-bg: #0FA87F;
  --afri-sidebar-hover: #142D33;

  /* Accents */
  --afri-emerald: #0FA87F;
  --afri-emerald-hover: #0C8B68;
  --afri-emerald-light: #E6F7F2;
  --afri-emerald-border: #BCEBDE;

  --afri-blue: #3B82F6;
  --afri-blue-light: #EFF6FF;
  --afri-blue-border: #BFDBFE;

  --afri-amber: #F59E0B;
  --afri-amber-light: #FEF3C7;
  --afri-amber-border: #FDE68A;

  --afri-purple: #8B5CF6;
  --afri-purple-light: #F5F3FF;
  --afri-purple-border: #DDD6FE;

  --afri-pink: #EC4899;
  --afri-pink-light: #FDF2F8;
  --afri-pink-border: #FBCFE8;

  --afri-coral: #F97316;
  --afri-coral-light: #FFF7ED;
  --afri-coral-border: #FFEDD5;

  --afri-red: #EF4444;
  --afri-red-light: #FEF2F2;
  --afri-red-border: #FECACA;

  /* Dimensions */
  --afri-sidebar-width: 260px;
  --afri-header-height: 70px;
  --afri-radius-sm: 8px;
  --afri-radius-md: 12px;
  --afri-radius-lg: 16px;
  --afri-radius-xl: 18px;
  --afri-radius-full: 9999px;

  /* Shadows */
  --afri-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
  --afri-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --afri-shadow-md: 0 6px 18px -2px rgba(0, 0, 0, 0.05);
  --afri-shadow-lg: 0 14px 28px -4px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   GLOBAL RESETS & HIDE SCROLLBARS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Hide scrollbars across the platform while keeping full scroll functionality */
html,
body,
.sidebar-wrapper,
#simple-bar,
.sidebar-main,
.page-body,
.afri-table-wrapper,
.custom-scrollbar {
  scrollbar-width: none !important; /* Firefox */
  -ms-overflow-style: none !important; /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.sidebar-wrapper::-webkit-scrollbar,
#simple-bar::-webkit-scrollbar,
.sidebar-main::-webkit-scrollbar,
.page-body::-webkit-scrollbar,
.afri-table-wrapper::-webkit-scrollbar,
.custom-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--afri-bg-app) !important;
  color: var(--afri-text-main) !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Manrope', 'Inter', sans-serif !important;
  color: var(--afri-text-main);
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* ==========================================================================
   DESKTOP & RESPONSIVE APP SHELL LAYOUT
   ========================================================================== */
.page-wrapper.compact-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--afri-bg-app);
}

/* Sidebar Wrapper Fixed */
.sidebar-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: var(--afri-sidebar-width) !important;
  height: 100vh !important;
  background: var(--afri-sidebar-bg) !important;
  border-right: 1px solid var(--afri-sidebar-border) !important;
  z-index: 1040 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  transition: transform 0.25s ease-in-out !important;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.12) !important;
}

.sidebar-wrapper .logo-wrapper {
  padding: 22px 20px !important;
  border-bottom: 1px solid var(--afri-sidebar-border) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--afri-sidebar-bg);
}

.sidebar-brand-text {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-brand-text span {
  color: var(--afri-emerald);
}

.sidebar-wrapper,
.sidebar-wrapper nav,
.sidebar-wrapper ul,
.sidebar-wrapper li,
.sidebar-wrapper a,
.sidebar-wrapper a.sidebar-link,
.sidebar-wrapper .sidebar-link,
.sidebar-wrapper .sidebar-title,
.sidebar-wrapper .sidebar-link span,
.sidebar-wrapper .sidebar-title span,
.sidebar-wrapper .sidebar-list a span,
.sidebar-wrapper .sidebar-list a {
  color: #FFFFFF !important;
}

.sidebar-wrapper .sidebar-link svg,
.sidebar-wrapper .sidebar-link i,
.sidebar-wrapper .sidebar-title svg,
.sidebar-wrapper .sidebar-title i,
.sidebar-wrapper a svg,
.sidebar-wrapper a i {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
  fill: none;
}

.sidebar-wrapper .sidebar-section-title {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #CBD5E1 !important;
  padding: 18px 20px 6px 20px !important;
  list-style: none;
}

.sidebar-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sidebar-list {
  padding: 2px 14px !important;
  list-style: none !important;
}

.sidebar-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px 14px !important;
  border-radius: var(--afri-radius-md) !important;
  color: #FFFFFF !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.16s ease-in-out !important;
}

.sidebar-link:hover {
  background-color: var(--afri-sidebar-hover) !important;
  color: #FFFFFF !important;
}

.sidebar-link:hover svg, .sidebar-link:hover i, .sidebar-link:hover span {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

.sidebar-link.active,
.sidebar-wrapper .sidebar-link.active,
.sidebar-wrapper .sidebar-list a.sidebar-link.active {
  background: var(--afri-sidebar-active-bg) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(15, 168, 127, 0.35) !important;
}

.sidebar-link.active svg,
.sidebar-link.active i,
.sidebar-link.active span {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* TOTAL EXTINCTION OF SCROLLBARS */
::-webkit-scrollbar,
*::-webkit-scrollbar,
.sidebar-wrapper::-webkit-scrollbar,
.simplebar-track,
.simplebar-track.simplebar-vertical,
.simplebar-track.simplebar-horizontal,
.simplebar-scrollbar,
.simplebar-scrollbar:before {
  display: none !important;
  width: 0px !important;
  height: 0px !important;
  max-width: 0px !important;
  max-height: 0px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  background: transparent !important;
}

/* Sidebar Pro Upgrade Widget */
.afri-pro-widget {
  background: linear-gradient(180deg, #11282D 0%, #0D1F23 100%);
  border: 1px solid rgba(15, 168, 127, 0.25);
  border-radius: var(--afri-radius-lg);
  padding: 16px 14px;
  margin: 20px 14px 12px 14px;
  text-align: center;
}

.afri-pro-crown {
  width: 34px;
  height: 34px;
  background: rgba(15, 168, 127, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px auto;
  color: var(--afri-emerald);
}

.afri-pro-title {
  color: #FFFFFF;
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.afri-pro-desc {
  color: #94A3B8;
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.afri-pro-btn {
  background: var(--afri-emerald);
  color: #FFFFFF;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: var(--afri-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-decoration: none;
  transition: background 0.15s ease;
}

.afri-pro-btn:hover {
  background: var(--afri-emerald-hover);
  color: #FFFFFF;
}

/* Top Header Fixed - FULL WIDTH */
.page-wrapper .page-header,
.page-header,
.page-wrapper.compact-wrapper .page-header {
  position: fixed !important;
  top: 0 !important;
  left: var(--afri-sidebar-width) !important;
  right: 0 !important;
  width: calc(100% - var(--afri-sidebar-width)) !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  height: var(--afri-header-height) !important;
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--afri-border) !important;
  padding: 0 32px !important;
  z-index: 1030 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  box-sizing: border-box !important;
}

.page-header .header-wrapper,
.page-wrapper.compact-wrapper .page-header .header-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
}

/* Page Body Wrapper (Content Canvas) */
.page-wrapper.compact-wrapper .page-body-wrapper {
  margin-left: var(--afri-sidebar-width) !important;
  padding-top: var(--afri-header-height) !important;
  background-color: var(--afri-bg-app) !important;
  min-height: 100vh !important;
  width: calc(100% - var(--afri-sidebar-width)) !important;
  max-width: none !important;
}

.page-wrapper.compact-wrapper .page-body-wrapper .page-body {
  padding: 28px 32px 48px 32px !important;
  background-color: var(--afri-bg-app) !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Hide Legacy Clunky Footers */
.footer {
  display: none !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERRIDES (< 992px)
   ========================================================================== */
@media (max-width: 991.98px) {
  .sidebar-wrapper {
    transform: translateX(-100%) !important;
  }

  .sidebar-wrapper.sidebar-open {
    transform: translateX(0) !important;
  }

  .page-wrapper .page-header,
  .page-header,
  .page-wrapper.compact-wrapper .page-header {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 62px !important;
    padding: 0 16px !important;
  }

  .page-wrapper.compact-wrapper .page-body-wrapper {
    margin-left: 0 !important;
    padding-top: 62px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-wrapper.compact-wrapper .page-body-wrapper .page-body {
    padding: 18px 16px 84px 16px !important;
  }

  .afri-search-pill {
    display: none !important;
  }
}

/* ==========================================================================
   HEADER ACTIONS & SEARCH PILL
   ========================================================================== */
.afri-search-pill {
  position: relative;
  display: flex;
  align-items: center;
  width: 340px;
}

.afri-search-pill input {
  width: 100%;
  height: 42px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--afri-radius-full);
  padding: 0 46px 0 38px;
  font-size: 13.5px;
  color: var(--afri-text-main);
  transition: all 0.15s ease;
}

.afri-search-pill input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--afri-emerald);
  box-shadow: 0 0 0 3px rgba(15, 168, 127, 0.12);
}

.afri-search-pill .search-icon {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  stroke: #94A3B8;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.afri-search-pill .kbd-shortcut {
  position: absolute;
  right: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  padding: 2px 6px;
  line-height: 1;
}

.afri-header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  position: relative;
  transition: all 0.15s ease;
  text-decoration: none;
}

.afri-header-icon-btn svg, .afri-header-icon-btn i {
  width: 20px;
  height: 20px;
  color: #334155;
  stroke: #334155;
  stroke-width: 1.9;
}

.afri-header-icon-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.afri-header-icon-btn:hover svg, .afri-header-icon-btn:hover i {
  color: #0F172A;
  stroke: #0F172A;
}

.afri-badge-count {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--afri-emerald);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.afri-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--afri-border);
}

/* ==========================================================================
   CARDS & SURFACES
   ========================================================================== */
.afri-card {
  background: var(--afri-surface-card) !important;
  border: 1px solid var(--afri-border) !important;
  border-radius: var(--afri-radius-xl) !important;
  box-shadow: var(--afri-shadow-sm) !important;
  margin-bottom: 20px;
  overflow: hidden;
}

.afri-card-header {
  padding: 18px 22px !important;
  border-bottom: 1px solid var(--afri-border-subtle) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF !important;
}

.afri-card-title {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  margin-bottom: 0 !important;
  color: var(--afri-text-main) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.afri-card-subtitle {
  font-size: 12.5px !important;
  color: var(--afri-text-muted) !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
  font-weight: 400 !important;
}

.afri-card-body {
  padding: 22px !important;
}

/* ==========================================================================
   STAT CARDS (Circle Icon + Big Number + Trend Pill)
   ========================================================================== */
.afri-stat-card {
  background: #FFFFFF !important;
  border: 1px solid var(--afri-border) !important;
  border-radius: var(--afri-radius-xl) !important;
  padding: 18px 20px !important;
  box-shadow: var(--afri-shadow-sm) !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  height: 100%;
}

.afri-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--afri-shadow-md) !important;
}

.afri-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.afri-icon-circle-emerald { background: var(--afri-emerald-light); color: var(--afri-emerald); }
.afri-icon-circle-blue { background: var(--afri-blue-light); color: var(--afri-blue); }
.afri-icon-circle-amber { background: var(--afri-amber-light); color: var(--afri-amber); }
.afri-icon-circle-purple { background: var(--afri-purple-light); color: var(--afri-purple); }

.afri-stat-label {
  font-size: 12px;
  color: var(--afri-text-secondary);
  font-weight: 500;
  margin-bottom: 3px;
}

.afri-stat-value {
  font-family: 'Manrope', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: var(--afri-text-main);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.afri-trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--afri-emerald);
}

.afri-trend-subtext {
  font-size: 11px;
  color: var(--afri-text-muted);
  margin-left: 3px;
}

/* ==========================================================================
   QUICK ACTIONS (Colorful Squared Tiles)
   ========================================================================== */
.afri-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 575.98px) {
  .afri-quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.afri-quick-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border-radius: var(--afri-radius-lg);
  text-decoration: none !important;
  transition: all 0.16s ease;
  border: 1px solid transparent;
}

.afri-quick-action-tile:hover {
  transform: translateY(-2px);
}

.afri-quick-action-tile.tile-green { background: var(--afri-emerald-light); color: var(--afri-emerald); border-color: var(--afri-emerald-border); }
.afri-quick-action-tile.tile-pink { background: var(--afri-pink-light); color: var(--afri-pink); border-color: var(--afri-pink-border); }
.afri-quick-action-tile.tile-blue { background: var(--afri-blue-light); color: var(--afri-blue); border-color: var(--afri-blue-border); }
.afri-quick-action-tile.tile-emerald { background: #ECFDF5; color: #059669; border-color: #A7F3D0; }

.afri-quick-action-tile .tile-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 6px;
}

.afri-quick-action-tile .tile-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--afri-text-main);
  text-align: center;
}

/* ==========================================================================
   WALLET OVERVIEW LIST
   ========================================================================== */
.afri-wallet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--afri-border-subtle);
}

.afri-wallet-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.afri-wallet-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.afri-wallet-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.afri-wallet-circle-purple { background: var(--afri-purple-light); color: var(--afri-purple); }
.afri-wallet-circle-amber { background: var(--afri-amber-light); color: var(--afri-amber); }
.afri-wallet-circle-blue { background: var(--afri-blue-light); color: var(--afri-blue); }
.afri-wallet-circle-green { background: var(--afri-emerald-light); color: var(--afri-emerald); }

.afri-wallet-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--afri-text-secondary);
}

.afri-wallet-val {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--afri-text-main);
}

/* ==========================================================================
   ANNOUNCEMENTS FEED
   ========================================================================== */
.afri-announcement-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--afri-border-subtle);
}

.afri-announcement-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.afri-announcement-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.afri-announcement-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--afri-text-main);
  margin-bottom: 2px;
}

.afri-announcement-desc {
  font-size: 11px;
  color: var(--afri-text-muted);
  margin-bottom: 0;
}

.afri-announcement-time {
  font-size: 11px;
  color: var(--afri-text-muted);
  white-space: nowrap;
}

/* ==========================================================================
   SOCIAL SHARE ICONS & COPY BOX
   ========================================================================== */
.afri-copy-box {
  display: flex;
  align-items: center;
  background: var(--afri-surface-subtle);
  border: 1px solid var(--afri-border);
  border-radius: var(--afri-radius-md);
  padding: 6px 8px 6px 12px;
}

.afri-copy-box input {
  background: transparent;
  border: none;
  font-size: 12.5px;
  color: var(--afri-text-main);
  width: 100%;
  outline: none;
}

.afri-social-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.afri-social-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--afri-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--afri-text-secondary);
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.afri-social-circle-btn:hover {
  background: var(--afri-emerald-light);
  color: var(--afri-emerald);
  border-color: var(--afri-emerald-border);
  transform: translateY(-2px);
}

/* ==========================================================================
   TABLES
   ========================================================================== */
.afri-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.afri-table {
  width: 100%;
  border-collapse: collapse;
}

.afri-table th {
  background-color: var(--afri-surface-subtle) !important;
  color: var(--afri-text-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 12px 18px !important;
  border-bottom: 1px solid var(--afri-border) !important;
  text-align: left;
}

.afri-table td {
  padding: 13px 18px !important;
  border-bottom: 1px solid var(--afri-border-subtle) !important;
  font-size: 13px !important;
  color: var(--afri-text-main) !important;
  vertical-align: middle !important;
}

.afri-table tbody tr:hover td {
  background-color: #FAFCFB !important;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.afri-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--afri-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease-in-out;
}

.afri-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.afri-btn-primary {
  background: var(--afri-emerald);
  color: #FFFFFF !important;
}

.afri-btn-primary:hover {
  background: var(--afri-emerald-hover);
  box-shadow: 0 4px 12px rgba(15, 168, 127, 0.25);
}

.afri-btn-secondary {
  background: #FFFFFF;
  color: var(--afri-text-main) !important;
  border-color: var(--afri-border);
}

.afri-btn-secondary:hover {
  background: var(--afri-surface-subtle);
  border-color: #CBD5E1;
}

.afri-btn-outline {
  background: transparent;
  color: var(--afri-emerald) !important;
  border-color: var(--afri-emerald);
}

.afri-btn-outline:hover {
  background: var(--afri-emerald-light);
}

.afri-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--afri-radius-full);
  font-size: 11px;
  font-weight: 600;
}

.afri-badge-emerald { background: var(--afri-emerald-light); color: var(--afri-emerald); border: 1px solid var(--afri-emerald-border); }
.afri-badge-amber { background: var(--afri-amber-light); color: var(--afri-amber); border: 1px solid var(--afri-amber-border); }
.afri-badge-blue { background: var(--afri-blue-light); color: var(--afri-blue); border: 1px solid var(--afri-blue-border); }
.afri-badge-purple { background: var(--afri-purple-light); color: var(--afri-purple); border: 1px solid var(--afri-purple-border); }
.afri-badge-slate { background: #F1F5F9; color: #475569; border: 1px solid #E2E8F0; }

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================================== */
.afri-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #FFFFFF;
  border-top: 1px solid var(--afri-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  z-index: 1050;
  padding: 0 8px;
}

@media (max-width: 991.98px) {
  .afri-mobile-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
  }
}

.afri-mobile-nav-item {
  list-style: none;
  flex: 1;
  text-align: center;
}

.afri-mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--afri-text-muted);
  text-decoration: none !important;
  font-size: 10.5px;
  font-weight: 600;
  gap: 2px;
  padding: 6px 0;
}

.afri-mobile-nav-link.active {
  color: var(--afri-emerald);
}

.afri-mobile-nav-link svg, .afri-mobile-nav-link i {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   AFFILIATE DASHBOARD — REFERENCE-LED INFORMATION HIERARCHY
   ========================================================================== */
:root {
  --afri-sidebar-width: 240px;
  --afri-bg-app: #F8FAFA;
  --afri-radius-xl: 14px;
}

.sidebar-link.active {
  background: linear-gradient(90deg, rgba(8, 168, 121, 0.96), rgba(8, 137, 108, 0.78)) !important;
  box-shadow: 0 8px 18px rgba(4, 110, 84, 0.22) !important;
}

.afri-affiliate-dashboard {
  max-width: 1540px;
  margin: 0 auto;
}

.afri-dashboard-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}

.afri-dashboard-intro h1 {
  margin: 0 0 5px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 800;
}

.afri-dashboard-intro p {
  margin: 0;
  color: var(--afri-text-secondary);
  font-size: 13px;
}

.afri-date-control,
.afri-chart-select {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  background: #FFFFFF;
  border: 1px solid var(--afri-border);
  border-radius: 10px;
  color: var(--afri-text-main);
  font: 600 12px 'Inter', sans-serif;
  padding: 0 13px;
  box-shadow: var(--afri-shadow-xs);
}

.afri-date-control svg {
  width: 16px;
  height: 16px;
  color: var(--afri-text-secondary);
}

.afri-date-control svg:last-child {
  width: 14px;
  height: 14px;
  margin-left: 4px;
}

.afri-chart-select {
  appearance: auto;
  min-height: 35px;
  padding-right: 28px;
  outline: none;
}

.afri-dashboard-layout .afri-card,
.afri-dashboard-layout .afri-stat-card {
  margin-bottom: 0;
}

.afri-dashboard-layout .afri-card {
  border-radius: 14px !important;
  box-shadow: 0 5px 15px rgba(15, 23, 42, 0.025) !important;
}

.afri-dashboard-layout .afri-card-header {
  padding: 18px 20px !important;
}

.afri-dashboard-layout .afri-card-body {
  padding: 18px 20px !important;
}

.afri-dashboard-layout .afri-stat-card {
  min-height: 130px;
  padding: 18px !important;
  border-radius: 14px !important;
}

.afri-dashboard-layout .afri-icon-circle {
  width: 42px;
  height: 42px;
}

.afri-dashboard-layout .afri-stat-value {
  font-size: 19px;
  white-space: nowrap;
}

.afri-chart-card .afri-card-body {
  padding: 14px 20px 18px !important;
}

.afri-earnings-chart {
  width: 100%;
  height: 225px;
}

.afri-performance-chart {
  width: 100%;
  height: 145px;
}

.afri-chart-total {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 116px;
  justify-content: center;
  padding: 15px;
  background: #FFFFFF;
  border: 1px solid var(--afri-border);
  border-radius: 12px;
}

.afri-chart-total strong {
  font: 800 18px 'Manrope', sans-serif;
  letter-spacing: -0.03em;
}

.afri-chart-total span {
  color: var(--afri-text-secondary);
  font-size: 11px;
}

.afri-chart-total small {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--afri-emerald);
  font-size: 10px;
  font-weight: 600;
}

.afri-chart-total small svg {
  width: 11px;
  height: 11px;
}

.afri-offer-table th,
.afri-leaderboard-table th {
  padding: 10px 14px !important;
  font-size: 10px !important;
}

.afri-offer-table td,
.afri-leaderboard-table td {
  padding: 11px 14px !important;
  font-size: 11px !important;
}

.afri-amount {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  color: var(--afri-text-main);
  white-space: nowrap;
}

.afri-offer-description {
  display: -webkit-box;
  align-items: center;
  gap: 4px;
  color: var(--afri-text-secondary);
  font-size: 10px;
  line-height: 1.35;
  max-width: 220px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.afri-offer-description svg {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 3px;
  color: var(--afri-emerald);
  vertical-align: text-bottom;
}

.afri-copy-box {
  min-height: 43px;
  padding: 5px 7px 5px 12px;
  background: #FFFFFF;
  border-radius: 10px;
}

.afri-copy-btn {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--afri-text-secondary);
  border-radius: 7px;
}

.afri-copy-btn:hover {
  color: var(--afri-emerald);
  background: var(--afri-emerald-light);
}

.afri-copy-btn svg {
  width: 16px;
  height: 16px;
}

.afri-share-label {
  color: var(--afri-text-secondary);
  font-size: 11px;
}

.afri-social-btn-group {
  gap: 9px;
}

.afri-social-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.afri-social-circle-btn .fa-facebook-f { color: #1877F2; }
.afri-social-circle-btn .fa-x-twitter { color: #1E293B; }
.afri-social-circle-btn .fa-whatsapp { color: #16A34A; }
.afri-social-circle-btn .fa-telegram { color: #229ED9; }

.afri-chart-legend {
  display: flex;
  gap: 13px;
  margin-top: 7px;
  color: var(--afri-text-secondary);
  font-size: 10.5px;
}

.afri-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.afri-chart-legend b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.afri-chart-legend .is-emerald { background: var(--afri-emerald); }
.afri-chart-legend .is-blue { background: var(--afri-blue); }

.afri-text-link {
  color: var(--afri-emerald);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.afri-wallet-list {
  padding-top: 7px !important;
  padding-bottom: 8px !important;
}

.afri-wallet-row {
  padding: 10px 0;
}

.afri-wallet-circle {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.afri-wallet-circle svg {
  width: 15px;
  height: 15px;
}

.afri-wallet-label { font-size: 11px; }
.afri-wallet-val { font-size: 11px; }

.afri-quick-actions-grid { gap: 8px; }

.afri-quick-action-tile {
  min-height: 78px;
  padding: 11px 5px;
  border-radius: 10px;
}

.afri-quick-action-tile .tile-icon {
  width: 19px;
  height: 19px;
  margin-bottom: 7px;
}

.afri-quick-action-tile .tile-label { font-size: 10px; }

.afri-announcement-list {
  padding-top: 7px !important;
  padding-bottom: 8px !important;
}

.afri-announcement-row {
  gap: 9px;
  padding: 11px 0;
}

.afri-announcement-row .afri-announcement-icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
}

.afri-announcement-row .afri-announcement-icon svg {
  width: 14px;
  height: 14px;
}

.afri-announcement-row strong {
  display: block;
  color: var(--afri-text-main);
  font-size: 10.5px;
  line-height: 1.35;
}

.afri-announcement-row p {
  margin: 2px 0 0;
  color: var(--afri-text-muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.afri-announcement-row time {
  flex-shrink: 0;
  color: var(--afri-text-muted);
  font-size: 9.5px;
}

@media (max-width: 1399.98px) {
  .afri-dashboard-layout .afri-stat-value { font-size: 17px; }
}

@media (max-width: 1199.98px) {
  .afri-dashboard-layout aside { margin-top: 12px; }
}

@media (max-width: 767.98px) {
  .afri-dashboard-intro { align-items: stretch; flex-direction: column; margin-bottom: 18px; }
  .afri-dashboard-intro h1 { font-size: 21px; }
  .afri-date-control { align-self: flex-start; }
  .afri-earnings-chart { height: 205px; }
  .afri-performance-chart { height: 165px; }
  .afri-chart-total { min-height: auto; }
}

/* ==========================================================================
   CREATOR STUDIO 2.0 - VIBRANT STUDIO VIBE ENHANCEMENTS
   ========================================================================== */
.afri-studio-hero {
  background: linear-gradient(135deg, #0B1E22 0%, #0E272D 50%, #12363D 100%) !important;
  border: 1px solid rgba(15, 168, 127, 0.35) !important;
  border-radius: 22px !important;
  padding: 28px 32px !important;
  color: #FFFFFF !important;
  box-shadow: 0 12px 36px -6px rgba(11, 30, 34, 0.35) !important;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.afri-studio-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(15, 168, 127, 0.22) 0%, rgba(15, 168, 127, 0) 70%);
  pointer-events: none;
}

.afri-studio-pill-badge {
  background: rgba(15, 168, 127, 0.18) !important;
  border: 1px solid rgba(15, 168, 127, 0.45) !important;
  color: #34D399 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  border-radius: 9999px !important;
  padding: 4px 12px !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.afri-studio-stat-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 18px;
  backdrop-filter: blur(8px);
}

.afri-studio-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94A3B8;
  margin-bottom: 2px;
}

.afri-studio-stat-value {
  font-family: 'Manrope', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
}

.afri-studio-glow-btn {
  background: #0FA87F !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 9px 20px !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(15, 168, 127, 0.4) !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.afri-studio-glow-btn:hover {
  background: #0C8B68 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 168, 127, 0.55) !important;
  color: #FFFFFF !important;
}

.afri-studio-glass-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
  border-radius: 9999px !important;
  padding: 9px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.afri-studio-glass-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Studio Reel Video Card */
.afri-reel-card {
  background: #FFFFFF;
  border: 1px solid var(--afri-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.afri-reel-card:hover {
  transform: translateY(-3px);
  border-color: var(--afri-emerald);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08);
}

.afri-reel-thumb {
  position: relative;
  height: 140px;
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
}

.afri-reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(11, 30, 34, 0.75);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.afri-reel-card:hover .afri-reel-play-btn {
  background: var(--afri-emerald);
  border-color: #FFFFFF;
  transform: translate(-50%, -50%) scale(1.1);
}

.afri-reel-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(11, 30, 34, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* Escrow Pipeline Stepper */
.afri-pipeline-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--afri-border-subtle);
}

.afri-pipeline-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

