/* =============================================
   Sales Hub - Multi-channel Dashboard
   Font: Inter
   Icons: Lucide
   ============================================= */

:root {
  /* Layout */
  --sidebar-width: 256px;
  --sidebar-collapsed: 68px;
  --header-height: 64px;

  /* Colors - Base */
  --bg-page: #f8f9fa;
  --bg-card: #ffffff;
  --bg-sidebar: #18181b;
  --bg-hover: #f1f3f5;

  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  --text-inverse: #ffffff;

  --border-color: #e4e4e7;
  --border-light: #f4f4f5;

  /* Colors - Accent */
  --color-up: #22c55e;
  --color-up-bg: rgba(34, 197, 94, 0.1);
  --color-down: #ef4444;
  --color-down-bg: rgba(239, 68, 68, 0.1);

  /* Colors - Channels */
  --color-rakuten: #bf0000;
  --color-amazon: #ff9900;
  --color-tiktok: #000000;
  --color-ecforce: #6366f1;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   Sidebar
   ============================================= */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: width var(--transition-slow);
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed);
}

/* Sidebar Header */
.sidebar-header {
  height: var(--header-height);
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow: hidden;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #71717a 0%, #52525b 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-inverse);
  white-space: nowrap;
  letter-spacing: -0.3px;
  transition: opacity var(--transition-slow);
}

.sidebar.collapsed .logo-text {
  opacity: 0;
  width: 0;
}

.toggle-btn {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.toggle-btn:hover {
  background: rgba(255,255,255,0.15);
  color: var(--text-inverse);
}

.toggle-btn svg {
  width: 16px;
  height: 16px;
}

.toggle-btn .icon-closed {
  display: none;
}

.sidebar.collapsed .toggle-btn .icon-open {
  display: none;
}

.sidebar.collapsed .toggle-btn .icon-closed {
  display: block;
}

/* Sidebar Nav */
.sidebar-nav {
  flex: 1;
  padding: var(--space-md) var(--space-sm);
  overflow-y: auto;
}

.nav-section {
  margin-bottom: var(--space-lg);
}

.nav-section-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0 var(--space-sm);
  margin-bottom: var(--space-sm);
  white-space: nowrap;
  transition: opacity var(--transition-slow);
}

.sidebar.collapsed .nav-section-title {
  opacity: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  margin-bottom: 2px;
  position: relative;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-inverse);
}

.nav-item.active {
  background: rgba(255,255,255,0.12);
  color: var(--text-inverse);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--text-inverse);
  border-radius: 0 2px 2px 0;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.nav-text {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: opacity var(--transition-slow);
}

.sidebar.collapsed .nav-text {
  opacity: 0;
  width: 0;
}

/* Channel Icons */
.channel-icon {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.channel-icon.rakuten {
  background: var(--color-rakuten);
  color: white;
}

.channel-icon.amazon {
  background: var(--color-amazon);
  color: #232f3e;
}

.channel-icon.tiktok {
  background: var(--color-tiktok);
  color: white;
}

.channel-icon.tiktok svg {
  width: 12px;
  height: 12px;
}

.channel-icon.ecforce {
  background: var(--color-ecforce);
  color: white;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.store-selector label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-xs);
  transition: opacity var(--transition-slow);
}

.sidebar.collapsed .store-selector label {
  opacity: 0;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: var(--text-inverse);
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
}

.store-btn:hover {
  background: rgba(255,255,255,0.12);
}

.store-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.store-name {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  text-align: left;
  white-space: nowrap;
  transition: opacity var(--transition-slow);
}

.sidebar.collapsed .store-name,
.sidebar.collapsed .store-chevron {
  opacity: 0;
  width: 0;
}

.store-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

/* =============================================
   Main Content
   ============================================= */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-slow);
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(--sidebar-collapsed);
}

/* Header */
.header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.last-update {
  font-size: 12px;
  color: var(--text-muted);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Date Picker */
.date-picker {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-hover);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.date-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.date-picker input {
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  padding: var(--space-xs);
  width: 110px;
}

.date-separator {
  color: var(--text-muted);
  font-size: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: #27272a;
}

.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

/* Content */
.content {
  padding: var(--space-lg);
}

/* =============================================
   Channel Summary Cards
   ============================================= */
.channel-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

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

.channel-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition);
}

.channel-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.channel-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.channel-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.channel-badge.rakuten {
  background: var(--color-rakuten);
  color: white;
}

.channel-badge.amazon {
  background: var(--color-amazon);
  color: #232f3e;
}

.channel-badge.tiktok {
  background: var(--color-tiktok);
  color: white;
}

.channel-badge.tiktok svg {
  width: 14px;
  height: 14px;
}

.channel-badge.ecforce {
  background: var(--color-ecforce);
  color: white;
}

.channel-name {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
}

.channel-link {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.channel-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.channel-link svg {
  width: 16px;
  height: 16px;
}

.channel-card-body {
  padding: var(--space-md);
}

.channel-metric {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.metric-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.metric-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
}

.metric-change svg {
  width: 14px;
  height: 14px;
}

.metric-change.up {
  color: var(--color-up);
}

.metric-change.down {
  color: var(--color-down);
}

.channel-sub {
  display: flex;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
}

.channel-card-chart {
  height: 60px;
  padding: 0 var(--space-md) var(--space-md);
}

/* =============================================
   Total KPIs
   ============================================= */
.total-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

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

.kpi-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.kpi-card.highlight {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  border-color: transparent;
  color: white;
}

.kpi-card.highlight .kpi-label {
  color: rgba(255,255,255,0.7);
}

.kpi-card.highlight .kpi-icon {
  background: rgba(255,255,255,0.15);
  color: white;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.kpi-icon svg {
  width: 24px;
  height: 24px;
}

.kpi-content {
  flex: 1;
}

.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 2px;
}

.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 500;
}

.kpi-change svg {
  width: 14px;
  height: 14px;
}

.kpi-change.up {
  color: var(--color-up);
}

.kpi-card.highlight .kpi-change.up {
  color: #86efac;
}

.kpi-change.down {
  color: var(--color-down);
}

/* =============================================
   Charts Section
   ============================================= */
.charts-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 1200px) {
  .charts-section {
    grid-template-columns: 1fr;
  }
}

.chart-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.card-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  font-weight: 600;
}

.card-title svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.chart-legend {
  display: flex;
  gap: var(--space-md);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 12px;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-item.rakuten .legend-dot { background: var(--color-rakuten); }
.legend-item.amazon .legend-dot { background: var(--color-amazon); }
.legend-item.tiktok .legend-dot { background: var(--color-tiktok); }
.legend-item.ecforce .legend-dot { background: var(--color-ecforce); }

.card-body {
  padding: var(--space-lg);
}

.card-body.no-padding {
  padding: 0;
}

.chart-container {
  height: 300px;
}

.chart-card.large .chart-container {
  height: 320px;
}

/* =============================================
   Tables Section
   ============================================= */
.tables-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 1200px) {
  .tables-section {
    grid-template-columns: 1fr;
  }
}

.table-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.card-actions {
  display: flex;
  gap: var(--space-sm);
}

.search-box {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-hover);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.search-box svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.search-box input {
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  width: 150px;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.data-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--bg-hover);
}

.data-table td {
  font-size: 13px;
}

.data-table tbody tr:hover {
  background: var(--bg-hover);
}

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

.text-right {
  text-align: right;
}

.product-name {
  font-weight: 500;
}

.channel-tags {
  display: flex;
  gap: var(--space-xs);
}

.channel-tag {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
}

.channel-tag.rakuten {
  background: rgba(191, 0, 0, 0.1);
  color: var(--color-rakuten);
}

.channel-tag.amazon {
  background: rgba(255, 153, 0, 0.1);
  color: #b45309;
}

.channel-tag.tiktok {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text-primary);
}

.channel-tag.ecforce {
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-ecforce);
}

.change {
  font-size: 12px;
  font-weight: 600;
}

.change.up {
  color: var(--color-up);
}

.change.down {
  color: var(--color-down);
}

/* Card Footer */
.card-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.link-more:hover {
  color: var(--text-primary);
}

.link-more svg {
  width: 16px;
  height: 16px;
}

/* =============================================
   Channel Detail Pages
   ============================================= */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.channel-badge.large {
  width: 32px;
  height: 32px;
  font-size: 15px;
}

/* Channel KPIs */
.channel-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 1400px) {
  .channel-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.channel-kpis .kpi-card.highlight.rakuten {
  background: linear-gradient(135deg, #bf0000 0%, #8b0000 100%);
}

.channel-kpis .kpi-card.highlight.amazon {
  background: linear-gradient(135deg, #ff9900 0%, #cc7a00 100%);
}

.channel-kpis .kpi-card.highlight.tiktok {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.channel-kpis .kpi-card.highlight.ecforce {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

/* Chart Controls */
.chart-controls {
  display: flex;
  gap: var(--space-xs);
}

.chart-btn {
  padding: var(--space-xs) var(--space-sm);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.chart-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.chart-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: white;
}

/* Rakuten Features */
.rakuten-features {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 1200px) {
  .rakuten-features {
    grid-template-columns: 1fr;
  }
}

/* Event Badges */
.event-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.event-badge.super-sale {
  background: linear-gradient(135deg, #bf0000 0%, #ff4444 100%);
  color: white;
}

.event-badge.okaimono {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  color: white;
}

.event-badge.regular {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

/* Product Cell */
.product-cell {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-image {
  width: 40px;
  height: 40px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.product-image svg {
  width: 20px;
  height: 20px;
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 500;
  margin-bottom: 2px;
}

.product-sku {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sparkline */
.sparkline {
  width: 60px;
  height: 24px;
  background: linear-gradient(to right, transparent 0%, var(--color-up-bg) 100%);
  border-radius: var(--radius-sm);
  position: relative;
}

.sparkline.up::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--color-up);
  border-radius: 1px;
  transform: rotate(-5deg);
}

.sparkline.down {
  background: linear-gradient(to right, transparent 0%, var(--color-down-bg) 100%);
}

.sparkline.down::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--color-down);
  border-radius: 1px;
  transform: rotate(5deg);
}

.sparkline.flat {
  background: linear-gradient(to right, transparent 0%, var(--bg-hover) 100%);
}

.sparkline.flat::after {
  content: '';
  position: absolute;
  bottom: 50%;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
}

/* Full Width Tables */
.tables-section.full-width {
  grid-template-columns: 1fr;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pagination-info {
  font-size: 12px;
  color: var(--text-muted);
}

.pagination-controls {
  display: flex;
  gap: var(--space-xs);
}

.pagination-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--border-color);
  color: var(--text-primary);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 16px;
  height: 16px;
}

/* Review Summary */
.review-summary {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.review-score {
  text-align: center;
}

.score-value {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-sm);
}

.score-stars {
  display: flex;
  gap: 2px;
  justify-content: center;
  margin-bottom: var(--space-xs);
}

.score-stars .star {
  width: 18px;
  height: 18px;
  color: var(--border-color);
}

.score-stars .star.filled {
  color: #fbbf24;
  fill: #fbbf24;
}

.score-stars .star.half {
  color: #fbbf24;
}

.score-count {
  font-size: 12px;
  color: var(--text-muted);
}

.review-bars {
  flex: 1;
}

.review-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.bar-label {
  width: 16px;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-hover);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #fbbf24;
  border-radius: 4px;
}

.bar-count {
  width: 32px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Rank Badge */
.rank-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.rank-badge.top {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

.text-center {
  text-align: center;
}

.change.flat {
  color: var(--text-muted);
}

/* Compact Table */
.data-table.compact th,
.data-table.compact td {
  padding: var(--space-sm) var(--space-md);
}

/* =============================================
   Amazon-specific Styles
   ============================================= */

/* Amazon Features Grid */
.amazon-features {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 1200px) {
  .amazon-features {
    grid-template-columns: 1fr;
  }
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

.status-badge.success {
  background: var(--color-up-bg);
  color: var(--color-up);
}

.status-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.status-badge.danger {
  background: var(--color-down-bg);
  color: var(--color-down);
}

/* Stock Badges */
.stock-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.stock-badge.good {
  background: var(--color-up-bg);
  color: var(--color-up);
}

.stock-badge.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.stock-badge.danger {
  background: var(--color-down-bg);
  color: var(--color-down);
}

/* Alert List */
.alert-list {
  padding: 0;
}

.alert-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.alert-item:last-child {
  border-bottom: none;
}

.alert-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-item.warning svg {
  color: #d97706;
}

.alert-item.danger svg {
  color: var(--color-down);
}

.alert-item.info svg {
  color: #3b82f6;
}

.alert-content {
  flex: 1;
}

.alert-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.alert-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.alert-time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Health Metrics */
.health-metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.health-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

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

.health-label {
  font-size: 13px;
  font-weight: 500;
}

.health-target {
  font-size: 11px;
  color: var(--text-muted);
}

.health-bar {
  height: 8px;
  background: var(--bg-hover);
  border-radius: 4px;
  overflow: hidden;
}

.health-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.health-fill.good {
  background: var(--color-up);
}

.health-fill.warning {
  background: #f59e0b;
}

.health-fill.danger {
  background: var(--color-down);
}

.health-value {
  font-size: 14px;
  font-weight: 600;
}

.health-value.good {
  color: var(--color-up);
}

.health-value.warning {
  color: #d97706;
}

.health-value.danger {
  color: var(--color-down);
}

/* =============================================
   TikTok-specific Styles
   ============================================= */

/* TikTok Features Grid */
.tiktok-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 1200px) {
  .tiktok-features {
    grid-template-columns: 1fr;
  }
}

/* Creator Cell */
.creator-cell {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.creator-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.creator-info {
  display: flex;
  flex-direction: column;
}

.creator-name {
  font-weight: 500;
  font-size: 13px;
}

.creator-followers {
  font-size: 11px;
  color: var(--text-muted);
}

/* Video List */
.video-list {
  display: flex;
  flex-direction: column;
}

.video-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.video-item:last-child {
  border-bottom: none;
}

.video-thumbnail {
  width: 64px;
  height: 80px;
  background: linear-gradient(135deg, #18181b 0%, #3f3f46 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.video-thumbnail svg {
  width: 24px;
  height: 24px;
}

.video-info {
  flex: 1;
}

.video-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.video-stats {
  display: flex;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
}

.video-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-stats svg {
  width: 14px;
  height: 14px;
}

.video-sales {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* =============================================
   EC Force-specific Styles
   ============================================= */

/* EC Force Features Grid */
.ecforce-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (max-width: 1200px) {
  .ecforce-features {
    grid-template-columns: 1fr;
  }
}

/* Subscription Overview */
.subscription-overview {
  display: flex;
  justify-content: space-around;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}

.subscription-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.stat-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid;
}

.stat-circle.active {
  border-color: var(--color-up);
  background: var(--color-up-bg);
}

.stat-circle.paused {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.stat-circle.new {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.stat-circle.churned {
  border-color: var(--color-down);
  background: var(--color-down-bg);
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Mini Bar */
.mini-bar {
  width: 100px;
  height: 8px;
  background: var(--bg-hover);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.mini-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--width, 0%);
  background: #6366f1;
  border-radius: 4px;
}

/* Benefit List */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.benefit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.benefit-info {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
}

.benefit-info svg {
  width: 18px;
  height: 18px;
  color: #6366f1;
}

.benefit-usage {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.usage-value {
  font-size: 13px;
  font-weight: 600;
  width: 40px;
  text-align: right;
}

.usage-bar {
  width: 100px;
  height: 8px;
  background: var(--bg-hover);
  border-radius: 4px;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: #6366f1;
  border-radius: 4px;
}

/* =============================================
   Product Detail Page Styles
   ============================================= */

/* Product Header Section */
.product-header-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.product-main-info {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.product-image-large {
  width: 180px;
  height: 180px;
  background: var(--bg-hover);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.product-image-large svg {
  width: 48px;
  height: 48px;
}

.product-details {
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.product-sku-large {
  font-size: 12px;
  color: var(--text-muted);
  font-family: monospace;
}

.product-status {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

.product-status.active {
  background: var(--color-up-bg);
  color: var(--color-up);
}

.product-status.inactive {
  background: var(--bg-hover);
  color: var(--text-muted);
}

.product-status.soldout {
  background: var(--color-down-bg);
  color: var(--color-down);
}

.product-title-large {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.5px;
}

.product-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-price-info {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.current-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-rakuten);
}

.original-price {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-badge {
  padding: 2px 8px;
  background: var(--color-down);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.product-tags .tag {
  padding: 4px 10px;
  background: var(--bg-hover);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Current Product Row Highlight */
.current-product {
  background: rgba(99, 102, 241, 0.05);
}

.current-product td {
  border-left: 3px solid #6366f1;
}

.current-product td:first-child {
  border-left: 3px solid #6366f1;
}

/* Review List */
.review-list {
  display: flex;
  flex-direction: column;
}

.review-item {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars .star.small {
  width: 14px;
  height: 14px;
}

.review-stars .star.filled {
  color: #fbbf24;
  fill: #fbbf24;
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .product-main-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .product-tags {
    justify-content: center;
  }
}

/* Clickable Table Rows */
.clickable-row {
  cursor: pointer;
  transition: background var(--transition);
}

.clickable-row:hover {
  background: var(--bg-hover);
}

/* Amazon Product Page Specific */
.amazon-price {
  color: var(--color-amazon) !important;
}

.amazon-choice {
  background: linear-gradient(135deg, #232f3e, #37475a);
  color: white;
}

.product-status.fba {
  background: var(--color-amazon);
  color: white;
}

.buybox-status {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.buybox-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.buybox-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
}

.buybox-indicator.success {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.buybox-indicator.warning {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.buybox-indicator.danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.buybox-indicator i {
  width: 20px;
  height: 20px;
}

.buybox-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.buybox-stat {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.buybox-stat .stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.buybox-stat .stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.fba-status {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.fba-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.fba-item {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.fba-item .fba-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.fba-item .fba-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.fba-item .fba-value.good {
  color: #16a34a;
}

.fba-item .fba-value.warning {
  color: #d97706;
}

.fba-item .fba-value.danger {
  color: #dc2626;
}

.fba-forecast {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.forecast-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.forecast-header i {
  width: 16px;
  height: 16px;
  color: var(--color-amazon);
}

.forecast-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.forecast-item {
  text-align: center;
}

.forecast-item .forecast-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.forecast-item .forecast-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.forecast-item .forecast-value.good {
  color: #16a34a;
}

.review-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #232f3e, #37475a);
  color: white;
  border-radius: var(--radius-sm);
}

.tag.small {
  font-size: 10px;
  padding: 2px 6px;
}

@media (max-width: 768px) {
  .buybox-stats,
  .fba-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .forecast-content {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
}

/* TikTok Product Page Specific */
.tiktok-price {
  color: var(--color-tiktok) !important;
}

.tiktok-exclusive {
  background: linear-gradient(135deg, #000000, #25f4ee);
  color: white;
}

.product-status.viral {
  background: linear-gradient(135deg, #fe2c55, #ff9500);
  color: white;
}

.tag.trending {
  background: linear-gradient(135deg, #fe2c55, #ff0050);
  color: white;
}

.video-performance-list {
  display: flex;
  flex-direction: column;
}

.video-performance-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.video-performance-item:last-child {
  border-bottom: none;
}

.video-thumbnail.large {
  width: 80px;
  height: 100px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.video-thumbnail.large i {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

.video-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 4px;
  border-radius: 2px;
}

.video-details {
  flex: 1;
  min-width: 0;
}

.video-details .video-title {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.video-creator {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.creator-avatar.small {
  width: 20px;
  height: 20px;
  font-size: 10px;
}

.video-metrics {
  display: flex;
  gap: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
}

.video-metrics span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-metrics i {
  width: 14px;
  height: 14px;
}

.video-sales-info {
  text-align: right;
}

.video-orders {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.video-revenue {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.creator-cell.compact {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.hashtag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hashtag-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-primary);
}

.hashtag-item.large {
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(254, 44, 85, 0.1));
}

.hashtag-item.small {
  font-size: 12px;
}

.hashtag-count {
  font-size: 11px;
  color: var(--text-muted);
}

.engagement-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.engagement-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.engagement-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
}

.engagement-data {
  display: flex;
  flex-direction: column;
}

.engagement-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.engagement-label {
  font-size: 11px;
  color: var(--text-muted);
}

.engagement-rate {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(254, 44, 85, 0.05));
  border-radius: var(--radius-md);
}

.rate-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.rate-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.rate-change {
  font-size: 13px;
}

.rate-change.up {
  color: #16a34a;
}

.comment-list {
  display: flex;
  flex-direction: column;
}

.comment-item {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.commenter {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

.comment-likes {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.comment-likes i {
  width: 14px;
  height: 14px;
  color: #fe2c55;
}

.comment-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.inventory-status.tiktok {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.inventory-item {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.inventory-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.inventory-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.inventory-value.good {
  color: #16a34a;
}

.inventory-forecast {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.forecast-text {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.forecast-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.forecast-fill {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: var(--radius-full);
}

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

  .inventory-summary {
    grid-template-columns: 1fr;
  }

  .video-performance-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .video-sales-info {
    text-align: left;
    margin-top: var(--space-sm);
  }
}

/* EC Force Product Page Specific */
.ecforce-price {
  color: var(--color-ecforce) !important;
}

.product-status.subscription {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.subscription-tag {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
}

.subscription-detail-overview {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.subscription-stat-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.stat-circle-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.stat-circle-large.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.stat-info {
  text-align: center;
}

.stat-label-large {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
}

.stat-sublabel {
  font-size: 12px;
  color: #16a34a;
}

.subscription-breakdown {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.breakdown-item {
  display: grid;
  grid-template-columns: 100px 60px 1fr;
  gap: var(--space-md);
  align-items: center;
}

.breakdown-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.breakdown-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.breakdown-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: var(--radius-full);
}

.monthly-movement {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.movement-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.movement-item i {
  width: 24px;
  height: 24px;
}

.movement-item.positive i {
  color: #16a34a;
}

.movement-item.negative i {
  color: #dc2626;
}

.movement-item.neutral i {
  color: #d97706;
}

.movement-item.info i {
  color: #6366f1;
}

.movement-data {
  display: flex;
  flex-direction: column;
}

.movement-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.movement-label {
  font-size: 11px;
  color: var(--text-muted);
}

.ltv-analysis {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ltv-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ltv-main {
  text-align: center;
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: var(--radius-lg);
}

.ltv-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.ltv-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-ecforce);
  margin-bottom: var(--space-xs);
}

.ltv-change {
  font-size: 13px;
}

.ltv-change.up {
  color: #16a34a;
}

.ltv-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.ltv-item {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.ltv-item-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.ltv-item-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.mini-bar.ecforce {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.bar-fill.ecforce {
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

.risk-badge.high {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.risk-badge.medium {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.risk-badge.low {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.churn-summary {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.churn-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.churn-change {
  font-size: 12px;
}

.churn-change.down {
  color: #16a34a;
}

.churn-change.up {
  color: #dc2626;
}

.review-badge.subscription {
  font-size: 11px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: var(--radius-sm);
}

.delivery-status {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.delivery-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.delivery-item {
  text-align: center;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.delivery-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.delivery-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.delivery-value.good {
  color: #16a34a;
}

.delivery-schedule {
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.schedule-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.schedule-header i {
  width: 16px;
  height: 16px;
  color: var(--color-ecforce);
}

.schedule-bar {
  height: 24px;
  background: var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.schedule-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: var(--radius-md);
}

.schedule-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 600;
  color: white;
}

@media (max-width: 768px) {
  .subscription-detail-overview {
    flex-direction: column;
    align-items: center;
  }

  .monthly-movement {
    grid-template-columns: repeat(2, 1fr);
  }

  .ltv-breakdown {
    grid-template-columns: 1fr;
  }

  .delivery-summary {
    grid-template-columns: 1fr;
  }
}
