:root {
  --c-bg: #efeae2;
  --c-card: rgba(255, 255, 255, 0.84);
  --c-border: rgba(192, 164, 105, 0.18);
  --c-gold: #c0a469;
  --c-gold-dark: #a88945;
  --c-olive: #7a8450;
  --c-taupe: #3c3a34;
  --c-muted: #7b766d;
  --c-danger: #c56b57;
  --c-info: #89b6c7;
  --c-shadow: 0 16px 40px rgba(60, 58, 52, 0.08);
}

.command-shell {
  position: relative;
}

.command-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 15%, rgba(192, 164, 105, 0.1), transparent 25%),
    radial-gradient(circle at 90% 8%, rgba(122, 132, 80, 0.08), transparent 22%);
  pointer-events: none;
  z-index: 0;
}

.command-shell > * {
  position: relative;
  z-index: 1;
}

.lux-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.76));
  border: 1px solid var(--c-border);
  border-radius: 26px;
  box-shadow: var(--c-shadow);
  backdrop-filter: blur(12px);
  height: 100%;
}

.lux-card-header {
  padding: 1.1rem 1.2rem 0.85rem;
  border-bottom: 1px solid rgba(192, 164, 105, 0.12);
}

.lux-card-body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-taupe);
  margin-bottom: 0.15rem;
}

.section-subtitle {
  font-size: 0.82rem;
  color: var(--c-muted);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
    linear-gradient(135deg, rgba(192, 164, 105, 0.14), rgba(122, 132, 80, 0.08));
  border: 1px solid var(--c-border);
  box-shadow: var(--c-shadow);
}

.hero-watermark {
  position: absolute;
  right: 2rem;
  bottom: -0.5rem;
  color: rgba(192, 164, 105, 0.08);
  font-size: 6rem;
  line-height: 1;
  font-weight: 900;
  user-select: none;
  pointer-events: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(192, 164, 105, 0.18);
  color: var(--c-taupe);
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.filter-label {
  font-size: 0.75rem;
  color: var(--c-muted);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.dashboard-premium .form-control,
.dashboard-premium .form-select {
  border-radius: 14px;
  border: 1px solid rgba(192, 164, 105, 0.2);
  min-height: 44px;
  box-shadow: none !important;
}

.btn-lux {
  background: linear-gradient(135deg, var(--c-gold), var(--c-gold-dark));
  color: #fff;
  border: none;
  border-radius: 14px;
  min-height: 44px;
  font-weight: 700;
  padding: 0 1rem;
}

.btn-lux:hover,
.btn-lux:focus {
  color: #fff;
  background: linear-gradient(135deg, #b89959, #987a3d);
}

.btn-lux-outline {
  background: rgba(255, 255, 255, 0.8);
  color: var(--c-taupe);
  border: 1px solid rgba(192, 164, 105, 0.22);
  border-radius: 14px;
  min-height: 44px;
  font-weight: 700;
  padding: 0 1rem;
}

.metric-card {
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(60, 58, 52, 0.1);
}

.metric-label {
  color: var(--c-muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.metric-value {
  color: var(--c-taupe);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.metric-meta {
  color: #8d867b;
  font-size: 0.77rem;
}

.metric-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(192, 164, 105, 0.18);
  flex-shrink: 0;
}

.icon-gold {
  background: rgba(192, 164, 105, 0.12);
  color: var(--c-gold-dark);
}

.icon-olive {
  background: rgba(122, 132, 80, 0.12);
  color: var(--c-olive);
}

.icon-dark {
  background: rgba(60, 58, 52, 0.08);
  color: var(--c-taupe);
}

.icon-danger {
  background: rgba(197, 107, 87, 0.1);
  color: var(--c-danger);
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge-gold {
  background: rgba(192, 164, 105, 0.14);
  color: var(--c-gold-dark);
  border: 1px solid rgba(192, 164, 105, 0.18);
}

.badge-olive {
  background: rgba(122, 132, 80, 0.14);
  color: var(--c-olive);
  border: 1px solid rgba(122, 132, 80, 0.18);
}

.badge-dark {
  background: rgba(60, 58, 52, 0.08);
  color: var(--c-taupe);
  border: 1px solid rgba(60, 58, 52, 0.1);
}

.badge-info {
  background: rgba(137, 182, 199, 0.14);
  color: #56879b;
  border: 1px solid rgba(137, 182, 199, 0.18);
}

.badge-danger {
  background: rgba(197, 107, 87, 0.12);
  color: var(--c-danger);
  border: 1px solid rgba(197, 107, 87, 0.18);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.status-box {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(192, 164, 105, 0.14);
}

.status-box .label {
  font-size: 0.75rem;
  color: var(--c-muted);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.status-box .value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--c-taupe);
  line-height: 1;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.summary-tile {
  padding: 0.95rem;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(192, 164, 105, 0.14);
}

.summary-tile .label {
  font-size: 0.75rem;
  color: var(--c-muted);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.summary-tile .value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-taupe);
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1rem;
}

.kanban-column {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(192, 164, 105, 0.14);
  border-radius: 20px;
  min-height: 230px;
}

.kanban-column-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(192, 164, 105, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--c-taupe);
  font-weight: 800;
}

.kanban-column-body {
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.task-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(192, 164, 105, 0.14);
  border-radius: 18px;
  padding: 0.9rem;
  box-shadow: 0 6px 18px rgba(60, 58, 52, 0.04);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.task-card:hover,
.list-card:hover,
.perf-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(60, 58, 52, 0.07);
}

.task-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--c-taupe);
  margin-bottom: 0.3rem;
}

.task-meta {
  color: var(--c-muted);
  font-size: 0.77rem;
  margin-bottom: 0.2rem;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.list-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(192, 164, 105, 0.14);
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.avatar-box {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(192, 164, 105, 0.14);
}

.avatar-gold {
  background: rgba(192, 164, 105, 0.14);
  color: var(--c-gold-dark);
}

.avatar-olive {
  background: rgba(122, 132, 80, 0.14);
  color: var(--c-olive);
}

.avatar-dark {
  background: rgba(60, 58, 52, 0.08);
  color: var(--c-taupe);
}

.list-content {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--c-taupe);
  margin-bottom: 0.15rem;
}

.list-subtitle,
.list-meta {
  font-size: 0.78rem;
  color: var(--c-muted);
}

.perf-row {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(192, 164, 105, 0.14);
  border-radius: 18px;
  padding: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.progress-thin {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(60, 58, 52, 0.08);
}

.progress-thin > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-gold), var(--c-olive));
}

.empty-state {
  padding: 1rem;
  text-align: center;
  color: var(--c-muted);
  font-size: 0.86rem;
}

.btn-selfie {
  border-radius: 12px;
  border: 1px solid rgba(192, 164, 105, 0.22);
  color: var(--c-taupe);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.42rem 0.72rem;
}

#liveMap {
  height: 420px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(192, 164, 105, 0.14);
}

@media (max-width: 1399px) {
  .kanban-board {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .status-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .kanban-board,
  .summary-grid,
  .status-strip,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .hero-watermark {
    display: none;
  }

  #liveMap {
    height: 300px;
  }
}