* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #050609;
    min-height: 100vh;
    color: #fff;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Enhanced animated background */
.bg-gradient {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    background: radial-gradient(ellipse at top, #1a1035 0%, #050609 50%);
}

.bg-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

body::before {
    content: '';
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
    border-radius: 50%;
    top: -400px;
    right: -300px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

body::after {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    bottom: -300px;
    left: -250px;
    animation: float 15s ease-in-out infinite;
    animation-delay: 3s;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.container::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2), rgba(249, 115, 22, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    right: 10%;
    animation: float 18s ease-in-out infinite;
    animation-delay: 6s;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Particle effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.9), rgba(168, 85, 247, 0.6) 50%, transparent);
    border-radius: 50%;
    animation: rise linear infinite;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

@keyframes rise {
    0% {
        bottom: -10%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 110%;
        opacity: 0;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 0 20px;
    animation: fadeInDown 0.8s ease;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    animation: fadeIn 1s ease;
}

.logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(168, 85, 247, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-image:hover {
    transform: scale(1.05) rotate(5deg);
    filter: drop-shadow(0 15px 40px rgba(168, 85, 247, 0.5));
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 30%, #a855f7 60%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -2px;
    position: relative;
    line-height: 1.1;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.5));
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(168, 85, 247, 0.7));
    }
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(90deg, transparent, #6366f1 20%, #a855f7 50%, #ec4899 80%, transparent);
    border-radius: 10px;
    filter: blur(2px);
    animation: line-glow 2s ease-in-out infinite;
}

@keyframes line-glow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 20px;
    letter-spacing: 0.3px;
    line-height: 1.6;
}

.wallet-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeIn 1s ease 0.3s both;
    position: relative;
    z-index: 100;
}

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

.wallet-info {
    display: none;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 14px 28px;
    border-radius: 18px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.wallet-info.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.wallet-dropdown-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    display: none;
}

.wallet-info.active .wallet-dropdown-btn {
    display: block;
}

.wallet-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.wallet-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    box-shadow:
        0 4px 16px rgba(99, 102, 241, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.wallet-address-display {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-connect {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border: none;
    padding: 16px 42px;
    border-radius: 18px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.4),
        0 0 0 0 rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

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

.btn-connect:hover::before {
    left: 100%;
}

.btn-connect:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 15px 60px rgba(99, 102, 241, 0.6),
        0 0 0 8px rgba(99, 102, 241, 0.1);
}

.btn-connect:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-connect.connected {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.4);
    padding: 14px 32px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
}

/* Wallet Dropdown Menu */
.wallet-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.98) 0%, rgba(20, 20, 40, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    min-width: 280px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.wallet-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wallet-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 8px;
}

.wallet-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.wallet-menu-info {
    flex: 1;
    min-width: 0;
}

.wallet-menu-address {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-menu-balance {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.wallet-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 8px 0;
}

.wallet-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.wallet-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.wallet-menu-item:active {
    transform: translateX(2px) scale(0.98);
}

.wallet-menu-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.wallet-menu-item-danger {
    color: #ef4444;
}

.wallet-menu-item-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* Mobile Responsive for Wallet Menu */
@media (max-width: 480px) {
    .wallet-dropdown-menu {
        right: -20px;
        left: -20px;
        min-width: auto;
        width: calc(100vw - 40px);
    }

    .wallet-menu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .wallet-menu-address {
        font-size: 0.8rem;
    }
}

/* Welcome Logo Section (Before Connection) */
.welcome-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0;
    animation: fadeInUp 0.8s ease-out;
}

.welcome-logo {
    width: 250px;
    height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(139, 92, 246, 0.5));
    animation: float-logo 3s ease-in-out infinite;
}

@keyframes float-logo {
    0%, 100% {
        transform: translateY(0px);
        filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.4));
    }
    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 15px 40px rgba(139, 92, 246, 0.6));
    }
}

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

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    animation: fadeIn 1.2s ease 0.5s both;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 36px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 1px 2px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    z-index: 1;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(99, 102, 241, 0.6),
        rgba(168, 85, 247, 0.6),
        rgba(236, 72, 153, 0.6),
        transparent
    );
    filter: blur(0.5px);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow:
        0 25px 70px rgba(99, 102, 241, 0.35),
        0 10px 40px rgba(168, 85, 247, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.card-title-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.collapse-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 1.2rem;
}

.collapse-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    transform: scale(1.1);
}

.collapse-btn.collapsed {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
}

/* Global Pool Styles */
.global-pool-display {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.global-pool-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: rotate-gradient 8s linear infinite;
    pointer-events: none;
}

@keyframes rotate-gradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.global-pool-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.global-pool-amount {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
    position: relative;
    z-index: 1;
}

.global-pool-usd {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Rank Section Styles */
.rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    padding: 12px 28px;
    border-radius: 24px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 28px;
    box-shadow:
        0 8px 24px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: badge-glow 2s ease-in-out infinite;
}

@keyframes badge-glow {
    0%, 100% {
        box-shadow:
            0 8px 24px rgba(99, 102, 241, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 12px 32px rgba(99, 102, 241, 0.7),
            0 0 20px rgba(168, 85, 247, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Rank Requirements Styles */
.rank-requirements-container {
    margin-bottom: 28px;
}

.next-rank-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-align: center;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-requirement-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.rank-requirement-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.rank-requirement-item.completed {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
}

.requirement-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.requirement-icon {
    font-size: 1.4rem;
}

.requirement-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.requirement-progress {
    margin-top: 8px;
}

.requirement-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
    margin-top: 8px;
}

.burn-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}

.burn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.burn-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 600;
}

.burn-amount {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.progress-bar {
    height: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 12px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

.progress-text {
    text-align: right;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.volume-addresses {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.volume-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.3s ease;
}

.volume-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.volume-address-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.volume-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.volume-address-text {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.volume-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.volume-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.volume-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

/* Burn Requirement Display */
.burn-requirement {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.burn-requirement-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.burn-requirement-icon {
    font-size: 1.4rem;
}

.burn-requirement-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.burn-requirement-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-upgrade-rank {
    width: 100%;
    padding: 20px 24px;
    background:
        linear-gradient(135deg, rgba(139, 92, 246, 0.9) 0%, rgba(168, 85, 247, 0.9) 50%, rgba(192, 132, 252, 0.9) 100%),
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.4), transparent 50%),
        radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.4), transparent 50%);
    background-size: 200% 200%, 100% 100%, 100% 100%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(192, 132, 252, 0.4);
    border-radius: 20px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.4),
        0 4px 16px rgba(168, 85, 247, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: liquid-gradient 4s ease infinite;
}

@keyframes liquid-gradient {
    0%, 100% { background-position: 0% 50%, 0% 0%, 0% 0%; }
    50% { background-position: 100% 50%, 0% 0%, 0% 0%; }
}

.btn-upgrade-rank::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
}

.btn-upgrade-rank::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    pointer-events: none;
}

.btn-upgrade-rank:hover::before {
    opacity: 1;
    top: -30%;
    left: -30%;
}

.btn-upgrade-rank:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 16px 48px rgba(139, 92, 246, 0.6),
        0 8px 24px rgba(168, 85, 247, 0.5),
        0 0 40px rgba(192, 132, 252, 0.4),
        inset 0 2px 6px rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.1);
    border-color: rgba(192, 132, 252, 0.6);
}

.btn-upgrade-rank:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 12px 32px rgba(139, 92, 246, 0.5),
        0 6px 16px rgba(168, 85, 247, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.btn-upgrade-rank:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.burn-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.btn-approve {
    padding: 18px 20px;
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    background-size: 200% 200%;
    border: 2px solid rgba(52, 211, 153, 0.3);
    border-radius: 14px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 28px rgba(16, 185, 129, 0.5),
        0 0 0 0 rgba(52, 211, 153, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: gradient-shift 3s ease infinite;
}

.btn-approve::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn-approve::after {
    content: '✓';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.4s ease;
}

.btn-approve:hover::before {
    left: 100%;
}

.btn-approve:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 14px 40px rgba(16, 185, 129, 0.7),
        0 0 30px rgba(52, 211, 153, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(52, 211, 153, 0.6);
}

.btn-approve:hover::after {
    transform: translateY(-50%) scale(1.2) rotate(360deg);
}

.btn-approve:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-approve:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.btn-burn {
    padding: 18px 20px;
    background: linear-gradient(135deg, #fb923c 0%, #f97316 30%, #ea580c 70%, #dc2626 100%);
    background-size: 200% 200%;
    border: 2px solid rgba(251, 146, 60, 0.3);
    border-radius: 14px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 28px rgba(249, 115, 22, 0.5),
        0 0 0 0 rgba(251, 146, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: gradient-shift 3s ease infinite;
}

.btn-burn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn-burn:hover::before {
    left: 100%;
}

.btn-burn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 14px 40px rgba(249, 115, 22, 0.8),
        0 0 40px rgba(251, 146, 60, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(251, 146, 60, 0.6);
}

.btn-burn:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-burn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 19px;
    padding: 3px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7, #ec4899);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
    animation: icon-border-rotate 3s linear infinite;
}

@keyframes icon-border-rotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover .card-icon::before {
    opacity: 1;
}

.glass-card:hover .card-icon {
    transform: scale(1.1) rotate(-10deg);
    box-shadow:
        0 15px 45px rgba(99, 102, 241, 0.7),
        0 5px 20px rgba(168, 85, 247, 0.5);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin-bottom: 4px;
}

.info-row:hover {
    padding-left: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.03) 100%);
    border-bottom-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.referrer-address {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    position: relative;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
    line-height: 1.6;
}

.referrer-address:hover {
    background-color: rgba(99, 102, 241, 0.2);
}

/* Responsive adjustments for info-row */
@media (max-width: 768px) {
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .referrer-address {
        width: 100%;
        font-size: 0.75rem;
        padding: 10px 12px;
        word-break: break-all;
        text-align: left;
    }

}

@media (max-width: 480px) {
    .info-row {
        gap: 6px;
    }

    .info-label {
        font-size: 0.9rem;
    }

    .referrer-address {
        font-size: 0.7rem;
        padding: 8px 10px;
        line-height: 1.5;
    }
}

.input-group {
    margin: 24px 0;
    position: relative;
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.input-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.balance-display {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
}

.balance-display span {
    color: #fff;
    font-weight: 700;
}

.input-field {
    width: 100%;
    padding: 18px 95px 18px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.input-field:focus {
    outline: none;
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
    box-shadow:
        0 0 0 4px rgba(99, 102, 241, 0.15),
        0 10px 30px rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.max-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    letter-spacing: 0.5px;
    z-index: 10;
}

.max-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.max-btn:active {
    transform: scale(0.98);
}

.btn-primary {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 10px 40px rgba(99, 102, 241, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-top: 16px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 1rem;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(99, 102, 241, 0.7),
        0 0 0 8px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.01);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.rewards-display {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.rewards-display::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 1;
    }
}

.rewards-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.rewards-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 25%, #a855f7 50%, #ec4899 75%, #f97316 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -3px;
    position: relative;
    z-index: 1;
    animation: glow-pulse 2s ease-in-out infinite, gradient-shift 4s ease infinite;
    line-height: 1.1;
    filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.6));
}

@keyframes glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 60px rgba(168, 85, 247, 0.8));
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.rewards-usd {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.4rem;
    margin-top: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 8px;
}

.stat-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 18px;
    padding: 26px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(99, 102, 241, 0.7),
        rgba(168, 85, 247, 0.7),
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 18px;
}

.stat-box:hover {
    transform: translateY(-8px) scale(1.03);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow:
        0 15px 45px rgba(99, 102, 241, 0.3),
        0 5px 20px rgba(168, 85, 247, 0.2);
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box:hover::after {
    opacity: 1;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: inline-block;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.stat-box:hover .stat-icon {
    transform: scale(1.2);
    opacity: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.stat-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 18px 28px;
    border-radius: 16px;
    color: #fff;
    display: none;
    z-index: 1000;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    font-weight: 500;
    min-width: 280px;
    letter-spacing: 0.2px;
}

.toast.show {
    display: block;
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.toast.info {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Progress bar indicator */
.progress-bar {
    margin-top: 20px;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Referral List Styles */
.referral-link-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.referral-link-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 14px 18px;
    color: #fff;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    cursor: text;
    user-select: all;
    resize: none;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    height: auto;
    min-height: 48px;
    line-height: 1.5;
}

.referral-link-input::-webkit-scrollbar {
    height: 4px;
}

.referral-link-input::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.referral-link-input::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 10px;
}

.referral-link-input::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}

.referral-link-input:focus {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.copy-link-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    border: 2px solid rgba(139, 92, 246, 0.3);
    padding: 16px 28px;
    border-radius: 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 6px 20px rgba(99, 102, 241, 0.4),
        0 2px 8px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: gradient-shift 3s ease infinite;
}

.copy-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}


.copy-link-btn:hover::before {
    left: 100%;
}

.copy-link-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.6),
        0 4px 12px rgba(139, 92, 246, 0.5),
        0 0 20px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}


.copy-link-btn:active {
    transform: translateY(-1px) scale(1.01);
}


.referral-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.referral-list::-webkit-scrollbar {
    width: 6px;
}

.referral-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.referral-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 10px;
}

.referral-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c7ff1, #b96ff7);
}

.referral-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.referral-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    opacity: 0;
    transition: opacity 0.3s;
}

.referral-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.referral-item:hover::before {
    opacity: 1;
}

.referral-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.referral-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.referral-address {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: color 0.3s;
}

.referral-address:hover {
    color: #6366f1;
}

.referral-stats {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.referral-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.referral-stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-stat-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.no-referrals {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.no-referrals-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0.6;
    display: inline-block;
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.no-referrals-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Transaction History Styles */
.history-list {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 3px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.history-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    opacity: 0;
    transition: opacity 0.3s;
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.history-item:hover::before {
    opacity: 1;
}

.history-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.history-icon.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.history-icon.info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.history-icon.warning {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.history-details {
    flex: 1;
    min-width: 0;
}

.history-type {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.history-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.history-amount {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    flex-shrink: 0;
}

.history-amount.success {
    color: #22c55e;
}

.history-amount.info {
    color: #3b82f6;
}

.history-amount.warning {
    color: #f97316;
}

.loading-message {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .referral-link-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .referral-link-input {
        font-size: 0.8rem !important;
        padding: 12px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        line-height: 1.4 !important;
        height: auto !important;
        max-height: none !important;
        min-height: 50px !important;
        width: 100% !important;
        display: block !important;
        resize: none !important;
    }

    .logo-image {
        width: 100px;
        height: 100px;
    }

    .header h1 {
        font-size: 2.5rem;
        letter-spacing: -1.5px;
    }

    .header p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .welcome-logo-section {
        margin: 40px 0;
    }

    .welcome-logo {
        width: 180px;
        height: 180px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .glass-card {
        padding: 24px;
    }

    .card-title {
        font-size: 1.4rem;
    }

    .rewards-amount {
        font-size: 2.8rem;
        letter-spacing: -1.5px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-box {
        padding: 20px;
    }

    .stat-icon {
        font-size: 1.3rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .input-field {
        padding: 14px 80px 14px 16px;
        font-size: 1rem;
    }

    .max-btn {
        right: 8px;
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 9px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px;
    }

    .logo-image {
        width: 80px;
        height: 80px;
    }

    .logo-container {
        margin-bottom: 20px;
    }

    .header {
        padding: 24px 0 16px;
        margin-bottom: 32px;
    }

    .header h1 {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .wallet-section {
        flex-direction: column;
        gap: 12px;
    }

    .wallet-address-display {
        font-size: 0.75rem;
    }

    .btn-connect {
        padding: 12px 28px;
        font-size: 0.95rem;
        width: 100%;
    }

    .welcome-logo-section {
        margin: 30px 0;
    }

    .welcome-logo {
        width: 150px;
        height: 150px;
    }

    .glass-card {
        padding: 20px;
        border-radius: 20px;
    }

    .card-title {
        font-size: 1.25rem;
        letter-spacing: -0.2px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .info-label {
        font-size: 0.85rem;
    }

    .info-value {
        font-size: 1rem;
    }

    .collapse-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .rewards-amount {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .rewards-usd {
        font-size: 1.1rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 16px;
    }

    .input-field {
        font-size: 0.95rem;
        padding: 13px 78px 13px 14px;
    }

    .max-btn {
        right: 8px;
        padding: 7px 14px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .toast {
        top: 16px;
        right: 16px;
        left: 16px;
        min-width: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-box {
        padding: 18px 12px;
    }

    .stat-icon {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .referral-item {
        padding: 16px;
    }

    .referral-link-container {
        flex-direction: column;
        gap: 10px;
    }

    .copy-link-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }

    .referral-link-input {
        font-size: 0.75rem !important;
        padding: 12px 10px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        line-height: 1.4 !important;
        height: auto !important;
        max-height: none !important;
        min-height: 48px !important;
        width: 100% !important;
        display: block !important;
        resize: none !important;
    }

    .copy-link-btn {
        width: 100%;
    }

    .referral-stats {
        gap: 10px;
    }

    .referral-stat {
        padding: 12px 14px;
    }

    .referral-stat-label {
        font-size: 0.7rem;
    }

    .referral-stat-value {
        font-size: 1rem;
    }

    .rank-badge {
        font-size: 1rem;
        padding: 6px 16px;
    }

    .burn-section {
        padding: 16px;
    }

    .volume-item {
        padding: 16px;
    }

    .volume-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .volume-address-text {
        font-size: 0.85rem;
    }

    .btn-upgrade-rank {
        font-size: 1rem;
        padding: 16px;
    }

    .burn-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-approve, .btn-burn {
        font-size: 0.95rem;
        padding: 14px;
    }

    .history-item {
        padding: 14px;
        gap: 12px;
    }

    .history-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .history-type {
        font-size: 0.9rem;
    }

    .history-date {
        font-size: 0.7rem;
    }

    .history-amount {
        font-size: 0.95rem;
    }
}

/* ==============================
   Active Stakes Styles
   ============================== */

.stake-count {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

.collapse-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.collapsible-content {
    margin-top: 20px;
    overflow: hidden;
}

.stakes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stake-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.stake-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.stake-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stake-number {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.stake-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'JetBrains Mono', monospace;
}

.stake-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stake-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stake-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.stake-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 768px) {
    .stake-item {
        padding: 12px;
    }

    .stake-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .stake-number {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .stake-date {
        font-size: 0.75rem;
    }

    .stake-label,
    .stake-value {
        font-size: 0.85rem;
    }
}
