/* Account Modal Styles - Matching Preferences Modal */
/* Specific sizing for account modal */
#accountModal .modal-dialog {
  width: 40% !important;
  max-width: 40% !important;
}

#accountModal .modal-content {
  width: 100% !important;
  max-width: 100% !important;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 2000;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
}

.modal-dialog {
  width: 50%;
  max-width: 50%;
  margin-top: 20px;
}

.modal-xl {
  width: 50%;
  max-width: 50%;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  width: inherit;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header Styling */
.account-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

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

.account-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s;
}

.account-close-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Body and Tab Container */
.account-modal-body {
  padding: 0;
}

/* Tab Navigation */
.account-tabs {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 0 24px;
}

.account-tab {
  padding: 12px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.account-tab.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.account-tab:hover {
  color: #374151;
}

/* Tab Content */
.account-tab-content {
  display: none;
  padding: 24px;
}

.account-tab-content.active {
  display: block;
}

/* Sections */
.account-section {
  margin-bottom: 20px;
}

.account-section:last-child {
  margin-bottom: 0;
}

.account-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 12px 0;
}

/* Grid Layout */
.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
}

.account-item.compact {
  padding: 10px 12px;
}

.account-item.featured {
  border-color: #2563eb;
  background: #eff6ff;
}

.account-label {
  flex: 1;
}

.account-label strong {
  display: block;
  color: #111827;
  margin-bottom: 2px;
  font-size: 14px;
}

.account-label h4 {
  margin: 0 0 2px 0;
  font-size: 16px;
  font-weight: 600;
}

.account-label small {
  color: #6b7280;
  font-size: 12px;
}

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

/* Usage Statistics Compact Layout */
.usage-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.usage-stat-item {
  text-align: center;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 2px 0;
  font-weight: 500;
}

.stat-change {
  font-size: 11px;
}

/* Credit Balance Card */
.credit-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 2px solid #2563eb;
  border-radius: 8px;
  background: #eff6ff;
}

.balance-info {
  flex: 1;
}

.balance-amount {
  font-size: 28px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
}

.balance-label {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0;
}

.balance-last-added {
  font-size: 11px;
}

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

/* Credit Display Specific */
.credit-display h2 {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.credit-display .text-primary {
  font-weight: 700;
}

/* Chart Container */
.chart-container {
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
  margin-top: 12px;
}

/* Form Elements */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

/* Optimized Payment Layout */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

.payment-card.full-width {
  grid-column: 1 / -1;
}

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

.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
}

.card-header h3 i {
  color: #6b7280;
}

/* Auto-Reload card header with tighter spacing */
.card-header .form-switch {
  margin-left: 16px;
  flex-shrink: 0;
}

/* Auto-Reload specific card header */
.auto-reload-card .card-header {
  justify-content: flex-start;
  gap: 16px;
}

.auto-reload-card .card-header .form-switch {
  margin-left: 0;
  width: auto;
  flex-shrink: 0;
}

.auto-reload-card .card-header .form-check {
  margin-bottom: 0;
  padding-left: 0;
  min-height: auto;
}

/* Force compact form-switch in card header */
.card-header .form-switch {
  padding-left: 0 !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
}

.card-header .form-switch .form-check-input {
  margin-left: 0 !important;
  position: relative !important;
}

.card-header .form-switch .form-check-label {
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* Credit Balance Display */
.credit-balance-display {
  padding: 20px;
  text-align: center;
}

.balance-amount {
  font-size: 32px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 4px;
}

.balance-label {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 12px;
}

.balance-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.auto-reload-status {
  font-size: 12px;
  color: #6b7280;
}

/* Quick Add Form */
.quick-add-form {
  padding: 20px;
}

.amount-selector {
  margin-bottom: 16px;
}

.amount-selector .form-label {
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
  font-size: 14px;
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Payment Methods List */
.payment-methods-list {
  padding: 20px;
  min-height: 120px;
}

.no-payment-methods {
  text-align: center;
  padding: 20px 0;
}

.no-payment-methods i {
  opacity: 0.5;
}

/* Auto-Reload Settings */
.auto-reload-settings {
  padding: 20px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.setting-row:last-child {
  margin-bottom: 0;
}

.setting-label {
  font-size: 14px;
  color: #374151;
  margin-bottom: 0;
  margin-right: 12px;
}

/* Enhanced Auto-Reload Styling */
.auto-reload-settings .form-group {
  margin-bottom: 24px;
  padding: 0;
  border: none;
}

.auto-reload-settings .form-group label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

.auto-reload-settings .form-check {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-width: auto;
}

.auto-reload-settings .form-check-label {
  margin-left: 0;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
  white-space: nowrap;
}

.auto-reload-settings .form-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 0;
  min-height: auto;
  width: auto;
  min-width: auto;
}

.auto-reload-settings .form-switch .form-check-input {
  position: relative;
  margin-left: 0;
  flex-shrink: 0;
}

.auto-reload-settings .form-switch .form-check-input {
  width: 2.5em;
  height: 1.25em;
  border-radius: 1.25em;
  background-color: #e5e7eb;
  border: 1px solid #d1d5db;
  transition: all 0.2s ease;
}

.auto-reload-settings .form-switch .form-check-input:checked {
  background-color: #10b981;
  border-color: #10b981;
}

.auto-reload-settings .form-switch .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.auto-reload-settings .input-group {
  max-width: 300px;
}

.auto-reload-settings .form-control {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.auto-reload-settings .form-control:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.auto-reload-settings .input-group-text {
  background-color: #f9fafb;
  border: 1px solid #d1d5db;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.preview-badge {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.preview-badge h6 {
  color: #0369a1;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.preview-badge p {
  color: #0f172a;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.preview-box {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px;
}

.preview-box small {
  line-height: 1.4;
  display: block;
}

/* Transactions List */
.transactions-list {
  padding: 20px;
  min-height: 150px;
}

.transaction-loading {
  text-align: center;
  padding: 40px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .account-tabs {
    padding: 0 16px;
  }
  
  .account-tab-content {
    padding: 16px;
  }
  
  .usage-stats-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .credit-balance-card {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .balance-actions {
    text-align: center;
  }
  
  .account-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .account-value {
    text-align: left;
    width: 100%;
  }

  .payment-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .card-header {
    padding: 12px 16px;
  }
  
  .card-header h3 {
    font-size: 15px;
  }
  
  .balance-amount {
    font-size: 28px;
  }
  
  .credit-balance-display,
  .quick-add-form,
  .payment-methods-list,
  .auto-reload-settings,
  .transactions-list {
    padding: 16px;
  }
  
  .setting-group {
    gap: 12px;
  }
  
  .setting-item .setting-label {
    font-size: 13px;
  }
  
  .preview-box {
    padding: 10px;
  }
}

/* Additional Utility Styles */
.badge-lg {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success/Error States */
.alert-success-custom {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-error-custom {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Auto-reload toggle animation */
#autoReloadSettings {
  transition: all 0.3s ease;
}

/* Usage chart container */
#usageChart {
  max-height: 200px;
}

/* Account button styling */
.account-link {
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-link:hover {
  color: #007bff !important;
  text-decoration: none;
}

/* Credit Section Styles */
.credit-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.credit-section .section-header {
  margin-bottom: 15px;
}

.credit-section .section-header h3 {
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.credit-section .section-header h3 i {
  color: #f39c12;
}

.credit-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.credit-balance {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.credit-count {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1;
}

.credit-count.low-credits {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}

.credit-count.medium-credits {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
}

.credit-count.high-credits {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
}

.credit-label {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.credit-usage {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.credit-usage small {
  color: #666;
  font-size: 0.9rem;
}

.credit-actions {
  margin-top: 10px;
}

.buy-credits-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buy-credits-btn:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

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

.buy-credits-btn i {
  font-size: 1rem;
}

/* Dark Theme Support for Account Modal */
.dark-theme .modal-content {
  background: #2c2c2c !important;
  color: #ffffff !important;
}

.dark-theme .account-modal-header {
  background: #383838 !important;
  border-bottom: 1px solid #404040 !important;
}

.dark-theme .account-modal-header h2 {
  color: #ffffff !important;
}

.dark-theme .modal-close-btn,
.dark-theme .btn-close {
  background: #404040 !important;
  color: #ffffff !important;
  border: none !important;
}

.dark-theme .modal-close-btn:hover,
.dark-theme .btn-close:hover {
  background: #555555 !important;
}

.dark-theme .account-modal-body {
  background: #2c2c2c !important;
  color: #ffffff !important;
}

.dark-theme .profile-section,
.dark-theme .password-section,
.dark-theme .subscription-section,
.dark-theme .usage-section,
.dark-theme .credit-section {
  background: #383838 !important;
  border: 1px solid #404040 !important;
  color: #ffffff !important;
}

.dark-theme .profile-section h3,
.dark-theme .password-section h3,
.dark-theme .subscription-section h3,
.dark-theme .usage-section h3,
.dark-theme .credit-section h3 {
  color: #ffffff !important;
  border-bottom: 2px solid #404040 !important;
}

.dark-theme .form-group label {
  color: #ffffff !important;
}

.dark-theme .account-label strong {
  color: #ffffff !important;
}

.dark-theme .account-label h4 {
  color: #ffffff !important;
}

.dark-theme .account-label small {
  color: #cccccc !important;
}

.dark-theme .stat-label {
  color: #ffffff !important;
}

.dark-theme .balance-label {
  color: #ffffff !important;
}

.dark-theme .form-label {
  color: #ffffff !important;
}

.dark-theme .setting-label {
  color: #ffffff !important;
}

.dark-theme .form-check-label {
  color: #ffffff !important;
}

.dark-theme .auto-reload-settings .form-group label {
  color: #ffffff !important;
}

.dark-theme .auto-reload-settings .form-check-label {
  color: #ffffff !important;
}

.dark-theme .amount-selector .form-label {
  color: #ffffff !important;
}

.dark-theme .card-header .form-switch .form-check-label {
  color: #ffffff !important;
}

/* Additional label selectors for comprehensive coverage */
.dark-theme label,
.dark-theme .label,
.dark-theme .field-label,
.dark-theme .input-label,
.dark-theme dt {
  color: #ffffff !important;
}

.dark-theme small,
.dark-theme .small,
.dark-theme .text-muted,
.dark-theme .help-text {
  color: #cccccc !important;
}

.dark-theme .text-secondary {
  color: #cccccc !important;
}

.dark-theme .form-control,
.dark-theme .form-select,
.dark-theme input[type="text"],
.dark-theme input[type="email"],
.dark-theme input[type="password"] {
  background: #2c2c2c !important;
  border: 1px solid #404040 !important;
  color: #ffffff !important;
}

.dark-theme .form-control:focus,
.dark-theme .form-select:focus,
.dark-theme input[type="text"]:focus,
.dark-theme input[type="email"]:focus,
.dark-theme input[type="password"]:focus {
  background: #383838 !important;
  border-color: #66BB6A !important;
  box-shadow: 0 0 0 2px rgba(102, 187, 106, 0.2) !important;
  color: #ffffff !important;
}

.dark-theme .form-control::placeholder,
.dark-theme input::placeholder {
  color: #cccccc !important;
}

.dark-theme .btn-primary {
  background: #66BB6A !important;
  border-color: #66BB6A !important;
}

.dark-theme .btn-primary:hover {
  background: #4CAF50 !important;
  border-color: #4CAF50 !important;
}

.dark-theme .btn-secondary {
  background: #404040 !important;
  border-color: #404040 !important;
  color: #ffffff !important;
}

.dark-theme .btn-secondary:hover {
  background: #555555 !important;
  border-color: #555555 !important;
}

.dark-theme .btn-danger {
  background: #ef5350 !important;
  border-color: #ef5350 !important;
}

.dark-theme .btn-danger:hover {
  background: #d32f2f !important;
  border-color: #d32f2f !important;
}

.dark-theme .alert {
  background: #2c2c2c !important;
  border: 1px solid #404040 !important;
  color: #ffffff !important;
}

.dark-theme .alert-success {
  background: #2e7d32 !important;
  border-color: #66BB6A !important;
  color: #ffffff !important;
}

.dark-theme .alert-danger {
  background: #c62828 !important;
  border-color: #ef5350 !important;
  color: #ffffff !important;
}

.dark-theme .subscription-badge {
  color: #ffffff !important;
  border: 1px solid #404040 !important;
}

.dark-theme .usage-stats {
  color: #ffffff !important;
}

.dark-theme .progress {
  background: #404040 !important;
}

.dark-theme .progress-bar {
  background: #66BB6A !important;
}

.dark-theme .account-link:hover {
  color: #66BB6A !important;
}

/* Status Badge Styles */
.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  min-width: 80px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Active status */
.status-badge.active {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Active but cancelling status */
.status-badge.active-cancelling {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
  position: relative;
  cursor: help;
}

.status-badge.active-cancelling::after {
  content: "⚠️";
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Trial status */
.status-badge.trial {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* Cancelled/Canceled status */
.status-badge.cancelled,
.status-badge.canceled {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

/* Past due status */
.status-badge.past-due {
  background: linear-gradient(135deg, #FF6B35 0%, #FF4444 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
  animation: pulse-warning 2s infinite;
}

/* Unpaid status */
.status-badge.unpaid {
  background: linear-gradient(135deg, #F44336 0%, #C62828 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

/* Paused status */
.status-badge.paused {
  background: linear-gradient(135deg, #9E9E9E 0%, #616161 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(158, 158, 158, 0.3);
}

/* Expired status */
.status-badge.expired {
  background: linear-gradient(135deg, #795548 0%, #5D4037 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(121, 85, 72, 0.3);
}

/* Inactive status */
.status-badge.inactive {
  background: linear-gradient(135deg, #607D8B 0%, #455A64 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(96, 125, 139, 0.3);
}

/* Account type badge styles (extend existing functionality) */
.status-badge.admin {
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.status-badge.platform {
  background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
  color: #333;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.status-badge.basic {
  background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}

.status-badge.pro {
  background: linear-gradient(135deg, #8BC34A 0%, #689F38 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 195, 74, 0.3);
}

.status-badge.elite {
  background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.status-badge.free {
  background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(158, 158, 158, 0.3);
}

/* Hover effects */
.status-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Dark theme support for status badges */
.dark-theme .status-badge {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive design for status badges */
@media (max-width: 768px) {
  .status-badge {
    font-size: 11px;
    padding: 5px 10px;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .status-badge {
    font-size: 10px;
    padding: 4px 8px;
    min-width: 60px;
  }
}

/* Enhanced Subscription Banner Styles */
.current-subscription-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subscription-status i {
  margin-right: 8px;
  font-size: 18px;
}

.subscription-details {
  font-size: 14px;
  opacity: 0.9;
  margin-top: 4px;
}

.subscription-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-start;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cancel-subscription-btn,
.reactivate-subscription-btn {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.cancel-subscription-btn:hover {
  border-color: #dc2626;
  background: #dc2626;
  transform: translateY(-1px);
}

.reactivate-subscription-btn {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.1);
}

.reactivate-subscription-btn:hover {
  border-color: #22c55e;
  background: #22c55e;
  transform: translateY(-1px);
}

/* Fix for subscription-action-btn classes */
.subscription-action-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 44px;
  min-width: 160px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  letter-spacing: 0.025em;
  text-align: center;
  white-space: nowrap;
}

.subscription-action-btn.cancel {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-action-btn.cancel:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}

.subscription-action-btn.cancel:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

/* Subscription note styling */
.subscription-note {
  color: #6b7280;
  font-size: 14px;
  font-style: italic;
  padding: 12px 0;
}

/* Responsive design for subscription actions */
@media (max-width: 480px) {
  .subscription-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .subscription-action-btn {
    min-width: 100%;
    justify-content: center;
  }
}

.subscription-action-btn.reactivate {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.subscription-action-btn.reactivate:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.subscription-action-btn.reactivate:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

/* Cancellation status styles */
.current-subscription-banner.cancelling {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.current-subscription-banner.cancelling .subscription-details {
  color: #fef3c7;
}

/* Dark theme support */
.dark-theme .current-subscription-banner {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .current-subscription-banner.cancelling {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
}

/* Responsive design */
@media (max-width: 768px) {
  .current-subscription-banner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .subscription-actions {
    width: 100%;
    justify-content: center;
  }
}
