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

      body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
          sans-serif;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
        direction: rtl;
        padding: 20px;
      }

      header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 40px 30px;
        text-align: center;
        border-radius: 24px;
        margin-bottom: 30px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        position: relative;
      }

      header h1 {
        font-size: 32px;
        font-weight: 700;
        margin: 0;
      }

      .back-btn {
        position: absolute;
        top: 20px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 2px solid white;
        padding: 8px 16px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s;
        text-decoration: none;
        display: inline-block;
      }

      .back-btn:hover {
        background: white;
        color: #667eea;
      }

      .back-btn.left {
        left: 20px;
      }

      .back-btn.right {
        right: 20px;
      }

      .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        margin-bottom: 20px;
      }

      .card {
        background: white;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s, box-shadow 0.3s;
      }

      .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
      }

      .card h3 {
        color: #667eea;
        font-size: 18px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .stat-value {
        font-size: 36px;
        font-weight: 700;
        color: #333;
        margin: 12px 0;
      }

      .stat-label {
        font-size: 14px;
        color: #666;
        margin-bottom: 8px;
      }

      .stat-change {
        font-size: 14px;
        font-weight: 600;
        padding: 4px 12px;
        border-radius: 12px;
        display: inline-block;
      }

      .stat-change.positive {
        background: #e8f5e9;
        color: #4caf50;
      }

      .stat-change.negative {
        background: #ffebee;
        color: #f44336;
      }

      .stat-change.neutral {
        background: #e3f2fd;
        color: #2196f3;
      }

      .chart-container {
        background: white;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
      }

      .chart-container h3 {
        color: #667eea;
        font-size: 20px;
        margin-bottom: 16px;
      }

      canvas {
        max-height: 220px;
      }

      .prediction-box {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 16px;
        padding: 24px;
        margin-bottom: 20px;
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
      }

      .prediction-box h3 {
        font-size: 22px;
        margin-bottom: 16px;
      }

      .prediction-item {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      }

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

      .table-container {
        background: white;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        overflow-x: auto;
      }

      .table-container h3 {
        color: #667eea;
        font-size: 20px;
        margin-bottom: 16px;
      }

      table {
        width: 100%;
        border-collapse: collapse;
      }

      th,
      td {
        padding: 12px;
        text-align: right;
        border-bottom: 1px solid #e0e0e0;
      }

      th {
        background: #f5f5f5;
        font-weight: 600;
        color: #333;
      }

      tr:hover {
        background: #f8f9ff;
      }

      .loading {
        text-align: center;
        padding: 60px 20px;
        color: white;
        font-size: 18px;
        font-weight: 600;
      }

      .loading::after {
        content: " ⏳";
        animation: blink 1s infinite;
      }

      @keyframes blink {
        0% {
          opacity: 1;
        }
        50% {
          opacity: 0;
        }
        100% {
          opacity: 1;
        }
      }

      .metric-row {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid #e0e0e0;
      }

      .metric-row:last-child {
        border-bottom: none;
      }

      .metric-label {
        color: #666;
        font-weight: 500;
      }

      .metric-value {
        color: #333;
        font-weight: 700;
      }

      @media (max-width: 768px) {
        body {
          padding: 10px;
        }

        header {
          padding: 30px 15px;
          margin-bottom: 20px;
          border-radius: 16px;
        }

        header h1 {
          font-size: 22px;
          margin-top: 15px;
        }

        .back-btn {
          padding: 6px 12px;
          font-size: 12px;
        }

        .dashboard-grid {
          grid-template-columns: 1fr;
          gap: 15px;
        }

        .card {
          padding: 16px;
        }

        .stat-value {
          font-size: 28px;
        }

        .chart-container {
          padding: 16px;
        }

        .chart-container h3 {
          font-size: 18px;
        }

        .prediction-box {
          padding: 16px;
        }

        .prediction-box h3 {
          font-size: 18px;
        }

        .prediction-item {
          font-size: 14px;
        }

        .table-container {
          padding: 16px;
        }

        th, td {
          padding: 8px;
          font-size: 13px;
        }
      }

/* Business Insights - Premium UI Upgrade */
.business-insights-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.insight-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.insight-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: var(--insight-color, #60a5fa);
  opacity: 0.8;
}

.insight-card.success { --insight-color: #34d399; }
.insight-card.warning { --insight-color: #fbbf24; }
.insight-card.opportunity { --insight-color: #f472b6; }
.insight-card.info { --insight-color: #60a5fa; }

.insight-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.insight-icon {
  font-size: 24px;
  background: rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.insight-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  color: #fff;
  letter-spacing: -0.02em;
}

.insight-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-analysis {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.insight-recommendation {
  font-size: 14px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  border-right: 3px solid var(--insight-color);
}

.rec-label {
  display: block;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 4px;
  color: var(--insight-color);
  filter: brightness(1.2);
}

/* Mobile adjustments for insights */
@media (max-width: 768px) {
  .business-insights-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .insight-card {
    padding: 20px;
  }
  
  .insight-title {
    font-size: 17px;
  }
  
  .insight-analysis, .insight-recommendation {
    font-size: 13px;
  }
}
