/* Statistics Page Styles - Dark/Light Theme Compatible */
/* ===================================================== */

.stats_page {
  width: 100%;
}

/* Breadcrumb */
.stats_breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

.dark .stats_breadcrumb {
  color: #9ca3af;
  border-bottom-color: #374151;
}

.stats_breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

.stats_breadcrumb a:hover {
  text-decoration: underline;
}

.stats_breadcrumb .separator {
  color: #9ca3af;
}

.dark .stats_breadcrumb .separator {
  color: #6b7280;
}

.stats_last_updated {
  margin-left: auto;
  font-size: 0.6875rem;
}

/* Layout */
.stats_layout {
  display: grid;
  grid-template-columns: 180px 1fr 240px;
  gap: 1rem;
  padding: 1rem 0;
}

@media (max-width: 1024px) {
  .stats_layout {
    grid-template-columns: 1fr;
  }

  .stats_sidebar,
  .stats_right_sidebar {
    display: none;
  }
}

/* Sidebar Navigation */
.stats_sidebar {
  position: sticky;
  top: 1rem;
  height: fit-content;
}

.stats_nav_section {
  margin-bottom: 1rem;
}

.stats_nav_title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .stats_nav_title {
  color: #9ca3af;
}

.stats_nav_list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stats_nav_list li {
  margin-bottom: 0.0625rem;
}

.stats_nav_list a {
  display: block;
  padding: 0.25rem 0.375rem;
  font-size: 0.75rem;
  color: #4b5563;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.15s;
}

.dark .stats_nav_list a {
  color: #d1d5db;
}

.stats_nav_list a:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.dark .stats_nav_list a:hover {
  background: #374151;
  color: #f9fafb;
}

.stats_nav_list a.active {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 500;
}

.dark .stats_nav_list a.active {
  background: #1e3a5f;
  color: #60a5fa;
}

/* Main Content */
.stats_main {
  min-width: 0;
}

.stats_page_title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.dark .stats_page_title {
  color: #f9fafb;
}

/* Search Bar */
.stats_search_bar {
  margin-bottom: 1rem;
}

.stats_search_form {
  display: flex;
  gap: 0.375rem;
}

.stats_search_btn {
  padding: 0.375rem 0.75rem;
  background: #f59e0b;
  color: white;
  border: none;
  border-radius: 0.25rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.75rem;
}

.stats_search_btn:hover {
  background: #d97706;
}

.stats_search_input {
  flex: 1;
  padding: 0.375rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  background: #fff;
  color: #111827;
}

.dark .stats_search_input {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}

.dark .stats_search_input::placeholder {
  color: #6b7280;
}

/* Stats Sections - matches app.css about_section style */
.stats_section {
  border: 1px solid rgb(243 244 246);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .stats_section {
    padding: 1.25rem;
  }
}

.dark .stats_section {
  border-color: rgb(31 41 55);
}

.stats_section_title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.625rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid #f59e0b;
}

.dark .stats_section_title {
  color: #f9fafb;
}

.stats_label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.125rem;
}

.dark .stats_label {
  color: #9ca3af;
}

.stats_big_number {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}

.stats_orange {
  color: #f59e0b;
}

.stats_blue {
  color: #3b82f6;
}

.stats_green {
  color: #10b981;
}

.stats_red {
  color: #ef4444;
}

.stats_gray {
  color: #6b7280;
}

.dark .stats_gray {
  color: #9ca3af;
}

/* Rating Bar */
.stats_rating_bar {
  height: 1rem;
  background: #e5e7eb;
  border-radius: 0.25rem;
  overflow: hidden;
  margin-bottom: 0.625rem;
}

.dark .stats_rating_bar {
  background: #374151;
}

.stats_rating_fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Rating Display */
.stats_rating_display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
}

.stats_rating_value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
}

.dark .stats_rating_value {
  color: #f9fafb;
}

.stats_stars {
  display: flex;
  gap: 0.0625rem;
}

.stats_star {
  width: 0.875rem;
  height: 0.875rem;
  color: #d1d5db;
}

.dark .stats_star {
  color: #4b5563;
}

.stats_star.filled {
  color: #fbbf24;
}

/* Bar Chart */
.stats_bar_chart {
  display: flex;
  height: 1rem;
  border-radius: 0.25rem;
  overflow: hidden;
  margin-bottom: 0.625rem;
}

.stats_bar_free {
  background: #10b981;
}

.stats_bar_paid {
  background: #ef4444;
}

/* Chart Container */
.stats_chart_container {
  height: 140px;
  margin: 0.625rem 0;
}

/* View More Link */
.stats_view_more {
  display: inline-block;
  color: #2563eb;
  font-size: 0.75rem;
  text-decoration: none;
}

.stats_view_more:hover {
  text-decoration: underline;
}

/* Tables */
.stats_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.stats_table th {
  text-align: left;
  padding: 0.375rem 0.375rem;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  color: #374151;
  font-size: 0.6875rem;
}

.dark .stats_table th {
  border-bottom-color: #374151;
  color: #9ca3af;
}

.stats_table td {
  padding: 0.375rem 0.375rem;
  border-bottom: 1px solid #f3f4f6;
}

.dark .stats_table td {
  border-bottom-color: #374151;
}

.stats_table tr:hover {
  background: #f9fafb;
}

.dark .stats_table tr:hover {
  background: #374151;
}

.stats_rank {
  width: 1.5rem;
  color: #6b7280;
  font-weight: 500;
}

.dark .stats_rank {
  color: #9ca3af;
}

.stats_app_cell {
  min-width: 140px;
}

.stats_app_link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  color: inherit;
}

.stats_app_icon {
  width: 28px;
  height: 28px;
  border-radius: 0.375rem;
  object-fit: cover;
}

.stats_app_info {
  display: flex;
  flex-direction: column;
}

.stats_app_name {
  font-weight: 500;
  color: #111827;
  font-size: 0.75rem;
}

.dark .stats_app_name {
  color: #f9fafb;
}

.stats_app_dev {
  font-size: 0.625rem;
  color: #6b7280;
}

.dark .stats_app_dev {
  color: #9ca3af;
}

.stats_rating {
  color: #6b7280;
}

.dark .stats_rating {
  color: #9ca3af;
}

.stats_installs {
  color: #6b7280;
  text-align: right;
}

.dark .stats_installs {
  color: #9ca3af;
}

/* Right Sidebar Widgets */
.stats_right_sidebar {
  position: sticky;
  top: 1rem;
  height: fit-content;
}

.stats_widget {
  border: 1px solid rgb(243 244 246);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .stats_widget {
    padding: 1.25rem;
  }
}

.dark .stats_widget {
  border-color: rgb(31 41 55);
}

.stats_widget_title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid #e5e7eb;
}

.dark .stats_widget_title {
  color: #f9fafb;
  border-bottom-color: #374151;
}

/* Mini Table */
.stats_mini_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.625rem;
}

.stats_mini_table th {
  text-align: left;
  padding: 0.25rem 0.125rem;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  color: #6b7280;
}

.dark .stats_mini_table th {
  border-bottom-color: #374151;
  color: #9ca3af;
}

.stats_mini_table td {
  padding: 0.25rem 0.125rem;
  border-bottom: 1px solid #f3f4f6;
}

.dark .stats_mini_table td {
  border-bottom-color: #374151;
}

.stats_mini_icon {
  width: 20px;
  height: 20px;
  border-radius: 0.25rem;
  object-fit: cover;
}

/* Category List */
.stats_category_list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stats_category_item {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
  text-decoration: none;
  color: #4b5563;
  font-size: 0.6875rem;
  border-bottom: 1px solid #f3f4f6;
}

.dark .stats_category_item {
  color: #d1d5db;
  border-bottom-color: #374151;
}

.stats_category_item:hover {
  color: #2563eb;
}

.stats_category_count {
  color: #9ca3af;
}

/* Quick Stats */
.stats_quick_list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stats_quick_item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgb(243 244 246);
}

.dark .stats_quick_item {
  border-bottom-color: rgb(31 41 55);
}

.stats_quick_label {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(107 114 128);
}

.dark .stats_quick_label {
  color: rgb(156 163 175);
}

.stats_quick_value {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: rgb(17 24 39);
}

.dark .stats_quick_value {
  color: white;
}

.dark .stats_quick_item {
  border-bottom-color: #374151;
}

.stats_quick_label {
  font-size: 0.6875rem;
  color: #6b7280;
}

.dark .stats_quick_label {
  color: #9ca3af;
}

.stats_quick_value {
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
}

.dark .stats_quick_value {
  color: #f9fafb;
}

/* Additional Stats Page Styles */
.stats_main_full {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .stats_main_full {
    grid-column: span 1;
  }
}

.stats_info_box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.75rem;
  margin: 0.75rem 0;
}

.dark .stats_info_box {
  background: #111827;
  border-color: #374151;
}

.stats_info_box h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.dark .stats_info_box h3 {
  color: #f9fafb;
}

.stats_info_box h4 {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0.625rem 0 0.375rem;
  color: #334155;
}

.dark .stats_info_box h4 {
  color: #d1d5db;
}

.stats_info_box p {
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 0.375rem;
}

.dark .stats_info_box p {
  color: #9ca3af;
}

.stats_subsection_title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  margin: 0.75rem 0 0.5rem;
}

.dark .stats_subsection_title {
  color: #f9fafb;
}

.stats_description {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.625rem;
}

.dark .stats_description {
  color: #9ca3af;
}

.stats_chart_large {
  height: 200px;
}

/* Grid layouts */
.stats_grid_2col,
.stats_grid_2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stats_grid_3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 640px) {

  .stats_grid_2col,
  .stats_grid_2,
  .stats_grid_3 {
    grid-template-columns: 1fr;
  }
}

/* Stats Cards */
.stats_card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  padding: 0.625rem;
  text-align: center;
}

.dark .stats_card {
  background: #111827;
  border-color: #374151;
}

.stats_card_green {
  border-left: 3px solid #10b981;
}

.stats_card_red {
  border-left: 3px solid #ef4444;
}

.stats_card_label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.dark .stats_card_label {
  color: #9ca3af;
}

.stats_card_pct {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
}

.dark .stats_card_pct {
  color: #9ca3af;
}

.stats_card_sub {
  font-size: 0.625rem;
  color: #9ca3af;
  margin-top: 0.125rem;
}

/* Rating Breakdown */
.stats_rating_breakdown {
  margin-top: 0.75rem;
}

.stats_rating_row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.dark .stats_rating_row {
  border-bottom-color: #374151;
}

.stats_rating_label {
  width: 50px;
  font-size: 0.75rem;
  color: #374151;
}

.dark .stats_rating_label {
  color: #d1d5db;
}

.stats_rating_bar_container {
  flex: 1;
  height: 0.75rem;
  background: #e5e7eb;
  border-radius: 0.25rem;
  overflow: hidden;
}

.dark .stats_rating_bar_container {
  background: #374151;
}

.stats_rating_bar_fill {
  height: 100%;
  transition: width 0.3s;
}

.stats_bar_5 {
  background: #22c55e;
}

.stats_bar_4 {
  background: #84cc16;
}

.stats_bar_3 {
  background: #eab308;
}

.stats_bar_2 {
  background: #f97316;
}

.stats_bar_1 {
  background: #ef4444;
}

.stats_rating_count {
  width: 100px;
  text-align: right;
  font-size: 0.6875rem;
  color: #6b7280;
}

.dark .stats_rating_count {
  color: #9ca3af;
}

/* Download Tiers */
.stats_download_tiers {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.625rem;
}

.stats_tier {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  background: #f8fafc;
  border-radius: 0.375rem;
  border-left: 3px solid #e2e8f0;
}

.dark .stats_tier {
  background: #111827;
  border-left-color: #374151;
}

.stats_tier_highlight {
  border-left-color: #10b981;
  background: #f0fdf4;
}

.dark .stats_tier_highlight {
  background: #064e3b;
}

.stats_tier_label {
  font-size: 0.8125rem;
  color: #374151;
}

.dark .stats_tier_label {
  color: #d1d5db;
}

.stats_tier_value {
  font-weight: 600;
  color: #111827;
}

.dark .stats_tier_value {
  color: #f9fafb;
}

/* Large Bar Chart */
.stats_bar_chart_large {
  display: flex;
  height: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
  margin: 1rem 0;
}

.stats_bar_chart_large .stats_bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats_bar_label {
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
}

.stats_bar_iap {
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.6875rem;
  font-weight: 500;
}

.stats_bar_no_iap {
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.6875rem;
  font-weight: 500;
}

/* Table Styles */
.stats_table_wrapper {
  overflow-x: auto;
  margin-top: 1rem;
}

.stats_table_full {
  min-width: 600px;
}

.stats_table_full th,
.stats_table_full td {
  padding: 0.625rem 0.75rem;
}

.stats_table_full a {
  color: #2563eb;
  text-decoration: none;
}

.stats_table_full a:hover {
  text-decoration: underline;
}

/* Month selector */
.stats_month_selector {
  margin-bottom: 1.5rem;
}

.stats_month_form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.stats_select,
.stats_category_select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  background: #fff;
  color: #111827;
}

.dark .stats_select,
.dark .stats_category_select {
  background: #1f2937;
  border-color: #374151;
  color: #f9fafb;
}

.stats_btn {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.8125rem;
}

.stats_btn:hover {
  background: #2563eb;
}

/* Rankings grid */
.stats_rankings_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .stats_rankings_grid {
    grid-template-columns: 1fr;
  }
}

.stats_ranking_section {
  padding: 1rem;
}

.stats_table_compact {
  font-size: 0.75rem;
}

.stats_table_compact .stats_app_name {
  font-size: 0.75rem;
}

/* Apps grid for browse pages */
.stats_apps_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.stats_app_card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.875rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
  position: relative;
}

.dark .stats_app_card {
  background: #1f2937;
  border-color: #374151;
}

.stats_app_card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stats_app_card_rank {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #9ca3af;
}

.stats_app_card_icon {
  width: 56px;
  height: 56px;
  border-radius: 0.625rem;
  margin-bottom: 0.625rem;
}

.stats_app_card_info {
  flex: 1;
}

.stats_app_card_name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dark .stats_app_card_name {
  color: #f9fafb;
}

.stats_app_card_dev {
  font-size: 0.6875rem;
  color: #6b7280;
  margin-bottom: 0.375rem;
}

.dark .stats_app_card_dev {
  color: #9ca3af;
}

.stats_app_card_meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
}

.stats_app_card_rating {
  color: #f59e0b;
  font-weight: 500;
}

.stats_app_card_installs {
  color: #6b7280;
}

.dark .stats_app_card_installs {
  color: #9ca3af;
}

/* No data message */
.stats_no_data {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-style: italic;
}

.dark .stats_no_data {
  color: #9ca3af;
}

/* Subtitle */
.stats_subtitle {
  color: #6b7280;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
}

.dark .stats_subtitle {
  color: #9ca3af;
}

/* Rating highlight */
.stats_rating_highlight {
  color: #f59e0b;
  font-weight: 600;
}

.stats_rating_stars {
  margin-right: 0.25rem;
}

/* Large installs */
.stats_installs_large {
  font-weight: 600;
  color: #111827;
}

.dark .stats_installs_large {
  color: #f9fafb;
}

/* Developer link */
.stats_dev_link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.stats_dev_link:hover {
  text-decoration: underline;
}

/* Category link */
.stats_cat_link {
  color: #2563eb;
  text-decoration: none;
}

.stats_cat_link:hover {
  text-decoration: underline;
}

/* Mini bar for percentages */
.stats_mini_bar_container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats_mini_bar {
  height: 6px;
  background: #3b82f6;
  border-radius: 3px;
  min-width: 4px;
}

/* ===================================================== */
/* Google Play Rankings Page Styles                      */
/* ===================================================== */

/* Rankings Filters Container */
.rankings_filters {
  margin-bottom: 1.5rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.dark .rankings_filters {
  background: #111827;
  border-color: #374151;
}

.rankings_filter_form {
  display: contents;
}

/* Ranking Type Tabs */
.rankings_type_tabs {
  display: flex;
  flex-wrap: wrap;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.dark .rankings_type_tabs {
  background: #1f2937;
  border-color: #374151;
}

.rankings_type_tab {
  flex: 1;
  min-width: 120px;
  padding: 0.875rem 1rem;
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.rankings_type_tab:hover {
  color: #111827;
  background: rgba(0, 0, 0, 0.02);
}

.dark .rankings_type_tab {
  color: #9ca3af;
}

.dark .rankings_type_tab:hover {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.02);
}

.rankings_type_tab.active {
  color: #2563eb;
  background: #fff;
  border-bottom-color: #2563eb;
}

.dark .rankings_type_tab.active {
  color: #60a5fa;
  background: #111827;
  border-bottom-color: #60a5fa;
}

/* Rankings Dropdowns */
.rankings_dropdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

.rankings_filter_group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 180px;
  flex: 1;
}

.rankings_filter_group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .rankings_filter_group label {
  color: #9ca3af;
}

.rankings_select {
  padding: 0.625rem 2rem 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  font-size: 0.875rem;
  color: #111827;
  cursor: pointer;
  appearance: none;
}

.dark .rankings_select {
  background-color: #1f2937;
  border-color: #4b5563;
  color: #f9fafb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
}

.rankings_select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dark .rankings_select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Quick Links */
.rankings_quick_links {
  margin-bottom: 1.5rem;
}

.quick_links_section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.dark .quick_links_section h4 {
  color: #9ca3af;
}

.quick_links_list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick_links_list a {
  padding: 0.375rem 0.75rem;
  background: #f3f4f6;
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.2s;
}

.dark .quick_links_list a {
  background: #1f2937;
  color: #d1d5db;
}

.quick_links_list a:hover {
  background: #e5e7eb;
  color: #111827;
}

.dark .quick_links_list a:hover {
  background: #374151;
  color: #f9fafb;
}

.quick_links_list a.active {
  background: #2563eb;
  color: #fff;
}

/* Rankings Table */
.stats_rankings_table {
  font-size: 0.8125rem;
}

.stats_th_rank {
  width: 60px;
  text-align: center;
}

.stats_th_app {
  min-width: 280px;
}

.stats_th_category {
  width: 140px;
}

.stats_th_rating {
  width: 80px;
  text-align: center;
}

.stats_th_installs {
  width: 120px;
  text-align: right;
}

.stats_rank_cell {
  text-align: center;
  vertical-align: middle;
}

.stats_rank_number {
  display: inline-block;
  min-width: 24px;
  font-weight: 700;
  color: #374151;
  font-size: 0.9375rem;
}

.dark .stats_rank_number {
  color: #d1d5db;
}

.stats_rank_change {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  margin-top: 0.125rem;
}

.stats_rank_up {
  color: #10b981;
}

.stats_rank_down {
  color: #ef4444;
}

.stats_rank_same {
  color: #9ca3af;
}

.stats_app_cell {
  padding: 0.75rem 0.5rem;
}

.stats_app_link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.stats_app_icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f3f4f6;
}

.dark .stats_app_icon {
  background: #374151;
}

.stats_app_info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.stats_app_name {
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .stats_app_name {
  color: #f9fafb;
}

.stats_app_dev {
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .stats_app_dev {
  color: #9ca3af;
}

.stats_category_cell {
  font-size: 0.75rem;
}

.stats_cat_link {
  color: #6b7280;
  text-decoration: none;
}

.stats_cat_link:hover {
  color: #2563eb;
}

.dark .stats_cat_link {
  color: #9ca3af;
}

.dark .stats_cat_link:hover {
  color: #60a5fa;
}

.stats_rating_cell {
  text-align: center;
  white-space: nowrap;
}

.stats_rating_stars {
  color: #f59e0b;
  margin-right: 0.25rem;
}

.stats_no_rating {
  color: #9ca3af;
}

.stats_installs_cell {
  text-align: right;
}

.stats_installs_info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}

.stats_installs_total {
  font-weight: 600;
  color: #111827;
}

.dark .stats_installs_total {
  color: #f9fafb;
}

.stats_installs_recent {
  font-size: 0.6875rem;
  color: #10b981;
  font-weight: 500;
}

/* No Data Message */
.stats_no_data {
  padding: 3rem 1rem;
  text-align: center;
}

.no_data_message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: #9ca3af;
}

.no_data_message svg {
  opacity: 0.5;
}

.no_data_message p {
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
}

.dark .no_data_message p {
  color: #9ca3af;
}

.no_data_message span {
  font-size: 0.875rem;
}

/* Category Links Grid */
.rankings_category_links {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.dark .rankings_category_links {
  background: #111827;
  border-color: #374151;
}

.rankings_category_links h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}

.dark .rankings_category_links h3 {
  color: #f9fafb;
}

.category_links_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.category_links_section h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.dark .category_links_section h4 {
  color: #d1d5db;
  border-color: #374151;
}

.category_links_list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.category_links_list a {
  padding: 0.25rem 0.625rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.15s;
}

.dark .category_links_list a {
  background: #1f2937;
  border-color: #374151;
  color: #9ca3af;
}

.category_links_list a:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.dark .category_links_list a:hover {
  border-color: #60a5fa;
  color: #60a5fa;
}

.category_links_list a.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* Info Box Enhanced */
.stats_info_box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #eff6ff;
  border-radius: 0.75rem;
  border: 1px solid #bfdbfe;
}

.dark .stats_info_box {
  background: #1e3a5f;
  border-color: #1e40af;
}

.stats_info_box h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 0.75rem;
}

.dark .stats_info_box h3 {
  color: #93c5fd;
}

.stats_info_box h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e40af;
  margin: 1rem 0 0.5rem;
}

.dark .stats_info_box h4 {
  color: #93c5fd;
}

.stats_info_box p {
  font-size: 0.875rem;
  color: #1e3a8a;
  line-height: 1.6;
}

.dark .stats_info_box p {
  color: #bfdbfe;
}

.stats_info_box ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.stats_info_box li {
  font-size: 0.8125rem;
  color: #1e3a8a;
  margin-bottom: 0.375rem;
}

.dark .stats_info_box li {
  color: #bfdbfe;
}

.stats_info_note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-style: italic;
  opacity: 0.8;
}

/* Sidebar Sub-links */
.stats_nav_list a.sub-link {
  padding-left: 1.25rem;
  font-size: 0.6875rem;
  color: #6b7280;
}

.dark .stats_nav_list a.sub-link {
  color: #6b7280;
}

.stats_nav_list a.sub-link:hover {
  color: #2563eb;
  background: transparent;
}

.dark .stats_nav_list a.sub-link:hover {
  color: #60a5fa;
}

/* Country List in Sidebar */
.stats_country_list a {
  font-size: 0.6875rem;
}

/* Responsive Rankings */
@media (max-width: 768px) {
  .rankings_type_tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .rankings_type_tab {
    min-width: auto;
    white-space: nowrap;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }

  .rankings_dropdowns {
    flex-direction: column;
  }

  .rankings_filter_group {
    min-width: 100%;
  }

  .quick_links_list {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .quick_links_list a {
    flex-shrink: 0;
  }

  .stats_th_category,
  .stats_category_cell {
    display: none;
  }

  .stats_app_icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .category_links_grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
    STATS PAGE - NEW LAYOUT CLASSES
   ======================================== */

/* Stats Container - matches app.css .app_page_container */
.stats_container {
  width: 100%;
  padding: 1.5rem 1rem;
}

@media (min-width: 640px) {
  .stats_container {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .stats_container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Stats Grid Layout - 3 columns */
.stats_grid {
  display: grid;
  grid-template-columns: 256px 1fr 320px;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .stats_grid {
    grid-template-columns: 1fr;
  }

  .stats_left_sidebar {
    display: none;
  }

  .stats_right_col {
    display: none;
  }
}

/* Left Sidebar */
.stats_left_sidebar {
  flex-shrink: 0;
}

/* Main Content Area */
.stats_content {
  min-width: 0;
}

/* Right Column */
.stats_right_col {
  flex-shrink: 0;
}

/* Page Header */
.stats_header {
  margin-bottom: 1.5rem;
}

.stats_title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: rgb(17 24 39);
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .stats_title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

.dark .stats_title {
  color: white;
}

.stats_description {
  color: rgb(107 114 128);
  font-size: 0.875rem;
  line-height: 1.5;
}

.dark .stats_description {
  color: rgb(156 163 175);
}

/* Stats Cards Grid */
.stats_cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .stats_cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats_cards {
    grid-template-columns: 1fr;
  }
}

/* Stats Card - matches app.css about_section style */
.stats_card {
  border: 1px solid rgb(243 244 246);
  border-radius: 0.75rem;
  padding: 1rem;
}

@media (min-width: 640px) {
  .stats_card {
    padding: 1.25rem;
  }
}

.dark .stats_card {
  border-color: rgb(31 41 55);
}

.stats_card_label {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(107 114 128);
  margin-bottom: 0.25rem;
}

.dark .stats_card_label {
  color: rgb(156 163 175);
}

.stats_card_value {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: rgb(17 24 39);
}

.dark .stats_card_value {
  color: white;
}

/* Stats Panel - matches app.css about_section style */
.stats_panel {
  border: 1px solid rgb(243 244 246);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .stats_panel {
    padding: 1.25rem;
  }
}

.dark .stats_panel {
  border-color: rgb(31 41 55);
}

.stats_panel_title {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: rgb(17 24 39);
  margin-bottom: 0.75rem;
}

.dark .stats_panel_title {
  color: white;
}

/* App List */
.stats_app_list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stats_app_item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  text-decoration: none;
  transition: background 0.15s;
}

.stats_app_item:hover {
  background: rgb(249 250 251);
}

.dark .stats_app_item:hover {
  background: rgb(31 41 55);
}

.stats_app_item_icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: rgb(243 244 246);
}

.dark .stats_app_item_icon {
  background-color: rgb(31 41 55);
}

.stats_app_item_icon_sm {
  width: 40px;
  height: 40px;
}

.stats_app_item_info {
  flex: 1;
  min-width: 0;
}

.stats_app_item_name {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: rgb(17 24 39);
  margin-bottom: 0.125rem;
}

.dark .stats_app_item_name {
  color: white;
}

.stats_app_item_dev {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(107 114 128);
}

.dark .stats_app_item_dev {
  color: rgb(156 163 175);
}

.stats_app_item_meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  align-items: flex-end;
  margin-left: auto;
}

.stats_app_item_rating {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: rgb(250 204 21);
}

.stats_app_item_installs {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(107 114 128);
}

.dark .stats_app_item_installs {
  color: rgb(156 163 175);
}

.dark .stats_app_item_installs {
  color: #9ca3af;
}

/* Categories Grid */
.stats_categories_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .stats_categories_grid {
    grid-template-columns: 1fr;
  }
}

.stats_category_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.15s;
}

.stats_category_item:hover {
  background: rgb(249 250 251);
}

.dark .stats_category_item:hover {
  background: rgb(31 41 55);
}

.stats_category_name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(17 24 39);
}

.dark .stats_category_name {
  color: white;
}

.stats_category_count {
  font-size: 0.875rem;
  color: rgb(107 114 128);
}

.dark .stats_category_count {
  color: rgb(156 163 175);
}

/* Quick Stats Widget */
.stats_quick_list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.stats_quick_label {
  font-size: 0.875rem;
  color: #6b7280;
}

.dark .stats_quick_label {
  color: #9ca3af;
}

.stats_quick_value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.dark .stats_quick_value {
  color: #f9fafb;
}

/* Empty State */
.stats_empty {
  text-align: center;
  padding: 2rem;
  color: rgb(107 114 128);
  font-style: italic;
}

.dark .stats_empty {
  color: rgb(156 163 175);
}

.dark .stats_empty {
  color: #9ca3af;
}

/* ===================================================== */
/* App Page - Google Play Rankings Section               */
/* ===================================================== */

.app_rankings_section {
  margin-bottom: 1.5rem;
}

.app_rankings_header {
  margin-bottom: 1rem;
}

.app_rankings_title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.dark .app_rankings_title {
  color: #f9fafb;
}

.app_rankings_icon {
  width: 1rem;
  height: 1rem;
  color: #f59e0b;
}

.app_rankings_content {
  margin-top: 1rem;
}

.app_rankings_show_more_container {
  text-align: center;
  margin-top: 1rem;
}

.ratings_load_more_icon.rotate-180 {
  transform: rotate(180deg);
}

.app_rankings_table_wrapper {
  overflow-x: auto;
}

.app_rankings_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.app_rankings_table th {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 2px solid #e5e7eb;
  font-weight: 600;
  color: #374151;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .app_rankings_table th {
  border-bottom-color: #374151;
  color: #9ca3af;
}

.app_rankings_table td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.dark .app_rankings_table td {
  border-bottom-color: #374151;
  color: #d1d5db;
}

.app_rankings_table tr:hover {
  background: #f9fafb;
}

.dark .app_rankings_table tr:hover {
  background: #374151;
}

.app_rankings_country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.app_rankings_flag {
  font-size: 1rem;
}

.app_rankings_rank {
  text-align: center;
}

.app_rankings_rank_badge {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.dark .app_rankings_rank_badge {
  background: #1e3a5f;
  color: #60a5fa;
}

.app_rankings_change {
  text-align: center;
}

.app_rankings_change_up {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  color: #10b981;
  font-weight: 500;
  font-size: 0.75rem;
}

.app_rankings_change_up svg {
  width: 0.875rem;
  height: 0.875rem;
}

.app_rankings_change_down {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  color: #ef4444;
  font-weight: 500;
  font-size: 0.75rem;
}

.app_rankings_change_down svg {
  width: 0.875rem;
  height: 0.875rem;
}

.app_rankings_change_same {
  color: #9ca3af;
}

.app_rankings_empty {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-style: italic;
}

.dark .app_rankings_empty {
  color: #9ca3af;
}

/* Ranking History Subtitle - matches Statistics card titles */
.app_rankings_subtitle {
  font-size: 0.6875rem;
  line-height: 1rem;
  font-weight: 600;
  color: rgb(107 114 128);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.dark .app_rankings_subtitle {
  color: rgb(156 163 175);
}

/* Ranking History Select - compact styling */
.app_rankings_select {
  width: 100%;
  max-width: 200px;
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(55 65 81);
  background-color: white;
  border: 1px solid rgb(209 213 219);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.app_rankings_select:hover {
  border-color: rgb(156 163 175);
}

.app_rankings_select:focus {
  outline: none;
  border-color: rgb(59 130 246);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark .app_rankings_select {
  color: rgb(209 213 219);
  background-color: rgb(31 41 55);
  border-color: rgb(55 65 81);
}

.dark .app_rankings_select:hover {
  border-color: rgb(75 85 99);
}

.dark .app_rankings_select:focus {
  border-color: rgb(59 130 246);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Ranking History Container */
.app_rankings_history {
  margin-top: 1.5rem;
}

.app_rankings_country_select {
  margin-bottom: 0.75rem;
}

.app_rankings_chart_container {
  position: relative;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .app_rankings_table {
    font-size: 0.75rem;
  }

  .app_rankings_table th,
  .app_rankings_table td {
    padding: 0.5rem;
  }

  .app_rankings_flag {
    font-size: 1rem;
  }
}

/* ========================================
   STATS PAGE - ADDITIONAL CLASSES
   ======================================== */

/* Cards Grid Variants */
.stats_cards_2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stats_cards_3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {

  .stats_cards_2col,
  .stats_cards_3col {
    grid-template-columns: 1fr;
  }
}

.stats_card_center {
  text-align: center;
}

.stats_card_value_green {
  color: #10b981;
}

.stats_card_value_blue {
  color: #3b82f6;
}

/* Table Styles */
.stats_table_wrap {
  overflow-x: auto;
}

.stats_table {
  width: 100%;
  border-collapse: collapse;
}

.stats_table_head {
  background: #f9fafb;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.dark .stats_table_head {
  background: rgba(55, 65, 81, 0.5);
}

.stats_table_th {
  padding: 1rem;
  font-weight: 600;
  color: #6b7280;
  text-align: left;
}

.dark .stats_table_th {
  color: #9ca3af;
}

.stats_table_th_center {
  text-align: center;
}

.stats_table_th_right {
  text-align: right;
}

.stats_table_body {
  divide-y: 1px solid #f3f4f6;
}

.stats_table_row {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

.stats_table_row:hover {
  background: #f9fafb;
}

.dark .stats_table_row {
  border-bottom-color: #374151;
}

.dark .stats_table_row:hover {
  background: rgba(55, 65, 81, 0.5);
}

.stats_table_td {
  padding: 1rem;
  color: #374151;
}

.dark .stats_table_td {
  color: #d1d5db;
}

.stats_table_td_center {
  text-align: center;
}

.stats_table_td_right {
  text-align: right;
}

.stats_table_td_name {
  font-weight: 500;
  color: #111827;
}

.dark .stats_table_td_name {
  color: #f9fafb;
}

.stats_table_rank {
  font-weight: 700;
  color: #9ca3af;
}

.stats_table_link {
  color: #111827;
  text-decoration: none;
  transition: color 0.15s;
}

.stats_table_link:hover {
  color: #3b82f6;
}

.dark .stats_table_link {
  color: #f9fafb;
}

.dark .stats_table_link:hover {
  color: #60a5fa;
}

.stats_table_value {
  font-weight: 500;
  color: #111827;
}

.dark .stats_table_value {
  color: #f9fafb;
}

.stats_table_subvalue {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Rating Inline */
.stats_rating_inline {
  color: #f59e0b;
  font-weight: 600;
}

.stats_rating_badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.5rem;
  color: #d97706;
  font-weight: 600;
}

.dark .stats_rating_badge {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* Chart Row Layout */
.stats_chart_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .stats_chart_row {
    grid-template-columns: 1fr;
  }
}

.stats_panel_wide {
  grid-column: span 2;
}

@media (max-width: 1024px) {
  .stats_panel_wide {
    grid-column: span 1;
  }
}

.stats_panel_center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stats_panel_header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1rem;
}

.dark .stats_panel_header {
  border-bottom-color: #374151;
}

.stats_panel_subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.dark .stats_panel_subtitle {
  color: #9ca3af;
}

/* Rating Display */
.stats_rating_big {
  font-size: 3rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 0.5rem;
}

.stats_rating_stars {
  font-size: 1.5rem;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.stats_rating_star_empty {
  color: #d1d5db;
}

.dark .stats_rating_star_empty {
  color: #4b5563;
}

.stats_rating_count {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Comparison Layout */
.stats_comparison_col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats_comparison_row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.stats_comparison_value {
  font-size: 1.875rem;
  font-weight: 700;
}

.stats_comparison_value_green {
  color: #10b981;
}

.stats_comparison_value_blue {
  color: #3b82f6;
}

.stats_comparison_pct {
  font-size: 1.125rem;
  font-weight: 500;
  color: #6b7280;
}

/* Progress Bar */
.stats_progress_bar {
  width: 100%;
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.dark .stats_progress_bar {
  background: #374151;
}

.stats_progress_bar_lg {
  height: 0.75rem;
}

.stats_progress_bar_sm {
  width: 6rem;
  height: 0.5rem;
}

.stats_progress_fill {
  height: 100%;
  border-radius: 9999px;
}

.stats_progress_fill_green {
  background: #10b981;
}

.stats_progress_fill_blue {
  background: #3b82f6;
}

.stats_progress_fill_indigo {
  background: #4f46e5;
}

.stats_progress_cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.stats_progress_label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.dark .stats_progress_label {
  color: #f9fafb;
}

/* Filter Tabs */
.stats_filter_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stats_filter_tab {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.dark .stats_filter_tab {
  background: #1f2937;
  color: #d1d5db;
  border-color: #374151;
}

.stats_filter_tab:hover {
  background: #f9fafb;
}

.dark .stats_filter_tab:hover {
  background: #374151;
}

.stats_filter_tab_active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.stats_filter_tab_active:hover {
  background: #2563eb;
}

.dark .stats_filter_tab_active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

/* App Rank */
.stats_app_rank {
  width: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #d1d5db;
  text-align: center;
  flex-shrink: 0;
}

.dark .stats_app_rank {
  color: #4b5563;
}

/* App Item Meta */
.stats_app_item_meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.stats_app_item_rating {
  color: #f59e0b;
  font-weight: 500;
}

.stats_app_item_category {
  color: #6b7280;
}

.dark .stats_app_item_category {
  color: #9ca3af;
}

.stats_separator {
  color: #d1d5db;
}

.dark .stats_separator {
  color: #4b5563;
}

/* Badge */
.stats_app_item_badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

@media (max-width: 640px) {
  .stats_app_item_badge {
    display: none;
  }
}

.stats_badge_trending {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.dark .stats_badge_trending {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.stats_badge_icon {
  width: 1rem;
  height: 1rem;
}

/* Category Cell */
.stats_category_cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stats_category_icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
}

.dark .stats_category_icon {
  background: #374151;
  color: #9ca3af;
}

/* Filter Form */
.stats_filter_form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  margin-bottom: 2rem;
}

.dark .stats_filter_form {
  background: #1f2937;
  border-color: #374151;
}

.stats_filter_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .stats_filter_grid {
    grid-template-columns: 1fr;
  }
}

.stats_filter_group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stats_filter_label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.dark .stats_filter_label {
  color: #d1d5db;
}

.stats_filter_select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  color: #111827;
  font-size: 0.875rem;
}

.dark .stats_filter_select {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

.stats_filter_select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* App Row (Table) */
.stats_app_row {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.stats_app_row_icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  object-fit: cover;
  background: #f3f4f6;
}

.dark .stats_app_row_icon {
  background: #374151;
}

.stats_app_row_info {
  min-width: 0;
}

.stats_app_row_name {
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .stats_app_row_name {
  color: #f9fafb;
}

.stats_app_row_dev {
  font-size: 0.875rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .stats_app_row_dev {
  color: #9ca3af;
}

.stats_app_row_meta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Responsive Helpers */
.stats_hide_mobile {
  display: table-cell;
}

.stats_hide_tablet {
  display: table-cell;
}

.stats_show_mobile {
  display: none;
}

@media (max-width: 768px) {
  .stats_hide_mobile {
    display: none;
  }

  .stats_show_mobile {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .stats_hide_tablet {
    display: none;
  }
}

/* Empty State */
.stats_empty_state {
  background: #fff;
  padding: 3rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  text-align: center;
}

.dark .stats_empty_state {
  background: #1f2937;
  border-color: #374151;
}

.stats_empty_icon {
  width: 4rem;
  height: 4rem;
  background: #f3f4f6;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.dark .stats_empty_icon {
  background: rgba(55, 65, 81, 0.5);
}

.stats_icon_svg {
  width: 2rem;
  height: 2rem;
  color: #9ca3af;
}

.stats_empty_title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.dark .stats_empty_title {
  color: #f9fafb;
}

.stats_empty_text {
  color: #6b7280;
}

.dark .stats_empty_text {
  color: #9ca3af;
}

/* IAP Section */
.stats_panel_iap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats_iap_header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats_iap_icon {
  padding: 0.75rem;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 0.75rem;
}

.dark .stats_iap_icon {
  background: rgba(79, 70, 229, 0.2);
}

.stats_iap_icon .stats_icon_svg {
  width: 2rem;
  height: 2rem;
  color: #4f46e5;
}

.dark .stats_iap_icon .stats_icon_svg {
  color: #818cf8;
}

.stats_iap_title_wrap {
  flex: 1;
}

.stats_iap_title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.dark .stats_iap_title {
  color: #f9fafb;
}

.stats_iap_subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.dark .stats_iap_subtitle {
  color: #9ca3af;
}

.stats_iap_stats {
  margin-top: 1rem;
}

.stats_iap_value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
}

.dark .stats_iap_value {
  color: #f9fafb;
}

.stats_iap_pct {
  font-size: 1.25rem;
  font-weight: 700;
  color: #4f46e5;
}

.dark .stats_iap_pct {
  color: #818cf8;
}

/* ========================================
   STATS SIDEBAR
   ======================================== */

.stats_sidebar_container {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  overflow: hidden;
  position: sticky;
  top: 6rem;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.dark .stats_sidebar_container {
  background: #1f2937;
  border-color: #374151;
}

.stats_sidebar_header {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  background: rgba(249, 250, 251, 0.5);
}

.dark .stats_sidebar_header {
  border-bottom-color: #374151;
  background: rgba(31, 41, 55, 0.5);
}

.stats_sidebar_title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .stats_sidebar_title {
  color: #f9fafb;
}

.stats_sidebar_nav {
  padding: 0.5rem;
}

.stats_sidebar_section_title {
  padding: 1rem 0.75rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .stats_sidebar_section_title {
  color: #6b7280;
}

.stats_sidebar_link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s;
}

.dark .stats_sidebar_link {
  color: #9ca3af;
}

.stats_sidebar_link:hover {
  background: #f9fafb;
  color: #111827;
}

.dark .stats_sidebar_link:hover {
  background: rgba(55, 65, 81, 0.5);
  color: #e5e7eb;
}

.stats_sidebar_link_active {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.dark .stats_sidebar_link_active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.stats_sidebar_link_active:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.dark .stats_sidebar_link_active:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.stats_sidebar_icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: #9ca3af;
}

.dark .stats_sidebar_icon {
  color: #6b7280;
}

.stats_sidebar_link_active .stats_sidebar_icon {
  color: #3b82f6;
}

.dark .stats_sidebar_link_active .stats_sidebar_icon {
  color: #60a5fa;
}

/* Review Star Empty */
.review_star_empty {
  color: #d1d5db;
}

.dark .review_star_empty {
  color: #4b5563;
}

/* Contact Form Additional Classes */
.contact_form_row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .contact_form_row {
    grid-template-columns: 1fr;
  }
}

.contact_form_hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.dark .contact_form_hint {
  color: #9ca3af;
}

.contact_form_checkbox_label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact_form_checkbox {
  margin-top: 0.25rem;
}

.contact_form_checkbox_text {
  font-size: 0.875rem;
  color: #4b5563;
}

.dark .contact_form_checkbox_text {
  color: #9ca3af;
}

.contact_form_error {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-radius: 0.5rem;
}

.dark .contact_form_error {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.contact_info_box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 0.5rem;
}

.dark .contact_info_box {
  background: #1f2937;
}

.contact_info_title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.dark .contact_info_title {
  color: #f9fafb;
}

.contact_info_list {
  font-size: 0.875rem;
  color: #4b5563;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dark .contact_info_list {
  color: #d1d5db;
}

.contact_info_list li {
  margin-bottom: 0.5rem;
}

/* ========================================
   STATS PAGE - ADDITIONAL CLASSES
   ======================================== */

/* Stats Cards Variants */
.stats_cards_2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stats_cards_3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {

  .stats_cards_2col,
  .stats_cards_3col {
    grid-template-columns: 1fr;
  }
}

.stats_card_center {
  text-align: center;
}

.stats_card_value_green {
  color: #10b981;
}

.stats_card_value_blue {
  color: #3b82f6;
}

/* Table Styles */
.stats_table_wrap {
  overflow-x: auto;
}

.stats_table {
  width: 100%;
  border-collapse: collapse;
}

.stats_table_head {
  background: #f9fafb;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.dark .stats_table_head {
  background: rgba(55, 65, 81, 0.5);
}

.stats_table_th {
  padding: 1rem;
  font-weight: 600;
  color: #6b7280;
  text-align: left;
}

.dark .stats_table_th {
  color: #9ca3af;
}

.stats_table_th_center {
  text-align: center;
}

.stats_table_th_right {
  text-align: right;
}

.stats_table_body {}

.stats_table_row {
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

.stats_table_row:hover {
  background: #f9fafb;
}

.dark .stats_table_row {
  border-bottom-color: #374151;
}

.dark .stats_table_row:hover {
  background: rgba(55, 65, 81, 0.5);
}

.stats_table_td {
  padding: 1rem;
  color: #374151;
}

.dark .stats_table_td {
  color: #d1d5db;
}

.stats_table_td_center {
  text-align: center;
}

.stats_table_td_right {
  text-align: right;
}

.stats_table_td_name {
  font-weight: 500;
  color: #111827;
}

.dark .stats_table_td_name {
  color: #f9fafb;
}

.stats_table_rank {
  font-weight: 700;
  color: #9ca3af;
}

.stats_table_link {
  color: #111827;
  text-decoration: none;
  transition: color 0.15s;
}

.stats_table_link:hover {
  color: #3b82f6;
}

.dark .stats_table_link {
  color: #f9fafb;
}

.dark .stats_table_link:hover {
  color: #60a5fa;
}

.stats_table_value {
  font-weight: 500;
  color: #111827;
}

.dark .stats_table_value {
  color: #f9fafb;
}

.stats_table_subvalue {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* Rating Inline */
.stats_rating_inline {
  color: #f59e0b;
  font-weight: 600;
}

.stats_rating_badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.5rem;
  color: #d97706;
  font-weight: 600;
}

.dark .stats_rating_badge {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* Chart Row Layout */
.stats_chart_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .stats_chart_row {
    grid-template-columns: 1fr;
  }
}

.stats_panel_wide {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .stats_panel_wide {
    grid-column: span 1;
  }
}

.stats_panel_center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stats_panel_header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1rem;
}

.dark .stats_panel_header {
  border-bottom-color: #374151;
}

.stats_panel_subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.dark .stats_panel_subtitle {
  color: #9ca3af;
}

/* Rating Display */
.stats_rating_big {
  font-size: 3rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 0.5rem;
}

.stats_rating_stars {
  font-size: 1.5rem;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.stats_rating_star_empty {
  color: #d1d5db;
}

.dark .stats_rating_star_empty {
  color: #4b5563;
}

.stats_rating_count {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* Comparison Layout */
.stats_comparison_col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats_comparison_row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.stats_comparison_value {
  font-size: 1.875rem;
  font-weight: 700;
}

.stats_comparison_value_green {
  color: #10b981;
}

.stats_comparison_value_blue {
  color: #3b82f6;
}

.stats_comparison_pct {
  font-size: 1.125rem;
  font-weight: 500;
  color: #6b7280;
}

/* Progress Bar */
.stats_progress_bar {
  width: 100%;
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.dark .stats_progress_bar {
  background: #374151;
}

.stats_progress_bar_lg {
  height: 0.75rem;
}

.stats_progress_bar_sm {
  width: 6rem;
  height: 0.5rem;
}

.stats_progress_fill {
  height: 100%;
  border-radius: 9999px;
}

.stats_progress_fill_green {
  background: #10b981;
}

.stats_progress_fill_blue {
  background: #3b82f6;
}

.stats_progress_fill_indigo {
  background: #4f46e5;
}

.stats_progress_cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.stats_progress_label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.dark .stats_progress_label {
  color: #f9fafb;
}

/* Filter Tabs */
.stats_filter_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stats_filter_tab {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  background: #fff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.dark .stats_filter_tab {
  background: #1f2937;
  color: #d1d5db;
  border-color: #374151;
}

.stats_filter_tab:hover {
  background: #f9fafb;
}

.dark .stats_filter_tab:hover {
  background: #374151;
}

.stats_filter_tab_active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.stats_filter_tab_active:hover {
  background: #2563eb;
}

.dark .stats_filter_tab_active {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

/* App Rank */
.stats_app_rank {
  width: 2rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #d1d5db;
  text-align: center;
  flex-shrink: 0;
}

.dark .stats_app_rank {
  color: #4b5563;
}

/* App Item Meta */
.stats_app_item_meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.stats_app_item_rating {
  color: #f59e0b;
  font-weight: 500;
}

.stats_app_item_category {
  color: #6b7280;
}

.dark .stats_app_item_category {
  color: #9ca3af;
}

.stats_separator {
  color: #d1d5db;
}

.dark .stats_separator {
  color: #4b5563;
}

/* Badge */
.stats_app_item_badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .stats_app_item_badge {
    display: none;
  }
}

.stats_badge_trending {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.dark .stats_badge_trending {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.stats_badge_icon {
  width: 1rem;
  height: 1rem;
}

/* Category Cell */
.stats_category_cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stats_category_icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
}

.dark .stats_category_icon {
  background: #374151;
  color: #9ca3af;
}

/* Filter Form */
.stats_filter_form {
  background: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  margin-bottom: 2rem;
}

.dark .stats_filter_form {
  background: #1f2937;
  border-color: #374151;
}

.stats_filter_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .stats_filter_grid {
    grid-template-columns: 1fr;
  }
}

.stats_filter_group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stats_filter_label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.dark .stats_filter_label {
  color: #d1d5db;
}

.stats_filter_select {
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  color: #111827;
  font-size: 0.875rem;
}

.dark .stats_filter_select {
  background: #374151;
  border-color: #4b5563;
  color: #f9fafb;
}

.stats_filter_select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* App Row (Table) */
.stats_app_row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.stats_app_row_icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  object-fit: cover;
  background: #f3f4f6;
}

.dark .stats_app_row_icon {
  background: #374151;
}

.stats_app_row_info {
  min-width: 0;
}

.stats_app_row_name {
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .stats_app_row_name {
  color: #f9fafb;
}

.stats_app_row_dev {
  font-size: 0.875rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dark .stats_app_row_dev {
  color: #9ca3af;
}

.stats_app_row_meta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Responsive Visibility */
.stats_hide_mobile {
  display: table-cell;
}

.stats_hide_tablet {
  display: table-cell;
}

.stats_show_mobile {
  display: none;
}

@media (max-width: 768px) {
  .stats_hide_mobile {
    display: none;
  }

  .stats_show_mobile {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .stats_hide_tablet {
    display: none;
  }
}

/* Empty State */
.stats_empty_state {
  background: #fff;
  padding: 3rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f3f4f6;
  text-align: center;
}

.dark .stats_empty_state {
  background: #1f2937;
  border-color: #374151;
}

.stats_empty_icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 9999px;
}

.dark .stats_empty_icon {
  background: rgba(55, 65, 81, 0.5);
}

.stats_icon_svg {
  width: 2rem;
  height: 2rem;
  color: #9ca3af;
}

.stats_empty_title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.dark .stats_empty_title {
  color: #f9fafb;
}

.stats_empty_text {
  color: #6b7280;
}

.dark .stats_empty_text {
  color: #9ca3af;
}

/* IAP Panel */
.stats_panel_iap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats_iap_header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stats_iap_icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 0.75rem;
}

.dark .stats_iap_icon {
  background: rgba(79, 70, 229, 0.3);
}

.stats_iap_icon .stats_icon_svg {
  width: 2rem;
  height: 2rem;
  color: #4f46e5;
}

.dark .stats_iap_icon .stats_icon_svg {
  color: #818cf8;
}

.stats_iap_title_wrap {}

.stats_iap_title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.dark .stats_iap_title {
  color: #f9fafb;
}

.stats_iap_subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}

.dark .stats_iap_subtitle {
  color: #9ca3af;
}

.stats_iap_stats {
  margin-top: 1rem;
}

.stats_iap_value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
}

.dark .stats_iap_value {
  color: #f9fafb;
}

.stats_iap_pct {
  font-size: 1.25rem;
  font-weight: 700;
  color: #4f46e5;
}

.dark .stats_iap_pct {
  color: #818cf8;
}

/* Summary Stats Widget */
.stats_summary_stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stats_summary_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.dark .stats_summary_item {
  border-bottom-color: #374151;
}

.stats_summary_label {
  font-size: 0.8125rem;
  color: #6b7280;
}

.dark .stats_summary_label {
  color: #9ca3af;
}

.stats_summary_value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.dark .stats_summary_value {
  color: #f9fafb;
}

.stats_summary_positive {
  color: #10b981;
}

/* Download Tiers List */
.stats_tiers_list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stats_tier_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.dark .stats_tier_item {
  border-bottom-color: #374151;
}

.stats_tier_label {
  font-size: 0.8125rem;
  color: #374151;
}

.dark .stats_tier_label {
  color: #d1d5db;
}

.stats_tier_count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
}

.dark .stats_tier_count {
  color: #9ca3af;
}

.stats_tier_percentage {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111827;
}

.dark .stats_tier_percentage {
  color: #f9fafb;
}

/* Category Summary */
.stats_categories_summary {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stats_category_summary_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.stats_category_summary_item:hover {
  background: #f9fafb;
}

.dark .stats_category_summary_item:hover {
  background: #374151;
}

.stats_cat_summary_name {
  font-size: 0.8125rem;
  color: #111827;
}

.dark .stats_cat_summary_name {
  color: #f9fafb;
}

.stats_cat_summary_count {
  font-size: 0.75rem;
  color: #6b7280;
}

.dark .stats_cat_summary_count {
  color: #9ca3af;
}

/* Country Comparison */
.stats_country_comparison {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stats_country_bar_row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats_country_name {
  min-width: 100px;
  font-size: 0.75rem;
  color: #374151;
}

.dark .stats_country_name {
  color: #d1d5db;
}

.stats_country_bar {
  flex: 1;
  height: 0.5rem;
  background: #e5e7eb;
  border-radius: 9999px;
  overflow: hidden;
}

.dark .stats_country_bar {
  background: #374151;
}

.stats_country_bar_fill {
  height: 100%;
  background: #3b82f6;
}

.stats_country_value {
  min-width: 50px;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

.dark .stats_country_value {
  color: #9ca3af;
}

/* Filter Bar */
.stats_filter_bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.stats_filter_group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Buttons */
.stats_btn {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.stats_btn:hover {
  background: #2563eb;
}

.stats_btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.stats_btn_secondary {
  background: #f3f4f6;
  color: #374151;
}

.dark .stats_btn_secondary {
  background: #374151;
  color: #d1d5db;
}

.stats_btn_secondary:hover {
  background: #e5e7eb;
}

.dark .stats_btn_secondary:hover {
  background: #4b5563;
}

/* Compact Apps List */
.stats_apps_compact_list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stats_app_compact_item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
  text-decoration: none;
  color: inherit;
  border-radius: 0.5rem;
  transition: background 0.15s;
}

.stats_app_compact_item:hover {
  background: #f9fafb;
}

.dark .stats_app_compact_item:hover {
  background: #374151;
}

.stats_app_compact_icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.stats_app_compact_info {
  flex: 1;
  min-width: 0;
}

.stats_app_compact_name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.dark .stats_app_compact_name {
  color: #f9fafb;
}

.stats_app_compact_dev {
  font-size: 0.75rem;
  color: #6b7280;
}

.dark .stats_app_compact_dev {
  color: #9ca3af;
}

.stats_app_compact_metrics {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.stats_app_compact_rating {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f59e0b;
}

.stats_app_compact_downloads {
  font-size: 0.75rem;
  color: #6b7280;
}

.dark .stats_app_compact_downloads {
  color: #9ca3af;
}

/* Panel Actions */
.stats_panel_actions {
  display: flex;
  gap: 0.5rem;
}

.stats_btn_icon {
  padding: 0.375rem;
  background: transparent;
  color: #6b7280;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
}

.stats_btn_icon:hover {
  background: #f3f4f6;
  color: #111827;
}

.dark .stats_btn_icon:hover {
  background: #374151;
  color: #f9fafb;
}

.stats_panel_stats {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.stats_panel_stat {
  font-size: 0.75rem;
  color: #6b7280;
}

.dark .stats_panel_stat {
  color: #9ca3af;
}

/* Stats Charts Grid */
.stats_charts_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .stats_charts_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .stats_charts_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Panel Chart Specific */
.stats_panel_chart {
  min-height: 400px;
}

.stats_panel_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.dark .stats_panel_header {
  border-bottom-color: #374151;
}

.stats_panel_badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.dark .stats_panel_badge {
  background: #1e3a8a;
  color: #93c5fd;
}

.stats_panel_badge_icon {
  width: 14px;
  height: 14px;
}

/* Filter Label */
.stats_filter_label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.dark .stats_filter_label {
  color: #d1d5db;
}

/* Select Dropdown */
.stats_select {
  padding: 0.5rem 0.75rem;
  background: white;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  min-width: 150px;
}

.dark .stats_select {
  background: #374151;
  color: #f9fafb;
  border-color: #4b5563;
}

.stats_select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark .stats_select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* ============================================ */
/* DASHBOARD STYLES */
/* ============================================ */

.dashboard_container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.dashboard_grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  min-height: 100vh;
}

@media (max-width: 1024px) {
  .dashboard_grid {
    grid-template-columns: 1fr;
  }

  .dashboard_sidebar {
    display: none;
  }
}

/* Sidebar */
.dashboard_sidebar {
  position: sticky;
  top: 1rem;
  height: fit-content;
  align-self: start;
}

/* Main Content */
.dashboard_content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 0 2rem 0;
}

/* Header */
.dashboard_header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e5e7eb;
}

.dark .dashboard_header {
  border-bottom-color: #374151;
}

.dashboard_header_left {
  flex: 1;
}

.dashboard_title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.025em;
}

.dark .dashboard_title {
  color: #f9fafb;
}

.dashboard_description {
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 0;
}

.dark .dashboard_description {
  color: #9ca3af;
}

.dashboard_header_right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard_last_updated {
  font-size: 0.8125rem;
  color: #6b7280;
  padding: 0.375rem 0.75rem;
  background: #f3f4f6;
  border-radius: 0.375rem;
}

.dark .dashboard_last_updated {
  color: #9ca3af;
  background: #374151;
}

.dashboard_btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dashboard_btn_refresh {
  background: #3b82f6;
  color: white;
}

.dashboard_btn_refresh:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Metrics Cards */
.dashboard_metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.dashboard_metric_card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .dashboard_metric_card {
  background: #1f2937;
  border-color: #374151;
}

.dashboard_metric_card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dashboard_metric_icon {
  font-size: 2rem;
  line-height: 1;
}

.dashboard_metric_content {
  flex: 1;
}

.dashboard_metric_value {
  font-size: 1.625rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.dark .dashboard_metric_value {
  color: #f9fafb;
}

.dashboard_metric_label {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.25rem;
  font-weight: 500;
}

.dark .dashboard_metric_label {
  color: #9ca3af;
}

.dashboard_metric_change {
  font-size: 0.75rem;
  margin-top: 0.375rem;
  font-weight: 500;
}

.dashboard_metric_change.positive {
  color: #10b981;
}

.dashboard_metric_change.neutral {
  color: #6b7280;
}

.dark .dashboard_metric_change.neutral {
  color: #9ca3af;
}

/* Metric card variants */
.dashboard_metric_primary {
  border-left: 4px solid #3b82f6;
}

.dashboard_metric_success {
  border-left: 4px solid #10b981;
}

.dashboard_metric_info {
  border-left: 4px solid #06b6d4;
}

.dashboard_metric_warning {
  border-left: 4px solid #f59e0b;
}

.dashboard_metric_purple {
  border-left: 4px solid #8b5cf6;
}

.dashboard_metric_secondary {
  border-left: 4px solid #6b7280;
}

/* Main Grid */
.dashboard_main_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1280px) {
  .dashboard_main_grid {
    grid-template-columns: 1fr;
  }
}

.dashboard_left_col,
.dashboard_right_col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Sections */
.dashboard_section {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .dashboard_section {
  background: #1f2937;
  border-color: #374151;
}

.dashboard_section_full {
  grid-column: 1 / -1;
}

.dashboard_section_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.dark .dashboard_section_header {
  background: #111827;
  border-bottom-color: #374151;
}

.dashboard_section_title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.dark .dashboard_section_title {
  color: #f9fafb;
}

.dashboard_section_actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dashboard_link {
  font-size: 0.8125rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.dashboard_link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.dashboard_badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard_badge_ai {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
}

/* Apps List */
.dashboard_apps_list {
  display: flex;
  flex-direction: column;
}

.dashboard_app_item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.15s ease;
}

.dark .dashboard_app_item {
  border-bottom-color: #374151;
}

.dashboard_app_item:hover {
  background: #f9fafb;
}

.dark .dashboard_app_item:hover {
  background: #111827;
}

.dashboard_app_item_highlight {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(236, 72, 153, 0.05));
  border-left: 3px solid #8b5cf6;
}

.dashboard_app_rank {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  min-width: 1.5rem;
  text-align: center;
}

.dark .dashboard_app_rank {
  color: #9ca3af;
}

.dashboard_app_rank_special {
  color: #8b5cf6;
}

.dashboard_app_icon {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard_app_info {
  flex: 1;
  min-width: 0;
}

.dashboard_app_name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .dashboard_app_name {
  color: #f9fafb;
}

.dashboard_app_dev {
  font-size: 0.8125rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .dashboard_app_dev {
  color: #9ca3af;
}

.dashboard_app_meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.dashboard_app_rating {
  font-weight: 500;
}

.dashboard_separator {
  color: #d1d5db;
}

.dashboard_app_installs {
  font-weight: 500;
}

.dashboard_app_badge {
  flex-shrink: 0;
}

.dashboard_trend_badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
}

.dashboard_trend_high {
  background: #dcfce7;
  color: #166534;
}

.dashboard_trend_medium {
  background: #fef3c7;
  color: #92400e;
}

.dashboard_trend_low {
  background: #f3f4f6;
  color: #374151;
}

.dark .dashboard_trend_low {
  background: #374151;
  color: #d1d5db;
}

.dashboard_app_prediction {
  flex-shrink: 0;
  text-align: right;
}

.dashboard_prediction_label {
  font-size: 0.6875rem;
  color: #6b7280;
  margin-bottom: 0.125rem;
}

.dark .dashboard_prediction_label {
  color: #9ca3af;
}

.dashboard_prediction_value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b5cf6;
}

/* Country Tabs */
.dashboard_country_tabs {
  display: flex;
  gap: 0.375rem;
  padding: 0.75rem 1.25rem 0;
  overflow-x: auto;
  border-bottom: 1px solid #e5e7eb;
}

.dark .dashboard_country_tabs {
  border-bottom-color: #374151;
}

.dashboard_country_tab {
  flex-shrink: 0;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 0.375rem 0.375rem 0 0;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.15s ease;
}

.dark .dashboard_country_tab {
  color: #9ca3af;
}

.dashboard_country_tab:hover {
  background: #f3f4f6;
  color: #111827;
}

.dark .dashboard_country_tab:hover {
  background: #374151;
  color: #f9fafb;
}

.dashboard_country_tab_active {
  background: white;
  color: #3b82f6;
}

.dark .dashboard_country_tab_active {
  background: #1f2937;
  color: #60a5fa;
}

/* Country Rankings */
.dashboard_country_rankings {
  padding: 1rem;
}

.dashboard_rankings_list {
  display: flex;
  flex-direction: column;
}

.dashboard_ranking_item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

.dashboard_ranking_item:hover {
  background: #f9fafb;
}

.dark .dashboard_ranking_item:hover {
  background: #111827;
}

.dashboard_ranking_pos {
  font-size: 0.875rem;
  font-weight: 700;
  color: #6b7280;
  min-width: 1.5rem;
  text-align: center;
}

.dark .dashboard_ranking_pos {
  color: #9ca3af;
}

.dashboard_ranking_icon {
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  object-fit: cover;
}

.dashboard_ranking_info {
  flex: 1;
  min-width: 0;
}

.dashboard_ranking_name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .dashboard_ranking_name {
  color: #f9fafb;
}

.dashboard_ranking_dev {
  font-size: 0.75rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .dashboard_ranking_dev {
  color: #9ca3af;
}

.dashboard_ranking_stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}

.dashboard_ranking_rating {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f59e0b;
}

.dashboard_ranking_installs {
  font-size: 0.75rem;
  color: #6b7280;
}

.dark .dashboard_ranking_installs {
  color: #9ca3af;
}

.dashboard_rankings_footer {
  padding: 0.75rem 1rem;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.dark .dashboard_rankings_footer {
  border-top-color: #374151;
}

/* Chart Container */
.dashboard_chart_container {
  padding: 1rem;
}

/* Empty State */
.dashboard_empty {
  padding: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9375rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard_metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard_header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard_title {
    font-size: 1.375rem;
  }

  .dashboard_country_tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard_app_item,
  .dashboard_ranking_item {
    padding: 0.75rem;
  }

  .dashboard_app_icon,
  .dashboard_ranking_icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .dashboard_metrics {
    grid-template-columns: 1fr;
  }
}