




.container {
	margin: 20px;
	
	gap:20px;
    display: flex; /* Align children (input-container and large-container) horizontally */
    
  
}
/* Input Container */
.input-container {
    align-self: flex-start;  /* Prevent stretching */
	position: relative;
    border-radius: 15px;
    min-width: 256px;
    max-width: 256px;    
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
    background: #13161b;
    padding: 22px; /* Scales with viewport width */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(.75rem, 1vw, 1.75rem); /* Scales gap dynamically */
}







/* Season Selector Styles */
.season-select {
  position: relative;
  max-width: 280px;
  margin: 12px 0;
}

.selected-season {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #13161B;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-season:hover {
  background: #0d0e12;
  transform: translateY(-1px);
  border-color: rgba(235, 74, 87, 0.3);
}

.season-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.season-indicator.epic {
  background: #1E90FF;
}

.season-indicator.rare {
  background: #32CD32;
}

.selected-season span {
  font-weight: 600;
  color: #edf0f1;
  font-size: 15px;
  flex: 1;
  font-family: "Changa", sans-serif;
}

.selected-season::after {
  content: '▼';
  color: #888;
  font-size: 12px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.selected-season:hover::after {
  color: #EB4A57;
  transform: translateY(2px);
}

.season-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #13161B;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1000;
}

.season-select:hover .season-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.season-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.season-option:last-child {
  border-bottom: none;
}

.season-option:hover {
  padding-left: 24px;
  background: #0d0e12;
  border-left: 4px solid #EB4A57;
}

.season-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.season-name {
  color: #bbb;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
  font-family: "Changa", sans-serif;
}

.season-label {
  color: #888;
  font-size: 12px;
  font-weight: 400;
}

.season-option:hover .season-name {
}

.season-option.active {
  border-left: 4px solid #EB4A57;
}

.season-option.active .season-name {
  color: #ffffff;
  font-weight: 600;
}

.season-option.active .season-label {
  color: #EB4A57;
}

@media screen and (max-width: 768px) {
  .season-select {
    max-width: 200px;
  }
  
  .selected-season span,
  .season-name {
    font-size: 10px;
  }
  
  .season-indicator {
    width: 10px;
    height: 10px;
  }
}















.input-container h3 {
    color: #edf0f1;
    font-size: clamp(1rem, 1.5vw, 1.5rem); /* Scalable font size */
    font-weight: 700;
    text-align: left;
    width: 100%;
    background: none;
}

.input-container p {
    color: #b0b0b0;
    font-size: clamp(0.8rem, 1vw, 1rem); /* Scalable font size */
    font-weight: 500;
    text-align: left;
    width: 100%;
    margin-bottom: clamp(1rem, 1.5vw, 2rem);
    background: none;
}

.input-container input {
    width: 80%;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    border: none;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.input-container input::placeholder {
    color: #b0b0b0;
}

.input-container input:focus {
    outline: none;
    border: 1px solid #EB4A57; /* Red border on click */
    
    background: #0d0e12; /* Keep same background */
    color: #fff;
}



#generate-button {
    width: clamp(6rem, 20%, 10rem); /* Responsive button width */
    padding: clamp(0.5rem, 0.8vh, 1rem) clamp(0.5rem, 1vw, 1.5rem);
    font-size: clamp(0.9rem, 1vw, 1.2rem); /* Scalable font size */
    font-weight: 600;
    color: #edf0f1;
    border: none;
    border-radius: 8px;
	margin-top:12px;
    background: var(--primary-accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

#generate-button:hover {
    background: var(--primary-accent-dark);
    transform: scale(1.05);
}

#counter {
    font-weight: 600;
    color: #ff6347;
    background: none;
}

/* Axie items in the added Axies list */
#added-axies {
    width: 100%;
}

.axie-item {
	background-color: #000000;
    display: flex;
    justify-content: space-between;
    padding: clamp(0.5rem, 0.6vw, 1rem); /* Scalable padding */
    margin-bottom: clamp(0.5rem, 0.6vw, 1rem); /* Scalable margin */
    border-radius: 10px;
    color: #edf0f1;
    gap: clamp(0.3rem, 0.5vw, 0.8rem); /* Scales gap dynamically */
}

.remove-btn {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: clamp(0.2rem, 0.5vw, 0.5rem);
}

.axie-item span {
    font-size: clamp(0.9rem, 1vw, 1.2rem); /* Scalable font size */
    font-weight: 500;
}

.remove-btn i {
    font-size: clamp(1rem, 1.2vw, 1.5rem); /* Scalable icon size */
    color: #666;
}

.remove-btn:hover i {
    color: var(--primary-accent);
}

#added-axies {
    background: none;
    border-radius: 10px;
    padding: clamp(0.5rem, 0.6vw, 1rem);
}

/* Clear All Button Styling */
#clear-all-button {
    display: none;
    background: var(--primary-accent);
    border-radius: 25px;
    padding: clamp(0.5rem, 1vw, 1.5rem);
    cursor: pointer;
    color: #fff;
    font-weight: bold;
    border: none;
    font-size: clamp(0.9rem, 1vw, 1.2rem);
    transition: all 0.3s ease;
}

#clear-all-button:hover {
    background: var(--primary-accent-dark);
    transform: scale(1.05);
}









/* Marketplace Filters */
.marketplace-filters {
    display: none;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-header {
    color: #edf0f1;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-accent);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.filter-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.clear-single-filter {
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    transition: color 0.2s;
    line-height: 1;
}

.clear-single-filter:hover {
    color: #ff4757;
}

.filter-label {
    color: #edf0f1;
    font-size: 14px;
    font-weight: 600;
}

/* Price Filter */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #edf0f1;
    font-size: 13px;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #EB4A57;
}

.price-input::placeholder {
    color: #666;
}

.price-separator {
    color: #666;
    font-weight: 600;
}

/* Collection Filters */
.collection-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collection-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.collection-filter-item:hover {
    background: rgba(235, 74, 87, 0.05);
    border-color: rgba(235, 74, 87, 0.2);
}

.collection-filter-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.collection-filter-icon:not([src]) {
    display: none;
}

.collection-filter-name {
    flex: 1;
    color: #edf0f1;
    font-size: 13px;
    font-weight: 500;
}

.collection-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #EB4A57;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.apply-filters-btn,
.clear-filters-btn,
.clear-search-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.apply-filters-btn {
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    color: white;
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 74, 87, 0.4);
}

.clear-filters-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #edf0f1;
}

.clear-filters-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Results Header */
.marketplace-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 16px;
}

.marketplace-results-header h3 {
    color: #edf0f1;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.filtered-count {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}


.clear-search-btn {
	
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #edf0f1;
	
}


/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-separator {
        display: none;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .collection-filter-name {
        font-size: 12px;
    }
}

/* Slider Styles */
.filter-label-with-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.filter-value-display {
    color: #EB4A57;
    font-size: 13px;
    font-weight: 700;
}

.slider-container {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.range-slider::-webkit-slider-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #EB4A57 0%, #DC143C 100%);
    border-radius: 3px;
}

.range-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #EB4A57 0%, #DC143C 100%);
    border-radius: 3px;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #edf0f1;
    border: 2px solid #EB4A57;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #edf0f1;
    border: 2px solid #EB4A57;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    background: #EB4A57;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(235, 74, 87, 0.6);
}

.range-slider::-moz-range-thumb:hover {
    background: #EB4A57;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(235, 74, 87, 0.6);
}

.range-slider:first-child {
    z-index: 1;
}

.range-slider:last-child {
    z-index: 2;
}







#large-container {
	align-self: flex-start;
    display: flex; /* Make it a flex container */
    flex-grow: 1;  /* Allow it to take up available space */
    width: 100%;   /* Full width, but will grow based on available space */
    max-width: 100%; /* Ensures it doesn't exceed the container width */
	min-height: 1250px;	
    border-radius: 15px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    padding: 1rem;
	height: auto;
	background: #13161b;

	
}




/* Axie Container Styles - Dark Mode */
.axie-container {
    display: flex;
    width: 100%;
    min-height: 630px;
	max-height: 630px;
    margin-bottom: 30px;
    background: #13161b;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 2px solid #333;
}


.user-section {
    display: flex;
    flex-direction: column;
	width: 32.5%;

}

/* User Axie Section - The parent container */
.user-axie-section {
	padding: 20px;
	padding-bottom: 0px;
    background: #13161b;
    border-right: 2px solid #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}



/* NEW CONTAINER: This is the 'ghost' element containing the image */
.user-axie-image-container {
    height: 194px; 
    z-index: 1;

}

/* The image itself is now the 'ghost' element */
.user-axie-image {
    position: absolute; 
    top: 40px;
    left: 54%;
    transform: translateX(-50%); 
    width: 312px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}






/* ===== LEFT SIDE BADGES ===== */
.left-badges-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: 20px;
    left: 15px;
    z-index: 10;
    align-items: center;

}

/* Level Badge with Circular Progress */
.level-badge-container {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
	margin-bottom: 6px;
	top: -4px;
	
}

.level-progress-circle {
    position: absolute;
    transform: rotate(-90deg);
}

.level-progress-circle {
    width: 50px;
    height: 50px;
}

.level-progress-circle .progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.level-progress-circle .progress-fill {
    fill: none;
    stroke: #EB4A57;
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}



.level-text {
    position: absolute;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.collection-badge-with-count {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;   /* perfect circle */
	padding: 2px 2px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 2px solid;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}


.collection-badge-with-count:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(235, 74, 87, 0.5);
}

.collection-mystic { border-color: #7B36AA; background: #7B36AA; }
.collection-origin { border-color: #B72C19; background: #B72C19; }
.collection-agamogenesis { border-color: #E12F64; background: #E12F64; }
.collection-meocorp { border-color: #282C34; background: #282C34; }
.collection-meocorpii { border-color: #282C34; background: #282C34; }
.collection-xmas { border-color: #17760E; background: #17760E; }
.collection-japan { border-color: #84502B; background: #84502B; }
.collection-shiny { border-color: #007FA8; background: #007FA8; }
.collection-summer { border-color: #00976E; background: #00976E; }
.collection-nightmare { border-color: #8A0093; background: #8A0093; }


.collection-icon-container {
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.collection-icon-small {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.collection-count-text {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    min-width: 18px;
    text-align: center;
}

.collection-text-fallback {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

/* Rare collection glow */

.collection-agamogenesis {
    animation: agamogenesis-glow 2s ease-in-out infinite;
}

.collection-origin {
    animation: origin-glow 2s ease-in-out infinite;
}


.collection-mystic {
    animation: mystic-glow 2s ease-in-out infinite;
}




@keyframes mystic-glow {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(123, 54, 170, 0.5); /* smaller spread and softer */
    }
    50% {
        box-shadow: 0 2px 10px rgba(123, 54, 170, 0.8), 0 0 15px rgba(123, 54, 170, 0.4); /* reduced spread and secondary glow */
    }
}

/* Origin Glow */
@keyframes origin-glow {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(183, 44, 25, 0.5);
    }
    50% {
        box-shadow: 0 2px 10px rgba(183, 44, 25, 0.8), 0 0 15px rgba(183, 44, 25, 0.4);
    }
}

/* Agamogenesis Glow */
@keyframes agamogenesis-glow {
    0%, 100% {
        box-shadow: 0 2px 6px rgba(255, 105, 180, 0.5); /* hot pink */
    }
    50% {
        box-shadow: 0 2px 10px rgba(255, 105, 180, 0.8), 0 0 15px rgba(255, 105, 180, 0.4);
    }
}



/* ===== RIGHT SIDE BADGES ===== */
.right-badges-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: 20px;
    right: 15px;
    z-index: 10;
    align-items: center;
}

/* Stat Badges (Parts, Breed Count, Fortune Slips) */
.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0;
    transition: all 0.3s ease;
    min-width: 32px;
}

.right-badges-container > :first-child {
    margin-bottom: 6px;
}


.stat-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.stat-value {
    font-size: 12px;
    font-weight: 700;
    color: #edf0f1;
    text-align: center;
}











.user-axie-info {
    width: 100%;
    text-align: left;
}

.user-axie-info h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.8rem);
    color: var(--primary-accent);
    margin-bottom: 10px;
    font-weight: 700;
}

.axie-class {
    font-size: clamp(1rem, 1.2vw, 1.3rem);
    color: #edf0f1;
    font-weight: 600;
    margin-bottom: 8px;
}

.morph-info {
    font-size: clamp(0.95rem, 1.1vw, 1.2rem);
    color: #4cff88;
    font-weight: 600;
    padding: 8px 12px;
    background: rgba(76, 255, 136, 0.15);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-accent);
}

.parts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.part-item {
    font-size: clamp(0.85rem, 1vw, 1.1rem);
    color: #b0b0b0;
    padding: 6px 10px;
    background: #2a2a2a;
    border-radius: 6px;
    font-weight: 500;
}

/* Morph Axies Section - 60% width */
.morph-axies-section {
    width: 67.5%;
    padding: 20px;
    background: #13161b;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
	overflow-x: hidden;
    max-height: 600px;
}

.morph-section-title {
    font-size: clamp(1.3rem, 1.6vw, 1.9rem);
    color: #edf0f1;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-accent);
    padding-bottom: 10px;
}

.morph-teams-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Enhanced Morph Team Styles */
.morph-team {
    background: #13161b;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 15px;
    position: relative;
}


.morph-team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #2a2a2a;
}

.player-name {
    font-size: clamp(1.1rem, 1.3vw, 1.5rem);
    color: #edf0f1;
    font-weight: 700;
    margin: 0;
}




/* Messages */
.no-axies-message,
.loading-message,
.no-morphs-message {
    text-align: center;
    font-size: clamp(1.1rem, 1.3vw, 1.5rem);
    color: #666;
    padding: 40px;
    font-weight: 500;
}

.no-morphs-message {
    padding: 20px;
    font-size: clamp(0.95rem, 1.1vw, 1.2rem);
    color: #555;
}

/* Filter Container Styles */
.filters-container {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.filter-item:last-child {
    margin-bottom: 0;
}

.filter-item label {
    color: #b0b0b0;
    font-size: clamp(0.85rem, 1vw, 1rem);
    font-weight: 500;
    flex: 1;
}

.filter-input-number {
    width: 80px;
    padding: 6px 12px;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #1a1a1a;
    color: #edf0f1;
    text-align: center;
    transition: all 0.3s ease;
}

.filter-input-number:focus {
    outline: none;
    border-color: var(--primary-accent);
    background-color: #242424;
    box-shadow: 0 0 8px rgba(235, 74, 87, 0.3);
}

.filter-input-number::-webkit-inner-spin-button,
.filter-input-number::-webkit-outer-spin-button {
    opacity: 0.5;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.player-name {
    font-size: clamp(1.1rem, 1.3vw, 1.5rem);
    color: #7DA6FF;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.player-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-rank {
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    font-weight: 700;
    color: #7DA6FF;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 8px;
}

.vstar-container {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);

}

.vstar-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.vstar-value {
    font-size: clamp(0.9rem, 1.1vw, 1.2rem);
    font-weight: 600;
    color: #f39c12;
}

.match-info {
    font-size: clamp(0.9rem, 1.1vw, 1.2rem);
    color: #4cff88;
    font-weight: 600;
    background: rgba(76, 255, 136, 0.2);
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
    align-self: flex-start;
}

/* Team Axies with Highlighting */
.team-axies {
    height: 136px;
    object-fit: contain;
	
}

.axie-wrapper {
    position: relative;
    transition: all 0.3s ease;
}

.axie-wrapper.matched-axie .team-axie-image {
    filter: drop-shadow(0 0 3px rgba(235, 74, 87, 1))
            drop-shadow(0 0 3px rgba(235, 74, 87, 1))
            drop-shadow(0 0 2px rgba(235, 74, 87, 1));
}




.axie-wrapper.non-matched-axie .team-axie-image-container .team-axie-image-wrapper .team-axie-image {
    transition: all 0.4s ease;
	opacity: 0.3;
	
}
.axie-wrapper.non-matched-axie .team-axie-image-container .team-axie-image-wrapper .team-axie-image:hover {
	opacity: 1;
	
}




.team-axies {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
	
}


.team-axies > :first-child {
  transform: translate(-20px, 14px);
}

.team-axies > :nth-child(2) {
  transform: translate(180px, 14px);
}

.team-axies > :nth-child(3) {
  transform: translate(380px, 14px);
}

.axie-wrapper {
	
	position: absolute;
	
}


.team-axie-image {
    width: 284px;
    height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    cursor: pointer;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    background: none;
}



.team-axie-image:hover {
    transform: scale(1.05);
}

.axie-wrapper.non-matched-axie:hover {
    opacity: 1;
}



.team-axie-image-container .left-badges-container {
  transform: translate(15px, 25px); /* move right 10px, down 8px */
  opacity: 1;
}

.team-axie-image-container .right-badges-container {
  transform: translate(-55px, 50px); /* move right 10px, down 8px */
  opacity: 1;
}

.team-axie-image-container .right-badges-container .stat-badge {
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  background: rgba(13, 14, 18, 0.5); /* 60% opacity */
}




.team-type-badge {
    color: #edf0f1;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.part-match-container {
    display: flex;
    gap: 3px;
    justify-content: center;
    position: absolute;
    bottom: 10px;
    transform: translate(100px, -40px); /* move right 10px, down 8px */
    z-index: 10;
}

.part-match-rect {
    width: 6px;
    height: 12px;
    background: #606060;
    transition: all 0.3s ease;
}

.part-match-rect.matched {
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
    border-color: #16a34a;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}



.class-crest-icon {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 5;
    pointer-events: none;
}

/* Adjust for team axies if needed */
.team-axie-image-container .class-crest-icon {
    width: 24px;
    height: 24px;
	top: 25px;
    transform: translateX(-20px);


}




.morph-parts-section {
    border-right: 2px solid #333;
    padding: 20px;
    padding-top: 0;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    position: relative; /* required for absolute children */
}

.morph-parts-placeholder {
    position: absolute;   /* enable top/left positioning */
    top: 50%;             /* halfway down parent */
    left: 50%;            /* halfway across parent */
    transform: translate(-50%, -50%); /* center perfectly */
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    padding: 0;
    font-size: 11px;
}


.morph-parts-title {
    color: #a78bfa;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
}

.parts-comparison-container {
    display: flex;
    flex-direction: column;
    margin: 0;
    gap: 2px;
}

.part-comparison-row {
    display: grid;
    grid-template-columns: 65px 1fr auto 1fr;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin: 0;
    gap: 6px;
    align-items: center; /* ✅ Vertically centers all grid items */
}


.part-comparison-row.matching {


}

.part-comparison-row.needs-morph {


}

.part-label {
    display: flex;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    gap: 6px;
    align-items: center; /* ✅ Vertically centers all grid items */
    padding: 2px;
}



.part-name {
    font-size: 13px;
    margin: 0;
    padding: 0;
}

.part-value {
    border-radius: 6px;
    font-size: 9px;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.user-part {
    color: #c4b5fd;
    font-size: 12px;
}

.target-part {
    background: #0D0E12;
    color: #93c5fd;
    font-size: 12px;
    padding: 2px;


}

.part-status {
    display: flex;
    margin: 0;
    padding: 0;
}

.check-icon {
    color: #4ade80;
    font-size: 13px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.arrow-icon {
    color: #fb923c;
    font-size: 13px;
    font-weight: bold;
    margin: 0;
    padding: 0;
}

.morph-summary {
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    padding: 8px;
    gap: 8px;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    margin: 0;
    padding: 4px;
    gap: 0;
}

.summary-stat.needs-morph-stat {
    background: rgba(251, 146, 60, 0.1);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.stat-number {
    font-size: 13px;
    font-weight: bold;
    color: #4ade80;
    margin: 0;
    padding: 0;
}

.needs-morph-stat .stat-number {
    color: #fb923c;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    padding: 0;
}

/* Make matched axies clickable */
.matched-axie {
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}


.part-icon-img {
	
	width: 18px;
	height: 18px;
	
}







.axie-link-dropdown {
    position: absolute;
    bottom: -45px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.axie-link-dropdown.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.marketplace-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(235, 74, 87, 0.4);
    transition: all 0.3s ease;
}

.marketplace-dropdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(235, 74, 87, 0.6);
}

.marketplace-dropdown-btn i {
    font-size: 12px;
}












/* Morph Tabs */
.morph-tabs {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 8px;
}

.morph-tab {
    flex: 1;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.morph-tab:hover {
    background: rgba(235, 74, 87, 0.1);
    color: #edf0f1;
}

.morph-tab.active {
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    color: white;
}

.morph-tab i {
    font-size: 14px;
}

/* Tab Content */
.morph-tab-content {
    display: none;
}

.morph-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Part Selectors */
.part-selectors {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.part-selector-item {
    cursor: pointer;
}

.part-selector-item label {
    color: #edf0f1;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.part-selected {
    padding: 10px 12px;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-height: 40px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.part-selected:hover {
    border-color: #EB4A57;
    background: rgba(235, 74, 87, 0.05);
}

.part-placeholder {
    color: #666;
    font-size: 13px;
}

.part-selected-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.part-selected-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.part-selected-name {
    color: #edf0f1;
    font-size: 13px;
    font-weight: 500;
}






.part-search-container {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.part-search-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #0D0E12;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s;
}

.part-search-input:focus {
    outline: none;
    border-color: #00d4ff;
	border: 1px solid #EB4A57;
}

.part-search-input::placeholder {
    color: #888;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}










/* Class Selector */
.class-selector {
    margin-bottom: 16px;
}

.class-selector label {
    color: #edf0f1;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.class-selector select {
    width: 100%;
    padding: 10px 12px;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #edf0f1;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.class-selector select:focus {
    outline: none;
    border-color: #EB4A57;
}

/* Count Input */
.count-input {
    margin-bottom: 16px;
}

.count-input label {
    color: #edf0f1;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.count-input input {
    width: 100%;
    padding: 10px 12px;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #edf0f1;
    font-size: 13px;
    transition: all 0.3s ease;
}

.count-input input:focus {
    outline: none;
    border-color: #EB4A57;
}

/* Search Button */
.search-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 74, 87, 0.4);
}

.search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Part Selector Modal */
.part-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.part-selector-modal-content {
    background: #13161B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #EB4A57;
}

#modal-part-title {
    color: #edf0f1;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.part-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.part-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: #0d0e12;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.part-grid-item:hover {
    border-color: #EB4A57;
    background: rgba(235, 74, 87, 0.05);
    transform: translateY(-2px);
}

.part-grid-item.selected {
    border-color: #EB4A57;
    background: rgba(235, 74, 87, 0.1);
}

.part-grid-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
}

.part-grid-name {
    color: #edf0f1;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.marketplace-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
	width: 100%;
	height: 100%;
}
.marketplace-axie-card {
    background: #0d0e12;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.marketplace-axie-card:hover {
    border-color: #EB4A57;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(235, 74, 87, 0.3);
}

.marketplace-axie-info {
    display: flex;
    flex-direction: column;
	top: -30px;
    gap: 8px;
}

.marketplace-axie-id {
    color: #EB4A57;
    font-size: 14px;
    font-weight: 700;
}

.marketplace-axie-class {
    color: #edf0f1;
    font-size: 13px;
    font-weight: 600;
}

.marketplace-axie-price {
    color: #4cff88;
    font-size: 12px;
    font-weight: 600;
}

.marketplace-axie-parts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.marketplace-part-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 10px;
    color: #888;
}

.marketplace-part-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}





.marketplace-image-container {
    position: relative;
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden; /* Prevent overflow */
}
.marketplace-axie-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Marketplace Axie Image */
.marketplace-axie-image {
    position: absolute;
    width: 110%;
    height: auto;
    max-width: none;
    object-fit: contain;
    top: 64%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Marketplace Left Badges */
.marketplace-left-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: 3px;
    left: 0;
    z-index: 1;
    align-items: center;
}

.marketplace-left-badges .level-badge-container {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
}

.marketplace-left-badges .level-progress-circle {
    width: 40px;
    height: 40px;
}

.marketplace-left-badges .level-text {
    font-size: 16px;
}

.marketplace-left-badges .collection-badge-with-count {
    width: 22px;
    height: 22px;
    padding: 2px;
}

.marketplace-left-badges .collection-icon-container {
    width: 12px;
    height: 12px;
}

.marketplace-left-badges .collection-count-text {
    font-size: 11px;
}

/* Marketplace Right Badges */
.marketplace-right-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    align-items: center;
}

.marketplace-right-badges .stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border-radius: 8px;
    min-width: 32px;
    transition: all 0.3s ease;
}

.marketplace-right-badges .stat-badge:hover {
    background: rgba(13, 14, 18, 0.8);
    transform: scale(1.05);
}

.marketplace-right-badges .stat-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.marketplace-right-badges .stat-value {
    font-size: 11px;
    font-weight: 700;
    color: #edf0f1;
    text-align: center;
}

.marketplace-right-badges > :first-child {
    margin-bottom: 6px;
}

/* Match Info Styling */
.marketplace-match-info {
    color: #4cff88;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(76, 255, 136, 0.3);
}

/* Marketplace Class Crest Icon */
.marketplace-class-crest {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 5;
    pointer-events: none;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .marketplace-image-container {
        height: 160px;
    }
    
    .marketplace-axie-image {
        width: 130%;
    }
    
    .marketplace-class-crest {
        width: 28px;
        height: 28px;
    }
    
    .marketplace-left-badges .level-badge-container {
        width: 36px;
        height: 36px;
    }
    
    .marketplace-left-badges .level-progress-circle {
        width: 36px;
        height: 36px;
    }
    
    .marketplace-left-badges .level-text {
        font-size: 14px;
    }
    
    .marketplace-right-badges .stat-icon {
        width: 16px;
        height: 16px;
    }
    
    .marketplace-right-badges .stat-value {
        font-size: 10px;
    }
}

@media screen and (max-width: 480px) {
    .marketplace-image-container {
        height: 140px;
    }
    
    .marketplace-axie-image {
        width: 240px;
    }
    
    .marketplace-class-crest {
        width: 24px;
        height: 24px;
    }
    
    .marketplace-left-badges .level-badge-container {
        width: 32px;
        height: 32px;
    }
    
    .marketplace-left-badges .level-progress-circle {
        width: 32px;
        height: 32px;
    }
    
    .marketplace-left-badges .level-text {
        font-size: 13px;
    }
    
    .marketplace-left-badges .collection-badge-with-count {
        width: 24px;
        height: 24px;
    }
    
    .marketplace-left-badges .collection-icon-container {
        width: 10px;
        height: 10px;
    }
    
    .marketplace-right-badges .stat-icon {
        width: 14px;
        height: 14px;
    }
    
    .marketplace-right-badges .stat-value {
        font-size: 9px;
    }
}



















@media screen and (max-width: 768px) {
	


	
	
	.axie-container {
		
		flex-direction: column;
		
	}
	.user-section{
        border-bottom: 2px solid #333;
		flex-direction: row;
		width: 100%;

	}
	
	.user-axie-section {
		
		flex: 2;
		
	}
	
	.morph-parts-section {
		border: none;

		flex: 3;
		
	}
	
	
	.morph-axies-section {
		
        width: 100%;		
	}
	
	.team-axie-image {
		
		width: 36vw;
		
	}
	
    .team-axies > :first-child {
      transform: translate(-2.5vw, 14px);
    }
    
    .team-axies > :nth-child(2) {
      transform: translate(23vw, 14px);
    }
    
    .team-axies > :nth-child(3) {
      transform: translate(48vw, 14px);
    }
	
	.collection-icon-container {
		
		width: 1.8vw;
		height: 1.8vw;
		
	}
	

    .part-match-rect {
        width: 0.9vw;
        height: 1.8vw;
    	
    }
	
    .part-match-container {

        bottom: 1.27vw;
        transform: translate(12.68vw, -5.07vw);

    }
	
	.user-axie-info h3 {
		
		font-size: 16px;
		
	}
	
	
	.level-progress-circle {
		
		width: 36px;
        height: 36px;
		
	}
	
	.level-text {
		
		font-size: 15px;
		
	}
	
	
	

}


@media screen and (max-width: 648px) {
	


	
	
	.axie-container {
		
		flex-direction: column;
		
	}
	.user-section{
        border-bottom: 2px solid #333;
		flex-direction: row;
		width: 100%;

	}
	
	.user-axie-section {
		padding: 10px;
		padding-bottom: 0px;
		flex: 2;
		
	}
	

	.morph-parts-section {
		border: none;

		flex: 3;
		
	}
	
	
	.morph-axies-section {
		
        width: 100%;		
	}
	
	.team-axie-image {
		
		width: 36vw;
		
	}
	
	.user-axie-image-container {
		
		height: 154px;
		
	}
	
	.class-crest-icon {
		
		width: 32px;
		height: 32px;
        top: 10px;		
	}
	
	.user-axie-image {
		
		height: 172px;
		
	}
	
    .stat-icon {
        width: 13px;
        height: 13px;
        object-fit: contain;
    }
	
	.stat-value {
		
		font-size: 11px;
		
	}
	
	
    .team-axies > :first-child {
      transform: translate(-2.5vw, 14px);
    }
    
    .team-axies > :nth-child(2) {
      transform: translate(23vw, 14px);
    }
    
    .team-axies > :nth-child(3) {
      transform: translate(48vw, 14px);
    }
	
	.collection-icon-container {
		
		width: 1.8vw;
		height: 1.8vw;
		
	}
	

    .part-match-rect {
        width: 0.9vw;
        height: 1.8vw;
    	
    }
	
    .part-match-container {

        bottom: 1.27vw;
        transform: translate(12.68vw, -5.07vw);

    }
	
	.user-axie-section .left-badges-container  {
		
		left: 0px;
		top: 10px;
		
	}
	
	.user-axie-section .right-badges-container {
		
		top: 10px;
        right: 0px;
		
	}
	
	.team-axie-image-container .left-badges-container {
        transform: translate(0px, 0px); 
		
    }
	
    .team-axies {
        height: 126px;
        object-fit: contain;
    }	
	
}

@media screen and (max-width: 480px) {
	

    .level-badge-container {
		
		top: -3px;
		
	}
	
	
	.axie-container {
		
		flex-direction: column;
		
	}
	.user-section{
        border-bottom: 2px solid #333;
		flex-direction: row;
		width: 100%;

	}
	
	.user-axie-section {
		padding: 10px;
		padding-bottom: 0px;
		flex: 2;
		
	}
	

	.morph-parts-section {
		border: none;
        padding: 10px;
		flex: 3;
		
	}
	
	.morph-section-title {
		font-size: 16px;
		padding-bottom: 0px;
		
	}
	
	
	.morph-axies-section {
		
        width: 100%;		
	}
	
	.team-axie-image {
		
		width: 32vw;
		
	}
	
	.morph-parts-title {
		
		font-size: 12px;
		margin-bottom: 6px;
		
	}
	.part-name {
		
		font-size: 10px;	
		
	}

    .part-comparison-row {
		
		grid-template-columns: 48px 1fr auto 1fr;
		
	}

    .parts-comparison-container {
		
		gap: 0px;
		
	}
    .part-icon-img {
        width: 13px;
        height: 13px;
    }
	
	.user-axie-image-container {
		
		height: 112px;
		
	}
	
	.part-value {
		
		font-size: 10px;
		
	}
	
	.player-name {
		
		font-size: 15px;
		
	}
	
	.player-rank {
		
		font-size: 15px;
	}
	
	.vstar-value {
		
		font-size: 15px;	
		
	}
	.class-crest-icon {
		
		width: 24px;
		height: 24px;
        top: 10px;		
	}
	
	.user-axie-image {
		
		height: 126px;
		top: 30px;
	}
	
    .stat-icon {
        width: 13px;
        height: 13px;
        object-fit: contain;
    }
	
	.stat-value {
		
		font-size: 10px;
		
	}
	
	
    .team-axies > :first-child {
      transform: translate(-2.5vw, 14px);
    }
    
    .team-axies > :nth-child(2) {
      transform: translate(21vw, 14px);
    }
    
    .team-axies > :nth-child(3) {
      transform: translate(43vw, 14px);
    }
	
	.collection-icon-container {
		
		width: 1.5vw;
		height: 1.5vw;
		
	}
	
	.team-axies {
		
		height: 76px;
		
	}

    .part-match-rect {
        width: 0.9vw;
        height: 1.8vw;
    	
    }
	
    .part-match-container {

        bottom: 1.27vw;
        transform: translate(10.5vw, -5.07vw);

    }
	
	.user-axie-section .left-badges-container  {
		
		left: 0px;
		top: 10px;
		
	}
	
	.user-axie-section .right-badges-container {
		
		top: 10px;
        right: 0px;
		
	}
	
	.team-axie-image-container .left-badges-container {
        transform: translate(-10px, -5px); 
		gap: 3px;
		
    }
	
	.left-badges-container .collection-badge-with-count {
		position: relative;
		top: -15px;
		
	}
	
	
	.level-progress-circle {
		
		width: 30px;
        height: 30px;
		
	}
	
	.level-text {
		
		font-size: 13px;
		
	}
	
}
@media screen and (max-width: 400px) {

    .morph-parts-placeholder {
		
		position: relative;
		
	}

    .user-axie-info h3 {
        font-size: 14px;
    }
	


	
	
	.axie-container {
		
		flex-direction: column;
		
	}
	.user-section{
        border-bottom: 2px solid #333;
		flex-direction: column;
		width: 100%;
		

	}
	
	.user-axie-section {
		padding: 10px;
		padding-bottom: 0px;
		flex: 2;
		
	}
	

	.morph-parts-section {
		border: none;
        padding: 10px;
		flex: 3;
		
	}
	
	.morph-section-title {
		font-size: 15px;
		padding-bottom: 0px;
		
	}
	
	
	.morph-axies-section {
		
		padding: 10px;
		
        width: 100%;		
	}
	
	.team-axie-image {
		
		width: 35vw;
		
	}
	
	.morph-parts-title {
		
		font-size: 11px;
		margin-bottom: 6px;
		
	}
	.part-name {
		
		font-size: 9px;	
		
	}

    .part-comparison-row {
		
		grid-template-columns: 48px 1fr auto 1fr;
		
	}

    .parts-comparison-container {
		
		gap: 0px;
		
	}
    .part-icon-img {
        width: 12px;
        height: 12px;
    }
	
	.user-axie-image-container {
		
		height: 108px;
		
	}
	
	.part-value {
		
		font-size: 9px;
		
	}
	
	.player-name {
		
		font-size: 12px;
		
	}
	
	.player-rank {
		
		font-size: 12px;
	}
	
	.vstar-value {
		
		font-size: 12px;	
		
	}
	
	.team-type-badge {
		
		font-size: 12px;
		
	}
	
	.class-crest-icon {
		
		width: 22px;
		height: 22px;
        top: 10px;		
	}
	
	.user-axie-image {
		
		height: 172px;
		top: 0px;
	}
	
    .stat-icon {
        width: 13px;
        height: 13px;
        object-fit: contain;
    }
	
	.stat-value {
		
		font-size: 9px;
		
	}
	
	
    .team-axies > :first-child {
      transform: translate(-4vw, 14px);
    }
    
    .team-axies > :nth-child(2) {
      transform: translate(19.5vw, 14px);
    }
    
    .team-axies > :nth-child(3) {
      transform: translate(41.5vw, 14px);
    }
	
	.user-axie-section {
		
		border: none;
		
	}
	
	.collection-icon-container {
		
		width: 2vw;
		height: 2vw;
		
	}
	
	.team-axies {
		
		height: 64px;
		
	}

    .part-match-rect {
        width: 0.9vw;
        height: 1.8vw;
    	
    }
	
    .part-match-container {

        bottom: 1.27vw;
        transform: translate(10.5vw, -5.07vw);

    }
	
	.user-axie-section .left-badges-container  {
		
		left: 0px;
		top: 10px;

		
	}
	
	.user-axie-section .right-badges-container {
		
		top: 14px;
        right: 4px;
		
	}
	
	.team-axie-image-container .left-badges-container {
        transform: translate(-10px, -5px); 
		gap: 3px;
		
    }
	
	.left-badges-container .collection-badge-with-count {
		position: relative;
		top: -20px;
		
	}
	
	
	.level-progress-circle {
		
		width: 28px;
        height: 28px;
		
	}
	
	.level-text {
		
		font-size: 11px;
		
	}
	
}
















.sliding-panel-wrapper {
    position: relative; /* Keep it in the document flow on desktop */
}

.sliding-panel-toggle {
    display: none; /* Hide toggle button on desktop */
}

@media screen and (max-width: 768px) {

    .sliding-panel-wrapper {
        position: fixed;
        top: 0;
        left: 0; /* Changed from right: 0 */
        width: 320px;
        max-width: 85%;
        height: 100%;
        z-index: 1003;
        display: flex;
        align-items: center;
        transform: translateX(-100%); /* Changed from translateX(100%) */
        transition: transform 0.3s ease;
        will-change: transform;
    }
    
    .sliding-panel-wrapper.active {
        transform: translateX(0); /* slide in */
    }

    .sliding-panel-wrapper .input-container {
        width: 100%;
        height: 100%;
        min-width: unset;
        max-width: unset;
        border-radius: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8); /* Changed shadow direction */
        border: none;
        border-right: 1px solid rgba(235, 74, 87, 0.2); /* Changed from border-left */

        padding: 20px;
        padding-top: 32px;
        overflow-y: auto;
    }

    .sliding-panel-toggle {
        display: flex;
        position: absolute;
        right: -40px; /* Changed from left: -40px */
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 60px;
        background: #13161B;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none; /* Changed from border-right: none */
        color: #EB4A57;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-top-right-radius: 12px; /* Changed from border-top-left-radius */
        border-bottom-right-radius: 12px; /* Changed from border-bottom-left-radius */
        box-shadow: 5px 0 15px rgba(0,0,0,0.5); /* Changed shadow direction */
        z-index: -1;
    }

    .sliding-panel-toggle i {
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        will-change: transform;
        transform: rotate(180deg); /* Default state: arrow points left (to close) */
    }
    
    .sliding-panel-wrapper.active .sliding-panel-toggle i {
        transform: rotate(0deg); /* When open: arrow points right (to open) */
    }

    .panel-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1002;
        opacity: 0;
        visibility: hidden;
        will-change: opacity;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .panel-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}


