/* =========================================================
   UndrIntel / AppIntel CSS for UndrAds Sales CRM
   Fully responsive with comprehensive Dark Mode & Light Mode support
   ========================================================= */

#appIntelView:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: calc(100dvh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 24px;
  background: var(--bg-main, #f8fafc);
  color: var(--text-main, #1e293b);
  box-sizing: border-box;
}

body.dark-mode #appIntelView:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: var(--bg-main, #0f172a);
  color: var(--text-main, #f8fafc);
}

/* Header & Tabs */
.appintel-header:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.appintel-tabs-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

body.dark-mode .appintel-tabs-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-bottom-color: #334155;
}

.appintel-tab-group:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  gap: 8px;
  align-items: center;
}

.appintel-tab-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.appintel-tab-btn:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #0f172a;
  background: #e2e8f0;
}

.appintel-tab-btn.active:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #ffffff !important;
  background: var(--primary-blue, #3b82f6) !important;
}

body.dark-mode .appintel-tab-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

body.dark-mode .appintel-tab-btn:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .appintel-tab-btn.active:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #ffffff !important;
  background: var(--primary-blue, #3b82f6) !important;
}

.appintel-badge-count:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.appintel-tab-btn.active .appintel-badge-count:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

body.dark-mode .appintel-badge-count:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.appintel-actions-group:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Live Realtime Sync Status Indicator */
.live-sync-indicator:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #059669;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: default;
  transition: all 0.2s ease;
}

body.dark-mode .live-sync-indicator:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.live-pulse-dot:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  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); }
}

.btn-download-top:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-download-top:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #d1fae5;
}

body.dark-mode .btn-download-top:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

body.dark-mode .btn-download-top:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(16, 185, 129, 0.22);
}

/* Universal Filter Toolbar */
.appintel-filters-bar:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.dark-mode .appintel-filters-bar:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #1e293b;
  border-color: #334155;
  box-shadow: none;
}

.appintel-search-box:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 220px;
}

.appintel-search-box .search-icon:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  position: absolute;
  left: 10px;
  pointer-events: none;
  font-size: 13px;
  color: #94a3b8;
  z-index: 2;
}

.appintel-search-box input#appIntelSearchInput:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 32px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  color: #0f172a !important;
  font-size: 12.5px !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.appintel-search-box input#appIntelSearchInput:focus:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15) !important;
}

body.dark-mode .appintel-search-box input#appIntelSearchInput:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(0, 0, 0, 0.25) !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .appintel-search-box input#appIntelSearchInput:focus:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25) !important;
}

/* Custom Multi-Select Dropdowns */
.custom-dropdown:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  position: relative;
  display: inline-block;
}

.custom-dropdown-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.custom-dropdown-btn:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #f8fafc;
  border-color: #94a3b8;
}

.custom-dropdown-btn.active:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
}

body.dark-mode .custom-dropdown-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(0, 0, 0, 0.2);
  border-color: #334155;
  color: #f8fafc;
}

body.dark-mode .custom-dropdown-btn:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.05);
  border-color: #64748b;
}

body.dark-mode .custom-dropdown-btn.active:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  color: #60a5fa;
}

.cdd-chevron:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 10px;
  opacity: 0.7;
}

.custom-dropdown-panel:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
  width: 280px;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.dark-mode .custom-dropdown-panel:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.custom-dropdown-panel.hidden:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: none !important;
}

.cdd-search:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  padding: 8px;
  border-bottom: 1px solid #e2e8f0;
}

body.dark-mode .cdd-search:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-bottom-color: #334155;
}

.cdd-search input:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
  color: #0f172a;
  outline: none;
}

body.dark-mode .cdd-search input:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(0, 0, 0, 0.25);
  border-color: #334155;
  color: #f8fafc;
}

.cdd-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

body.dark-mode .cdd-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-bottom-color: #334155;
  background: rgba(0, 0, 0, 0.1);
}

.cdd-act-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}

body.dark-mode .cdd-act-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #38bdf8;
}

.cdd-act-btn:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  text-decoration: underline;
}

.cdd-list:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  overflow-y: auto;
  max-height: 250px;
  padding: 4px 0;
}

.cdd-item:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  color: #1e293b;
  gap: 8px;
  transition: background 0.15s;
}

.cdd-item:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #f1f5f9;
}

body.dark-mode .cdd-item:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
}

body.dark-mode .cdd-item:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.05);
}

.cdd-item input[type="checkbox"]:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  accent-color: #3b82f6;
  cursor: pointer;
}

.cdd-label:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cdd-meta:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 10px;
  color: #64748b;
  margin-left: auto;
}

body.dark-mode .cdd-meta:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

.appintel-filter-select:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 10px;
  color: #1e293b;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

.appintel-filter-select option:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #ffffff;
  color: #1e293b;
}

body.dark-mode .appintel-filter-select:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(0, 0, 0, 0.2);
  border-color: #334155;
  color: #f8fafc;
}

body.dark-mode .appintel-filter-select option:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #1e293b;
  color: #f8fafc;
}

.btn-clear-filters:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-clear-filters:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #fecaca;
}

body.dark-mode .btn-clear-filters:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

body.dark-mode .btn-clear-filters:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(239, 68, 68, 0.25);
}

/* Summary Counter Bar */
.filter-summary-bar:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 12px;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.filter-summary-bar strong:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #0f172a;
}

body.dark-mode .filter-summary-bar:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-bottom-color: #334155;
  color: #94a3b8;
}

body.dark-mode .filter-summary-bar strong:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
}

/* Table Area */
.appintel-table-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.dark-mode .appintel-table-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #1e293b;
  border-color: #334155;
  box-shadow: none;
}

.appintel-table-container:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  flex: 1;
  overflow-y: auto;
  position: relative;
  min-height: 300px;
}

.appintel-table:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.appintel-table thead:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  position: sticky;
  top: 0;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  z-index: 10;
}

body.dark-mode .appintel-table thead:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #1e293b;
  border-bottom-color: #334155;
}

.appintel-table th:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.appintel-table th:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #0f172a;
}

.appintel-table th.sorted:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #2563eb;
}

body.dark-mode .appintel-table th:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

body.dark-mode .appintel-table th:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
}

body.dark-mode .appintel-table th.sorted:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #60a5fa;
}

.appintel-table td:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

body.dark-mode .appintel-table td:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-bottom-color: #334155;
  color: #f8fafc;
}

.appintel-table tr:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #f8fafc;
}

body.dark-mode .appintel-table tr:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.02);
}

.cell-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #0f172a;
  font-weight: 700;
  transition: color 0.15s ease;
}

.cell-title:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #2563eb;
  text-decoration: underline;
}

body.dark-mode .cell-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
}

body.dark-mode .cell-title:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #38bdf8;
}

.appintel-meta-text:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 10px;
  color: #64748b;
}

body.dark-mode .appintel-meta-text:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

.appintel-table th.col-center:where(:not([data-ui="v2"], [data-ui="v2"] *)),
.appintel-table td.col-center:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  text-align: center;
}

.appintel-table th.col-right:where(:not([data-ui="v2"], [data-ui="v2"] *)),
.appintel-table td.col-right:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  text-align: right;
}

.clickable-studio:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease;
}

.clickable-studio:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #0369a1;
  text-decoration: underline;
}

body.dark-mode .clickable-studio:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #38bdf8;
}

body.dark-mode .clickable-studio:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #7dd3fc;
}

.contact-item:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  margin: 2px 0;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 165px;
}

.contact-item a:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #0284c7;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-item a:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  text-decoration: underline;
}

body.dark-mode .contact-item:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

body.dark-mode .contact-item a:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #38bdf8;
}

.btn-outline:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  padding: 3px 8px;
  font-size: 11px;
  transition: all 0.15s ease;
}

.btn-outline:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

body.dark-mode .btn-outline:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}

body.dark-mode .btn-outline:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #334155;
  color: #ffffff;
}

.appintel-date-cell:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}

body.dark-mode .appintel-date-cell:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

.appintel-app-link:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}

.appintel-app-link:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  text-decoration: underline;
}

body.dark-mode .appintel-app-link:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #38bdf8;
}

/* Badges & Pills */
.pill:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-gp:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  text-decoration: none;
}

body.dark-mode .pill-gp:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.pill-apple:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
  text-decoration: none;
}

body.dark-mode .pill-apple:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.3);
}

.pill-count:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .pill-count:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: none;
}

.size-pill:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  text-transform: uppercase;
}

.size-pill-whale:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

body.dark-mode .size-pill-whale:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

.size-pill-mid:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

body.dark-mode .size-pill-mid:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

.size-pill-growth:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

body.dark-mode .size-pill-growth:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.4);
}

.size-pill-indie:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

body.dark-mode .size-pill-indie:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}

.vertical-pill:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: inline-block;
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  margin: 1px 3px 1px 0;
}

body.dark-mode .vertical-pill:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(147, 51, 234, 0.15);
  color: #c084fc;
  border-color: rgba(147, 51, 234, 0.3);
}

.team-chip:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
}

body.dark-mode .team-chip:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: none;
}

.contact-row-item:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin: 2px 0;
  color: #475569;
}

.contact-row-item a:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #0284c7;
  text-decoration: none;
}

.contact-row-item a:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  text-decoration: underline;
}

body.dark-mode .contact-row-item:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #cbd5e1;
}

body.dark-mode .contact-row-item a:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #38bdf8;
}

.appintel-btn-copy:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.appintel-btn-copy:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #e2e8f0;
  color: #0f172a;
}

body.dark-mode .appintel-btn-copy:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.08);
  border-color: #334155;
  color: #94a3b8;
}

body.dark-mode .appintel-btn-copy:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* Pagination */
.appintel-pagination-bar:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 10px;
}

body.dark-mode .appintel-pagination-bar:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-top-color: #334155;
  background: rgba(0, 0, 0, 0.15);
  color: #94a3b8;
}

.appintel-pagination-controls:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  gap: 6px;
}

.appintel-pagination-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.appintel-pagination-btn:hover:not(:disabled):where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #f1f5f9;
}

.appintel-pagination-btn:disabled:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  opacity: 0.4;
  cursor: not-allowed;
}

.appintel-pagination-btn.active:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  font-weight: 700;
}

body.dark-mode .appintel-pagination-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(0, 0, 0, 0.2);
  border-color: #334155;
  color: #f8fafc;
}

body.dark-mode .appintel-pagination-btn:hover:not(:disabled):where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-mode .appintel-pagination-btn.active:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: var(--primary-blue, #3b82f6) !important;
  border-color: var(--primary-blue, #3b82f6) !important;
  color: #ffffff !important;
}

.appintel-size-select:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
  outline: none;
}

body.dark-mode .appintel-size-select:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(0, 0, 0, 0.2);
  border-color: #334155;
  color: #f8fafc;
}

/* =========================================================
   Analytics & Insights View
   ========================================================= */
.analytics-view:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0;
}

.analytics-kpi-grid:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.analytics-kpi-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.analytics-kpi-card:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body.dark-mode .analytics-kpi-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #1e293b;
  border-color: #334155;
  box-shadow: none;
}

body.dark-mode .analytics-kpi-card:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.kpi-card-header:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.kpi-card-icon:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.kpi-card-badge:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
}

body.dark-mode .kpi-card-badge:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.kpi-card-num:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body.dark-mode .kpi-card-num:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
}

.kpi-card-label:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-top: 4px;
}

body.dark-mode .kpi-card-label:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

.kpi-card-sub:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

.analytics-charts-grid:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.analytics-chart-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  flex: 1 1 420px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.dark-mode .analytics-chart-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #1e293b;
  border-color: #334155;
  box-shadow: none;
}

.analytics-chart-header:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  margin-bottom: 12px;
}

.analytics-chart-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

body.dark-mode .analytics-chart-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
}

.analytics-chart-sub:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 11px;
  color: #64748b;
  margin: 2px 0 0 0;
}

body.dark-mode .analytics-chart-sub:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

.analytics-chart-body:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 240px;
}

.analytics-leaderboard-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  margin-top: 12px;
}

body.dark-mode .analytics-leaderboard-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-top-color: #334155;
}

.leaderboard-chip:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: #1e293b;
}

body.dark-mode .leaderboard-chip:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.05);
  border-color: #334155;
  color: #f8fafc;
}

/* =========================================================
   Studio Details & Top Apps Modal (UndrIntel Original)
   ========================================================= */
.modal-overlay:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.active:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  opacity: 1;
  visibility: visible;
}

.modal-container:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #ffffff;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  transform: scale(1);
}

body.dark-mode .modal-container:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #0f172a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  border: 1px solid #1e293b;
}

.modal-header:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  padding: 20px 24px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.modal-title-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-dev-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.modal-close-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.modal-close-btn:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.modal-body:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.dark-mode .modal-body:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #0b1120;
}

.modal-section:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
}

body.dark-mode .modal-section:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #0f172a;
  border-color: #1e293b;
}

.modal-section-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark-mode .modal-section-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

.modal-grid-2:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.modal-contact-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
}

body.dark-mode .modal-contact-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #1e293b;
  border-color: #334155;
}

.modal-contact-label:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark-mode .modal-contact-label:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
}

.modal-copy-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.modal-copy-btn:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #e2e8f0;
  color: #0f172a;
}

body.dark-mode .modal-copy-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #334155;
  border-color: #475569;
  color: #e2e8f0;
}

body.dark-mode .modal-copy-btn:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #475569;
  color: #ffffff;
}

.modal-app-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.dark-mode .modal-app-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #1e293b;
  border-color: #334155;
}

.modal-app-card:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

body.dark-mode .modal-app-card:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-color: #475569;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.modal-app-info:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.modal-app-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-weight: 600;
  font-size: 0.92rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark-mode .modal-app-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
}

.modal-app-metrics:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #64748b;
}

body.dark-mode .modal-app-metrics:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

.modal-store-cards:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.store-stat-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.store-stat-card.google-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-top: 4px solid #10b981;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 48px);
}

.store-stat-card.apple-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-top: 4px solid #a855f7;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 48px);
}

body.dark-mode .store-stat-card.google-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-top: 4px solid #10b981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, #0f172a 48px);
  border-color: #1e293b;
}

body.dark-mode .store-stat-card.apple-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border-top: 4px solid #a855f7;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.15) 0%, #0f172a 48px);
  border-color: #1e293b;
}

.store-stat-header:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-stat-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.dark-mode .store-stat-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
}

.store-stat-metrics:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  text-align: center;
}

body.dark-mode .store-stat-metrics:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: rgba(30, 41, 59, 0.6);
  border-color: #334155;
}

.store-metric-item:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.store-metric-num:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

body.dark-mode .store-metric-num:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
}

.store-metric-lbl:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

body.dark-mode .store-metric-lbl:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

.modal-stats-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.modal-stat-box:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

body.dark-mode .modal-stat-box:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  background: #0f172a;
  border-color: #1e293b;
}

.modal-stat-label:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

body.dark-mode .modal-stat-label:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #94a3b8;
}

.modal-stat-val:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
}

body.dark-mode .modal-stat-val:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  color: #f8fafc;
}

.hidden:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  display: none !important;
}
