/**
 * Admin Mobile CRM Styles
 * The Journeyman - Mobile PWA App
 * v58.0 - Redesigned dashboard: CRM & Intel focus, 2-column layouts, compact nav
 * 
 * Mobile-first styles for the CRM PWA.
 * Optimized for touch interactions and small screens.
 * 
 * Custom Color Palette (Mobile Only):
 * - Ember Copper Glow: #FF6A1A (primary accent)
 * - Burnt Orange Metal: #C9561B (secondary accent)
 * - Deep Coal: #0A0A0A (background)
 * - Smoldered Iron: #2A1F1A (mid tones)
 * - Ember Speck: #FFB35A (highlights/sparks)
 * - Soft Light Ember: #FF8A3C (glow edges)
 * - Off-White Text: #E7DCC9 (typography)
 */

/* ========================================
   MOBILE COLOR VARIABLES (Override admin.css)
   ======================================== */

.mobile-app {
  /* Primary Colors */
  --mobile-accent: #FF6A1A;
  --mobile-accent-secondary: #C9561B;
  --mobile-bg: #0A0A0A;
  
  /* Secondary / Texture Colors */
  --mobile-mid: #2A1F1A;
  --mobile-spark: #FFB35A;
  --mobile-glow: #FF8A3C;
  
  /* Typography */
  --mobile-text: #E7DCC9;
  --mobile-text-muted: rgba(231, 220, 201, 0.6);
  
  /* Surfaces */
  --mobile-panel: rgba(42, 31, 26, 0.8);
  --mobile-line: rgba(255, 106, 26, 0.2);
  --mobile-line-strong: rgba(255, 106, 26, 0.4);
  --mobile-input: rgba(42, 31, 26, 0.6);
  
  /* Animation Timing - iOS-like spring curves */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;
}

/* ========================================
   MOBILE APP SHELL
   ======================================== */

.mobile-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--mobile-bg);
  overflow: hidden;
}

/* Main app background (after login) */
#main-app {
  background: var(--mobile-bg) url('/img/TJMADMINBG.png') center center / cover no-repeat fixed;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ========================================
   MOBILE HEADER
   ======================================== */

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--mobile-panel);
  border-bottom: 1px solid var(--mobile-line);
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mobile-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--mobile-text-muted);
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.mobile-back-btn:active {
  background: var(--mobile-mid);
}

.mobile-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--mobile-text);
  letter-spacing: 0.5px;
}

.mobile-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-header-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--mobile-line);
  color: var(--mobile-text-muted);
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.mobile-header-btn:active {
  background: var(--mobile-mid);
}

.mobile-header-btn.primary {
  background: rgba(255, 106, 26, 0.15);
  border-color: var(--mobile-line-strong);
  color: var(--mobile-accent);
}

/* ========================================
   LOGIN SCREEN
   ======================================== */

.mobile-login {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: var(--mobile-bg) url('/img/TJMADMINLOGINBG.png') center center / cover no-repeat;
  position: relative;
}

/* Dark overlay for better text readability */
.mobile-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  z-index: 0;
}

.mobile-login > * {
  position: relative;
  z-index: 1;
}

.mobile-login-logo {
  font-family: 'Cinzel', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--mobile-text);
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.mobile-login-logo .accent {
  color: var(--mobile-accent);
}

.mobile-login-subtitle {
  color: var(--mobile-text-muted);
  font-size: 14px;
  margin-bottom: 32px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.mobile-login-form {
  width: 100%;
  max-width: 320px;
}

.mobile-input-group {
  margin-bottom: 16px;
}

.mobile-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--mobile-input);
  border: 1px solid var(--mobile-line-strong);
  border-radius: 10px;
  color: var(--mobile-text);
  font-size: 16px; /* Prevents zoom on iOS */
  font-family: 'Montserrat', sans-serif;
}

.mobile-input::placeholder {
  color: var(--mobile-text-muted);
}

.mobile-input:focus {
  outline: none;
  border-color: var(--mobile-accent);
  box-shadow: 0 0 0 2px rgba(255, 106, 26, 0.2);
}

.mobile-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--mobile-accent) 0%, var(--mobile-accent-secondary) 100%);
  border: none;
  border-radius: 10px;
  color: var(--mobile-text);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(255, 106, 26, 0.3);
}

.mobile-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 106, 26, 0.4);
}

.mobile-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mobile-login-error {
  color: #ef4444;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

/* Quick Biometric Login (big fingerprint button) */
.mobile-biometric-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-biometric-big {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mobile-accent) 0%, var(--mobile-accent-secondary) 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 32px rgba(255, 106, 26, 0.4);
}

.mobile-biometric-big i {
  font-size: 56px;
  color: var(--mobile-text);
}

.mobile-biometric-big:active {
  transform: scale(0.95);
  box-shadow: 0 4px 16px rgba(255, 106, 26, 0.5);
}

.mobile-biometric-label {
  font-size: 16px;
  color: var(--mobile-text);
  font-weight: 500;
}

.mobile-biometric-switch {
  background: transparent;
  border: none;
  color: var(--mobile-text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 16px;
  text-decoration: underline;
}

.mobile-biometric-switch:active {
  color: var(--mobile-text);
}

/* Biometric checkbox during login */
.mobile-biometric-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  cursor: pointer;
  padding: 12px 16px;
  background: var(--mobile-mid);
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
}

.mobile-biometric-checkbox input {
  display: none;
}

.mobile-biometric-checkbox-mark {
  width: 24px;
  height: 24px;
  border: 2px solid var(--mobile-line-strong);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.mobile-biometric-checkbox input:checked + .mobile-biometric-checkbox-mark {
  background: var(--mobile-accent);
  border-color: var(--mobile-accent);
}

.mobile-biometric-checkbox input:checked + .mobile-biometric-checkbox-mark::after {
  content: '✓';
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.mobile-biometric-checkbox-label {
  font-size: 14px;
  color: var(--mobile-text);
}

.mobile-install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  margin: 24px auto 0;
  padding: 14px 24px;
  background: transparent;
  border: 2px solid var(--mobile-accent);
  color: var(--mobile-accent);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-install-btn:active {
  background: var(--mobile-accent);
  color: var(--mobile-text);
  transform: scale(0.98);
}

.mobile-install-hint {
  text-align: center;
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-top: 8px;
  opacity: 0.7;
}

.mobile-login-error.show {
  display: block;
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.mobile-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ========================================
   QUICK STATS BAR (Display Only - Not Clickable)
   Hidden in v54.0 - replaced by header stats bar
   ======================================== */

.mobile-stats-bar {
  display: none; /* Hidden - using header stats bar instead */
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-stats-bar::-webkit-scrollbar {
  display: none;
}

/* Stats are display-only: flat appearance, no hover/active states */
.mobile-stat {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-left: 2px solid var(--mobile-line);
  border-radius: 0;
  pointer-events: none; /* Explicitly non-interactive */
  user-select: none;
}

.mobile-stat:first-child {
  border-left: none;
  padding-left: 0;
}

.mobile-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--mobile-text);
  line-height: 1;
}

.mobile-stat-label {
  font-size: 10px;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.mobile-stat.warning .mobile-stat-value {
  color: var(--mobile-spark);
}

.mobile-stat.warning {
  border-left-color: var(--mobile-spark);
}

.mobile-stat.danger .mobile-stat-value {
  color: #ef4444;
}

.mobile-stat.danger {
  border-left-color: #ef4444;
}

/* ========================================
   FILTER PILLS (Interactive - Clickable)
   ======================================== */

.mobile-filters-wrapper {
  padding: 0 16px 8px;
}

.mobile-filters-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--mobile-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  padding-left: 4px;
}

.mobile-filters-label i {
  font-size: 10px;
}

.mobile-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.mobile-filters::-webkit-scrollbar {
  display: none;
}

/* Filter pills are interactive: obvious button styling with shadows and hover states */
.mobile-filter-pill {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 16px;
  color: var(--mobile-text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* Subtle inner highlight to indicate clickability */
.mobile-filter-pill::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.mobile-filter-pill:hover {
  background: var(--mobile-surface);
  border-color: var(--mobile-text-muted);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-filter-pill.active {
  background: linear-gradient(135deg, var(--mobile-accent) 0%, var(--mobile-accent-secondary) 100%);
  border-color: var(--mobile-accent);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 106, 26, 0.4);
}

.mobile-filter-pill.active::after {
  border-color: rgba(255, 255, 255, 0.15);
}

.mobile-filter-pill:active {
  transform: scale(0.95) translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================
   SEARCH BAR
   ======================================== */

.mobile-search {
  padding: 0 16px 8px;
}

.mobile-search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
  color: var(--mobile-text);
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
}

.mobile-search-wrap {
  position: relative;
}

.mobile-search-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mobile-text-muted);
  font-size: 14px;
}

/* ========================================
   CONTACTS LIST
   ======================================== */

.mobile-contacts-list {
  padding: 0 16px 100px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 12px 16px 16px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 14px;
  cursor: default; /* No longer clickable as a whole */
  transition: all 0.2s;
}

/* Open button - the only way to open a contact */
.mobile-contact-open-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 26, 0.15);
  border: 2px solid var(--mobile-accent);
  border-radius: 12px;
  color: var(--mobile-accent);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: 8px;
}

.mobile-contact-open-btn:active {
  background: var(--mobile-accent);
  color: white;
  transform: scale(0.92);
}

/* Card no longer has active state - only the open button does */

.mobile-contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 107, 43, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mobile-accent);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

.mobile-contact-info {
  flex: 1;
  min-width: 0;
}

.mobile-contact-company {
  font-size: 15px;
  font-weight: 600;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-contact-name {
  font-size: 13px;
  color: var(--mobile-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-contact-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mobile-phase-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-phase-P0 { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }
.mobile-phase-P1 { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.mobile-phase-P2 { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.mobile-phase-P3 { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.mobile-phase-P4 { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.mobile-phase-P5 { background: rgba(34, 197, 94, 0.3); color: #22c55e; }

.mobile-days-badge {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

.mobile-days-badge.stale {
  color: #f59e0b;
}

.mobile-days-badge.overdue {
  color: #ef4444;
  font-weight: 600;
}

/* ========================================
   CONTACT DETAIL VIEW (Desktop Drawer Style)
   ======================================== */

.mobile-detail {
  display: none;
}

.mobile-detail.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--admin-bg);
  z-index: 200;
  animation: slideIn 0.25s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Top bar with back button */
.mobile-detail-topbar {
  flex-shrink: 0;
}

/* ========================================
   DRAWER HEADER (Profile Section) - v11 Layout
   ======================================== */

.mobile-drawer-header {
  padding: 12px 16px;
  background: var(--mobile-panel);
  border-bottom: 1px solid var(--mobile-line);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Top Row: Profile + Company Name */
.mobile-drawer-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-drawer-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

/* Profile Image */
.mobile-drawer-profile-image {
  width: 36px;
  height: 36px;
  position: relative;
  flex-shrink: 0;
}

.mobile-drawer-profile-image .mobile-profile-image {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--mobile-mid);
  border: 2px solid var(--mobile-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mobile-drawer-profile-image .mobile-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-drawer-profile-image .mobile-profile-image i {
  font-size: 16px;
  color: var(--mobile-text-muted);
}

.mobile-drawer-profile-edit {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mobile-accent);
  color: #000;
  border: 2px solid var(--mobile-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 7px;
}

.mobile-drawer-company {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--mobile-text);
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bottom Row: 3 Columns */
.mobile-drawer-header-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--mobile-line);
}

.mobile-drawer-header-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-drawer-col-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--mobile-text-muted);
}

.mobile-drawer-col-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--mobile-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-drawer-col-sub {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

.mobile-drawer-status-row {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

/* Priority Selector in Header */
.mobile-drawer-priority-selector {
  display: flex;
  gap: 3px;
}

.mobile-priority-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 6px;
  background: rgba(107, 114, 128, 0.2);
  color: var(--mobile-text-muted);
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s ease;
}

.mobile-priority-btn.selected {
  background: var(--priority-color);
  color: white;
  border-color: var(--priority-color);
}

.mobile-priority-btn:active {
  transform: scale(0.95);
}

/* Legacy support */
.mobile-drawer-header-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.mobile-drawer-header-info {
  flex: 1;
  min-width: 0;
}

.mobile-drawer-contact-info {
  font-size: 13px;
  color: var(--mobile-text-muted);
  margin-bottom: 8px;
}

.mobile-drawer-contact-name {
  font-weight: 500;
  color: var(--mobile-text);
}

.mobile-drawer-role {
  color: var(--mobile-text-muted);
}

.mobile-drawer-role::before {
  content: ' • ';
}

.mobile-drawer-role:empty::before {
  content: '';
}

.mobile-drawer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ========================================
   QUICK ACTIONS BAR
   ======================================== */

.mobile-drawer-quick-actions {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: var(--mobile-panel);
  border-bottom: 1px solid var(--mobile-line);
  flex-shrink: 0;
}

.mobile-drawer-quick-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--mobile-line);
  color: var(--mobile-text-muted);
  text-decoration: none;
  font-size: 10px;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-drawer-quick-action i {
  font-size: 16px;
  color: var(--mobile-accent);
}

.mobile-drawer-quick-action:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.95);
}

.mobile-drawer-quick-action[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

/* ========================================
   PHASE STEPPER
   ======================================== */

.mobile-drawer-phase-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--mobile-mid);
  border-bottom: 1px solid var(--mobile-line);
  flex-shrink: 0;
}

.mobile-phase-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.mobile-phase-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mobile-panel);
  border: 2px solid var(--mobile-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--mobile-text-muted);
  transition: all 0.3s;
}

.mobile-phase-step.completed .mobile-phase-step-dot {
  background: var(--mobile-accent);
  border-color: var(--mobile-accent);
  color: #000;
}

.mobile-phase-step.current .mobile-phase-step-dot {
  border-color: var(--mobile-accent);
  color: var(--mobile-accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.25);
}

.mobile-phase-step-label {
  font-size: 9px;
  color: var(--mobile-text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.mobile-phase-step.current .mobile-phase-step-label {
  color: var(--mobile-accent);
}

.mobile-phase-step-line {
  flex: 1;
  height: 2px;
  background: var(--mobile-line);
  margin: 0 3px;
  margin-bottom: 16px;
}

.mobile-phase-step-line.completed {
  background: var(--mobile-accent);
}

/* ========================================
   DRAWER TABS
   ======================================== */

.mobile-drawer-tabs {
  display: flex;
  border-bottom: 1px solid var(--mobile-line);
  background: var(--mobile-panel);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.mobile-drawer-tabs::-webkit-scrollbar {
  display: none;
}

.mobile-drawer-tab {
  flex: 0 0 auto;
  padding: 12px 14px;
  background: transparent;
  border: none;
  color: var(--mobile-text-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.mobile-drawer-tab:active {
  background: rgba(255, 255, 255, 0.03);
}

.mobile-drawer-tab.active {
  color: var(--mobile-accent);
  border-bottom-color: var(--mobile-accent);
}

.mobile-drawer-tab i {
  margin-right: 4px;
}

.mobile-drawer-tab .mobile-tab-badge {
  margin-left: 4px;
}

/* ========================================
   DRAWER PANELS (Tab Content)
   ======================================== */

.mobile-drawer-panel {
  display: none;
}

.mobile-drawer-panel.active {
  display: block;
}

/* ========================================
   BADGE STYLES (Status & Owner)
   ======================================== */

.mobile-status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.mobile-owner-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  color: var(--mobile-text-muted);
  border: 1px solid var(--mobile-line);
}

/* ========================================
   LEGACY DETAIL STYLES (kept for compatibility)
   ======================================== */

.mobile-detail-header {
  padding: 20px 16px;
  background: var(--mobile-panel);
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-detail-company {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--mobile-text);
  margin-bottom: 4px;
}

.mobile-detail-contact {
  font-size: 14px;
  color: var(--admin-text-secondary);
  margin-bottom: 12px;
}

.mobile-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-detail-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px;
}

.mobile-detail-section {
  margin-bottom: 24px;
}

.mobile-detail-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.mobile-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-detail-row:last-child {
  border-bottom: none;
}

.mobile-detail-label {
  font-size: 14px;
  color: var(--mobile-text-muted);
}

.mobile-detail-value {
  font-size: 14px;
  color: var(--mobile-text);
  font-weight: 500;
  text-align: right;
}

.mobile-detail-value.accent {
  color: var(--mobile-accent);
  font-weight: 700;
}

.mobile-detail-value a {
  color: var(--mobile-accent);
  text-decoration: none;
}

/* Help text for forms */
.mobile-help-text {
  font-size: 11px;
  color: var(--mobile-text-muted);
  margin-top: 4px;
}

/* Quick Actions */
.mobile-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.mobile-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
  color: var(--mobile-text-muted);
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-quick-action i {
  font-size: 18px;
  color: var(--mobile-accent);
}

.mobile-quick-action:active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.95);
}

/* Notes */
.mobile-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-note {
  padding: 12px;
  background: var(--admin-card);
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
}

.mobile-note-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mobile-note-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-note-date {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

.mobile-note-body {
  font-size: 13px;
  color: var(--admin-text-secondary);
  line-height: 1.5;
}

/* ========================================
   FLOATING ACTION BUTTON
   ======================================== */

.mobile-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--mobile-accent);
  border: none;
  border-radius: 16px;
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 43, 0.4);
  transition: all 0.2s;
  z-index: 50;
}

.mobile-fab:active {
  transform: scale(0.92);
}

/* ========================================
   BOTTOM NAVIGATION
   ======================================== */

.mobile-bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--mobile-panel);
  border-top: 1px solid var(--mobile-line);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--mobile-text-muted);
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-nav-item i {
  font-size: 20px;
}

.mobile-nav-item.active {
  color: var(--mobile-accent);
}

.mobile-nav-item:active {
  transform: scale(0.9);
}

/* ========================================
   LOADING & EMPTY STATES
   ======================================== */

.mobile-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--mobile-text-muted);
}

.mobile-loading i {
  font-size: 32px;
  margin-bottom: 16px;
  animation: spin 1s linear infinite;
}

.mobile-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--mobile-text-muted);
}

.mobile-empty i {
  font-size: 48px;
  opacity: 0.3;
  margin-bottom: 16px;
}

.mobile-empty-text {
  font-size: 14px;
}

/* ========================================
   MODAL / BOTTOM SHEET
   ======================================== */

.mobile-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  display: none;
  align-items: flex-end;
}

.mobile-sheet.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.mobile-sheet-content {
  width: 100%;
  max-height: 90vh;
  background: var(--mobile-panel);
  border-radius: 20px 20px 0 0;
  padding: 20px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  animation: slideUp 0.3s ease;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-sheet-handle {
  width: 100%;
  min-height: 44px; /* Touch-friendly size */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  margin-bottom: 8px;
  position: relative;
}

.mobile-sheet-handle::before {
  content: '';
  width: 40px;
  height: 4px;
  background: var(--admin-line-strong);
  border-radius: 2px;
}

.mobile-sheet-handle:active {
  cursor: grabbing;
}

.mobile-sheet-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--mobile-text);
  margin-bottom: 20px;
  text-align: center;
}

/* ========================================
   MULTI-VIEW SYSTEM
   ======================================== */

.mobile-view {
  display: none;
}

.mobile-view.active {
  display: block;
}

/* ========================================
   HOME VIEW
   ======================================== */

.mobile-section-grid {
  padding: 16px;
}

.mobile-home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mobile-home-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
  text-align: center;
}

.mobile-home-stat i {
  font-size: 20px;
  color: var(--mobile-accent);
  margin-bottom: 4px;
}

.mobile-home-stat.warning i {
  color: #f59e0b;
}

.mobile-home-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--mobile-text);
}

.mobile-home-stat-label {
  font-size: 10px;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   DYNAMIC HOME DASHBOARD
   ======================================== */

.mobile-dashboard {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hero Stats Card */
.dash-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mobile-accent) 0%, #C9561B 50%, #8B3A10 100%);
  padding: 24px 20px;
  margin: -8px -16px 0;
  border-radius: 0 0 24px 24px;
}

.dash-hero-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.dash-hero-content {
  position: relative;
  z-index: 1;
}

.dash-hero-greeting {
  margin-bottom: 20px;
}

.dash-greeting-text {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4px;
}

.dash-user-name {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dash-hero-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px;
}

.dash-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dash-hero-stat.main {
  flex: 1;
  align-items: flex-start;
}

.dash-hero-value {
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1;
}

.dash-hero-stat.main .dash-hero-value {
  font-size: 36px;
}

.dash-hero-value.success {
  color: #86efac;
}

.dash-hero-value.accent {
  color: #fde68a;
}

.dash-hero-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-hero-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* Quick Actions */
.dash-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: -8px;
}

.dash-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.dash-quick-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.05);
}

.dash-quick-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 26, 0.15);
  border-radius: 12px;
  color: var(--mobile-accent);
  font-size: 18px;
}

.dash-quick-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.dash-quick-icon.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.dash-quick-icon.slate {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.dash-quick-btn span {
  font-size: 11px;
  font-weight: 500;
  color: var(--mobile-text-muted);
  text-align: center;
}

/* Section Headers */
.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-section-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.dash-section-header h3 i {
  color: var(--mobile-accent);
  font-size: 14px;
}

.dash-see-all {
  font-size: 12px;
  color: var(--mobile-accent);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.dash-add-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 26, 0.15);
  border: none;
  border-radius: 8px;
  color: var(--mobile-accent);
  cursor: pointer;
}

/* Attention Section */
.dash-attention {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 16px;
}

.dash-attention .dash-section-header h3 {
  color: #ef4444;
}

.dash-attention .dash-section-header h3 i {
  color: #ef4444;
}

.dash-attention-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-attention-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.dash-attention-item:active {
  background: rgba(0, 0, 0, 0.3);
}

.dash-attention-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #ef4444;
  font-size: 14px;
}

.dash-attention-icon.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.dash-attention-info {
  flex: 1;
  min-width: 0;
}

.dash-attention-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--mobile-text);
}

.dash-attention-meta {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

/* Pipeline Card */
.dash-pipeline-card {
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 16px;
  padding: 16px;
}

.dash-pipeline-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100px;
  padding-top: 8px;
}

.dash-pipe-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.dash-pipe-fill {
  width: 100%;
  min-height: 8px;
  background: linear-gradient(180deg, var(--mobile-accent), #C9561B);
  border-radius: 6px 6px 0 0;
  transition: height 0.5s var(--ease-spring);
  position: relative;
}

.dash-pipe-bar[data-phase="P5"] .dash-pipe-fill {
  background: linear-gradient(180deg, #22c55e, #16a34a);
}

.dash-pipe-bar[data-phase="P4"] .dash-pipe-fill {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.dash-pipe-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--mobile-text-muted);
}

.dash-pipe-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--mobile-text);
}

/* Navigation Grid */
.dash-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dash-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.dash-nav-item:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.05);
}

.dash-nav-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 26, 0.15);
  border-radius: 10px;
  color: var(--mobile-accent);
  font-size: 16px;
}

.dash-nav-icon.green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.dash-nav-icon.yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.dash-nav-icon.pink {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.dash-nav-icon.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.dash-nav-icon.slate {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.dash-nav-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--mobile-text);
}

.dash-nav-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-nav-badge.warning {
  background: #f59e0b;
  color: white;
}

.dash-nav-badge.danger {
  background: #ef4444;
  color: white;
}

/* Activity Card */
.dash-activity-card {
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 16px;
  padding: 16px;
}

.dash-activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.dash-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.dash-activity-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.dash-activity-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 26, 0.15);
  border-radius: 8px;
  color: var(--mobile-accent);
  font-size: 12px;
  flex-shrink: 0;
}

.dash-activity-icon.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.dash-activity-icon.info {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.dash-activity-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.dash-activity-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.dash-activity-icon.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.dash-activity-info {
  flex: 1;
  min-width: 0;
}

.dash-activity-text {
  font-size: 13px;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-activity-time {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

.dash-activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  color: var(--mobile-text-muted);
  text-align: center;
}

.dash-activity-empty i {
  font-size: 24px;
  opacity: 0.3;
}

.dash-activity-empty span {
  font-size: 13px;
}

/* Messages Card */
.dash-messages-card {
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 16px;
  padding: 16px;
}

.dash-message-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
}

/* Animated number counter */
@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-hero-value,
.dash-pipe-count {
  animation: count-up 0.5s var(--ease-out-expo) forwards;
}

.mobile-section-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-section-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-section-card:active {
  background: rgba(255, 255, 255, 0.03);
  transform: scale(0.98);
}

.mobile-section-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 43, 0.15);
  border-radius: 10px;
  color: var(--mobile-accent);
  font-size: 18px;
  flex-shrink: 0;
}

.mobile-section-card-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.mobile-section-card-icon.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
}

.mobile-section-card-icon.green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.mobile-section-card-icon.yellow {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.mobile-section-card-icon.slate {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.mobile-section-card-info {
  flex: 1;
  min-width: 0;
}

.mobile-section-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-section-card-desc {
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-top: 2px;
}

.mobile-section-card > i:last-child {
  color: var(--mobile-text-muted);
  font-size: 12px;
}

.mobile-section-card-icon.pink {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.mobile-section-card-icon.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* Badges */
.mobile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  background: var(--mobile-accent);
  color: white;
}

.mobile-badge.warning {
  background: #f59e0b;
}

.mobile-badge.danger {
  background: #ef4444;
}

.mobile-badge.success {
  background: #22c55e;
}

/* ========================================
   LIST VIEWS (Inbox, Users, Rewards, etc.)
   ======================================== */

.mobile-list {
  padding: 8px 16px;
  padding-bottom: 100px;
}

.mobile-list-header {
  padding: 12px 16px;
  background: var(--mobile-panel);
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-list-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-list-item:active {
  background: rgba(255, 255, 255, 0.03);
  transform: scale(0.98);
}

.mobile-list-item.unread {
  border-left: 3px solid var(--mobile-accent);
}

.mobile-list-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: var(--mobile-text-muted);
  font-size: 16px;
  flex-shrink: 0;
}

.mobile-list-item-icon.accent {
  background: rgba(255, 107, 43, 0.15);
  color: var(--mobile-accent);
}

.mobile-list-item-icon.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.mobile-list-item-icon.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.mobile-list-item-icon.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.mobile-list-item-content {
  flex: 1;
  min-width: 0;
}

.mobile-list-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-list-item-subtitle {
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-list-item-meta {
  font-size: 11px;
  color: var(--mobile-text-muted);
  margin-top: 4px;
  opacity: 0.7;
}

.mobile-list-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.text-success {
  color: #22c55e;
}

/* Offline indicator */
.mobile-header.offline::after {
  content: 'Offline';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #000;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 0 0 6px 6px;
}

/* ========================================
   CRM SUB-TABS
   ======================================== */

.mobile-sub-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  background: var(--mobile-panel);
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-sub-tab {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--mobile-text-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-sub-tab.active {
  background: var(--mobile-accent);
  color: white;
}

.mobile-sub-tab:active {
  transform: scale(0.95);
}

.mobile-subtab-content {
  display: none !important;
}

.mobile-subtab-content.active {
  display: block !important;
}

/* Override for CRM contacts list - needs flex for scroll containment */
.mobile-crm-view #subtab-list.active {
  display: flex !important;
}

/* Ensure non-active subtabs are hidden */
.mobile-crm-view #subtab-list:not(.active) {
  display: none !important;
}

/* Pipeline and Analytics subtabs - need proper display and scrolling */
.mobile-crm-view #subtab-pipeline.active,
.mobile-crm-view #subtab-analytics.active {
  display: block !important;
  /* Fixed height for scrolling - viewport minus header, tabs, bottom nav */
  height: calc(100vh - 64px - 48px - 70px);
  height: calc(100dvh - 64px - 48px - 70px);
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 16px;
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); /* Extra padding for bottom nav */
  background: var(--mobile-bg); /* Solid background to cover anything behind */
}

/* ========================================
   CRM VIEW - SCROLL CONTAINMENT
   
   Layout Structure:
   - .mobile-crm-view: Full height flex container
   - .mobile-crm-sticky: Sub-tabs locked at top
   - .mobile-crm-controls: Stats, filters, search - sticky section
   - .mobile-contacts-scroll-container: Independent scrollable list
   
   This prevents accidental horizontal swipes from opening contacts
   and allows vertical scrolling within the list only.
   ======================================== */

/* CRM View - Full height flex layout (only when active) */
.mobile-crm-view.active {
  display: flex;
  flex-direction: column;
  /* Subtract header (64px) + bottom nav (~70px with padding) */
  height: calc(100vh - 64px - 70px);
  height: calc(100dvh - 64px - 70px);
  max-height: calc(100vh - 64px - 70px);
  max-height: calc(100dvh - 64px - 70px);
  overflow: hidden; /* Prevent page scroll, only list scrolls */
  background: var(--mobile-bg); /* Solid background to cover decorative elements */
}

/* Sub-tabs - Sticky at top of CRM view */
.mobile-crm-view .mobile-sub-tabs.mobile-crm-sticky {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mobile-panel);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Contacts subtab - Flex layout for scroll containment */
.mobile-crm-view #subtab-list {
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0; /* Critical for flex child scrolling */
  overflow: hidden;
  display: flex !important; /* Force flex when active */
  background: var(--mobile-bg); /* Ensure solid background */
}

/* When subtab-list is active, it should fill remaining space */
.mobile-crm-view #subtab-list.active {
  display: flex !important;
  flex: 1;
}

/* Header stats and quick filters should not grow/shrink */
.mobile-crm-view .mobile-header-stats,
.mobile-crm-view .mobile-quick-filters,
.mobile-crm-view .mobile-crm-controls {
  flex: 0 0 auto;
}

/* Controls Section - Stats, Filters, Search - Sticky */
.mobile-crm-controls {
  flex-shrink: 0;
  background: var(--mobile-bg);
  border-bottom: 1px solid var(--mobile-line);
  z-index: 40;
}

/* Scrollable Contacts Container - THE dedicated scroll area */
.mobile-contacts-scroll-container {
  /* 
   * Calculate height explicitly (v54.0 compact UI):
   * viewport - header(64) - bottom-nav(70) - subtabs(48) - header-stats(32) - quick-filters(32) - controls(~90) - margins(12)
   * Total fixed elements: ~348px
   */
  height: calc(100vh - 348px);
  height: calc(100dvh - 348px);
  min-height: 280px;
  flex: 1 1 auto;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  /* Visual scroll area indicator */
  border: 2px solid var(--mobile-accent);
  border-radius: 12px;
  margin: 4px 10px;
  background: rgba(0, 0, 0, 0.3);
}

/* Adjust contacts list padding inside scroll container */
.mobile-contacts-scroll-container .mobile-contacts-list {
  padding: 12px;
  padding-bottom: 24px;
  gap: 12px;
}

/* Touch scroll hint - subtle indicator */
.mobile-contacts-scroll-container::before {
  content: '';
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mobile-line), transparent);
  z-index: 1;
  pointer-events: none;
}

/* ========================================
   PIPELINE VIEW
   ======================================== */

.mobile-pipeline {
  display: flex;
  gap: 12px;
  padding: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: calc(100vh - 200px);
}

.mobile-pipeline::-webkit-scrollbar {
  display: none;
}

.mobile-pipeline-column {
  flex-shrink: 0;
  width: 140px;
  display: flex;
  flex-direction: column;
}

.mobile-pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 8px 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-pipeline-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--mobile-text-muted);
}

.mobile-pipeline-cards {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--mobile-line);
  border-top: none;
  border-radius: 0 0 8px 8px;
  min-height: 100px;
}

.mobile-pipeline-card {
  padding: 10px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-pipeline-card:active {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-pipeline-card-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-pipeline-card-contact {
  font-size: 10px;
  color: var(--mobile-text-muted);
  margin-top: 2px;
}

.mobile-pipeline-empty {
  font-size: 11px;
  color: var(--mobile-text-muted);
  text-align: center;
  padding: 20px 8px;
  font-style: italic;
}

/* ========================================
   REPORT GENERATION
   ======================================== */

.mobile-report-section {
  margin: 16px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 107, 43, 0.15), rgba(255, 107, 43, 0.05));
  border: 1px solid rgba(255, 107, 43, 0.3);
  border-radius: 12px;
  text-align: center;
}

.mobile-report-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ff6b2b, #ff8f5a);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 43, 0.3);
}

.mobile-report-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 107, 43, 0.4);
}

.mobile-report-btn:active {
  transform: translateY(0);
}

.mobile-report-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.mobile-report-btn i {
  font-size: 18px;
}

.mobile-report-btn .spinner {
  animation: spin 1s linear infinite;
}

.mobile-report-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--mobile-text-muted);
}

/* Report Preview Modal */
.mobile-report-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: none;
  flex-direction: column;
}

.mobile-report-modal.active {
  display: flex;
}

.mobile-report-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--mobile-panel);
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-report-modal-header h3 {
  font-size: 16px;
  color: var(--mobile-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-report-modal-header h3 i {
  color: var(--mobile-accent);
}

.mobile-report-modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--mobile-text-muted);
  font-size: 20px;
  cursor: pointer;
}

.mobile-report-modal-body {
  flex: 1;
  overflow: hidden;
}

.mobile-report-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.mobile-report-modal-footer {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: var(--mobile-panel);
  border-top: 1px solid var(--mobile-line);
}

.mobile-report-modal-footer button {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-report-modal-footer .btn-secondary {
  background: var(--mobile-input);
  border: 1px solid var(--mobile-line);
  color: var(--mobile-text);
}

.mobile-report-modal-footer .btn-primary {
  background: linear-gradient(135deg, #ff6b2b, #ff8f5a);
  border: none;
  color: white;
}

.mobile-date-badge {
  background: var(--mobile-accent);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: auto;
  margin-right: 8px;
}

/* ========================================
   ANALYTICS / CHARTS
   ======================================== */

.mobile-chart-card {
  margin: 16px;
  padding: 16px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
}

.mobile-chart-card:first-child {
  margin-top: 16px;
}

.mobile-chart-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  margin-bottom: 16px;
}

.mobile-chart-title i {
  color: var(--mobile-accent);
  margin-right: 8px;
}

/* Funnel Chart - Shows empty track with fill that grows based on value */
.mobile-funnel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-funnel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-funnel-label {
  width: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text-muted);
}

/* Track container - always visible as empty state */
.mobile-funnel-track {
  flex: 1;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fill bar - width set by JS, opacity shows progress */
.mobile-funnel-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease, opacity 0.3s ease;
  min-width: 0; /* Allow 0 width for empty */
}

/* Phase-specific colors with gradient fill */
.mobile-funnel-bar[data-phase="P0"] .mobile-funnel-fill { 
  background: linear-gradient(90deg, #6b7280 0%, #9ca3af 100%);
}
.mobile-funnel-bar[data-phase="P1"] .mobile-funnel-fill { 
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
}
.mobile-funnel-bar[data-phase="P2"] .mobile-funnel-fill { 
  background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}
.mobile-funnel-bar[data-phase="P3"] .mobile-funnel-fill { 
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}
.mobile-funnel-bar[data-phase="P4"] .mobile-funnel-fill { 
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}
.mobile-funnel-bar[data-phase="P5"] .mobile-funnel-fill { 
  background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
}

.mobile-funnel-value {
  width: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mobile-text);
  text-align: right;
}

/* Zero state - show faded indicator */
.mobile-funnel-bar[data-count="0"] .mobile-funnel-fill {
  width: 0 !important;
}

.mobile-funnel-bar[data-count="0"] .mobile-funnel-value {
  color: var(--mobile-text-muted);
}

/* Bar Charts (Owner/Source) */
.mobile-owner-bars,
.mobile-source-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-bar-label {
  width: 80px;
  font-size: 12px;
  color: var(--mobile-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-bar-track {
  flex: 1;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.mobile-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mobile-accent), rgba(255, 107, 43, 0.6));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.mobile-bar-fill.green {
  background: linear-gradient(90deg, #22c55e, rgba(34, 197, 94, 0.5));
}

.mobile-bar-value {
  width: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text);
  text-align: right;
}

.mobile-empty-small {
  font-size: 12px;
  color: var(--mobile-text-muted);
  text-align: center;
  padding: 16px;
  font-style: italic;
}

/* ========================================
   SETTINGS VIEW
   ======================================== */

.mobile-settings-list {
  padding: 16px;
  padding-bottom: 100px;
}

.mobile-settings-section {
  margin-bottom: 24px;
}

.mobile-settings-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-left: 4px;
}

.mobile-settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-settings-item:active {
  background: rgba(255, 255, 255, 0.03);
  transform: scale(0.98);
}

.mobile-settings-item > i:first-child {
  width: 20px;
  text-align: center;
  color: var(--mobile-accent);
  font-size: 16px;
}

.mobile-settings-item-info {
  flex: 1;
  min-width: 0;
}

.mobile-settings-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--mobile-text);
}

.mobile-settings-item-desc {
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-top: 2px;
}

.mobile-settings-item > i:last-child {
  color: var(--mobile-text-muted);
  font-size: 12px;
}

.mobile-settings-item.danger > i:first-child {
  color: #ef4444;
}

.mobile-settings-item.danger .mobile-settings-item-title {
  color: #ef4444;
}

.mobile-settings-version {
  text-align: center;
  font-size: 11px;
  color: var(--mobile-text-muted);
  padding: 20px;
  opacity: 0.6;
}

/* ========================================
   FORMS
   ======================================== */

.mobile-sheet-content--tall {
  max-height: 85vh;
}

.mobile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-form-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-label {
  display: block;
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-bottom: 6px;
}

.mobile-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mobile-input-row .mobile-input-group {
  margin-bottom: 0;
}

select.mobile-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.mobile-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.mobile-btn--secondary {
  background: transparent;
  border: 1px solid var(--mobile-line);
  color: var(--mobile-text-muted);
}

.mobile-btn--secondary:active {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-btn--danger {
  background: #ef4444;
  color: white;
}

.mobile-btn--danger:active {
  background: #dc2626;
}

.mobile-btn--primary {
  background: linear-gradient(135deg, var(--mobile-accent) 0%, var(--mobile-accent-secondary) 100%);
  color: var(--mobile-text);
}

.mobile-btn--primary:active {
  opacity: 0.9;
}

.mobile-form-danger {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--mobile-line);
}

.mobile-form-danger .mobile-btn {
  width: 100%;
}

.mobile-confirm-message {
  font-size: 14px;
  color: var(--admin-text-secondary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ========================================
   NOTIFICATION SETTINGS
   ======================================== */

.mobile-toggle {
  width: 48px;
  height: 28px;
  cursor: pointer;
}

.mobile-toggle-track {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  position: relative;
  transition: background 0.2s;
}

.mobile-toggle.active .mobile-toggle-track {
  background: var(--mobile-accent);
}

.mobile-toggle-thumb {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 12px;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-toggle.active .mobile-toggle-thumb {
  transform: translateX(20px);
}

.mobile-notif-options {
  display: none;
  margin-top: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
}

.mobile-settings-item-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-settings-item-toggle:last-child {
  border-bottom: none;
}

.mobile-checkbox {
  position: relative;
  cursor: pointer;
}

.mobile-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mobile-checkbox-mark {
  display: block;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--admin-line-strong);
  border-radius: 4px;
  transition: all 0.2s;
}

.mobile-checkbox input:checked + .mobile-checkbox-mark {
  background: var(--mobile-accent);
  border-color: var(--mobile-accent);
}

.mobile-checkbox-mark::after {
  content: '';
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mobile-checkbox input:checked + .mobile-checkbox-mark::after {
  display: block;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.mobile-toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  background: var(--mobile-panel);
  border-bottom: 1px solid var(--mobile-line);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-toast.show {
  transform: translateY(0);
}

.mobile-toast-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 43, 0.15);
  border-radius: 10px;
  color: var(--mobile-accent);
  font-size: 16px;
  flex-shrink: 0;
}

.mobile-toast-content {
  flex: 1;
  min-width: 0;
}

.mobile-toast-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-toast-body {
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-toast-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--mobile-text-muted);
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
}

.mobile-toast-close:active {
  background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   MESSAGE BOARD
   ======================================== */

.mobile-message-board {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--mobile-line);
}

.mobile-message-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mobile-message-board-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--mobile-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-message-board-title i {
  color: var(--mobile-accent);
}

.mobile-message-board-add {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mobile-accent) 0%, var(--mobile-accent-secondary) 100%);
  border: none;
  border-radius: 10px;
  color: var(--mobile-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-message-board-add:active {
  transform: scale(0.95);
}

.mobile-message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-message-item {
  padding: 14px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
  position: relative;
}

.mobile-message-item.high-priority {
  border-left: 3px solid #ef4444;
}

.mobile-message-item.low-priority {
  border-left: 3px solid var(--mobile-accent);
}

.mobile-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mobile-message-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mobile-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--mobile-accent);
}

.mobile-message-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-message-time {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

.mobile-message-priority {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-message-priority.high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.mobile-message-priority.low {
  background: rgba(255, 107, 43, 0.15);
  color: var(--mobile-accent);
}

.mobile-message-subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  margin-bottom: 6px;
}

.mobile-message-body {
  font-size: 13px;
  color: var(--mobile-text-muted);
  line-height: 1.5;
}

.mobile-message-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--mobile-line);
}

.mobile-message-action-btn {
  padding: 6px 12px;
  background: var(--mobile-mid);
  border: 1px solid var(--mobile-line);
  border-radius: 6px;
  color: var(--mobile-text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-message-action-btn.edit:active {
  background: rgba(255, 107, 43, 0.15);
  color: var(--mobile-accent);
  border-color: var(--mobile-accent);
}

.mobile-message-action-btn.delete:active {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: #ef4444;
}

.mobile-message-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--mobile-text-muted);
}

.mobile-message-empty i {
  font-size: 32px;
  opacity: 0.3;
  margin-bottom: 12px;
}

.mobile-message-empty p {
  font-size: 13px;
}

/* Priority Toggle */
.mobile-priority-toggle {
  display: flex;
  gap: 8px;
}

.mobile-priority-btn {
  flex: 1;
  padding: 12px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  color: var(--mobile-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-priority-btn.active[data-priority="low"] {
  background: rgba(255, 107, 43, 0.15);
  border-color: var(--mobile-accent);
  color: var(--mobile-accent);
}

.mobile-priority-btn.active[data-priority="high"] {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

.mobile-priority-btn:active {
  transform: scale(0.98);
}

/* Textarea */
.mobile-textarea {
  resize: none;
  min-height: 100px;
}

/* ========================================
   QUICK PHASE STEPPER
   ======================================== */

.mobile-phase-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 0;
  margin: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-phase-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--mobile-panel);
  border: 2px solid var(--mobile-line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  min-width: 56px;
}

.mobile-phase-step:active {
  transform: scale(0.95);
}

.mobile-phase-step.current {
  border-color: var(--mobile-accent);
  background: rgba(255, 106, 26, 0.15);
}

.mobile-phase-step.completed {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.mobile-phase-step-code {
  font-size: 14px;
  font-weight: 700;
  color: var(--mobile-text);
}

.mobile-phase-step.current .mobile-phase-step-code {
  color: var(--mobile-accent);
}

.mobile-phase-step.completed .mobile-phase-step-code {
  color: #22c55e;
}

.mobile-phase-step-label {
  font-size: 9px;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.mobile-phase-arrow {
  color: var(--mobile-text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

/* ========================================
   VOICE MEMO RECORDING
   ======================================== */

.mobile-voice-recorder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.mobile-voice-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mobile-accent) 0%, var(--mobile-accent-secondary) 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(255, 106, 26, 0.4);
}

.mobile-voice-btn i {
  font-size: 32px;
  color: white;
}

.mobile-voice-btn:active {
  transform: scale(0.95);
}

.mobile-voice-btn.recording {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  animation: pulse-recording 1s infinite;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
}

@keyframes pulse-recording {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.mobile-voice-status {
  font-size: 14px;
  color: var(--mobile-text);
  font-weight: 500;
}

.mobile-voice-timer {
  font-size: 24px;
  font-weight: 700;
  color: var(--mobile-accent);
  font-family: 'Montserrat', sans-serif;
}

.mobile-voice-btn.recording + .mobile-voice-status .mobile-voice-timer {
  color: #ef4444;
}

.mobile-voice-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 40px;
}

.mobile-voice-waveform-bar {
  width: 4px;
  background: var(--mobile-accent);
  border-radius: 2px;
  animation: waveform 0.5s ease-in-out infinite;
}

.mobile-voice-waveform-bar:nth-child(1) { animation-delay: 0s; height: 20px; }
.mobile-voice-waveform-bar:nth-child(2) { animation-delay: 0.1s; height: 30px; }
.mobile-voice-waveform-bar:nth-child(3) { animation-delay: 0.2s; height: 25px; }
.mobile-voice-waveform-bar:nth-child(4) { animation-delay: 0.3s; height: 35px; }
.mobile-voice-waveform-bar:nth-child(5) { animation-delay: 0.4s; height: 20px; }

@keyframes waveform {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.mobile-voice-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.mobile-voice-actions .mobile-btn {
  flex: 1;
}

/* Audio playback preview */
.mobile-audio-preview {
  width: 100%;
  padding: 12px;
  background: var(--mobile-mid);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-audio-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mobile-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-audio-play-btn i {
  font-size: 18px;
  color: white;
}

.mobile-audio-info {
  flex: 1;
}

.mobile-audio-duration {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-audio-label {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

/* Playback waveform animation */
.mobile-audio-waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  flex: 1;
  padding: 0 8px;
}

.mobile-audio-waveform-bar {
  width: 3px;
  background: var(--mobile-accent);
  border-radius: 2px;
  opacity: 0.4;
  transition: height 0.1s ease;
}

.mobile-audio-waveform.playing .mobile-audio-waveform-bar {
  opacity: 1;
  animation: playbackWave 0.5s ease-in-out infinite;
}

.mobile-audio-waveform-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.mobile-audio-waveform-bar:nth-child(2) { height: 16px; animation-delay: 0.05s; }
.mobile-audio-waveform-bar:nth-child(3) { height: 24px; animation-delay: 0.1s; }
.mobile-audio-waveform-bar:nth-child(4) { height: 20px; animation-delay: 0.15s; }
.mobile-audio-waveform-bar:nth-child(5) { height: 28px; animation-delay: 0.2s; }
.mobile-audio-waveform-bar:nth-child(6) { height: 18px; animation-delay: 0.25s; }
.mobile-audio-waveform-bar:nth-child(7) { height: 26px; animation-delay: 0.3s; }
.mobile-audio-waveform-bar:nth-child(8) { height: 14px; animation-delay: 0.35s; }
.mobile-audio-waveform-bar:nth-child(9) { height: 22px; animation-delay: 0.4s; }
.mobile-audio-waveform-bar:nth-child(10) { height: 10px; animation-delay: 0.45s; }
.mobile-audio-waveform-bar:nth-child(11) { height: 20px; animation-delay: 0.5s; }
.mobile-audio-waveform-bar:nth-child(12) { height: 16px; animation-delay: 0.55s; }

@keyframes playbackWave {
  0%, 100% { 
    transform: scaleY(1);
    opacity: 0.6;
  }
  50% { 
    transform: scaleY(1.5);
    opacity: 1;
  }
}

/* Transcription status */
.mobile-transcription-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 106, 26, 0.1);
  border-radius: 8px;
  font-size: 12px;
  color: var(--mobile-accent);
}

.mobile-transcription-status i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   SCREENSHOT/CAMERA CAPTURE
   ======================================== */

.mobile-camera-capture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.mobile-camera-preview {
  width: 100%;
  max-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--mobile-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-camera-preview img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.mobile-camera-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  color: var(--mobile-text-muted);
}

.mobile-camera-placeholder i {
  font-size: 48px;
  opacity: 0.3;
}

.mobile-camera-placeholder p {
  font-size: 13px;
  text-align: center;
}

.mobile-camera-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.mobile-camera-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
  color: var(--mobile-text);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-camera-btn i {
  font-size: 24px;
  color: var(--mobile-accent);
}

.mobile-camera-btn span {
  font-size: 12px;
  font-weight: 500;
}

.mobile-camera-btn:active {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(0.98);
}

.mobile-camera-btn--primary {
  background: var(--mobile-accent);
  border-color: var(--mobile-accent);
  color: white;
}

.mobile-camera-btn--primary i {
  color: white;
}

/* Multi-image card slots */
.mobile-card-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.mobile-card-image-slot {
  position: relative;
  aspect-ratio: 1.6;
  border-radius: 12px;
  background: var(--mobile-mid);
  border: 2px dashed var(--mobile-line);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-card-image-slot:hover {
  border-color: var(--mobile-accent);
}

.mobile-card-image-slot.has-image {
  border-style: solid;
  border-color: var(--mobile-accent);
}

.mobile-card-image-slot.active {
  border-color: var(--mobile-accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.3);
}

.mobile-card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--mobile-text-muted);
}

.mobile-card-image-placeholder i {
  font-size: 28px;
  opacity: 0.4;
}

.mobile-card-image-placeholder span {
  font-size: 11px;
  font-weight: 500;
}

.mobile-card-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-card-image-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-camera-hint {
  font-size: 12px;
  color: var(--mobile-text-muted);
  text-align: center;
  margin: 0;
}

/* AI Processing indicator */
.mobile-ai-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px;
}

.mobile-ai-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--mobile-line);
  border-top-color: var(--mobile-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.mobile-ai-status {
  font-size: 14px;
  color: var(--mobile-text);
  text-align: center;
}

.mobile-ai-status small {
  display: block;
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-top: 4px;
}

/* Extracted fields preview */
.mobile-extracted-fields {
  width: 100%;
  padding: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
}

.mobile-extracted-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #22c55e;
  font-size: 13px;
  font-weight: 600;
}

.mobile-extracted-field {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-extracted-field:last-child {
  border-bottom: none;
}

.mobile-extracted-label {
  font-size: 12px;
  color: var(--mobile-text-muted);
}

.mobile-extracted-value {
  font-size: 13px;
  color: var(--mobile-text);
  font-weight: 500;
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* Quick action buttons in contact detail */
.mobile-quick-action.voice {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.mobile-quick-action.voice i {
  color: #8b5cf6;
}

/* ========================================
   HAPTIC FEEDBACK VISUAL INDICATOR
   ======================================== */

.haptic-flash {
  animation: haptic-flash 0.15s ease;
}

@keyframes haptic-flash {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ========================================
   ENHANCED TOUCH FEEDBACK & RIPPLE EFFECT
   ======================================== */

/* Ripple effect container */
.touch-ripple {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.touch-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.touch-ripple.rippling::after {
  animation: ripple-expand 0.5s var(--ease-out-expo) forwards;
}

@keyframes ripple-expand {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Enhanced press state for all interactive elements */
.mobile-btn,
.mobile-contact-card,
.mobile-section-card,
.mobile-list-item,
.mobile-settings-item,
.mobile-filter-pill,
.mobile-nav-item,
.mobile-quick-action {
  -webkit-tap-highlight-color: transparent;
  transform-origin: center;
  will-change: transform;
}

/* Smoother active states */
.mobile-btn:active {
  transform: scale(0.97);
  transition: transform 0.1s var(--ease-spring);
}

.mobile-contact-card:active,
.mobile-section-card:active,
.mobile-list-item:active {
  transform: scale(0.985);
  transition: transform 0.1s var(--ease-spring);
}

/* Long press indicator */
.long-press-active {
  animation: long-press-pulse 0.6s ease-in-out;
}

@keyframes long-press-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.96); box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.3); }
  100% { transform: scale(1); }
}

/* ========================================
   PULL TO REFRESH
   ======================================== */

.pull-to-refresh-container {
  position: relative;
  overflow: hidden;
}

.pull-to-refresh-indicator {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 50%;
  color: var(--mobile-accent);
  font-size: 18px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s var(--ease-spring);
  z-index: 10;
}

.pull-to-refresh-indicator.visible {
  opacity: 1;
}

.pull-to-refresh-indicator.pulling {
  transform: translateX(-50%) rotate(0deg);
}

.pull-to-refresh-indicator.refreshing {
  animation: ptr-spin 0.8s linear infinite;
}

.pull-to-refresh-indicator.releasing {
  animation: ptr-bounce 0.3s var(--ease-spring);
}

@keyframes ptr-spin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes ptr-bounce {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.2); }
  100% { transform: translateX(-50%) scale(1); }
}

/* ========================================
   STAGGERED LIST ANIMATIONS
   ======================================== */

.mobile-contacts-list.animating .mobile-contact-card,
.mobile-list.animating .mobile-list-item,
.mobile-section-cards.animating .mobile-section-card {
  opacity: 0;
  transform: translateY(20px);
  animation: list-item-enter 0.4s var(--ease-out-expo) forwards;
}

.mobile-contacts-list.animating .mobile-contact-card:nth-child(1) { animation-delay: 0ms; }
.mobile-contacts-list.animating .mobile-contact-card:nth-child(2) { animation-delay: 40ms; }
.mobile-contacts-list.animating .mobile-contact-card:nth-child(3) { animation-delay: 80ms; }
.mobile-contacts-list.animating .mobile-contact-card:nth-child(4) { animation-delay: 120ms; }
.mobile-contacts-list.animating .mobile-contact-card:nth-child(5) { animation-delay: 160ms; }
.mobile-contacts-list.animating .mobile-contact-card:nth-child(6) { animation-delay: 200ms; }
.mobile-contacts-list.animating .mobile-contact-card:nth-child(7) { animation-delay: 240ms; }
.mobile-contacts-list.animating .mobile-contact-card:nth-child(8) { animation-delay: 280ms; }
.mobile-contacts-list.animating .mobile-contact-card:nth-child(n+9) { animation-delay: 320ms; }

.mobile-list.animating .mobile-list-item:nth-child(1) { animation-delay: 0ms; }
.mobile-list.animating .mobile-list-item:nth-child(2) { animation-delay: 40ms; }
.mobile-list.animating .mobile-list-item:nth-child(3) { animation-delay: 80ms; }
.mobile-list.animating .mobile-list-item:nth-child(4) { animation-delay: 120ms; }
.mobile-list.animating .mobile-list-item:nth-child(5) { animation-delay: 160ms; }
.mobile-list.animating .mobile-list-item:nth-child(n+6) { animation-delay: 200ms; }

@keyframes list-item-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   SKELETON LOADING STATES
   ======================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--mobile-mid) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    var(--mobile-mid) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 80px;
  margin-bottom: 12px;
  border-radius: 14px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.medium { width: 80%; }
.skeleton-text.full { width: 100%; }

.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* ========================================
   VIEW TRANSITIONS
   ======================================== */

.mobile-view {
  animation: none;
}

.mobile-view.entering {
  animation: view-enter 0.35s var(--ease-out-expo) forwards;
}

.mobile-view.exiting {
  animation: view-exit 0.25s var(--ease-in-out) forwards;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes view-exit {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

/* Back navigation animation */
.mobile-view.entering-back {
  animation: view-enter-back 0.35s var(--ease-out-expo) forwards;
}

.mobile-view.exiting-forward {
  animation: view-exit-forward 0.25s var(--ease-in-out) forwards;
}

@keyframes view-enter-back {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes view-exit-forward {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* ========================================
   IMPROVED BOTTOM SHEET ANIMATIONS
   ======================================== */

.mobile-sheet {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-sheet.open {
  animation: sheet-backdrop-in 0.3s var(--ease-out-expo) forwards;
}

.mobile-sheet.closing {
  animation: sheet-backdrop-out 0.25s var(--ease-in-out) forwards;
}

@keyframes sheet-backdrop-in {
  from { background: rgba(0, 0, 0, 0); }
  to { background: rgba(0, 0, 0, 0.6); }
}

@keyframes sheet-backdrop-out {
  from { background: rgba(0, 0, 0, 0.6); }
  to { background: rgba(0, 0, 0, 0); }
}

.mobile-sheet.open .mobile-sheet-content {
  animation: sheet-slide-up 0.35s var(--ease-spring) forwards;
}

.mobile-sheet.closing .mobile-sheet-content {
  animation: sheet-slide-down 0.25s var(--ease-in-out) forwards;
}

@keyframes sheet-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes sheet-slide-down {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Sheet drag handle visual feedback */
.mobile-sheet-handle {
  cursor: grab;
  transition: transform 0.2s var(--ease-spring);
}

.mobile-sheet-handle:active {
  cursor: grabbing;
}

.mobile-sheet.dragging .mobile-sheet-handle::before {
  background: var(--mobile-accent);
  transform: scaleX(1.2);
}

/* ========================================
   BUTTON LOADING STATE
   ======================================== */

.mobile-btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.mobile-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   REFRESH BUTTON ANIMATION
   ======================================== */

.mobile-header-btn.refreshing i {
  animation: refresh-spin 0.8s linear infinite;
}

@keyframes refresh-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ========================================
   SUCCESS/ERROR FEEDBACK ANIMATIONS
   ======================================== */

.feedback-success {
  animation: feedback-success 0.5s var(--ease-spring);
}

@keyframes feedback-success {
  0% { transform: scale(1); }
  30% { transform: scale(1.05); background: rgba(34, 197, 94, 0.2); }
  100% { transform: scale(1); background: transparent; }
}

.feedback-error {
  animation: feedback-error 0.4s var(--ease-spring);
}

@keyframes feedback-error {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ========================================
   UTILITIES
   ======================================== */

.hidden {
  display: none !important;
}

/* Safe area padding for notched devices */
@supports (padding: max(0px)) {
  .mobile-header {
    padding-top: max(12px, env(safe-area-inset-top));
  }
}

/* ========================================
   KEYBOARD-AWARE VIEWPORT
   ======================================== */

/* When keyboard is open, adjust the view */
.keyboard-open .mobile-sheet-content {
  max-height: 50vh;
  padding-bottom: 20px;
}

.keyboard-open .mobile-detail-content,
.keyboard-open .mobile-main-content {
  padding-bottom: 300px;
}

/* Ensure inputs scroll into view */
.mobile-input:focus {
  scroll-margin-bottom: 150px;
}

/* ========================================
   BOTTOM NAV CLEARANCE
   ======================================== */

.mobile-detail-content,
.mobile-main-content,
.mobile-view {
  padding-bottom: 100px; /* Space for bottom nav */
}

.mobile-sheet-content {
  padding-bottom: 40px; /* Extra space at bottom of sheets */
}

/* ========================================
   SWIPEABLE BOTTOM SHEETS
   Swipe down anywhere to close (when at top)
   Prevents browser pull-to-refresh
   ======================================== */

.mobile-sheet {
  touch-action: none;
  /* Prevent overscroll bounce on the backdrop */
  overscroll-behavior: contain;
}

.mobile-sheet-content {
  touch-action: pan-y;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  /* Prevent overscroll bounce which triggers pull-to-refresh */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-sheet.dragging .mobile-sheet-content {
  transition: none;
  /* Disable pointer events on children during drag to prevent accidental taps */
  pointer-events: none;
}

/* Re-enable pointer events on handle during drag */
.mobile-sheet.dragging .mobile-sheet-handle {
  pointer-events: auto;
}

/* Visual feedback when sheet is being dragged */
.mobile-sheet.dragging {
  cursor: grabbing;
}

/* Handle styles defined above in sheet section */

/* ========================================
   SALES FUNNEL VISUALIZATION
   ======================================== */

.mobile-funnel-card {
  background: var(--mobile-panel);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.mobile-funnel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-funnel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-funnel-phase {
  font-size: 12px;
  color: var(--mobile-accent);
  font-weight: 500;
}

.mobile-funnel-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.mobile-funnel-step {
  flex: 1;
  height: 6px;
  background: var(--mobile-mid);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.mobile-funnel-step.completed {
  background: var(--mobile-accent);
}

.mobile-funnel-step.current {
  background: linear-gradient(90deg, var(--mobile-accent) 50%, var(--mobile-mid) 50%);
  animation: funnel-pulse 1.5s ease-in-out infinite;
}

@keyframes funnel-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.mobile-funnel-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-funnel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 13px;
  color: var(--mobile-text-muted);
}

.mobile-funnel-item.completed {
  color: var(--mobile-text);
}

.mobile-funnel-item.completed i {
  color: #22c55e;
}

.mobile-funnel-item.pending i {
  color: var(--mobile-text-muted);
  opacity: 0.5;
}

.mobile-funnel-item.next {
  background: rgba(255, 106, 26, 0.1);
  border: 1px solid rgba(255, 106, 26, 0.3);
  color: var(--mobile-text);
}

.mobile-funnel-item.next i {
  color: var(--mobile-accent);
}

.mobile-funnel-item-text {
  flex: 1;
}

/* ========================================
   GAUGE / NEEDLE CHART
   ======================================== */

.mobile-gauge {
  position: relative;
  width: 120px;
  height: 60px;
  margin: 0 auto 12px;
}

.mobile-gauge-bg {
  position: absolute;
  width: 120px;
  height: 60px;
  border-radius: 60px 60px 0 0;
  background: conic-gradient(
    from 180deg,
    #ef4444 0deg,
    #f59e0b 60deg,
    #22c55e 120deg,
    #22c55e 180deg
  );
  overflow: hidden;
}

.mobile-gauge-bg::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  width: 90px;
  height: 45px;
  background: var(--mobile-panel);
  border-radius: 45px 45px 0 0;
}

.mobile-gauge-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 50px;
  background: var(--mobile-text);
  border-radius: 2px;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-90deg);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

.mobile-gauge-center {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--mobile-text);
  border-radius: 50%;
  z-index: 3;
}

.mobile-gauge-label {
  text-align: center;
  font-size: 11px;
  color: var(--mobile-text-muted);
  margin-top: 8px;
}

.mobile-gauge-value {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--mobile-text);
}

/* ========================================
   LINE CHART (Mini Sparkline)
   ======================================== */

.mobile-sparkline {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 40px;
  padding: 8px 0;
}

.mobile-sparkline-bar {
  flex: 1;
  background: var(--mobile-accent);
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.mobile-sparkline-bar:last-child {
  opacity: 1;
}

.mobile-sparkline-bar:hover {
  opacity: 1;
  transform: scaleY(1.1);
}

/* ========================================
   ANALYTICS MINI CARDS
   ======================================== */

.mobile-analytics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-analytics-card {
  background: var(--mobile-panel);
  border-radius: 12px;
  padding: 14px;
}

.mobile-analytics-card-title {
  font-size: 11px;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.mobile-analytics-card-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--mobile-text);
  margin-bottom: 4px;
}

.mobile-analytics-card-change {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-analytics-card-change.positive {
  color: #22c55e;
}

.mobile-analytics-card-change.negative {
  color: #ef4444;
}

/* ========================================
   ANALYTICS CHART CARDS
   ======================================== */

.mobile-chart-card {
  background: var(--mobile-panel);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.mobile-chart-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-chart-title i {
  color: var(--mobile-accent);
}

/* Bar chart rows (owner, source) */
.mobile-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.mobile-bar-label {
  width: 70px;
  font-size: 12px;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.mobile-bar-fill {
  height: 100%;
  background: var(--mobile-accent);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.mobile-bar-fill.green {
  background: #22c55e;
}

.mobile-bar-value {
  width: 30px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text);
}

/* Company type bars */
.mobile-type-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mobile-line);
  cursor: pointer;
  transition: background 0.15s ease;
}

.mobile-type-bar:last-child {
  border-bottom: none;
}

.mobile-type-bar:active {
  background: rgba(255, 106, 26, 0.1);
}

.mobile-type-bar-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.mobile-type-bar-info {
  flex: 1;
  min-width: 0;
}

.mobile-type-bar-name {
  font-size: 12px;
  color: var(--mobile-text);
  margin-bottom: 4px;
}

.mobile-type-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.mobile-type-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.mobile-type-bar-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text);
  min-width: 24px;
  text-align: right;
}

/* Employee size bars */
.mobile-size-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mobile-size-bar:active {
  background: rgba(255, 106, 26, 0.1);
}

.mobile-size-bar-label {
  width: 50px;
  font-size: 12px;
  color: var(--mobile-text);
}

.mobile-size-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.mobile-size-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.mobile-size-bar-value {
  width: 30px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text);
}

/* Roster stats */
.mobile-roster-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-roster-stat {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.mobile-roster-stat--highlight {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.mobile-roster-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--mobile-text);
  margin-bottom: 4px;
}

.mobile-roster-stat--highlight .mobile-roster-stat-value {
  color: #22c55e;
}

.mobile-roster-stat-label {
  font-size: 10px;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Top companies roster list */
.mobile-roster-top {
  margin-top: 12px;
}

.mobile-roster-top-title {
  font-size: 11px;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.mobile-roster-top-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mobile-line);
  cursor: pointer;
  transition: background 0.15s ease;
}

.mobile-roster-top-item:last-child {
  border-bottom: none;
}

.mobile-roster-top-item:active {
  background: rgba(255, 106, 26, 0.1);
}

.mobile-roster-top-rank {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile-accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
}

.mobile-roster-top-name {
  flex: 1;
  font-size: 13px;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-roster-top-phase {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--mobile-text-muted);
}

.mobile-roster-top-phase.phase-P5 {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.mobile-roster-top-phase.phase-P4 {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.mobile-roster-top-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--mobile-accent);
}

/* Velocity list */
.mobile-velocity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-velocity-item:last-child {
  border-bottom: none;
}

.mobile-velocity-phase {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile-accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
}

.mobile-velocity-info {
  flex: 1;
}

.mobile-velocity-label {
  font-size: 12px;
  color: var(--mobile-text);
}

.mobile-velocity-days {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

.mobile-velocity-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--mobile-text);
}

/* Activity chart bars */
.mobile-activity-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 80px;
  gap: 4px;
}

.mobile-activity-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.mobile-activity-bar .bar-fill {
  width: 100%;
  background: var(--mobile-accent);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  margin-top: auto;
  transition: height 0.5s ease;
}

.mobile-activity-bar span {
  font-size: 9px;
  color: var(--mobile-text-muted);
  margin-top: 6px;
}

/* Funnel bars */
.mobile-funnel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-funnel-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-funnel-label {
  width: 24px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mobile-text-muted);
}

.mobile-funnel-track {
  flex: 1;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.mobile-funnel-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--mobile-accent), var(--mobile-glow));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.mobile-funnel-bar[data-count="0"] .mobile-funnel-fill {
  width: 0 !important;
}

.mobile-funnel-value {
  width: 28px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text);
}

/* Empty state small */
.mobile-empty-small {
  padding: 20px;
  text-align: center;
  color: var(--mobile-text-muted);
  font-size: 13px;
}

/* ========================================
   ANALYTICS FILTER POPUP
   ======================================== */

.mobile-analytics-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mobile-analytics-popup.open {
  opacity: 1;
}

.mobile-analytics-popup.closing {
  opacity: 0;
}

.mobile-analytics-popup-content {
  background: var(--mobile-panel, #1e293b);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.2s ease;
}

.mobile-analytics-popup.open .mobile-analytics-popup-content {
  transform: scale(1) translateY(0);
}

.mobile-analytics-popup-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-analytics-popup-header h3 {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  color: var(--mobile-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-analytics-popup-header h3 i {
  color: var(--mobile-accent);
}

.mobile-analytics-popup-count {
  font-size: 12px;
  color: var(--mobile-text-muted);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
}

.mobile-analytics-popup-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--mobile-text-muted);
  font-size: 24px;
  cursor: pointer;
}

.mobile-analytics-popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.mobile-analytics-popup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mobile-analytics-popup-item:active {
  background: rgba(255, 106, 26, 0.1);
}

.mobile-analytics-popup-item-main {
  flex: 1;
  min-width: 0;
}

.mobile-analytics-popup-item-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-analytics-popup-item-contact {
  font-size: 12px;
  color: var(--mobile-text-muted);
}

.mobile-analytics-popup-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-analytics-popup-more {
  padding: 12px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--mobile-text-muted);
}

/* Report section */
.mobile-report-section {
  text-align: center;
  padding: 16px;
  margin-bottom: 16px;
}

.mobile-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--mobile-accent), var(--mobile-glow));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 106, 26, 0.3);
  transition: all 0.2s ease;
}

.mobile-report-btn:active {
  transform: scale(0.98);
}

.mobile-report-hint {
  font-size: 11px;
  color: var(--mobile-text-muted);
  margin-top: 8px;
}

/* ========================================
   INPUT MASKING STYLES
   ======================================== */

.mobile-input[data-masked] {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  letter-spacing: 0.5px;
}

/* ========================================
   AI CHAT VIEW
   ======================================== */

.mobile-chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 140px);
  height: calc(100dvh - 140px);
}

.mobile-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--mobile-text-muted);
}

.mobile-chat-welcome-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 106, 26, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.mobile-chat-welcome-icon i {
  font-size: 36px;
  color: var(--mobile-accent);
}

.mobile-chat-welcome h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--mobile-text);
  margin-bottom: 8px;
}

.mobile-chat-welcome p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
}

.mobile-chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.mobile-chat-message.user {
  align-self: flex-end;
  background: var(--mobile-accent);
  color: white;
  border-bottom-right-radius: 4px;
}

.mobile-chat-message.assistant {
  align-self: flex-start;
  background: var(--mobile-panel);
  color: var(--mobile-text);
  border: 1px solid var(--mobile-line);
  border-bottom-left-radius: 4px;
}

.mobile-chat-message.typing {
  display: flex;
  gap: 4px;
  padding: 16px 20px;
}

.mobile-chat-message.typing span {
  width: 8px;
  height: 8px;
  background: var(--mobile-text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out;
}

.mobile-chat-message.typing span:nth-child(1) { animation-delay: 0s; }
.mobile-chat-message.typing span:nth-child(2) { animation-delay: 0.2s; }
.mobile-chat-message.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

.mobile-chat-input-area {
  padding: 12px 16px 24px;
  background: var(--mobile-panel);
  border-top: 1px solid var(--mobile-line);
}

.mobile-chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--mobile-input);
  border: 1px solid var(--mobile-line);
  border-radius: 24px;
  padding: 4px 4px 4px 12px;
}

.mobile-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--mobile-text);
  font-size: 15px;
  padding: 8px 0;
  outline: none;
}

.mobile-chat-input::placeholder {
  color: var(--mobile-text-muted);
}

.mobile-chat-voice-btn,
.mobile-chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-chat-voice-btn {
  background: transparent;
  color: var(--mobile-text-muted);
}

.mobile-chat-voice-btn:hover,
.mobile-chat-voice-btn.recording {
  color: var(--mobile-accent);
}

.mobile-chat-voice-btn.recording {
  animation: pulse 1s infinite;
}

.mobile-chat-send-btn {
  background: var(--mobile-accent);
  color: white;
}

.mobile-chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   INTERACTIVE PHASE CHECKLIST
   ======================================== */

.mobile-funnel-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--mobile-accent);
  cursor: pointer;
}

.mobile-funnel-item.clickable {
  cursor: pointer;
}

.mobile-funnel-item.clickable:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ========================================
   TASK CARDS (Card-based UI)
   ======================================== */

.mobile-task-phase-group {
  margin-bottom: 16px;
}

.mobile-task-phase-group.past {
  opacity: 0.7;
}

.mobile-task-phase-group.future {
  opacity: 0.5;
}

.mobile-task-phase-group.current {
  opacity: 1;
}

.mobile-task-phase-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-task-phase-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.mobile-task-phase-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text);
  flex: 1;
}

.mobile-task-phase-progress {
  font-size: 10px;
  color: var(--mobile-text-muted);
}

.mobile-task-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-task-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--mobile-line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-task-card:active {
  transform: scale(0.98);
}

.mobile-task-card.completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.4);
}

.mobile-task-card-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 12px;
  color: var(--mobile-text-muted);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-task-card.completed .mobile-task-card-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.mobile-task-card-content {
  flex: 1;
  min-width: 0;
}

.mobile-task-card-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-task-card.completed .mobile-task-card-label {
  color: #10b981;
}

.mobile-task-card-check {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--mobile-line);
  border-radius: 50%;
  color: transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-size: 10px;
}

.mobile-task-card.completed .mobile-task-card-check {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

/* Phase-specific step colors */
.mobile-funnel-step.completed {
  background: var(--phase-color, var(--mobile-accent));
}

.mobile-funnel-step.current {
  background: linear-gradient(90deg, var(--phase-color, var(--mobile-accent)) 50%, var(--mobile-mid) 50%);
}

/* ========================================
   VOICE MESSAGE IN TEAM UPDATES
   ======================================== */

.mobile-message-type-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-message-type-btn {
  flex: 1;
  padding: 12px;
  background: var(--mobile-input);
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
  color: var(--mobile-text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-message-type-btn.active {
  background: rgba(255, 106, 26, 0.15);
  border-color: var(--mobile-accent);
  color: var(--mobile-accent);
}

.mobile-voice-message-recorder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  gap: 12px;
}

.mobile-voice-record-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mobile-accent), #C9561B);
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(255, 106, 26, 0.4);
}

.mobile-voice-record-btn:active {
  transform: scale(0.95);
}

.mobile-voice-record-btn.recording {
  background: #ef4444;
  animation: pulse-record 1s infinite;
}

@keyframes pulse-record {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
}

.mobile-voice-status {
  font-size: 14px;
  color: var(--mobile-text-muted);
}

.mobile-voice-timer {
  font-size: 24px;
  font-weight: 600;
  color: var(--mobile-text);
  font-family: 'SF Mono', monospace;
}

.mobile-voice-message-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(168, 85, 247, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  margin-bottom: 16px;
}

.mobile-voice-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #8b5cf6;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-voice-play-btn.playing i::before {
  content: "\f04c"; /* pause icon */
}

.mobile-voice-waveform-display {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 32px;
}

.mobile-voice-wave-bar {
  width: 4px;
  background: #8b5cf6;
  border-radius: 2px;
  height: 8px;
  opacity: 0.6;
}

.mobile-voice-wave-bar:nth-child(1) { height: 12px; }
.mobile-voice-wave-bar:nth-child(2) { height: 20px; }
.mobile-voice-wave-bar:nth-child(3) { height: 28px; }
.mobile-voice-wave-bar:nth-child(4) { height: 16px; }
.mobile-voice-wave-bar:nth-child(5) { height: 24px; }
.mobile-voice-wave-bar:nth-child(6) { height: 32px; }
.mobile-voice-wave-bar:nth-child(7) { height: 20px; }
.mobile-voice-wave-bar:nth-child(8) { height: 28px; }
.mobile-voice-wave-bar:nth-child(9) { height: 14px; }
.mobile-voice-wave-bar:nth-child(10) { height: 22px; }
.mobile-voice-wave-bar:nth-child(11) { height: 18px; }
.mobile-voice-wave-bar:nth-child(12) { height: 10px; }

.playing .mobile-voice-wave-bar {
  animation: wave-animate 0.5s ease-in-out infinite alternate;
}

.playing .mobile-voice-wave-bar:nth-child(2) { animation-delay: 0.1s; }
.playing .mobile-voice-wave-bar:nth-child(3) { animation-delay: 0.2s; }
.playing .mobile-voice-wave-bar:nth-child(4) { animation-delay: 0.3s; }
.playing .mobile-voice-wave-bar:nth-child(5) { animation-delay: 0.4s; }
.playing .mobile-voice-wave-bar:nth-child(6) { animation-delay: 0.5s; }
.playing .mobile-voice-wave-bar:nth-child(7) { animation-delay: 0.4s; }
.playing .mobile-voice-wave-bar:nth-child(8) { animation-delay: 0.3s; }
.playing .mobile-voice-wave-bar:nth-child(9) { animation-delay: 0.2s; }
.playing .mobile-voice-wave-bar:nth-child(10) { animation-delay: 0.1s; }
.playing .mobile-voice-wave-bar:nth-child(11) { animation-delay: 0.15s; }
.playing .mobile-voice-wave-bar:nth-child(12) { animation-delay: 0.25s; }

@keyframes wave-animate {
  0% { transform: scaleY(0.5); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

.mobile-voice-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-voice-duration {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-voice-label {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

.mobile-voice-delete-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: none;
  color: #ef4444;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-transcription-preview {
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
}

.mobile-transcription-label {
  font-size: 11px;
  color: var(--mobile-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-transcription-text {
  font-size: 14px;
  color: var(--mobile-text);
  line-height: 1.5;
}

/* Voice message card in feed */
.mobile-message-card.voice {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(168, 85, 247, 0.05));
  border-color: rgba(139, 92, 246, 0.3);
}

.mobile-message-card.voice .mobile-message-icon {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
}

.mobile-message-voice-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 10px;
  margin-top: 8px;
}

.mobile-message-voice-player .play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #8b5cf6;
  border: none;
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-message-voice-player .waveform-mini {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
}

.mobile-message-voice-player .waveform-mini span {
  width: 3px;
  background: #8b5cf6;
  border-radius: 1px;
  opacity: 0.5;
}

.mobile-message-voice-player .duration {
  font-size: 12px;
  color: var(--mobile-text-muted);
  font-family: 'SF Mono', monospace;
}

/* Voice message item styling */
.mobile-message-item.voice {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(168, 85, 247, 0.04));
  border-left: 3px solid #8b5cf6;
}

.mobile-message-avatar.voice {
  background: rgba(139, 92, 246, 0.2) !important;
  color: #8b5cf6 !important;
}

.mobile-message-voice-player.playing .waveform-mini span {
  animation: wave-animate 0.5s ease-in-out infinite alternate;
}

.mobile-message-voice-player.playing .waveform-mini span:nth-child(2) { animation-delay: 0.1s; }
.mobile-message-voice-player.playing .waveform-mini span:nth-child(3) { animation-delay: 0.2s; }
.mobile-message-voice-player.playing .waveform-mini span:nth-child(4) { animation-delay: 0.3s; }
.mobile-message-voice-player.playing .waveform-mini span:nth-child(5) { animation-delay: 0.4s; }
.mobile-message-voice-player.playing .waveform-mini span:nth-child(6) { animation-delay: 0.5s; }
.mobile-message-voice-player.playing .waveform-mini span:nth-child(7) { animation-delay: 0.4s; }
.mobile-message-voice-player.playing .waveform-mini span:nth-child(8) { animation-delay: 0.3s; }
.mobile-message-voice-player.playing .waveform-mini span:nth-child(9) { animation-delay: 0.2s; }
.mobile-message-voice-player.playing .waveform-mini span:nth-child(10) { animation-delay: 0.1s; }
.mobile-message-voice-player.playing .waveform-mini span:nth-child(11) { animation-delay: 0.15s; }
.mobile-message-voice-player.playing .waveform-mini span:nth-child(12) { animation-delay: 0.25s; }

/* Voice message transcription */
.mobile-message-transcription {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(139, 92, 246, 0.08);
  border-left: 3px solid #8b5cf6;
  border-radius: 0 8px 8px 0;
}

.mobile-message-transcription .transcription-label {
  font-size: 10px;
  font-weight: 600;
  color: #8b5cf6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-message-transcription .transcription-label i {
  font-size: 8px;
  opacity: 0.7;
}

.mobile-message-transcription .transcription-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--mobile-text-muted);
  font-style: italic;
}

.mobile-message-transcription.truncated .transcription-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mobile-message-transcription.truncated.expanded .transcription-text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.mobile-message-transcription .transcription-toggle {
  background: none;
  border: none;
  color: #8b5cf6;
  font-size: 12px;
  font-weight: 500;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
}

.mobile-message-transcription .transcription-toggle:hover {
  text-decoration: underline;
}

/* ========================================
   PIPELINE CONFIG
   ======================================== */

.mobile-pipeline-config {
  padding: 12px 16px;
}

.mobile-pipeline-config-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--mobile-panel);
  border: 1px dashed var(--mobile-line);
  border-radius: 10px;
  color: var(--mobile-text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.mobile-pipeline-config-btn:hover {
  border-color: var(--mobile-accent);
  color: var(--mobile-accent);
}

.mobile-phase-edit-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--mobile-text-muted);
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
  opacity: 0.6;
  transition: all 0.2s;
}

.mobile-phase-edit-btn:hover {
  opacity: 1;
  color: var(--mobile-accent);
}

.mobile-pipeline-header {
  display: flex;
  align-items: center;
}

/* Config Sections */
.mobile-config-section {
  margin-bottom: 20px;
}

.mobile-config-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-config-section-header span {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-config-section-header i {
  color: var(--mobile-accent);
}

.mobile-config-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 106, 26, 0.15);
  border: none;
  color: var(--mobile-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-config-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-config-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-config-item:hover {
  border-color: var(--mobile-accent);
}

.mobile-config-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 106, 26, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mobile-accent);
  flex-shrink: 0;
}

.mobile-config-item-info {
  flex: 1;
  min-width: 0;
}

.mobile-config-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--mobile-text);
}

.mobile-config-item-meta {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

.mobile-config-item-actions {
  display: flex;
  gap: 4px;
}

.mobile-config-item-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--mobile-text-muted);
  cursor: pointer;
}

.mobile-config-item-btn:hover {
  color: var(--mobile-accent);
}

.mobile-config-item-btn.delete:hover {
  color: #ef4444;
}

.mobile-config-item.archived {
  opacity: 0.5;
}

/* Phase Selector */
.mobile-phase-selector {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.mobile-phase-select-btn {
  flex: 1;
  padding: 10px 8px;
  background: var(--mobile-input);
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  color: var(--mobile-text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-phase-select-btn.active {
  background: var(--mobile-accent);
  border-color: var(--mobile-accent);
  color: white;
}

/* ========================================
   CHECKLIST CONFIG - Per-Type Funnels (v56.0)
   Matches desktop CRM Settings structure
   ======================================== */

.mobile-config-hint {
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin: 0 0 12px 0;
  padding: 0;
}

/* Company Type Cards Grid */
.mobile-config-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-config-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--mobile-panel);
  border: 2px solid var(--mobile-line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-config-type-card:active {
  transform: scale(0.96);
}

.mobile-config-type-card.selected {
  border-color: var(--mobile-accent);
  background: rgba(255, 106, 26, 0.1);
}

.mobile-config-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 106, 26, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mobile-accent);
  font-size: 18px;
}

.mobile-config-type-card.selected .mobile-config-type-icon {
  background: var(--mobile-accent);
  color: white;
}

.mobile-config-type-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--mobile-text);
  text-align: center;
  line-height: 1.2;
}

/* Selected Type Header */
.mobile-config-selected-type {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.15), rgba(255, 106, 26, 0.05));
  border: 1px solid var(--mobile-accent);
  border-radius: 12px;
  margin-bottom: 16px;
}

.mobile-config-selected-type i {
  font-size: 20px;
  color: var(--mobile-accent);
}

.mobile-config-selected-type span {
  font-size: 16px;
  font-weight: 600;
  color: var(--mobile-text);
}

/* Phase Header with Add Button */
.mobile-config-phase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  margin-bottom: 8px;
}

.mobile-config-phase-header span {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-config-phase-header .mobile-config-add-btn {
  width: auto;
  padding: 6px 12px;
  font-size: 12px;
  gap: 6px;
}

/* Task Item with Drag Handle */
.mobile-config-item-drag {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mobile-text-muted);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Empty State for Tasks */
.mobile-config-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  color: var(--mobile-text-muted);
}

.mobile-config-empty i {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.mobile-config-empty p {
  font-size: 14px;
  margin: 0 0 16px 0;
}

.mobile-config-empty .mobile-btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Type Checkboxes */
.mobile-type-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-type-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--mobile-input);
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-type-checkbox:has(input:checked) {
  background: rgba(255, 106, 26, 0.15);
  border-color: var(--mobile-accent);
}

.mobile-type-checkbox input {
  accent-color: var(--mobile-accent);
}

.mobile-type-checkbox span {
  font-size: 13px;
  color: var(--mobile-text);
}

.mobile-form-hint {
  font-size: 11px;
  color: var(--mobile-text-muted);
  margin-top: 8px;
}

/* Icon Picker */
.mobile-icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--mobile-input);
  border: 1px solid var(--mobile-line);
  color: var(--mobile-text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-icon-btn.active {
  background: rgba(255, 106, 26, 0.15);
  border-color: var(--mobile-accent);
  color: var(--mobile-accent);
}

/* ========================================
   ENHANCED ANALYTICS
   ======================================== */

.mobile-activity-chart {
  padding: 12px 0;
}

.mobile-activity-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100px;
  gap: 8px;
}

.mobile-activity-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mobile-activity-bar .bar-fill {
  width: 100%;
  min-height: 4px;
  background: var(--mobile-accent);
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
}

.mobile-activity-bar span {
  font-size: 10px;
  color: var(--mobile-text-muted);
}

.mobile-type-bars,
.mobile-velocity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-type-bar,
.mobile-velocity-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-type-bar-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 106, 26, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mobile-accent);
  font-size: 14px;
}

.mobile-type-bar-info {
  flex: 1;
}

.mobile-type-bar-name {
  font-size: 13px;
  color: var(--mobile-text);
  margin-bottom: 4px;
}

.mobile-type-bar-track {
  height: 6px;
  background: var(--mobile-mid);
  border-radius: 3px;
  overflow: hidden;
}

.mobile-type-bar-fill {
  height: 100%;
  background: var(--mobile-accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.mobile-type-bar-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  min-width: 30px;
  text-align: right;
}

.mobile-velocity-item {
  padding: 10px 12px;
  background: var(--mobile-panel);
  border-radius: 10px;
}

.mobile-velocity-phase {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--mobile-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.mobile-velocity-info {
  flex: 1;
}

.mobile-velocity-label {
  font-size: 13px;
  color: var(--mobile-text);
}

.mobile-velocity-days {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

.mobile-velocity-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--mobile-text);
}

/* ========================================
   CONTACT PROFILE IMAGE
   ======================================== */

.mobile-profile-image-container {
  position: relative;
  margin-bottom: 12px;
}

.mobile-profile-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--mobile-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--mobile-accent);
}

.mobile-profile-image i {
  font-size: 32px;
  color: var(--mobile-text-muted);
}

.mobile-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-profile-image-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mobile-accent);
  border: 2px solid var(--mobile-bg);
  color: white;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   PHOTO GALLERY
   ======================================== */

.mobile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-section-header .mobile-detail-section-title {
  margin-bottom: 0;
}

.mobile-section-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 106, 26, 0.15);
  border: none;
  color: var(--mobile-accent);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mobile-photo-item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.mobile-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.mobile-photo-item:hover img {
  transform: scale(1.05);
}

.mobile-photo-item .photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size: 10px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-empty-small {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  color: var(--mobile-text-muted);
}

.mobile-empty-small i {
  font-size: 24px;
  opacity: 0.3;
  margin-bottom: 8px;
}

.mobile-empty-small p {
  font-size: 12px;
  margin: 0;
}

/* Photo Upload Sheet */
.mobile-photo-upload-preview {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: var(--mobile-mid);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  cursor: pointer;
}

.mobile-photo-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-photo-placeholder {
  text-align: center;
  color: var(--mobile-text-muted);
}

.mobile-photo-placeholder i {
  font-size: 48px;
  opacity: 0.3;
  margin-bottom: 12px;
}

.mobile-photo-placeholder p {
  font-size: 13px;
}

.mobile-photo-upload-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

/* Photo Viewer Modal */
.mobile-photo-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mobile-photo-viewer.open {
  display: flex;
}

.mobile-photo-viewer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.mobile-photo-viewer img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  object-fit: contain;
}

.mobile-photo-viewer-caption {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.mobile-photo-viewer-delete {
  position: absolute;
  bottom: 30px;
  padding: 12px 24px;
  background: #ef4444;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========================================
   IMAGE CROPPER STYLES
   ======================================== */

.mobile-crop-container {
  width: 100%;
  max-height: 300px;
  margin-bottom: 16px;
  background: var(--mobile-mid);
  border-radius: 12px;
  overflow: hidden;
}

.mobile-crop-container img {
  display: block;
  max-width: 100%;
}

.mobile-crop-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-crop-actions .mobile-btn {
  flex: 1;
}

/* Cropper.js overrides for mobile theme */
.cropper-view-box,
.cropper-face {
  border-radius: 0;
}

.cropper-line {
  background-color: var(--mobile-accent);
}

.cropper-point {
  background-color: var(--mobile-accent);
  width: 10px;
  height: 10px;
}

.cropper-modal {
  background-color: rgba(10, 10, 10, 0.7);
}

/* ========================================
   CONTACT AVATAR WITH IMAGE
   ======================================== */

.mobile-contact-avatar {
  overflow: hidden;
  position: relative;
}

.mobile-contact-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.mobile-contact-avatar .avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* ========================================
   EXIT TOAST (Double-tap to exit)
   Small bottom toast for back button exit confirmation
   ======================================== */

.exit-toast {
  position: fixed;
  bottom: calc(80px + env(safe-area-inset-bottom, 20px));
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(30, 30, 30, 0.95);
  color: var(--mobile-text);
  padding: 12px 20px;
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 99999;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.exit-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.exit-toast i {
  color: var(--mobile-accent);
  font-size: 16px;
}

/* ========================================
   EMPLOYEE SIZE ANALYTICS
   ======================================== */

.mobile-size-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-size-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-size-bar-label {
  font-size: 12px;
  color: var(--mobile-text-muted);
  min-width: 50px;
  text-align: right;
}

.mobile-size-bar-track {
  flex: 1;
  height: 20px;
  background: var(--mobile-panel);
  border-radius: 6px;
  overflow: hidden;
}

.mobile-size-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
}

.mobile-size-bar-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  min-width: 30px;
  text-align: right;
}

/* ========================================
   TJM ROSTER ANALYTICS
   ======================================== */

.mobile-roster-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-roster-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  background: var(--mobile-panel);
  border-radius: 12px;
  text-align: center;
}

.mobile-roster-stat--highlight {
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.2), rgba(255, 106, 26, 0.1));
  border: 1px solid rgba(255, 106, 26, 0.3);
}

.mobile-roster-stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--mobile-text);
  line-height: 1;
}

.mobile-roster-stat--highlight .mobile-roster-stat-value {
  color: var(--mobile-accent);
}

.mobile-roster-stat-label {
  font-size: 10px;
  color: var(--mobile-text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-roster-top {
  margin-top: 8px;
}

.mobile-roster-top-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.mobile-roster-top-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--mobile-panel);
  border-radius: 10px;
  margin-bottom: 6px;
}

.mobile-roster-top-rank {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile-accent);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.mobile-roster-top-name {
  flex: 1;
  font-size: 13px;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-roster-top-count {
  font-size: 16px;
  font-weight: 700;
  color: var(--mobile-accent);
}

/* ========================================
   PEOPLE MANAGEMENT (Multiple Contacts per Company)
   ======================================== */

.mobile-people-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-person-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.mobile-person-card:active {
  transform: scale(0.98);
}

.mobile-person-card.primary {
  border-color: var(--mobile-accent);
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.1), transparent);
}

.mobile-person-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.mobile-person-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-person-name {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-primary-badge {
  color: var(--mobile-accent);
  font-size: 12px;
}

.mobile-person-role {
  font-size: 12px;
  color: var(--mobile-text-muted);
}

.mobile-person-contacts {
  display: flex;
  gap: 8px;
}

.mobile-person-contact {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile-mid);
  border-radius: 50%;
  color: var(--mobile-accent);
  font-size: 14px;
  text-decoration: none;
  transition: background var(--duration-fast) ease;
}

.mobile-person-contact:active {
  background: var(--mobile-accent);
  color: white;
}

/* Person Sheet Checkbox */
.mobile-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
}

.mobile-checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--mobile-accent);
}

.mobile-checkbox-row span {
  font-size: 14px;
  color: var(--mobile-text);
}

/* Utility Classes */
.text-danger {
  color: #ef4444 !important;
}

.accent {
  color: var(--mobile-accent) !important;
}

/* ========================================
   INTEL HUB
   ======================================== */

.mobile-intel-hub {
  padding: 16px;
  padding-bottom: 100px;
}

/* Stats Row */
.mobile-intel-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

/* Type Selection */
.mobile-intel-type-select {
  margin-bottom: 16px;
}

.mobile-intel-type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mobile-intel-type-chips {
  display: flex;
  gap: 8px;
}

.mobile-intel-type-chip {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  background: var(--mobile-panel);
  border: 2px solid var(--mobile-line);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.mobile-intel-type-chip input {
  display: none;
}

.mobile-intel-type-chip i {
  font-size: 14px;
  color: var(--mobile-text-muted);
}

.mobile-intel-type-chip span {
  font-size: 12px;
  font-weight: 500;
  color: var(--mobile-text-muted);
}

.mobile-intel-type-chip.active {
  border-color: var(--mobile-accent);
  background: rgba(255, 106, 26, 0.15);
}

.mobile-intel-type-chip.active i,
.mobile-intel-type-chip.active span {
  color: var(--mobile-accent);
}

.mobile-intel-stat {
  background: var(--mobile-panel);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.mobile-intel-stat.accent {
  background: rgba(255, 106, 26, 0.15);
  border: 1px solid rgba(255, 106, 26, 0.3);
}

.mobile-intel-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--mobile-text);
}

.mobile-intel-stat.accent .mobile-intel-stat-value {
  color: var(--mobile-accent);
}

.mobile-intel-stat.sent {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.mobile-intel-stat.sent .mobile-intel-stat-value {
  color: #22c55e;
}

.mobile-intel-stat-label {
  display: block;
  font-size: 11px;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Upload Section */
.mobile-intel-upload {
  margin-bottom: 16px;
}

/* Upload Buttons - Gallery & Camera */
.mobile-intel-upload-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.mobile-intel-upload-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  background: var(--mobile-panel);
  border: 2px dashed var(--mobile-line-strong);
  border-radius: 16px;
  color: var(--mobile-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.mobile-intel-upload-btn:active {
  background: rgba(255, 106, 26, 0.15);
  border-color: var(--mobile-accent);
}

.mobile-intel-upload-btn i {
  font-size: 32px;
  color: var(--mobile-accent);
}

.mobile-intel-upload-hint {
  font-size: 13px;
  color: var(--mobile-text-muted);
  text-align: center;
  margin-bottom: 12px;
}

/* Upload Preview */
.mobile-intel-preview {
  background: var(--mobile-panel);
  border-radius: 16px;
  padding: 16px;
}

.mobile-intel-preview-images {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.mobile-intel-preview-item {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
}

.mobile-intel-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-intel-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  cursor: pointer;
}

.mobile-intel-preview-actions {
  display: flex;
  gap: 8px;
}

.mobile-intel-preview-actions .mobile-btn {
  flex: 1;
}

/* Source Input */
.mobile-intel-source {
  margin-top: 12px;
}

.mobile-intel-source .mobile-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--mobile-input);
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
  color: var(--mobile-text);
  font-size: 14px;
}

/* Filter Tabs */
.mobile-intel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mobile-intel-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 20px;
  color: var(--mobile-text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.mobile-intel-tab.active {
  background: var(--mobile-accent);
  border-color: var(--mobile-accent);
  color: white;
}

.mobile-intel-tab-count {
  font-size: 11px;
  opacity: 0.8;
}

/* Sent Tab - Green styling */
.mobile-intel-tab.sent {
  border-color: rgba(34, 197, 94, 0.3);
}

.mobile-intel-tab.sent.active {
  background: #22c55e;
  border-color: #22c55e;
  color: white;
}

/* ============================================
   INTEL TOOLBAR - Compact Mobile Design
   ============================================ */

.mobile-intel-toolbar {
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
}

.mobile-toolbar-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Search Input */
.mobile-toolbar-search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.mobile-toolbar-search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mobile-text-muted);
  font-size: 12px;
}

.mobile-toolbar-search input {
  width: 100%;
  padding: 8px 10px 8px 30px;
  background: var(--mobile-bg);
  border: 1px solid var(--mobile-border);
  border-radius: 6px;
  color: var(--mobile-text);
  font-size: 13px;
}

.mobile-toolbar-search input:focus {
  outline: none;
  border-color: var(--mobile-accent);
}

/* Filter Toggle Button */
.mobile-toolbar-filter-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile-bg);
  border: 1px solid var(--mobile-border);
  border-radius: 6px;
  color: var(--mobile-text-muted);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-toolbar-filter-btn.active,
.mobile-toolbar-filter-btn.has-filters {
  color: var(--mobile-accent);
  border-color: var(--mobile-accent);
  background: rgba(245, 158, 11, 0.1);
}

.mobile-toolbar-filter-btn .filter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--mobile-accent);
  color: #000;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  padding: 0 4px;
}

/* Sort Dropdown */
.mobile-toolbar-sort {
  padding: 8px 24px 8px 8px;
  background: var(--mobile-bg);
  border: 1px solid var(--mobile-border);
  border-radius: 6px;
  color: var(--mobile-text);
  font-size: 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238a9aaa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  max-width: 80px;
}

/* Sort Direction Button */
.mobile-toolbar-sort-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile-bg);
  border: 1px solid var(--mobile-border);
  border-radius: 6px;
  color: var(--mobile-text-muted);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-toolbar-sort-btn:active {
  color: var(--mobile-accent);
}

/* Settings Button */
.mobile-toolbar-settings-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile-bg);
  border: 1px solid var(--mobile-border);
  border-radius: 6px;
  color: var(--mobile-text-muted);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-toolbar-settings-btn:active {
  color: var(--mobile-accent);
}

/* Expandable Filters Panel */
.mobile-toolbar-filters {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--mobile-border);
}

.mobile-toolbar-filters.open {
  display: flex;
}

.mobile-filter-select {
  flex: 1;
  min-width: 80px;
  padding: 8px 24px 8px 10px;
  background: var(--mobile-bg);
  border: 1px solid var(--mobile-border);
  border-radius: 6px;
  color: var(--mobile-text);
  font-size: 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238a9aaa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.mobile-filter-select:focus {
  outline: none;
  border-color: var(--mobile-accent);
}

.mobile-clear-filters-btn {
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--mobile-border);
  border-radius: 6px;
  color: var(--mobile-text-muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-clear-filters-btn:active {
  color: #ef4444;
  border-color: #ef4444;
}

/* Active Filters Chips */
.mobile-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mobile-active-filters:empty {
  display: none;
}

.mobile-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 4px;
  font-size: 11px;
  color: var(--mobile-accent);
}

.mobile-filter-chip button {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: 10px;
  cursor: pointer;
  opacity: 0.7;
}

.mobile-filter-chip button:active {
  opacity: 1;
}

/* Intel List */
.mobile-intel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-intel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  text-align: center;
}

.mobile-intel-empty-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile-panel);
  border-radius: 50%;
  margin-bottom: 16px;
}

.mobile-intel-empty-icon i {
  font-size: 32px;
  color: var(--mobile-text-muted);
}

.mobile-intel-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--mobile-text);
  margin-bottom: 4px;
}

.mobile-intel-empty-text {
  font-size: 14px;
  color: var(--mobile-text-muted);
}

/* Intel Item */
.mobile-intel-item {
  background: var(--mobile-panel);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all var(--duration-fast) ease;
  border-left: 3px solid transparent;
}

.mobile-intel-item:active {
  background: rgba(255, 106, 26, 0.1);
}

.mobile-intel-item.type-job {
  border-left-color: #3b82f6;
}

.mobile-intel-item.type-event {
  border-left-color: #10b981;
}

.mobile-intel-item.type-contact {
  border-left-color: #f59e0b;
}

.mobile-intel-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mobile-intel-item-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
}

.mobile-intel-item-type.type-job {
  background: #3b82f6;
}

.mobile-intel-item-type.type-event {
  background: #10b981;
}

.mobile-intel-item-type.type-contact {
  background: #f59e0b;
}

.mobile-intel-item-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-intel-item-status {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.mobile-intel-item-status.pending {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.mobile-intel-item-status.contacted {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.mobile-intel-item-status.approved {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.mobile-intel-item-status.exported {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.mobile-intel-item-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--mobile-text-muted);
}

.mobile-intel-item-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-intel-item-meta i {
  font-size: 10px;
}

/* Intel Item Dates */
.mobile-intel-item-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.mobile-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.mobile-date-chip i {
  font-size: 10px;
}

.mobile-date-chip.urgent {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.mobile-date-chip.soon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* Intel Item Uploader Info */
.mobile-intel-item-uploader {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.mobile-uploader-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

.mobile-uploader-chip i {
  font-size: 9px;
}

/* Intel Result Item (in extraction sheet) */
.mobile-intel-result-item {
  background: var(--mobile-mid);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}

.mobile-intel-result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mobile-intel-result-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
}

.mobile-intel-result-type.type-job {
  background: #3b82f6;
}

.mobile-intel-result-type.type-event {
  background: #10b981;
}

.mobile-intel-result-type.type-contact {
  background: #f59e0b;
}

.mobile-intel-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-intel-result-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--mobile-text-muted);
}

.mobile-intel-result-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Intel Detail Sheet */
.mobile-intel-detail-type {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-intel-detail-section {
  margin-bottom: 16px;
}

.mobile-intel-detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--mobile-text-muted);
  margin-bottom: 4px;
}

.mobile-intel-detail-value {
  font-size: 14px;
  color: var(--mobile-text);
  line-height: 1.5;
}

.mobile-intel-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-intel-detail-row .mobile-intel-detail-label {
  margin-bottom: 0;
}

.mobile-intel-detail-row .mobile-intel-detail-value {
  text-align: right;
}

/* Mobile Button Variants */
.mobile-btn.accent {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: white;
}

.mobile-btn.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.mobile-btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

/* Full Height Bottom Sheet */
.mobile-bottom-sheet.full-height {
  max-height: 90vh;
}

.mobile-bottom-sheet.full-height .mobile-sheet-content {
  max-height: calc(90vh - 140px);
  overflow-y: auto;
}

/* Intel Detail Grid */
.mobile-intel-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-intel-detail-card {
  background: var(--mobile-mid);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-intel-detail-card i {
  font-size: 16px;
  color: var(--mobile-text-muted);
  margin-bottom: 4px;
}

.mobile-intel-detail-card .label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--mobile-text-muted);
}

.mobile-intel-detail-card .value {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-intel-detail-card.accent {
  background: rgba(255, 106, 26, 0.15);
  border: 1px solid rgba(255, 106, 26, 0.3);
}

.mobile-intel-detail-card.accent i,
.mobile-intel-detail-card.accent .value {
  color: var(--mobile-accent);
}

/* Intel Detail Chips */
.mobile-intel-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mobile-intel-chip {
  display: inline-block;
  padding: 4px 10px;
  background: var(--mobile-mid);
  border-radius: 12px;
  font-size: 12px;
  color: var(--mobile-text);
}

.mobile-intel-chip.success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

/* Intel Detail Links */
.mobile-intel-detail-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--mobile-text);
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-intel-detail-link i {
  width: 20px;
  color: var(--mobile-text-muted);
}

.mobile-intel-detail-link a {
  color: var(--mobile-accent);
  text-decoration: none;
}

.mobile-intel-detail-link.clickable {
  text-decoration: none;
  cursor: pointer;
}

.mobile-intel-detail-link.clickable:active {
  background: rgba(255, 106, 26, 0.1);
}

/* Intel Company Badge */
.mobile-intel-company {
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-left: auto;
}

/* Deadline styling */
.mobile-intel-detail-value.deadline {
  color: #ef4444;
  font-weight: 600;
}

/* Intel Detail Label with icon */
.mobile-intel-detail-label i {
  margin-right: 6px;
  opacity: 0.7;
}

/* Company/Organization Header */
.mobile-intel-company-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(255, 106, 26, 0.15), rgba(255, 106, 26, 0.05));
  border: 1px solid rgba(255, 106, 26, 0.3);
  border-radius: 12px;
  margin-bottom: 16px;
}

.mobile-intel-company-header i {
  font-size: 18px;
  color: var(--mobile-accent);
}

.mobile-intel-company-header span {
  font-size: 16px;
  font-weight: 600;
  color: var(--mobile-text);
}

/* Extracted Images Grid */
.mobile-intel-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.mobile-intel-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--mobile-mid);
  cursor: pointer;
}

.mobile-intel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-intel-image-type {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.7);
  font-size: 10px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

/* Collapsible Raw Text Section */
.mobile-intel-detail-section.collapsible .mobile-intel-detail-value {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-intel-detail-section.collapsible.expanded .mobile-intel-detail-value {
  max-height: 500px;
}

.mobile-intel-detail-section.collapsible .mobile-intel-detail-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-intel-detail-section.collapsible .mobile-intel-detail-label .fa-chevron-down {
  transition: transform 0.3s ease;
  margin-left: auto;
}

.mobile-intel-detail-section.collapsible.expanded .mobile-intel-detail-label .fa-chevron-down {
  transform: rotate(180deg);
}

.mobile-intel-detail-value.raw-text {
  font-size: 12px;
  font-family: monospace;
  background: var(--mobile-mid);
  padding: 12px;
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 8px;
}

.mobile-intel-detail-value.muted {
  color: var(--mobile-text-muted);
  font-size: 13px;
}

.mobile-intel-detail-value.muted i {
  margin-right: 6px;
  opacity: 0.6;
}

/* Platform Button */
.mobile-btn.platform {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  border: none;
}

.mobile-btn.platform:active {
  background: linear-gradient(135deg, #0891b2, #0e7490);
}

/* Sent Badge */
.mobile-intel-sent-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}

.mobile-intel-sent-badge i {
  font-size: 16px;
}

/* ========================================
   INTEL EXTRACTION RESULTS SHEET
   ======================================== */

.intel-results-content {
  padding-bottom: 80px;
}

.intel-results-summary {
  font-size: 13px;
  color: var(--mobile-text-muted);
  text-align: center;
  padding: 12px 16px;
  background: var(--mobile-mid);
  border-radius: 10px;
  margin-bottom: 16px;
}

.intel-result-card {
  background: var(--mobile-panel);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--mobile-line);
}

.intel-result-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.intel-result-card-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--mobile-text);
}

.intel-result-confidence {
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

.intel-result-company,
.intel-result-location {
  font-size: 13px;
  color: var(--mobile-text-muted);
  margin-bottom: 6px;
}

.intel-result-company i,
.intel-result-location i {
  width: 16px;
  margin-right: 6px;
  opacity: 0.7;
}

.intel-result-desc {
  font-size: 13px;
  color: var(--mobile-text);
  line-height: 1.5;
  margin: 10px 0;
  padding: 10px;
  background: var(--mobile-mid);
  border-radius: 8px;
}

.intel-result-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.intel-result-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--mobile-mid);
  border-radius: 8px;
  font-size: 12px;
  color: var(--mobile-text);
}

.intel-result-tag i {
  font-size: 10px;
  opacity: 0.7;
}

.intel-result-tag.accent {
  background: rgba(255, 106, 26, 0.15);
  color: var(--mobile-accent);
}

.intel-result-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.intel-result-chip {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-radius: 6px;
  font-size: 11px;
}

.intel-result-chip.more {
  background: var(--mobile-mid);
  color: var(--mobile-text-muted);
}

/* Sticky actions at bottom */
.mobile-sheet-actions.sticky {
  position: sticky;
  bottom: 0;
  background: var(--mobile-bg);
  padding: 16px;
  margin: 0 -16px -16px;
  border-top: 1px solid var(--mobile-line);
}

/* ========================================
   OUTREACH TEMPLATES SHEET
   ======================================== */

#outreach-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--mobile-panel);
  border-radius: 20px 20px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0.3s;
  z-index: 1001;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  visibility: hidden;
}

#outreach-sheet.active {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 0s;
}

#outreach-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

#outreach-sheet-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-sheet-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--mobile-text);
  margin: 0;
}

.mobile-sheet-header h3 i {
  color: var(--mobile-accent);
}

.mobile-sheet-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mobile-bg);
  border: none;
  border-radius: 8px;
  color: var(--mobile-text-muted);
  font-size: 14px;
  cursor: pointer;
}

.mobile-sheet-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.mobile-sheet-hint {
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.mobile-outreach-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-outreach-tab {
  flex: 1;
  padding: 10px;
  background: var(--mobile-bg);
  border: 1px solid var(--mobile-border);
  border-radius: 8px;
  color: var(--mobile-text-muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-outreach-tab.active {
  background: var(--mobile-accent);
  border-color: var(--mobile-accent);
  color: white;
}

.mobile-form-group {
  margin-bottom: 14px;
}

.mobile-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-textarea {
  width: 100%;
  padding: 12px;
  background: var(--mobile-bg);
  border: 1px solid var(--mobile-border);
  border-radius: 8px;
  color: var(--mobile-text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 150px;
  line-height: 1.5;
}

.mobile-textarea:focus {
  outline: none;
  border-color: var(--mobile-accent);
}

.mobile-sheet-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--mobile-line);
}

.mobile-sheet-footer .mobile-btn {
  flex: 1;
}

/* ========================================
   INTEL DETAIL PAGE (Full Screen)
   ======================================== */

#intel-detail {
  background: var(--mobile-bg);
}

#intel-detail .mobile-header-btn.danger {
  color: #ef4444;
}

.mobile-intel-detail-content {
  padding: 0 16px 100px;
  overflow-y: auto;
  height: calc(100vh - 60px - 80px);
}

.mobile-intel-detail-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: var(--mobile-bg);
  border-top: 1px solid var(--mobile-line);
  display: flex;
  gap: 12px;
  z-index: 100;
}

.mobile-intel-detail-actions .mobile-btn {
  flex: 1;
}

/* Intel Page Header */
.intel-page-header {
  background: var(--mobile-panel);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

.intel-page-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.intel-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--mobile-text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.intel-page-company,
.intel-page-location,
.intel-page-role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--mobile-text-muted);
  margin-top: 6px;
}

.intel-page-company i,
.intel-page-location i,
.intel-page-role i {
  width: 16px;
  opacity: 0.7;
}

/* Intel Page Cards Grid */
.intel-page-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.intel-page-card {
  background: var(--mobile-panel);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.intel-page-card i {
  font-size: 18px;
  color: var(--mobile-text-muted);
  margin-bottom: 4px;
}

.intel-page-card .card-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--mobile-text-muted);
  font-weight: 500;
}

.intel-page-card .card-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
}

.intel-page-card.accent {
  background: rgba(255, 106, 26, 0.15);
  border: 1px solid rgba(255, 106, 26, 0.3);
}

.intel-page-card.accent i,
.intel-page-card.accent .card-value {
  color: var(--mobile-accent);
}

/* Intel Page Sections */
.intel-page-section {
  background: var(--mobile-panel);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.intel-page-section.muted {
  background: var(--mobile-mid);
  opacity: 0.8;
}

.intel-page-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.intel-page-section-title i {
  font-size: 14px;
  opacity: 0.7;
}

.intel-page-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mobile-text);
  margin: 0;
  white-space: pre-wrap;
}

.intel-page-deadline {
  font-size: 16px;
  font-weight: 600;
  color: #ef4444;
  margin: 0;
}

/* Intel Page Chips */
.intel-page-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intel-page-chip {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.intel-page-chip.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.intel-page-chip.primary {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.intel-page-chip i {
  margin-right: 4px;
}

/* Intel Page Fields (key-value pairs) */
.intel-page-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intel-page-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--mobile-mid);
  border-radius: 8px;
}

.intel-page-field .field-label {
  font-size: 13px;
  color: var(--mobile-text-muted);
}

.intel-page-field .field-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--mobile-text);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.intel-page-field .field-value.accent {
  color: var(--mobile-accent);
}

.intel-page-field .field-value.success {
  color: #10b981;
}

.intel-page-field .field-value.link {
  color: #3b82f6;
  text-decoration: none;
}

/* Intel Page Images Gallery */
.intel-page-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.intel-page-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--mobile-border);
  cursor: pointer;
}

.intel-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intel-page-image.primary {
  border-color: var(--mobile-accent);
}

.intel-page-image.original {
  opacity: 0.7;
}

.intel-page-image .image-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 9px;
  text-transform: uppercase;
  text-align: center;
}

.intel-page-image .image-star {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: var(--mobile-accent);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Image Action Buttons */
.intel-page-image .image-actions {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.intel-page-image:hover .image-actions,
.intel-page-image:active .image-actions {
  opacity: 1;
}

.image-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}

.image-action-btn:active {
  transform: scale(0.95);
}

.image-action-btn.danger {
  background: rgba(239, 68, 68, 0.9);
}

/* Intel Page Upload Row */
.intel-page-upload-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.intel-page-upload-row .mobile-btn {
  flex: 1;
  font-size: 13px;
  padding: 10px 12px;
}

.intel-page-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--mobile-text-muted);
  text-align: center;
}

/* Intel Page Links */
.intel-page-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.intel-page-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--mobile-mid);
  border-radius: 10px;
  color: var(--mobile-text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.intel-page-link:active {
  background: rgba(255, 106, 26, 0.15);
}

.intel-page-link i {
  width: 20px;
  color: var(--mobile-accent);
}

.intel-page-link.accent {
  background: rgba(255, 106, 26, 0.15);
  border: 1px solid rgba(255, 106, 26, 0.3);
}

.intel-page-link.accent i {
  color: var(--mobile-accent);
}

/* Intel Page Card success variant */
.intel-page-card.success {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.intel-page-card.success .card-value {
  color: #10b981;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.mobile-toast-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--mobile-panel);
  color: var(--mobile-text);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 10000;
  max-width: 90%;
}

.mobile-toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mobile-toast-notification i {
  font-size: 18px;
}

.mobile-toast-notification.toast-success {
  background: rgba(16, 185, 129, 0.95);
  color: white;
}

.mobile-toast-notification.toast-error {
  background: rgba(239, 68, 68, 0.95);
  color: white;
}

.mobile-toast-notification.toast-warning {
  background: rgba(245, 158, 11, 0.95);
  color: white;
}

.mobile-toast-notification.toast-info {
  background: rgba(59, 130, 246, 0.95);
  color: white;
}

/* ========================================
   INTEL EDIT FORM
   ======================================== */

.mobile-form-group--checkbox {
  padding: 8px 0;
}

.mobile-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--mobile-text);
}

.mobile-checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--mobile-accent);
  cursor: pointer;
}

/* Intel edit sheet specific */
#intel-edit-sheet .mobile-form-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mobile-border);
}

#intel-edit-sheet .mobile-form-section:last-of-type {
  border-bottom: none;
}

#intel-edit-sheet .mobile-form-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ========================================
   INTEL VALIDATION SECTION
   ======================================== */

.validation-section {
  background: var(--mobile-panel);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--mobile-border);
}

.validation-section.ready {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.validation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.validation-header i {
  font-size: 16px;
}

.validation-section.ready .validation-header {
  color: #10b981;
}

.validation-header.missing {
  color: #ef4444;
}

.validation-header.warning {
  color: #f59e0b;
  margin-top: 12px;
}

.validation-text {
  font-size: 13px;
  color: var(--mobile-text-muted);
  margin: 0;
}

.validation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.validation-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.validation-chip.missing {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.validation-chip.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

/* ========================================
   SEND CONFIRMATION MODAL
   ======================================== */

.send-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.send-confirm-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.send-confirm-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.send-confirm-content {
  position: relative;
  background: var(--mobile-panel, #1e293b);
  border-radius: 16px;
  width: 90%;
  max-width: 360px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.2s ease;
}

.send-confirm-modal.open .send-confirm-content {
  transform: scale(1) translateY(0);
}

.send-confirm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--mobile-accent, #f97316);
}

.send-confirm-header i {
  font-size: 24px;
}

.send-confirm-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--mobile-text, #f1f5f9);
}

.send-confirm-body {
  margin-bottom: 20px;
}

.send-confirm-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--mobile-text, #f1f5f9);
  margin: 0 0 4px 0;
  word-break: break-word;
}

.send-confirm-type {
  font-size: 13px;
  color: var(--mobile-text-muted, #94a3b8);
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.send-confirm-warnings {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.send-confirm-warnings .warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f59e0b;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.send-confirm-warnings .warning-list {
  margin: 0;
  padding-left: 20px;
  color: var(--mobile-text, #f1f5f9);
  font-size: 13px;
  line-height: 1.6;
}

.send-confirm-warnings .warning-list li {
  margin-bottom: 4px;
}

.send-confirm-warnings .warning-note {
  margin: 10px 0 0 0;
  font-size: 12px;
  color: var(--mobile-text-muted, #94a3b8);
  font-style: italic;
}

.send-confirm-info {
  font-size: 13px;
  color: var(--mobile-text-muted, #94a3b8);
  margin: 0;
}

.send-confirm-actions {
  display: flex;
  gap: 12px;
}

.send-confirm-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.send-confirm-btn.edit {
  background: var(--mobile-border, #334155);
  color: var(--mobile-text, #f1f5f9);
}

.send-confirm-btn.edit:active {
  background: #475569;
  transform: scale(0.98);
}

.send-confirm-btn.send {
  background: var(--mobile-accent, #f97316);
  color: white;
}

.send-confirm-btn.send:active {
  background: #ea580c;
  transform: scale(0.98);
}

/* ========================================
   INBOX VIEW - Sub-tabs & Reviews
   ======================================== */

/* Inbox view inherits display: none from .mobile-view when not active */
.mobile-inbox-view.active {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-inbox-view.active .mobile-sub-tabs.mobile-inbox-sticky {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Inbox subtab content - only show when inbox view is active */
.mobile-inbox-view.active .mobile-subtab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
}

.mobile-inbox-view.active .mobile-subtab-content.active {
  display: flex;
  flex-direction: column;
}

/* Sub-tab badge for reviews count */
.mobile-sub-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 9px;
  margin-left: 6px;
}

/* ========================================
   REVIEWS LIST STYLES
   ======================================== */

.mobile-review-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--mobile-panel);
  border-bottom: 1px solid var(--mobile-line);
  cursor: pointer;
  transition: background 0.15s ease;
}

.mobile-review-item:active {
  background: rgba(255, 106, 26, 0.1);
}

.mobile-review-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mobile-review-list-stars {
  display: flex;
  gap: 2px;
  font-size: 14px;
}

.mobile-list-item-chevron {
  color: var(--mobile-text-muted);
  font-size: 14px;
  margin-left: 12px;
}

/* ========================================
   REVIEW DETAIL SHEET STYLES
   ======================================== */

.mobile-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-review-stars {
  display: flex;
  gap: 4px;
  font-size: 20px;
}

.mobile-review-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.mobile-review-status.warning {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.mobile-review-status.success {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.mobile-review-status.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.mobile-review-content {
  margin-bottom: 16px;
}

.mobile-review-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--mobile-text);
  margin: 0 0 10px 0;
}

.mobile-review-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mobile-text);
  margin: 0;
  white-space: pre-wrap;
}

.mobile-review-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(42, 31, 26, 0.5);
  border-radius: 10px;
}

.mobile-review-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--mobile-text-muted);
}

.mobile-review-meta-item i {
  width: 16px;
  text-align: center;
  color: var(--mobile-accent);
}

.mobile-review-permission {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.mobile-review-permission.allowed {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.mobile-review-permission.not-allowed {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.mobile-review-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.mobile-review-actions-secondary {
  display: flex;
  gap: 10px;
}

.mobile-review-actions .mobile-btn,
.mobile-review-actions-secondary .mobile-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Button variants for reviews */
.mobile-btn--success {
  background: #10b981 !important;
  color: white !important;
}

.mobile-btn--success:active {
  background: #059669 !important;
}

.mobile-btn--warning {
  background: #f59e0b !important;
  color: white !important;
}

.mobile-btn--warning:active {
  background: #d97706 !important;
}

/* ========================================
   INTEL HUB - Approved/Sent Badges
   ======================================== */

.mobile-intel-approved-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.mobile-intel-sent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(99, 102, 241, 0.15);
  color: #6366f1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* ========================================
   CONDITIONAL FIELD VISIBILITY
   Fields that show/hide based on other selections
   ======================================== */

.mobile-conditional-group {
  transition: opacity 0.2s ease, max-height 0.3s ease;
  overflow: hidden;
}

.mobile-conditional-group.mobile-conditional-hidden {
  opacity: 0.4;
  pointer-events: none;
  max-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Greyed out disabled inputs */
.mobile-conditional-group.mobile-conditional-hidden .mobile-input,
.mobile-conditional-group.mobile-conditional-hidden .mobile-select {
  background: rgba(42, 31, 26, 0.3) !important;
  color: var(--mobile-text-muted) !important;
  cursor: not-allowed;
}

.mobile-conditional-group.mobile-conditional-hidden .mobile-label {
  color: var(--mobile-text-muted);
}

/* Smooth transition for showing fields */
.mobile-conditional-group:not(.mobile-conditional-hidden) {
  max-height: 500px; /* Generous max for animation */
}

/* ========================================
   MULTI-IMAGE UPLOAD (Camera Sheet)
   ======================================== */

.mobile-upload-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--mobile-text-secondary);
}

.mobile-upload-hint i {
  color: #fbbf24;
  font-size: 16px;
  flex-shrink: 0;
}

.mobile-card-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.mobile-card-image-slot {
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: var(--mobile-card);
}

.mobile-card-image-slot.has-image {
  border-color: #22c55e;
}

.mobile-card-image-slot .mobile-card-image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-card-image-slot .mobile-card-image-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-card-add-slot {
  aspect-ratio: 1;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--mobile-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--mobile-card);
}

.mobile-card-add-slot:active {
  border-color: var(--mobile-accent);
  background: rgba(255, 106, 26, 0.1);
}

.mobile-card-add-slot i {
  font-size: 24px;
}

.mobile-card-add-slot span {
  font-size: 11px;
  font-weight: 500;
}

.mobile-card-add-slot small {
  font-size: 10px;
  opacity: 0.7;
}

.mobile-camera-hint {
  text-align: center;
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-bottom: 16px;
}

.mobile-camera-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.mobile-camera-btn {
  flex: 1;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--mobile-card);
  color: var(--mobile-text-secondary);
  font-size: 12px;
  cursor: pointer;
}

.mobile-camera-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-camera-btn i {
  font-size: 22px;
  color: #3b82f6;
}

.mobile-camera-btn--primary {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.mobile-camera-btn--primary i {
  color: #22c55e;
}

.mobile-ai-processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.mobile-ai-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.mobile-ai-status {
  font-size: 14px;
  color: var(--mobile-text-secondary);
}

.mobile-ai-status small {
  display: block;
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-top: 4px;
}

.mobile-extracted-fields {
  background: var(--mobile-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.mobile-extracted-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 12px;
}

.mobile-extracted-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 6px;
}

.mobile-extracted-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  min-width: 70px;
}

.mobile-extracted-value {
  font-size: 13px;
  color: var(--mobile-text);
  flex: 1;
}

/* ========================================
   TYPE CARDS (Company Type Selection)
   Selectable cards with green border highlight
   ======================================== */

.mobile-type-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.mobile-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--mobile-card, #1a1a1a);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
}

.mobile-type-card:active {
  transform: scale(0.98);
}

.mobile-type-card.selected {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.mobile-type-card.selected::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 9px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-type-card i {
  font-size: 18px;
  color: var(--mobile-text-muted, #888);
}

.mobile-type-card.selected i {
  color: #22c55e;
}

.mobile-type-card span {
  font-size: 11px;
  color: var(--mobile-text-secondary, #ccc);
  line-height: 1.2;
}

.mobile-type-card.selected span {
  color: #86efac;
}

.mobile-help-text {
  font-size: 11px;
  color: var(--mobile-text-muted, #888);
  margin-top: -4px;
  margin-bottom: 4px;
}

/* ========================================
   PRIORITY SELECTOR & BADGES
   ======================================== */

/* Priority selector in form */
.mobile-priority-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-priority-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--mobile-text, #E7DCC9);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  min-width: 70px;
  justify-content: center;
}

.mobile-priority-option:active {
  transform: scale(0.96);
}

.mobile-priority-option.selected {
  border-color: var(--priority-color, #6b7280);
  background: color-mix(in srgb, var(--priority-color, #6b7280) 15%, transparent);
}

.mobile-priority-option i {
  font-size: 14px;
  color: var(--priority-color, #6b7280);
}

.mobile-priority-option span {
  font-weight: 600;
  color: var(--mobile-text, #E7DCC9);
}

.mobile-priority-option.selected span {
  color: var(--priority-color, #6b7280);
}

/* Priority badge in contact list */
.mobile-contact-priority {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.mobile-priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 12px;
}

.mobile-priority-badge i {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Adjust contact card for priority badge */
.mobile-contact-card {
  position: relative;
}

.mobile-contact-card:has(.mobile-contact-priority) .mobile-contact-avatar {
  margin-left: 24px;
}

/* ========================================
   UI/UX ENHANCEMENTS v54.0
   - Enhanced contact cards
   - Filter sheet
   - Pull-to-refresh
   - Skeleton loading
   - Toast notifications
   - Swipe actions
   - Header stats
   ======================================== */

/* ----------------------------------------
   ENHANCED CONTACT CARDS
   ---------------------------------------- */

/* Source & Owner badges on cards */
.mobile-contact-badges {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.mobile-contact-source-badge,
.mobile-contact-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mobile-contact-source-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.mobile-contact-owner-badge {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* Next action overdue indicator */
.mobile-contact-overdue {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #ef4444;
  margin-top: 2px;
}

.mobile-contact-overdue i {
  font-size: 9px;
}

/* Enhanced card layout */
.mobile-contact-card--enhanced {
  padding: 14px 12px 14px 16px;
  gap: 12px;
}

.mobile-contact-card--enhanced .mobile-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ----------------------------------------
   FILTER SHEET (Advanced Filters)
   ---------------------------------------- */

.mobile-filter-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 400;
  display: none;
  align-items: flex-end;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.mobile-filter-sheet.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.mobile-filter-sheet-content {
  width: 100%;
  max-height: 85vh;
  background: var(--mobile-panel);
  border-radius: 24px 24px 0 0;
  padding: 0 0 max(20px, env(safe-area-inset-bottom));
  animation: slideUp 0.3s var(--ease-spring);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--mobile-line);
  position: sticky;
  top: 0;
  background: var(--mobile-panel);
  z-index: 10;
}

.mobile-filter-sheet-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-filter-sheet-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 50%;
  color: var(--mobile-text-muted);
  font-size: 16px;
  cursor: pointer;
}

.mobile-filter-sheet-body {
  padding: 16px 20px;
}

.mobile-filter-group {
  margin-bottom: 20px;
}

.mobile-filter-group-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mobile-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.mobile-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-filter-option {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
  color: var(--mobile-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-filter-option:active {
  transform: scale(0.96);
}

.mobile-filter-option.selected {
  background: rgba(255, 106, 26, 0.15);
  border-color: var(--mobile-accent);
  color: var(--mobile-accent);
}

.mobile-filter-sheet-actions {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--mobile-line);
  position: sticky;
  bottom: 0;
  background: var(--mobile-panel);
}

.mobile-filter-btn-clear {
  flex: 1;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
  color: var(--mobile-text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-filter-btn-apply {
  flex: 2;
  padding: 14px;
  background: linear-gradient(135deg, var(--mobile-accent) 0%, var(--mobile-accent-secondary) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Filter button with badge */
.mobile-filter-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--mobile-line);
  border-radius: 10px;
  color: var(--mobile-text-muted);
  font-size: 16px;
  cursor: pointer;
}

.mobile-filter-trigger.has-filters {
  border-color: var(--mobile-accent);
  color: var(--mobile-accent);
}

.mobile-filter-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--mobile-accent);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Quick filter chips */
.mobile-quick-filters {
  display: flex;
  gap: 6px;
  padding: 4px 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.mobile-quick-filters::-webkit-scrollbar {
  display: none;
}

.mobile-quick-filter {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--mobile-line);
  border-radius: 16px;
  color: var(--mobile-text-muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-quick-filter i {
  font-size: 11px;
}

.mobile-quick-filter.active {
  background: rgba(255, 106, 26, 0.15);
  border-color: var(--mobile-accent);
  color: var(--mobile-accent);
}

.mobile-quick-filter--warning.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}

.mobile-quick-filter--danger.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* Company Type Dropdown Filter */
.mobile-type-filter {
  padding: 6px 28px 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--mobile-line);
  border-radius: 16px;
  color: var(--mobile-text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  flex-shrink: 0;
}

.mobile-type-filter:focus {
  outline: none;
  border-color: var(--mobile-accent);
}

.mobile-type-filter option {
  background: var(--mobile-card);
  color: var(--mobile-text);
}

.mobile-type-filter.active {
  background-color: rgba(255, 106, 26, 0.15);
  border-color: var(--mobile-accent);
  color: var(--mobile-accent);
}

/* ----------------------------------------
   PULL TO REFRESH
   ---------------------------------------- */

.mobile-ptr-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.2s;
  pointer-events: none;
  z-index: 50;
}

.mobile-ptr-indicator.pulling {
  transform: translateY(0);
}

.mobile-ptr-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--mobile-line);
  border-top-color: var(--mobile-accent);
  border-radius: 50%;
}

.mobile-ptr-indicator.refreshing .mobile-ptr-spinner {
  animation: spin 0.8s linear infinite;
}

.mobile-ptr-arrow {
  font-size: 20px;
  color: var(--mobile-accent);
  transition: transform 0.2s;
}

.mobile-ptr-indicator.ready .mobile-ptr-arrow {
  transform: rotate(180deg);
}

/* ----------------------------------------
   SKELETON LOADING STATES
   ---------------------------------------- */

.mobile-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.mobile-skeleton-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 14px;
  margin-bottom: 12px;
}

.mobile-skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.mobile-skeleton-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-skeleton-line {
  height: 14px;
  border-radius: 4px;
}

.mobile-skeleton-line--short {
  width: 60%;
}

.mobile-skeleton-line--medium {
  width: 80%;
}

.mobile-skeleton-badge {
  width: 40px;
  height: 24px;
  border-radius: 4px;
}

/* ----------------------------------------
   TOAST NOTIFICATIONS
   ---------------------------------------- */

.mobile-toast-container {
  position: fixed;
  top: 80px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.mobile-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: toast-in 0.3s var(--ease-spring);
  pointer-events: auto;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mobile-toast.hiding {
  animation: toast-out 0.2s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
}

.mobile-toast-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

.mobile-toast--success .mobile-toast-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.mobile-toast--error .mobile-toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.mobile-toast--warning .mobile-toast-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.mobile-toast--info .mobile-toast-icon {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.mobile-toast-content {
  flex: 1;
  min-width: 0;
}

.mobile-toast-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-toast-message {
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-top: 2px;
}

.mobile-toast-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--mobile-text-muted);
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
}

.mobile-toast-close:active {
  background: rgba(255, 255, 255, 0.05);
}

/* ----------------------------------------
   HEADER STATS (CRM View)
   ---------------------------------------- */

.mobile-header-stats {
  display: flex;
  gap: 6px;
  padding: 8px 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}

.mobile-header-stats::-webkit-scrollbar {
  display: none;
}

.mobile-header-stat {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--mobile-line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.mobile-header-stat i {
  font-size: 10px;
  opacity: 0.7;
}

.mobile-header-stat--primary {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}

.mobile-header-stat--success {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

.mobile-header-stat--warning {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}

.mobile-header-stat--danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

/* ----------------------------------------
   SWIPE ACTIONS
   ---------------------------------------- */

.mobile-swipe-container {
  position: relative;
  overflow: hidden;
}

.mobile-swipe-actions {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  display: flex;
  transform: translateX(100%);
  transition: transform 0.2s;
}

.mobile-swipe-action {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: white;
  font-size: 10px;
  font-weight: 500;
}

.mobile-swipe-action i {
  font-size: 18px;
}

.mobile-swipe-action--call {
  background: #22c55e;
}

.mobile-swipe-action--email {
  background: #3b82f6;
}

.mobile-swipe-action--archive {
  background: #6b7280;
}

.mobile-swipe-content {
  position: relative;
  background: var(--mobile-panel);
  transition: transform 0.2s;
  z-index: 1;
}

.mobile-swipe-container.swiping .mobile-swipe-content {
  transition: none;
}

/* ----------------------------------------
   TODAY'S TASKS SECTION
   ---------------------------------------- */

.dash-tasks-card {
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 16px;
  padding: 16px;
}

.dash-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.dash-task-item:last-child {
  margin-bottom: 0;
}

.dash-task-item:active {
  background: rgba(0, 0, 0, 0.3);
}

.dash-task-item.overdue {
  border-left: 3px solid #ef4444;
}

.dash-task-item.today {
  border-left: 3px solid #f59e0b;
}

.dash-task-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 26, 0.15);
  border-radius: 8px;
  color: var(--mobile-accent);
  font-size: 14px;
}

.dash-task-item.overdue .dash-task-icon {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.dash-task-info {
  flex: 1;
  min-width: 0;
}

.dash-task-company {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-task-action {
  font-size: 11px;
  color: var(--mobile-text-muted);
}

.dash-task-due {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.dash-task-item.overdue .dash-task-due {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.dash-tasks-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--mobile-text-muted);
}

.dash-tasks-empty i {
  font-size: 32px;
  opacity: 0.3;
  margin-bottom: 8px;
}

.dash-tasks-empty p {
  font-size: 13px;
}

/* ----------------------------------------
   RECENTLY VIEWED
   ---------------------------------------- */

.dash-recent-card {
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 16px;
  padding: 16px;
}

.dash-recent-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.dash-recent-list::-webkit-scrollbar {
  display: none;
}

.dash-recent-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  width: 90px;
  cursor: pointer;
  transition: all 0.2s;
}

.dash-recent-item:active {
  transform: scale(0.96);
}

.dash-recent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 106, 26, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mobile-accent);
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
}

.dash-recent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-recent-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--mobile-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.dash-recent-phase {
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--mobile-text-muted);
}

/* ----------------------------------------
   IMPROVED PIPELINE VIEW
   ---------------------------------------- */

.mobile-pipeline-enhanced {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mobile-pipeline-enhanced::-webkit-scrollbar {
  display: none;
}

.mobile-pipeline-column-enhanced {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: start;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 16px;
  overflow: hidden;
}

.mobile-pipeline-header-enhanced {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-pipeline-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-pipeline-phase-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.mobile-pipeline-phase-badge--P0 { background: rgba(107, 114, 128, 0.2); color: #9ca3af; }
.mobile-pipeline-phase-badge--P1 { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.mobile-pipeline-phase-badge--P2 { background: rgba(139, 92, 246, 0.2); color: #a78bfa; }
.mobile-pipeline-phase-badge--P3 { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.mobile-pipeline-phase-badge--P4 { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.mobile-pipeline-phase-badge--P5 { background: rgba(34, 197, 94, 0.3); color: #22c55e; }

.mobile-pipeline-phase-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-pipeline-count-badge {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--mobile-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-pipeline-cards-enhanced {
  padding: 12px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-pipeline-card-enhanced {
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-pipeline-card-enhanced:active {
  background: rgba(0, 0, 0, 0.3);
  transform: scale(0.98);
}

.mobile-pipeline-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text);
  margin-bottom: 4px;
}

.mobile-pipeline-card-contact {
  font-size: 11px;
  color: var(--mobile-text-muted);
  margin-bottom: 6px;
}

.mobile-pipeline-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-pipeline-card-owner {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-radius: 4px;
}

.mobile-pipeline-card-days {
  font-size: 10px;
  color: var(--mobile-text-muted);
}

.mobile-pipeline-card-days.stale {
  color: #f59e0b;
}

.mobile-pipeline-card-days.overdue {
  color: #ef4444;
}

/* ----------------------------------------
   ACCESSIBILITY IMPROVEMENTS
   ---------------------------------------- */

/* Larger touch targets */
.mobile-touch-target {
  min-width: 44px;
  min-height: 44px;
}

/* Focus states */
.mobile-focusable:focus-visible {
  outline: 2px solid var(--mobile-accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode improvements */
@media (prefers-contrast: high) {
  .mobile-contact-card,
  .mobile-filter-pill,
  .mobile-btn {
    border-width: 2px;
  }
  
  .mobile-phase-badge {
    border: 1px solid currentColor;
  }
}

/* ========================================
   PENDING TJM ACTIONS (v55.0)
   ======================================== */

.dash-pending-actions {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.dash-pending-actions .dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-pending-actions .dash-section-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #f59e0b;
  margin: 0;
}

.dash-pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: #f59e0b;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
}

.dash-pending-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-pending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.dash-pending-item:active {
  transform: scale(0.98);
  background: rgba(245, 158, 11, 0.1);
}

.dash-pending-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border-radius: 10px;
  font-size: 16px;
  flex-shrink: 0;
}

.dash-pending-icon.automation_message {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.dash-pending-icon.manual_task {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.dash-pending-icon.phase_advance {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.dash-pending-icon.add_note {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.dash-pending-info {
  flex: 1;
  min-width: 0;
}

.dash-pending-company {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-pending-preview {
  font-size: 12px;
  color: var(--mobile-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.dash-pending-meta {
  font-size: 10px;
  color: var(--mobile-text-muted);
  opacity: 0.7;
  margin-top: 4px;
}

.dash-pending-actions-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dash-pending-actions-btns button {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-approve-action {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.btn-approve-action:active {
  background: #10b981;
  color: #fff;
}

.btn-dismiss-action {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.btn-dismiss-action:active {
  background: #ef4444;
  color: #fff;
}

.dash-pending-scheduled-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 12px;
  color: var(--mobile-text-muted);
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
  margin-top: 4px;
}

.dash-pending-scheduled-note i {
  color: #8b5cf6;
}

/* ========================================
   MOBILE ACTIVITY LOG SECTION (v56.0)
   ======================================== */

.mobile-activity-log {
  padding: 12px 16px;
  background: var(--mobile-panel);
  border-bottom: 1px solid var(--mobile-line);
}

.mobile-activity-log-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-activity-log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-activity-log-header h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-activity-log-header h3 i {
  color: var(--mobile-accent);
}

.mobile-btn-sm {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--mobile-accent);
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-btn-sm:active {
  transform: scale(0.95);
}

/* Next Action Display */
.mobile-next-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 106, 26, 0.1);
  border: 1px solid rgba(255, 106, 26, 0.2);
  border-radius: 8px;
}

.mobile-next-action.empty {
  background: rgba(107, 114, 128, 0.1);
  border-color: rgba(107, 114, 128, 0.2);
}

.mobile-next-action-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--mobile-accent);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mobile-next-action.empty .mobile-next-action-label {
  color: var(--mobile-text-muted);
}

.mobile-next-action-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-next-action-text {
  font-size: 13px;
  color: var(--mobile-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-next-action-date {
  font-size: 11px;
  color: var(--mobile-text-muted);
  flex-shrink: 0;
}

.mobile-next-action-date.overdue {
  color: #ef4444;
  font-weight: 600;
}

.mobile-next-action-empty {
  font-size: 12px;
  color: var(--mobile-text-muted);
  font-style: italic;
}

.mobile-btn-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--mobile-line);
  border-radius: 6px;
  color: var(--mobile-text-muted);
  cursor: pointer;
  font-size: 12px;
}

.mobile-btn-icon:active {
  background: var(--mobile-line);
}

/* Activity Timeline */
.mobile-activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-activity-empty {
  font-size: 12px;
  color: var(--mobile-text-muted);
  text-align: center;
  padding: 8px;
}

.mobile-activity-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.mobile-activity-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 10px;
  flex-shrink: 0;
  background: rgba(107, 114, 128, 0.2);
  color: var(--mobile-text-muted);
}

.mobile-activity-icon.activity-icon-call { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.mobile-activity-icon.activity-icon-email { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.mobile-activity-icon.activity-icon-meeting { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }
.mobile-activity-icon.activity-icon-demo { background: rgba(236, 72, 153, 0.2); color: #ec4899; }
.mobile-activity-icon.activity-icon-text { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.mobile-activity-icon.activity-icon-voicemail { background: rgba(107, 114, 128, 0.2); color: #6b7280; }
.mobile-activity-icon.activity-icon-linkedin { background: rgba(59, 130, 246, 0.2); color: #0077b5; }

.mobile-activity-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mobile-activity-type {
  font-size: 12px;
  font-weight: 500;
  color: var(--mobile-text);
}

.mobile-activity-outcome {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(107, 114, 128, 0.2);
  border-radius: 4px;
  color: var(--mobile-text-muted);
}

.mobile-activity-date {
  font-size: 10px;
  color: var(--mobile-text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

/* ========================================
   NOTES & MEDIA QUICK ACTIONS (v56.0)
   ======================================== */

.mobile-notes-quick-actions {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mobile-line);
  margin-bottom: 12px;
}

.mobile-notes-action-btn {
  flex: 1;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 106, 26, 0.1);
  border: 1px solid rgba(255, 106, 26, 0.2);
  border-radius: 8px;
  color: var(--mobile-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mobile-notes-action-btn:active {
  background: var(--mobile-accent);
  color: #000;
}

/* Media Section (collapsible photos) */
.mobile-media-section {
  margin-bottom: 12px;
}

.mobile-media-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--mobile-text);
}

.mobile-media-header i:first-child {
  color: var(--mobile-text-muted);
}

.mobile-media-header .toggle-icon {
  margin-left: auto;
  color: var(--mobile-text-muted);
  font-size: 11px;
  transition: transform 0.2s ease;
}

.mobile-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 0;
}

/* ========================================
   ACTIONS TAB - PENDING ACTIONS (v56.0)
   ======================================== */

.mobile-pending-actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-pending-actions-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--mobile-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-pending-actions-header h3 i {
  color: #f59e0b;
}

.mobile-pending-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: #f59e0b;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 11px;
}

.mobile-pending-actions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-pending-action-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.mobile-pending-action-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.mobile-pending-action-icon.automation_message {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.mobile-pending-action-icon.manual_task {
  background: rgba(139, 92, 246, 0.15);
  color: #8b5cf6;
}

.mobile-pending-action-icon.phase_advance {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.mobile-pending-action-icon.add_note {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.mobile-pending-action-info {
  flex: 1;
  min-width: 0;
}

.mobile-pending-action-type {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text);
}

.mobile-pending-action-preview {
  font-size: 12px;
  color: var(--mobile-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.mobile-pending-action-trigger {
  font-size: 10px;
  color: var(--mobile-text-muted);
  opacity: 0.7;
  margin-top: 4px;
}

.mobile-pending-action-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mobile-btn-approve,
.mobile-btn-dismiss {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
}

.mobile-btn-approve {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.mobile-btn-approve:active {
  background: #10b981;
  color: #fff;
}

.mobile-btn-dismiss {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.mobile-btn-dismiss:active {
  background: #ef4444;
  color: #fff;
}

.mobile-empty-hint {
  font-size: 11px;
  color: var(--mobile-text-muted);
  opacity: 0.7;
  margin-top: 4px;
}

/* Tab Badge */
.mobile-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #f59e0b;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  margin-left: 4px;
}

/* ========================================
   TASKS TAB - PROGRESS BAR & HISTORY (v56.0)
   ======================================== */

.mobile-tasks-header {
  margin-bottom: 12px;
}

.mobile-tasks-progress {
  margin-top: 8px;
}

.mobile-progress-bar {
  height: 6px;
  background: rgba(107, 114, 128, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.mobile-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.mobile-task-card-meta {
  font-size: 11px;
  color: var(--mobile-text-muted);
  margin-top: 2px;
}

/* Previous Phase Tasks (collapsible) */
.mobile-tasks-history {
  margin-top: 16px;
  border-top: 1px solid var(--mobile-line);
  padding-top: 12px;
}

.mobile-tasks-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(107, 114, 128, 0.1);
  border-radius: 8px;
  cursor: pointer;
}

.mobile-tasks-history-header h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--mobile-text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mobile-tasks-history-header .toggle-icon {
  color: var(--mobile-text-muted);
  font-size: 11px;
  transition: transform 0.2s ease;
}

.mobile-tasks-history-content {
  padding-top: 12px;
}

/* Mini task cards for previous phases */
.mobile-task-card--mini {
  padding: 8px 10px;
}

.mobile-task-card--mini .mobile-task-card-icon {
  width: 20px;
  height: 20px;
  font-size: 9px;
}

.mobile-task-card--mini .mobile-task-card-label {
  font-size: 12px;
}

.mobile-task-card--mini .mobile-task-card-check {
  width: 20px;
  height: 20px;
  font-size: 9px;
}

/* Past phase group styling */
.mobile-task-phase-group.past {
  opacity: 0.7;
}

.mobile-task-phase-group.past .mobile-task-phase-header {
  padding: 6px 10px;
}

.mobile-task-phase-group.past .mobile-task-phase-badge {
  font-size: 10px;
  padding: 2px 6px;
}

.mobile-task-phase-group.past .mobile-task-phase-name {
  font-size: 12px;
}

/* Phase badge in detail row */
.mobile-phase-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* ========================================
   REDESIGNED DASHBOARD (v58.0)
   CRM & Intel Hub focused layout
   ======================================== */

/* Primary Action Cards - Two prominent buttons */
.dash-primary-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: -8px;
}

.dash-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line-strong);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.dash-action-card:active {
  transform: scale(0.98);
  background: rgba(255, 106, 26, 0.1);
}

.dash-action-card.intel {
  border-color: rgba(34, 197, 94, 0.3);
}

.dash-action-card.intel:active {
  background: rgba(34, 197, 94, 0.1);
}

.dash-action-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--mobile-accent), #C9561B);
  border-radius: 12px;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.dash-action-card.intel .dash-action-icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.dash-action-content {
  flex: 1;
  min-width: 0;
}

.dash-action-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--mobile-text);
}

.dash-action-desc {
  display: block;
  font-size: 12px;
  color: var(--mobile-text-muted);
  margin-top: 2px;
}

.dash-action-arrow {
  color: var(--mobile-text-muted);
  font-size: 14px;
}

/* Two-Column Dual Row Layout */
.dash-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dash-dual-col {
  min-width: 0;
}

/* Compact Card Styles (for 2-column layout) */
.dash-attention-compact,
.dash-tasks-compact,
.dash-activity-compact,
.dash-messages-compact {
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 14px;
  padding: 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dash-attention-compact {
  border-color: rgba(239, 68, 68, 0.2);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02));
}

.dash-compact-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mobile-text);
}

.dash-compact-header i {
  font-size: 12px;
}

.dash-compact-header.danger {
  color: #ef4444;
}

.dash-compact-header.danger i {
  color: #ef4444;
}

.dash-compact-header.accent {
  color: var(--mobile-accent);
}

.dash-compact-header.accent i {
  color: var(--mobile-accent);
}

.dash-compact-header.muted {
  color: var(--mobile-text-muted);
}

.dash-compact-header.muted i {
  color: var(--mobile-text-muted);
}

.dash-compact-header.purple {
  color: #a855f7;
}

.dash-compact-header.purple i {
  color: #a855f7;
}

.dash-compact-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-compact-see-all {
  margin-left: auto;
  font-size: 10px;
  color: var(--mobile-accent);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  padding: 2px 6px;
}

.dash-compact-add {
  margin-left: auto;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.15);
  border: none;
  border-radius: 6px;
  color: #a855f7;
  cursor: pointer;
  font-size: 10px;
}

.dash-compact-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px;
  text-align: center;
  flex: 1;
}

.dash-compact-empty i {
  font-size: 18px;
  color: var(--mobile-text-muted);
  opacity: 0.5;
}

.dash-compact-empty span {
  font-size: 11px;
  color: var(--mobile-text-muted);
  opacity: 0.7;
}

/* Compact attention items */
.dash-attention-compact .dash-attention-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 120px;
}

.dash-attention-compact .dash-attention-item {
  padding: 8px;
  gap: 8px;
}

.dash-attention-compact .dash-attention-icon {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.dash-attention-compact .dash-attention-title {
  font-size: 11px;
}

.dash-attention-compact .dash-attention-meta {
  font-size: 9px;
}

/* Compact tasks list */
.dash-tasks-compact .dash-tasks-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 120px;
}

.dash-tasks-compact .dash-tasks-empty {
  display: none;
}

/* Compact activity list */
.dash-activity-compact .dash-activity-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  max-height: 100px;
}

.dash-activity-compact .dash-activity-item {
  padding: 6px 8px;
  gap: 8px;
}

.dash-activity-compact .dash-activity-icon {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.dash-activity-compact .dash-activity-text {
  font-size: 11px;
}

.dash-activity-compact .dash-activity-time {
  font-size: 9px;
}

/* Compact messages list */
.dash-messages-compact .dash-message-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  max-height: 100px;
}

/* CRM Quick Stats Row */
.dash-crm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 14px;
}

.dash-crm-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.dash-crm-stat:active {
  background: rgba(255, 255, 255, 0.05);
}

.dash-crm-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--mobile-text);
  line-height: 1;
}

.dash-crm-stat-value.warning {
  color: #f59e0b;
}

.dash-crm-stat-value.danger {
  color: #ef4444;
}

.dash-crm-stat-value.hot {
  color: #ff6b6b;
}

.dash-crm-stat-label {
  font-size: 9px;
  color: var(--mobile-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
}

.dash-crm-stat-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #ef4444;
  color: white;
  font-size: 8px;
  font-weight: 700;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Compact Navigation Grid (4 items) */
.dash-nav-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.dash-nav-item-compact {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--mobile-panel);
  border: 1px solid var(--mobile-line);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.dash-nav-item-compact:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.05);
}

.dash-nav-icon-compact {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 26, 0.15);
  border-radius: 10px;
  color: var(--mobile-accent);
  font-size: 15px;
}

.dash-nav-icon-compact.green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.dash-nav-icon-compact.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.dash-nav-icon-compact.pink {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.dash-nav-item-compact span {
  font-size: 10px;
  font-weight: 500;
  color: var(--mobile-text);
}

.dash-nav-badge-compact {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 9px;
  font-weight: 600;
  border-radius: 8px;
  background: #f59e0b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bottom Nav - 5 items adjustment */
.mobile-bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.mobile-nav-item span {
  font-size: 9px;
}
