@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Lighter Luminous Theme for the main page area */
  --bg-light: #f8fafc;
  --bg-light-end: #f1f5f9;
  --panel-bg: rgba(255, 255, 255, 0.55);
  --panel-border: rgba(255, 255, 255, 0.7);
  --text-main: #0f172a; /* Slate 900 */
  --text-muted: #64748b; /* Slate 500 */
  
  /* Bright Neon Lime signature from avatarz.com */
  --color-primary: #c6ff00; /* Neon Lime */
  --color-primary-rgb: 198, 255, 0;
  --color-primary-glow: rgba(198, 255, 0, 0.15);
  
  /* Accent hues for focus and glowing */
  --color-violet: #8b5cf6;
  --color-violet-glow: rgba(139, 92, 246, 0.12);
  
  /* Status Colors (Optimized for light background readability) */
  --color-pending: #d97706; /* Darker amber */
  --color-pending-glow: rgba(217, 119, 6, 0.08);
  --color-approved: #2563eb; /* Darker blue */
  --color-approved-glow: rgba(37, 99, 235, 0.08);
  --color-executed: #059669; /* Darker green */
  --color-executed-glow: rgba(5, 150, 105, 0.08);
  --color-rejected: #dc2626; /* Darker red */
  --color-rejected-glow: rgba(220, 38, 38, 0.08);
  
  color-scheme: light;
}

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

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--bg-light), var(--bg-light-end));
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* Background decorative glows (soft, colorful light gradients) */
.glow-orb-1 {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
}

.glow-orb-2 {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(198, 255, 0, 0.12) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
}

/* Layout container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* Header styling matching the footer */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
  padding: 1.25rem 2.5rem;
  background: #08080f; /* Pitch black background */
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  color-scheme: dark; /* Force browser context to dark inside header */
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-badge {
  background: rgba(198, 255, 0, 0.08);
  border: 1px solid rgba(198, 255, 0, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  box-shadow: 0 0 10px rgba(198, 255, 0, 0.05);
}

.api-config {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  backdrop-filter: blur(16px);
  box-shadow: none;
}

.api-config label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.api-config input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  width: 220px;
  transition: all 0.3s ease;
}

.api-config input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(198, 255, 0, 0.25);
}

/* Main Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

/* Glass Panels */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, border-color 0.3s ease;
  color: var(--text-main);
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.glass-panel h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 1rem;
  letter-spacing: -0.02em;
}

/* Forms and Inputs */
.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agent-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.agent-opt {
  display: none;
}

.agent-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 85px;
}

.agent-label span.name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.agent-label span.desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.agent-opt:checked + .agent-label {
  border-color: var(--color-violet);
  background: rgba(139, 92, 246, 0.05);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.08);
}

.agent-opt:checked + .agent-label span.name {
  color: var(--color-violet);
}

textarea.prompt-input {
  width: 100%;
  height: 160px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  color: var(--text-main);
  padding: 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  resize: none;
  transition: all 0.3s ease;
  line-height: 1.5;
}

textarea.prompt-input:focus {
  outline: none;
  border-color: var(--color-violet);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  background: #1e293b;
}

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

.btn-secondary {
  width: 100%;
  background: transparent;
  color: var(--color-violet);
  border: 1px solid var(--color-violet);
  border-radius: 16px;
  padding: 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

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

.btn-all {
  width: 100%;
  background: rgba(198, 255, 0, 0.08);
  color: #3f5100;
  border: 1px solid rgba(198, 255, 0, 0.35);
  border-radius: 16px;
  padding: 1rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.btn-all:hover {
  background: var(--color-primary);
  color: #08080f;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(198, 255, 0, 0.2);
}

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

/* Tasks Display Section */
.tasks-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Task Cards (Lighter, glowing glassmorphism) */
.task-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.task-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.task-card.pending::before { background-color: #f59e0b; }
.task-card.approved::before { background-color: #3b82f6; }
.task-card.executed::before { background-color: #10b981; }
.task-card.rejected::before { background-color: #ef4444; }

.task-card.pending {
  box-shadow: 0 4px 25px rgba(217, 119, 6, 0.04);
}

.task-card:hover {
  transform: translateX(6px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.agent-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.agent-badge.socialo { background: rgba(139, 92, 246, 0.08); color: #7c3aed; border: 1px solid rgba(139, 92, 246, 0.15); }
.agent-badge.decko { background: rgba(6, 182, 212, 0.08); color: #0891b2; border: 1px solid rgba(6, 182, 212, 0.15); }
.agent-badge.creativo { background: rgba(236, 72, 153, 0.08); color: #db2777; border: 1px solid rgba(236, 72, 153, 0.15); }
.agent-badge.konto { background: rgba(198, 255, 0, 0.12); color: #6d8c00; border: 1px solid rgba(198, 255, 0, 0.3); }
.agent-badge.projecto { background: rgba(245, 158, 11, 0.08); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.15); }
.agent-badge.managio { background: rgba(59, 130, 246, 0.08); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.15); }

.status-indicator {
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.status-indicator.pending { background: var(--color-pending-glow); color: var(--color-pending); border: 1px solid rgba(217, 119, 6, 0.15); }
.status-indicator.approved { background: var(--color-approved-glow); color: var(--color-approved); border: 1px solid rgba(37, 99, 235, 0.15); }
.status-indicator.executed { background: var(--color-executed-glow); color: var(--color-executed); border: 1px solid rgba(5, 150, 105, 0.15); }
.status-indicator.rejected { background: var(--color-rejected-glow); color: var(--color-rejected); border: 1px solid rgba(220, 38, 38, 0.15); }

.task-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.task-desc {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Expandable Payload details (remains dark like a dev console) */
.payload-details {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #38bdf8; /* light blue code syntax color */
  white-space: pre-wrap;
  margin-bottom: 1.25rem;
  max-height: 250px;
  overflow-y: auto;
  border-left: 3px solid #8b5cf6;
}

/* Actions Section on Task Card */
.task-actions {
  display: flex;
  gap: 1rem;
}

.btn-action {
  flex: 1;
  border: none;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}

.btn-action.approve {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.btn-action.approve:hover {
  background: #059669;
  color: #fff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

.btn-action.reject {
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.btn-action.reject:hover {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-violet);
}

/* Tab selector */
.tab-container {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.25rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.5rem 0.25rem 0.75rem;
  position: relative;
  transition: all 0.3s ease;
}

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

.tab-btn.active {
  color: var(--color-violet);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-violet);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.empty-icon {
  font-size: 3.5rem;
  opacity: 0.3;
}

/* Toast System */
.toast {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  background: #0f172a;
  border: 1px solid var(--color-violet);
  padding: 1rem 1.75rem;
  border-radius: 16px;
  color: #fff;
  z-index: 999;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* SOLID BLACK FOOTER AT BOTTOM */
footer {
  margin-top: 6rem;
  padding: 2.5rem 3rem;
  background: #08080f; /* Pitch black background override */
  color: #f8fafc;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  color-scheme: dark; /* Force browser context to dark inside footer */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  align-self: flex-start;
}

.footer-left p {
  font-size: 0.8rem;
  color: #94a3b8; /* lighter muted text on dark */
}

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
}

.footer-links a:hover {
  color: var(--color-primary); /* neon green hover on dark */
  text-shadow: 0 0 8px rgba(198, 255, 0, 0.3);
}

/* Agent selector header with gear */
.agent-label-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.config-gear {
  font-size: 1.1rem;
  opacity: 0.4;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 10;
}

.config-gear:hover {
  opacity: 1;
  transform: rotate(45deg);
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

/* Slide-in Drawer Styles */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  transition: visibility 0.4s;
  visibility: hidden;
}

.drawer.open {
  pointer-events: auto;
  visibility: visible;
}

.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 15, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.drawer.open .drawer-overlay {
  opacity: 1;
}

.drawer-content {
  position: relative;
  width: 580px;
  max-width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(30px);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.drawer.open .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.drawer-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.drawer-agent-badge {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-violet);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.drawer-agent-badge.socialo { background: rgba(139, 92, 246, 0.08); color: #7c3aed; border: 1px solid rgba(139, 92, 246, 0.15); }
.drawer-agent-badge.decko { background: rgba(6, 182, 212, 0.08); color: #0891b2; border: 1px solid rgba(6, 182, 212, 0.15); }
.drawer-agent-badge.creativo { background: rgba(236, 72, 153, 0.08); color: #db2777; border: 1px solid rgba(236, 72, 153, 0.15); }
.drawer-agent-badge.konto { background: rgba(198, 255, 0, 0.12); color: #6d8c00; border: 1px solid rgba(198, 255, 0, 0.3); }
.drawer-agent-badge.projecto { background: rgba(245, 158, 11, 0.08); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.15); }
.drawer-agent-badge.managio { background: rgba(59, 130, 246, 0.08); color: #2563eb; border: 1px solid rgba(59, 130, 246, 0.15); }

.drawer-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.drawer-close:hover {
  color: var(--text-main);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.drawer-section h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.95rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.5rem;
}

.instructions-box {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.85rem;
  color: #334155;
  white-space: pre-wrap;
  max-height: 150px;
  overflow-y: auto;
  line-height: 1.5;
}

/* Tools configurations cards list */
.tools-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tool-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
  transition: all 0.3s ease;
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(139, 92, 246, 0.15);
}

.tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.tool-card-header h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
}

.tool-status-dot {
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-transform: uppercase;
}

.tool-status-dot.connected { color: #10b981; }
.tool-status-dot.disconnected { color: #ef4444; }

.tool-config-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tool-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.tool-input-group label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tool-input-group input {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.tool-input-group input:focus {
  outline: none;
  border-color: var(--color-violet);
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.15);
}

.btn-tool-save {
  align-self: flex-end;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.btn-tool-save:hover {
  background: #1e293b;
}

/* History in drawer */
.drawer-history-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.drawer-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.drawer-history-item:hover {
  background: rgba(255, 255, 255, 0.7);
}

.drawer-history-item .task-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.drawer-history-item .task-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Agent Filters Container & Buttons */
.agent-filters-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.agent-filter-btn {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.agent-filter-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.agent-filter-btn.active {
  background: var(--color-violet);
  color: #ffffff;
  border-color: var(--color-violet);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

/* Specific button styles for Execute */
.btn-action.execute {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.btn-action.execute:hover {
  background: #059669;
  color: #fff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25);
}

/* Card Glows on Hover by Status */
.task-card.approved {
  box-shadow: 0 4px 25px rgba(37, 99, 235, 0.04);
}

.task-card.pending:hover {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.08);
}

.task-card.approved:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.08);
}

.task-card.executed:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.08);
}

.task-card.rejected:hover {
  border-color: rgba(239, 68, 68, 0.25);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.08);
}
/* Landing & Hero Section */
.hero-section {
  padding: 5rem 1.5rem 4rem 1.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-section h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.hero-section h1 .highlight {
  background: linear-gradient(90deg, var(--color-violet), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Pricing Section */
.pricing-section {
  padding: 4rem 0;
  text-align: center;
}

.pricing-section h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(139, 92, 246, 0.15);
}

.pricing-card.popular {
  border: 2px solid var(--color-violet);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.06);
}

.badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-violet);
  color: #fff;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.pricing-card.enterprise {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.02);
}

.pricing-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.75rem 0;
  letter-spacing: -0.02em;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 2rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 8, 15, 0.4);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 1001;
  width: 100%;
  animation: modalEnter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-main);
}

/* Header Organisation Details */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-org-info-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
}

.header-org-name-text {
  font-weight: 700;
  color: #fff;
  font-size: 0.85rem;
}

.plan-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.plan-badge.basic {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.plan-badge.pro {
  background: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.plan-badge.enterprise {
  background: rgba(198, 255, 0, 0.15);
  color: #c6ff00;
  border: 1px solid rgba(198, 255, 0, 0.3);
}

.header-credits-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 0.75rem;
}

.credits-label {
  font-size: 0.7rem;
  color: #94a3b8;
}

.credits-bar-bg {
  width: 60px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.credits-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #c6ff00, #8b5cf6);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.credits-text {
  font-size: 0.75rem;
  color: #c6ff00;
  font-weight: 700;
}

.nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

/* Custom Agent Card (Enterprise only) */
.custom-agent-card {
  background: rgba(139, 92, 246, 0.03);
  border: 1.5px dashed rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 130px;
}

.custom-agent-card:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--color-violet);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.custom-agent-card .icon {
  font-size: 1.5rem;
  color: var(--color-violet);
}

.custom-agent-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.custom-agent-card p {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0;
}

/* Greyed-out Lock Agents */
.agent-label.locked {
  opacity: 0.45;
  cursor: not-allowed;
  position: relative;
}

.agent-label.locked::after {
  content: '🔒 Lock';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-weight: 700;
}

/* Super Admin Styling */
.admin-header {
  margin-bottom: 2rem;
}

.admin-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.stat-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

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

.stat-trend {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

.stat-trend.positive {
  color: #059669;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-table th, .admin-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-table th {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.3);
}

.btn-admin-action {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}

.btn-admin-action:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: var(--color-violet);
  color: var(--color-violet);
}

/* Language Switcher Dropdown */
.lang-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.lang-select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

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

/* Value loop steps section */
.how-it-works {
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.how-it-works h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.step-card {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.step-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-primary), var(--color-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Value pitch grid cards */
.pitch-section {
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.pitch-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
}

.pitch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.pitch-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  transition: all 0.2s ease;
}

.pitch-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(139, 92, 246, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.pitch-icon {
  font-size: 2rem;
  line-height: 1;
}

.pitch-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.pitch-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Remix Loader Overlay Styling */
.remix-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 8, 15, 0.45);
  backdrop-filter: blur(25px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Space Config Elements */
.space-config-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.4s ease-out;
}

.config-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.add-member-form input, .add-member-form select {
  outline: none;
  transition: all 0.3s ease;
}

.add-member-form input:focus, .add-member-form select:focus {
  border-color: var(--color-violet);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.15);
}

/* Table customizations */
.admin-table th, .admin-table td {
  padding: 0.75rem 1rem;
}

.btn-admin-action {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-admin-action:hover {
  background: var(--text-main);
  color: #fff;
  border-color: var(--text-main);
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.remix-bar input:focus {
  outline: none;
}

.remix-bar:focus-within {
  border-color: var(--color-violet) !important;
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15) !important;
}

