/* CSS Variables for Light and Dark Mode */
:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --primary: #0f172a;
  --primary-foreground: #f8fafc;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #d9e0eb;
  --dark-muted-foreground: #26272beb;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #f8fafc;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #94a3b8;
  --radius: 0.5rem;
  --text-primary: #111827;
  --text-muted: #6b7280;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --grad-starter: radial-gradient(circle, rgb(201, 234, 249) 0%, rgb(5, 149, 210) 100%);
  --grad-ent:     radial-gradient(circle, rgb(198, 201, 231) 0%, rgb(102, 126, 234) 100%);
  --grad-pro:     radial-gradient(circle, rgb(245, 230, 193) 0%, rgb(222, 159, 0) 100%);
}

/* Dark Mode Variables */
/* @media (prefers-color-scheme: dark) {
  :root {
    --background: #0f172a;
    --foreground: #f8fafc;
    --card: #1e293b;
    --card-foreground: #f8fafc;
    --popover: #1e293b;
    --popover-foreground: #f8fafc;
    --primary: #3b82f6;
    --primary-foreground: #f8fafc;
    --secondary: #1e293b;
    --secondary-foreground: #f8fafc;
    --muted: #1e293b;
    --accent: #1e293b;
    --accent-foreground: #f8fafc;
    --destructive: #ef4444;
    --destructive-foreground: #f8fafc;
    --border: #334155;
    --input: #334155;
    --ring: #3b82f6;
    --text-primary: #f9fafb;
    --text-muted: #d1d5db;
  }
} */

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* Dashboard Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.card-description {
  font-size: 1.125rem;
  color: var(--dark-muted-foreground);
  margin-bottom: 0;
}

/* Loading Indicator */
.loading-indicator-limit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--muted);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Subscription Grid */
.subscription-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Package Cards */
.package-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.package-card.pro-card {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.package-card.disabled {
  opacity: 0.6;
  pointer-events: none; 
  filter: grayscale(70%);
  box-shadow: none;
  border-color: #d1d5db; /* gri deschis */
  position: relative;
}

/* Etichetă peste card */
.package-card.disabled::after {
  content: "Unavailable";
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 0, 0, 0.85);
  color: #fff;
  padding: 20px 40px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}


.current-badge {
  position: absolute;
  top: 10px;
  left: 0.5rem;
  background-color: #4caf50;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  z-index: 10;
  text-transform: uppercase;
}

.current-plan-card {
  border: 2px solid #4caf50 !important;
  background-color: rgba(76, 175, 80, 0.05) !important;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.current-plan-card .package-name {
  color: #4caf50;
  font-weight: bold;
}

/* Package Header */
.package-header {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right bottom, var(--accent), var(--secondary));
  position: relative;
  overflow: hidden;
}

.package-header.free {
  background: var(--grad-starter);
}

.package-header.standard {
  background: var(--grad-ent);
}

.package-header.pro {
  background: var(--grad-pro);
}

.package-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0.6;
}

.package-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.plan-price .currency {
  font-size: 1.5rem;
  vertical-align: top;
}

.plan-billing {
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* Plan Features */
.plan-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.feature-enabled {
  background: linear-gradient(135deg, #06ce8b, #02b87e);
  border-color: #059669;
  color: white;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.button.primary:hover {
  background-color: #3b82f6;
}

.button.outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.button.outline:hover {
  background-color: var(--accent);
}

.button.secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary);
}

.button.secondary:hover {
  background-color: #475569;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  background: var(--card);
  color: var(--card-foreground);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  z-index: 1001;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  padding: 0.25rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--foreground);
}

.modal-content {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}


/* Wallet Details */
.wallet-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.balance-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.balance-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.balance-amount {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
}

.balance-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.balance-status.sufficient {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.balance-status.insufficient {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.balance-status.hidden {
  display: none;
}

/* VAT Information */
.wallet-vat-info {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.vat-info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
  background: var(--accent);
  transition: background 0.2s ease;
}

.vat-info-header:hover {
  background: var(--muted);
}

.vat-info-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.vat-info-content {
  flex: 1;
}

.vat-info-content h6 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.vat-info-content p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

.vat-toggle-icon {
  width: 20px;
  height: 20px;
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
}

.vat-info-details {
  padding: 1rem;
  border-top: 1px solid var(--border);
}

.vat-highlight-box {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.highlight-icon {
  width: 24px;
  height: 24px;
  color: #059669;
  flex-shrink: 0;
}

.highlight-content h6 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: #059669;
}

.highlight-content p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

.price-comparison {
  padding: 1rem;
  background: var(--accent);
  border-radius: var(--radius);
}

.price-row.wallet-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.price-value.highlighted {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

/* Card Details */
.card-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.accepted-cards {
  display: flex;
  gap: 0.5rem;
}

.card-brand {
  width: 40px;
  height: 24px;
  border-radius: 4px;
  overflow: hidden;
}

.card-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bank Details */
.bank-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.processing-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}





/* PAYMENT MODAL STYLES */
/* Payment Modal Styles - Cu Scroll Funcțional */
.payment-modal-container {
  max-width: 900px;
  width: 95%;
  max-height: 95vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
}

/* Header fix - nu se scrollează */
.payment-modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  flex-shrink: 0; /* Important pentru a nu se comprima */
  z-index: 10;
}

.payment-modal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

.header-content {
  /* display: flex; */
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.header-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.header-icon i {
  font-size: 1.75rem;
  color: white;
}

.header-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.header-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.payment-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 2;
}

.payment-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Body scrollabil */
.payment-modal-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* Scroll styling pentru Webkit browsers */
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
}

.payment-modal-body::-webkit-scrollbar {
  width: 8px;
}

.payment-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.payment-modal-body::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 4px;
}

.payment-modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

.payment-modal-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: min-content; /* Important pentru scroll */
}

/* Footer fix - nu se scrollează */
.payment-modal-footer {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  flex-shrink: 0; /* Important pentru a nu se comprima */
  z-index: 10;
}

/* @media (prefers-color-scheme: dark) {
  .payment-modal-footer {
    background: #1e293b;
    border-top: 1px solid #334155;
  }
} */

/* Payment Summary Card */
.payment-summary-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.summary-header {
  background: white;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.summary-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.summary-header h4 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}


.summary-body {
  padding: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
  font-weight: 500;
}

.summary-label i {
  color: #667eea;
}

.summary-value {
  font-weight: 600;
  color: #1e293b;
}

/* @media (prefers-color-scheme: dark) {
  .summary-header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
  }

  .summary-header h4 {
    color: #f8fafc;
  }

  .summary-value {
    color: #f1f5f9;
  }
} */

.summary-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
  margin: 1rem 0;
}

/* .summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
}

.total-label {
  font-size: 1.125rem;
  font-weight: 600;
}

.total-amount {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: 'Inter', monospace;
} */

/* Payment Methods Section */
.payment-methods-section {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.payment-methods-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  flex-direction: row;
  margin-bottom: 0rem;

}

.section-header h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.section-header h4 i {
  color: #667eea;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: 20px;
  color: #065f46;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid #a7f3d0;
  max-width: fit-content;
}

.security-badge i {
  color: #059669;
}

/* Payment Options Grid */
.payment-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.payment-option-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.payment-option-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.payment-option-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  box-shadow: 0 20px 25px -5px rgba(102, 126, 234, 0.2);
}

.payment-option-card.insufficient-funds {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
  cursor: not-allowed;
}

.payment-option-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.option-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.wallet-icon {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

.card-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.bank-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.option-icon i {
  font-size: 1.5rem;
}

.option-info {
  flex: 1;
}

.option-info h5 {
  margin: 0 0 0.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

.option-info p {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
}

.option-radio {
  position: relative;
}

.option-radio input[type="radio"] {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.option-radio input[type="radio"]:checked {
  border-color: #667eea;
  background: #667eea;
}

.option-radio input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: white;
  border-radius: 50%;
}

.option-radio label {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Payment Details */
.wallet-details, .card-details, .bank-details {
  padding: 0 1.5rem 1.5rem;
}

.balance-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.balance-label {
  color: #92400e;
  font-weight: 500;
}

.balance-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #92400e;
  font-family: 'Inter', monospace;
}

.balance-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.balance-status.sufficient {
  color: #059669;
}

.balance-status.insufficient {
  color: #dc2626;
}

.accepted-cards {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.card-brand {
  width: 40px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.processing-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 12px;
  color: #1e40af;
  font-size: 0.875rem;
  font-weight: 500;
}

.processing-time i {
  color: #3b82f6;
}

/* Process Steps */
.payment-process-steps {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.step-icon i {
  font-size: 1rem;
}

.step-content h6 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.step-content p {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.footer-security {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #059669;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-security i {
  color: #10b981;
}

.footer-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-cancel, .btn-proceed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-cancel {
  background: white;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.btn-cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-proceed {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.4);
}

.btn-proceed:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(102, 126, 234, 0.5);
}

.btn-proceed:disabled {
  background: #cbd5e1;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

/* Loading Animation */
.payment-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1.5rem;
}

.payment-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  border-top-color: #764ba2;
  animation-duration: 1s;
  animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  border-top-color: #fbbf24;
  animation-duration: 0.8s;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.payment-loading p {
  color: #64748b;
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0;
}

/* Insufficient Funds Message */
.insufficient-message {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #dc2626;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.insufficient-message i {
  color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .payment-modal-container {
    width: 98%;
    margin: 1rem;
    max-height: 98vh;
  }
  
  .payment-modal-header {
    padding: 1.5rem;
  }
  
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .header-icon {
    width: 50px;
    height: 50px;
  }
  
  .header-text h3 {
    font-size: 1.5rem;
  }
  
  .payment-modal-content {
    padding: 0rem;
  }
  
  .payment-modal-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }
  
  .footer-actions {
    justify-content: stretch;
    gap: 0.75rem;
  }
  
  .btn-cancel, .btn-proceed {
    flex: 1;
    justify-content: center;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .payment-option-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .option-radio {
    align-self: flex-end;
  }
  
  .accepted-cards {
    flex-wrap: wrap;
  }
  
  /* .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .summary-total {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  } */
}

/* Animation for modal entrance */
.modal.open .payment-modal-container {
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Selection animation */
.payment-option-card.selected {
  animation: cardSelect 0.3s ease;
}

.payment-option-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.payment-option-card.disabled input[type="radio"] {
  cursor: not-allowed;
}


@keyframes cardSelect {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}





.btn-cancel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: var(--accent);
  color: var(--foreground);
}

.btn-proceed {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-proceed:hover:not(:disabled) {
  background: #3b82f6;
}

.btn-proceed:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Recurring Payment Modal */
.recurring-modal-container {
  width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.recurring-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.recurring-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.consent-options {
  margin-bottom: 2rem;
}

.consent-options h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.consent-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.consent-choices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.consent-option {
  position: relative;
}

.consent-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.consent-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.consent-label:hover {
  border-color: var(--primary);
  background: var(--accent);
}

.consent-option input[type="radio"]:checked + .consent-label {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.consent-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.consent-icon.yes-icon {
  background: #10b981;
}

.consent-icon.no-icon {
  background: #ef4444;
}

.consent-content h6 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.consent-content p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Recurring Info Card */
.recurring-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.info-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: invert(var(--primary-foreground));
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.info-content p {
  color: var(--muted-foreground);
  margin: 0;
}

/* Benefits Section */
.benefits-section {
  margin-bottom: 2rem;
}

.benefits-section h5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--accent);
  border-radius: var(--radius);
}

.benefit-item i {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Important Notice */
.important-notice {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius);
}

.notice-icon {
  width: 24px;
  height: 24px;
  color: #f59e0b;
  flex-shrink: 0;
}

.notice-content h6 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #f59e0b;
}

.notice-content ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted-foreground);
}

.notice-content li {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

/* Recurring Modal Footer */
.recurring-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.btn-continue {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-continue:hover:not(:disabled) {
  background: #3b82f6;
}

.btn-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Bank Transfer Modal */
.bank-transfer-container {
  width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.bank-transfer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.bank-transfer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.loading-container-bank-transfer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--muted);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.error-icon {
  width: 48px;
  height: 48px;
  color: var(--destructive);
  margin-bottom: 1rem;
}

.error-container h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.error-container p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.btn-retry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-retry:hover {
  background: #3b82f6;
}

/* Currency Tabs */
.currency-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.tab-button {
  background-color: transparent;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}

.tab-button:hover {
  background-color: var(--accent);
}

.tab-button.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* Transfer Details */
.transfer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1002;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

/* Bank Transfer Footer */
.bank-transfer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.btn-close {
  padding: 0.75rem 1.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: var(--accent);
}

/* Tabs */
.tabs {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  width: 100%;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  column-gap: 1rem;
  margin-bottom: 1rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Dark Mode Specific Styles */
/* @media (prefers-color-scheme: dark) {
  .payment-modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  }

  .payment-modal-container {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }

  .package-card {
    background-color: var(--card);
    color: var(--card-foreground);
  }

  .card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }

  .toast-notification {
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  }

  .tab-button {
    background-color: var(--muted);
    color: var(--foreground);
  }

  .feature-name {
    color: white !important;
  }

  .card-title h5 {
    color: white !important;
  }
} */

/* Mobile Responsive Styles */
@media (max-width: 1023px) {

  .page-header h1 {
    font-size: 2rem;
  }

  .subscription-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .payment-modal-container {
    width: 95vw;
    max-width: none;
    margin: 1rem;
  }

  .payment-modal-header {
    padding: 1rem;
  }

  .payment-modal-body {
    padding: 0.5rem;
  }

  .summary-body {
    padding: 0rem;
  }

  .payment-modal-footer {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .footer-actions {
    width: 100%;
    justify-content: space-between;
  }

  .btn-cancel,
  .btn-proceed {
    flex: 1;
  }

  .recurring-modal-container,
  .bank-transfer-container {
    width: 95vw;
    max-width: none;
    margin: 1rem;
  }

  .consent-choices {
    gap: 0.75rem;
  }

  .consent-label {
    padding: 0.75rem;
  }

  .steps-container {
    gap: 0.75rem;
  }

  .step-item {
    padding: 0.75rem;
  }

  .benefits-list {
    gap: 0.5rem;
  }

  .benefit-item {
    padding: 0.5rem;
  }

  .currency-tabs {
    flex-wrap: wrap;
  }

  .tab-button {
    flex: 1;
    min-width: 0;
  }

  .toast-notification {
    top: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    transform: translateY(-100%);
  }

  .toast-notification.show {
    transform: translateY(0);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Recurring Modal Specific Styles */
.recurring-modal-container {
  max-width: 650px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.recurring-modal-header {
  display: flex;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-radius: 16px 16px 0 0;
}

.recurring-modal-header .header-content {
  align-items: center;
  gap: 1rem;
}

.recurring-modal-header .header-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.recurring-modal-header .header-icon i {
  font-size: 1.5rem;
  color: white;
}

.recurring-modal-header .header-text h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recurring-modal-header .header-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.875rem;
  font-weight: 400;
}

.recurring-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 300;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.recurring-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.recurring-close:active {
  transform: scale(0.95);
}

/* Body Styles */
.recurring-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: var(--background);
  transition: background-color 0.3s ease;
}

.recurring-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Information Card */
.recurring-info-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface-elevated);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.recurring-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.recurring-info-card .info-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.recurring-info-card .info-icon i {
  font-size: 1.5rem;
  color: white;
}

.recurring-info-card .info-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.recurring-info-card .info-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* Benefits Section */
.benefits-section {
  background: var(--surface-elevated);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.benefits-section:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.benefits-section h5 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.benefits-section h5 i {
  color: var(--success);
  font-size: 1.25rem;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.benefit-item:hover {
  background: var(--background);
  border-color: var(--border);
  transform: translateX(4px);
}

.benefit-item i {
  color: var(--success);
  flex-shrink: 0;
  font-size: 1.125rem;
}

.benefit-item span {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Consent Options */
.consent-options {
  background: var(--surface-elevated);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.consent-options:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.consent-options h5 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.consent-options h5 i {
  color: var(--primary);
  font-size: 1.25rem;
}

.consent-description {
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.consent-choices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.consent-option {
  position: relative;
}

.consent-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.consent-label::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.5s ease;
}

.consent-label:hover {
  border-color: var(--primary);
  background: var(--background);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.consent-label:hover::before {
  left: 100%;
}

.consent-option input[type="radio"]:checked + .consent-label {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.05);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* @media (prefers-color-scheme: dark) {
  .consent-option input[type="radio"]:checked + .consent-label {
    background: rgba(102, 126, 234, 0.15);
  }
} */

.consent-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.yes-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 2px solid rgba(16, 185, 129, 0.2);
}

.no-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 2px solid rgba(239, 68, 68, 0.2);
}

.consent-option input[type="radio"]:checked + .consent-label .yes-icon {
  background: var(--success);
  color: rgb(59, 175, 73);
  border-color: var(--success);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transform: scale(1.1);
}

.consent-option input[type="radio"]:checked + .consent-label .no-icon {
  background: var(--error);
  color: rgb(191, 43, 43);
  border-color: var(--error);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  transform: scale(1.1);
}

.consent-content h6 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.consent-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

/* Important Notice */
.important-notice {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.important-notice:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* @media (prefers-color-scheme: dark) {
  .important-notice {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
  }
} */

.notice-icon {
  width: 40px;
  height: 40px;
  background: rgba(251, 191, 36, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.notice-icon i {
  color: var(--warning);
  font-size: 1.25rem;
}

.notice-content h6 {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.notice-content ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.notice-content li {
  margin-bottom: 0.5rem;
  position: relative;
}

.notice-content li:last-child {
  margin-bottom: 0;
}

.notice-content li::marker {
  color: var(--warning);
}

/* Footer */
.recurring-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border-radius: 0 0 16px 16px;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-info i {
  color: var(--success);
  font-size: 1rem;
}

.footer-actions {
  display: flex;
  gap: 1rem;
}

.btn-cancel,
.btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.btn-cancel {
  background: var(--surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-cancel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(107, 114, 128, 0.1), transparent);
  transition: left 0.5s ease;
}

.btn-cancel:hover {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-cancel:hover::before {
  left: 100%;
}

.btn-continue {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  position: relative;
}

.btn-continue::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-continue:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-continue:hover:not(:disabled)::before {
  left: 100%;
}

.btn-continue:active:not(:disabled) {
  transform: translateY(0);
}

.btn-continue:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: var(--text-muted);
}

.btn-continue:disabled::before {
  display: none;
}

/* Loading State */
.btn-continue.loading {
  pointer-events: none;
}

.btn-continue.loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* PAYMENT SUMMARY STYLES */
.summary-total {
  margin: 20px 0;
}

.payment-summary-card {
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.payment-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  z-index: 1;
}

.summary-header {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.summary-header h3 {
  color: var(--dark-muted-foreground);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-breakdown {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
}

.price-row .label {
  color: #4a5568;
  font-weight: 500;
}

.price-row .amount {
  color: #2d3748;
  font-weight: 600;
  font-family: "Courier New", monospace;
}

.vat-row {
  color: #718096;
  font-size: 14px;
}

.vat-row .label,
.vat-row .amount {
  color: #718096;
}

.total-row {
  font-size: 18px;
  font-weight: 700;
  padding: 12px 0;
}

.total-row .label {
  color: #2d3748;
}

.total-row .amount {
  color: #667eea;
  font-size: 20px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 12px 0;
}

.simple-breakdown .total-row {
  font-size: 24px;
  text-align: center;
  flex-direction: column;
  gap: 8px;
}

.simple-breakdown .total-row .amount {
  font-size: 32px;
  color: #667eea;
}

.price-breakdown {
  transition: all 0.3s ease;
}

.price-row {
  transition: all 0.2s ease;
}

.price-row:hover {
  background: rgba(102, 126, 234, 0.05);
  border-radius: 6px;
  margin: 0 -8px;
  padding: 8px 8px;
}

/* WALLET VAT INFORMATION SECTION */
.wallet-vat-info {
  margin-top: 1rem;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.wallet-vat-info:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.vat-info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: var(--surface-elevated);
}

.vat-info-header:hover {
  background: var(--background);
}

.vat-info-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.05), transparent);
  transition: left 0.6s ease;
}

.vat-info-header:hover::before {
  left: 100%;
}

.vat-info-icon {
  width: 40px;
  height: 40px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.vat-info-icon i {
  font-size: 1.125rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.vat-info-header:hover .vat-info-icon {
  background: var(--primary);
  transform: scale(1.05);
}

.vat-info-header:hover .vat-info-icon i {
  color: white;
}

.vat-info-content {
  flex: 1;
}

.vat-info-content h6 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.vat-info-content p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.vat-toggle-icon {
  width: 32px;
  height: 32px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.vat-toggle-icon i {
  font-size: 1rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.vat-toggle-icon.rotated i {
  transform: rotate(180deg);
}

.vat-info-header:hover .vat-toggle-icon {
  background: var(--primary);
  transform: scale(1.05);
}

.vat-info-header:hover .vat-toggle-icon i {
  color: white;
}

/* VAT Details Content */
.vat-info-details {
  padding: 0 1.25rem 1.25rem 1.25rem;
  animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

.vat-explanation {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* VAT Highlight Box */
.vat-highlight-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* @media (prefers-color-scheme: dark) {
  .vat-highlight-box {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
  }

  .summary-header h3 {
    color: var(--muted-foreground);
  }

  .summary-header h4 {
    color: var(--muted-foreground);
  }
} */

.vat-highlight-box:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.highlight-icon {
  width: 45px;
  height: 45px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.highlight-icon i {
  font-size: 1.25rem;
  color: var(--success);
}

.highlight-content h6 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.highlight-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* Price Comparison */
.price-comparison {
  background: var(--surface-elevated);
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.price-comparison:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.price-row:last-of-type {
  border-bottom: none;
  margin-bottom: 1rem;
}

.price-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.price-value {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  font-family: "Courier New", monospace;
  transition: color 0.3s ease;
}

.original-price .price-value {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.7;
}

.wallet-price {
  background: rgba(102, 126, 234, 0.05);
  margin: 0 -0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.wallet-price .price-label {
  color: var(--primary);
  font-weight: 600;
}

.wallet-price .price-value.highlighted {
  color: var(--primary);
  font-size: 1.125rem;
  font-weight: 700;
}

/* Savings Indicator */
.savings-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 500;
}

.savings-indicator i {
  font-size: 1rem;
  color: var(--success);
}

.savings-indicator strong {
  font-weight: 700;
  color: var(--success);
}

/* VAT Explanation Items */
.vat-explanation-text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.explanation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.explanation-item:hover {
  color: var(--text-primary);
  transform: translateX(4px);
}

.explanation-item i {
  color: var(--success);
  font-size: 1rem;
  flex-shrink: 0;
}

.explanation-item span {
  line-height: 1.5;
}

/* Enhanced Balance Display for Wallet */
.wallet-details .balance-display {
  background: var(--surface-elevated);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.wallet-details .balance-display:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.balance-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.balance-amount {
  display: block;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Courier New", monospace;
}

/* Balance Status Enhancements */
.balance-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.balance-status.sufficient {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.balance-status.insufficient {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.balance-status i {
  font-size: 1rem;
  flex-shrink: 0;
}

.tooltip-wrapper {
  display: inline-block;
  position: relative;
  margin-left: 5px;
  cursor: pointer;
  z-index: 10;
}

.tooltip-text {
  display: none;
  position: absolute;
  top: 20px;
  left: -90px;
  transform: translateX(-20%);
  min-width: 260px;
  background-color: #333;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  white-space: normal;
  z-index: 0; /* foarte important pentru a ieși peste orice alt conținut */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tooltip-wrapper:hover .tooltip-text {
  display: block;
}

/* BANK TRANSFER MODAL STYLES */
.bank-transfer-container {
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--surface-elevated);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
}

/* Header Styles */
.bank-transfer-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
}

.bank-transfer-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.option:disabled, .option.unavailable {
  color: #aaa;
  background-color: #eee;
  font-style: italic;
}

.bank-transfer-header .header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.bank-transfer-header .header-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-transfer-header .header-icon i {
  font-size: 1.5rem;
  color: white;
}

.bank-transfer-header .header-text h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bank-transfer-header .header-text p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.875rem;
  font-weight: 400;
}

.bank-transfer-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 300;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.bank-transfer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05) rotate(90deg);
}

/* Body Styles */
.bank-transfer-body {
  flex: 1;
  overflow-y: auto;
  background: var(--background);
  transition: background-color 0.3s ease;
}

/* Loading State */
.loading-container-bank-transfer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

.loading-container-bank-transfer p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0;
}

/* Error State */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.error-icon {
  width: 60px;
  height: 60px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.error-icon i {
  font-size: 1.5rem;
  color: var(--error);
}

.error-container h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.error-container p {
  margin: 0 0 2rem 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-retry:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Transfer Content */
.transfer-content {
  padding: 2rem;
}

/* Currency Tabs */
.currency-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  padding-bottom: 0;
}

.currency-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}

.currency-tab:hover {
  color: var(--text-primary);
  background: var(--surface);
}

.currency-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(102, 126, 234, 0.05);
}

.currency-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Transfer Details */
.transfer-details {
  background: var(--surface-elevated);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.detail-section {
  margin-bottom: 2rem;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section h4 i {
  color: var(--primary);
  font-size: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.detail-item {
  background: var(--surface);
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}

.detail-item:hover {
  background: var(--background);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.detail-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.detail-text {
  color: var(--text-primary);
  font-weight: 600;
  font-family: "Courier New", monospace;
  word-break: break-all;
  flex: 1;
}

.copy-btn {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.1);
}

.copy-btn i {
  font-size: 0.875rem;
}

/* Instructions */
.instructions-section {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1rem;
}

/* @media (prefers-color-scheme: dark) {
  .instructions-section {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
  }
} */

.instructions-section h5 {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instructions-section h5 i {
  color: var(--warning);
}

.instructions-section p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

/* Important Notice */
.important-notice {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}
/* 
@media (prefers-color-scheme: dark) {
  .important-notice {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
  }
} */

.notice-icon {
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.notice-icon i {
  color: var(--success);
  font-size: 1.25rem;
}

.notice-content h5 {
  margin: 0 0 0.75rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
}

.notice-content ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.notice-content li {
  margin-bottom: 0.5rem;
}

.notice-content li:last-child {
  margin-bottom: 0;
}

/* Footer */
.bank-transfer-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border-radius: 0 0 20px 20px;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.footer-info i {
  color: var(--success);
  font-size: 1rem;
}

.footer-actions {
  display: flex;
  gap: 1rem;
}

.btn-close,
.btn-support {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-close {
  background: var(--surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-close:hover {
  background: var(--surface);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-support {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-support:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Copy Toast */
.copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--success);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1200;
}

.copy-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.copy-toast i {
  font-size: 1rem;
}

/* Enhanced responsive design for mobile devices under 1023px */
@media (max-width: 1023px) {
  .recurring-modal-container,
  .bank-transfer-container {
    width: 95%;
    margin: 1rem;
    max-height: 95vh;
  }

  .recurring-modal-header,
  .bank-transfer-header {
    padding: 1rem 1.5rem;
  }

  .recurring-modal-header .header-content,
  .bank-transfer-header .header-content {
    gap: 0.75rem;
  }

  .recurring-modal-header .header-icon,
  .bank-transfer-header .header-icon {
    width: 45px;
    height: 45px;
  }

  .recurring-modal-header .header-text h3,
  .bank-transfer-header .header-text h3 {
    font-size: 1.25rem;
  }

  .recurring-modal-body,
  .transfer-content {
    padding: 1.5rem;
  }

  .recurring-content {
    gap: 1.5rem;
  }

  .recurring-info-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .benefits-list {
    grid-template-columns: 1fr;
  }

  .consent-label {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .recurring-modal-footer,
  .bank-transfer-footer {
    padding: 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .footer-info {
    justify-content: center;
    text-align: center;
  }

  .footer-actions {
    flex-direction: column;
  }

  .btn-cancel,
  .btn-continue,
  .btn-close,
  .btn-support {
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .currency-tabs {
    margin-bottom: 1.5rem;
  }

  .copy-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }

  .payment-summary-card {
    padding: 20px;
    /* margin: 0 10px; */
  }

  .price-breakdown {
    padding: 16px;
  }

  .simple-breakdown .total-row .amount {
    font-size: 28px;
  }

  .total-row {
    font-size: 16px;
  }

  .total-row .amount {
    font-size: 18px;
  }

  .wallet-vat-info {
    margin-top: 1rem;
  }

  .vat-info-header {
    padding: 1rem;
    gap: 0.75rem;
  }

  .vat-info-details {
    padding: 0 1rem 1rem 1rem;
  }

  .vat-highlight-box {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .price-comparison {
    padding: 1rem;
  }

  .wallet-price {
    margin: 0 -1rem;
    padding: 0.75rem 1rem;
  }

  .savings-indicator {
    padding: 0.75rem;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .recurring-modal-container,
  .bank-transfer-container {
    width: 98%;
    margin: 0.5rem;
  }

  .recurring-modal-header .header-content,
  .bank-transfer-header .header-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .recurring-modal-header .header-text h3,
  .bank-transfer-header .header-text h3 {
    font-size: 1.125rem;
  }

  .recurring-modal-body,
  .transfer-content {
    padding: 1rem;
  }

  .recurring-content {
    gap: 1rem;
  }

  .recurring-info-card,
  .benefits-section,
  .consent-options,
  .important-notice,
  .transfer-details {
    padding: 1rem;
  }

  .important-notice {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .consent-icon {
    width: 45px;
    height: 45px;
  }

  .vat-info-content h6 {
    font-size: 0.875rem;
  }

  .vat-info-content p {
    font-size: 0.8125rem;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .price-value {
    font-size: 1.125rem;
  }

  .wallet-price .price-value.highlighted {
    font-size: 1.25rem;
  }

  .explanation-item {
    font-size: 0.8125rem;
  }
}

/* Enhanced dark mode support for all new components */
/* @media (prefers-color-scheme: dark) {
  .payment-summary-card {
    background: var(--card);
    color: var(--card-foreground);
  }

  .price-breakdown {
    background: rgba(30, 41, 59, 0.95);
  }

  .price-row .label {
    color: #a0aec0;
  }

  .price-row .amount {
    color: #e2e8f0;
  }

  .total-row .label {
    color: #e2e8f0;
  }

  .bank-transfer-container {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
  }

  .transfer-details:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }

  .btn-support {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  }

  .btn-support:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  }

  .wallet-vat-info:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  }

  .price-comparison:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  }

  .wallet-details .balance-display:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  }

  .balance-status.sufficient {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
  }

  .balance-status.insufficient {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
  }

  .savings-indicator {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
  }
} */

/* Enhanced accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .vat-info-details {
    animation: none;
  }

  .vat-info-header::before {
    display: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

/* Focus States */
.consent-label:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-cancel:focus,
.btn-continue:focus,
.recurring-close:focus,
.currency-tab:focus,
.copy-btn:focus,
.btn-close:focus,
.btn-support:focus,
.bank-transfer-close:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.vat-info-header:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Inline Configuration Options */
.inline-config-options {
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background-color: rgba(59, 130, 246, 0.05);
  border-radius: var(--radius);
  border: 1px dashed rgba(59, 130, 246, 0.3);
}

.inline-config-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
}

/* Inline Dropdown Styles */
.inline-dropdown-container {
  margin-bottom: 1rem;
  position: relative;
}

.inline-dropdown-container:last-child {
  margin-bottom: 0;
}

.inline-dropdown-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.inline-dropdown-label i {
  color: var(--primary);
}

.inline-select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  font-size: 0.875rem;
  color: var(--foreground);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

.inline-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* Inline Feature Toggle */
.inline-feature-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  transition: background-color 0.2s;
  background-color: var(--background);
  border: 1px solid var(--border);
}

.inline-toggle-info {
  display: flex;
  flex-direction: column;
}

.inline-toggle-name {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.inline-toggle-name i {
  color: var(--primary);
}

.inline-toggle-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inline-toggle-price {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.75rem;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--muted);
  transition: .4s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: 0;
  right: 2rem;
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
  z-index: 10;
}

/* Best Value Badge */
.best-value-badge {
  position: absolute;
  top: 1.5rem;
  right: -4rem;
  background-color: #10b981;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0;
  width: 12rem;
  text-align: center;
  transform: rotate(45deg);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
  z-index: 10;
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

/* Package Content */
.package-content {
  padding: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 1rem;
  /* flex: 1; */
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon.filled {
  background-color: var(--primary);
  color: white;
}

.feature-text {
  font-size: 0.875rem;
}

/* Package Footer */
.package-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.package-footer .button {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.package-footer .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.package-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--card);
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.current-badge {
  position: absolute;
  top: 10px;
  left: 0.5rem;
  background-color: #4caf50;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  z-index: 10;
  text-transform: uppercase;
}

.package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.package-card.pro-card {
  border-color: goldenrod;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

/* Package Header */
.package-header {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to right bottom, var(--accent), var(--secondary));
  position: relative;
  overflow: hidden;
}

.package-header.free {
  background: var(--grad-starter);
}

.package-header.standard {
  background: var(--grad-ent);
}

.package-header.pro {
  background: var(--grad-pro);
}

.package-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
  opacity: 0.6;
}

.package-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.plan-price .currency {
  font-size: 1.5rem;
  vertical-align: top;
}

.plan-billing {
  color: var(--muted-foreground);
  font-size: 1rem;
}

.current-plan-card {
  border: 2px solid #4caf50 !important;
  background-color: rgba(76, 175, 80, 0.05) !important;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.current-plan-card .package-name {
  color: #4caf50;
  font-weight: bold;
}

.package-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
}

.package-price {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #10b981;
  position: relative;
  transition: all 0.3s ease;
}

.package-billing {
  font-size: 0.875rem;
  color: var(--dark-muted-foreground);
  position: relative;
  font-weight: bold;
}

.package-tax-info {
  font-size: 0.75rem;
  color: var(--dark-muted-foreground);
  margin-top: 0.25rem;
  position: relative;
}



.payu-secure {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px auto 24px;
  max-width: 300px;              
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.payu-secure__img {
  display: block;
  width: 100%;                     
  height: auto;               
  max-width: 300px;              
  object-fit: contain;
}


.payu-secure-small {
  margin-top: 12px;
  display: flex;
}

.payu-secure-small__img {
  width: 220px;   
  height: auto;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}