/* ========================================
   ULTRA-PROFESSIONAL DESKTOP POLISH v2.0
   MAXIMUM SPECIFICITY - Premium fintech-grade enhancements
   Mobile remains completely untouched
   ======================================== */

/* ========================================
   1. TRANSFER WIDGET - PREMIUM REFINEMENTS
   ======================================== */

@media (min-width: 1024px) {
  /* Enhanced route selectors with premium polish - ULTRA HIGH SPECIFICITY */
  .transfer-widget .route-select,
  select.route-select {
    padding: 13px 17px !important;
    border-radius: 14px !important;
    border: 2px solid #e2e8f0 !important;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: 
      0 2px 4px rgba(15, 23, 42, 0.06),
      0 4px 12px rgba(15, 23, 42, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
  }
  
  .transfer-widget .route-select:hover,
  select.route-select:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 
      0 3px 8px rgba(15, 23, 42, 0.08),
      0 6px 20px rgba(15, 23, 42, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transform: translateY(-1px) !important;
  }
  
  .transfer-widget .route-select:focus,
  select.route-select:focus {
    border-color: #0078ff !important;
    box-shadow: 
      0 0 0 4px rgba(0, 120, 255, 0.15),
      0 4px 12px rgba(0, 120, 255, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    outline: none !important;
  }
  
  /* Premium currency code - larger, bolder */
  .route-select .currency-code,
  .route-select option {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
  }
  
  /* Enhanced amount cards - ULTRA HIGH SPECIFICITY */
  .amount-row.calculator-layout .amount-card.calculator-card,
  .amount-row .amount-card {
    border-radius: 18px !important;
    padding: 20px 24px !important;
    border: 2px solid rgba(226, 232, 240, 0.85) !important;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%) !important;
    box-shadow: 
      0 3px 10px rgba(15, 23, 42, 0.05),
      0 10px 30px rgba(15, 23, 42, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    min-height: 145px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .amount-row.calculator-layout .amount-card.calculator-card:hover,
  .amount-row .amount-card:hover {
    border-color: rgba(203, 213, 225, 0.95) !important;
    box-shadow: 
      0 4px 14px rgba(15, 23, 42, 0.07),
      0 14px 40px rgba(15, 23, 42, 0.10),
      inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transform: translateY(-3px) scale(1.01) !important;
  }
  
  .amount-row.calculator-layout .amount-card.calculator-card:focus-within,
  .amount-row .amount-card:focus-within {
    border-color: #0078ff !important;
    box-shadow: 
      0 0 0 4px rgba(0, 120, 255, 0.15),
      0 6px 20px rgba(0, 120, 255, 0.14),
      0 16px 50px rgba(0, 120, 255, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transform: translateY(-4px) !important;
  }
  
  /* Remove the old ::before glassmorphic gradient overlay on desktop */
  .amount-row.calculator-layout .amount-card.calculator-card::before,
  .amount-row .amount-card::before {
    display: none !important;
  }
  
  /* Premium card labels - ULTRA HIGH SPECIFICITY */
  .amount-card.calculator-card .amount-card__label.calculator-card-label,
  .amount-card .amount-card__label,
  .calculator-card-label {
    font-size: 11px !important;
    letter-spacing: 0.15em !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    margin-bottom: 18px !important;
    opacity: 0.85 !important;
  }
  
  /* Enhanced input typography - ULTRA HIGH SPECIFICITY */
  .amount-card.calculator-card .amount-card__input.calculator-card-input,
  .amount-card .amount-card__input,
  .calculator-card-input,
  input.amount-card__input {
    font-size: 34px !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    color: #0f172a !important;
    line-height: 1.15 !important;
  }
  
  /* Recipient gets - MAXIMUM EMPHASIS - ULTRA HIGH SPECIFICITY */
  .amount-card.calculator-card.calculator-card--receive .amount-card__input,
  .amount-card.amount-card--receive .amount-card__input,
  .amount-row .amount-card:nth-child(2) .amount-card__input {
    font-size: 38px !important;
    font-weight: 800 !important;
    color: #0078ff !important;
    text-shadow: 0 2px 4px rgba(0, 120, 255, 0.18) !important;
  }
  
  /* Premium currency pills - ULTRA HIGH SPECIFICITY */
  .amount-card__badge .amount-card__currency-pill.calculator-card-currency,
  .amount-card__currency-pill,
  button.amount-card__currency-pill {
    padding: 9px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    border-radius: 11px !important;
    border: 2px solid rgba(148, 163, 184, 0.30) !important;
    background: linear-gradient(to bottom, #f8fafc 0%, #eef2f6 100%) !important;
    box-shadow: 
      0 2px 4px rgba(15, 23, 42, 0.08),
      0 3px 8px rgba(15, 23, 42, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    color: #475569 !important;
  }
  
  /* Helper text styling */
  .amount-card__helper {
    font-size: 12px !important;
    color: #94a3b8 !important;
    margin-top: 10px !important;
  }
  
  /* Dark mode overrides - ULTRA HIGH SPECIFICITY */
  html.dark .transfer-widget .route-select,
  html.dark select.route-select {
    background: linear-gradient(to bottom, #1e293b 0%, #1a2332 100%) !important;
    border-color: rgba(71, 85, 105, 0.7) !important;
    color: #f1f5f9 !important;
  }
  
  html.dark .amount-row.calculator-layout .amount-card.calculator-card,
  html.dark .amount-row .amount-card {
    background: linear-gradient(to bottom, #1e293b 0%, #1a2332 100%) !important;
    border-color: rgba(71, 85, 105, 0.7) !important;
  }
  
  html.dark .amount-card__badge .amount-card__currency-pill,
  html.dark button.amount-card__currency-pill {
    background: linear-gradient(to bottom, #0f172a 0%, #0a0f1a 100%) !important;
    border-color: rgba(100, 116, 139, 0.5) !important;
    color: #94a3b8 !important;
  }
  
  html.dark .amount-card.calculator-card .amount-card__input,
  html.dark input.amount-card__input {
    color: #f8fafc !important;
  }
  
  html.dark .amount-card.calculator-card--receive .amount-card__input,
  html.dark .amount-row .amount-card:nth-child(2) .amount-card__input {
    color: #60a5fa !important;
    text-shadow: 0 2px 6px rgba(96, 165, 250, 0.25) !important;
  }
}

/* ========================================
   2. POPULAR CORRIDORS - PREMIUM CARDS
   ======================================== */

@media (min-width: 1024px) {
  .corridor-card,
  .popular-corridor-card,
  a.corridor-card {
    border-radius: 16px !important;
    padding: 18px 20px !important;
    border: 2px solid rgba(226, 232, 240, 0.75) !important;
    background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%) !important;
    box-shadow: 
      0 2px 8px rgba(15, 23, 42, 0.05),
      0 8px 20px rgba(15, 23, 42, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .corridor-card:hover,
  .popular-corridor-card:hover,
  a.corridor-card:hover {
    border-color: #0078ff !important;
    box-shadow: 
      0 6px 16px rgba(0, 120, 255, 0.10),
      0 16px 40px rgba(0, 120, 255, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transform: translateY(-4px) scale(1.02) !important;
  }
  
  /* Enhanced corridor text */
  .corridor-name,
  .pc-names {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    letter-spacing: -0.01em !important;
  }
  
  /* Premium pill badges */
  .pc-pill {
    font-size: 11px !important;
    padding: 5px 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    border-radius: 7px !important;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%) !important;
    color: #4f46e5 !important;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.12) !important;
  }
  
  /* Dark mode */
  html.dark .corridor-card,
  html.dark .popular-corridor-card,
  html.dark a.corridor-card {
    background: linear-gradient(to bottom, #1e293b 0%, #1a2332 100%) !important;
    border-color: rgba(71, 85, 105, 0.7) !important;
  }
  
  html.dark .corridor-card:hover,
  html.dark .popular-corridor-card:hover,
  html.dark a.corridor-card:hover {
    border-color: #3b82f6 !important;
    background: linear-gradient(to bottom, #1e293b 0%, #1f2a3d 100%) !important;
  }
  
  html.dark .corridor-name,
  html.dark .pc-names {
    color: #f8fafc !important;
  }
  
  html.dark .pc-pill {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.25) 0%, rgba(79, 70, 229, 0.15) 100%) !important;
    color: #a5b4fc !important;
  }
}

/* ========================================
   3. EXTRA LARGE SCREENS - MAXIMUM POLISH
   ======================================== */

@media (min-width: 1200px) {
  .amount-card.calculator-card .amount-card__input,
  input.amount-card__input {
    font-size: 38px !important;
  }
  
  .amount-card.calculator-card--receive .amount-card__input,
  .amount-row .amount-card:nth-child(2) .amount-card__input {
    font-size: 42px !important;
  }
  
  .transfer-widget .route-select,
  select.route-select {
    padding: 15px 19px !important;
    font-size: 16px !important;
  }
  
  .amount-row.calculator-layout .amount-card.calculator-card,
  .amount-row .amount-card {
    padding: 24px 28px !important;
    min-height: 155px !important;
  }
  
  .amount-card__badge .amount-card__currency-pill,
  button.amount-card__currency-pill {
    padding: 10px 20px !important;
    font-size: 14px !important;
  }
}

/* ========================================
   4. BUTTON ROW - PREMIUM POLISH
   ======================================== */

@media (min-width: 1024px) {
  .button-row {
    gap: 22px !important;
    margin-top: 30px !important;
  }
  
  .submit-btn,
  .show-rates-btn,
  button.show-rates-btn {
    padding: 17px 34px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    border-radius: 13px !important;
    box-shadow: 
      0 3px 10px rgba(0, 120, 255, 0.16),
      0 10px 28px rgba(0, 120, 255, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .submit-btn:hover,
  .show-rates-btn:hover,
  button.show-rates-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 
      0 5px 14px rgba(0, 120, 255, 0.22),
      0 14px 36px rgba(0, 120, 255, 0.20),
      inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  }
  
  .submit-btn:active,
  .show-rates-btn:active,
  button.show-rates-btn:active {
    transform: translateY(0) scale(1) !important;
  }
}

/* ========================================
   5. SMOOTH ANIMATIONS - REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .route-select,
  .amount-card,
  .corridor-card,
  .popular-corridor-card,
  .submit-btn,
  .show-rates-btn {
    transition: none !important;
    transform: none !important;
  }
}
