@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');


:root {
  --primary-accent: #EB4A57;
  --primary-accent-dark: #DC143C;
  --secondary-accent: #4cff88;
  --secondary-accent-dark: #28a745;
  --text-light: #edf0f1;
  --text-medium: #bbb;
  --text-dark: #888;
  --bg-dark-1: #101010;
  --bg-dark-2: #191919;
  --bg-dark-3: #1d1d1d;
  --bg-dark-4: #111;
  --border-color: #333;
}

/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Changa", sans-serif;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
	font-size: 16px;
    max-width: 100vw;
	scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    background-color: #0d0e12;
    max-width: 100vw;
    overflow-y: auto; /* Ensure vertical scroll only */
}

/* Header */
header {
    background-color: #13161b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    max-width: 100%;
    padding: 2px 24px;
}

.logo {
    color: #edf0f1;
    text-decoration: none;
    font-size: 36px;
    font-weight: 800;
	font-family: "Changa", sans-serif;
	background: none;
}

.logo-axie {
    color: #edf0f1; 
    background: none;
}

.logo-meta {
    background: linear-gradient(45deg, #FA8072, #DC143C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Authentication Buttons */
.signup-btn {
    background-color: #101010;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    text-align: center;
    gap: 6px;
    background: linear-gradient(145deg, #d1d1d1, #bfbfbf);
    color: #888;
    opacity: 0.85;
}

.auth-buttons {
    background-color: #101010;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.atia-btn img.atia {
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    background: none;
}

.auth-buttons a img.loginIcon {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin: 0;
    background: none;
}

/* Navigation Links */
.nav_links {
    display: flex;
    background-color: none;
}

.nav_links li {
    list-style: none;
    background-color: none;
}

.nav_links li a {
    background-color: none;
    text-decoration: none;
    color: #edf0f1;
    font-weight: 600;
    font-size: 15px;
    padding: clamp(0.1vw, 0.2vw, 0.4vw) clamp(.75vw, 1vw, 1.25vw);
    transition: all 0.3s ease;
}

.nav_links li a:hover:not(.donate) {
    color: #EB4A57;
}

.nav_links a.active {
    color: #EB4A57;
}


.donate i {
    vertical-align: middle;
    margin-right: 0.1rem;
}

.donate {
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
	font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.donate:hover {
    background: linear-gradient(135deg, #FA8072, #DC143C);
    box-shadow: 0 0 20px 6px rgba(250, 128, 114, 0.25), 0 0 30px 10px rgba(250, 128, 114, 0.2), 0 -6px 20px 6px rgba(220, 20, 60, 0.18), 0 6px 220px 15px rgba(220, 20, 60, 0.18);
}
/* Mobile Responsive Styles - Add to your existing CSS */


.nav_links, .auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Desktop nav links */
.nav_links li {
    list-style: none;
}
.nav_links li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.nav_links li a:hover:not(.donate) {
    color: var(--primary-accent);
    background-color: rgba(235, 74, 87, 0.1);
}
.nav_links a.active {
    color: var(--primary-accent);
}





















/* Auth Buttons */
.signup-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--bg-dark-3);
    border: 1px solid var(--border-color);
    color: var(--text-medium);
    transition: all 0.3s ease;
}
.signup-btn:hover {
    border-color: var(--primary-accent);
    color: var(--text-light);
}
.auth-buttons img.loginIcon {
    width: 20px;
    height: 20px;
}






/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1002;
}

.hamburger:hover {
    background: linear-gradient(145deg, #2a2a2a, #333333);
    box-shadow: 0 6px 18px rgba(235,74,87,0.3);
    transform: translateY(-1px);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #EB4A57, #FA8072);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    box-shadow: 0 1px 3px rgba(235,74,87,0.5);
}

/* Hamburger Animation States */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #0D0E12;
    z-index: 1004;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    
    /* ADD THESE LINES: */
    overflow-y: auto; /* Enable vertical scrolling */
    overflow-x: hidden; /* Prevent horizontal scroll */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.mobile-nav.active {
    transform: translateX(0); /* slide in */
}



/* Mobile Navigation Header */
.mobile-nav-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #13161B;
}

.mobile-nav-header .logo {
    font-size: 36px;
    font-weight: 800;
	background: none;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #EB4A57;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    background: rgba(235, 74, 87, 0.1);
    transform: rotate(90deg);
}

/* Mobile Navigation Links */
.mobile-nav-links {
    list-style: none;
    padding: 30px 0;
    margin: 0;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: #edf0f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(235,74,87,0.1), transparent);
    transition: left 0.4s ease;
}

.mobile-nav-links a:hover::before,
.mobile-nav-links a.active::before {
    left: 100%;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: #EB4A57;
    background: rgba(235, 74, 87, 0.05);
    border-left-color: #EB4A57;
    padding-left: 35px;
}






.loginIcon {
	
	width: 16px;
	
}





















/* Fix for the auth-buttons container */
.auth-buttons {
    background: transparent;
    border-radius: 8px;
    
}

.profile-dropdown {
    position: relative;
    display: inline-block;
    background: transparent; /* Change from 'none' to 'transparent' */
    border-radius: 8px;
}

.profile-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden; /* ← prevents square background from children */
}



.profile-dropdown-trigger:hover {
    background: #0d0e12;
    border-color: rgba(235, 74, 87, 0.3);
}

.profile-dropdown-trigger.active {
    border-color: rgba(235, 74, 87, 0.5);
    border-radius: 8px; /* ← Match the trigger's border-radius */
    
}

/* Profile Avatar */
.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(235, 74, 87, 0.3);
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Info */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.profile-name {
    color: #edf0f1;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.profile-address {
    color: #888;
    font-size: 12px;
    font-weight: 400;
}

/* Chevron Icon */
.profile-chevron {
    color: #888;
    font-size: 14px;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.profile-dropdown-trigger.active .profile-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
	padding: 20px;
	padding-top: 10px;
	padding-bottom: 0px;
}

.profile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Header */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
	padding-bottom: 10px;
    background: #0d0e12;
}

.dropdown-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(235, 74, 87, 0.4);
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-profile-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.dropdown-name {
    color: #edf0f1;
    font-size: 16px;
    font-weight: 600;
}

.dropdown-address {
    color: #888;
    font-size: 13px;
    font-weight: 400;
}

/* Atia Container with Timer */
.dropdown-atia-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}

.dropdown-atia-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.9));
    flex-shrink: 0;
    transform: translateY(-3px);
}

.atia-timer {
    font-size: 11px;
    color: #FFD700;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    letter-spacing: 0.5px;
}

/* Auto Atia Toggle */
.auto-atia-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0px;
	padding-top: 0px;
}

.auto-atia-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #edf0f1;
    font-size: 14px;
    font-weight: 500;
}

.auto-atia-icon {
    font-size: 16px;
    color: #EB4A57;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.toggle-switch.active {
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    border-color: #EB4A57;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch.active .toggle-slider {
    transform: translateX(24px);
}

/* Confirmation Modal */
.atia-confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10002;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.atia-confirmation-content {
	background: #13161B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px 24px;
    max-width: 400px;
    text-align: center;
    animation: slideUp 0.3s ease;
}



.atia-confirmation-title {
    color: #edf0f1;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.atia-confirmation-message {
    color: #888;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.atia-confirmation-content .note {
  margin-top: 14px;
  display: block;
  margin-top: 12px;       /* space above the note */
  font-size: 14px;        /* slightly smaller than main text */
  color: #aaa;            /* subtle, secondary color */
  font-style: italic;     /* makes it feel like fine print */
  line-height: 1.4;
  text-align: center;     /* centered under the buttons */
}



.atia-confirmation-buttons {
    display: flex;
    gap: 12px;
}

.atia-btn {
    flex: 1;
    padding: 14px 0px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.atia-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #edf0f1;
}

.atia-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.atia-btn-confirm {
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    color: white;
}

.atia-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 74, 87, 0.4);
}




/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0;
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0px;
    color: #bbb;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}




.dropdown-item:hover {
    color: #EB4A57;
    padding-left: 5px;
}

.dropdown-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: #888;
    transition: color 0.2s ease;
}

.dropdown-item:hover i {
    color: #EB4A57;
}

/* Tools Dropdown Styles */
.dropdown-item-expandable {
    position: relative;
    display: flex;
    flex-direction: column;
	
}

.dropdown-item-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #bbb;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropdown-item-trigger:hover {
    color: #EB4A57;
    padding-left: 5px;
}

.dropdown-item-trigger i:first-child {
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: #888;
    transition: color 0.2s ease;
}

.dropdown-item-trigger:hover i:first-child {
    color: #EB4A57;
}

.dropdown-item-chevron {
    margin-left: auto !important;
    font-size: 12px !important;
    transition: transform 0.3s ease;
    width: auto !important;
}

.dropdown-item-trigger.active .dropdown-item-chevron {
    transform: rotate(180deg);
}

.dropdown-item-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
	position: relative; /* <-- add this */
    left: -10px; /* moves 50px left */

}

.dropdown-item-submenu.active {
    max-height: 200px;
}

.dropdown-item-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;


}


.dropdown-item-sub:hover {
    color: #EB4A57;
    padding-left: 5px;
}

.dropdown-item-sub i {
    font-size: 16px;
    width: 18px;
    text-align: center;
    color: #777;
    transition: color 0.2s ease;
}

.dropdown-item-sub:hover i {
    color: #EB4A57;
}


/* Logout Item Special Styling */
.logout-item {
    color: #ff6b6b;
}

.logout-item:hover {
    color: #ff6b6b;
}

.logout-item i {
    color: #ff6b6b;
}

.logout-item:hover i {
    color: #ff6b6b;
}











/* Balance Card Styling */
.balance-card {
    margin: 0;
    padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
	background: #13161B;

}

.balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.balance-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-label span {
    color: #edf0f1;
    font-weight: 600;
}

.balance-token-icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 6px rgba(39, 117, 202, 0.5));
}

.balance-refresh {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #888;
}

.balance-refresh:hover {
    background: rgba(235, 74, 87, 0.1);
    border-color: rgba(235, 74, 87, 0.3);
    color: #EB4A57;
}

.balance-refresh i {
    font-size: 13px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Multi-balance display */
.balance-amount {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.balance-row {
	
    display: flex;
	width: 50%;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.balance-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(235, 74, 87, 0.2);
}

.balance-token-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.balance-token-info img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.balance-token-name {
    color: #888;
    font-size: 11px;
    font-weight: 500;
}

.balance-value {
    color: #edf0f1;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(235, 74, 87, 0.3);
}

.balance-value.usdc {
    color: #2775CA;
    text-shadow: 0 0 15px rgba(39, 117, 202, 0.4);
}

.balance-value.slp {
    color: #FF6B9D;
    text-shadow: 0 0 15px rgba(255, 107, 157, 0.4);
}

.balance-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.balance-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.balance-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.balance-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.balance-action-btn i {
    font-size: 14px;
    z-index: 1;
}

.balance-action-btn span {
    z-index: 1;
}

.deposit-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.deposit-btn:hover {
    background: linear-gradient(135deg, #27ae60, #229954);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

.convert-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.convert-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.withdraw-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    color: #edf0f1;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.withdraw-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}





/* Convert Modal Styles */
.convert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.convert-modal-content {
    background: #13161B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    animation: slideUp 0.3s ease;
}

.convert-header {
    text-align: center;
    margin-bottom: 24px;
}

.convert-header i {
    font-size: 48px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.convert-title {
    color: #edf0f1;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.convert-subtitle {
    color: #888;
    font-size: 14px;
}

.convert-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.convert-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.convert-section:hover {
    border-color: var(--primary-accent);}

.convert-section.active {
    border-color: var(--primary-accent);
}

.convert-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.convert-label span {
    color: #888;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.convert-balance {
    color: #666;
    font-size: 12px;
}

.convert-balance span {
    color: #edf0f1;
    font-weight: 600;
}

.convert-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.convert-token-select {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #0D0E12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.convert-token-select:hover {
    border-color: var(--primary-accent);
}

.convert-token-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.convert-token-info {
    flex: 1;
}

.convert-token-symbol {
    color: #edf0f1;
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.convert-token-name {
    color: #666;
    font-size: 12px;
}

.convert-amount-input {
	width: 120px;
    flex: 1;
    padding: 12px 16px;
    background: #0D0E12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #edf0f1;
    font-size: 18px;
    font-weight: 600;
    text-align: right;
    transition: all 0.3s ease;
}

.convert-amount-input:focus {
    outline: none;
    border-color: var(--primary-accent);
}

.convert-amount-input::placeholder {
    color: #555;
}

.convert-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    position: relative;
}

.convert-arrow::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.convert-arrow-icon {
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    z-index: 1;
    transition: all 0.3s ease;
}

.convert-arrow-icon:hover {
    transform: rotate(180deg) scale(1.1);
}

.convert-preview {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin: 8px 0;
}

.convert-preview-label {
    color: #888;
    font-size: 12px;
    margin-bottom: 8px;
}

.convert-preview-value {
    color: #3b82f6;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.convert-rate-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-top: 8px;
}

.convert-rate-label {
    color: #888;
    font-size: 13px;
}

.convert-rate-value {
    color: #edf0f1;
    font-size: 14px;
    font-weight: 600;
}

.convert-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.convert-submit-btn:hover {
    box-shadow: 0 4px 12px rgba(235, 74, 87, 0.4);
}

.convert-submit-btn:active {
    transform: translateY(0);
}

.convert-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.convert-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    margin-top: 16px;
}

.convert-warning i {
    color: #FFC107;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.convert-warning p {
    color: #edf0f1;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Max button for amount input */
.convert-max-btn {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 12px;
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}




/* Deposit Modal */
.deposit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.deposit-modal-content {
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    height: 600px;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    animation: slideUp 0.3s ease;
}

.deposit-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #888;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposit-close:hover {
    color: #EB4A57;
}

.deposit-title {
    color: #edf0f1;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

/* Deposit Tabs */
.deposit-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 8px;
}

.deposit-tab {
    flex: 1;
    padding: 6px 8px;
    background: #0d0e12;
    border: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.deposit-tab:hover {
    background: rgba(235, 74, 87, 0.1);
    color: #edf0f1;
}

.deposit-tab.active {
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    color: white;
}

.deposit-tab i {
    font-size: 18px;
}

/* Tab Content */
.deposit-tab-content {
    display: none;
}

.deposit-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Wallet Transfer Form */
.deposit-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: #edf0f1;
    font-size: 16px;
    font-weight: 600;
}

.token-select,
.amount-input {
    padding: 10px 12px;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #edf0f1;
    font-size: 18px;
    transition: all 0.3s ease;
}

.token-select:focus,
.amount-input:focus {
    outline: none;
    border-color: #EB4A57;
}

.token-select {
    cursor: pointer;
}

.amount-input::placeholder {
    color: #555;
}

.deposit-submit-btn {
    padding: 14px;
    background: linear-gradient(135deg, #EB4A57, #DC143C);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 9px;
}

.deposit-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(235, 74, 87, 0.4);
}

.deposit-submit-btn:active {
    transform: translateY(0);
}

/* Direct Transfer */
.direct-transfer-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.qr-section {
    display: flex;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.wallet-qr {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.wallet-address-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-address-section label {
    color: #edf0f1;
    font-size: 16px;
    font-weight: 600;
}

.address-copy-container {
    display: flex;
    gap: 9px;
}

.wallet-address-input {
    flex: 1;
    padding: 16px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #edf0f1;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    padding: 16px;
    background: rgba(235, 74, 87, 0.1);
    border: 1px solid rgba(235, 74, 87, 0.3);
    border-radius: 10px;
    color: #EB4A57;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: rgba(235, 74, 87, 0.2);
    transform: scale(1.05);
}

.copy-btn i {
    font-size: 18px;
}

.supported-tokens {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.supported-tokens h4 {
    color: #edf0f1;
    font-size: 16px;
    margin-bottom: 12px;
}

.token-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.token-chip {
    padding: 8px 16px;
    background: rgba(235, 74, 87, 0.1);
    border: 1px solid rgba(235, 74, 87, 0.3);
    border-radius: 20px;
    color: #EB4A57;
    font-size: 14px;
    font-weight: 600;
}

/* Warning Box */
.deposit-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
}

.deposit-warning.critical {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.deposit-warning i {
    color: #FFC107;
    font-size: 19px;
    flex-shrink: 0;
    margin-top: 3px;
}

.deposit-warning.critical i {
    color: #EF4444;
}

.deposit-warning p {
    color: #edf0f1;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.deposit-warning strong {
    color: #EF4444;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Custom Token Select */
.custom-select-wrapper {
    position: relative;
}

.custom-select-trigger {
    width: 100%;
    padding: 12px 16px;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #edf0f1;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover {
    border-color: #EB4A57;
    background: rgba(235, 74, 87, 0.05);
}

.custom-select-trigger.active {
    border-color: #EB4A57;
}

.selected-token {
    display: flex;
    align-items: center;
    gap: 12px;
}

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.custom-select-trigger i {
    color: #888;
    transition: transform 0.3s ease;
}

.custom-select-trigger.active i {
    transform: rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.custom-select-dropdown.active {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.custom-select-option {
    padding: 2px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-select-option:hover {
    background: rgba(235, 74, 87, 0.1);
}

.token-info {
    display: flex;
    flex-direction: column;
}

.token-name {
    color: #edf0f1;
    font-size: 16px;
    font-weight: 500;
}

.token-symbol {
    color: #888;
    font-size: 14px;
}

/* USD Value Display */
.usd-value {

    border-radius: 8px;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    transition: color 0.3s ease;
}

/* Simple Copy Button */
.address-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.simple-copy-btn {
    padding: 0.875rem 1.5rem;
    background: rgba(235, 74, 87, 0.1);
    border: 1px solid rgba(235, 74, 87, 0.3);
    border-radius: 10px;
    color: #EB4A57;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.simple-copy-btn:hover {
    background: rgba(235, 74, 87, 0.2);
    transform: translateY(-1px);
}

/* Token List */
.token-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.token-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.token-item:hover {
    background: rgba(235, 74, 87, 0.05);
    border-color: rgba(235, 74, 87, 0.2);
}

.token-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.token-item span {
    color: #edf0f1;
    font-size: 14px;
    font-weight: 600;
}

/* Transaction Confirmation Screen */
.transaction-confirmation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0d0e12;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.confirmation-content {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(235, 74, 87, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.confirmation-icon i {
    font-size: 2.5rem;
    color: #EB4A57;
}

.confirmation-content h3 {
    color: #edf0f1;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.confirmation-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.transaction-details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.detail-row.highlight {
    background: rgba(16, 185, 129, 0.1);
    margin: 0 -1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.detail-label {
    color: #888;
    font-size: 0.9rem;
}

.detail-value {
    color: #edf0f1;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-value.small {
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.detail-token-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.detail-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.confirmation-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(235, 74, 87, 0.1);
    border-top-color: #EB4A57;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.confirmation-loader p {
    color: #888;
    font-size: 0.9rem;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}



/* Generic Popup */
.popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.popup-box {
    background: #13161B;
    border-radius: 15px;
    padding: 2.5rem;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
	border: 1px solid rgba(255, 255, 255, 0.1);
}
.popup-message {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-light);
}
.popup-close-icon {
    position: absolute;
    top: 0px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-medium);
    cursor: pointer;
    transition: color 0.3s ease;
}
.popup-close-icon:hover {
    color: var(--primary-accent);
}

/* Login Methods */
.login-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-method-btn {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.login-method-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(235, 74, 87, 0.3);
    transform: translateY(-2px);
}

.wallet-btn:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.deposit-btn:hover {
    border-color: rgba(16, 185, 129, 0.5);
}

.login-method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    flex-shrink: 0;
}

.login-method-icon img {
    width: 32px;
    height: 32px;
}

.login-method-icon i {
    font-size: 24px;
    color: #10B981;
}

.login-method-content {
    flex: 1;
}

.login-method-content h4 {
    color: #edf0f1;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.login-method-content p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

.login-method-btn > i {
    color: #666;
    font-size: 18px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.login-divider span {
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Deposit Login Modal */
.deposit-login-overlay {
    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;
}

.deposit-login-modal {
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    animation: slideUp 0.3s ease;
}

.deposit-login-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #888;
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposit-login-close:hover {
    color: #EB4A57;
}

.deposit-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.deposit-login-header i {
    font-size: 48px;
    color: #10B981;
    margin-bottom: 1rem;
}

.deposit-login-header h2 {
    color: #edf0f1;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.deposit-login-header p {
    color: #888;
    font-size: 14px;
}



.deposit-login-qr {
    text-align: center;
    margin-bottom: 1rem;
}

.deposit-login-qr img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.qr-label {
    color: #888;
    font-size: 14px;
}









.deposit-login-address {
    margin-bottom: 1rem;
}

.address-label {
    color: #888;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.address-value {
    display: flex;
    gap: 0.5rem;
}

.address-value input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #edf0f1;
    font-size: 14px;
}

.address-value button {
    padding: 0.75rem 1rem;
    background: rgba(235, 74, 87, 0.1);
    border: 1px solid rgba(235, 74, 87, 0.3);
    border-radius: 8px;
    color: #EB4A57;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-value button:hover {
background: rgba(235, 74, 87, 0.2);
    transform: scale(1.05);
}




.low-label {
	
	color: #edf0f1;
    font-size: 16px;
    font-weight: 600;
	margin-bottom: 0.5rem;
	
}


.deposit-login-amount {
    margin-bottom: 2rem;
}

.amount-label {
    color: #EF4444;
    font-size: 14px;
    margin-top: 0.5rem;
}

.amount-value {
    display: flex;
    gap: 0.5rem;
}

.amount-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.amount-value .amount-icon {
    position: absolute;
    left: 0.75rem;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 1;
}

.amount-value input {
    flex: 1;
    padding: 0.75rem;
	padding-left: 2.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #edf0f1;
    font-size: 14px;
}

.amount-value button {
    padding: 0.75rem 1rem;
    background: rgba(235, 74, 87, 0.1);
    border: 1px solid rgba(235, 74, 87, 0.3);
    border-radius: 8px;
    color: #EB4A57;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.amount-value button:hover {
    background: rgba(235, 74, 87, 0.2);
    transform: scale(1.05);
}











.deposit-login-status {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.deposit-login-status .status-icon {
    margin-bottom: 1rem;
}

.deposit-login-status .status-icon i {
    font-size: 48px;
    color: #FFC107;
    animation: pulse 2s infinite;
}

.status-text {
    color: #edf0f1;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.status-timer {
    color: #10B981;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.deposit-login-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.deposit-login-warning i {
    color: #FFC107;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.deposit-login-warning strong {
    color: #edf0f1;
    display: block;
    margin-bottom: 0.5rem;
}

.deposit-login-warning ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #bbb;
}

.deposit-login-warning li {
    margin-bottom: 0.25rem;
    font-size: 14px;
}


footer {
  background: #13161B;
  padding: 40px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #EB4A57, #FA8072);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.footer-brand p {
  color: #888;
  font-size: 0.9rem;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  color: #edf0f1;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: 'Changa', sans-serif;
}

.footer-column a {
  display: block;
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #EB4A57;
}

.creator-text {
  color: #999;
  font-size: 0.9rem;
  margin: 0;
}

.creator {
  color: #4cff88;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #7DA6FF;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  background: rgba(125, 166, 255, 0.1);
  color: #a8c5ff;
  transform: translateY(-3px);
}

/* Mobile responsive */
@media (max-width: 768px) {
  footer {
    padding: 2rem 1.5rem 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-column {
    text-align: center;
  }
}


























.top-bar {

  padding: 10px;
  padding-bottom: 0;

}

.game-select {
  position: relative;
  max-width: 280px;
}

.selected-game {
  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);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

.selected-game:hover {
  background: #0d0e12;
  transform: translateY(-1px);
  border-color: rgba(235, 74, 87, 0.3);
}

.selected-game img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s ease;
}

.selected-game:hover img {
  border-color: #EB4A57;
}

.selected-game span {
  font-weight: 600;
  color: #edf0f1;
  font-size: 15px;
  flex: 1;
  font-family: "Changa", sans-serif;
}

.selected-game::after {
  content: '▼';
  color: #888;
  font-size: 12px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.selected-game:hover::after {
  color: #EB4A57;
  transform: translateY(2px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0d0e12;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1000;
}

.game-select:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.game-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;
  overflow: hidden;
}



.game-option:hover::before {
  left: 100%;
}

.game-option:last-child {
  border-bottom: none;
}

.game-option:hover {
  background: rgba(235, 74, 87, 0.05);
  padding-left: 24px;
  border-left: 4px solid #EB4A57;
}

.game-option img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.game-option:hover img {
}

.game-option span {
  color: #bbb;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
  font-family: "Changa", sans-serif;
}

.game-option:hover span {
  color: #EB4A57;
}

/* Active state */
.game-option.active {
  background: linear-gradient(135deg, #EB4A57, #DC143C);
  border-left: 4px solid transparent;
}

.game-option.active span {
  color: #ffffff;
}

.game-option.active img {
  border-color: #ffffff;
}

/* Smooth animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-select:hover .dropdown {
  animation: slideDown 0.3s ease;
}























.container {
	padding-left:1.4vw;  /* Use padding instead of margin */
    padding-right:1.4vw;  /* Use padding instead of margin */
	padding-top:1.4vw;
	padding-bottom:1.4vw;
    display: flex;
    gap: 1.4vw;

}

.input-container {
    position: relative;
    border-radius: 8px;
    height: fit-content;  
    min-width: 25vw;
    max-width: 29vw;
    background: #13161b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 1.56vw;
    padding-top: 1.09vw;
    gap: 0vw;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
	color: #edf0f1;
}



/* New container for the online time slider */
.online-time-container {
    display: flex; /* This is toggled by JS, but 'flex' is the visible state */
    flex-direction: column;
    gap: 3px;
    transition: all 0.3s ease;
}

/* Style for the "Last seen within:" subtitle */
.section-subtitle {
    color: #bbb; /* Using --text-medium variable */
    font-size: 0.8rem;
    font-weight: 500;
}

/* Update online indicator for text instead of emoji */
.online-indicator {
    font-size: 12px;
    margin-left: 8px;
    color: #4cff88; /* Using --secondary-accent variable */
    font-style: italic;
    font-weight: 500;
    opacity: 0.9;
    /* The animation is removed as it's less suitable for text */
}

/* Keep the highlight on the player row for active players */
.player-row:has(.online-indicator) {
    border-left: 3px solid #4cff88; /* Match indicator color */
    box-shadow: 0 2px 6px rgba(76, 255, 136, 0.1);
}

.player-row:has(.online-indicator)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(76, 255, 136, 0.05) 0%, /* Match indicator color with low opacity */
        transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}


/* Enhanced player row for online status */
.player-row {
    position: relative;
}

/* Enhanced player row for online status (Green Indicator) */
.player-row:has(.online-indicator) {
    border-left: 3px solid #4cff88; /* This is the new green color */
    box-shadow: 0 2px 6px rgba(76, 255, 136, 0.1);
}

.player-row:has(.online-indicator)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(76, 255, 136, 0.05) 0%, /* Green gradient */
        transparent 50%);
    pointer-events: none;
    border-radius: inherit;
}


/* Bar wrapper for each team */
.bar-wrapper {
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    background: #13161B;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4),
                inset 0 1px 0 rgba(255,255,255,0.05);
    border: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.bar-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(235,74,87,0.1), transparent);
    transition: left 0.5s ease;
}

.bar-wrapper:hover::before {
    left: 100%;
}

.bar-wrapper:hover {
    background: linear-gradient(145deg, #2a2a2a, #333333);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.6),
                0 3px 8px rgba(235,74,87,0.2);
}

/* Selected bar */
.bar-wrapper.selected {
    outline: 2px solid #EB4A57;
    background: linear-gradient(145deg, #2a2a2a, #333333);
    box-shadow: 0 6px 18px rgba(235,74,87,0.4),
                0 3px 8px rgba(0,0,0,0.6);
    transform: scale(1.01);
}

/* Labels above the bar */
.bar-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #edf0f1;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.team-name {
    font-weight: 600;
    letter-spacing: 0.4px;
}

.percentage {
    color: #edf0f1;

    font-weight: 600;
    text-shadow: 0 0 6px rgba(235,74,87,0.3);
}

/* Bar background */
.bar-bg {
    width: 100%;
    height: 0.625vw;
    background: linear-gradient(90deg, #111, #0a0a0a);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.6),
                inset 0 1px 2px rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

/* Bar fill (animated) */
.bar-fill {
    height: 100%;
    width: 0; 
    background: linear-gradient(90deg, #EB4A57, #FA8072, #FF6B6B);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(235,74,87,0.6),
                inset 0 1px 0 rgba(255,255,255,0.2);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}








/* Team Distribution Header */
.team-dist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    margin-top: 12px;
}

.chart-toggle-select {
    padding: 6px 12px;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #edf0f1;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}



.chart-toggle-select:focus {
    border: 1px solid #EB4A57; /* Red border on click */
}

.chart-container {
    width: 100%;
    position: relative;
}

#pie-chart {
    max-height: 400px;
    margin: 0 auto;
    display: block;
}

/* Tooltip styling */
.chartjs-tooltip {
    opacity: 1;
    position: absolute;
    background: #13161B;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #edf0f1;
    padding: 8px 12px;
    pointer-events: none;
    transform: translate(-50%, -120%);
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    z-index: 1000;
}




















/* Search input */
.filter-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
    border: none;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #edf0f1;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.4px;
	margin: 0px 6px;

}

.filter-input:focus {
    outline: none;
    border: 1px solid #EB4A57; /* Red border on click */
    
    background: #0d0e12; /* Keep same background */
    color: #fff;
}


.filter-input::placeholder {
    color: rgba(237, 240, 241, 0.5);
    font-weight: 400;
}

/* Headings */
.team-dist-title,
.section-title {
    color: #edf0f1;
    font-weight: 600;
	margin-top: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.8px;
    text-transform: uppercase;
	

}

/* Only add borders to specific sections */
.input-container > .search-filters-section,
.input-container > .range-container,
.input-container > .activity-filters-section {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Remove border from the last section (team distribution should not have border above it) */
.input-container > .activity-filters-section:last-of-type {
    border-bottom: none;
}


/* Search filters section wrapper */
.search-filters-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Activity filters section wrapper */
.activity-filters-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Make sure online time container is part of rank range section */
.range-container .online-time-container {
    margin-top: 8px;
    padding-top: 8px;
}

/* Remove the bottom border from range-container since online slider is now inside it */
.input-container > .range-container:not(:last-child) {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Section titles inside wrappers */
.search-filters-section .section-title,
.activity-filters-section .section-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
/* Filter section wrapper */
.filter-section {
    display: flex;
    flex-direction: column;

}

/* Center button text with flex */
.filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 8px;
    background: #282C34;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #edf0f1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    width: 100%;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.4px;
	margin: 0px 6px;
}



.filter-button:hover {
    transform: translateY(-1px);
    color: #fff;
}

.filter-button.selected {
	border: 1px solid #EB4A57; /* Red border on click */
    background: linear-gradient(135deg, #EB4A57, #FA8072);
    color: #fff;
    transform: translateY(-0.5px);
}





/* Metamorph filter icon in button */
.metamorph-filter-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Metamorph button specific */
.metamorph-filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}





/* Range Slider Container */
.range-container {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.range-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 400;
    color: #edf0f1;
	margin: 0px 6px;
}

.range-values span {
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1px 2px;
    border-radius: 4px;
    color: #fff;
    min-width: 48px;
    text-align: center;
    font-size: 12px;
}

/* Range Slider */
.range-slider {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
	margin: 0px 6px;
}

.range-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #111, #0a0a0a);
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.6),
                inset 0 1px 2px rgba(255,255,255,0.03);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.range-fill {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, #EB4A57, #FA8072, #FF6B6B);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(235,74,87,0.6),
                inset 0 1px 0 rgba(255,255,255,0.2);
    transition: all 0.01s ease;
}

.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    pointer-events: none;
    outline: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EB4A57, #FA8072);
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(235,74,87,0.6),
                0 2px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(235,74,87,0.8),
                0 3px 6px rgba(0,0,0,0.6);
}

.range-slider input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.05);
    background: linear-gradient(135deg, #FA8072, #FF6B6B);
}

.range-slider input[type="range"]::-moz-range-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #EB4A57, #FA8072);
    border: 2px solid #fff;
    box-shadow: 0 3px 8px rgba(235,74,87,0.6),
                0 2px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    border: none;
}

.range-slider input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 12px rgba(235,74,87,0.8),
                0 3px 6px rgba(0,0,0,0.6);
}

.range-slider input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
}

/* No teams message */
.no-teams {
    color: rgba(237, 240, 241, 0.6);
    font-style: italic;
    text-align: center;
    padding: 14px;
    font-size: 0.9rem;
    background: #13161B;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Online indicator styles */
.online-indicator {
    font-size: 12px;
    margin-left: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}


.rune-same-team-btn {
    margin-top: 8px;
    font-size: 0.9rem;
    padding: 10px 12px;
}


/* Rune Filter Container */
.rune-filter-container {
    display: flex;
    flex-direction: column;

}

.rune-search-wrapper {
    position: relative;
}

.rune-search-input {
    width: 100%;
}

.rune-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #0D0E12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 4px;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}
/* Rune suggestion groups */
.rune-suggestion-group {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.rune-suggestion-group:last-child {
    border-bottom: none;
}

.rune-group-name {
    color: #edf0f1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Changa', sans-serif;
}

.rune-levels {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rune-level-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.rune-level-option:hover {
    background: rgba(235, 74, 87, 0.1);
    border-color: rgba(235, 74, 87, 0.3);
    transform: translateY(-2px);
}

.rune-level-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.rune-level-label {
    color: #bbb;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
}
/* Add to your existing CSS */
.rune-suggestion-img,
.selected-rune-img {
    cursor: pointer;
}

.rune-suggestion-item {
    position: relative;
}

.rune-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rune-suggestion-item:hover {
    background: linear-gradient(145deg, #2a2a2a, #333333);
    transform: translateX(2px);
}

.rune-suggestion-item:last-child {
    border-bottom: none;
}

.rune-suggestion-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
}

.rune-suggestion-name {
    color: #edf0f1;
    font-size: 0.9rem;
    font-weight: 500;
}



.no-rune-matches {
    padding: 12px;
    text-align: center;
    color: rgba(237, 240, 241, 0.6);
    font-style: italic;
    font-size: 0.85rem;
}

.selected-runes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-runes:empty {
    display: none;
}

.selected-rune-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #EB4A57, #FA8072);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(235, 74, 87, 0.4);
    transition: all 0.3s ease;
}

.selected-rune-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(235, 74, 87, 0.6);
}

.selected-rune-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.selected-rune-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.remove-rune-btn {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    margin-left: 2px;
}

.remove-rune-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}



/* Body Parts Filter Styles */
.bodyparts-filter-container {
    display: flex;
    flex-direction: column;
    gap: 8px;

}

.bodyparts-search-wrapper {
    position: relative;
}

.bodyparts-search-input {
    width: 100%;
}

.bodyparts-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #0D0E12;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 4px;
    z-index: 100;
    display: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.bodypart-suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bodypart-suggestion-item:hover {
    background: linear-gradient(145deg, #2a2a2a, #333333);
    transform: translateX(2px);
}

.bodypart-suggestion-item:last-child {
    border-bottom: none;
}

.bodypart-suggestion-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
}

.bodypart-suggestion-name {
    color: #edf0f1;
    font-size: 0.9rem;
    font-weight: 500;
}

.no-bodypart-matches {
    padding: 12px;
    text-align: center;
    color: rgba(237, 240, 241, 0.6);
    font-style: italic;
    font-size: 0.85rem;
}

.selected-bodyparts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-bodyparts:empty {
    display: none;
}

.selected-bodypart-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #EB4A57, #FA8072);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(235, 74, 87, 0.4);
    transition: all 0.3s ease;
}

.selected-bodypart-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(235, 74, 87, 0.6);
}

.selected-bodypart-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.selected-bodypart-name {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.remove-bodypart-btn {
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s ease;
    margin-left: 2px;
}

.remove-bodypart-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.bodyparts-same-team-btn {
    margin-top: 8px;
    font-size: 0.9rem;
    padding: 10px 12px;
}





.metamorph-filter-container {
    display: flex;
    flex-direction: column;
    
}

.metamorph-filter-btn {
    width: 100%;
}

.metamorph-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.metamorph-filter-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    object-fit: contain;
}

.metamorph-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #EB4A57;
    border-radius: 4px;
}

.metamorph-label-text {
    color: #edf0f1;
    font-size: 0.95rem;
    font-weight: 500;
}

.metamorph-checkbox:checked + .metamorph-label-text {
    color: #EB4A57;
    font-weight: 600;
}




.team-goo .bar-fill {
    background: linear-gradient(90deg, #0E2401, #2F5A00, #4C8B0A);
}

.team-goo {
    background: linear-gradient(145deg, 
        rgba(5, 20, 0, 0.7),     /* murky dark green */
        rgba(20, 50, 0, 0.7)     /* slimy olive midtone */
    ) !important;
}

.team-goo.selected {
    outline: 2px solid #0E2401;
}












.team-confused .bar-fill {
    background: linear-gradient(90deg, #016F95, #009AC5, #33CFFF);
}

.team-confused {
    background: linear-gradient(145deg, 
        rgba(0, 40, 60, 0.7),    /* dark blue shadow for depth */
        rgba(0, 70, 100, 0.7)    /* soft teal midtone */
    ) !important;
}

.team-confused.selected {
    outline: 2px solid #016F95;
}






.team-spiky .bar-fill {
    background: linear-gradient(90deg, #F8BBFF, #E891FF, #D070FF);
}

.team-spiky {
    background: linear-gradient(145deg, 
        rgba(90, 40, 100, 0.7),    /* deep violet shadow */
        rgba(130, 60, 150, 0.7)    /* vibrant purple tone */
    ) !important;
}

.team-spiky.selected {
    outline: 2px solid #F8BBFF;
}



.team-sleep .bar-fill {
    background: linear-gradient(90deg, #4CE699, #7AF0B5, #A8FCD0);
}

.team-sleep {
    background: linear-gradient(145deg, 
        rgba(30, 70, 50, 0.7),    /* calm forest-green undertone */
        rgba(40, 100, 70, 0.7)    /* gentle minty blend */
    ) !important;
}

.team-sleep.selected {
    outline: 2px solid #4CE699;
}




.team-anemone .bar-fill {
    background: linear-gradient(90deg, #00F1D2, #33F7E0, #80FFF1);
}

.team-anemone {
    background: linear-gradient(145deg, 
        rgba(0, 80, 70, 0.7),    /* deep teal shadow */
        rgba(0, 130, 115, 0.7)   /* bright aqua midtone */
    ) !important;
}

.team-anemone.selected {
    outline: 2px solid #00F1D2;
}










.team-topaz .bar-fill {
    background: linear-gradient(90deg, #F45607, #FF6B1A, #FFA066);
}

.team-topaz {
    background: linear-gradient(145deg, 
        rgba(85, 30, 0, 0.7),    /* deep burnt orange base */
        rgba(130, 45, 0, 0.7)    /* slightly lighter amber tone */
    ) !important;
}

.team-topaz.selected {
    outline: 2px solid #F45607;
}



.team-leafy .bar-fill {
    background: linear-gradient(90deg, #76BC00, #8DD600, #A6E84A);
}

.team-leafy {
    background: linear-gradient(145deg, 
        rgba(46, 77, 0, 0.7),    /* deep earthy green */
        rgba(66, 107, 0, 0.7)    /* slightly brighter leaf tone */
    ) !important;
}

.team-leafy.selected {
    outline: 2px solid #76BC00;
}








.team-glorious .bar-fill {
    background: linear-gradient(90deg, #F9A700, #FFB733, #FFD280);
}

.team-glorious {
    background: linear-gradient(145deg, 
        rgba(102, 70, 0, 0.7),    /* deep warm gold tone */
        rgba(153, 102, 0, 0.7)    /* slightly brighter golden hue */
    ) !important;
}

.team-glorious.selected {
    outline: 2px solid #F9A700;
}














.team-shield .bar-fill {
    background: linear-gradient(90deg, #99B5F0, #7FA2EE, #B0C8FF);
}

.team-shield {
    background: linear-gradient(145deg, 
        rgba(60, 70, 110, 0.7),   /* deep muted blue-gray */
        rgba(80, 95, 140, 0.7)    /* slightly lighter defensive tone */
    ) !important;
}

.team-shield.selected {
    outline: 2px solid #99B5F0;
}













.team-rage .bar-fill {
    background: linear-gradient(90deg, #FFD500, #FFB300, #FFEA00);
}

.team-rage {
    background: linear-gradient(145deg, 
        rgba(102, 85, 0, 0.7),    /* deep muted gold tone */
        rgba(153, 128, 0, 0.7)    /* slightly brighter variant */
    ) !important;
}

.team-rage.selected {
    outline: 2px solid #FFD500;
}











/* Team-specific bar fill colors */
.team-aquatic .bar-fill {
    background: linear-gradient(90deg, #00CED1, #20B2AA, #48CAE4);

}

.team-aquatic {
    background: linear-gradient(145deg, 
        rgba(26, 63, 63, 0.7),    /* was #1a3f3f */
        rgba(38, 102, 102, 0.7)   /* was #266666 */
    ) !important;

}
.team-aquatic.selected {
    outline: 2px solid #00CED1;

}









.team-bug .bar-fill {
    background: linear-gradient(90deg, #AF153E, #AF153E, #AF153E);

}

.team-bug {
    background: linear-gradient(145deg, 
        rgba(175, 21, 62, 0.2),
        rgba(175, 21, 62, 0.3)
    ) !important;

}

.team-bug.selected {
    outline: 2px solid #AF153E;

}











.team-poison .bar-fill {
    background: linear-gradient(90deg, #8B008B, #9932CC, #BA55D3);

}

.team-poison {
    background: linear-gradient(145deg, 
        rgba(63, 26, 63, 0.3),    /* was #3f1a3f */
        rgba(102, 38, 102, 0.3)   /* was #662666 */
    ) !important;

}

.team-poison.selected {
    outline: 2px solid #8B008B;
    
}











.team-bird .bar-fill {
    background: linear-gradient(90deg, #FF69B4, #FF69B4, #FF69B4);
}

.team-bird {
    background: linear-gradient(145deg, rgba(255, 105, 180, 0.2), rgba(255, 105, 180, 0.3)) !important;
}

.team-bird.selected {
    outline: 2px solid #FF69B4;
}






.team-leech .bar-fill {
    background: linear-gradient(90deg, #750900, #750900, #750900);
}

.team-leech {
    background: linear-gradient(145deg, rgba(117, 9, 0, 0.2), rgba(117, 9, 0, 0.3)) !important;
}

.team-leech.selected {
    outline: 2px solid #750900;
}



.team-bleed .bar-fill {
    background: linear-gradient(90deg, #DC9325, #DC9325, #DC9325);
}

.team-bleed {
    background: linear-gradient(145deg, rgba(220, 147, 37, 0.2), rgba(220, 147, 37, 0.3)) !important;
}

.team-bleed.selected {
    outline: 2px solid #DC9325;

}




.team-heal .bar-fill {
    background: linear-gradient(90deg, #A4E006, #A4E006, #A4E006);

}

.team-heal {
    background: linear-gradient(145deg, rgba(164, 224, 6, 0.2), rgba(164, 224, 6, 0.3)) !important;

}

.team-heal.selected {
    outline: 2px solid #A4E006;

}




.team-cocoon .bar-fill {
    background: linear-gradient(90deg, #FAF2D9, #FAF2D9, #FAF2D9);

}

.team-cocoon {
    background: linear-gradient(145deg, rgba(250, 242, 217, 0.2), rgba(250, 242, 217, 0.3)) !important;
 
}

.team-cocoon.selected {
    outline: 2px solid #FAF2D9;
  
}





.team-soul .bar-fill {
    background: linear-gradient(90deg, #063340, #063340, #063340);
  
}

.team-soul {
    background: linear-gradient(145deg, rgba(6, 51, 64, 0.2), rgba(6, 51, 64, 0.3)) !important;
 
}

.team-soul.selected {
    outline: 2px solid #063340;
  
}




.team-owl .bar-fill {
    background: linear-gradient(90deg, #D67867, #D67867, #D67867);
  
}

.team-owl {
    background: linear-gradient(145deg, rgba(214, 120, 103, 0.2), rgba(214, 120, 103, 0.3)) !important;
 
}

.team-owl.selected {
    outline: 2px solid #D67867;
  
}





.team-navaga .bar-fill {
    background: linear-gradient(90deg, #76B8B4, #76B8B4, #76B8B4);
   
}

.team-navaga {
    background: linear-gradient(145deg, rgba(118, 184, 180, 0.2), rgba(118, 184, 180, 0.3)) !important;
   
}

.team-navaga.selected {
    outline: 2px solid #76B8B4;
   
}





.team-sandal .bar-fill {
    background: linear-gradient(90deg, #FF6E0D, #FF6E0D, #FF6E0D);

}

.team-sandal {
    background: linear-gradient(145deg, rgba(255, 110, 13, 0.2), rgba(255, 110, 13, 0.3)) !important;
 
}

.team-sandal.selected {
    outline: 2px solid #FF6E0D;
  
}





.team-bubble .bar-fill {
    background: linear-gradient(90deg, #76B8B4, #76B8B4, #76B8B4);
  
}

.team-bubble {
    background: linear-gradient(145deg, rgba(118, 184, 180, 0.2), rgba(118, 184, 180, 0.3)) !important;
   
}

.team-bubble.selected {
    outline: 2px solid #76B8B4;
   
}





.team-bubble .bar-fill {
    background: linear-gradient(90deg, #1A75FF, #1A75FF, #1A75FF);
   
}

.team-bubble {
    background: linear-gradient(145deg, rgba(26, 117, 255, 0.2), rgba(26, 117, 255, 0.3)) !important;
    
}

.team-bubble.selected {
    outline: 2px solid #1A75FF;
    
}









.team-default .bar-fill {
    background: linear-gradient(90deg, #EB4A57, #FA8072, #FF6B6B);
    
}




















#large-container {
    flex-grow: 1;  /* Allow it to take up available space */
    min-height: 1250px;    
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
    height: auto;
    background: #13161b;
    display: flex;
    flex-direction: column; /* Stack header and content vertically */
    margin-bottom: 20px;
    padding-top: 5px;
}

#headerC {
    height: 61px;    
    width: 100%;     
    flex-shrink: 0;  
    border-top-left-radius: 15px;
    border-top-right-radius: 15px; 
	font-size: 0.9rem;
    display: flex;
}

#text1 {
    border-top-left-radius: 15px;
    width: 12.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #edf0f1;
    font-weight: 700;
    text-align: left;
}

#text2 {
    width: 24%;
    display: flex;
    align-items: center;
    color: #edf0f1;
    font-weight: 700;
    text-align: left;
}

#text3 {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #edf0f1;
    font-weight: 700;
}

#text4 {
    border-top-right-radius: 15px; 
    width: 13.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #edf0f1;
    font-weight: 700;
    text-align: left;
}

.player-link {
    color: inherit;
    text-decoration: none;
    white-space: normal;     
    word-wrap: break-word;   
    overflow-wrap: anywhere; 
}

#content {
    flex-grow: 1;
    width: 100%;
    overflow: hidden;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    background: #13161b;
    display: block;
}

.player-row {
    display: flex;
    align-items: center;         
    height: 120px;
    border-bottom: 1px solid #383838;
    color: #9AC0FF;
}

.player-rank {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 12.5%;
    height: 100%;
    color: #b0b0b0;
    font-size: 0.8rem; /* leave rem */
    font-weight: 500;
    text-align: left;

}

.player-id {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 30%;
    height: 100%;
    color: #7DA6FF;
    font-size: 0.8rem; /* leave rem */
    font-weight: 400;
    text-align: left;
    padding: 0;
    margin: 0;
}

.player-vstar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2px;
    gap: 4px;
}

.vstar-icon {
    width: 16px;
    height: 16px;
}

.player-team {
    width: 44%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px;
    gap: 1px;
}

.player-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 13.5%;
}

.axs-icon {
    width: 16px;
    height: 16px;
}

.axs-amount {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 0.85rem; /* leave rem */
}

.usd-amount {
    font-size: 12px;
    color: #888888;
}

.pagination-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #13161B;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    z-index: 100;
}

.pagination-container {
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.pagination-container.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#pagination-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

#pagination {
    display: flex;
    gap: 6px;
}

#pagination button {
    background: transparent;
    border: 1px solid #333;
    color: #ddd;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#pagination button:hover:not(:disabled) {
    background: #eb4a57;
    color: #fff;
}

#pagination button.active {
    background: #eb4a57;
    color: #fff;
    font-weight: bold;
}

#pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#pagination span {
    color: #888;
    padding: 6px 8px;
}

.logs-per-page {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ccc;
}

.logs-per-page select {
    background: #0D0E12;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 4px 6px;
}

.pagination-ellipsis {
    color: #888;
    padding: 6px 8px;
    display: inline-flex;
    align-items: center;
}

.axie-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.axie1-container {
    position: relative;
    transform: translate(-130px, 16px);
    z-index: 5;
}

.axie2-container {
    position: relative;
    transform: translate(-201px, 16px);
    z-index: 5;
}

.axie3-container {
    position: relative;
    transform: translate(-273px, 16px);
    z-index: 5;
}

.axie-wrapper {
    position: relative;
    display: block;
    width: max-content;
    overflow: visible;
}

.axie-img {
    width: 247px;
    height: auto;
    object-fit: contain;
    display: block;
    z-index: 1;
}

.rune-overlay {
    position: absolute;
    top: 30px;
    left: 30px;                
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    cursor: pointer;
    z-index: 10;
    background: none !important;
    padding-bottom: 12px;
}

.rune-stars {
    position: absolute;
    bottom: 17px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    padding: 1px 3px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.rune-stars .star {
    font-size: 9px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
    line-height: 1;
}

.rune-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.star-common {
    color: #9ca3af;
}

.star-rare {
    color: #3b82f6;
}

.star-epic {
    color: #8b5cf6;
}

.star-mystic {
    color: #f59e0b;
}

.rune-overlay:hover {
    transform: scale(1.1);
}

.rune-overlay[data-rarity="common"] {
    border-color: #9ca3af;
    background: radial-gradient(circle, rgba(156, 163, 175, 0.2), rgba(0, 0, 0, 0.8));
}

.rune-overlay[data-rarity="rare"] {
    border-color: #3b82f6;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), rgba(0, 0, 0, 0.8));
}

.rune-overlay[data-rarity="epic"] {
    border-color: #8b5cf6;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), rgba(0, 0, 0, 0.8));
}

.rune-overlay[data-rarity="mystic"] {
    border-color: #f59e0b;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), rgba(0, 0, 0, 0.8));
}








/* Popup Container */
.rune-charm-popup {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    width: 310px; /* fixed width or can use 24.22vw if you want scaling */
    border-radius: 8px;
    background: transparent;
}

.rune-charm-popup.visible {
    opacity: 1;
    animation: popupFadeIn 0.2s ease;
}

.popup-content {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Full-size background image */
.popup-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

.popup-base-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
}

/* Overlay images - fixed size */
.popup-class-image {
    position: absolute;
    top: 4.5%;
    left: 19%;
    width: 40px; /* fixed size */
    height: 40px;
    object-fit: contain;
    z-index: 2;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.popup-item-image {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; /* fixed size */
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
    background: transparent;
    z-index: 2;
}

/* Overlay text - fixed size */
.popup-name,
.popup-description,
.popup-rarity {
    position: absolute;
    width: 65%;
    left: 17.5%;
    text-align: center;
    z-index: 3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-family: "Changa", sans-serif;
    background: transparent;
}

.popup-rarity {
    top: 38.5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 6px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    line-height: 1;
    width: fit-content;
    max-width: none;
}

.popup-rarity .star {
    font-size: 16px; /* fixed size */
    line-height: 1;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
}

/* Rarity colors */
.star-common {
    color: #888888;
    text-shadow: 0 0 6px #888888;
}
.star-rare {
    color: #32CD32;
    text-shadow: 0 0 6px #32CD32;
}
.star-epic {
    color: #1E90FF;
    text-shadow: 0 0 6px #1E90FF;
}
.star-mystic {
    color: #BA55D3;
    text-shadow: 0 0 6px #BA55D3;
}

.popup-name {
    bottom: 32%;
    font-size: 17px; /* fixed */
    font-weight: bold;
    color: white;
}

.popup-description {
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px; /* fixed */
    color: #ccc;
    line-height: 1.3;
    width: 65%;
    max-height: none;
    overflow: visible;
    position: absolute;
    text-align: center;
}




/* Rarity backgrounds */
.popup-rarity.mystic {
    background: linear-gradient(135deg, #BA55D3, #9370DB);
    color: white;
}

.popup-rarity.epic {
    background: linear-gradient(135deg, #1E90FF, #4169E1);
    color: white;
}

.popup-rarity.rare {
    background: linear-gradient(135deg, #32CD32, #228B22);
    color: white;
}

.popup-rarity.common {
    background: linear-gradient(135deg, #888888, #666666);
    color: white;
}

/* Hover effect */
.battle-rune-img[data-type="rune"],
.runeIMG[data-type="rune"],
.partIcon[data-type="charm"] {
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.battle-rune-img[data-type="rune"]:hover,
.runeIMG[data-type="rune"]:hover,
.partIcon[data-type="charm"]:hover {}






.cardPopup {
    display: none; /* element is hidden and takes up no space */
}





@media screen and (max-width: 1024px) {
	
    .nav_links {
        display: none;
		
    }


    .bar-wrapper {
        padding: 6px 10px;
        border-radius: 14px;
        margin-bottom: 10px;
    }

    /* Labels above the bar */
    .bar-labels {
        font-size: 1.05rem;
        margin-bottom: 2px;
    }


    .percentage {
        font-size: 1.05rem;
        text-shadow: 0 0 8px rgba(235,74,87,0.4);
    }


    .team-dist-title,
    .section-title {
        font-size: 1.05rem;

    }
	
	
	.player-rank {
       
        font-size: 1.3vw;
    }

    .player-id {
        
        font-size: 1.3vw;
    }


	
    .axs-icon {
        width: 1.6vw;
        height: 1.6vw;
    }
    
    .axs-amount {
        gap: 4px; /* space between icon and text */
        font-weight: 500;
    	font-size: 1.3vw;
    }
    
    .usd-amount {
        font-size: 1.15vw; /* smaller text */
        
    }
	
    .vstar-icon {
        width: 1.3vw;
        height: 1.3vw;
    }
    
    .vstar-count {
        font-size: 1.3vw;
        color: #fff;                 /* or your leaderboard text color */
    }



    /* Rune overlay mobile adjustments */
    .rune-img {
        width: 2.75vw;
        height: 2.75vw;
    }

    .rune-overlay {


    }
	
    
    /* Rune stars display in leaderboard */
    .rune-stars {

 

    }
    
    
    .rune-stars .star {
        font-size: 1vw;
       
    }
 
    
    .axie1-container{
        transform: translate(-8vw, 1.25vw); /* move left 100px, down 24px */
        
    }
    
    .axie2-container{
        transform: translate(-15.5vw, 1.25vw); /* move left 200px, down 24px */
       
    }
    
    .axie3-container{
        transform: translate(-23vw, 1.25vw); /* move left 280px, down 24px */
        
    }
	
    .filter-button {
        font-size: 1.1rem;


    }
	
    /* Search input */
    .filter-input {
        font-size: 1.07rem;

    }

}

/* Media Queries for Mobile */
@media screen and (max-width: 768px) {

    .welcome-title {
		
		font-size: 24px;
		
	}

    .bonus-amount { 
		
		font-size: 20px;
		
	}

    /*Profile Dropdown stuff*/
	
	.deposit-title {
		
		font-size: 16px;
		
	}

    .form-group label{
		
		
		font-size: 14px;
		
	}
	
    .custom-select-trigger {

        font-size: 14px;

    }
	
	.token-select, .amount-input{

        font-size: 14px;

    }
    .deposit-submit-btn {
		
        font-size: 16px;
		
	}




    .convert-title {
		
		font-size: 16px;
		
	}
	
	.convert-amount-input{
		
		width: 100px;
		
	}

    .convert-token-symbol {
		
        font-size: 14px;
		
	}

    .convert-amount-input{
		
        font-size: 14px;
		
	}




    .nav_links {
        display: none;
		
    }
    /* Hide desktop navigation */


    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Hide desktop auth buttons */
    .auth-buttons {
        display: none;
    }

    /* Container adjustments */
    .container {
        padding: 10px;
        flex-direction: column;
        gap: 10px;
    }


    .bar-wrapper {
        padding: 6px 10px;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    /* Labels above the bar */
    .bar-labels {
        font-size: 12px;
        margin-bottom: 0px;
    }

    .team-name {
        letter-spacing: 0.6px;
        font-weight: 600;
    }

    .percentage {
        font-size: 12px;
        text-shadow: 0 0 8px rgba(235,74,87,0.4);
    }

    /* Bar background */
    .bar-bg {
        height: 10px; /* increase thickness */
        border-radius: 8px;
    }

    /* Bar fill */
    .bar-fill {
        border-radius: 8px;
    }

    /* Search input */
    .filter-input {
        padding: 5px 14px;
        font-size: 13px;
        border-radius: 8px;
    }

    /* Headings */
    .team-dist-title,
    .section-title {
        font-size: 14px;
        margin-top: 12px;
        margin-bottom: 6px;
        letter-spacing: 1px;
    }

    /* Online Players Filter Button */
    .filter-button {
        padding: 5px 16px;
        font-size: 13px;
        border-radius: 8px;
        display: flex;            /* enable flexbox */
        align-items: center;      /* vertical center */
        justify-content: center;  /* horizontal center */
        text-align: center;       /* fallback for text */
    }


    /* Range Slider Container */
    .range-values span {
        min-width: 50px;
        font-size: 12px;
        padding: 2px 4px;
    }

    .range-slider {
        height: 36px;
    }

    .range-slider input[type="range"]::-webkit-slider-thumb,
    .range-slider input[type="range"]::-moz-range-thumb {
        height: 20px;
        width: 20px;
    }

    .range-track,
    .range-fill {
        height: 6px;
        border-radius: 8px;
    }

    /* No teams message */
    .no-teams {
        font-size: 1rem;
        padding: 18px;
        border-radius: 14px;
    }

    /* Online indicator */
    .online-indicator {
        font-size: 12px;
        margin-left: 8px;
    }


    /* Large container mobile adjustments */
    #large-container {
        min-height: auto;
        margin-bottom: 80px; /* Account for pagination */
    }

    /* Header text adjustments */
    #text1, #text2, #text3, #text4 {
        font-size: 0.8rem;
    }

    #text1 {
        width: 10%;
		font-size: 1.9vw;
    }

    #text2 {
        width: 15%;
		font-size: 1.9vw;
    }

    #text3 {
        width: 60%;
		font-size: 1.9vw;
    }

    #text4 {
        width: 15%;
		font-size: 1.9vw;
    }

    /* Player row mobile adjustments */
    .player-row {
        height: 13.4vw; /* roughly 100px at your scale */
    }


    .player-rank {
        width: 10%;
        font-size: 1.7vw;
    }

    .player-id {
        width: 15%;
        font-size: 1.7vw;
    }

    .player-team {
        width: 60%;
		
    }

    .player-reward {
        width: 15%;
		
    }
	
    .axs-icon {
        width: 2.14vw;
        height: 2.14vw;
    }
    
    .axs-amount {
        gap: 4px; /* space between icon and text */
        font-weight: 500;
    	font-size: 1.7vw;
    }
    
    .usd-amount {
        font-size: 1.4vw; /* smaller text */
        
    }
	
    .vstar-icon {
        width: 1.88vw;
        height: 1.88vw;
    }
    
    .vstar-count {
        font-size: 1.7vw;
        color: #fff;                 /* or your leaderboard text color */
    }

    /* Axie container mobile adjustments */
    .axie-img {
        width: 30vw;
    }

    .axie1-container {
        transform: translate(-2vw, 1.1vw);
    }

    .axie2-container {
        transform: translate(-14vw, 1.1vw);
    }

    .axie3-container {
        transform: translate(-26vw, 1.1vw);
    }

    /* Rune overlay mobile adjustments */
    .rune-img {
        width: 3.75vw;
        height: 3.75vw;
    }

    .rune-overlay {
        top: 4.3vw;
        left: 4vw;

    }
	
    
    /* Rune stars display in leaderboard */
    .rune-stars {

        padding: 1px;
		padding-bottom: 0px;

    }
    
    
    .rune-stars .star {
        font-size: 1.2vw;

        text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
       
    }

    /* Pagination mobile adjustments */
    .pagination-container {
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    #pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    #pagination button {
        padding: 4px 12px;
        font-size: 1.8vw;
    }

    .logs-per-page {
        font-size: 1.8vw;
    }

    /* Popup adjustments */
    .popup-box {
        max-width: 90%;
        padding: 1.5rem;
    }

    .rune-charm-popup {
        width: 280px;
    }


    .selected-game span {

        font-size: 12px;

    }
	
    .game-option span {
		
        font-size: 12px;

		
	}



}


@media screen and (max-width: 600px) {

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }

    /* Hide desktop auth buttons */
    .auth-buttons {
        display: none;
    }

    /* Container adjustments */



    /* Online indicator */
    .online-indicator {
        font-size: 10px;
        margin-left: 6px;
    }

    /* Large container mobile adjustments */
    #large-container {
        min-height: auto;
        margin-bottom: 80px; /* Account for pagination */
    }


    #text1 {
        width: 10%;
		font-size: 2vw;
    }

    #text2 {
        width: 15%;
		font-size: 2vw;
    }

    #text3 {
        width: 60%;
		font-size: 2vw;
    }

    #text4 {
        width: 15%;
		font-size: 2vw;
    }

    /* Player row mobile adjustments */
    .player-row {
        height: 16vw; /* roughly 100px at your scale */
    }


    .player-rank {
        width: 10%;
        font-size: 1.8vw;
    }

    .player-id {
        width: 15%;
        font-size: 1.8vw;
    }

    .player-team {
        width: 60%;
		
    }

    .player-reward {
        width: 15%;
		
    }
	
    .axs-icon {
        width: 2.4vw;
        height: 2.4vw;
    }
    
    .axs-amount {
        gap: 4px; /* space between icon and text */
        font-weight: 500;
    	font-size: 1.8vw;
    }
    
    .usd-amount {
        font-size: 1.5vw; /* smaller text */
        
    }
	
    .vstar-icon {
        width: 1.88vw;
        height: 1.88vw;
    }
    
    .vstar-count {
        font-size: 1.8vw;
        color: #fff;                 /* or your leaderboard text color */
    }

    /* Axie container mobile adjustments */
    .axie-img {
        width: 32vw;
    }

    .axie1-container {
        transform: translate(-2vw, 2.25vw);
    }

    .axie2-container {
        transform: translate(-16vw, 2.25vw);
    }

    .axie3-container {
        transform: translate(-30vw, 2.25vw);
    }

    /* Rune overlay mobile adjustments */
    .rune-img {
        width: 4.2vw;
        height: 4.2vw;
    }

    .rune-overlay {
        top: 4.3vw;
        left: 4.4vw;

    }
	
    
    /* Rune stars display in leaderboard */
    .rune-stars {

        padding: 1px;
		padding-bottom: 0px;

    }
    
    
    .rune-stars .star {
        font-size: 1.2vw;

        text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
       
    }

    /* Pagination mobile adjustments */
    .pagination-container {
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    #pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    #pagination button {
        padding: 4px 12px;
        font-size: 1.8vw;
    }

    .logs-per-page {
        font-size: 1.8vw;
    }


    /* Popup adjustments */
    .popup-box {
        max-width: 90%;
        padding: 1.5rem;
    }

    .rune-charm-popup {
        width: 280px;
    }


}


@media screen and (max-width: 480px) {


    /* Hide desktop navigation */
    .nav_links {
        display: none;
    }

    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }


	.convert-amount-input{
		
		width: 70px;
		
	}


 

    /* Large container mobile adjustments */
    #large-container {
        min-height: auto;
        margin-bottom: 80px; /* Account for pagination */
    }


    #text1 {
        width: 10%;
		font-size: 2.4vw;
    }

    #text2 {
        width: 15%;
		font-size: 2.4vw;
    }

    #text3 {
        width: 60%;
		font-size: 2.4vw;
    }

    #text4 {
        width: 15%;
		font-size: 2.4vw;
    }

    /* Player row mobile adjustments */
    .player-row {
        height: 19vw; /* roughly 100px at your scale */
    }


    .player-rank {
        width: 10%;
        font-size: 2.3vw;
    }

    .player-id {
        width: 15%;
        font-size: 2.1vw;
    }

    .player-team {
        width: 60%;
		
    }

    .player-reward {
        width: 15%;
		
    }
	
    .axs-icon {
        width: 2.7vw;
        height: 2.7vw;
    }
    
    .axs-amount {
        gap: 4px; /* space between icon and text */
        font-weight: 500;
    	font-size: 2.3vw;
    }
    
    .usd-amount {
        font-size: 2vw; /* smaller text */
        
    }
	
    .vstar-icon {
        width: 2vw;
        height: 2vw;
    }
    
    .vstar-count {
        font-size: 2.1vw;
        color: #fff;                 /* or your leaderboard text color */
    }

    /* Axie container mobile adjustments */
    .axie-img {
        width: 35vw;
    }

    .axie1-container {
        transform: translate(-4vw, 3.3vw);
    }

    .axie2-container {
        transform: translate(-21vw, 3.3vw);
    }

    .axie3-container {
        transform: translate(-38vw, 3.3vw);
    }

    /* Rune overlay mobile adjustments */
    .rune-img {
        width: 4.7vw;
        height: 4.7vw;
    }

    .rune-overlay {
        top: 4.3vw;
        left: 4.7vw;

    }
	
    
    /* Rune stars display in leaderboard */
    .rune-stars {

        padding: 1px;
		padding-bottom: 0px;


    }
    
    
    .rune-stars .star {
        font-size: 1.4vw !important;

        text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
       
    }

    /* Pagination mobile adjustments */
    .pagination-container {
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    #pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    #pagination button {
        padding: 4px 12px;
        font-size: 2.7vw;
    }

    .logs-per-page {
        font-size: 2.2vw;
    }
	
	
	#logs-per-page {
		
		font-size: 2.7vw;
		
	}
	

    /* Popup adjustments */
    .popup-box {
        max-width: 90%;
        padding: 1.5rem;
    }



    .rune-charm-popup {
        width: 280px;
    }


    /* Online indicator */
    .online-indicator {
        font-size: 9px;
        margin-left: 6px;
    }

}





@media screen and (max-width: 400px) {


    /* Hide desktop navigation */
    .nav_links {
        display: none;
    }



    /* Hide desktop auth buttons */
    .auth-buttons {
        display: none;
    }



 


    /* Large container mobile adjustments */
    #large-container {
        min-height: auto;
        margin-bottom: 80px; /* Account for pagination */
    }


    #text1 {
        width: 10%;
		font-size: 2.4vw;
    }

    #text2 {
        width: 15%;
		font-size: 2.4vw;
    }

    #text3 {
        width: 60%;
		font-size: 2.4vw;
    }

    #text4 {
        width: 15%;
		font-size: 2.4vw;
    }

    /* Player row mobile adjustments */
    .player-row {
        height: 19vw; /* roughly 100px at your scale */
    }


    .player-rank {
        width: 10%;
        font-size: 2.3vw;
    }

    .player-id {
        width: 15%;
        font-size: 2.3vw;
    }

    .player-team {
        width: 60%;
		
    }

    .player-reward {
        width: 15%;
		
    }
	
    .axs-icon {
        width: 2.7vw;
        height: 2.7vw;
    }
    
    .axs-amount {
        gap: 4px; /* space between icon and text */
        font-weight: 500;
    	font-size: 2.3vw;
    }
    
    .usd-amount {
        font-size: 2vw; /* smaller text */
        
    }
	
    .vstar-icon {
        width: 2vw;
        height: 2vw;
    }
    
    .vstar-count {
        font-size: 2.1vw;
        color: #fff;                 /* or your leaderboard text color */
    }

    /* Axie container mobile adjustments */
    .axie-img {
        width: 35vw;
    }

    .axie1-container {
        transform: translate(-4vw, 3.3vw);
    }

    .axie2-container {
        transform: translate(-21vw, 3.3vw);
    }

    .axie3-container {
        transform: translate(-38vw, 3.3vw);
    }

    /* Rune overlay mobile adjustments */
    .rune-img {
        width: 4.7vw;
        height: 4.7vw;
    }

    .rune-overlay {
        top: 4.3vw;
        left: 4.7vw;

    }
	
    
    /* Rune stars display in leaderboard */
    .rune-stars {

        padding: 1px;
		padding-bottom: 0px;


    }
    
    
    .rune-stars .star {
        font-size: 1.4vw !important;

        text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
       
    }

    /* Pagination mobile adjustments */
    .pagination-container {
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    #pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    #pagination button {
        padding: 4px 12px;
        font-size: 2.7vw;
    }

    .logs-per-page {
        font-size: 2.2vw;
    }
	
	
	#logs-per-page {
		
		font-size: 2.7vw;
		
	}
	

    /* Popup adjustments */
    .popup-box {
        max-width: 90%;
        padding: 1.5rem;
    }



    .rune-charm-popup {
        width: 280px;
    }



}


















/* --- Sliding Panel Styles --- */

/* Default state for the wrapper on desktop */
.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;
        right: 0;
        width: 320px;
        max-width: 85%;
        height: 100%;
        z-index: 1003;
        display: flex;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        /* --- OPTIMIZATION: --- */
        /* Promote this element to its own layer for smoother animation. */
        /* This tells the browser to expect a change in the transform property. */
        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;
        border: none;
        border-left: 1px solid rgba(235, 255, 255, 0.1);
        padding-top: 20px;
		padding: 20px;
        overflow-y: auto;
    }

    .sliding-panel-toggle {
        display: flex;
        position: absolute;
        left: -40px;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 60px;
        background: #13161B;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-right: none;
        color: #EB4A57;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
        z-index: -1;
    }

    .sliding-panel-toggle i {
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        /* --- OPTIMIZATION (Minor): --- */
        /* Promoting the icon's transform can also help. */
        will-change: transform;
    }
    
    .sliding-panel-wrapper.active .sliding-panel-toggle i {
        transform: rotate(180deg);
    }

    .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;
        /* --- OPTIMIZATION (Minor): --- */
        /* will-change is also useful for opacity transitions. */
        will-change: opacity;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        /* --- REMOVED for performance --- */
        /* backdrop-filter: blur(5px); */
    }

    .panel-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}
@media (min-width: 1600px) and (max-width: 1920px) {
    #text3 {
        /* Shift content 50px to the left */
        transform: translateX(-60px);
    }
}




