/* ==========================================================================
   The Tech Factory - Admin Console Stylesheet
   Enterprise Dark Theme, Modular Architecture, Responsive Dashboard
   ========================================================================== */

:root {
  --admin-bg: #07080b;
  --admin-sidebar-bg: #0c0d12;
  --admin-card-bg: #11131a;
  --admin-card-hover: #161822;
  --admin-input-bg: #090a0f;
  
  --admin-border-subtle: rgba(255, 255, 255, 0.08);
  --admin-border-strong: rgba(255, 255, 255, 0.16);
  --admin-border-focus: #3b82f6;

  --admin-text-primary: #f8fafc;
  --admin-text-secondary: #94a3b8;
  --admin-text-muted: #64748b;

  --admin-primary: #2563eb;
  --admin-primary-hover: #1d4ed8;
  --admin-primary-glow: rgba(37, 99, 235, 0.25);

  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-danger: #ef4444;
  --status-info: #06b6d4;
  --status-purple: #8b5cf6;

  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.7);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--admin-bg);
  color: var(--admin-text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--admin-text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   BUTTON DESIGN SYSTEM - TTF Enterprise UI
   High-contrast, legible, accessible, modern SaaS buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(40%);
}

.btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

/* Sizing Modifiers */
.btn-xs {
  padding: 4px 10px;
  font-size: 0.78rem;
  border-radius: 6px;
  gap: 5px;
  min-height: 28px;
  font-weight: 600;
}

.btn-sm {
  padding: 7px 15px;
  font-size: 0.82rem;
  border-radius: 7px;
  gap: 6px;
  min-height: 34px;
  font-weight: 600;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 0.98rem;
  border-radius: 10px;
  gap: 10px;
  min-height: 48px;
  font-weight: 700;
}

/* Base Variants */
.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

.btn-outline {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(51, 65, 85, 0.75);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.btn-outline:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.btn-secondary:hover {
  background: #334155;
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.5);
}

.btn-warning {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.35);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
}

.btn-info {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.35);
}

.btn-info:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.45);
}

/* Semantic Colored Outlines (High Contrast & Soft Glow) */
.btn-outline-primary {
  background: rgba(2, 132, 199, 0.14) !important;
  color: #7dd3fc !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
}

.btn-outline-primary:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 3px 14px rgba(2, 132, 199, 0.45);
}

.btn-outline-danger {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
}

.btn-outline-danger:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 3px 14px rgba(239, 68, 68, 0.45);
}

.btn-outline-success {
  background: rgba(16, 185, 129, 0.14) !important;
  color: #6ee7b7 !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
}

.btn-outline-success:hover {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 3px 14px rgba(16, 185, 129, 0.45);
}

.btn-outline-warning {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fcd34d !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}

.btn-outline-warning:hover {
  background: #f59e0b !important;
  color: #0f172a !important;
  border-color: #f59e0b !important;
  box-shadow: 0 3px 14px rgba(245, 158, 11, 0.45);
}

.btn-outline-purple {
  background: rgba(168, 85, 247, 0.14) !important;
  color: #d8b4fe !important;
  border-color: rgba(168, 85, 247, 0.45) !important;
}

.btn-outline-purple:hover {
  background: #9333ea !important;
  color: #ffffff !important;
  border-color: #9333ea !important;
  box-shadow: 0 3px 14px rgba(147, 51, 234, 0.45);
}

/* WhatsApp & Instagram Brand Buttons */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.35) !important;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae06e, #149c8c) !important;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-instagram {
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.35) !important;
}

.btn-instagram:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.5) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* Link-style Buttons */
.btn-xs-link {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-xs-link:hover {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}

/* Table Row Action Buttons */
.btn-view-inv,
.btn-view-pre,
.btn-view-exp {
  background: rgba(56, 189, 248, 0.14) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  font-weight: 600;
}

.btn-view-inv:hover,
.btn-view-pre:hover,
.btn-view-exp:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.45);
  transform: translateY(-1px);
}

.btn-email-inv,
.btn-email-pre {
  background: rgba(99, 102, 241, 0.14) !important;
  color: #a5b4fc !important;
  border: 1px solid rgba(99, 102, 241, 0.45) !important;
  font-weight: 600;
}

.btn-email-inv:hover,
.btn-email-pre:hover {
  background: #6366f1 !important;
  color: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-conv-inv {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.btn-conv-inv:hover {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-claim-inv {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  font-weight: 600;
}

.btn-claim-inv:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 3px 12px rgba(220, 38, 38, 0.45);
  transform: translateY(-1px);
}

.btn-inspect-verifactu {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #6ee7b7 !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  font-weight: 600;
}

.btn-inspect-verifactu:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-conv-task {
  background: rgba(139, 92, 246, 0.14) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(139, 92, 246, 0.45) !important;
  font-weight: 600;
}

.btn-conv-task:hover {
  background: #7c3aed !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
  box-shadow: 0 3px 12px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.btn-copy-portal {
  background: rgba(168, 85, 247, 0.14) !important;
  color: #d8b4fe !important;
  border: 1px solid rgba(168, 85, 247, 0.45) !important;
  font-weight: 600;
}

.btn-copy-portal:hover {
  background: #9333ea !important;
  color: #ffffff !important;
  border-color: #9333ea !important;
  box-shadow: 0 3px 12px rgba(147, 51, 234, 0.45);
  transform: translateY(-1px);
}

.btn-match-tx {
  background: rgba(56, 189, 248, 0.14) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  font-weight: 600;
}

.btn-match-tx:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   Authentication & Login Screen
   ========================================================================== */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(37, 99, 235, 0.15) 0%, rgba(7, 8, 11, 1) 70%);
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-strong);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(37, 99, 235, 0.15);
  position: relative;
  z-index: 2;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo img {
  height: 48px;
  margin: 0 auto 12px;
}

.auth-subtitle {
  color: var(--admin-text-secondary);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 32px;
}

.auth-form-group {
  margin-bottom: 20px;
}

.auth-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--admin-text-secondary);
}

.auth-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--admin-input-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 26px;
  font-size: 0.88rem;
  color: var(--admin-text-secondary);
  cursor: pointer;
}

.auth-remember input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--admin-primary);
  cursor: pointer;
}

.btn-auth {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px var(--admin-primary-glow);
}

.btn-auth:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
}

/* OTP Modal / Verification Screen */
.otp-screen {
  text-align: center;
}

.otp-icon-wrap {
  width: 64px;
  height: 64px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid var(--admin-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #60a5fa;
  margin: 0 auto 20px;
}

.otp-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.otp-description {
  color: var(--admin-text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.otp-simulated-notification {
  background: #090b10;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: left;
  margin-bottom: 24px;
  position: relative;
}

.otp-simulated-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 6px;
}

.otp-simulated-body {
  font-size: 0.88rem;
  color: var(--admin-text-secondary);
  line-height: 1.4;
}

.otp-simulated-body strong {
  color: #fff;
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.otp-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.otp-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-heading);
  background: var(--admin-input-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  color: #fff;
  transition: all 0.2s ease;
}

.otp-digit:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.otp-timer {
  font-size: 0.88rem;
  color: var(--admin-text-muted);
  margin-bottom: 24px;
}

.otp-timer span {
  color: #f59e0b;
  font-weight: 700;
}

/* ==========================================================================
   Admin Console Layout
   ========================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Sidebar */
.admin-sidebar {
  width: 270px;
  background: var(--admin-sidebar-bg);
  border-right: 1px solid var(--admin-border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-sidebar.collapsed {
  width: 80px;
}

.sidebar-header {
  height: 80px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-border-subtle);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.sidebar-logo img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.sidebar-logo-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  text-transform: uppercase;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: var(--admin-text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}

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

/* Navigation Links */
.sidebar-nav {
  flex-grow: 1;
  padding: 20px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--admin-text-muted);
  padding: 12px 14px 6px;
}

.admin-sidebar.collapsed .nav-section-title {
  display: none;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--admin-text-secondary);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.sidebar-item.active {
  background: rgba(37, 99, 235, 0.14);
  color: #60a5fa;
  font-weight: 600;
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #3b82f6;
  border-radius: 0 4px 4px 0;
}

.sidebar-item-icon {
  width: 22px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-sidebar.collapsed .sidebar-item-text,
.admin-sidebar.collapsed .sidebar-item-badge {
  display: none;
}

.sidebar-item-badge {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--admin-text-secondary);
}

.sidebar-item-badge.badge-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.sidebar-item-badge.badge-blue {
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--admin-border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.session-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  color: var(--admin-text-muted);
}

.session-status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.admin-sidebar.collapsed .session-info span {
  display: none;
}

/* ==========================================================================
   Admin Main Content
   ========================================================================== */
.admin-main {
  flex: 1 1 0%;
  margin-left: 270px;
  width: calc(100% - 270px);
  max-width: calc(100% - 270px);
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow-x: hidden;
  transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-main.expanded {
  margin-left: 80px;
  width: calc(100% - 80px);
  max-width: calc(100% - 80px);
}

/* Top Navigation Bar */
.admin-topbar {
  height: 76px;
  background: var(--admin-sidebar-bg);
  border-bottom: 1px solid var(--admin-border-subtle);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.topbar-title-area {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
}

.topbar-page-title {
  font-size: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50vw;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Topbar User Menu & Pop-up */
.topbar-user-menu-wrapper {
  position: relative;
  display: inline-block;
}

.admin-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--admin-text-primary);
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.admin-user-pill:hover,
.admin-user-pill.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.user-pill-chevron {
  font-size: 0.7rem;
  color: var(--admin-text-muted);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  margin-left: 2px;
}

.admin-user-pill.active .user-pill-chevron {
  transform: rotate(180deg);
  color: #60a5fa;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 290px;
  max-width: min(290px, calc(100vw - 32px));
  background: rgba(15, 17, 23, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.2s ease;
  pointer-events: none;
}

.user-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 10px;
}

.user-dropdown-header .dropdown-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dropdown-user-details {
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.dropdown-user-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.dropdown-user-email {
  font-size: 0.75rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.dropdown-role-row {
  margin-top: 4px;
}

.user-dropdown-session {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.74rem;
  color: #94a3b8;
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

.user-dropdown-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--admin-text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.user-dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.user-dropdown-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  overflow: hidden;
}

.dropdown-item-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.dropdown-item-desc {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 2px;
}

.user-dropdown-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: inherit;
  margin-top: 4px;
}

.user-dropdown-logout-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.admin-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
}

/* Content Container */
.admin-content-area {
  padding: 28px 32px;
  flex-grow: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.admin-section {
  display: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.admin-section.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

/* ==========================================================================
   Admin Components & Grids
   ========================================================================== */

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
  width: 100%;
  box-sizing: border-box;
}

.kpi-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
  box-sizing: border-box;
}

.kpi-card:hover {
  background: var(--admin-card-hover);
  border-color: var(--admin-border-strong);
  transform: translateY(-2px);
}

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

.kpi-title {
  font-size: 0.85rem;
  color: var(--admin-text-secondary);
  font-weight: 600;
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.kpi-delta.positive { color: #10b981; }
.kpi-delta.neutral { color: #60a5fa; }
.kpi-delta.negative { color: #ef4444; }

/* Surface Card Container */
.admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

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

.card-title {
  font-size: 1.25rem;
}

.card-subtitle {
  color: var(--admin-text-secondary);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* Useful Links Grid (Dashboard feature) */
.useful-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.useful-link-card {
  background: var(--admin-input-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #fff;
  transition: all 0.2s ease;
  position: relative;
}

.useful-link-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.useful-link-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #60a5fa;
  flex-shrink: 0;
}

.useful-link-content {
  overflow: hidden;
  flex-grow: 1;
}

.useful-link-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.useful-link-url {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.useful-link-actions {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  gap: 6px;
}

.useful-link-card:hover .useful-link-actions {
  display: flex;
}

.btn-icon-action {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  border-radius: 7px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.btn-icon-action:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.55);
  color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.btn-icon-action:active {
  transform: translateY(0);
}

.btn-icon-action.btn-del-client:hover,
.btn-icon-action.btn-del-exp:hover,
.btn-icon-action.btn-del-grid-task:hover,
.btn-icon-action.btn-del-link:hover,
.btn-icon-action.btn-del-bucket:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.55);
  color: #f87171;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}

/* Tables */
.admin-table-wrap,
.admin-table-container {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  display: block;
}

/* Custom Table Horizontal Scrollbar */
.admin-table-container::-webkit-scrollbar,
.admin-table-wrap::-webkit-scrollbar {
  height: 8px;
}
.admin-table-container::-webkit-scrollbar-track,
.admin-table-wrap::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 4px;
}
.admin-table-container::-webkit-scrollbar-thumb,
.admin-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.4);
  border-radius: 4px;
}
.admin-table-container::-webkit-scrollbar-thumb:hover,
.admin-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.7);
}

.admin-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--admin-text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--admin-border-subtle);
  white-space: nowrap;
}

.admin-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--admin-border-subtle);
  color: var(--admin-text-secondary);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

/* Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-status.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-status.info {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Download Buttons (PPTX + PDF + XML) */
.btn-doc-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  line-height: 1.3;
}

.btn-doc-download.pptx {
  background: rgba(249, 115, 22, 0.16);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.45);
}

.btn-doc-download.pptx:hover {
  background: #f97316;
  color: #ffffff;
  border-color: #f97316;
  box-shadow: 0 3px 12px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}

.btn-doc-download.pdf {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.45);
}

.btn-doc-download.pdf:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 3px 12px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.btn-doc-download.xml {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.45);
}

.btn-doc-download.xml:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 3px 12px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* Controls & Filters Bar */
.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-box-wrap {
  position: relative;
  min-width: 280px;
}

.search-box-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--admin-text-muted);
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--admin-input-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.88rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--admin-primary);
}

/* Modals */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal-overlay.active {
  display: flex !important;
}

.admin-modal {
  width: 100%;
  max-width: 680px;
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--admin-border-subtle);
  padding-bottom: 16px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: rotate(90deg) scale(1.05);
}

/* Charts Containers */
.chart-container-box {
  width: 100%;
  height: 320px;
  position: relative;
}

/* Responsive */
@media (max-width: 1200px) {
  .admin-topbar {
    padding: 0 20px;
  }
  .admin-content-area {
    padding: 20px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .admin-sidebar {
    width: 80px;
  }
  .admin-sidebar .sidebar-logo-text,
  .admin-sidebar .sidebar-item-text,
  .admin-sidebar .sidebar-item-badge,
  .admin-sidebar .nav-section-title,
  .admin-sidebar .session-info span {
    display: none !important;
  }
  .admin-main {
    margin-left: 80px !important;
    width: calc(100% - 80px) !important;
    max-width: calc(100% - 80px) !important;
  }
  .topbar-page-title {
    max-width: 35vw;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 270px;
  }
  .admin-sidebar.mobile-open {
    transform: translateX(0);
  }
  .admin-sidebar.mobile-open .sidebar-logo-text,
  .admin-sidebar.mobile-open .sidebar-item-text,
  .admin-sidebar.mobile-open .sidebar-item-badge,
  .admin-sidebar.mobile-open .nav-section-title,
  .admin-sidebar.mobile-open .session-info span {
    display: block !important;
  }
  .admin-main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .admin-topbar {
    padding: 0 16px;
    height: 64px;
  }
  .topbar-page-title {
    font-size: 0.95rem;
    max-width: 180px;
  }
  .admin-content-area {
    padding: 16px;
  }
}

/* ==========================================================================
   MICROSOFT PLANNER REPLICA (TAREAS) STYLING
   ========================================================================== */
.planner-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: calc(100vh - 160px);
}

.planner-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
}

.planner-tabs {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  padding: 5px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.planner-tab-btn {
  background: none;
  border: none;
  color: #94a3b8;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.planner-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  font-weight: 700;
}

.planner-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.planner-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--admin-text-secondary);
}

.planner-select {
  background: var(--admin-input-bg);
  border: 1px solid var(--admin-border-subtle);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
}

.planner-select:focus {
  outline: none;
  border-color: var(--admin-primary);
}

/* Planner Board (Kanban) */
.planner-board-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 24px;
  align-items: flex-start;
  min-height: 600px;
}

.planner-bucket {
  width: 320px;
  min-width: 320px;
  background: rgba(17, 19, 26, 0.95);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 240px);
  box-shadow: var(--shadow-sm);
}

.planner-bucket-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--admin-border-subtle);
}

.planner-bucket-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.planner-bucket-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.planner-bucket-count {
  background: rgba(255, 255, 255, 0.1);
  color: var(--admin-text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.planner-quick-add {
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.planner-quick-add-form {
  display: flex;
  gap: 6px;
}

.planner-quick-add-input {
  flex: 1;
  background: var(--admin-input-bg);
  border: 1px solid var(--admin-border-subtle);
  color: #fff;
  padding: 8px 10px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.planner-quick-add-input:focus {
  outline: none;
  border-color: var(--admin-primary);
}

.planner-cards-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
}

/* Planner Task Card */
.planner-card {
  background: #141722;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.planner-card:hover {
  background: #1a1e2c;
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.5);
}

.planner-card[draggable="true"] {
  cursor: grab;
}

.planner-card.dragging {
  opacity: 0.45;
  transform: scale(0.97);
  border: 1px dashed #38bdf8 !important;
  cursor: grabbing;
}

.planner-cards-list.drag-over {
  background: rgba(56, 189, 248, 0.08) !important;
  outline: 2px dashed rgba(56, 189, 248, 0.6) !important;
  outline-offset: -2px;
  border-radius: 8px;
}

.planner-card-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.planner-card-label-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.planner-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.planner-card-checkbox {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--status-success);
}

.planner-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.35;
  flex: 1;
}

.planner-card-title.completed {
  text-decoration: line-through;
  color: var(--admin-text-muted);
}

.planner-card-checklist-preview {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planner-card-checklist-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--admin-text-secondary);
}

.planner-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
}

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

.planner-card-due {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--admin-text-muted);
  font-weight: 500;
}

.planner-card-due.overdue {
  color: #f87171;
  font-weight: 700;
}

.planner-card-checklist-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--admin-text-secondary);
}

.planner-priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
}

.planner-avatars-cluster {
  display: flex;
  align-items: center;
}

.planner-avatar-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid #141722;
  margin-left: -6px;
}

.planner-avatar-circle:first-child {
  margin-left: 0;
}

/* Planner Grid View */
.planner-grid-container {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Planner Charts View */
.planner-charts-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.planner-chart-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.planner-chart-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.planner-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.planner-progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Planner Schedule (Calendar View) */
.planner-schedule-wrapper {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.planner-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.planner-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--admin-border-subtle);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.planner-cal-cell-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--admin-text-secondary);
}

.planner-cal-day-cell {
  background: #11131a;
  min-height: 100px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.planner-cal-day-num {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.planner-cal-day-cell.today .planner-cal-day-num {
  color: #38bdf8;
  font-weight: 800;
}

.planner-cal-task-pill {
  background: rgba(37, 99, 235, 0.25);
  border-left: 3px solid #3b82f6;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.planner-cal-task-pill:hover {
  background: rgba(37, 99, 235, 0.45);
}

/* Planner Task Detail Modal */
.planner-modal-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.planner-checklist-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.planner-chk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.planner-chk-row input[type="text"] {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.88rem;
}

.planner-chk-row input[type="text"]:focus {
  outline: none;
}

/* ==========================================================================
   CLIENT DOSSIER & PROFILE DRAWER
   ========================================================================== */
.client-dossier-modal {
  max-width: 900px;
}

.dossier-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--admin-border-subtle);
  margin-bottom: 20px;
}

.dossier-tab-btn {
  background: none;
  border: none;
  padding: 10px 16px;
  color: var(--admin-text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dossier-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

/* ==========================================================================
   MAILBOX & COMMUNICATIONS STYLING
   ========================================================================== */
.mailbox-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  min-height: 600px;
}

.mailbox-folders-panel {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mailbox-folder-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--admin-text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

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

.mailbox-folder-btn.active {
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  font-weight: 700;
}

.mailbox-unread-pill {
  background: var(--admin-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.sync-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--admin-text-muted);
}

/* ==========================================================================
   STATUS INLINE SWITCHER & BADGES
   ========================================================================== */
.status-select-inline {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.status-select-inline:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: #1e293b;
}

.status-select-inline:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   SEO & GEO AUTOMATION EXECUTION REPORT MODALS
   ========================================================================== */
.action-report-modal {
  max-width: 780px;
}

.report-header-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.report-log-box {
  background: #08090d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  font-family: monospace;
  font-size: 0.82rem;
  color: #cbd5e1;
  max-height: 280px;
  overflow-y: auto;
  line-height: 1.6;
}

.report-log-step {
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
}

.report-log-step.success {
  color: #34d399;
}

.report-log-step.info {
  color: #60a5fa;
}

.report-log-step.highlight {
  color: #fbbf24;
}

.provenance-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--admin-text-secondary);
}

/* ==========================================================================
   13. CMS VISUAL STUDIO & SPLIT-VIEW LIVE PREVIEW
   ========================================================================== */
.cms-studio-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cms-studio-topbar {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cms-studio-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cms-page-select-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--admin-border-subtle);
}

.cms-page-select-wrapper label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.cms-page-select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  outline: none;
}

.cms-page-select option {
  background: #0f172a;
  color: #fff;
}

.cms-category-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--admin-border-subtle);
}

.cms-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  pointer-events: auto;
  white-space: nowrap;
}

.cms-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.cms-tab-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-weight: 700;
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

.cms-tab-btn:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.cms-studio-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cms-device-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}

.cms-device-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  pointer-events: auto;
}

.cms-device-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}

.cms-device-btn.active {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

/* Split Layout */
.cms-studio-split {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1280px) {
  .cms-studio-split {
    grid-template-columns: 420px 1fr;
  }
}

@media (max-width: 1024px) {
  .cms-studio-split {
    grid-template-columns: 1fr;
  }
}

/* Editor Left Pane */
.cms-editor-pane {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 12px;
  padding: 24px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.cms-editor-tab-content {
  display: none;
}

.cms-editor-tab-content.active {
  display: block;
}

.cms-form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--admin-border-subtle);
}

.cms-form-section-title:first-child {
  margin-top: 0;
}

/* Image Card & Live Preview Thumbnails */
.cms-image-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.cms-image-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
}

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

.cms-image-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.cms-image-tag {
  font-size: 0.72rem;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.cms-image-card-body {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
}

.cms-image-thumb-box {
  width: 110px;
  height: 80px;
  border-radius: 8px;
  background: #090d16;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.cms-image-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.cms-image-thumb-box:hover img {
  transform: scale(1.08);
}

.cms-image-thumb-box.transparent-bg {
  background: repeating-conic-gradient(#1e293b 0% 25%, #0f172a 0% 50%) 50% / 14px 14px;
}

.cms-image-thumb-box.transparent-bg img {
  object-fit: contain;
  padding: 6px;
}

.cms-image-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cms-image-controls-buttons {
  display: flex;
  gap: 8px;
}

.cms-btn-upload-file {
  position: relative;
  overflow: hidden;
}

.cms-btn-upload-file input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Browser Tab Mockup for Favicon */
.cms-browser-tab-mockup {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px 8px 0 0;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  margin-bottom: 12px;
}

.cms-favicon-preview-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 3px;
}

.cms-tab-mockup-title {
  font-size: 0.8rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

/* Right Simulated Browser Viewport */
.cms-preview-pane {
  position: sticky;
  top: 90px;
}

.cms-browser-window {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 160px);
}

.cms-browser-header {
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cms-browser-dots {
  display: flex;
  gap: 6px;
}

.cms-browser-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.cms-browser-dot.red { background: #ef4444; }
.cms-browser-dot.yellow { background: #f59e0b; }
.cms-browser-dot.green { background: #10b981; }

.cms-browser-url-bar {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.cms-browser-url-bar i {
  color: #10b981;
}

.cms-browser-url-text {
  color: #e2e8f0;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cms-browser-actions {
  display: flex;
  gap: 8px;
}

.cms-browser-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.cms-browser-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cms-browser-body-wrap {
  flex: 1;
  background: #05070a;
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 16px;
  transition: all 0.3s ease;
}

.cms-preview-frame-container {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: width 0.3s ease, max-width 0.3s ease;
}

.cms-preview-frame-container.viewport-desktop {
  width: 100%;
  max-width: 100%;
}

.cms-preview-frame-container.viewport-tablet {
  width: 768px;
  max-width: 768px;
  border: 8px solid #1e293b;
  border-radius: 20px;
}

.cms-preview-frame-container.viewport-mobile {
  width: 375px;
  max-width: 375px;
  border: 10px solid #1e293b;
  border-radius: 28px;
}

.cms-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Footer Social Networks Manager */
.cms-social-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.cms-social-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 36px 120px 1fr auto;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease;
}

.cms-social-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.cms-social-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.cms-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

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

.cms-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.cms-toggle-switch input:checked + .cms-toggle-slider {
  background-color: var(--admin-primary);
}

.cms-toggle-switch input:checked + .cms-toggle-slider:before {
  transform: translateX(20px);
}

/* Footer & Nav Links Manager */
.cms-links-manager-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.cms-link-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
}

/* Media Gallery Picker Modal */
.cms-media-gallery-modal {
  max-width: 860px;
}

.cms-media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
  padding: 10px 4px;
}

.cms-media-item-card {
  background: #090d16;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cms-media-item-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.cms-media-item-card.selected {
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.cms-media-item-thumb {
  height: 90px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cms-media-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-media-item-thumb.transparent-bg img {
  object-fit: contain;
  padding: 6px;
}

.cms-media-item-info {
  padding: 6px 8px;
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   14. High-Security 2FA & Multi-User RBAC Styles
   ========================================================================== */

/* Secure OTP Delivery Card (No raw code on web UI) */
.otp-secure-delivery-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.otp-secure-header {
  background: rgba(30, 41, 59, 0.6);
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.otp-shield-badge {
  font-size: 0.76rem;
  font-weight: 600;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.otp-validity-tag {
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.otp-secure-body {
  padding: 14px 16px;
}

.otp-delivery-destination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.otp-dest-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.otp-security-alert-box {
  background: rgba(37, 99, 235, 0.1);
  border: 1px dashed rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #bae6fd;
  line-height: 1.4;
}

/* User & Role Badges */
.badge-role-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-role-admin {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.badge-role-editor {
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.35);
}

.badge-role-viewer {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.35);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
}

.user-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.72rem;
  margin: 2px;
  font-weight: 500;
}

.user-section-pill i {
  font-size: 0.68rem;
  color: #60a5fa;
}

.user-section-pill-admin {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: #ddd6fe;
}

.user-section-pill-admin i {
  color: #c4b5fd;
}

/* User Form Modal Styles */
.access-level-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.access-level-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.access-level-card input[type="radio"] {
  margin-top: 3px;
  accent-color: #3b82f6;
}

.access-level-content {
  flex: 1;
}

.access-level-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  margin-bottom: 4px;
}

.access-level-desc {
  margin: 0;
  font-size: 0.76rem;
  color: var(--admin-text-secondary);
  line-height: 1.4;
}

/* Permissions Checklist Grid */
.permissions-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 8px;
  padding: 12px;
  max-height: 220px;
  overflow-y: auto;
}

.permission-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.permission-check-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.permission-check-item input[type="checkbox"] {
  accent-color: #3b82f6;
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.permission-check-item i {
  color: #60a5fa;
  width: 14px;
  text-align: center;
  font-size: 0.82rem;
}

.btn-xs-link {
  background: none;
  border: none;
  color: #60a5fa;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.btn-xs-link:hover {
  color: #93c5fd;
}

/* View-Only Mode Styles */
body.view-only-mode .btn-hide-view-only,
body.view-only-mode button[data-require-edit="true"],
body.view-only-mode .action-btn.delete-btn,
body.view-only-mode .action-btn.edit-btn {
  display: none !important;
}

body.view-only-mode input:not([type="search"]):not(#user-search-input):not(#planner-search-input):not(#mailbox-search-input),
body.view-only-mode textarea,
body.view-only-mode select:not(#finance-period-select):not(#user-role-filter):not(#user-access-filter):not(#planner-group-select):not(#mailbox-folder-filter) {
  pointer-events: none;
  opacity: 0.65;
  background-color: rgba(15, 23, 42, 0.3) !important;
}

body.view-only-mode form button[type="submit"] {
  display: none !important;
}

/* ==========================================================================
   Section Users & Admin Console Responsive Shield
   ========================================================================== */
#section-users {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden;
}

#section-users .section-header {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#section-users .admin-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

#section-users .admin-table-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  #section-users .section-header {
    flex-direction: column;
    align-items: stretch !important;
  }
  #section-users .section-header > div:last-child {
    width: 100%;
    justify-content: stretch;
  }
  #section-users .section-header > div:last-child button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ==========================================================================
   INSTAGRAM SUPER APP STYLES (Later, ManyChat, Metricool, Sprout Social)
   ========================================================================== */
.ig-gradient-text {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.ig-gradient-badge {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.ig-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--admin-border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ig-nav-tab {
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--admin-text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ig-nav-tab:hover {
  color: var(--admin-text-primary);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.ig-nav-tab.active {
  color: #f43f5e;
  border-bottom-color: #f43f5e;
  background: rgba(244, 63, 94, 0.06);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.ig-tab-pane {
  display: none;
}

.ig-tab-pane.active {
  display: block;
}

/* 3x3 Drag-and-Drop Feed Planner */
.ig-feed-container {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .ig-feed-container {
    grid-template-columns: 1fr;
  }
}

.ig-phone-frame {
  background: #090a0f;
  border: 1px solid var(--admin-border-strong);
  border-radius: 28px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  position: sticky;
  top: 80px;
}

.ig-phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-border-subtle);
  margin-bottom: 14px;
}

.ig-phone-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.ig-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 12px;
  padding: 4px;
}

.ig-post-slot {
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #161822;
  cursor: grab;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  border: 1px solid transparent;
}

.ig-post-slot:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  border-color: rgba(244, 63, 94, 0.4);
}

.ig-post-slot.dragging {
  opacity: 0.4;
  transform: scale(0.95);
  cursor: grabbing;
}

.ig-post-slot.drag-over {
  border: 2px dashed #f43f5e;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.4);
}

.ig-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-post-badge-type {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 4px;
  border-radius: 4px;
}

.ig-post-badge-order {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-post-overlay-status {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  font-size: 0.65rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ManyChat Interactive Phone Mockup */
.manychat-chat-box {
  background: #090a0f;
  border: 1px solid var(--admin-border-strong);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  height: 520px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0,0,0,0.5);
}

.manychat-chat-header {
  background: #11131a;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.manychat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  position: relative;
  word-break: break-word;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #1a1d29;
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chat-quick-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #e2e8f0;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.chat-quick-btn:hover {
  background: rgba(244, 63, 94, 0.3);
  border-color: #f43f5e;
  color: #fff;
}

.manychat-chat-input-bar {
  background: #11131a;
  padding: 10px 14px;
  border-top: 1px solid var(--admin-border-subtle);
  display: flex;
  gap: 8px;
}

/* Metricool Heatmap Matrix (7 x 24) */
.metricool-heatmap-grid {
  display: grid;
  grid-template-columns: 90px repeat(24, 1fr);
  gap: 3px;
  margin-top: 14px;
  overflow-x: auto;
}

.heatmap-day-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-text-secondary);
  display: flex;
  align-items: center;
  padding-right: 6px;
}

.heatmap-cell {
  aspect-ratio: 1;
  min-width: 18px;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.15s, outline 0.15s;
  position: relative;
}

.heatmap-cell:hover {
  transform: scale(1.35);
  z-index: 10;
  outline: 2px solid #fff;
}

/* Sprout Social Smart Inbox */
.smart-inbox-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  height: 600px;
  border: 1px solid var(--admin-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--admin-card-bg);
}

@media (max-width: 860px) {
  .smart-inbox-container {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.inbox-sidebar-list {
  border-right: 1px solid var(--admin-border-subtle);
  overflow-y: auto;
  background: #0d0f16;
}

.inbox-item {
  padding: 12px 14px;
  border-bottom: 1px solid var(--admin-border-subtle);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.inbox-item:hover {
  background: rgba(255,255,255,0.04);
}

.inbox-item.active {
  background: rgba(244, 63, 94, 0.08);
  border-left: 3px solid #f43f5e;
}

.inbox-chat-pane {
  display: flex;
  flex-direction: column;
  background: var(--admin-card-bg);
}

.inbox-chat-messages {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inbox-composer {
  padding: 14px;
  border-top: 1px solid var(--admin-border-subtle);
  background: #0d0f16;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   TTF GESTIÓN: ENHANCED BILLING, QUOTES, EXPENSES & FINANCE STYLES
   ========================================================================== */

/* Sub-navigation Tabs */
.admin-subtabs {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.65);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  overflow-x: auto;
}

.admin-subtab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.admin-subtab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-subtab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  border-bottom: none;
}

.admin-subtab-pane,
.leads-subtab-content {
  display: none;
  animation: fadeIn 0.2s ease;
}

.admin-subtab-pane.active,
.leads-subtab-content.active {
  display: block !important;
}

/* Form Leads Follow-up Template Buttons */
.form-tpl-lang-btn,
.form-tpl-channel-btn {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  transition: all 0.2s ease;
  cursor: pointer;
}
.form-tpl-lang-btn:hover,
.form-tpl-channel-btn:hover {
  background: #334155;
  color: #ffffff;
}
.form-tpl-lang-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}
.form-tpl-channel-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}
.form-tpl-channel-btn.active[data-channel="whatsapp"] {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
  border-color: #4ade80 !important;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}

/* AEAT Official Tax Cards & Casillas */
.aeat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.aeat-casilla-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s ease;
}

.aeat-casilla-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
}

.aeat-casilla-tag {
  display: inline-block;
  background: #1e293b;
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 8px;
  font-family: monospace;
}

.aeat-casilla-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
}

.aeat-casilla-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.aeat-result-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 10px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

/* Cashflow Runway & Treasury */
.runway-health-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.runway-health-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.runway-health-box.danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.runway-meters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

.runway-meter-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 8px;
  padding: 16px;
}

/* Debt Claiming 3-Step Process */
.claim-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

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

.claim-step-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 8px;
  padding: 18px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.claim-step-card.active-step {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.04);
}

.claim-step-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.claim-step-badge.step-1 { background: #0284c7; color: #fff; }
.claim-step-badge.step-2 { background: #d97706; color: #fff; }
.claim-step-badge.step-3 { background: #dc2626; color: #fff; }

/* Signature Pad Canvas */
.signature-canvas-container {
  background: #0b0d14;
  border: 2px dashed #334155;
  border-radius: 8px;
  position: relative;
  cursor: crosshair;
  margin-bottom: 12px;
}

.signature-canvas-container canvas {
  display: block;
  width: 100%;
  height: 160px;
}

.signature-stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.2);
}

/* Ticket OCR Dropzone & Scanner */
.ticket-ocr-dropzone {
  border: 2px dashed rgba(96, 165, 250, 0.4);
  background: rgba(96, 165, 250, 0.03);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.ticket-ocr-dropzone:hover,
.ticket-ocr-dropzone.dragover {
  background: rgba(96, 165, 250, 0.09);
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
  transform: translateY(-1px);
}

.ticket-ocr-scanning {
  position: relative;
  overflow: hidden;
  border-color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.05) !important;
}

.ticket-ocr-scanning::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #38bdf8, #818cf8, #38bdf8, transparent);
  box-shadow: 0 0 12px #38bdf8;
  animation: scanLaser 1.4s ease-in-out infinite alternate;
}

@keyframes scanLaser {
  0% { top: 0%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 98%; opacity: 0.3; }
}

.ocr-result-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.ocr-result-card:hover {
  border-color: rgba(96, 165, 250, 0.3);
}

.ocr-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ocr-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ocr-field-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 0.88rem;
  transition: border-color 0.15s ease;
}

.ocr-field-input:focus {
  border-color: #38bdf8;
  outline: none;
  background: rgba(30, 41, 59, 0.95);
}

/* VeriFactu Preview Stamp */
.verifactu-stamp {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 14px;
  margin-top: 16px;
}

.verifactu-qr-box {
  width: 72px;
  height: 72px;
  background: #fff;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verifactu-qr-box img {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   WHATSAPP WEB 1:1 REPLICA & BOT / SCHEDULE AUTOMATIONS
   ========================================================================== */

.wa-web-container {
  display: flex;
  height: 740px;
  background: #111b21;
  border: 1px solid #222e35;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

@media (max-width: 900px) {
  .wa-web-container {
    flex-direction: column;
    height: auto;
    min-height: 650px;
  }
  .wa-sidebar {
    width: 100% !important;
    min-width: 100% !important;
    height: 300px;
  }
}

.wa-sidebar {
  width: 380px;
  min-width: 340px;
  background: #111b21;
  border-right: 1px solid #222e35;
  display: flex;
  flex-direction: column;
}

.wa-sidebar-header {
  height: 60px;
  background: #202c33;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #222e35;
}

.wa-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #25d366;
}

.wa-header-actions {
  display: flex;
  gap: 16px;
  color: #aebac1;
  font-size: 1.15rem;
}

.wa-header-actions i {
  cursor: pointer;
  transition: color 0.15s;
}

.wa-header-actions i:hover {
  color: #e9edef;
}

.wa-search-section {
  padding: 8px 12px;
  background: #111b21;
  border-bottom: 1px solid #222e35;
  display: flex;
  gap: 8px;
  align-items: center;
}

.wa-search-box {
  flex: 1;
  background: #202c33;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 36px;
}

.wa-search-box i {
  color: #8696a0;
  font-size: 0.88rem;
  margin-right: 12px;
}

.wa-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #e9edef;
  font-size: 0.88rem;
  width: 100%;
}

.wa-search-input::placeholder {
  color: #8696a0;
}

.wa-filters-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #111b21;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
}

.wa-filter-pill {
  background: #202c33;
  color: #8696a0;
  border: none;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.wa-filter-pill:hover {
  background: #2a3942;
  color: #e9edef;
}

.wa-filter-pill.active {
  background: #005c4b;
  color: #00a884;
  font-weight: 600;
}

.wa-chat-list {
  flex: 1;
  overflow-y: auto;
}

.wa-chat-item {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #222e35;
  transition: background 0.15s;
  position: relative;
}

.wa-chat-item:hover {
  background: #202c33;
}

.wa-chat-item.active {
  background: #2a3942;
}

.wa-chat-avatar-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.wa-chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.wa-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #25d366;
  border: 2px solid #111b21;
  border-radius: 50%;
}

.wa-chat-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wa-chat-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.wa-chat-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e9edef;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-chat-time {
  font-size: 0.75rem;
  color: #8696a0;
  flex-shrink: 0;
}

.wa-chat-msg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wa-chat-preview {
  font-size: 0.84rem;
  color: #8696a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-unread-badge {
  background: #25d366;
  color: #111b21;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Right Chat Pane */
.wa-chat-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0b141a;
  position: relative;
}

.wa-chat-header {
  height: 60px;
  background: #202c33;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #222e35;
  z-index: 2;
}

.wa-chat-contact-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.wa-chat-header-name {
  font-size: 1rem;
  font-weight: 600;
  color: #e9edef;
}

.wa-chat-header-status {
  font-size: 0.78rem;
  color: #8696a0;
}

.wa-chat-header-status.online {
  color: #25d366;
}

.wa-messages-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 20px 32px;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wa-encryption-notice {
  align-self: center;
  background: #182229;
  color: #ffd279;
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 520px;
}

.wa-date-separator {
  align-self: center;
  background: #182229;
  color: #8696a0;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  margin: 8px 0;
  text-transform: uppercase;
  font-weight: 600;
}

.wa-msg {
  max-width: 65%;
  padding: 7px 12px 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  animation: waMsgFadeIn 0.2s ease;
}

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

.wa-msg.wa-msg-in {
  align-self: flex-start;
  background: #202c33;
  color: #e9edef;
  border-top-left-radius: 0;
}

.wa-msg.wa-msg-out {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
  border-top-right-radius: 0;
}

.wa-msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.68rem;
  color: #8696a0;
  margin-top: 2px;
  float: right;
  margin-left: 10px;
}

.wa-msg.wa-msg-out .wa-msg-meta {
  color: rgba(255, 255, 255, 0.6);
}

.wa-msg-ticks {
  font-size: 0.75rem;
}

.wa-msg-ticks.read {
  color: #53bdeb;
}

.wa-msg-auto-tag {
  display: block;
  font-size: 0.68rem;
  color: #38bdf8;
  margin-bottom: 4px;
  font-weight: 600;
}

.wa-typing-indicator {
  align-self: flex-start;
  background: #202c33;
  color: #8696a0;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  display: none;
  align-items: center;
  gap: 6px;
}

.wa-typing-dots span {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #8696a0;
  border-radius: 50%;
  animation: waTypingDot 1.4s infinite ease-in-out both;
}

.wa-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.wa-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes waTypingDot {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Composer */
.wa-composer {
  background: #202c33;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #222e35;
}

.wa-composer-btn {
  background: transparent;
  border: none;
  color: #8696a0;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 6px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-composer-btn:hover {
  color: #e9edef;
}

.wa-composer-input {
  flex: 1;
  background: #2a3942;
  border: none;
  outline: none;
  border-radius: 8px;
  padding: 10px 16px;
  color: #e9edef;
  font-size: 0.92rem;
}

.wa-composer-input::placeholder {
  color: #8696a0;
}

.wa-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #00a884;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.wa-send-btn:hover {
  background: #028e70;
}

/* Simulated client interaction bar */
.wa-test-interaction-bar {
  background: #111b21;
  border-top: 1px solid #222e35;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Bot and Schedule Config Cards */
.wa-rule-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--admin-border-subtle);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.wa-rule-card.active {
  border-left: 3px solid #00a884;
}

.wa-schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-border-subtle);
}

.wa-schedule-row:last-child {
  border-bottom: none;
}

/* WhatsApp Nav Tabs */
.wa-nav-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--admin-border-subtle);
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.wa-nav-tab {
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--admin-text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.wa-nav-tab:hover {
  color: var(--admin-text-primary);
  border-bottom-color: rgba(37, 211, 102, 0.4);
}

.wa-nav-tab.active {
  color: #25d366;
  border-bottom-color: #25d366;
}

.wa-test-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.76rem;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.wa-test-chip:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
}

/* ========================================================================
   LEADS MEGA AUTOMATION & GOOGLE PROSPECTOR STYLES
   ======================================================================== */
.leads-switch input:checked + .leads-slider {
  background-color: #2563eb;
}
#leads-email-switch:checked + .leads-slider {
  background-color: #3b82f6;
}
#leads-whatsapp-switch:checked + .leads-slider {
  background-color: #10b981;
}
#leads-cooldown-switch:checked + .leads-slider {
  background-color: #a855f7;
}
.leads-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: #ffffff;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.leads-switch input:checked + .leads-slider:before {
  transform: translateX(22px);
}

/* Leads Subnavigation Tabs - TTF Enterprise Capsule System */
.leads-tabs-bar {
  display: flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.65);
  padding: 5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  overflow-x: auto;
}

.leads-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.leads-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.leads-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  border-bottom: none;
}

.leads-country-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}
.leads-country-card:hover {
  border-color: #334155;
}
.leads-country-card.active {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15);
}

.leads-category-badge {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.leads-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.badge-detected {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}
.badge-contacted {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-replied {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-converted {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-cooldown-active {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.badge-cooldown-free {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.btn-var-tag {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 0.76rem;
  font-family: monospace;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.btn-var-tag:hover {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.leads-lang-btn, .leads-channel-btn {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  padding: 7px 15px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  user-select: none;
}
.leads-lang-btn:hover, .leads-channel-btn:hover {
  background: rgba(51, 65, 85, 0.75);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}
.leads-lang-btn.active, .leads-channel-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   COCKPIT EXECUTIVE DASHBOARD & PRIORITY ACTION RADAR
   ========================================================================== */

.cockpit-hero-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md, 12px);
  padding: 22px 26px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.cockpit-radar-card {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, rgba(30, 41, 59, 0.6) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 5px solid #ef4444;
  border-radius: var(--radius-md, 12px);
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cockpit-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.2s ease;
}

.cockpit-action-item:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(3px);
}

.cockpit-action-item.urgency-critical {
  border-left: 4px solid #ef4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.cockpit-action-item.urgency-high {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.cockpit-action-item.urgency-opportunity {
  border-left: 4px solid #10b981;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.cockpit-action-item.urgency-info {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.cockpit-cluster-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--admin-text-secondary, #94a3b8);
  margin: 24px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cockpit-kpi-subcard {
  background: var(--admin-card-bg, #1e293b);
  border: 1px solid var(--admin-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-md, 10px);
  padding: 16px 18px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cockpit-kpi-subcard:hover {
  border-color: var(--admin-border-strong, rgba(255, 255, 255, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cockpit-filter-pill {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cockpit-filter-pill:hover {
  background: rgba(51, 65, 85, 0.8);
  color: #fff;
}

.cockpit-filter-pill.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}



