/* Windows Reseller Hosting Specific Styles */

/* Reseller Hero Section */
.reseller-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #f0f4ff 100%);
  overflow: hidden;
}

[data-theme="dark"] .reseller-hero {
  background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 100%);
}

.reseller-hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 2rem 0;
}

.reseller-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(128, 66, 149, 0.3);
}

.reseller-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.reseller-description {
  font-size: var(--font-size-xl);
  margin-bottom: 2rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.reseller-hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

/* Profit Highlights */
.profit-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.profit-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(128, 66, 149, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

[data-theme="dark"] .profit-item {
  background: rgba(45, 45, 45, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
}

.profit-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.profit-value {
  font-size: 2rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.profit-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Reseller Benefits */
.reseller-benefits {
  background: var(--bg-secondary);
  padding: var(--spacing-3xl) 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.benefit-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.5rem;
}

.benefit-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.benefit-card p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.benefit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-card ul li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.benefit-card ul li i {
  color: var(--success-color);
  font-size: 0.875rem;
}

/* Profit Calculator */
.profit-calculator {
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

[data-theme="dark"] .profit-calculator {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.calculator-inputs,
.calculator-results {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.calculator-inputs h3,
.calculator-results h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.range-slider {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  outline: none;
  margin-bottom: 0.5rem;
  -webkit-appearance: none;
  appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary-gradient);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--primary-gradient);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.range-value {
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  padding: 0.5rem;
  background: rgba(128, 66, 149, 0.1);
  border-radius: var(--border-radius);
}

.earnings-breakdown {
  margin-bottom: 2rem;
}

.earning-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.earning-item:last-child {
  border-bottom: none;
}

.earning-item.highlighted {
  background: rgba(128, 66, 149, 0.1);
  border-radius: var(--border-radius);
  margin: 0.5rem 0;
  border: 1px solid rgba(128, 66, 149, 0.2);
}

.earning-label {
  font-weight: 600;
  color: var(--text-primary);
}

.earning-amount {
  font-weight: 700;
  font-size: 1.25rem;
}

.earning-amount.cost {
  color: var(--danger-color);
}

.earning-amount.profit {
  color: var(--success-color);
}

.earning-amount.annual {
  color: var(--primary-color);
}

.profit-visualization {
  margin-bottom: 2rem;
}

.profit-chart {
  position: relative;
  height: 40px;
  background: var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.chart-segment {
  position: absolute;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  transition: width 0.5s ease;
}

.chart-segment.revenue {
  background: var(--info-color);
  left: 0;
}

.chart-segment.costs {
  background: var(--danger-color);
  left: 0;
}

.chart-segment.profit {
  background: var(--success-color);
  right: 0;
}

/* Reseller Pricing Specific */
.reseller-pricing .pricing-card {
  position: relative;
}

.reseller-starter {
  border-left: 4px solid var(--info-color);
}

.reseller-business {
  border-left: 4px solid var(--success-color);
}

.reseller-enterprise {
  border-left: 4px solid var(--warning-color);
}

.resource-limits {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
}

.resource-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-label {
  font-weight: 500;
  color: var(--text-secondary);
}

.resource-value {
  font-weight: 600;
  color: var(--text-primary);
}

.profit-estimate {
  text-align: center;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(39, 174, 96, 0.1);
  border-radius: var(--border-radius);
  color: var(--success-color);
  font-weight: 600;
  font-size: 0.875rem;
}

.profit-estimate i {
  margin-right: 0.5rem;
}

/* Management Tools Showcase */
.management-tools {
  background: var(--bg-secondary);
  padding: var(--spacing-3xl) 0;
}

.tools-showcase {
  max-width: 1000px;
  margin: 0 auto;
}

.tool-demo {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.tool-tabs {
  display: flex;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.tool-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.tool-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.tool-tab.active {
  background: var(--bg-primary);
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tool-content {
  position: relative;
  min-height: 400px;
}

.tool-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.tool-panel.active {
  opacity: 1;
  visibility: visible;
}

.panel-header h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.panel-header p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Billing Demo */
.billing-demo {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.invoice-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invoice-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border-left: 4px solid transparent;
  transition: var(--transition);
}

.invoice-item:hover {
  transform: translateX(5px);
}

.invoice-item.paid {
  border-left-color: var(--success-color);
}

.invoice-item.pending {
  border-left-color: var(--warning-color);
}

.invoice-item.overdue {
  border-left-color: var(--danger-color);
}

.invoice-status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.invoice-status.paid {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success-color);
}

.invoice-status.pending {
  background: rgba(243, 156, 18, 0.1);
  color: var(--warning-color);
}

.invoice-status.overdue {
  background: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
}

/* Customer Demo */
.customer-demo {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.customer-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.customer-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.customer-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.customer-avatar {
  width: 3rem;
  height: 3rem;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
}

.customer-info {
  flex: 1;
}

.customer-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.customer-email {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.customer-plan {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 500;
}

.customer-status {
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.customer-status.active {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success-color);
}

/* Automation Demo */
.automation-demo {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.automation-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  border: 2px solid var(--border-color);
  min-width: 120px;
  text-align: center;
  transition: var(--transition);
}

.flow-step.completed {
  border-color: var(--success-color);
  background: rgba(39, 174, 96, 0.1);
}

.flow-step.processing {
  border-color: var(--warning-color);
  background: rgba(243, 156, 18, 0.1);
}

.flow-step.pending {
  border-color: var(--text-muted);
}

.flow-step i {
  font-size: 1.5rem;
}

.flow-step.completed i {
  color: var(--success-color);
}

.flow-step.processing i {
  color: var(--warning-color);
}

.flow-step.pending i {
  color: var(--text-muted);
}

.flow-step span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  font-weight: bold;
}

/* Analytics Demo */
.analytics-demo {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: 1rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metric-box {
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.metric-change {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
}

.metric-change.positive {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success-color);
}

.metric-change.neutral {
  background: rgba(155, 89, 182, 0.1);
  color: var(--primary-color);
}

/* Success Stories */
.success-stories {
  padding: var(--spacing-3xl) 0;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.story-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.story-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.story-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.story-info h4 {
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.story-info span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.story-stats {
  margin-left: auto;
  text-align: center;
}

.stat {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success-color);
  margin-bottom: 0.25rem;
}

.stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.story-content p {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.story-metrics {
  display: flex;
  gap: 1rem;
  justify-content: space-around;
  flex-wrap: wrap;
}

.metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.metric i {
  color: var(--primary-color);
}

/* Getting Started Process */
.getting-started {
  background: var(--bg-secondary);
  padding: var(--spacing-3xl) 0;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.process-step {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 4rem;
  height: 4rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.step-content h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.step-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.step-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-features span {
  background: rgba(128, 66, 149, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Responsive Design for Reseller Page */
@media (max-width: 768px) {
  .reseller-hero {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .calculator-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .profit-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tool-tabs {
    flex-wrap: wrap;
  }
  
  .tool-tab {
    min-width: 50%;
  }
  
  .stories-grid {
    grid-template-columns: 1fr;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .invoice-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }
  
  .customer-card {
    flex-direction: column;
    text-align: center;
  }
  
  .automation-flow {
    flex-direction: column;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .reseller-title {
    font-size: 2rem;
  }
  
  .profit-highlights {
    grid-template-columns: 1fr;
  }
  
  .tool-tabs {
    flex-direction: column;
  }
  
  .tool-tab {
    min-width: auto;
  }
  
  .story-header {
    flex-direction: column;
    text-align: center;
  }
  
  .story-metrics {
    flex-direction: column;
    align-items: center;
  }
}