/* 
 * ===============================================================================================
 * LOFI SWAP MODAL STYLES
 * ===============================================================================================
 * Enhanced swap modal matching LOFI design system
 * Features official branding, smooth animations, and consistent UI
 * ===============================================================================================
 */

/* Modal Background and Container */
#lofi-swap-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  animation: lofiModalFadeIn 0.3s ease-out;
  padding: 20px;
}

#lofi-swap-modal.show {
  display: flex;
}

.lofi-swap-modal-content {
  background: linear-gradient(180deg, #2a2d5e 0%, #1a1d3e 100%);
  border: 2px solid rgba(138, 138, 237, 0.2);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.6), 0 0 30px rgba(138, 138, 237, 0.3);
  animation: lofiModalSlideIn 0.4s ease-out;
  position: relative;
}

.lofi-swap-container {
  padding: 32px;
}

/* Modal Header - Matching Wallet Modal Style */
.lofi-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
}

.lofi-modal-header h2 {
  font-family: 'Gluten', 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #4F76FF;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 
    0 0 20px rgba(79, 118, 255, 0.5),
    0 0 40px rgba(79, 118, 255, 0.3);
  animation: lofiTextGlow 2s ease-in-out infinite alternate;
}

.lofi-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lofi-modal-close:hover {
  background: rgba(255, 68, 68, 0.1);
  border-color: rgba(255, 68, 68, 0.5);
  color: #ff4444;
  transform: rotate(90deg);
}

/* Token Sections */
.lofi-swap-token-section {
  background: rgba(42, 45, 94, 0.9);
  border: 2px solid rgba(138, 138, 237, 0.2);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lofi-swap-token-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(79, 118, 255, 0.05) 50%,
    transparent 70%
  );
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s ease;
}

.lofi-swap-token-section:hover::before {
  transform: rotate(45deg) translateX(100%);
}

.lofi-swap-token-section:hover {
  border-color: rgba(79, 118, 255, 0.3);
  box-shadow: 0 0 20px rgba(79, 118, 255, 0.1);
}

.lofi-swap-token-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.lofi-swap-token-header label {
  font-family: 'Gluten', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Balance Display */
.lofi-balance-display {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.lofi-balance-value {
  color: #4F76FF;
  font-weight: 500;
}

.lofi-max-button {
  background: rgba(79, 118, 255, 0.1);
  border: 1px solid rgba(79, 118, 255, 0.3);
  color: #4F76FF;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lofi-max-button:hover {
  background: rgba(79, 118, 255, 0.2);
  border-color: #4F76FF;
}

/* Input Groups */
.lofi-swap-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lofi-swap-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'Gluten', sans-serif;
  font-size: 28px;
  font-weight: 700;
  outline: none;
  padding: 0;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.lofi-swap-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 400;
}

.lofi-swap-input:focus {
  text-shadow: 0 0 20px rgba(79, 118, 255, 0.3);
}

.lofi-swap-input::-webkit-inner-spin-button,
.lofi-swap-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Token Selector */
.lofi-token-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(138, 138, 237, 0.1);
  border: 1px solid rgba(138, 138, 237, 0.2);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.lofi-token-selector::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(79, 118, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.lofi-token-selector:hover::before {
  width: 100%;
  height: 100%;
}

.lofi-token-selector:hover {
  background: rgba(138, 138, 237, 0.2);
  border-color: rgba(138, 138, 237, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 118, 255, 0.2);
}

.lofi-token-selector img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(138, 138, 237, 0.2);
  transition: all 0.3s ease;
}

.lofi-token-selector:hover img {
  border-color: rgba(138, 138, 237, 0.4);
  transform: scale(1.05);
}

.lofi-token-selector span {
  font-family: 'Gluten', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* USD Value Display */
.lofi-input-value-usd {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
  height: 16px;
}

/* Reverse Button */
.lofi-swap-reverse-container {
  display: flex;
  justify-content: center;
  margin: -8px 0;
  position: relative;
  z-index: 1;
}

.lofi-swap-reverse-button {
  background: rgba(42, 45, 94, 0.95);
  border: 1px solid rgba(138, 138, 237, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #a8b8ed;
  box-shadow: 
    0 0 0 1px rgba(138, 138, 237, 0.1),
    0 4px 20px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(138, 138, 237, 0.1);
  position: relative;
  overflow: hidden;
}

.lofi-swap-reverse-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(79, 118, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.lofi-swap-reverse-button:hover::before {
  width: 150%;
  height: 150%;
}

.lofi-swap-reverse-button:hover {
  background: rgba(79, 118, 255, 0.1);
  border-color: #4F76FF;
  color: #4F76FF;
  transform: rotate(180deg) scale(1.1);
  box-shadow: 
    0 0 0 2px rgba(79, 118, 255, 0.3),
    0 8px 30px rgba(79, 118, 255, 0.3),
    0 0 60px rgba(79, 118, 255, 0.2);
}

/* Swap Details */
.lofi-swap-details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.lofi-swap-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}

.lofi-swap-detail-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lofi-swap-detail-row span:first-child {
  color: rgba(255, 255, 255, 0.6);
}

.lofi-swap-detail-row span:last-child {
  color: white;
  font-weight: 500;
}

/* Slippage Controls */
.lofi-slippage-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lofi-slippage-presets {
  display: flex;
  gap: 6px;
}

.lofi-slippage-preset {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.4) 0%, rgba(26, 26, 26, 0.4) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'Gluten', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lofi-slippage-preset:hover {
  background: rgba(79, 118, 255, 0.05);
  border-color: rgba(79, 118, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.lofi-slippage-preset.active {
  background: rgba(79, 118, 255, 0.1);
  border-color: #4F76FF;
  color: #4F76FF;
  box-shadow: 0 0 12px rgba(79, 118, 255, 0.3);
}

/* Slippage Input */
.lofi-slippage-input-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lofi-slippage-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px 8px;
  width: 60px;
  color: white;
  font-size: 14px;
  text-align: right;
  outline: none;
}

.lofi-slippage-input:focus {
  border-color: #4F76FF;
  box-shadow: 0 0 10px rgba(79, 118, 255, 0.2);
}

/* Price Impact */
.lofi-price-impact {
  font-weight: 600;
}

/* Swap Button */
.lofi-swap-button {
  width: 100%;
  padding: 18px 24px;
  background: #4F76FF;
  border: none;
  border-radius: 16px;
  color: #ffffff;
  font-family: 'Gluten', sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(79, 118, 255, 0.4),
    inset 0 -4px 10px rgba(58, 94, 216, 0.3);
}

.lofi-swap-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.lofi-swap-button:hover:not(:disabled)::before {
  left: 100%;
}

.lofi-swap-button:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 30px rgba(79, 118, 255, 0.5),
    inset 0 -4px 10px rgba(58, 94, 216, 0.4),
    0 0 60px rgba(79, 118, 255, 0.3);
}

.lofi-swap-button:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 15px rgba(79, 118, 255, 0.4),
    inset 0 -2px 5px rgba(58, 94, 216, 0.3);
}

.lofi-swap-button:disabled {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.6) 0%, rgba(26, 26, 26, 0.6) 100%);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  box-shadow: none;
}

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

.lofi-swap-button.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.lofi-swap-button.error {
  background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
  color: white;
}

/* Messages */
.lofi-swap-message {
  padding: 16px;
  border-radius: 12px;
  margin-top: 20px;
  font-family: 'Gluten', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lofi-swap-message-info {
  background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(66, 153, 225, 0.05) 100%);
  border: 1px solid rgba(66, 153, 225, 0.3);
  color: #5a9fd4;
  box-shadow: inset 0 0 20px rgba(66, 153, 225, 0.1);
}

.lofi-swap-message-warning {
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.1) 0%, rgba(255, 170, 0, 0.05) 100%);
  border: 1px solid rgba(255, 170, 0, 0.3);
  color: #ffaa00;
  box-shadow: inset 0 0 20px rgba(255, 170, 0, 0.1);
}

.lofi-swap-message-error {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 68, 68, 0.05) 100%);
  border: 1px solid rgba(255, 68, 68, 0.3);
  color: #ff4444;
  box-shadow: inset 0 0 20px rgba(255, 68, 68, 0.1);
}

/* Loading States */
.lofi-swap-input.loading {
  color: rgba(255, 255, 255, 0.5);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Price Flash Animation */
.lofi-price-value {
  position: relative;
  display: inline-block;
}

.lofi-price-flash {
  position: absolute;
  top: 0;
  left: -10px;
  right: -10px;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(168, 184, 237, 0.3), transparent);
  transform: translateX(-100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lofi-price-flash.flash {
  opacity: 1;
  animation: priceFlashSlide 0.3s ease-out;
}

@keyframes priceFlashSlide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

/* Shake animation for errors */
.shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Rotating animation for reverse button */
.rotating {
  animation: rotate 0.3s ease-in-out;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(180deg); }
}

/* Enhanced Modal Styles */
.lofi-enhanced-modal {
  animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* LOFI Animations */
@keyframes lofiModalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(20px);
  }
}

@keyframes lofiModalSlideIn {
  from {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes lofiTextGlow {
  from {
    text-shadow: 
      0 0 20px rgba(79, 118, 255, 0.5),
      0 0 40px rgba(79, 118, 255, 0.3);
  }
  to {
    text-shadow: 
      0 0 30px rgba(79, 118, 255, 0.7),
      0 0 60px rgba(79, 118, 255, 0.4);
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Quick Actions */
.lofi-quick-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.lofi-quick-action {
  background: linear-gradient(135deg, rgba(45, 45, 45, 0.3) 0%, rgba(26, 26, 26, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 20px;
  border-radius: 12px;
  font-family: 'Gluten', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.lofi-quick-action::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(79, 118, 255, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.lofi-quick-action:hover::before {
  width: 150%;
  height: 150%;
}

.lofi-quick-action:hover {
  background: rgba(79, 118, 255, 0.1);
  border-color: rgba(79, 118, 255, 0.3);
  color: #4F76FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(79, 118, 255, 0.2);
}

/* Quote Loader */
.lofi-quote-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lofi-quote-skeleton {
  width: 100%;
}

/* Skeleton Loading */
.lofi-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

.lofi-skeleton-text {
  height: 16px;
  width: 80px;
}

.lofi-skeleton-number {
  height: 32px;
  width: 120px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Recent Transactions */
.lofi-recent-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(138, 138, 237, 0.1);
}

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

.lofi-recent-header h3 {
  font-family: 'Gluten', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lofi-clear-recent {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lofi-clear-recent:hover {
  color: #ff4444;
}

.lofi-transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.lofi-transaction-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.lofi-transaction-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
}

.lofi-transaction-item.success .lofi-transaction-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.lofi-transaction-item.pending .lofi-transaction-icon {
  background: rgba(255, 170, 0, 0.1);
  color: #ffaa00;
}

.lofi-transaction-item.failed .lofi-transaction-icon {
  background: rgba(255, 68, 68, 0.1);
  color: #ff4444;
}

.lofi-transaction-details {
  flex: 1;
}

.lofi-transaction-pair {
  font-size: 14px;
  font-weight: 500;
}

.lofi-transaction-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.lofi-transaction-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

.lofi-transaction-link:hover {
  color: #4F76FF;
}

.lofi-no-transactions {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  padding: 20px;
  font-size: 14px;
}

/* Custom Scrollbar - Matching Wallet Modal */
.lofi-swap-modal-content::-webkit-scrollbar {
  width: 8px;
}

.lofi-swap-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.lofi-swap-modal-content::-webkit-scrollbar-thumb {
  background: rgba(138, 138, 237, 0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.lofi-swap-modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(138, 138, 237, 0.5);
}

/* Firefox scrollbar */
.lofi-swap-modal-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 138, 237, 0.3) rgba(255, 255, 255, 0.05);
}

/* Accessibility */
.lofi-swap-button:focus-visible,
.lofi-modal-close:focus-visible,
.lofi-quick-action:focus-visible,
.lofi-slippage-preset:focus-visible {
  outline: 2px solid rgba(138, 138, 237, 0.8);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(138, 138, 237, 0.2);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .lofi-swap-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .lofi-swap-container {
    padding: 24px;
  }
  
  .lofi-modal-header h2 {
    font-size: 28px;
  }
  
  .lofi-swap-input {
    font-size: 24px;
  }
  
  .lofi-swap-button {
    font-size: 18px;
    padding: 16px;
  }
}

@media (max-width: 480px) {
  #lofi-swap-modal {
    padding: 0;
  }
  
  .lofi-swap-modal-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    margin: 0;
  }
  
  .lofi-swap-container {
    padding: 20px;
  }
  
  .lofi-modal-header {
    margin-bottom: 24px;
  }
  
  .lofi-modal-header h2 {
    font-size: 24px;
  }
  
  .lofi-modal-close {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .lofi-swap-input {
    font-size: 20px;
  }
  
  .lofi-swap-button {
    font-size: 16px;
    padding: 14px;
  }
  
  .lofi-swap-token-section {
    padding: 16px;
  }
  
  .lofi-quick-actions {
    flex-wrap: wrap;
  }
  
  .lofi-quick-action {
    flex: 1;
    min-width: 120px;
  }
}
/* Fallback quote indicator */
.lofi-fallback-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(255, 170, 0, 0.15);
  border: 1px solid rgba(255, 170, 0, 0.3);
  border-radius: 6px;
  font-size: 11px;
  color: #ffaa00;
  font-weight: 500;
  animation: lofiPulse 2s ease-in-out infinite;
}

.lofi-fallback-indicator::before {
  content: "⚠️";
  font-size: 12px;
}
