/* ============================================
   SUBSCRIPTION APP - ESTILO MINIMALISTA
   ============================================ */

.subscription-app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* WELCOME SECTION */
.subscription-welcome {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subscription-welcome-header {
  text-align: center;
  margin-bottom: 60px;
}

.subscription-icon {
  display: inline-block;
  width: 80px;
  height: 80px;
  background: #667eea;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
}

.subscription-welcome-header h1 {
  font-size: 42px;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}

.subscription-welcome-header .subtitle {
  font-size: 18px;
  color: #718096;
  margin: 0;
  font-weight: 400;
}

/* FEATURES GRID */
.subscription-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: #cbd5e0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: #f7fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #667eea;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 12px 0;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #718096;
  margin: 0;
}

/* PRICING SECTION */
.subscription-pricing {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 48px 32px;
  margin-bottom: 60px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 12px 0;
}

.pricing-header p {
  font-size: 16px;
  color: #718096;
  margin: 0;
}

.pricing-card {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 32px;
  max-width: 500px;
  margin: 0 auto;
}

.pricing-value {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-value .percentage {
  display: block;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  color: #2d3748;
}

.pricing-value .description {
  display: block;
  font-size: 16px;
  color: #718096;
}

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

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: #4a5568;
}

.pricing-features li svg {
  flex-shrink: 0;
  color: #48bb78;
}

/* GATEWAYS SECTION */
.subscription-gateways {
  text-align: center;
  margin-bottom: 60px;
}

.subscription-gateways h2 {
  font-size: 28px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 8px 0;
}

.gateway-subtitle {
  font-size: 15px;
  color: #718096;
  margin: 0 0 32px 0;
}

.gateway-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.gateway-item {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.gateway-item:hover {
  border-color: #a0aec0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.gateway-item.gateway-coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
}

.gateway-item.gateway-coming-soon:hover {
  border-color: #e2e8f0;
  box-shadow: none;
}

.gateway-item .coming-soon-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gateway-logo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gateway-logo.stripe {
  color: #635bff;
}

.gateway-logo.mercadopago {
  color: #009ee3;
}

.gateway-logo.pagarme {
  color: #65a300;
}

.gateway-item p {
  font-size: 14px;
  color: #718096;
  margin: 0;
}

.gateway-fee-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #667eea;
  text-decoration: none;
  margin-top: 8px;
  transition: all 0.2s;
}

.gateway-fee-link:hover {
  color: #5568d3;
  text-decoration: underline;
}

.gateway-fee-link svg {
  flex-shrink: 0;
}

/* ACTIONS SECTION */
.subscription-actions {
  text-align: center;
}

.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-install:hover {
  background: #5568d3;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
}

.btn-install:active {
  transform: translateY(0);
}

.btn-install:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.install-note {
  margin-top: 16px;
  font-size: 14px;
  color: #a0aec0;
}

/* DASHBOARD (placeholder) */
.subscription-dashboard {
  text-align: center;
  padding: 60px 20px;
}

.subscription-dashboard h1 {
  font-size: 32px;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 12px 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .subscription-welcome-header h1 {
    font-size: 32px;
  }

  .subscription-features {
    grid-template-columns: 1fr;
  }

  .subscription-pricing {
    padding: 32px 20px;
  }

  .pricing-value .percentage {
    font-size: 48px;
  }

  .gateway-list {
    grid-template-columns: 1fr;
  }

  .btn-install {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   TABS NAVIGATION
   ============================================ */

.subscription-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 32px;
  overflow-x: auto;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #718096;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}

.tab-item:hover {
  color: #4a5568;
  background: #f7fafc;
}

.tab-item.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #f56565;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

/* ============================================
   DASHBOARD TAB
   ============================================ */

.dashboard-content {
  animation: fadeIn 0.4s ease-in;
}

.alert-config {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fef5e7;
  border: 1px solid #f7dc6f;
  border-left: 4px solid #f39c12;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 32px;
}

.alert-config svg {
  flex-shrink: 0;
  color: #f39c12;
}

.alert-config strong {
  display: block;
  color: #2d3748;
  margin-bottom: 4px;
}

.alert-config p {
  margin: 0;
  color: #718096;
  font-size: 14px;
}

.btn-config-now {
  flex-shrink: 0;
  padding: 10px 20px;
  background: #f39c12;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-config-now:hover {
  background: #e67e22;
}

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

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: #ebf4ff;
  color: #3182ce;
}

.stat-icon.green {
  background: #e6f9f0;
  color: #38a169;
}

.stat-icon.purple {
  background: #f3ebff;
  color: #805ad5;
}

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

.stat-label {
  font-size: 13px;
  color: #718096;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
}

.dashboard-sections {
  display: grid;
  gap: 24px;
}

.section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 20px 0;
}

.simple-table {
  overflow-x: auto;
}

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

.simple-table th {
  text-align: left;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  border-bottom: 2px solid #e2e8f0;
}

.simple-table td {
  padding: 12px;
  font-size: 14px;
  color: #2d3748;
  border-bottom: 1px solid #f7fafc;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.active {
  background: #e6f9f0;
  color: #38a169;
}

.status-badge.pending {
  background: #fff5e6;
  color: #ed8936;
}

.status-badge.cancelled {
  background: #fee;
  color: #e53e3e;
}

.status-badge.expired {
  background: #f7fafc;
  color: #718096;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #a0aec0;
}

.empty-state-large {
  text-align: center;
  padding: 80px 20px;
}

.empty-state-large svg {
  color: #cbd5e0;
  margin-bottom: 16px;
}

.empty-state-large h3 {
  font-size: 20px;
  font-weight: 600;
  color: #4a5568;
  margin: 0 0 8px 0;
}

.empty-state-large p {
  font-size: 15px;
  color: #a0aec0;
  margin: 0;
}

/* ============================================
   SETTINGS TAB
   ============================================ */

.settings-content {
  animation: fadeIn 0.4s ease-in;
}

.settings-header {
  margin-bottom: 32px;
}

.settings-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 8px 0;
}

.settings-header p {
  font-size: 15px;
  color: #718096;
  margin: 0;
}

.settings-form {
  max-width: 800px;
}

.form-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 8px;
}

.form-help {
  font-size: 13px;
  color: #a0aec0;
  margin: 0 0 16px 0;
}

.gateway-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.gateway-option {
  cursor: pointer;
}

.gateway-option input[type="radio"] {
  display: none;
}

.gateway-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}

.gateway-option input[type="radio"]:checked+.gateway-card {
  border-color: #667eea;
  background: #f7faff;
}

.gateway-option:hover .gateway-card {
  border-color: #cbd5e0;
}

/* Gateway Disabled */
.gateway-option.gateway-disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.gateway-option.gateway-disabled .gateway-card {
  background: #f8f9fa;
  cursor: not-allowed;
}

.gateway-option.gateway-disabled:hover .gateway-card {
  border-color: #e2e8f0;
}

.gateway-coming-soon-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gateway-fee-link-settings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #667eea;
  text-decoration: none;
  margin-top: 6px;
  transition: all 0.2s;
  position: relative;
  z-index: 2;
}

.gateway-fee-link-settings:hover {
  color: #5568d3;
  text-decoration: underline;
}

.gateway-fee-link-settings svg {
  flex-shrink: 0;
}

.gateway-logo-large {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.credentials-group {
  margin-top: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #2d3748;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.checkbox-group {
  margin-bottom: 0;
}

/* WEBHOOK SECTION */
.webhook-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.webhook-url-box {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: stretch;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #f7fafc;
}

.webhook-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #2d3748;
  font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
  outline: none;
}

.btn-copy-webhook {
  padding: 0 16px;
  background: #667eea;
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-copy-webhook:hover {
  background: #5568d3;
}

.btn-copy-webhook svg {
  flex-shrink: 0;
}

.btn-tutorial {
  padding: 12px 20px;
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

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

.btn-tutorial svg {
  flex-shrink: 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-actions {
  margin-top: 24px;
}

.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save:hover {
  background: #5568d3;
}

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

/* ============================================
   PRODUCTS & SUBSCRIPTIONS TABS
   ============================================ */

.products-content,
.subscriptions-content {
  animation: fadeIn 0.4s ease-in;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
}

.content-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 4px 0;
}

.content-header p {
  font-size: 14px;
  color: #718096;
  margin: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #5568d3;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.product-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.btn-remove-product {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #e74c3c;
  transition: all 0.2s;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-product:hover {
  background: #fee;
  color: #c0392b;
}

.product-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 4px 0;
}

.product-info p {
  font-size: 13px;
  color: #a0aec0;
  margin: 0;
}

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

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #38a169;
}

.table-responsive {
  overflow-x: auto;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

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

.data-table th {
  text-align: left;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4a5568;
  background: #f7fafc;
  border-bottom: 2px solid #e2e8f0;
}

.data-table td {
  padding: 16px;
  font-size: 14px;
  color: #2d3748;
  border-bottom: 1px solid #f7fafc;
}

.customer-cell strong {
  display: block;
  margin-bottom: 2px;
}

.customer-cell small {
  color: #a0aec0;
  font-size: 12px;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.form-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  color: #2d3748;
  background: white;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: #667eea;
}

.form-error {
  display: none;
  color: #e74c3c;
  margin-top: 8px;
  font-size: 14px;
}

/* ============================================
   SUBSCRIPTION MODAL
   ============================================ */

.subscription-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.subscription-modal-content {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.subscription-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
}

.subscription-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #718096;
  transition: color 0.2s;
}

.subscription-modal-close:hover {
  color: #2d3748;
}

.subscription-modal-body {
  padding: 24px;
}

.subscription-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
}

.subscription-btn-secondary {
  padding: 10px 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: #2d3748;
}

.subscription-btn-secondary:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
}

/* Product Confirmation */
.product-confirmation {
  text-align: center;
}

.product-confirmation-image {
  margin-bottom: 16px;
}

.product-confirmation-image img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.product-confirmation-info h4 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin: 16px 0 8px 0;
}

.product-confirmation-info p {
  margin: 4px 0;
  color: #718096;
  font-size: 14px;
}


.app-subscription-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;

  @media(max-width: 768px) {
    padding: 1rem;
  }

  .subscription-details-page {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    @media(max-width: 768px) {
      padding: 1rem;
    }
  }

  .page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
  }

  .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 1rem;
    transition: all 0.2s;
  }

  .btn-back:hover {
    color: #4f46e5;
    gap: 0.75rem;
  }

  .page-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    color: #1f2937;
  }

  .page-header p {
    margin: 0;
    color: #6b7280;
  }

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

  .detail-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
  }

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

  .card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
  }

  .card-body {
    padding: 1.25rem;
  }

  .info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
  }

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

  .info-row .label {
    color: #6b7280;
    font-weight: 500;
  }

  .info-row .value {
    color: #1f2937;
    text-align: right;
  }

  .payments-section {
    margin-top: 2rem;
  }

  .payments-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1f2937;
  }

  .table-responsive {
    overflow-x: auto;
  }

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

  .data-table thead {
    background: #f9fafb;
  }

  .data-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
  }

  .data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
  }

  .data-table tbody tr:hover {
    background: #f9fafb;
  }

  .status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
  }

  .status-badge.active {
    background: #d1fae5;
    color: #065f46;
  }

  .status-badge.pending {
    background: #fed7aa;
    color: #92400e;
  }

  .status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
  }

  .status-badge.paid {
    background: #d1fae5;
    color: #065f46;
  }

  .status-badge.failed {
    background: #fee2e2;
    color: #991b1b;
  }

  .empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
  }

  /* Modal Styles */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
  }

  .modal.active {
    display: flex;
  }

  .modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
  }

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

  .modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
  }

  .close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }

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

  .modal-body {
    padding: 1.5rem;
  }

  .modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
  }

  .alert {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
  }

  .alert svg {
    flex-shrink: 0;
  }

  .alert-warning {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
  }

  .alert-info {
    background: #dbeafe;
    border: 1px solid #60a5fa;
    color: #1e40af;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
  }

  .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
  }

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

  .form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;

    line-height: 1;
    position: relative;
    bottom: 3px;
  }

  .btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
  }

  .btn-danger {
    background: #dc2626;
    color: #fff;
  }

  .btn-danger:hover:not(:disabled) {
    background: #b91c1c;
  }

  .btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

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

  .btn-secondary:hover {
    background: #d1d5db;
  }

  [for="confirm-cancel"] {
    margin: 0;
  }
}