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

:root {
  --bg: #0a0e1a;
  --surface: #111827;
  --surface2: #1a2234;
  --border: #1e2d45;
  --accent: #3b82f6;
  --accent2: #6366f1;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --radius: 10px;
}

/* ── Light theme overrides ──────────────────────────────────── */
[data-theme="light"] {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent2: #4f46e5;
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #475569;
}

[data-theme="light"] tr:hover td {
  background: rgba(0, 0, 0, 0.025);
}

[data-theme="light"] .toast {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .table-wrap::after {
  background: linear-gradient(to right, transparent, var(--surface));
}

[data-theme="light"] .sidebar-overlay {
  background: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .stat-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .nav-item:hover {
  background: var(--surface2);
}

[data-theme="light"] .nav-item.active {
  background: rgba(37, 99, 235, 0.1);
}

[data-theme="light"] .member-card {
  background: var(--surface2);
}

[data-theme="light"] .choice-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .badge-new {
  background: rgba(37, 99, 235, 0.12);
}

[data-theme="light"] .badge-won {
  background: rgba(5, 150, 105, 0.12);
}

[data-theme="light"] .badge-lost {
  background: rgba(220, 38, 38, 0.12);
}

/* ── Theme toggle button ────────────────────────────────────── */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 8px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.15s;
}

.theme-toggle-btn:hover {
  background: var(--surface2);
}

.theme-toggle-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.theme-toggle-label {
  flex: 1;
  text-align: left;
}

.theme-toggle-track {
  width: 34px;
  height: 18px;
  border-radius: 9px;
  background: var(--border);
  flex-shrink: 0;
  position: relative;
  transition: background 0.2s;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s;
}

[data-theme="light"] .theme-toggle-track {
  background: var(--accent);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 32px;
}

/* Sidebar */
.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.sidebar-brand p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
}

.workspace-brand-logo,
.workspace-brand-fallback {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
}

.workspace-brand-logo {
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface2);
}

.workspace-brand-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.workspace-brand-copy {
  min-width: 0;
}

.workspace-brand-copy h2 {
  color: var(--text);
  line-height: 1.15;
  word-break: break-word;
}

.workspace-brand-copy p {
  margin-top: 4px;
}

.workspace-brand-system {
  margin-left: 54px;
}

.sidebar-nav {
  padding: 16px 12px;
  flex: 1 1 0;
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 8px;
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.15s;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--surface2);
  color: var(--text);
  text-decoration: none;
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-notification-badge {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

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

.sidebar-user .user-name {
  font-size: 13px;
  font-weight: 600;
}

.sidebar-user .user-role {
  font-size: 11px;
  color: var(--text-muted);
}

.sidebar-signout-btn {
  margin-top: 10px;
  justify-content: center;
  width: 100%;
}

/* Slim scrollbar for nav area */
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

.sidebar-nav {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.presence-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  margin-top: 10px;
}

.presence-pill.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.presence-pill.offline {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-dim);
}

.member-activity {
  margin-top: 2px;
}

.member-activity-meta {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.45;
}

.activity-log-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.activity-log-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-log-time {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.activity-log-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.activity-log-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
  line-height: 1.5;
}

.activity-log-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Page header */
.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
}

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

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 16px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 4px;
}

.stat-value.blue {
  color: var(--accent);
}

.stat-value.green {
  color: var(--success);
}

.stat-value.yellow {
  color: var(--warning);
}

.stat-value.red {
  color: var(--danger);
}

.stat-value.purple {
  color: #8b5cf6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  text-decoration: none;
  color: var(--text);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 12px;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.table-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, transparent, var(--surface));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.table-wrap.scrollable::after {
  opacity: 1;
}

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

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  white-space: nowrap;
}

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

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-new {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.badge-contacted {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.badge-qualified {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.badge-proposal {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

.badge-negotiation {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
}

.badge-won {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-lost {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.badge-low {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
}

.badge-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.badge-high {
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
}

.badge-urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.form-select option {
  background: var(--surface2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Inline messages (login form etc.) */
.messages {
  margin-bottom: 20px;
}

.message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}

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

.message-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.message-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px 18px;
  min-width: 300px;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  pointer-events: all;
  position: relative;
  overflow: hidden;
  animation: toast-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes toast-in {
  from {
    transform: translateX(110%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.toast-hiding {
  animation: toast-out 0.3s ease forwards !important;
}

@keyframes toast-out {
  to {
    transform: translateX(110%);
    opacity: 0;
  }
}

.toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.toast-msg {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.15s;
}

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

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 12px 12px;
  animation: toast-progress var(--toast-duration, 4s) linear forwards;
}

@keyframes toast-progress {
  from {
    width: 100%;
  }

  to {
    width: 0;
  }
}

.toast-success {
  border-left: 3px solid var(--success);
}

.toast-success .toast-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.toast-success .toast-title {
  color: var(--success);
}

.toast-success .toast-progress {
  background: var(--success);
}

.toast-error {
  border-left: 3px solid var(--danger);
}

.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.toast-error .toast-title {
  color: var(--danger);
}

.toast-error .toast-progress {
  background: var(--danger);
}

.toast-warning {
  border-left: 3px solid var(--warning);
}

.toast-warning .toast-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.toast-warning .toast-title {
  color: var(--warning);
}

.toast-warning .toast-progress {
  background: var(--warning);
}

.toast-info {
  border-left: 3px solid var(--accent);
}

.toast-info .toast-icon {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
}

.toast-info .toast-title {
  color: var(--accent);
}

.toast-info .toast-progress {
  background: var(--accent);
}

/* Auth pages */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.auth-card h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* Landing page */
.landing-page {
  min-height: 100vh;
  padding: 28px 20px 12px;
  background:
    radial-gradient(circle at 8% 10%, rgba(59, 130, 246, 0.2), transparent 24%),
    radial-gradient(circle at 90% 12%, rgba(99, 102, 241, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.28), transparent 32%),
    var(--bg);
}

.landing-header {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.landing-brand:hover {
  text-decoration: none;
}

.landing-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-nav a:not(.btn) {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}

.landing-hero {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.landing-copy,
.landing-showcase,
.landing-section,
.landing-band {
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.landing-copy {
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 28px;
  padding: 40px 38px;
}

.landing-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.landing-copy h1 {
  margin: 20px 0 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6.3vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.landing-copy p {
  max-width: 640px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.85;
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.landing-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
  font-size: 13px;
}

.landing-proof span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7b7;
}

.landing-showcase {
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 28px;
  padding: 18px;
}

.landing-showcase-shell {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(26, 34, 52, 0.98), rgba(10, 14, 26, 0.96)),
    rgba(17, 24, 39, 0.9);
  border: 1px solid rgba(99, 102, 241, 0.14);
  padding: 24px;
}

.landing-showcase-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.landing-mini-label {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.landing-showcase-top h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  line-height: 1.1;
}

.landing-panel-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.landing-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.landing-stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 18px;
}

.landing-stat-card p {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.landing-stat-card h3 {
  margin: 10px 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  line-height: 1.15;
}

.landing-stat-card span {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}

.landing-stat-card-wide {
  grid-column: 1 / -1;
}

.landing-strip {
  width: 100%;
  max-width: 1160px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-strip-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(17, 24, 39, 0.6);
}

.landing-strip-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.landing-strip-item span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.landing-section {
  width: 100%;
  max-width: 1160px;
  margin: 22px auto 0;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 30px;
}

.landing-section-head {
  margin-bottom: 22px;
}

.landing-section-kicker {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.landing-section-head h2,
.landing-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  line-height: 1.12;
  margin-bottom: 10px;
}

.landing-section-head p,
.landing-cta p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.landing-track-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.landing-track-card {
  background: linear-gradient(180deg, rgba(26, 34, 52, 0.9), rgba(17, 24, 39, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 22px;
}

.landing-track-slash {
  display: inline-flex;
  margin-bottom: 14px;
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.landing-track-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.landing-track-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.landing-band {
  width: 100%;
  max-width: 1160px;
  margin: 22px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 22px;
  align-items: center;
}

.landing-band-alt {
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
}

.landing-band-copy h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  line-height: 1.08;
  margin-bottom: 12px;
}

.landing-band-copy p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.85;
}

.landing-band-copy .btn {
  margin-top: 20px;
}

.landing-band-panel {
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.8));
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.landing-band-stack {
  display: grid;
  gap: 12px;
}

.landing-band-item {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.landing-band-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 7px;
}

.landing-band-item span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
}

.landing-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  margin-top: 28px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--border);
}

.site-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.site-footer-links a {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}

.site-footer-note {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Legal pages */
.legal-shell {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 16px;
}

.legal-hero {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 18px;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.legal-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  line-height: 1.1;
  margin: 16px 0 10px;
}

.legal-hero p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
  max-width: 680px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

.legal-prose {
  display: grid;
  gap: 22px;
}

.legal-prose section {
  display: grid;
  gap: 10px;
}

.legal-prose h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  line-height: 1.2;
}

.legal-prose p,
.legal-prose li {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.8;
}

.legal-prose ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-callout {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
}

.legal-callout p {
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

/* Choice cards */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 40px auto;
}

.choice-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.choice-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.choice-card .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.choice-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.choice-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Filters bar */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filters .form-select {
  width: auto;
  min-width: 140px;
}

.search-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  min-width: 220px;
}

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

/* Activity feed */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}

.activity-body {
  flex: 1;
}

.activity-desc {
  font-size: 14px;
}

.activity-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

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

.section-title {
  font-size: 16px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
}

/* Member cards */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.member-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.member-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.member-card .name {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-card .email {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Company cards */
.company-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
}

.company-item .co-name {
  font-weight: 600;
}

.company-item .co-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.company-item-with-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.company-item-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.company-item-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* People events */
.people-events-card .empty-state {
  padding: 34px 20px;
}

.people-events-list {
  display: grid;
  gap: 10px;
}

.people-event-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.people-event-date {
  min-height: 52px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.people-event-date span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.people-event-date strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  line-height: 1;
}

.people-event-body {
  min-width: 0;
}

.people-event-days {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Staff performance */
.staff-performance-card .empty-state {
  padding: 34px 20px;
}

.staff-performance-list {
  display: grid;
  gap: 14px;
}

.staff-performance-item {
  display: grid;
  gap: 9px;
}

.staff-performance-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.staff-performance-meta strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  color: var(--accent);
  line-height: 1;
}

.staff-performance-track {
  height: 10px;
  overflow: hidden;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.staff-performance-bar {
  min-width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: inherit;
}

/* Daily staff activity */
.daily-staff-activity-card .empty-state {
  padding: 34px 20px;
}

.daily-staff-activity-list {
  display: grid;
  gap: 12px;
}

.daily-staff-activity-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.daily-staff-activity-item:first-child {
  padding-top: 0;
}

.daily-staff-activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Support tickets */
.support-ticket-item {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.support-ticket-item:first-child {
  padding-top: 0;
}

.support-ticket-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.support-ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.support-ticket-desc {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.support-response {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.support-status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 700;
}

.support-status-open {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent);
}

.support-status-in_progress {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.support-status-resolved {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.support-status-closed {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-dim);
}

.support-ticket-update {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

/* App topbar */
.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px 0 28px;
}

.app-topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.app-topbar-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
}

.app-topbar-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

/* Subscription UI */
.subscription-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.billing-switch {
  display: inline-flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  margin-bottom: 24px;
}

.billing-switch-btn {
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.billing-switch-btn.active {
  background: var(--accent);
  color: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan-card-current {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15) inset;
}

.plan-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.plan-tagline {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.plan-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
}

.plan-billing-label,
.plan-description {
  color: var(--text-muted);
  font-size: 14px;
}

.plan-features {
  display: grid;
  gap: 10px;
}

.plan-feature {
  position: relative;
  padding-left: 18px;
  color: var(--text-dim);
  font-size: 14px;
}

.plan-feature::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.plan-actions {
  margin-top: auto;
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
}

.plan-chip-trial {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.inline-upgrade-form {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(130px, 1fr) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.checkbox-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 14px;
}

.checkbox-row label {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Lead detail */
.lead-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.lead-hero h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.lead-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.lead-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.info-item .info-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-item .info-value {
  font-size: 14px;
  font-weight: 500;
}

/* ── Responsive grid utilities ──────────────────────────────── */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-sidebar-r {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.grid-profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-filter {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

/* ── Page header row (title + action buttons) ───────────────── */
.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Mobile sidebar overlay ─────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99;
}

.sidebar-overlay.open {
  display: block;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  margin-bottom: 20px;
}

/* ── Breakpoint: tablet / mobile (≤ 900px) ──────────────────── */
@media (max-width: 900px) {

  /* Sidebar */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .hamburger {
    display: inline-flex;
  }

  #sidebar-close-btn {
    display: block !important;
  }

  /* Layout */
  .main-content {
    margin-left: 0;
    padding: 20px 16px;
  }

  /* Grid collapse */
  .grid-2col {
    grid-template-columns: 1fr;
  }

  .grid-sidebar-r {
    grid-template-columns: 1fr;
  }

  .grid-profile {
    grid-template-columns: 1fr;
  }

  .grid-4col {
    grid-template-columns: 1fr 1fr;
  }

  .grid-filter {
    grid-template-columns: 1fr 1fr;
  }

  /* Form helpers */
  .form-row {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .search-input {
    min-width: 0;
    width: 100%;
  }

  .inline-upgrade-form {
    grid-template-columns: 1fr;
  }

  .support-ticket-update {
    grid-template-columns: 1fr;
  }

  .support-ticket-head {
    flex-direction: column;
  }

  /* Page header */
  .page-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-header-row>div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .leads-table {
    min-width: 760px;
  }

  .leads-table .lead-name-cell {
    min-width: 130px;
    max-width: 190px;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Toast */
  .toast-container {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .toast {
    min-width: 0;
    max-width: 100%;
  }

  /* Auth card */
  .auth-card {
    padding: 28px 20px;
  }

  .landing-page {
    padding: 20px 16px 12px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-band,
  .landing-band-alt {
    grid-template-columns: 1fr;
  }

  .landing-copy,
  .landing-showcase,
  .landing-section,
  .landing-band {
    padding: 22px 18px;
  }

  .landing-strip {
    grid-template-columns: 1fr 1fr;
  }

  .landing-track-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-shell {
    padding: 22px 16px 12px;
  }

  .legal-hero,
  .legal-card {
    padding: 22px 18px;
  }

  .legal-hero h1 {
    font-size: 28px;
  }
}

/* ── Breakpoint: small phones (≤ 480px) ─────────────────────── */
@media (max-width: 480px) {
  .main-content {
    padding: 12px;
  }

  .grid-filter {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-header h1 {
    font-size: 21px;
  }

  .card {
    padding: 16px;
  }

  .member-grid {
    grid-template-columns: 1fr;
  }

  .notes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .landing-nav {
    width: 100%;
  }

  .landing-showcase-grid,
  .landing-strip,
  .landing-track-grid {
    grid-template-columns: 1fr;
  }

  .landing-copy h1 {
    font-size: 34px;
  }

  .site-footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .legal-hero h1 {
    font-size: 24px;
  }

  .people-event-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .people-event-days {
    grid-column: 2;
    white-space: normal;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Activity Planner / Calendar
═══════════════════════════════════════════════════════════════ */

/* Navigation bar */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.cal-month-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

/* Header cells */
.cal-header-cell {
  background: var(--surface2);
  text-align: center;
  padding: 10px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Day cells */
.cal-cell {
  background: var(--surface);
  height: 120px;
  min-height: 0;
  padding: 6px 6px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.cal-empty {
  background: var(--bg);
  height: 120px;
  overflow: hidden;
}

.cal-past {
  background: color-mix(in srgb, var(--bg) 60%, var(--surface));
}

.cal-today {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

/* Day number */
.cal-day-num-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.cal-day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
  padding: 2px 4px;
  border-radius: 50%;
  min-width: 22px;
  text-align: center;
}

.cal-today-badge {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.cal-past .cal-day-num {
  opacity: 0.45;
}

/* Activity pills */
.cal-activity {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  flex-shrink: 0;
}

.cal-act-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.cal-act-edit,
.cal-act-del {
  flex-shrink: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 9px;
  line-height: 1;
  padding: 1px 2px;
  border-radius: 3px;
  opacity: 0;
  color: inherit;
  transition: opacity 0.15s, background 0.15s;
}

.cal-activity:hover .cal-act-edit,
.cal-activity:hover .cal-act-del {
  opacity: 0.6;
}

.cal-act-edit:hover,
.cal-act-del:hover {
  opacity: 1 !important;
  background: rgba(0, 0, 0, 0.15);
}

/* Activity colours */
.cal-act-blue {
  background: #bfdbfe;
  color: #1e40af;
}

.cal-act-green {
  background: #bbf7d0;
  color: #166534;
}

.cal-act-red {
  background: #fecaca;
  color: #991b1b;
}

.cal-act-yellow {
  background: #fef08a;
  color: #854d0e;
}

.cal-act-purple {
  background: #e9d5ff;
  color: #6b21a8;
}

.cal-act-orange {
  background: #fed7aa;
  color: #9a3412;
}

.cal-act-pink {
  background: #fecdd3;
  color: #881337;
}

.cal-act-teal {
  background: #99f6e4;
  color: #134e4a;
}

/* Add button */
.cal-add-btn {
  margin-top: auto;
  background: transparent;
  border: 1px dashed transparent;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 11px;
  color: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.cal-cell:not(.cal-past):hover .cal-add-btn {
  color: var(--text-muted);
  border-color: var(--border);
}

.cal-add-btn:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

/* ── Add activity modal ──────────────────────────────── */
.cal-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cal-modal-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: calModalIn 0.2s ease;
}

@keyframes calModalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cal-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cal-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.cal-modal-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.cal-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 17px;
  padding: 4px 6px;
  border-radius: 6px;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.cal-modal-close:hover {
  background: var(--surface2);
  color: var(--text-primary);
}

/* Colour picker */
.cal-color-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cal-color-label {
  cursor: pointer;
}

.cal-color-radio {
  display: none;
}

.cal-color-dot {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: transform 0.15s, border-color 0.15s;
}

.cal-color-dot:hover {
  transform: scale(1.2);
}

.cal-color-dot.active {
  border-color: var(--text-primary);
  transform: scale(1.15);
}

.cal-dot-blue {
  background: #3b82f6;
}

.cal-dot-green {
  background: #22c55e;
}

.cal-dot-red {
  background: #ef4444;
}

.cal-dot-yellow {
  background: #eab308;
}

.cal-dot-purple {
  background: #a855f7;
}

.cal-dot-orange {
  background: #f97316;
}

.cal-dot-pink {
  background: #ec4899;
}

.cal-dot-teal {
  background: #14b8a6;
}

/* Responsive */
@media (max-width: 900px) {
  .cal-cell {
    height: 80px;
    min-height: 0;
    padding: 4px 4px 2px;
  }

  .cal-empty {
    height: 80px;
    min-height: 0;
  }

  .cal-activity {
    font-size: 10px;
    padding: 1px 4px;
  }

  .cal-day-num {
    font-size: 11px;
  }

  .cal-month-title {
    font-size: 17px;
  }
}

@media (max-width: 600px) {
  .cal-cell {
    height: 58px;
    min-height: 0;
    padding: 3px 2px 2px;
    gap: 2px;
  }

  .cal-empty {
    height: 58px;
    min-height: 0;
  }

  .cal-header-cell {
    font-size: 9px;
    padding: 7px 2px;
    letter-spacing: 0;
  }

  .cal-activity {
    font-size: 9px;
    padding: 1px 3px;
    border-radius: 3px;
  }

  .cal-act-edit,
  .cal-act-del {
    display: none;
  }

  .cal-add-btn {
    font-size: 10px;
  }

  .cal-month-title {
    font-size: 15px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Media Library
═══════════════════════════════════════════════════════════════ */
.media-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: var(--text-muted);
}

.media-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.media-breadcrumb a:hover {
  text-decoration: underline;
}

.media-sep {
  color: var(--text-muted);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Grids */
.media-grid {
  display: grid;
  gap: 12px;
}

.media-folder-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.media-file-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* Cards */
.media-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}

.media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Folder card */
.media-folder-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-decoration: none;
  flex: 1;
}

.media-folder-icon {
  flex-shrink: 0;
  line-height: 1;
}

.media-folder-card .media-card-actions {
  padding: 0 10px 10px;
  display: flex;
  justify-content: flex-end;
}

/* File card */
.media-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.media-thumb-icon {
  font-size: 34px;
}

/* Card info + actions */
.media-card-info {
  padding: 8px 10px;
  flex: 1;
  min-width: 0;
}

.media-card-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.media-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.5;
}

.media-card-actions {
  padding: 6px 8px 8px;
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--border);
}

/* Drop zone */
.upload-drop-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.upload-drop-zone:hover,
.upload-drop-zone.dragover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--accent);
}

/* Share row */
.share-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

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

@media (max-width: 900px) {
  .media-folder-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .media-file-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

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

  .media-file-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Bulk action bar ─────────────────────────────────────────── */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 8px;
  animation: slideDown 0.15s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Checkbox column styling */
.lead-cb,
.lead-select-ctrl {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

.leads-table {
  min-width: 920px;
}

.leads-table .lead-name-cell {
  min-width: 150px;
  max-width: 260px;
  white-space: normal;
}

.lead-name-link {
  display: inline-block;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ═══════════════════════════════════════════════════════════════
   Sticky Notes
═══════════════════════════════════════════════════════════════ */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

/* Card base */
.note-card {
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  height: 220px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  position: relative;
  user-select: none;
  overflow: hidden;
}

.note-card.expanded {
  height: auto;
  min-height: 220px;
  z-index: 10;
}

.note-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* Colors */
.note-yellow {
  background: #fef08a;
}

.note-blue {
  background: #93c5fd;
}

.note-green {
  background: #86efac;
}

.note-pink {
  background: #f9a8d4;
}

.note-purple {
  background: #c4b5fd;
}

.note-orange {
  background: #fdba74;
}

/* Drag states */
.note-card.dragging {
  opacity: 0.35;
  transform: scale(0.96) rotate(1deg);
}

.note-card.drag-over {
  outline: 3px dashed #3b82f6;
  outline-offset: 3px;
  transform: translateY(-3px);
}

.note-card.note-removing {
  transform: scale(0.88);
  opacity: 0;
}

/* Drag handle */
.note-drag {
  display: flex;
  justify-content: center;
  padding: 10px 8px 4px;
  cursor: grab;
  color: rgba(0, 0, 0, 0.35);
  transition: color 0.2s;
}

.note-drag:hover {
  color: rgba(0, 0, 0, 0.65);
}

.note-drag:active {
  cursor: grabbing;
}

/* Inner: title + body */
.note-inner {
  flex: 1;
  padding: 2px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.note-title {
  width: 100%;
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.8);
  outline: none;
  padding: 0;
  user-select: text;
}

.note-title::placeholder {
  color: rgba(0, 0, 0, 0.35);
  font-weight: 400;
}

.note-body {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.75);
  outline: none;
  resize: none;
  padding: 0;
  font-family: inherit;
  line-height: 1.55;
  min-height: 80px;
  overflow: hidden;
  user-select: text;
}

.note-card:not(.expanded) .note-body {
  height: 110px !important;
  overflow: hidden;
}

.note-card:not(.expanded) .note-inner {
  overflow: hidden;
}

.note-body::placeholder {
  color: rgba(0, 0, 0, 0.32);
}

/* Footer */
.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Color dots */
.note-colors {
  display: flex;
  gap: 7px;
  align-items: center;
}

.color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.color-dot:hover {
  transform: scale(1.35);
}

.color-dot.active {
  border-color: rgba(0, 0, 0, 0.55);
  transform: scale(1.2);
}

.dot-yellow {
  background: #fef08a;
}

.dot-blue {
  background: #93c5fd;
}

.dot-green {
  background: #86efac;
}

.dot-pink {
  background: #f9a8d4;
}

.dot-purple {
  background: #c4b5fd;
}

.dot-orange {
  background: #fdba74;
}

/* Delete button */
.note-delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.note-delete-btn:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
}

.note-share-toggle {
  background: rgba(0, 0, 0, 0.08);
  border: none;
  color: rgba(0, 0, 0, 0.62);
  cursor: pointer;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
}

.note-share-toggle:hover {
  background: rgba(0, 0, 0, 0.14);
  color: rgba(0, 0, 0, 0.8);
}

.note-share-panel {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding: 12px;
  background: rgba(255, 255, 255, 0.22);
}

.note-share-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
  margin-top: 8px;
}

.note-permission-chip {
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.62);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
}

.note-title[readonly],
.note-body[readonly] {
  cursor: default;
}

/* Saved indicator */
.note-saved {
  position: absolute;
  bottom: 42px;
  right: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.note-saved.show {
  opacity: 1;
}

/* Empty state */
.notes-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
}

.notes-empty h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.notes-empty p {
  font-size: 14px;
}

@media (max-width: 900px) {
  .notes-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* ── Company Profile Drawer ─────────────────────────────────── */
.co-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1100;
}

.co-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 96vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 1101;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.co-drawer-header {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px 0;
  flex-shrink: 0;
}

.co-drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

.co-drawer-close:hover {
  background: var(--surface2);
  color: var(--text-primary);
}

.co-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 28px;
}

.co-drawer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.co-drawer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface2);
  padding: 6px;
  flex-shrink: 0;
}

.co-drawer-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.co-drawer-code {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-family: monospace;
  letter-spacing: 1px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 8px;
}

.co-drawer-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.co-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.co-detail-full {
  grid-column: 1 / -1;
}

.co-detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}

.co-detail-item span:last-child {
  font-size: 13px;
  color: var(--text-primary);
}

.co-detail-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.co-detail-link:hover {
  text-decoration: underline;
}

.co-drawer-section {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
  margin-bottom: 16px;
}

.co-drawer-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.co-about-block {
  margin-bottom: 12px;
}

.co-about-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.co-social-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color .15s, background .15s;
}

.co-social-card:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface2));
}

.co-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.co-social-icon svg {
  width: 18px;
  height: 18px;
}

.co-social-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.co-social-name {
  font-size: 13px;
  font-weight: 600;
}

.co-social-handle {
  font-size: 12px;
  color: var(--text-muted);
}

.co-social-arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-muted);
}

/* ── Social Media ───────────────────────────────────────────── */
.social-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  flex-wrap: wrap;
}

.social-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

.social-facebook {
  background: #1877f2;
}

.social-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-linkedin {
  background: #0a66c2;
}

.social-twitter {
  background: #000;
}

.social-youtube {
  background: #ff0000;
}

.social-tiktok {
  background: #010101;
}

.social-pinterest {
  background: #e60023;
}

.social-whatsapp {
  background: #25d366;
}

.social-telegram {
  background: #2ca5e0;
}

.social-snapchat {
  background: #fffc00;
  color: #000 !important;
}

.social-snapchat svg {
  color: #000;
}

.social-threads {
  background: #000;
}

.social-website {
  background: var(--accent);
}

.social-other {
  background: var(--text-muted);
}

.social-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-platform-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.social-handle {
  font-size: 12px;
  color: var(--text-muted);
}

.social-url {
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.social-url:hover {
  text-decoration: underline;
}

.social-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.social-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.social-kpi-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-kpi-box strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.social-kpi-box span {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
}

.social-highlight-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.social-highlight-title {
  font-size: 16px;
  font-weight: 700;
}

.social-highlight-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.social-post-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-dim);
}

.social-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.social-account-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface2);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s, border-color .15s, background .15s;
}

.social-account-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--accent);
}

.social-account-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-platform-title {
  font-size: 15px;
  font-weight: 700;
}

.social-platform-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.social-card-status {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.social-status-growing {
  background: rgba(16, 185, 129, .14);
  color: #34d399;
}

.social-status-stable {
  background: rgba(59, 130, 246, .14);
  color: #60a5fa;
}

.social-status-monitoring {
  background: rgba(234, 179, 8, .14);
  color: #fbbf24;
}

.social-status-needs-attention {
  background: rgba(239, 68, 68, .14);
  color: #f87171;
}

.social-status-no-data {
  background: rgba(100, 116, 139, .14);
  color: #94a3b8;
}

.social-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social-mini-stats div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}

.social-mini-stats span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 3px;
}

.social-mini-stats strong {
  font-size: 16px;
  font-weight: 700;
}

.social-summary-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Holiday Widget ─────────────────────────────────────────── */
.holiday-flag-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 3px 8px;
  border-radius: 6px;
}

.holiday-badge-IN {
  background: rgba(255, 153, 0, .15);
  color: #e07800;
  border: 1px solid rgba(255, 153, 0, .3);
}

.holiday-badge-AE {
  background: rgba(0, 150, 57, .15);
  color: #007a2f;
  border: 1px solid rgba(0, 150, 57, .3);
}

.holiday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.holiday-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
}

.holiday-date-block {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.holiday-date-IN {
  background: rgba(255, 153, 0, .15);
  border: 1px solid rgba(255, 153, 0, .25);
}

.holiday-date-AE {
  background: rgba(0, 150, 57, .12);
  border: 1px solid rgba(0, 150, 57, .25);
}

.holiday-month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  line-height: 1;
}

.holiday-date-IN .holiday-month {
  color: #e07800;
}

.holiday-date-AE .holiday-month {
  color: #007a2f;
}

.holiday-day {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.holiday-date-IN .holiday-day {
  color: #e07800;
}

.holiday-date-AE .holiday-day {
  color: #007a2f;
}

.holiday-info {
  flex: 1;
  min-width: 0;
}

.holiday-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.holiday-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.holiday-country-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
}

.holiday-tag-IN {
  background: rgba(255, 153, 0, .12);
  color: #e07800;
}

.holiday-tag-AE {
  background: rgba(0, 150, 57, .12);
  color: #007a2f;
}

.holiday-days-away {
  font-size: 11px;
  color: var(--text-muted);
}

.holiday-days-away.today {
  color: var(--accent);
  font-weight: 600;
}

.holiday-days-away.soon {
  color: var(--warning, #eab308);
  font-weight: 600;
}

.holiday-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.holiday-tag-ev {
  background: rgba(99, 102, 241, .12);
  color: #6366f1;
}

.holiday-item-event {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}

/* Event date block colour variants */
.holiday-date-ev {
  border: 1px solid;
}

.holiday-date-ev-blue {
  background: rgba(59, 130, 246, .12);
  border-color: rgba(59, 130, 246, .3);
}

.holiday-date-ev-blue .holiday-month,
.holiday-date-ev-blue .holiday-day {
  color: #3b82f6;
}

.holiday-date-ev-green {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .3);
}

.holiday-date-ev-green .holiday-month,
.holiday-date-ev-green .holiday-day {
  color: #22c55e;
}

.holiday-date-ev-red {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .3);
}

.holiday-date-ev-red .holiday-month,
.holiday-date-ev-red .holiday-day {
  color: #ef4444;
}

.holiday-date-ev-yellow {
  background: rgba(234, 179, 8, .12);
  border-color: rgba(234, 179, 8, .3);
}

.holiday-date-ev-yellow .holiday-month,
.holiday-date-ev-yellow .holiday-day {
  color: #eab308;
}

.holiday-date-ev-purple {
  background: rgba(168, 85, 247, .12);
  border-color: rgba(168, 85, 247, .3);
}

.holiday-date-ev-purple .holiday-month,
.holiday-date-ev-purple .holiday-day {
  color: #a855f7;
}

.holiday-date-ev-orange {
  background: rgba(249, 115, 22, .12);
  border-color: rgba(249, 115, 22, .3);
}

.holiday-date-ev-orange .holiday-month,
.holiday-date-ev-orange .holiday-day {
  color: #f97316;
}

.holiday-date-ev-pink {
  background: rgba(236, 72, 153, .12);
  border-color: rgba(236, 72, 153, .3);
}

.holiday-date-ev-pink .holiday-month,
.holiday-date-ev-pink .holiday-day {
  color: #ec4899;
}

.holiday-date-ev-teal {
  background: rgba(20, 184, 166, .12);
  border-color: rgba(20, 184, 166, .3);
}

.holiday-date-ev-teal .holiday-month,
.holiday-date-ev-teal .holiday-day {
  color: #14b8a6;
}

.holiday-del-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  padding: 0 2px;
  line-height: 1;
  border-radius: 4px;
}

.holiday-del-btn:hover {
  color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════════
   Task Center / Kanban Board
   ═══════════════════════════════════════════════════════════════ */
.board-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 24px;
  align-items: flex-start;
  min-height: calc(100vh - 250px);
}

.board-column {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  max-height: 800px;
  transition: background-color 0.2s, border-color 0.2s;
}

.board-column.drag-over {
  background-color: color-mix(in srgb, var(--accent) 5%, var(--surface2)) !important;
  border-color: var(--accent) !important;
}

.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  border-color: var(--text-muted);
}

.task-card[draggable="true"]:active {
  cursor: grabbing;
}

/* Draggable Table Rows (for column configuration) */
.draggable-row {
  transition: background-color 0.15s, opacity 0.15s;
}

.draggable-row.dragging {
  opacity: 0.5;
  background-color: var(--surface2) !important;
}

.draggable-row.drag-over {
  border-top: 2px solid var(--accent);
}
