/* ═══════════════════════════════════════════════════════════════════════════
   IndiaGST — Design System (Upstream-Inspired)
   Font: Inter · Brand: #0d3d3a · Style: Modern SaaS Bento
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --brand-teal: #0d3d3a;
  --brand-gold: #d4a843;
  --page-padding: 32px;
  --sidebar-w: 260px;
  --sidebar-item-px: 24px;
}

/* ── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scrollbar-gutter: stable; }

body.modal-open { overflow: hidden; padding-right: 0; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #0d3d3a; border-radius: 10px; border: 2px solid #f8fafc; }
::-webkit-scrollbar-thumb:hover { background: #043e3d; }
* { scrollbar-width: thin; scrollbar-color: #0d3d3a #f8fafc; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  color: #1a1a2e;
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 8px;
}
h1 { font-size: 40px; font-weight: 800; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; font-weight: 600; }

p { color: #6b7280; line-height: 1.7; text-align: justify; text-justify: inter-word; }

/* ── Brand Utilities ─────────────────────────────────────────────────────── */
.text-brand   { color: #0d3d3a !important; }
.bg-brand     { background-color: #0d3d3a !important; }
.text-muted   { color: #9ca3af !important; }
.text-dark    { color: #1a1a2e !important; }

/* ── Layout Utilities ────────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }
.gap-12 { gap: 48px; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.w-16 { width: 64px; }
.w-20 { width: 80px; }
.w-24 { width: 96px; }
.w-32 { width: 128px; }
.w-40 { width: 160px; }
.w-48 { width: 192px; }
.w-64 { width: 256px; }
.w-80 { width: 320px; }
.block { display: block; }
.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.text-center { text-align: center; }
.text-justify { text-align: justify !important; text-justify: inter-word !important; }
.text-justify p, .text-justify li { text-align: justify !important; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-1 { margin-top: 4px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.p-6 { padding: 24px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }
.max-w-5xl { max-width: 1024px; }
.max-w-6xl { max-width: 1152px; }
.min-h-screen { min-height: 100vh; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }

.grid { display: grid; }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:block { display: block; }
  .md\:hidden { display: none !important; }
}
.grid-cols-1 { grid-template-columns: 1fr; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-brand {
  background: linear-gradient(135deg, #065251 0%, #0a4645 100%);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(6, 82, 81, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  letter-spacing: -0.1px;
}
.btn-brand:hover {
  background: linear-gradient(135deg, #096362 0%, #0d5351 100%);
  box-shadow: 0 8px 20px rgba(6, 82, 81, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1.5px);
}
.btn-brand:active {
  transform: translateY(0.5px) scale(0.98);
  box-shadow: 0 2px 6px rgba(6, 82, 81, 0.15);
}
.btn-brand:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 82, 81, 0.4);
}

.btn-outline-brand {
  background: #ffffff;
  color: #065251;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 23px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.btn-outline-brand:hover {
  border-color: #065251;
  background: rgba(6, 82, 81, 0.03);
  color: #065251;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}
.btn-outline-brand:active {
  transform: translateY(0.5px) scale(0.98);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  background: #0d3d3a;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.navbar a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-right: 28px;
  transition: color 0.2s;
}
.navbar a:hover { color: #fff; }
.navbar .logo {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-right: auto;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar {
  background: #fff;
  color: #1a1a2e;
  width: 260px;
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 24px 0;
  border-right: 1px solid #e5e7eb;
  box-shadow: 1px 0 3px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar .logo {
  color: #0d3d3a;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0 24px;
  margin-bottom: 32px;
  flex-shrink: 0;
}
.sidebar .menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
}
.sidebar .sidebar-icon {
  font-size: 17px;
  width: 26px;
  min-width: 26px;
  text-align: center;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  border-radius: 6px;
}
.sidebar .menu-item:hover {
  background: #f1f5f9;
  color: #065251;
  padding-left: 28px;
}
.sidebar .menu-item:hover .sidebar-icon {
  transform: scale(1.15);
  color: #065251;
}
.sidebar .menu-item.active {
  background: linear-gradient(135deg, rgba(6,82,81,0.10), rgba(6,82,81,0.05));
  color: #065251;
  font-weight: 700;
  border-left-color: #065251;
}
.sidebar .menu-item.active .sidebar-icon {
  color: #065251;
  transform: scale(1.05);
}
.sidebar .menu-item-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(220, 38, 38, 0.04);
  border: 1.5px solid rgba(220, 38, 38, 0.1);
  border-radius: 10px;
  color: #dc2626 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar .menu-item-logout .sidebar-icon {
  color: #dc2626 !important;
  transition: transform 0.2s ease;
}
.sidebar .menu-item-logout:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
  color: #be123c !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.08);
}
.sidebar .menu-item-logout:hover .sidebar-icon {
  transform: scale(1.15) translateX(2px);
}
.sidebar .menu-item-logout:active {
  transform: translateY(0.5px) scale(0.98);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.05);
}
.sidebar .menu-section {
  font-size: 11px;
  color: #94a3b8;
  padding: 24px 24px 8px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
}

/* ── Stat Cards (Bento) ──────────────────────────────────────────────────── */
/* ── Stat Cards (Bento) ──────────────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stat-card:hover { 
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border-color: #d1d5db;
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
  position: relative;
}
.stat-card:hover .stat-icon {
  transform: rotate(10deg) scale(1.1);
}
.stat-card .stat-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
  fill: none;
  transition: all 0.3s ease;
}
.stat-card .stat-value {
  font-size: 30px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
  margin-bottom: 6px;
  transition: transform 0.3s ease;
}
.stat-card:hover .stat-value {
  transform: translateX(2px);
}
.stat-card .stat-label {
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
}
.stat-card .stat-change {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
}
.stat-change.up { background: #ecfdf5; color: #10b981; }
.stat-change.down { background: #fef2f2; color: #ef4444; }

/* Icon specific glows */
.stat-card .stat-icon[style*="f0faf9"] { box-shadow: 0 4px 12px rgba(13, 61, 58, 0.15); } /* Blue */
.stat-card .stat-icon[style*="ecfdf5"] { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15); } /* Green */
.stat-card .stat-icon[style*="fef3c7"] { box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15); } /* Yellow */
.stat-card .stat-icon[style*="fce7f3"] { box-shadow: 0 4px 12px rgba(236, 72, 153, 0.15); } /* Pink */
.stat-card .stat-icon[style*="f0fdf4"] { box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15); } /* Strong Green */

.stat-card:hover .stat-icon[style*="f0faf9"] { box-shadow: 0 8px 24px rgba(13, 61, 58, 0.25); }
.stat-card:hover .stat-icon[style*="ecfdf5"] { box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25); }
.stat-card:hover .stat-icon[style*="fef3c7"] { box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25); }
.stat-card:hover .stat-icon[style*="fce7f3"] { box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25); }
.stat-card:hover .stat-icon[style*="f0fdf4"] { box-shadow: 0 8px 24px rgba(34, 197, 94, 0.25); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
table { font-size: 14px; width: 100%; border-collapse: collapse; }
thead { background: #f9fafb; }
th {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 16px;
  text-align: left;
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 14px;
}
tr:hover td { background: #f9fafb; }
tr:last-child td { border-bottom: none; }

/* ── Form Inputs ─────────────────────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="search"],
input[type="date"], input[type="time"], input[type="month"],
select, textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  outline: none;
  width: 100%;
  color: #1a1a2e;
  background: #fff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px !important;
}
input:focus, select:focus, textarea:focus {
  border-color: #0d3d3a;
  box-shadow: 0 0 0 4px rgba(13, 61, 58,0.1);
}
input::placeholder { color: #94a3b8; }
input:disabled { background: #f8fafc; color: #94a3b8; cursor: not-allowed; }
label {
  font-size: 13px;
  color: #374151;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

/* ── Badges & Status Pills ───────────────────────────────────────────────── */
.badge {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.badge-active  { background: #ecfdf5; color: #059669; }
.badge-active::before  { background: #10b981; }
.badge-inactive { background: #fef2f2; color: #dc2626; }
.badge-inactive::before { background: #ef4444; }
.badge-pending { background: #fffbeb; color: #d97706; }
.badge-pending::before { background: #f59e0b; }
.badge-new     { background: #f0faf9; color: #0d3d3a; }
.badge-new::before     { background: #115e59; }
.badge-gold    { background: #fef9e7; color: #b7791f; }
.badge-gold::before    { background: #d4a843; }

/* ── Segment / Tab Picker ────────────────────────────────────────────────── */
.segment-picker {
  display: inline-flex;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
  gap: 2px;
}
.segment-picker .seg-item {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
}
.segment-picker .seg-item:hover { color: #1a1a2e; }
.segment-picker .seg-item.active {
  background: #fff;
  color: #0d3d3a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Layout Standard ─────────────────────────────────────────────────────── */
.layout-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Flash Messages (Toasts) ────────────────────────────────────────────── */
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.animate-slide-down { animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }

#app-toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 100%;
  max-width: 600px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flash {
  pointer-events: auto;
  padding: 16px 24px;
  font-size: 14px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  border: 1px solid transparent;
  background: #fff;
}
.flash-success { background: #ecfdf5; color: #059669; border-color: #a7f3d0; }
.flash-error   { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.flash-info    { background: #f0faf9; color: #0d3d3a; border-color: #bfdbfe; }


/* ── Pricing Cards ───────────────────────────────────────────────────────── */
.plan-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
  position: relative;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.plan-card.popular { border: 2px solid #0d3d3a; }
.plan-card .plan-price {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a2e;
}
.plan-card .plan-name {
  font-size: 18px;
  font-weight: 700;
  color: #0d3d3a;
  margin-bottom: 4px;
}

/* ── Progress Ring ───────────────────────────────────────────────────────── */
.progress-ring {
  width: 120px;
  height: 120px;
  position: relative;
}
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .ring-bg { stroke: #e5e7eb; fill: none; stroke-width: 8; }
.progress-ring .ring-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 0.5s ease; }
.progress-ring .ring-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.progress-ring .ring-value { font-size: 24px; font-weight: 800; color: #1a1a2e; display: block; }
.progress-ring .ring-label { font-size: 11px; color: #9ca3af; font-weight: 500; }

/* ── Search Input (Dashboard) ────────────────────────────────────────────── */
.search-pill {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px 4px 4px 16px;
  gap: 8px;
  transition: border-color 0.2s;
}
.search-pill:focus-within { border-color: #0d3d3a; box-shadow: 0 0 0 3px rgba(13, 61, 58,0.08); }
.search-pill input {
  border: none !important;
  padding: 10px 0 !important;
  box-shadow: none !important;
  font-size: 14px;
}
.search-pill input:focus { box-shadow: none !important; }
.search-pill .search-btn {
  background: #0d3d3a;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

/* ── Bento Grid ──────────────────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
.bento-grid-6 { grid-template-columns: repeat(6, 1fr); }
.bento-grid-5 { grid-template-columns: repeat(5, 1fr); }
.bento-grid-4 { grid-template-columns: repeat(4, 1fr); }
.bento-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bento-grid-2 { grid-template-columns: repeat(2, 1fr); }

.span-1 { grid-column: span 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

/* Ensure cards in bento grid stretch */
.bento-grid > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Activity List ───────────────────────────────────────────────────────── */
.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity-icon svg { width: 20px; height: 20px; stroke-width: 2; fill: none; }
.activity-text { flex: 1; }
.activity-title { font-size: 14px; font-weight: 600; color: #1a1a2e; }
.activity-meta { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.activity-time { font-size: 12px; color: #9ca3af; font-weight: 500; white-space: nowrap; }

/* ── Extended Utility Classes ────────────────────────────────────────────── */

/* Typography sizes */
.text-xs   { font-size: 12px; }
.text-sm   { font-size: 13px; }
.text-lg   { font-size: 18px; }
.text-xl   { font-size: 20px; }
.text-2xl  { font-size: 24px; }
.text-3xl  { font-size: 30px; }
.text-4xl  { font-size: 36px; }
.text-6xl  { font-size: 60px; }

/* Font weights */
.font-medium  { font-weight: 500; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }
.font-mono    { font-family: 'Courier New', Courier, monospace; }
.uppercase    { text-transform: uppercase; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight   { letter-spacing: -0.025em; }
.tracking-wide    { letter-spacing: 0.025em; }
.tracking-wider   { letter-spacing: 0.05em; }
.tracking-widest  { letter-spacing: 0.1em; }

/* Text colors */
.text-white      { color: #ffffff !important; }
.text-gray-400   { color: #9ca3af !important; }
.text-gray-500   { color: #6b7280 !important; }
.text-gray-600   { color: #4b5563 !important; }
.text-gray-700   { color: #374151 !important; }
.text-gray-800   { color: #1f2937 !important; }
.text-green-600  { color: #16a34a !important; }
.text-green-700  { color: #15803d !important; }
.text-red-500    { color: #ef4444 !important; }
.text-red-600    { color: #dc2626 !important; }
.text-red-700    { color: #b91c1c !important; }

/* Background colors */
.bg-white      { background-color: #ffffff !important; }
.bg-gray-50    { background-color: #f9fafb !important; }
.bg-gray-100   { background-color: #f3f4f6 !important; }
.bg-gray-200   { background-color: #e5e7eb !important; }
.bg-teal-50    { background-color: #f0fdfa !important; }
.bg-green-50   { background-color: #f0fdf4 !important; }
.bg-red-50     { background-color: #fef2f2 !important; }
.bg-black.bg-opacity-50,
.bg-opacity-50 { background-color: rgba(0,0,0,0.5) !important; }

/* Opacity */
.opacity-0   { opacity: 0; }
.opacity-50  { opacity: 0.5; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow    { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05); }

/* Max-widths */
.max-w-sm  { max-width: 384px; }
.max-w-md  { max-width: 448px; }
.max-w-2xl { max-width: 672px; }

/* Padding */
.p-2  { padding: 8px; }
.p-4  { padding: 16px; }
.p-8  { padding: 32px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.py-1 { padding-top: 4px;  padding-bottom: 4px; }
.py-2 { padding-top: 8px;  padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }

/* Margin additions */
.m-0     { margin: 0 !important; }
.mb-0    { margin-bottom: 0 !important; }
.mb-1    { margin-bottom: 4px; }
.mb-3    { margin-bottom: 12px; }
.mt-2    { margin-top: 8px; }
.mt-6    { margin-top: 24px; }
.ml-auto { margin-left: auto; }

/* Sizing */
.h-4    { height: 16px; }
.h-8    { height: 32px; }
.h-12   { height: 48px; }
.h-full { height: 100%; }
.w-8    { width: 32px; }
.w-12   { width: 48px; }
.w-40   { width: 160px; }

/* Position */
.fixed     { position: fixed; }
.absolute  { position: absolute; }
.inset-0   { top: 0; right: 0; bottom: 0; left: 0; }
.left-0    { left: 0; }
.-bottom-5 { bottom: -20px; }

/* Border */
.border-2           { border: 2px solid; }
.border-b-2         { border-bottom-width: 2px; border-bottom-style: solid; }
.border-l-4         { border-left-width: 4px; border-left-style: solid; }
.border-t-4         { border-top-width: 4px; border-top-style: solid; }
.border-dashed      { border-style: dashed !important; }
.border-brand       { border-color: #0d3d3a !important; }
.border-gray-300    { border-color: #d1d5db !important; }
.border-t-green-500 { border-top-color: #22c55e !important; }

/* Border radius */
.rounded      { border-radius: 6px; }
.rounded-lg   { border-radius: 12px; }
.rounded-full { border-radius: 9999px; }

/* Flex additions */
.items-end    { align-items: flex-end; }
.justify-end  { justify-content: flex-end; }

/* Grid additions */
.grid-cols-2  { grid-template-columns: repeat(2, 1fr); }
.col-span-2   { grid-column: span 2; }
.gap-2        { gap: 8px; }
.gap-3        { gap: 12px; }
.space-y-4 > * + * { margin-top: 16px; }

/* Display */
.inline-block   { display: inline-block; }
.cursor-pointer { cursor: pointer; }

/* Hover utilities */
.hover\:underline:hover       { text-decoration: underline; }
.hover\:text-gray-600:hover   { color: #4b5563 !important; }
.hover\:bg-gray-300:hover     { background-color: #d1d5db !important; }
.hover\:border-brand:hover    { border-color: #0d3d3a !important; }

/* Transitions */
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-all    { transition: all 0.2s; }
.duration-300      { transition-duration: 300ms; }

/* Spin animation */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* ── Sidebar Toggle ─────────────────────────────────────────────────────── */
#sidebar-toggle { display: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #sidebar-toggle { display: inline-flex; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; flex-direction: column; position: fixed; z-index: 1000; top: 0; left: 0; width: 280px; height: 100vh; overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,0.15); }
  .bento-grid-6, .bento-grid-5, .bento-grid-4, .bento-grid-3, .bento-grid-2, .bento-grid-2-1, .bento-grid-1-2 { grid-template-columns: 1fr; }
  .bento-span-2, .bento-span-3, .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; }
  table { display: block; overflow-x: auto; }
  .navbar { padding: 0 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .hidden-mobile { display: none !important; }
  main { padding: 16px !important; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
/* ── Footer ──────────────────────────────────────────────────────────────── */
.main-footer {
  margin-top: auto;
  padding: 40px 20px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
  background: #f9fafb;
}
.main-footer .disclaimer {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.8;
  text-align: justify;
  text-justify: inter-word;
}
.main-footer strong {
  color: #374151;
  font-weight: 600;
}

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.badge-active {
  background: #ecfdf5;
  color: #065f46;
}
.badge-active::before { background: #10b981; }

.badge-inactive {
  background: #fef2f2;
  color: #991b1b;
}
.badge-inactive::before { background: #ef4444; }

/* ── Legal Documents ─────────────────────────────────────────────────────── */
.legal-document {
  line-height: 1.8;
  color: #1f2937;
  font-family: 'Inter', sans-serif;
}
.legal-document h1 {
  text-align: center !important;
  color: #0d3d3a;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0faf9;
}
.legal-document h2 {
  text-align: center !important;
  color: #0d3d3a;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 48px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  display: block;
}
.legal-document h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #d4a843;
  margin: 8px auto 0;
  border-radius: 2px;
}
.legal-document p, 
.legal-document li {
  text-align: justify !important;
  text-justify: inter-word !important;
  margin-bottom: 1.25rem;
}
.legal-document ul, 
.legal-document ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.legal-document li {
  padding-left: 0.5rem;
}
.legal-document strong {
  color: #111827;
  font-weight: 700;
}
.legal-document .highlight-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 32px;
}
