/* ==============================================================================
   DIYA MYTHRI — FINANCIAL & LEADS ADMIN DASHBOARD STYLES
   Exact reproduction of the soft-claymorphism reference design
   Color Palette: Warm Neutral Canvas (#EDEBE8), Card (#FFFFFF), Coral (#E85D3F),
   Charcoal (#181818), Soft Salmon (#FBECE8), Stone (#F5F4F0)
   ============================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & DESIGN VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --canvas-bg: #EAE9E5;
  --dash-card-bg: #FCFCFA;
  --surface-white: #FFFFFF;
  --surface-subtle: #F6F5F1;
  --surface-border: #E8E6E0;
  --surface-border-subtle: #F0EFEA;
  
  --coral-accent: #E85D3F;
  --coral-hover: #D44D30;
  --coral-light: #FBECE8;
  --coral-glow: rgba(232, 93, 63, 0.16);

  --charcoal-black: #181818;
  --charcoal-soft: #242424;
  --text-main: #1A1918;
  --text-muted: #8E8B84;
  --text-light: #B4B0A7;

  --shadow-ambient: 0 16px 40px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.025);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.08);

  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--canvas-bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

input, select, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   2. MAIN DASHBOARD CONTAINER (Soft Claymorphism Shell)
   -------------------------------------------------------------------------- */
.dashboard-viewport {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.dashboard-card-container {
  background-color: var(--dash-card-bg);
  border-radius: var(--radius-xl);
  padding: 36px 40px 44px;
  box-shadow: var(--shadow-ambient);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

/* --------------------------------------------------------------------------
   3. TOP NAVIGATION BAR
   -------------------------------------------------------------------------- */
.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-pill-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-black);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.icon-pill-btn:hover {
  background: var(--surface-subtle);
  transform: translateY(-1px);
}

.brand-monogram-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--charcoal-black);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.dash-title-group {
  display: flex;
  flex-direction: column;
}

.dash-main-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.15;
}

.dash-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Topbar Right */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.round-add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.round-add-btn:hover {
  background: var(--coral-accent);
  color: #FFFFFF;
  border-color: var(--coral-accent);
  transform: scale(1.05);
}

.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 18px 4px 5px;
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  cursor: pointer;
}
.user-profile-pill:hover {
  background: var(--surface-subtle);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.profile-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.profile-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.capsule-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  min-width: 210px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.capsule-search .search-icon {
  color: var(--text-light);
}

.capsule-search input {
  background: transparent;
  font-size: 0.82rem;
  color: var(--text-main);
  width: 100%;
}
.capsule-search input::placeholder {
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   4. SUBHEADER ROW (Date Capsule & Assistant Hero Greeting)
   -------------------------------------------------------------------------- */
.dash-subheader-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}

/* Left: Date Capsule */
.date-tasks-capsule {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 6px 12px 6px 6px;
  box-shadow: var(--shadow-card);
}

.date-badge-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.date-text-block {
  display: flex;
  flex-direction: column;
  padding-right: 6px;
  line-height: 1.2;
}

.day-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.month-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.coral-pill-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--coral-accent);
  color: #FFFFFF;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--coral-glow);
}
.coral-pill-btn:hover {
  background: var(--coral-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 93, 63, 0.28);
}

.calendar-pill-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-black);
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.calendar-pill-btn:hover {
  background: var(--surface-subtle);
}

.notify-red-dot {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 7px;
  height: 7px;
  background: var(--coral-accent);
  border-radius: 50%;
  border: 1.5px solid var(--surface-white);
}

/* Right: Assistant Greeting Card */
.assistant-greeting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 16px 28px;
  box-shadow: var(--shadow-card);
}

.greeting-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.greeting-subtitle {
  font-size: 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-light);
  line-height: 1.2;
}

.mic-round-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-black);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.mic-round-btn:hover {
  background: var(--coral-light);
  color: var(--coral-accent);
  border-color: var(--coral-accent);
}

/* --------------------------------------------------------------------------
   5. MIDDLE GRID: CARDS & METRICS
   -------------------------------------------------------------------------- */
.dash-middle-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.65fr 0.75fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}

/* Common Card Base Style */
.visa-card,
.metrics-split-card,
.sla-time-card,
.bar-benchmark-card,
.trend-spline-card,
.annual-profits-card,
.activity-manager-card,
.review-rating-card {
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
}

/* 5.1 Column 1: Vertical Slider + VISA Card */
.visa-col-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vertical-slider-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 32px;
  height: 100%;
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 10px 0;
  box-shadow: var(--shadow-card);
}

.slider-icon-btn {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}
.slider-icon-btn:hover {
  color: var(--coral-accent);
}

.slider-track {
  width: 4px;
  height: 70px;
  background: var(--surface-subtle);
  border-radius: 4px;
  position: relative;
  display: flex;
  justify-content: center;
}

.slider-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  position: absolute;
  top: 35%;
  cursor: grab;
}

.visa-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 215px;
}

.visa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.visa-logo {
  font-size: 1.15rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.5px;
  color: var(--charcoal-black);
}

.dropdown-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.card-link-text {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 10px;
}

.card-number-masked {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-main);
  margin: 4px 0 12px;
}

.card-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-action-black {
  background: var(--charcoal-black);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
}
.pill-action-black:hover {
  background: var(--charcoal-soft);
  transform: translateY(-1px);
}

.pill-action-light {
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
}
.pill-action-light:hover {
  background: var(--surface-border);
}

.visa-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-border-subtle);
}

.fee-group {
  display: flex;
  flex-direction: column;
}

.fee-label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.fee-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-limit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coral-accent);
}
.card-limit-btn:hover {
  text-decoration: underline;
}

.limit-icon-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-accent);
}

/* 5.2 Column 2: Split Metric Card (Total Income & Total Paid) */
.metrics-split-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
}

.metric-half {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.top-half {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--surface-border-subtle);
}

.bottom-half {
  padding-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
}

.bottom-half .chart-mode-link {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.metric-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.metric-details {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.pill-dropdown-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.chart-mode-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coral-accent);
}
.chart-mode-link:hover {
  text-decoration: underline;
}

.coral-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral-accent);
}

/* 5.3 Column 3: Security & Circular Donut Widget */
.security-donut-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.system-lock-card {
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.2s ease;
}
.system-lock-card:hover {
  background: var(--surface-subtle);
  transform: translateY(-1px);
}

.system-lock-card .lock-icon {
  color: var(--charcoal-black);
}

.lock-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
}

.lock-status-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Circular Donut Ring */
.donut-growth-card {
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.donut-svg-wrapper {
  width: 72px;
  height: 72px;
  position: relative;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-track {
  fill: none;
  stroke: var(--charcoal-black);
  stroke-width: 12;
}

.donut-fill {
  fill: none;
  stroke: var(--coral-accent);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}

.donut-center-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-percentage {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.donut-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 5.4 Column 4: SLA Time Card & Benchmark Bar */
.time-benchmark-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sla-time-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sla-icon {
  color: var(--text-muted);
}

.sla-time-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

.sla-subtext {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.dot-matrix-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.dot-matrix-grid .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--surface-border);
}

.dot-matrix-grid .dot.active {
  background: var(--coral-accent);
}

.bar-benchmark-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.benchmark-header {
  color: var(--text-muted);
}

.benchmark-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.pill-year {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.pill-year.gray {
  background: var(--surface-subtle);
  color: var(--text-muted);
}

.pill-year.coral {
  background: var(--coral-accent);
  color: #FFFFFF;
}

.benchmark-bars-vis {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 38px;
  padding-bottom: 2px;
}

.bar-line {
  width: 6px;
  border-radius: 4px;
}

.bar-line.gray {
  background: var(--surface-border);
}

.bar-line.coral {
  background: var(--coral-accent);
}

/* 5.5 Column 5: Trend Line Card ($16,073.49 / +9.3% / Main Stocks) */
.trend-spline-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px;
}

.trend-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.trend-icon-badge {
  color: var(--text-muted);
}

.trend-amount-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.trend-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.trend-delta-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coral-accent);
  background: var(--coral-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-top: 3px;
}

.spline-svg-wrapper {
  width: 100%;
  height: 56px;
  margin: 10px 0 6px;
}

.spline-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trend-bottom-meta {
  display: flex;
  flex-direction: column;
}

.stocks-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.stocks-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. BOTTOM ROW: ANNUAL PROFITS, ACTIVITY MANAGER & REVIEW RATING
   -------------------------------------------------------------------------- */
.dash-bottom-grid {
  display: grid;
  grid-template-columns: 0.95fr 2.3fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.box-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-header-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* 6.1 Annual Profits Concentric Circles */
.annual-profits-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.concentric-circles-funnel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 16px;
  flex: 1;
}

.circle-layer {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.layer-4 {
  width: 190px;
  height: 190px;
  background: #F8EFE9;
}

.layer-3 {
  width: 148px;
  height: 148px;
  background: #F4DFD5;
}

.layer-2 {
  width: 108px;
  height: 108px;
  background: #EEB5A3;
}

.layer-1 {
  width: 70px;
  height: 70px;
  background: var(--coral-accent);
}

.circle-label {
  position: absolute;
  font-weight: 700;
}

.label-4 {
  top: 8px;
  font-size: 0.75rem;
  color: #8C6A5A;
}

.label-3 {
  top: 8px;
  font-size: 0.74rem;
  color: #7D4C3A;
}

.label-2 {
  top: 8px;
  font-size: 0.72rem;
  color: #5D2A1A;
}

.label-1 {
  font-size: 0.78rem;
  color: #FFFFFF;
}

/* 6.2 Center Card: Activity Manager */
.activity-manager-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
}

.activity-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.activity-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  flex: 1;
  max-width: 240px;
}

.activity-search-pill svg {
  color: var(--text-light);
}

.activity-search-pill input {
  background: transparent;
  font-size: 0.76rem;
  color: var(--text-main);
  width: 100%;
}
.activity-search-pill input::placeholder {
  color: var(--text-light);
}

.activity-filters-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  cursor: pointer;
}
.filter-chip.active {
  color: var(--coral-accent);
  background: var(--coral-light);
  border-color: rgba(232, 93, 63, 0.3);
}

.filter-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.filter-action-btn:hover {
  background: var(--surface-subtle);
}

/* 3 Sub-Cards */
.activity-subcards-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 14px;
}

/* Sub-Card 1: Mini Bar Chart */
.subcard-mini-metric {
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subcard-metric-head {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.subcard-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.subcard-curr {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mini-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 44px;
  margin: 10px 0 6px;
}

.mbar {
  flex: 1;
  border-radius: 4px;
}

.mbar.gray {
  background: #DDD8CE;
}

.mbar.coral {
  background: var(--coral-accent);
}

.mini-chart-dots {
  display: flex;
  gap: 4px;
}

.cdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--surface-border);
}

.cdot.active {
  background: var(--coral-accent);
}

/* Sub-Card 2: Business Plans */
.subcard-business-plans {
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plans-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plans-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.three-dots-btn {
  font-size: 1.1rem;
  color: var(--text-light);
}

.plans-stepper-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.plan-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
}

.step-dot.coral {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral-accent);
}

.step-chevron {
  font-size: 0.7rem;
  color: var(--text-light);
  margin-left: auto;
}

/* Sub-Card 3: Wallet Verification / Lead Alerts */
.subcard-wallet-verification {
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sunburst-icon-wrap {
  margin-bottom: 4px;
}

.wallet-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.wallet-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin: 4px 0 10px;
}

.coral-pill-cta {
  background: var(--coral-accent);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  font-size: 0.76rem;
  font-weight: 600;
  align-self: flex-start;
  box-shadow: 0 3px 10px var(--coral-glow);
}
.coral-pill-cta:hover {
  background: var(--coral-hover);
}

/* Dynamic Live Leads Feed Area */
.leads-quick-feed-container {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-border-subtle);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.feed-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.live-sync-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #10B981;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.leads-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-feed-item {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface-white);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}
.lead-feed-item:hover {
  background: var(--surface-subtle);
  transform: translateX(2px);
}

.feed-client-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.feed-client-email {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.feed-service-tag {
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--surface-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-badge-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

.status-badge-chip.New {
  background: var(--coral-light);
  color: var(--coral-accent);
}
.status-badge-chip.Contacted {
  background: #E0F2FE;
  color: #0369A1;
}
.status-badge-chip.InProgress,
.status-badge-chip.In-Progress {
  background: #FEF3C7;
  color: #B45309;
}
.status-badge-chip.Closed {
  background: #D1FAE5;
  color: #047857;
}

/* 6.3 Card 3: Review Rating Card */
.review-rating-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.rating-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating-dots {
  display: flex;
  gap: 4px;
}

.dot-sm {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-light);
}

.close-rating-btn {
  font-size: 0.75rem;
  color: var(--text-light);
}

.review-tagline {
  font-size: 0.74rem;
  color: var(--text-light);
  margin-top: 10px;
}

.review-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin: 6px 0 20px;
}

.emoji-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 12px;
}

.emoji-reaction-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.emoji-reaction-btn:hover,
.emoji-reaction-btn.active {
  background: var(--surface-white);
  color: var(--coral-accent);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   7. MODAL / EXPANDED LEADS MANAGEMENT DRAWER
   -------------------------------------------------------------------------- */
.leads-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 17, 16, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.leads-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.leads-modal-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 1060px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.leads-modal-backdrop.open .leads-modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid var(--surface-border-subtle);
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.modal-badge {
  width: 44px;
  height: 44px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}
.modal-pill-btn:hover {
  background: var(--surface-border);
}

.close-modal-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
}
.close-modal-btn:hover {
  background: #EAE8E2;
  color: var(--text-main);
}

/* Modal Search & Filter Tabs */
.modal-search-bar {
  padding: 16px 32px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.modal-search-bar input {
  flex: 1;
  min-width: 260px;
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.status-tabs {
  display: flex;
  gap: 8px;
}

.status-tab {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
}
.status-tab.active {
  background: var(--charcoal-black);
  color: #FFFFFF;
  border-color: var(--charcoal-black);
}

/* Table */
.modal-table-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 0 32px;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leads-table th {
  padding: 14px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  background: #FFFFFF;
  z-index: 2;
}

.leads-table td {
  padding: 14px 12px;
  font-size: 0.82rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--surface-border-subtle);
  vertical-align: middle;
}

.client-name-cell {
  font-weight: 700;
}

.client-contact-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.client-contact-cell a {
  color: var(--text-muted);
  font-size: 0.76rem;
}
.client-contact-cell a:hover {
  color: var(--coral-accent);
  text-decoration: underline;
}

.status-select {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  background: var(--surface-subtle);
  cursor: pointer;
}

.row-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
}
.action-icon-btn:hover {
  background: var(--coral-light);
  color: var(--coral-accent);
}

.modal-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--surface-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-white);
}

.modal-footer-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.modal-footer-link:hover {
  color: var(--coral-accent);
}

/* Toast Alert */
.dash-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--charcoal-black);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
}

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

/* --------------------------------------------------------------------------
   8. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .dash-middle-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .time-benchmark-col,
  .trend-spline-card {
    grid-column: span 1;
  }
  .dash-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .activity-manager-card {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .dashboard-card-container {
    padding: 24px 20px;
  }
  .dash-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .topbar-right {
    justify-content: space-between;
  }
  .dash-subheader-row {
    grid-template-columns: 1fr;
  }
  .dash-middle-grid {
    grid-template-columns: 1fr;
  }
  .dash-bottom-grid {
    grid-template-columns: 1fr;
  }
  .activity-manager-card {
    grid-column: span 1;
  }
  .activity-subcards-row {
    grid-template-columns: 1fr;
  }
}
