:root {
  --primary-hue: 250;
  --secondary-hue: 190;
  --success-hue: 150;

  --p1: hsl(var(--primary-hue), 80%, 60%);
  --p2: hsl(var(--secondary-hue), 80%, 55%);
  --p3: hsl(var(--success-hue), 70%, 50%);

  --bg-body: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

body {
  font-family: 'Outfit', sans-serif;
  color: #334155;
}

.bg-soft {
  background-color: var(--bg-body);
  background-image:
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0) 0, hsla(253, 16%, 7%, 0) 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0) 0, hsla(225, 39%, 30%, 0) 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0) 0, hsla(339, 49%, 30%, 0) 50%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

.bg-soft::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 15% 50%, rgba(109, 40, 217, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.08), transparent 25%);
  z-index: -1;
  pointer-events: none;
}

/* Glassmorphism Card */
.card-soft {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-soft:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.85);
}

/* Badges & Gradients */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--p1), var(--p2));
}

.btn-rounded {
  border-radius: 50px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.btn-primary {
  background-image: linear-gradient(135deg, var(--p1), var(--p2));
  border: none;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
  transition: all 0.2s;
}

.btn-primary:hover {
  box-shadow: 0 8px 16px rgba(109, 40, 217, 0.35);
  transform: translateY(-1px);
}

/* KPI Cards */
.kpi {
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.kpi:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.kpi .kpi-bg {
  height: 6px;
  background: linear-gradient(90deg, var(--p2), var(--p1));
  opacity: 0.8;
}

.kpi .num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--p1), #334155);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Search Input */
.search-pill {
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding-left: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.search-pill:focus {
  background: white;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
  border-color: var(--p2);
}

/* Hero Section */
.hero {
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  border: 1px solid white;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.05), rgba(14, 165, 233, 0.05));
  z-index: -1;
}

.hero .title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Tables */
.table {
  --bs-table-bg: transparent;
}

.table thead th {
  font-weight: 600;
  color: #64748b;
  border-bottom-width: 1px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.table tbody td {
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.small-muted {
  font-size: 0.875rem;
  color: #94a3b8;
}

.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.grid-7-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .grid-7-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-7-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1400px) {
  .grid-7-cols {
    grid-template-columns: repeat(7, 1fr);
  }
}