@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Cinematic Premium Dark Palette */
  --bg-main: #050505;
  --bg-sidebar: #0A0A0B;
  --bg-card: #121214;
  --bg-card-hover: #1A1A1D;
  --bg-input: #151518;
  
  --border: #222225;
  --border-focus: #44444A;
  
  --primary: #D4AF37; /* Cinematic Gold */
  --primary-hover: #F3CA45;
  --primary-dim: rgba(212, 175, 55, 0.15);
  
  --accent: #7C3AED; /* Deep Purple */
  --accent-dim: rgba(124, 58, 237, 0.15);

  --text-main: #C8C8CD;
  --text-muted: #A0A0A5;
  --text-dark: #121214; /* For text on gold buttons */

  /* Status Colors */
  --status-urgent: #EF4444;
  --status-high: #F97316;
  --status-medium: #F59E0B;
  --status-low: #10B981;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 15px rgba(212, 175, 55, 0.1);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  scrollbar-width: thin; 
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent; 
}

/* Global Cinematic Premium Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 100px;
  transition: background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.35);
  border: 2px solid transparent;
  background-clip: padding-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Overrides for inline styling color settings to ensure off-white text */
[style*="color: #fff" i],
[style*="color: #ffffff" i],
[style*="color:#fff" i],
[style*="color:#ffffff" i],
[style*="color: rgb(255, 255, 255)" i],
[style*="color:rgb(255, 255, 255)" i],
[style*="color: white" i],
[style*="color:white" i] {
  color: #C8C8CD !important;
}

/* ── SIDEBAR ── */
.sidebar {
  width: 210px;
  background: linear-gradient(180deg, #080809 0%, #060607 100%);
  border-right: 1px solid #111115;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0,0,0,0.4);
}

.sidebar-logo {
  padding: 28px 22px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #0F0F12;
}

.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), #9B7E1E);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 800; color: var(--text-dark);
  box-shadow: 0 0 16px rgba(212,175,55,0.2), 0 4px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.logo-text { 
  font-family: var(--font-display);
  color: var(--text-main); 
  font-size: 19px; 
  font-weight: 700; 
  letter-spacing: 0.3px;
  line-height: 1;
}
.logo-text span { color: var(--primary); font-weight: 300; }

.sidebar-nav { flex: 1; padding: 12px 14px 16px; overflow-y: auto; }

.nav-section-label {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: #3A3A42; text-transform: uppercase;
  padding: 20px 14px 8px; margin-top: 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--radius-md);
  color: #5A5A65; font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: var(--transition); margin-bottom: 2px;
  text-decoration: none; position: relative; border: 1px solid transparent;
  letter-spacing: 0.1px;
}

.nav-item:hover {
  background-color: #111113;
  color: var(--text-main);
  border-color: #1E1E22;
}

.nav-item:hover .nav-icon {
  color: var(--primary);
  opacity: 0.9;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.04));
  color: var(--primary);
  border: 1px solid rgba(212,175,55,0.15);
  box-shadow: 0 0 12px rgba(212,175,55,0.06), inset 0 0 20px rgba(212,175,55,0.03);
}

.nav-item.active .nav-icon {
  color: var(--primary);
  filter: drop-shadow(0 0 4px rgba(212,175,55,0.4));
}

.nav-item .nav-icon { 
  width: 17px; height: 17px; flex-shrink: 0;
  color: #3A3A45;
  transition: var(--transition);
}

.nav-badge {
  margin-left: auto; background: var(--primary);
  color: var(--text-dark); font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px; line-height: 1.6;
}

.sidebar-footer {
  padding: 20px 20px 24px;
  border-top: 1px solid #111113;
}

.user-info {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-md);
  background: #0D0D0F;
  border: 1px solid #1A1A1E;
  transition: var(--transition);
}

.user-info:hover {
  border-color: var(--border-focus);
  background: #111113;
}

.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; color: var(--text-dark); flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), #9B7E1E);
  box-shadow: 0 0 8px rgba(212,175,55,0.25);
}

.user-name { color: var(--text-main); font-size: 13px; font-weight: 600; }
.user-role { color: var(--primary); font-size: 11px; font-weight: 500; opacity: 0.8; margin-top: 2px; }

/* ── MAIN CONTENT ── */
.main {
  margin-left: 210px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* ── TOPBAR ── */
.topbar {
  height: 84px;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  position: sticky; top: 0; z-index: 50;
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0 60px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-title { 
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--text-main); letter-spacing: -0.5px;
}

.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 18px; 
  width: 100%; max-width: 700px;
  transition: var(--transition);
}
.search-box:focus-within { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.search-box input {
  border: none; background: none; outline: none;
  font-size: 14px; color: var(--text-main); width: 100%;
  font-family: var(--font-body);
}
.search-box input::placeholder { color: var(--text-muted); }

.icon-btn {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--bg-card);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: var(--transition); position: relative;
}
.icon-btn:hover, .icon-btn.active { 
  background: var(--border); 
  color: var(--primary); 
  border-color: var(--primary-dim);
  box-shadow: 0 0 10px rgba(212,175,55,0.1);
}
.notif-dot {
  width: 10px; height: 10px; background: var(--primary); border-radius: 50%;
  position: absolute; top: 10px; right: 10px;
  box-shadow: 0 0 10px var(--primary);
}

/* ── PAGE CONTENT ── */
.page { padding: 40px; display: none; animation: fadeIn 0.4s ease; }
.page.active { display: block; }

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

/* ── DASHBOARD STATS ── */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }

.stat-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 24px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
  transition: var(--transition); position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0; transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--border-focus); box-shadow: var(--shadow-subtle); }
.stat-card:hover::before { opacity: 1; }

.stat-header { display: flex; justify-content: space-between; align-items: center; }
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-dim); color: var(--primary);
}

.stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.stat-currency { color: var(--text-muted); font-size: 18px; font-weight: 400; margin-right: 4px; }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.grid-12 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

/* ── CARDS ── */
.card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.card-header {
  padding: 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: 0.5px; }
.card-body { padding: 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-md); font-size: 14px;
  font-weight: 600; cursor: pointer; border: none;
  transition: var(--transition); font-family: var(--font-body);
  text-decoration: none;
}
.btn-primary { 
  background: var(--primary); color: var(--text-dark); 
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 0 20px rgba(212,175,55,0.4); }
.btn-outline {
  background: transparent; color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 4px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; font-family: var(--font-display);
}
.badge-gold { background: var(--primary-dim); color: var(--primary); border: 1px solid rgba(212,175,55,0.3); }
.badge-purple { background: var(--accent-dim); color: #A78BFA; border: 1px solid rgba(124,58,237,0.3); }
.badge-green { background: rgba(16,185,129,0.1); color: var(--status-low); border: 1px solid rgba(16,185,129,0.3); }
.badge-red { background: rgba(239,68,68,0.1); color: var(--status-urgent); border: 1px solid rgba(239,68,68,0.3); }
.badge-orange { background: rgba(245,158,11,0.1); color: var(--status-medium); border: 1px solid rgba(245,158,11,0.3); }
.badge-gray { background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border); }

/* ── PROJECT CARDS (List View) ── */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.project-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: var(--transition); cursor: pointer;
  display: flex; flex-direction: column;
}
.project-card:hover { border-color: var(--primary); box-shadow: var(--shadow-subtle); transform: translateY(-2px); }

.project-card-header { 
  padding: 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start;
}
.project-couple { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.project-studio { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

.project-card-body { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex: 1; }
.meta-group { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.meta-value { font-size: 14px; font-weight: 500; color: var(--text-main); display: flex; align-items: center; gap: 8px; }

.project-footer { 
  padding: 20px 24px; background: var(--bg-sidebar); border-top: 1px solid var(--border); 
  display:flex; align-items:center; justify-content:space-between; 
}
.progress-wrapper { flex: 1; max-width: 150px; }
.progress-text { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; color: var(--text-muted); }
.progress { background: var(--border); height: 6px; border-radius: 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }

/* ── KANBAN PIPELINE ── */
.kanban-board { 
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 40px; min-height: calc(100vh - 120px); 
  scroll-behavior: smooth;
}
/* Custom Scrollbar for Kanban */
.kanban-board::-webkit-scrollbar { height: 8px; }
.kanban-board::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 10px; }
.kanban-board::-webkit-scrollbar-thumb { background: var(--border-focus); border-radius: 10px; }
.kanban-board::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.kanban-col { min-width: 320px; max-width: 320px; display: flex; flex-direction: column; gap: 16px; }
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); border-top: 3px solid var(--col-color, var(--primary));
}
.kanban-col-title { font-family: var(--font-display); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: 1px;}
.col-count {
  background: var(--border); color: var(--text-muted);
  font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
}

.drop-zone { min-height: 100px; border-radius: var(--radius-md); transition: var(--transition); display:flex; flex-direction:column; gap:16px;}
.kanban-col.drag-over .drop-zone { background: var(--bg-card); border: 2px dashed var(--primary); }

.task-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 20px; border: 1px solid var(--border);
  cursor: grab; transition: var(--transition);
  display: flex; flex-direction: column; gap: 12px;
}
.task-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.task-card.dragging { opacity: 0.5; cursor: grabbing; border: 2px dashed var(--primary); }
.task-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--primary); }
.task-card-studio { font-size: 13px; color: var(--text-muted); }
.task-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.task-card-meta { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px;}

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th {
  padding: 16px 20px; text-align: left; font-size: 12px;
  font-weight: 600; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1px; border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
}
.data-table td {
  padding: 16px 20px; font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--bg-card-hover); }
.data-table tr:last-child td { border-bottom: none; }

/* ── FILTERS ── */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }
.filter-chip {
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-muted); transition: var(--transition);
}
.filter-chip.active, .filter-chip:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-dim);
}

/* ── UTILITIES ── */
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.ml-auto { margin-left: auto; }
.fw-600 { font-weight: 600; }
.mt-4 { margin-top: 16px; }

/* Avatar Overlaps */
.avatar-group { display: flex; }
.avatar-group .avatar { border: 2px solid var(--bg-card); margin-right: -10px; }

/* Status Dots */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-green { background: var(--status-low); box-shadow: 0 0 8px var(--status-low); }
.status-red { background: var(--status-urgent); box-shadow: 0 0 8px var(--status-urgent); }
.status-yellow { background: var(--status-medium); box-shadow: 0 0 8px var(--status-medium); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text-muted); }
.form-control {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 14px; outline: none;
  background: var(--bg-input); color: var(--text-main); font-family: var(--font-body);
  transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: var(--shadow-glow); }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; backdrop-filter: blur(12px);
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-overlay.modal-details-open {
  overflow: hidden !important;
}

.modal {
  background: #0A0A0B; 
  border-radius: 24px; 
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 70px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03);
  width: 1100px; 
  max-width: 100%; 
  max-height: 95vh; 
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp { 
  from { opacity:0; transform: translateY(20px) scale(0.98); } 
  to { opacity:1; transform: translateY(0) scale(1); } 
}

.modal-header {
  padding: 24px 40px; 
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  background: #0D0D0F;
  position: relative;
}

.modal-content-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.modal-sidebar {
  width: 220px;
  background: #080809;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.modal-main {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #0A0A0B;
}

.modal-body-content {
  padding: 24px 40px;
}

.modal-footer { 
  padding: 16px 40px; 
  border-top: 1px solid rgba(255,255,255,0.06); 
  display: flex; 
  gap: 16px; 
  justify-content: flex-end; 
  background: #0D0D0F; 
}

/* Progress Ring */
.progress-ring-container {
  position: relative;
  width: 64px;
  height: 64px;
  margin-right: 24px;
}
.progress-ring-circle {
  transition: stroke-dashoffset 0.35s;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* Pipeline Sidebar */
.pipeline-track {
  position: relative;
  padding-left: 20px;
}

.pipeline-step {
  position: relative;
  padding-bottom: 24px;
  font-size: 13px;
  color: #4A4A52;
  font-weight: 500;
  transition: var(--transition);
}

.pipeline-step::after {
  content: '';
  position: absolute;
  left: -17px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.1);
  z-index: 1;
}

.pipeline-step:last-child::after {
  display: none;
}

.pipeline-step::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1A1A1E;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 2;
}
.pipeline-step.active { color: var(--primary); }
.pipeline-step.active::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 10px rgba(212,175,55,0.4); }
.pipeline-step.completed { color: var(--text-main); }
.pipeline-step.completed::before { background: var(--primary); border-color: var(--primary); }

/* Pill Tabs */
.pill-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0 40px;
  background: #0D0D0F;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  min-height: 56px;
  position: relative;
  z-index: 5;
  overflow: visible; /* Prevent clipping of first tab active state */
}

.pill-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  height: 56px; /* Matches container min-height */
}

.pill-tab:first-child {
  padding-left: 0; /* Align with content below */
}

.pill-tab i {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  vertical-align: middle;
}

.pill-tab:hover {
  color: rgba(255,255,255,0.8);
}

.pill-tab.active {
  color: #F5C84C;
  font-weight: 600;
}

.pill-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #F5C84C;
  box-shadow: 0 0 10px rgba(245, 200, 76, 0.4);
  /* The gap is created by the bottom placement relative to the 56px height */
}

/* Ensure the underline is specifically 8px below text if padding allows */
.pill-tab {
  padding-top: 4px; /* Slight offset to visually center text including underline gap */
}

/* Smart Alert Strip */
.alert-strip {
  margin: 20px 40px 0;
  padding: 12px 20px;
  background: rgba(212,175,55,0.05);
  border: 1px solid rgba(212,175,55,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

/* Premium Chat/Comments */
.chat-container { display: flex; flex-direction: column; gap: 20px; }
.chat-bubble {
  display: flex;
  gap: 16px;
  max-width: 90%;
}
.chat-bubble-content {
  background: #0D0D0F;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px;
  flex: 1;
}
.chat-bubble-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.chat-author { font-weight: 700; font-size: 13px; color: var(--text-main); }
.chat-time { font-size: 11px; color: #3A3A42; }
.chat-text { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.8); }

/* Timeline V2 */
.timeline-v2 { padding-left: 20px; border-left: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 32px; }
.timeline-v2-item { position: relative; }
.timeline-v2-dot { position: absolute; left: -25px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.timeline-v2-card { background: #0D0D0F; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 16px; }

/* Modal Content specific styles */
.modal-section { margin-bottom: 32px; }
.modal-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 8px;}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.modal-info-item { display: flex; flex-direction: column; gap: 4px; }
.modal-info-label { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.modal-info-value { font-size: 14px; font-weight: 500; color: var(--text-main); }
.modal-link { color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 6px; font-size: 14px; transition: var(--transition); }
.modal-link:hover { color: var(--primary-hover); text-decoration: underline; }
.modal-notes-box { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; font-size: 13px; color: var(--text-muted); line-height: 1.6;}

/* ── TEAM COMMENTS ── */
.comments-container {
  display: flex; flex-direction: column;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}
.comments-list {
  padding: 20px; max-height: 250px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}
/* Scrollbar for comments */
.comments-list::-webkit-scrollbar { width: 6px; }
.comments-list::-webkit-scrollbar-track { background: transparent; }
.comments-list::-webkit-scrollbar-thumb { background: var(--border-focus); border-radius: 10px; }

.comment-item { display: flex; gap: 12px; }
.comment-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #9B7E1E);
  color: var(--text-dark); font-size: 11px; font-weight: 700; font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.comment-content { flex: 1; }
.comment-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.comment-author { font-size: 13px; font-weight: 600; color: var(--text-main); }
.comment-time { font-size: 11px; color: var(--text-muted); }
.comment-text { font-size: 13px; color: #D1D1D6; line-height: 1.5; }

.comment-input-area {
  display: flex; gap: 10px; padding: 16px;
  background: var(--bg-card); border-top: 1px solid var(--border);
}
.comment-input-area .form-control { border-radius: 20px; padding: 10px 16px; }

/* ── PRODUCTION CHECKLIST ── */
.checklist-container {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 24px; transition: var(--transition);
}
.checklist-container:hover { border-color: var(--border-focus); }
.checklist-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.checklist-title { font-size: 14px; font-weight: 600; color: var(--text-main); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 1px; }
.checklist-progress-text { font-size: 13px; color: var(--primary); font-weight: 700; background: var(--primary-dim); padding: 4px 10px; border-radius: 20px; }
.checklist-progress-bar {
  height: 6px; background: var(--bg-card); border-radius: 6px; overflow: hidden; margin-bottom: 24px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.checklist-progress-fill {
  height: 100%; background: linear-gradient(90deg, #9B7E1E, var(--primary)); box-shadow: var(--shadow-glow); transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.checklist-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.checklist-item {
  display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); transition: var(--transition);
}
.checklist-item:hover { background: var(--bg-card); transform: translateX(4px); }
.checklist-checkbox {
  appearance: none; width: 22px; height: 22px; border: 2px solid var(--border-focus);
  border-radius: 6px; background: var(--bg-input); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.checklist-checkbox:checked {
  background: var(--primary); border-color: var(--primary); box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}
.checklist-checkbox:checked::after {
  content: '✓'; color: var(--text-dark); font-size: 15px; font-weight: 800; font-family: sans-serif;
}
.checklist-label {
  font-size: 14px; color: var(--text-muted); transition: var(--transition); user-select: none; font-weight: 500;
}
.checklist-checkbox:checked + .checklist-label {
  color: var(--text-main); text-decoration: line-through; opacity: 0.6;
}

/* ── MONTHLY CALENDAR GRID ── */
.calendar-wrapper {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}
.calendar-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.calendar-month-title {
  font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text-main);
}
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px;
}
.calendar-day-header {
  text-align: center; font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; padding-bottom: 10px;
}
.calendar-cell {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  height: 135px; padding: 10px; cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
}
.calendar-cell:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-glow); border-color: var(--border-focus);
}
.calendar-cell.empty-cell {
  background: transparent; border: none; cursor: default;
}
.calendar-cell.empty-cell:hover {
  transform: none; box-shadow: none;
}
.calendar-date-num {
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-muted); text-align: right; margin-bottom: 4px;
}
.calendar-cell.has-bookings .calendar-date-num {
  color: var(--text-main);
}
.calendar-event {
  background: var(--bg-input); border: 1px solid var(--border); padding: 6px 8px; border-radius: 4px;
  font-size: 11px; color: var(--text-main); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  border-left: 3px solid var(--primary);
}
.calendar-event-couple { font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-event-studio { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar-more {
  font-size: 11px; color: var(--primary); font-weight: 600; text-align: center; margin-top: auto;
}

/* Capacity Highlights */
.cap-green { border-top: 3px solid var(--status-low); }
.cap-yellow { border-top: 3px solid var(--status-medium); background: rgba(245,158,11,0.02); }
.cap-orange { border-top: 3px solid var(--status-urgent); background: rgba(249,115,22,0.05); }
.cap-red { border-top: 3px solid var(--status-high); background: rgba(239,68,68,0.08); }

/* ── TOAST NOTIFICATION ── */
.toast {
  position: fixed; bottom: 40px; right: 40px; background: var(--bg-card); border: 1px solid var(--border-focus);
  border-left: 4px solid var(--status-low); color: var(--text-main); padding: 16px 24px; border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5); z-index: 9999; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; opacity: 0; transform: translateY(20px); transition: var(--transition);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast i { color: var(--status-low); width: 20px; }

/* ── PROJECT CARD QUICK ACTIONS ── */
.proj-quick-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.97) 60%, transparent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 20px 20px 18px;
  display: flex; gap: 10px;
  opacity: 0; transform: translateY(6px);
  transition: var(--transition); pointer-events: none;
}
.project-card:hover .proj-quick-actions {
  opacity: 1; transform: translateY(0); pointer-events: all;
}
.project-card:hover {
  border-color: rgba(212,175,55,0.2);
  box-shadow: 0 0 20px rgba(212,175,55,0.06), 0 8px 32px rgba(0,0,0,0.4);
}

/* ── TABS & FILTERS ── */
.tabs-container {
  display: flex; gap: 32px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.tab-btn {
  background: transparent; border: none; color: var(--text-muted); font-family: var(--font-display);
  font-size: 16px; font-weight: 600; padding: 12px 0; cursor: pointer; transition: var(--transition);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active {
  color: var(--primary); border-bottom: 2px solid var(--primary);
}

.filter-bar {
  display: flex; gap: 16px; margin-bottom: 24px; align-items: center;
  background: var(--bg-card); padding: 16px; border-radius: var(--radius-lg); border: 1px solid var(--border);
}
.filter-bar .search-box { flex: 1; }
.filter-bar .form-control { width: 200px; margin: 0; background: var(--bg-input); }

/* ── REVISION DETAIL MODAL REDESIGN ── */
.rev-modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.rev-meta-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.rev-meta-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.rev-meta-content .m-label {
  font-size: 10px;
  color: #4A4A52;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 4px;
}

.rev-meta-content .m-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.rev-meta-content .m-sub {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.rev-progress-tracker {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 32px;
}

.rev-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rev-tracker-stats {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.rev-tracker-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 99px;
  overflow: hidden;
}

.rev-tracker-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #9B7E1E);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  transition: width 0.6s ease;
}

.rev-section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rev-note-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.rev-note-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateX(4px);
}

.rev-timestamp-badge {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 4px 12px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  height: fit-content;
  white-space: nowrap;
}

.rev-note-main {
  flex: 1;
}

.rev-note-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 12px;
}

.rev-note-tags {
  display: flex;
  gap: 8px;
}

.rev-note-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #55555C;
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 8px;
  border-radius: 4px;
}

.rev-note-status-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  height: fit-content;
  transition: all 0.2s;
}

.rev-note-status-btn.done {
  background: rgba(16, 185, 129, 0.1);
  color: var(--status-low);
  border-color: rgba(16, 185, 129, 0.2);
}

.rev-note-status-btn.in-progress {
  background: rgba(245, 158, 11, 0.1);
  color: var(--status-medium);
  border-color: rgba(245, 158, 11, 0.2);
}

.rev-file-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.rev-file-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.rev-file-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.rev-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rev-file-info .f-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.rev-file-actions {
  display: flex;
  gap: 8px;
}

.btn-file-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-file-action:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-danger-ghost {
  background: transparent;
  border: none;
  color: var(--status-urgent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.2s;
}

.btn-danger-ghost:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ── REVISION QUEUE REDESIGN ── */
.rev-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.rev-header-left h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.rev-header-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.rev-active-badge {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  margin-left: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.rev-filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.rev-filter-btns {
  display: flex;
  gap: 12px;
}

.rev-filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 6px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.rev-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.rev-filter-btn.active {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.rev-sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.rev-list-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 32px;
}

.rev-list-header {
  display: grid;
  grid-template-columns: 2.5fr 0.6fr 1.2fr 1.8fr 1.2fr 1.5fr;
  gap: 24px;
  padding: 18px 32px;
  background: rgba(255,255,255,0.01);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
  color: #4A4A52;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.rev-list-row {
  display: grid;
  grid-template-columns: 2.5fr 0.6fr 1.2fr 1.8fr 1.2fr 1.5fr;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.rev-list-row:hover {
  background: rgba(212, 175, 55, 0.015);
  transform: scale(1.002);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.rev-project-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rev-double-avatars {
  display: flex;
  position: relative;
  width: 56px;
}

.rev-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  overflow: hidden;
  background: var(--border);
}

.rev-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rev-avatar-circle:last-child {
  position: absolute;
  left: 20px;
  z-index: 1;
}

.rev-project-text .p-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #C8C8CD;
  margin-bottom: 4px;
}

.rev-project-text .p-type {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.rev-project-text .p-loc {
  font-size: 10px;
  color: #4A4A52;
  margin-top: 2px;
}

.rev-version-badge {
  width: 32px;
  height: 22px;
  background: var(--primary-dim);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.rev-notes-info {
  display: flex;
  flex-direction: column;
}

.rev-notes-info .n-count {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.rev-notes-info .n-split {
  font-size: 11px;
  color: #71717A;
  font-weight: 500;
  margin-top: 4px;
}

.rev-deadline-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rev-deadline-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--status-urgent);
}

.rev-deadline-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  overflow: hidden;
}

.rev-deadline-bar-fill {
  height: 100%;
  background: var(--status-urgent);
  border-radius: 99px;
}

.rev-prio-badge {
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rev-prio-badge.urgent { background: rgba(239, 68, 68, 0.1); color: var(--status-urgent); border: 1px solid rgba(239, 68, 68, 0.2); }
.rev-prio-badge.high { background: rgba(249, 115, 22, 0.1); color: var(--status-high); border: 1px solid rgba(249, 115, 22, 0.2); }
.rev-prio-badge.medium { background: rgba(59, 130, 246, 0.1); color: #3B82F6; border: 1px solid rgba(59, 130, 246, 0.2); }
.rev-prio-badge.low { background: rgba(255, 255, 255, 0.05); color: #888; border: 1px solid rgba(255, 255, 255, 0.1); }

@keyframes pulseUrgent {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.pulse-urgent {
  animation: pulseUrgent 2s infinite ease-in-out;
}

.rev-prio-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.rev-actions-cell {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-rev-action {
  background: var(--primary);
  border: none;
  color: #000;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-rev-action:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-rev-secondary {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-rev-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Bottom stats */
.rev-stats-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rev-stat-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.rev-stat-card-v2 .s-label {
  font-size: 10px;
  color: #4A4A52;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 8px;
}

.rev-stat-card-v2 .s-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
}

.rev-stat-card-v2 .s-sub {
  font-size: 12px;
  color: #55555C;
  margin-top: 6px;
}

.rev-stat-card-v2 .s-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.rev-stat-card-v2 .trend-up { color: var(--status-low); font-weight: 700; }

@media (max-width: 1400px) {
  .rev-list-header, .rev-list-row {
    grid-template-columns: 2fr 0.6fr 1fr 1.2fr 1fr 1.2fr;
  }
}

/* ── EDITORS PAGE REDESIGN ── */
.editors-header {
  margin-bottom: 40px;
}

.editors-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.editor-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.editor-stat-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.editor-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.editor-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
}

.editor-stat-sub {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}

.editors-chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.editors-chart-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.5;
}

/* Editor Card V2 */
.editor-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.editor-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.editor-card-v2:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.editor-card-v2::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent);
  pointer-events: none;
}

.editor-profile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.editor-info-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.editor-avatar-v2 {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1A1A1D, #222225);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  position: relative;
}

.editor-status-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.editor-name-role .name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.editor-name-role .role {
  font-size: 12px;
  color: var(--primary);
  opacity: 0.8;
  font-weight: 600;
}

.editor-score-pill {
  text-align: right;
}

.editor-score-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}

.editor-score-label {
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.editor-stats-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 16px;
}

.mini-stat-item .label {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}

.mini-stat-item .value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.workload-section {
  margin-bottom: 20px;
}

.workload-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.workload-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.workload-percent {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
}

.workload-bar-bg {
  height: 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 99px;
  overflow: hidden;
}

.workload-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-view-details {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-view-details:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

@media (max-width: 1200px) {
  .editor-grid-v2 { grid-template-columns: 1fr 1fr; }
  .editors-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .editor-grid-v2 { grid-template-columns: 1fr; }
  .editors-stats-grid { grid-template-columns: 1fr; }
}

.btn-view-archived:hover { opacity: 0.8; }

/* ── CEO DASHBOARD REDESIGN ── */
.dash-header-section {
  margin-bottom: 40px;
}

.dash-subtitle {
  font-size: 14px;
  color: #71717A;
  margin-top: 8px;
  font-weight: 500;
}

.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.kpi-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.dash-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dash-kpi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.dash-kpi-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

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

.kpi-label {
  font-size: 11px;
  text-transform: uppercase;
  color: #55555C;
  font-weight: 700;
  letter-spacing: 1px;
}

.kpi-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

/* Production Pipeline Widget */
.pipeline-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  height: 100%;
}

.pipeline-steps-horizontal {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  position: relative;
}

.pipeline-steps-horizontal::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.p-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.p-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #121214;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.p-step.active .p-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.p-label {
  font-size: 11px;
  font-weight: 700;
  color: #4A4A52;
  text-align: center;
}

.p-step.active .p-label { color: var(--text-main); }

/* Urgent Alerts */
.alerts-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  margin-bottom: 12px;
  border-left: 3px solid transparent;
}

.alert-item.urgent { border-left-color: var(--status-urgent); }
.alert-item.warning { border-left-color: var(--status-medium); }

.alert-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-content .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.alert-content .sub {
  font-size: 11px;
  color: #55555C;
  font-weight: 500;
}

/* Team Mini Cards */
.team-perf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.editor-mini-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
}

.e-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.e-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--primary);
}

.e-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.e-stats-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.e-stat-box {
  font-size: 10px;
  color: #55555C;
}

.e-stat-box .val {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

/* Finance Row */
.finance-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.finance-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.fin-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.fin-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.fin-label {
  font-size: 11px;
  font-weight: 700;
  color: #55555C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-bottom-bar {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  font-size: 11px;
  color: #4A4A52;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ── WORLD-CLASS SAAS ADMIN ADDITIONS ── */
.kpi-trend {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up { color: var(--status-low); }
.trend-down { color: var(--status-urgent); }

.capacity-container {
  margin-top: 16px;
}

.capacity-header {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 800;
  color: #55555C;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.capacity-bar-bg {
  height: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 99px;
  overflow: hidden;
}

.capacity-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quick Action Buttons */
.dash-quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.qa-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.qa-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.qa-btn i { color: var(--primary); }

/* Layout Density Fixes */
.grid-ceo-main { margin-bottom: 16px; }
.grid-ceo-actions { margin-bottom: 16px; }

.status-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.status-pill-mini {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-finance {
  background: rgba(16, 185, 129, 0.1);
  color: var(--status-low);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

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

.card-rich-stat {
  font-size: 11px;
  color: #71717A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-rich-stat i { color: var(--primary); width: 12px; }

/* Better Table Density */
.data-table td {
  padding: 14px 16px;
}

/* Responsiveness Improvements */
@media (max-width: 1400px) {
  .dash-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .finance-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .grid-ceo-main, .grid-ceo-actions { grid-template-columns: 1fr; }
  .team-perf-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .dash-kpi-grid { grid-template-columns: 1fr; }
  .team-perf-grid { grid-template-columns: 1fr; }
  .finance-row { grid-template-columns: 1fr; }
}

/* Layout Utilities */
.grid-ceo-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.grid-ceo-actions {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* ── PROJECT MANAGEMENT V2 ── */
.proj-filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
}

.proj-filter-btns {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.proj-filter-btn {
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #71717A;
  cursor: pointer;
  transition: all 0.2s ease;
  background: none;
  border: none;
}

.proj-filter-btn:hover { color: var(--text-main); }
.proj-filter-btn.active {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.proj-search-wrapper {
  flex: 1;
  max-width: 400px;
  position: relative;
  display: flex;
  align-items: center;
}

.proj-search-wrapper i {
  position: absolute;
  left: 16px;
  color: #55555C;
  pointer-events: none;
}

.proj-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 16px 12px 44px;
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14px;
  transition: all 0.2s ease;
}

.proj-search-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.05);
}

.proj-view-toggles {
  display: flex;
  gap: 8px;
}

.view-toggle-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: #55555C;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle-btn.active {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(212, 175, 55, 0.05);
}

/* Project Card V2 - GRID VIEW */
.proj-list-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proj-card-v2 {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.proj-card-v2:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.proj-thumb-container {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.proj-res-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(212, 175, 55, 0.9);
  color: #000;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.proj-info-main {
  padding: 24px;
  flex: 1;
}

.proj-header-v2 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.proj-title-v2 {
  font-size: 18px;
  font-weight: 800;
  color: #C8C8CD;
  letter-spacing: -0.3px;
}

.proj-meta-grid-v2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.proj-meta-item-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.proj-editor-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: #222;
}

.workspace-btn-v2 {
  margin: 0 24px 24px;
  background: transparent;
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--primary);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.proj-card-v2:hover .workspace-btn-v2 {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.proj-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.proj-card-v2:hover .proj-thumb-container img { transform: scale(1.1); }

.proj-res-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #C8C8CD;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.proj-completed-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C8C8CD;
  backdrop-filter: blur(2px);
}

.proj-header-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.proj-title-v2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.proj-prio-pill {
  font-size: 9px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 99px;
  letter-spacing: 0.5px;
}

.prio-urgent { background: rgba(239, 68, 68, 0.1); color: var(--status-urgent); border: 1px solid rgba(239, 68, 68, 0.2); }
.prio-hold { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.prio-normal { background: rgba(59, 130, 246, 0.1); color: #3B82F6; border: 1px solid rgba(59, 130, 246, 0.2); }
.prio-completed { background: rgba(16, 185, 129, 0.1); color: var(--status-low); border: 1px solid rgba(16, 185, 129, 0.2); }

.proj-meta-grid-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.proj-meta-item-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #71717A;
  font-weight: 500;
}

.proj-meta-item-v2 i { color: var(--primary); opacity: 0.8; }

.proj-editor-v2 .label {
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 800;
  color: #4A4A52;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.editor-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.editor-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--primary);
}

.editor-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }

.progress-header-v2 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.task-name-v2 {
  font-size: 9px;
  font-weight: 900;
  color: #4A4A52;
  letter-spacing: 0.5px;
}

.pct-v2 {
  font-size: 12px;
  font-weight: 900;
  color: var(--primary);
}

.progress-bar-v2-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-v2-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.proj-actions-v2 {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  color: #3A3A42;
}

.proj-actions-v2 i:hover { color: var(--text-main); }

.proj-mgmt-footer {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
}

.proj-stats-info { font-size: 13px; color: #55555C; font-weight: 600; }
.btn-view-archived {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

@media (max-width: 1400px) {
  .proj-list-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .proj-list-container { grid-template-columns: 1fr; }
  .proj-filters-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .proj-search-wrapper { width: 100%; max-width: none; }
}

/* ── PAYMENTS DASHBOARD ── */
.finance-main-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
}

.finance-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.finance-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Enhanced Table */
.data-table tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.data-table tr:hover {
  background: rgba(255, 255, 255, 0.015);
  transform: scale(1.002);
}

.pay-status-paid, .pay-status-partial, .pay-status-overdue, .pay-status-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pay-status-paid { 
  background: rgba(16, 185, 129, 0.1); color: #10B981; 
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}
.pay-status-partial { 
  background: rgba(212, 175, 55, 0.1); color: var(--primary); 
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}
.pay-status-overdue { 
  background: rgba(239, 68, 68, 0.1); color: #EF4444; 
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}
.pay-status-pending { 
  background: rgba(124, 58, 237, 0.1); color: #8B5CF6; 
  border: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.1);
}

.transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.transaction-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.txn-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}

.insights-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0));
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.insights-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.insight-point {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-main);
  font-weight: 500;
}

.due-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.due-item:hover { 
  border-color: var(--primary); 
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

.btn-finance-primary {
  background: var(--primary);
  color: #000;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-finance-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  background: var(--primary-hover);
}

.btn-finance-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.btn-finance-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1200px) {
  .finance-main-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   FINANCIAL SAAS UI — WORLD CLASS REFINEMENT
   ════════════════════════════════════════════════════════════ */

.finance-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 60px;
}

.kpi-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.dash-kpi-card {
  background: linear-gradient(145deg, #121214, #0D0D0F);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.dash-kpi-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(212,175,55,0.05);
}

.dash-kpi-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: radial-gradient(circle at top right, rgba(212,175,55,0.05), transparent 70%);
  pointer-events: none;
}

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

.kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: #55555C;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: var(--font-display);
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-display);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
}

.trend-up { color: #10B981; }
.trend-down { color: #EF4444; }

/* Data Table Refinement */
.data-table-v2 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table-v2 th {
  padding: 20px 32px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  color: #4A4A52;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: rgba(10,10,11,0.5);
  backdrop-filter: blur(10px);
  vertical-align: middle;
}

.data-table-v2 td {
  padding: 24px 32px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
  transition: all 0.2s ease;
}

.data-table-v2 tr:hover td {
  background: rgba(255,255,255,0.01);
}

/* Payment Status Badges */
.pay-status-paid { background: rgba(16,185,129,0.08); color: #10B981; border: 1px solid rgba(16,185,129,0.15); padding: 5px 12px; border-radius: 99px; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.pay-status-overdue { background: rgba(239,68,68,0.08); color: #EF4444; border: 1px solid rgba(239,68,68,0.15); padding: 5px 12px; border-radius: 99px; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.pay-status-partial { background: rgba(245,158,11,0.08); color: #F59E0B; border: 1px solid rgba(245,158,11,0.15); padding: 5px 12px; border-radius: 99px; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.pay-status-pending { background: rgba(161,161,170,0.08); color: #A1A1AA; border: 1px solid rgba(161,161,170,0.15); padding: 5px 12px; border-radius: 99px; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }

/* Financial Charts Container */
.finance-chart-card {
  padding: 40px;
  background: linear-gradient(180deg, #121214 0%, #0A0A0B 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.finance-chart-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; width: 300px; height: 300px;
  background: radial-gradient(circle at top right, rgba(212,175,55,0.03), transparent 70%);
  pointer-events: none;
}

.spin {
  animation: spin 1s linear infinite;
}

/* ── LOADING STATE ── */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  gap: 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(212, 175, 55, 0.1);
  border-top: 4px solid var(--primary);
}

/* Status Dropdown System */
.status-dropdown {
    position: absolute;
    right: 32px;
    top: 50px;
    width: 200px;
    background: #121214;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    z-index: 1000;
    padding: 8px;
    display: none;
    backdrop-filter: blur(15px);
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


.status-dropdown.show {
    display: block;
}

.dropdown-title {
    font-size: 10px;
    text-transform: uppercase;
    color: #55555C;
    padding: 10px 12px 6px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    color: #A0A0A5;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-icon-box {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--text-main);
}

.dropdown-item:hover .item-icon-box {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

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

.spin { animation: spin 1s linear infinite; }
@keyframes spin { 
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); } 
}

.loading-text {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--primary);
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
}

.error-container {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 40px;
}

/* Premium Status Pills */
.status-new-project { background: rgba(255, 255, 255, 0.05); color: #F8F8F8; }
.status-editing-in-progress { background: rgba(212, 175, 55, 0.1); color: var(--primary); border-color: rgba(212, 175, 55, 0.2) !important; }
.status-pm-review { background: rgba(245, 158, 11, 0.1); color: var(--status-medium); border-color: rgba(245, 158, 11, 0.2) !important; }
.status-client-review { background: rgba(59, 130, 246, 0.1); color: #3B82F6; border-color: rgba(59, 130, 246, 0.2) !important; }
.status-completed { background: rgba(16, 185, 129, 0.1); color: var(--status-low); border-color: rgba(16, 185, 129, 0.2) !important; }
.status-delivered { background: rgba(16, 185, 129, 0.1); color: var(--status-low); border-color: rgba(16, 185, 129, 0.2) !important; }

/* ── FINANCIAL DASHBOARD STYLES ── */
.finance-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fadeIn 0.6s ease;
}

.kpi-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.dash-kpi-card {
  background: rgba(13, 13, 15, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
}

.dash-kpi-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.1);
}

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

.kpi-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #55555C;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.kpi-trend {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.trend-up { color: #10B981; }
.trend-down { color: #EF4444; }

.finance-chart-card {
  background: rgba(13, 13, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 32px;
}

.data-table-v2 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table-v2 th {
  padding: 16px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  color: #4A4A52;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.data-table-v2 td {
  padding: 18px 20px;
  font-size: 13px;
  color: #A0A0A5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  vertical-align: middle;
}

.data-table-v2 tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

.pay-status-paid { background: rgba(16, 185, 129, 0.1); color: #10B981; padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 10px; }
.pay-status-partial { background: rgba(245, 158, 11, 0.1); color: #F59E0B; padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 10px; }
.pay-status-overdue { background: rgba(239, 68, 68, 0.1); color: #EF4444; padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 10px; }

.insight-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.insight-box {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.02) 100%);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 20px;
  padding: 24px;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-main);
}

.insight-item i {
  color: var(--primary);
}

/* Grid Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-12 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

@media (max-width: 1200px) {
  .kpi-grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-12, .grid-2 { grid-template-columns: 1fr; }
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: #1A1A1E;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { border-left: 4px solid var(--status-low); }
.toast.error { border-left: 4px solid var(--status-urgent); }
.toast i { color: var(--primary); width: 18px; }

/* ── PM ACTION MENU & DROPDOWN STYLING ── */
.proj-card-actions-v2 {
  display: flex;
  gap: 8px;
  margin: 0 24px 24px;
  align-items: center;
  position: relative;
}

.pm-action-dots-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.3);
  background: transparent;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.pm-action-dots-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--primary);
}

.pm-project-dropdown {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: linear-gradient(145deg, #1a1a1e, #141416);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 8px;
  width: 180px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.03) inset;
  z-index: 9999;
  transform-origin: bottom right;
  animation: pmDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(20px);
}

.pm-project-dropdown button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.3px;
  text-align: left;
}

.pm-project-dropdown button:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15);
}

.pm-project-dropdown button i {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

@keyframes pmDropdownFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ── PREMIUM NOTIFICATIONS SYSTEM ── */
.glass-dropdown {
  animation: pmDropdownFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.notif-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.notif-card.unread {
  background: rgba(212, 175, 55, 0.03);
  border-color: rgba(212, 175, 55, 0.1);
}

.notif-card.unread:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.15);
}

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

.notif-icon-wrapper.urgent {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.notif-icon-wrapper.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.notif-icon-wrapper.info {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.notif-icon-wrapper.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.notif-dot-glow {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  right: 12px;
}

.notif-dot-glow.unread {
  background: #D4AF37;
  box-shadow: 0 0 8px #D4AF37;
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  from { opacity: 0.6; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.1); }
}

/* Custom Scrollbar for Notification list */
#notifList::-webkit-scrollbar {
  width: 4px;
}
#notifList::-webkit-scrollbar-track {
  background: transparent;
}
#notifList::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
#notifList::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ── MOBILE RESPONSIVENESS IMPROVEMENTS ── */

@media (max-width: 992px) {
  /* Sidebar Overlay Behavior */
  .sidebar {
    position: fixed !important;
    left: -160px !important;
    width: 160px !important;
    padding: 12px 10px 16px 10px !important;
    height: 100vh !important;
    z-index: 99999 !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8) !important;
  }
  .sidebar.active {
    left: 0 !important;
  }
  
  /* Main Content Full Width */
  .main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  
  /* Topbar Adjustments */
  .topbar {
    padding: 0 16px !important;
    height: 70px !important;
  }
  
  .topbar-left #menuBtn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    color: #C8C8CD;
    cursor: pointer;
  }
  
  .topbar-center {
    display: none !important; /* Hide search box to fit header items */
  }

  /* Finance stats mini grid */
  .finance-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  /* Team Grid responsive */
  .team-perf-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Editors stats */
  .editors-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Editors grid */
  .editor-grid-v2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 768px) {
  /* Dashboard KPI/Stats Grid */
  .dash-kpi-grid, .kpi-grid-5 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* Revision Bottom stats */
  .rev-stats-footer {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Modals and forms grids */
  .modal-info-grid-v3, .spec-grid-v3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 16px 20px !important;
  }
  
  /* Page containers padding */
  .page {
    padding: 16px 12px !important;
  }

  /* Tables horizontal scrolling */
  table, .data-table-v2 {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Project detail grids */
  .grid-2, .grid-3, .grid-12 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Chat window adjustments */
  .chat-container {
    height: calc(100vh - 120px) !important;
  }
}

@media (max-width: 576px) {
  /* Small Screens (KPI cards full width) */
  .dash-kpi-grid, .kpi-grid-5 {
    grid-template-columns: 1fr !important;
  }

  .finance-row, .team-perf-grid, .editors-stats-grid, .editor-grid-v2 {
    grid-template-columns: 1fr !important;
  }

  .modal-info-grid-v3, .spec-grid-v3 {
    grid-template-columns: 1fr !important;
  }

  /* Settings Page Glass Card Padding Fix */
  .page#page-settings .glass {
    padding: 16px !important;
    border-radius: 16px !important;
  }
  
  /* Header Profile Row */
  .page#page-settings .flex-col {
    gap: 16px !important;
  }
  
  /* Topbar title fonts */
  .topbar-title {
    font-size: 16px !important;
  }
}

/* ── DYNAMIC INLINE GRID OVERRIDES ── */

@media (max-width: 992px) {
  /* Dynamic Grid Columns Override (4, 5, 6, 7 columns) — exclude .files-category-grid */
  [style*="grid-template-columns:repeat(5, 1fr)"]:not(.files-category-grid),
  [style*="grid-template-columns: repeat(5, 1fr)"]:not(.files-category-grid),
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(6, 1fr)"],
  [style*="grid-template-columns: repeat(6, 1fr)"],
  [style*="grid-template-columns:repeat(7, 1fr)"],
  [style*="grid-template-columns: repeat(7, 1fr)"],
  [style*="grid-template-columns:repeat(auto-fit"],
  [style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Two-column dashboard sidebar or content sidebar grid vertical stacking */
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 2fr  1fr"],
  [style*="grid-template-columns: 1fr 300px"],
  [style*="grid-template-columns: 1fr  300px"],
  [style*="grid-template-columns: 1fr 290px"],
  [style*="grid-template-columns: 1fr  290px"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  
  /* Make sure horizontal containers can overflow scroll */
  .proj-list-container,
  .table-container,
  #section-production-progress,
  #section-revisions,
  #page-revisions,
  #page-payments,
  #page-editors,
  #page-unassigned,
  #page-billing {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  /* section-files must NOT scroll horizontally — folder cards fit the screen */
  #section-files {
    overflow-x: hidden !important;
  }
  #section-files .table-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  #section-files .table-container .folder-card {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Tab-bar horizontally scrollable without wrapping on small screens */
  [style*="padding: 0 40px;"][style*="display:flex; gap:32px"] {
    padding: 0 16px !important;
    gap: 16px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }
  [style*="padding: 0 40px;"][style*="display:flex; gap:32px"] > div {
    flex-shrink: 0 !important;
  }

  /* Complex tabular grids: force minimum width and scroll horizontally on mobile */
  .rev-list-header, 
  .rev-list-row,
  [style*="grid-template-columns: 2.5fr"],
  [style*="grid-template-columns: 2.5fr "],
  [style*="grid-template-columns: 1.2fr"],
  [style*="grid-template-columns: 1.2fr "],
  [style*="grid-template-columns: 2.4fr"],
  [style*="grid-template-columns: 2.4fr "],
  [style*="grid-template-columns: 2fr 1.5fr"],
  [style*="grid-template-columns: 2.4fr 0.6fr"] {
    min-width: 900px !important;
  }

  /* Overriding inline paddings of 40px in project details */
  #page-project-details > div[style*="padding: 12px 40px"],
  #page-project-details > div[style*="padding: 12px  40px"] {
    padding: 12px 16px !important;
  }
  
  #page-project-details > div[style*="padding: 16px 40px"],
  #page-project-details > div[style*="padding: 16px  40px"] {
    padding: 16px 16px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
  
  #page-project-details > div[style*="padding: 16px 40px"] > div[style*="display:flex; gap:24px"],
  #page-project-details > div[style*="padding: 16px  40px"] > div[style*="display:flex; gap:24px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  #section-overview {
    padding: 24px 16px !important;
  }
}

@media (max-width: 576px) {
  /* Dynamic Grid Columns Override (4, 5, 6, 7 columns) drop to 1 column on phone — exclude .files-category-grid */
  [style*="grid-template-columns:repeat(5, 1fr)"]:not(.files-category-grid),
  [style*="grid-template-columns: repeat(5, 1fr)"]:not(.files-category-grid),
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(6, 1fr)"],
  [style*="grid-template-columns: repeat(6, 1fr)"],
  [style*="grid-template-columns:repeat(7, 1fr)"],
  [style*="grid-template-columns: repeat(7, 1fr)"],
  [style*="grid-template-columns:repeat(auto-fit"],
  [style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .modal-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Global hover effect for files category cards on desktop and mobile */
#section-files .files-category-grid > div:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* ── FILES TAB CATEGORY GRID: ALWAYS 5 COLUMNS ON MOBILE — FINAL OVERRIDE ──
   Placed at bottom of file so it wins against ALL global grid rules above,
   including Tailwind and any inline-style attribute overrides. */
@media (max-width: 1024px) {
  /* Reduce section left/right padding so cards have maximum available width */
  #section-files {
    padding-left: 6px !important;
    padding-right: 6px !important;
    overflow-x: hidden !important;
  }
  #section-files .files-category-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  #section-files .files-category-grid > div {
    flex: 1 !important;
    min-width: 0 !important;
    max-width: 68px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    height: 70px !important;
    padding: 6px 0 4px 0 !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #09090b !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
  }
  #section-files .files-category-grid > div:hover {
    background: rgba(255, 255, 255, 0.04) !important;
  }
  #section-files .files-category-grid > div i,
  #section-files .files-category-grid > div svg {
    width: 16px !important;
    height: 16px !important;
    margin-bottom: 5px !important;
    color: #D4AF37 !important;
    display: inline-block !important;
  }
  #section-files .files-category-grid > div div:nth-child(2) {
    font-size: 7.5px !important;
    font-weight: 700 !important;
    color: #C8C8CD !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.1 !important;
    text-align: center !important;
    word-break: break-word !important;
    margin-bottom: 2px !important;
    padding: 0 2px !important;
  }
  #section-files .files-category-grid > div div:nth-child(3) {
    font-size: 6.5px !important;
    color: rgba(255,255,255,0.4) !important;
    text-align: center !important;
  }
}

/* ── LEAD PIPELINE STYLING ── */
.lead-pipeline-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lead-pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.lead-pipeline-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--radius-md);
}

.lead-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.lead-tab-btn:hover {
  color: var(--text-main);
}

.lead-tab-btn.active {
  background: var(--primary);
  color: var(--text-dark);
}

.lead-tab-btn span {
  font-size: 18px;
}

.lead-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-body);
}

.lead-action-btn.primary {
  background: var(--primary);
  color: var(--text-dark);
}

.lead-action-btn.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.lead-action-btn.secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.lead-action-btn.secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lead-action-btn.success-btn {
  background: var(--status-low);
  color: #000;
  font-weight: 700;
}

.lead-action-btn.success-btn:hover {
  background: #14d293;
}

.lead-action-btn.danger-btn {
  background: var(--status-urgent);
  color: #fff;
}

.lead-action-btn.danger-btn:hover {
  background: #f87171;
}

/* Filters */
.lead-pipeline-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lead-pipeline-filters .search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  flex: 1;
  max-width: 320px;
}

.lead-pipeline-filters .search-wrapper input {
  background: transparent;
  border: none;
  color: var(--text-main);
  outline: none;
  margin-left: 8px;
  font-size: 13.5px;
  width: 100%;
}

.lead-pipeline-filters .search-wrapper .search-icon {
  color: var(--text-muted);
  font-size: 20px;
}

.filter-dropdowns {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-dropdowns select {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.clear-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
}

.clear-filters-btn:hover {
  color: var(--primary);
}

/* Kanban Board Layout */
.kanban-board-wrapper {
  overflow-x: auto;
  padding-bottom: 12px;
}

.kanban-board-scroll {
  display: flex;
  gap: 12px;
  min-height: calc(100vh - 230px);
}

.kanban-column {
  min-width: 240px;
  max-width: 240px;
  background: rgba(18, 18, 20, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  padding: 10px;
  transition: var(--transition);
}

.kanban-column.drag-over {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--primary);
}

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

.kanban-column .column-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 70%;
}

.kanban-column .column-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kanban-column .column-header-title h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanban-column .column-count {
  font-size: 11px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.column-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.column-value {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(212,175,55,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.delete-stage-btn {
  background: transparent;
  border: none;
  color: rgba(239, 68, 68, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.delete-stage-btn:hover {
  color: rgba(239, 68, 68, 1);
}

.column-cards-container {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  overflow-y: auto;
  min-height: 120px;
}

.empty-column-placeholder {
  border: 1px dashed rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.15);
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

/* Card Styling */
.lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 10px 6px 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.lead-card.dragging {
  opacity: 0.4;
  border: 2px dashed var(--primary);
}

.lead-card.archived {
  opacity: 0.55;
  filter: grayscale(0.3);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.queue-item-card.archived {
  opacity: 0.55;
  filter: grayscale(0.3);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.temperature-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 100px;
  letter-spacing: 0.4px;
}

.temperature-badge.hot {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.temperature-badge.warm {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.temperature-badge.cold {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.priority-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
}

.priority-badge.low {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.priority-badge.normal {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.priority-badge.high {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.priority-badge.urgent {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.card-main-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-main-info h4.company-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-main-info p.contact-name {
  font-size: 11px;
  color: var(--text-muted);
}

.card-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.card-meta-row .icon-small {
  font-size: 16px;
  color: var(--text-muted);
}

.ig-username {
  color: var(--primary);
  font-weight: 500;
}

.card-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 4px;
}

.outreach-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
}

.outreach-badge.status-not-contacted { background: rgba(107, 114, 128, 0.15); color: #9CA3AF; }
.outreach-badge.status-outreach-sent { background: rgba(59, 130, 246, 0.15); color: #60A5FA; }
.outreach-badge.status-waiting-for-reply { background: rgba(245, 158, 11, 0.15); color: #FBBF24; }
.outreach-badge.status-replied { background: rgba(16, 185, 129, 0.15); color: #34D399; }
.outreach-badge.status-interested { background: rgba(139, 92, 246, 0.15); color: #A78BFA; }
.outreach-badge.status-discovery-call-booked { background: rgba(236, 72, 153, 0.15); color: #F472B6; }
.outreach-badge.status-proposal-sent { background: rgba(14, 165, 233, 0.15); color: #38BDF8; }
.outreach-badge.status-won { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.outreach-badge.status-lost { background: rgba(239, 68, 68, 0.2); color: #EF4444; }

.deal-value {
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
}

.card-dates-row {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

.card-dates-row .date-item {
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-dates-row .date-item span.material-symbols-outlined {
  font-size: 12px;
}

.overdue-text {
  color: #ef4444 !important;
  font-weight: 600;
}

/* Pulsing red border for overdue next-action */
.overdue-pulse {
  border-color: rgba(239, 68, 68, 0.3) !important;
  animation: cardOverduePulse 2s infinite ease-in-out;
}

@keyframes cardOverduePulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.3); }
  50% { box-shadow: 0 0 12px 0 rgba(239, 68, 68, 0.3); border-color: rgba(239, 68, 68, 0.6); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); border-color: rgba(239, 68, 68, 0.3); }
}

.card-quick-actions {
  display: none;
  gap: 5px;
  margin-top: 1px;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 4px;
}

.lead-card:hover .card-quick-actions {
  display: flex;
}

.quick-action-icon {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.quick-action-icon .material-symbols-outlined {
  font-size: 12px !important;
}

.quick-action-icon i.lucide-instagram,
.quick-action-icon svg {
  width: 12px !important;
  height: 12px !important;
}

.quick-action-icon:hover {
  background: var(--primary-dim);
  color: var(--primary);
}

/* Priority Queue Custom Classes */
.priority-queue-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.queue-header-row {
  margin-bottom: 20px;
}

.queue-header-row h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
}

.queue-header-row p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-item-card {
  display: flex;
  align-items: center;
  background: #0d0d0f;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  gap: 16px;
}

.queue-item-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: #121215;
  transform: translateX(4px);
}

.queue-item-card.overdue-border {
  border-left: 4px solid #ef4444;
}

.queue-index {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  width: 32px;
}

.queue-main-details {
  flex: 1;
}

.queue-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.queue-name-row .company-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.queue-name-row .contact-name {
  font-size: 13px;
  color: var(--text-muted);
}

.stage-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
}

.queue-meta-row {
  display: flex;
  gap: 16px;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12.5px;
}

.queue-meta-row .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.queue-meta-row .meta-item span {
  font-size: 16px;
}

.queue-badges {
  display: flex;
  gap: 8px;
  align-items: center;
}

.queue-date-action {
  width: 180px;
}

.follow-up-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
}

.follow-up-pill.overdue {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.follow-up-pill span.material-symbols-outlined {
  color: var(--text-muted);
}

.follow-up-pill.overdue span.material-symbols-outlined {
  color: #ef4444;
}

.follow-up-pill .date-col {
  display: flex;
  flex-direction: column;
}

.follow-up-pill .date-col .label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.follow-up-pill.overdue .date-col .label {
  color: #ef4444;
}

.follow-up-pill .date-col .value {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

.queue-deal-value {
  width: 100px;
  text-align: right;
}

.queue-deal-value .value-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.queue-deal-value .value-amount {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

/* Analytics Forecasting styling */
.pipeline-analytics-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kpi-forecast-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kpi-card.forecast-revenue-card {
  border-color: rgba(212, 175, 55, 0.3);
  background: linear-gradient(135deg, rgba(212,175,55,0.06) 0%, rgba(18,18,20,1) 100%);
}

.kpi-card.won-value-card {
  border-color: rgba(16, 185, 129, 0.2);
}

.kpi-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.kpi-header span {
  color: var(--primary);
  font-size: 20px;
}

.kpi-header h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
}

.kpi-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.analytics-row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.analytics-glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.card-title-bar span {
  color: var(--primary);
  font-size: 22px;
}

.card-title-bar h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.health-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.health-stat-box {
  background: #0d0d0f;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.health-stat-box .stat-number {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.health-stat-box.overdue .stat-number { color: #ef4444; }
.health-stat-box.needing .stat-number { color: #f59e0b; }
.health-stat-box.awaiting .stat-number { color: #3b82f6; }
.health-stat-box.hot .stat-number { color: #ec4899; }

.health-stat-box .stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.productivity-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prod-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  font-size: 13px;
}

.prod-item.highlight {
  background: rgba(212,175,55,0.04);
  border-left: 2px solid var(--primary);
}

.prod-item .prod-label {
  color: var(--text-muted);
}

.prod-item.highlight .prod-label {
  color: var(--text-main);
  font-weight: 600;
}

.prod-item .prod-val {
  font-weight: 700;
  color: #fff;
}

/* Funnel Chart */
.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.funnel-tier {
  display: flex;
  align-items: center;
  gap: 16px;
}

.funnel-tier-label {
  width: 180px;
  display: flex;
  flex-direction: column;
}

.funnel-tier-label .tier-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.funnel-tier-label .tier-count {
  font-size: 11px;
  color: var(--text-muted);
}

.funnel-bar-outer {
  flex: 1;
  background: rgba(255,255,255,0.03);
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.funnel-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, rgba(212,175,55,0.6) 0%, rgba(212,175,55,0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(212,175,55,0.2);
}

.funnel-percentage {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dark);
}

.funnel-tier-value {
  width: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

/* Analytics Table */
.table-responsive {
  overflow-x: auto;
}

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

.analytics-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.analytics-table td {
  padding: 14px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.analytics-table tr:last-child td {
  border-bottom: none;
}

.analytics-table td.bold-text {
  font-weight: 600;
}

.analytics-table td.font-gold {
  color: var(--primary);
}

.rate-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.rate-badge.high { background: rgba(16, 185, 129, 0.15); color: #10B981; }
.rate-badge.mid { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.rate-badge.low { background: rgba(239, 68, 68, 0.15); color: #EF4444; }

/* Lead Details Tabs inside modal */
.lead-modal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #0d0d0f;
  padding: 0 24px;
}

.lead-modal-tabs .tab-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 14px 20px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.lead-modal-tabs .tab-link:hover {
  color: #fff;
}

.lead-modal-tabs .tab-link.active {
  color: var(--primary);
}

.lead-modal-tabs .tab-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* Outreach tab inbox */
.outreach-tab-container {
  display: flex;
  flex-direction: column;
}

.outreach-profile-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0d0d0f;
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  gap: 16px;
}

.profile-details-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-details-left h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.profile-details-left .ig-link {
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.profile-details-left .ig-link:hover {
  text-decoration: underline;
}

.outreach-actions-right {
  display: flex;
  gap: 10px;
}

.dates-summary-box {
  display: flex;
  background: #0d0d0f;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.date-summary-item {
  flex: 1;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.date-summary-item:first-child {
  border-right: 1px solid var(--border);
}

.date-summary-item .label {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.date-summary-item .val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

/* Timeline/Activities list */
.timeline-tab-container {
  display: flex;
  flex-direction: column;
}

.add-note-inline {
  background: #0d0d0f;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-md);
}

.add-note-inline h4 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.add-note-inline input {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  outline: none;
}

.add-note-inline input:focus {
  border-color: var(--primary);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 24px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(255,255,255,0.06);
}

.empty-timeline-placeholder {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
  padding: 20px 0;
}

.timeline-log-item {
  display: flex;
  position: relative;
  margin-bottom: 20px;
}

.timeline-log-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -24px;
  top: 2px;
  background: var(--bg-main);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-marker .marker-icon {
  font-size: 14px;
  color: var(--primary);
}

.timeline-content {
  background: #0d0d0f;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-header-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.timeline-user {
  font-weight: 700;
  color: var(--primary);
}

.timeline-time {
  color: var(--text-muted);
}

.timeline-desc {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.4;
}

.change-details-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin-top: 4px;
  align-self: flex-start;
}

.change-details-badge .prev {
  color: #ef4444;
  font-weight: 600;
}

.change-details-badge .arrow {
  color: var(--text-muted);
}

.change-details-badge .curr {
  color: #10b981;
  font-weight: 600;
}

.lead-pipeline-loading, .lead-pipeline-error, .analytics-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
}

.lead-pipeline-error h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  margin-top: 16px;
}

.lead-pipeline-error p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 6px;
}

/* ── LEAD DETAILS MODAL REDESIGN ── */
.modal-box-v3.lead-details-modal {
  width: 1300px;
  max-width: 95vw;
  height: 90vh;
  max-height: 90vh;
  background: #0D0D0F;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.12), 0 30px 90px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 !important; /* Reset padding on modal container */
}

/* Fullscreen toggle overrides */
.modal-box-v3.lead-details-modal.fullscreen-mode {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
}

/* Redesigned Header */
.lead-details-modal .modal-header-v3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: #0D0D0F;
  flex-shrink: 0;
}

.lead-details-modal .header-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lead-details-modal .header-title-subtitle {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-details-modal .header-title-subtitle h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}

.lead-details-modal .header-title-subtitle .subtitle {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.lead-details-modal .header-right-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Control Buttons (Fullscreen, Close) */
.lead-details-modal .modal-control-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lead-details-modal .modal-control-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.lead-details-modal .modal-control-btn span {
  font-size: 18px;
}

/* Navigation Tabs */
.lead-details-modal .lead-modal-tabs {
  display: flex;
  gap: 28px;
  padding: 0 32px;
  background: #0D0D0F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.lead-details-modal .lead-modal-tabs .tab-link {
  background: transparent;
  border: none;
  color: #71717A;
  padding: 16px 4px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lead-details-modal .lead-modal-tabs .tab-link:hover {
  color: #fff;
}

.lead-details-modal .lead-modal-tabs .tab-link.active {
  color: #D4AF37;
}

.lead-details-modal .lead-modal-tabs .tab-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #D4AF37;
  border-radius: 2px;
}

/* Modal Body */
.lead-details-modal .lead-modal-body {
  padding: 0 !important; /* Body padding reset */
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lead-details-modal #lead-details-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lead-details-modal .tab-view-container {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

/* Form Layout & Grid */
.lead-details-modal .form-grid-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.lead-details-modal .form-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Labels and Groupings */
.lead-details-modal .form-group-premium {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-details-modal .form-group-premium label {
  font-size: 12.5px;
  font-weight: 600;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.lead-details-modal .form-group-premium label span {
  font-size: 16px;
  color: #71717a;
}

/* Inputs and Select Styling */
.lead-details-modal .lead-details-input,
.lead-details-modal .lead-details-select,
.lead-details-modal .lead-details-textarea {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 16px;
  width: 100%;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.lead-details-modal .lead-details-input:hover,
.lead-details-modal .lead-details-select:hover,
.lead-details-modal .lead-details-textarea:hover {
  border-color: rgba(212, 175, 55, 0.3);
}

.lead-details-modal .lead-details-input:focus,
.lead-details-modal .lead-details-select:focus,
.lead-details-modal .lead-details-textarea:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
  background: #141417;
}

.lead-details-modal .lead-details-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
  font-family: inherit;
}

/* Custom Select dropdown styles */
.lead-details-modal .lead-details-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px !important;
  cursor: pointer;
}

.lead-details-modal .select-wrapper-premium {
  position: relative;
  width: 100%;
}

.lead-details-modal .select-wrapper-premium .select-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.lead-details-modal .select-wrapper-premium .select-icon-left span.material-symbols-outlined {
  font-size: 16px;
  color: #71717a;
}

.lead-details-modal .select-wrapper-premium .lead-details-select {
  padding-left: 44px !important;
}

/* Premium Badges */
.lead-details-modal .temp-badge-premium {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.lead-details-modal .temp-badge-premium.hot {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.lead-details-modal .temp-badge-premium.warm {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.lead-details-modal .temp-badge-premium.cold {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Form Actions Footer */
.lead-details-modal .modal-footer-v3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #0D0D0F;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Premium Footer Action Buttons */
.lead-details-modal .btn-premium {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.lead-details-modal .btn-premium span {
  font-size: 18px;
}

.lead-details-modal .btn-premium.archive {
  background: #8b2226;
  color: #fff;
  border: none;
}

.lead-details-modal .btn-premium.archive:hover {
  background: #a22b2f;
}

.lead-details-modal .btn-premium.convert {
  background: #23704d;
  color: #fff;
  border: none;
}

.lead-details-modal .btn-premium.convert:hover {
  background: #2d825c;
}

.lead-details-modal .btn-premium.cancel {
  background: #1c1c1f;
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lead-details-modal .btn-premium.cancel:hover {
  background: #27272a;
  border-color: rgba(255, 255, 255, 0.15);
}

.lead-details-modal .btn-premium.save {
  background: #D4AF37;
  color: #000;
  font-weight: 800;
}

.lead-details-modal .btn-premium.save:hover {
  background: #e5c158;
  transform: translateY(-1px);
}

/* ── OUTREACH INBOX REDESIGN TWEAKS ── */
.outreach-profile-box {
  background: #121214 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.outreach-profile-box .lead-action-btn {
  padding: 12px 22px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

.outreach-profile-box .lead-action-btn span {
  font-size: 18px !important;
}

.lead-details-modal .date-summary-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
}

.lead-details-modal .date-summary-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lead-details-modal .date-summary-icon span {
  font-size: 20px;
  color: #D4AF37;
}

.lead-details-modal .date-summary-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-details-modal .date-summary-info .label {
  font-size: 12px;
  font-weight: 600;
  color: #a1a1aa;
}

.lead-details-modal .date-summary-info .val {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.lead-details-modal .btn-premium.outline {
  background: transparent;
  color: #D4AF37;
  border: 1px solid #D4AF37;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lead-details-modal .btn-premium.outline span {
  font-size: 18px;
}

.lead-details-modal .btn-premium.outline:hover {
  background: rgba(212, 175, 55, 0.08);
}

/* ── LEAD CONVERT MODAL STYLING ── */
.lead-convert-modal {
  width: 680px !important;
  max-width: 95vw !important;
  background: #0D0D0F !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.08), 0 20px 60px rgba(0, 0, 0, 0.85) !important;
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #fff;
  overflow-y: auto;
  max-height: 95vh;
}

.convert-header {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  padding-bottom: 4px;
}

.convert-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: rgba(212, 175, 55, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.convert-header-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.convert-badge-row {
  display: flex;
}

.convert-company-name {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.convert-email-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.convert-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.convert-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.convert-section-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.convert-notice-box {
  background: rgba(212, 175, 55, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.convert-notice-box .notice-icon {
  color: var(--primary);
  font-size: 20px;
  margin-top: 1px;
}

.convert-notice-box .notice-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.convert-notice-box .notice-text span {
  color: var(--primary);
  font-weight: 600;
}

/* Form Styling */
.convert-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.convert-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.convert-form-group.full-width {
  grid-column: span 2;
}

.convert-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.convert-label span.label-icon {
  font-size: 16px;
  color: var(--text-muted);
}

.convert-label span.req {
  color: var(--primary);
}

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

.convert-input {
  width: 100%;
  background: #141416;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
}

.convert-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.convert-input:disabled {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
}

/* Password Input Wrapper with internal elements */
.password-input-container {
  display: flex;
  align-items: center;
  background: #141416;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  transition: var(--transition);
  padding-right: 12px;
}

.password-input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.password-input-container input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.password-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.password-toggle-btn:hover {
  color: #fff;
}

.password-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 8px;
}

.password-generate-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  transition: var(--transition);
}

.password-generate-btn:hover {
  color: var(--primary-hover);
}

/* Toggle Panel */
.convert-toggle-panel {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.convert-toggle-panel:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Toggle Switch Styles */
.convert-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.convert-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.convert-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 24px;
}

.convert-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #A0A0A5;
  transition: .4s;
  border-radius: 50%;
}

.convert-switch input:checked + .convert-slider {
  background-color: var(--primary-dim);
  border: 1px solid var(--primary);
}

.convert-switch input:checked + .convert-slider:before {
  transform: translateX(20px);
  background-color: var(--primary);
}

.convert-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.convert-toggle-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.convert-toggle-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Project details expansion */
.convert-project-fields {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: fadeIn 0.3s ease;
}

.convert-project-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

/* Footer Actions */
.convert-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.convert-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.convert-btn.cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: #fff;
}

.convert-btn.cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.convert-btn.submit {
  background: #10B981;
  border: 1px solid #10B981;
  color: #fff;
}

.convert-btn.submit:hover {
  background: #059669;
  border-color: #059669;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── FULL SCREEN REVIEW MODE OVERLAY ── */
#fullscreen-review-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #050505;
  display: flex;
  flex-direction: column;
  color: #C8C8CD;
  font-family: var(--font-display, 'Outfit', sans-serif);
  animation: overlayFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

@keyframes overlayFadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.review-topbar {
  height: 72px;
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
}

.review-main {
  display: flex;
  flex: 1;
  min-height: 0;
  background: #000;
}

.review-player-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
  min-width: 0;
  padding: 24px 32px 32px 32px;
  box-sizing: border-box;
}

.review-player-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.review-video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}

.review-controls-section {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  margin-top: 20px;
  box-shadow: none;
  padding: 0;
  gap: 16px;
}

/* Timeline/Progress Bar */
.review-timeline-container {
  position: relative;
  width: 100%;
  height: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  user-select: none;
}

.review-timeline-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: height 0.15s ease;
}

.review-timeline-container:hover .review-timeline-track {
  height: 6px;
}

.review-timeline-progress {
  position: absolute;
  left: 0;
  height: 100%;
  background: #F5C84C;
  border-radius: 2px;
  box-shadow: none;
}

.review-timeline-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #F5C84C;
  border-radius: 50%;
  display: none;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.review-timeline-container:hover .review-timeline-handle {
  display: block;
}

.review-timeline-marker {
  position: absolute;
  top: calc(50% + 14px);
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #121214;
  border: 1.5px solid #F5C84C;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  pointer-events: auto;
}

.review-timeline-marker.purple-marker {
  border-color: #a78bfa;
}

.review-timeline-marker:hover {
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 50;
}

.review-marker-tooltip {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  width: 220px;
  color: #fff;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  transition: opacity 0.2s, transform 0.2s;
}

.review-timeline-marker:hover .review-marker-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Toolbar controls */
.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.review-toolbar-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.review-toolbar-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
}

.review-toolbar-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.review-timecode {
  font-family: monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: #F5C84C;
  background: transparent;
  border: none;
  padding: 0;
  letter-spacing: 0.5px;
}

.review-speed-dropdown {
  position: relative;
}

.review-speed-menu {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  z-index: 500;
  overflow: hidden;
  min-width: 80px;
}

.review-speed-menu button {
  width: 100%;
  background: transparent;
  border: none;
  color: #C8C8CD;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.review-speed-menu button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.review-speed-menu button.active {
  color: #F5C84C;
  background: rgba(245, 200, 76, 0.08);
}

.review-volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-volume-slider {
  width: 80px;
  height: 3px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.review-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F5C84C;
  cursor: pointer;
  transition: transform 0.1s;
}

.review-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Sidebar panel */
.review-sidebar-panel {
  width: 420px;
  background: #0B0B0C;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.review-sidebar-header {
  height: 72px;
  padding: 0 24px;
  background: #0B0B0C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.review-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  align-items: center;
}

.review-tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.review-tab-btn.active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.review-comments-list {
  flex: 1;
  overflow-y: auto;
  background: #0B0B0C;
  display: flex;
  flex-direction: column;
}

.review-input-section {
  background: #0B0B0C;
  padding: 20px 24px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.review-input-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.review-input-wrapper:focus-within {
  border-color: rgba(245, 200, 76, 0.3);
}

.review-input-textarea {
  background: transparent;
  border: none;
  resize: none;
  outline: none;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  font-family: inherit;
  width: 100%;
}

.review-input-textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.review-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.review-input-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-input-ts {
  font-family: monospace;
  font-size: 12px;
  font-weight: 800;
  color: #F5C84C;
  background: rgba(245, 200, 76, 0.08);
  border: 1px solid rgba(245, 200, 76, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

.review-input-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-input-icon {
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.review-input-icon:hover {
  color: rgba(255, 255, 255, 0.75);
}

.review-send-btn {
  background: #F5C84C;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 4px 12px rgba(245, 200, 76, 0.25);
}

.review-send-btn:hover {
  transform: scale(1.05);
}

.review-send-btn i {
  color: #000;
}

/* Comment cards */
.review-comment-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  padding: 16px 24px;
  display: flex;
  gap: 14px;
  transition: background 0.2s;
}

.review-comment-card:hover {
  background: rgba(255, 255, 255, 0.01);
}

.review-comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.review-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-comment-author {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.review-comment-role {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.review-comment-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
}

.review-comment-index {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
}

.review-comment-body {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.review-comment-ts-tag {
  display: inline-block;
  background: #F5C84C;
  color: #000;
  font-family: monospace;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 6px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  line-height: 1.2;
  transition: background 0.2s;
}

.review-comment-ts-tag:hover {
  background: #F3CA45;
}

.review-comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.review-action-link {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: none;
}

.review-action-link:hover {
  color: #F5C84C;
}

/* Replies section */
.review-replies-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 12px;
  margin-left: 14px;
}

.review-reply-card {
  background: rgba(255, 255, 255, 0.005);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Mobile responsive full screen review */
@media (max-width: 1024px) {
  #fullscreen-review-overlay {
    flex-direction: column;
  }
  
  .review-main {
    flex-direction: column;
    overflow-y: auto;
  }
  
  .review-player-section {
    flex: none;
    height: auto;
    aspect-ratio: 16/10;
    padding: 8px;
  }
  
  .review-sidebar-panel {
    width: 100%;
    flex: 1;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .review-controls-section {
    height: auto;
    padding: 12px;
    margin-top: 8px;
  }
}
