/* Upptick Client Super Portal CSS - Premium Modern Glassmorphism Styling System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Tokens */
  --bg-dark: #090d16;
  --bg-card: hsla(223, 47%, 6%, 0.55);
  --bg-sidebar: hsla(223, 47%, 4%, 0.85);
  
  --primary: #8b5cf6; /* Electric Violet */
  --primary-glow: rgba(139, 92, 246, 0.35);
  --secondary: #ec4899; /* Deep Pink */
  --accent-teal: #06b6d4; /* Neon Teal */
  --accent-teal-glow: rgba(6, 182, 212, 0.3);
  
  --success: #10b981; /* Emerald */
  --warning: #f59e0b; /* Amber */
  --danger: #ef4444; /* Crimson */
  --info: #3b82f6; /* Blue */
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Borders & Glass */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-active: rgba(139, 92, 246, 0.4);
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  
  --font-family: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%);
  color: var(--text-main);
  font-family: var(--font-family);
  height: 100vh;
  width: 100vw;
  overflow: hidden; /* Prevent body scrolling globally */
  line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==================== GLASS CARDS & UI COMPONENTS ==================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

/* Screen Shell */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.screen {
  display: none;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.screen.active {
  display: flex;
}

/* ==================== LOGIN SCREEN ==================== */
.login-screen {
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100vw;
}


.login-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

.login-card {
  padding: 40px 30px;
  text-align: center;
}

.login-logo {
  font-size: 2.5rem;
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
  margin-bottom: 10px;
}

/* Gmail-style Loading Screen Styles */
.loader-progress-track {
  width: 280px;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--glass-border);
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent-teal));
  border-radius: 10px;
  transition: width 0.1s linear;
}

.loading-status-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 14px;
}

.logo-pulse-icon {
  animation: pulse-glow 2s infinite;
}


.login-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
  text-align: left;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

.input-field {
  width: 100%;
  padding: 12px 16px 12px 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

select.input-field {
  background-color: #0d1527;
  color: var(--text-main);
}

select.input-field option {
  background-color: #090d16;
  color: var(--text-main);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}


/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.05);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #f87171);
  color: #fff;
}
.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-block {
  width: 100%;
}

/* ==================== MAIN LAYOUT ==================== */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-section {
  padding: 24px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  background: var(--primary-glow);
  color: var(--primary);
  padding: 8px;
  border-radius: var(--border-radius-sm);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--primary-glow);
}

.brand-info h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand-info span {
  font-size: 0.75rem;
  color: var(--accent-teal);
  font-weight: 700;
  text-transform: uppercase;
}

.nav-menu {
  flex: 1;
  padding: 20px 14px;
  list-style: none;
  overflow-y: auto;
}

.nav-item {
  margin-bottom: 6px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

.nav-link i {
  width: 18px;
  height: 18px;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(139, 92, 246, 0.08);
  border-left: 3px solid var(--primary);
}

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--glass-border);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ==================== WORKSPACE HEADER & ACTIVE TICKER ==================== */
.top-bar {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title h1 {
  font-size: 1.4rem;
  font-weight: 800;
}
.page-title p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Live Active Activity Ticker */
.activity-ticker-container {
  background: rgba(6, 182, 212, 0.05);
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
  padding: 8px 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--accent-teal);
  text-transform: uppercase;
  font-size: 0.75rem;
  border: 1px solid var(--accent-teal-glow);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.ticker-marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 20px;
}

.ticker-track {
  display: flex;
  align-items: center;
  position: absolute;
  white-space: nowrap;
  animation: ticker-anim 25s linear infinite;
  color: var(--text-secondary);
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 50px;
}

.ticker-pulse {
  width: 6px;
  height: 6px;
  background: var(--accent-teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-teal);
  animation: pulse-glow 1.5s infinite;
}

@keyframes ticker-anim {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* ==================== SERVICE CONTEXT BAR ==================== */
.service-filter-bar {
  display: flex;
  gap: 10px;
  padding: 16px 30px;
  overflow-x: auto;
  border-bottom: 1px solid var(--glass-border);
}

.service-tab {
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
}

.service-tab:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-main);
}

.service-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

/* ==================== WORKSPACE PANELS ==================== */
.workspace-panel {
  display: none !important;
  flex-direction: column;
  padding: 30px;
  flex: 1;
  overflow-y: auto;
}

.workspace-panel.active {
  display: flex !important;
}

/* ==================== ONBOARDING WIZARD ==================== */
.onboarding-screen {
  display: none;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.onboarding-screen.active {
  display: flex;
}
.wizard-card {
  width: 100%;
  max-width: 600px;
  padding: 40px;
}
.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}
.wizard-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--glass-border);
  z-index: 1;
  transform: translateY(-50%);
}
.progress-step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
  transition: var(--transition-smooth);
}
.progress-step.active {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
.progress-step.completed {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.wizard-step {
  display: none;
}
.wizard-step.active {
  display: block;
}
.wizard-step h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.wizard-step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.checkbox-item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.checkbox-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* ==================== LOOKER STUDIO ANALYTICS ==================== */
.analytics-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.date-selector-group {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 3px;
}

.date-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.date-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.metric-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
}

/* Charts Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  padding: 24px;
}

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

.chart-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Mock Canvas Charts rendering */
.mock-line-chart {
  height: 220px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 20px;
  border-bottom: 1px solid var(--glass-border);
  border-left: 1px solid var(--glass-border);
}

.chart-line-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.chart-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.02);
}

.chart-axis-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Mock Donut Chart list */
.donut-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.donut-label-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.donut-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Retainer Burn meter */
.burn-rate-meter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.burn-progress-track {
  flex: 1;
  height: 8px;
  background: var(--bg-dark);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.burn-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-teal), var(--primary));
  border-radius: 10px;
  transition: var(--transition-smooth);
}

/* ==================== RETAINER DELIVERABLES GAUGE ==================== */
.retainer-metrics-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .retainer-metrics-section {
    grid-template-columns: 1fr;
  }
}

.retainer-card {
  padding: 24px;
}

.retainer-gauge-wrapper {
  display: flex;
  align-items: center;
  gap: 30px;
}

.radial-gauge-container {
  width: 120px;
  height: 120px;
  position: relative;
}

.radial-gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.radial-ring-bg {
  fill: transparent;
  stroke: var(--bg-dark);
  stroke-width: 8px;
}

.radial-ring-fill {
  fill: transparent;
  stroke: var(--primary);
  stroke-width: 8px;
  stroke-linecap: round;
  transition: var(--transition-smooth);
  stroke-dasharray: 251.2;
}

.gauge-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-percent {
  font-size: 1.4rem;
  font-weight: 800;
}

.gauge-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ==================== WORK UPDATES TIMELINE ==================== */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-card {
  padding: 24px;
}

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

.author-block {
  display: flex;
  gap: 12px;
  align-items: center;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.author-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
}
.author-meta span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid;
}

.badge-ppc { border-color: rgba(245, 158, 11, 0.3); color: var(--warning); background: rgba(245, 158, 11, 0.05); }
.badge-seo { border-color: rgba(16, 185, 129, 0.3); color: var(--success); background: rgba(16, 185, 129, 0.05); }
.badge-social { border-color: rgba(6, 182, 212, 0.3); color: var(--accent-teal); background: rgba(6, 182, 212, 0.05); }
.badge-content { border-color: rgba(139, 92, 246, 0.3); color: var(--primary); background: rgba(139, 92, 246, 0.05); }

.timeline-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Embedded Media block */
.embedded-media-box {
  margin-bottom: 16px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.media-thumbnail-wrapper {
  position: relative;
  cursor: pointer;
}

.media-thumbnail-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.media-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.media-thumbnail-wrapper:hover .media-video-overlay {
  background: rgba(0, 0, 0, 0.25);
}

.media-play-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: scale(1);
  transition: var(--transition-smooth);
}
.media-thumbnail-wrapper:hover .media-play-icon {
  transform: scale(1.1);
  background: var(--secondary);
}

.media-document-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.doc-download-icon {
  color: var(--primary);
  width: 22px;
  height: 22px;
  cursor: pointer;
}

/* Comment Thread Styles */
.comment-thread {
  border-top: 1px solid var(--glass-border);
  padding-top: 14px;
}

.comment-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.comment-author-badge {
  font-weight: 700;
  color: var(--primary);
}
.comment-text {
  color: var(--text-secondary);
}
.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.comment-input-wrapper {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.comment-input-field {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.85rem;
}
.comment-input-field:focus {
  outline: none;
  border-color: var(--primary);
}

/* ==================== DELIVERABLES APPROVAL HUB (ANNOTATIONS) ==================== */
.deliverables-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.deliverable-card {
  overflow: hidden;
}

.del-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.del-content {
  padding: 18px;
}

.del-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.del-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* Annotation Canvas Modal */
.annotation-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 14, 0.9);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.annotation-modal.active {
  display: flex;
}

.annotation-wrapper {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .annotation-wrapper {
    grid-template-columns: 1fr;
  }
}

.canvas-container {
  position: relative;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.canvas-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
}

.pin-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--secondary);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
  cursor: pointer;
}

.pins-feed {
  padding: 20px;
  overflow-y: auto;
  height: 400px;
}

/* ==================== WHATSAPP STYLE MESSAGING PANEL ==================== */
.chat-workspace-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  height: 520px;
}

@media (max-width: 768px) {
  .chat-workspace-grid {
    grid-template-columns: 1fr;
  }
}

.roster-contacts-card {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: var(--transition-smooth);
}

.contact-tab-btn:hover {
  background: rgba(255, 255, 255, 0.02);
}

.contact-tab-btn.active {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--glass-border-active);
  color: var(--text-main);
}

.roster-status-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: auto;
}
.light-online { background: var(--success); box-shadow: 0 0 8px var(--success); }
.light-lunch { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.light-offline { background: var(--text-muted); }
.light-leave { background: var(--accent-teal); box-shadow: 0 0 8px var(--accent-teal); }

/* WhatsApp Messaging Shell */
.whatsapp-chat-box {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.chat-header-pane {
  background: rgba(255, 255, 255, 0.01);
  padding: 14px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-body-scroller {
  flex: 1;
  background-image: radial-gradient(var(--glass-border) 1px, transparent 0);
  background-size: 16px 16px;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.message-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  position: relative;
  font-size: 0.9rem;
}

.msg-incoming {
  background: rgba(255, 255, 255, 0.04);
  border-top-left-radius: 0;
  align-self: flex-start;
}

.msg-outgoing {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-top-right-radius: 0;
  align-self: flex-end;
}

.msg-ticks {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.msg-ticks.blue {
  color: var(--accent-teal);
}

.chat-composer {
  padding: 14px 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 12px;
}

/* ==================== SCREEN RECORDING STUDIO MODAL ==================== */
.recording-studio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 13, 22, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.recording-studio-modal.active {
  display: flex;
}

.studio-card {
  width: 100%;
  max-width: 500px;
  padding: 40px;
  text-align: center;
}

.studio-preview-box {
  width: 100%;
  height: 240px;
  background: #000;
  border-radius: var(--border-radius-sm);
  margin: 20px 0;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 10px;
  color: var(--text-secondary);
}

.studio-status-indicator.recording {
  color: var(--danger);
}

.studio-pulse-ring {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse-glow 1s infinite;
}

/* ==================== CLIENT TASK INTAKE & KANBAN ==================== */
.kanban-board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .kanban-board-grid {
    grid-template-columns: 1fr;
  }
}

.kanban-column {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 16px;
  min-height: 400px;
}

.column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 700;
}

.column-badge {
  background: var(--bg-dark);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

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

.kanban-card {
  padding: 16px;
  cursor: grab;
}

.kanban-card h5 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.kanban-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.priority-tag {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.65rem;
}
.priority-Urgent { color: var(--danger); }
.priority-High { color: var(--warning); }
.priority-Medium { color: var(--primary); }
.priority-Low { color: var(--text-muted); }

/* ==================== ESCALATION ACTIVE BANNER ==================== */
.escalation-active-banner {
  background: linear-gradient(90deg, var(--danger), #f87171);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.escalation-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

/* ==================== DOCUMENT VAULT LISTING ==================== */
.vault-files-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

.vault-files-table th, .vault-files-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.85rem;
}

.vault-files-table th {
  color: var(--text-secondary);
  font-weight: 700;
}

.vault-file-row:hover {
  background: rgba(255, 255, 255, 0.01);
}
