html {
  scrollbar-width: none;
}

body {
  background-color: #0f172a;
  color: #f1f5f9;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

.swiper {
  width: 100%;
  max-height: 90vh;
}

.swiper-slide {
  width: 340px;
  height: auto;
  transition: opacity 0.3s;
  padding-bottom: 40px;
}

/* Dim non-active slides for better focus */
.swiper-slide:not(.swiper-slide-active) {
  opacity: 0.4;
}

.glass-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  user-select: none;
}

.card-visual {
  aspect-ratio: 1.586/1;
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.chip {
  width: 36px;
  height: 26px;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  border-radius: 4px;
  position: relative;
}

/* Card Gradients */
.reward-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  /*cursor: pointer;*/
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.reward-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.benefits-list {
  max-height: 50vh;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 4px;
  padding-bottom: 48px;
  -webkit-mask-image: linear-gradient(to bottom, black calc(100% - 48px), transparent 100%);
  mask-image: linear-gradient(to bottom, black calc(100% - 48px), transparent 100%);
}

.benefits-list::-webkit-scrollbar {
  width: 0px;
}

.benefits-list::-webkit-scrollbar-track {
  background: transparent;
}

.benefits-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #60a5fa !important;
  transform: scale(0.7);
}

.card-link {
  display: block;
  text-align: center;
  margin-top: 2rem;
  width: 100%;
  padding: 0.875rem 0;
  border: 1px solid #475569;
  /* slate-600 */
  font-size: 0.875rem;
  color: white;
  font-weight: 700;
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.card-link:hover {
  background-color: white;
  color: #0f172a;
  /* slate-900 */
  border-color: white;
}

.dropdown-menu {
  transition: all 0.2s ease-in-out;
  transform: translateY(-10px);
}
.group:hover .dropdown-menu {
  transform: translateY(0);
}


        /* Panel Expansion Logic */
        .config-row-panel { 
          display: none; 
          background-color: rgba(15, 23, 42, 0.5);
      }
      .config-row-panel.expanded { 
          display: table-row; 
      }
      
      /* Settings Gear Logic (Cards/Partners) */
      .settings-gear { 
          visibility: hidden; 
          opacity: 0;
          transition: opacity 0.2s ease;
      }
      .entity-active .settings-gear { 
          visibility: visible;
          opacity: 1;
      }
      
      /* Issuer Header - Fixed height to prevent layout shift */
      .issuer-header {
          height: 48px;
          position: relative;
      }

      /* Issuer Gear Logic - Absolute positioning prevents height jumps */
      .issuer-gear { 
          display: none !important; 
          position: absolute;
          right: 16px;
          top: 50%;
          transform: translateY(-50%);
      }
      .issuer-active .issuer-gear { 
          display: flex !important; 
      }
      
      /* Issuer Config Area */
      .issuer-config-area { display: none; }
      .issuer-config-area.expanded { display: block; }

      /* Visual Feedback */
      .entity-active { background-color: rgba(79, 70, 229, 0.08); }
      .config-row:hover:not(.entity-active) { background-color: rgba(255, 255, 255, 0.02); }
      
      /* Rotation for gear when expanded */
      .gear-icon { transition: transform 0.3s ease; }
      .expanded-state .gear-icon { transform: rotate(90deg); }

      /* Custom scrollbar */
      ::-webkit-scrollbar { width: 8px; }
      ::-webkit-scrollbar-track { background: #0f172a; }
      ::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }