/* ==================== PLANS MODAL ==================== */

.plans-modal {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

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

.plan-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-card.current {
  border-color: #3b82f6;
  background: #eff6ff;
}

.plan-card.featured {
  border-color: #8b5cf6;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.current-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #3b82f6;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.featured-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.plan-card h3 {
  font-size: 24px;
  margin: 0 0 16px 0;
  color: #111827;
}

.plan-price {
  margin-bottom: 24px;
}

.plan-price .price {
  font-size: 36px;
  font-weight: 800;
  color: #111827;
}

.plan-price .period {
  font-size: 16px;
  color: #6b7280;
  margin-left: 4px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-commission {
  background: #f9fafb;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 16px;
}

.plan-commission strong {
  color: #8b5cf6;
  font-size: 20px;
}

/* ==================== COMPARISON TABLE ==================== */

.plans-comparison {
  margin: 40px 0;
}

.plans-comparison h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  color: #111827;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comparison-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  text-align: left;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  font-weight: 600;
}

.comparison-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.comparison-table tbody tr:hover {
  background: #f3f4f6;
}

.comparison-table .good {
  color: #10b981;
  font-weight: 700;
}

.comparison-table .bad {
  color: #ef4444;
  font-weight: 700;
}

.comparison-table .warning {
  color: #f59e0b;
  font-weight: 700;
}

/* ==================== SAVINGS CALCULATOR ==================== */

.savings-calculator {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 2px solid #fbbf24;
  border-radius: 16px;
  padding: 30px;
  margin-top: 40px;
}

.savings-calculator h3 {
  margin: 0 0 12px 0;
  color: #92400e;
}

.savings-calculator p {
  margin: 0 0 16px 0;
  color: #78350f;
}

.savings-calculator input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #fbbf24;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

#savingsResult {
  margin-top: 20px;
}

.savings-positive {
  background: #d1fae5;
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 20px;
}

.savings-positive h4 {
  margin: 0 0 8px 0;
  color: #065f46;
  font-size: 18px;
}

.savings-positive p {
  margin: 0 0 12px 0;
  font-size: 24px;
  color: #047857;
}

.savings-positive ul {
  margin: 0;
  padding-left: 20px;
  color: #065f46;
}

.savings-negative {
  background: #e0e7ff;
  border: 2px solid #6366f1;
  border-radius: 12px;
  padding: 20px;
}

.savings-negative h4 {
  margin: 0 0 8px 0;
  color: #3730a3;
  font-size: 18px;
}

.savings-negative p {
  margin: 0;
  color: #4338ca;
}

/* ==================== BUTTONS ==================== */

.btn-full {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
  background: #e5e7eb;
  color: #6b7280;
}

/* ==================== RESPONSIVE ==================== */

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

  .plans-modal {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .comparison-table {
    font-size: 14px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px;
  }

  .plan-price .price {
    font-size: 28px;
  }
}

/* ==================== MODAL OVERLAY ==================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: #111827;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #111827;
}

.modal-body {
  padding: 30px;
}

/**********************************
 * ESTILOS METÁLICOS - PLANS
 **********************************/

/* Plan cards metálicas */
.plan-card {
  background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.plan-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,1) !important;
  transform: translateY(-2px);
}

.plan-card.featured {
  background: linear-gradient(145deg, #5ab0ff, #2979ff) !important;
  box-shadow: 0 8px 24px rgba(41,121,255,0.4), inset 0 2px 4px rgba(255,255,255,0.3) !important;
}

/* Plan buttons */
.plan-btn {
  background: linear-gradient(145deg, #5ab0ff, #2979ff) !important;
  box-shadow: 0 4px 12px rgba(41,121,255,0.3), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}

.plan-btn-secondary {
  background: linear-gradient(145deg, #ffffff, #f0f0f0) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1) !important;
}
