.card-swap-container {
  position: absolute;
  top: 50%;
  right: 25%;
  transform: translateY(-50%);
  perspective: 900px;
  overflow: visible;
  z-index: 10;
}

.card {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  
  cursor: pointer;
  transition: all 0.3s ease;
  
  /* Ensure full clickability */
  pointer-events: all;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  
  /* Mobile touch handling */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
}

.card:hover,
.card:active {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.3);
  transform: scale(1.02);
}

/* Mobile touch feedback */
@media (max-width: 768px) {
  .card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

.card-content {
  padding: 2rem;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  
  /* Ensure all content areas are clickable */
  pointer-events: all;
  position: relative;
  z-index: 1;
  
  /* Mobile touch optimization */
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  width: 100%;
}

.card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #3b82f6;
  flex-shrink: 0;
}

.card-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
}

.card-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin-bottom: 1rem;
}

.card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  
  /* Prevent images from blocking clicks */
  pointer-events: none;
}

@media (max-width: 768px) {
  .card-swap-container {
    position: absolute;
    top: 75%;
    right: 50%;
    transform: translateX(50%);
    margin-top: 0;
    display: block;
    width: auto;
    max-width: 350px;
    margin-left: 0;
    margin-right: 0;
    z-index: 10;
    /* Ensure visibility on mobile */
    visibility: visible;
    opacity: 1;
    /* Ensure touch interaction */
    pointer-events: all;
    touch-action: manipulation;
  }
  
  .card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 350px;
    /* Mobile touch handling */
    touch-action: manipulation;
    pointer-events: all;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
    /* Ensure cards are clickable on mobile */
    z-index: 100;
    cursor: pointer;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .card-header {
    gap: 0.5rem;
  }
  
  .card-icon svg {
    width: 28px;
    height: 28px;
  }
  
  .card-title {
    font-size: 1.25rem;
  }
  
  .card-description {
    font-size: 0.8rem;
  }
  
  .card-image {
    height: 100px;
  }
  
  .card-image img {
    max-height: 100%;
  }
}

@media (max-width: 480px) {
  .card-swap-container {
    position: absolute;
    top: 75%;
    right: 50%;
    transform: translateX(50%);
    max-width: 300px;
    z-index: 10;
    /* Ensure visibility on mobile */
    visibility: visible;
    opacity: 1;
    /* Ensure touch interaction */
    pointer-events: all;
    touch-action: manipulation;
  }
  
  .card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 300px;
    /* Mobile touch handling */
    touch-action: manipulation;
    pointer-events: all;
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.3);
    /* Ensure cards are clickable on mobile */
    z-index: 100;
    cursor: pointer;
  }
  
  .card-image {
    height: 80px;
  }
  
  .card-image img {
    max-height: 100%;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .card-header {
    gap: 0.375rem;
  }
  
  .card-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .card-description {
    font-size: 0.75rem;
  }
}
