/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'SF Pro Display', sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #00FFA3;
    position: relative;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 15% 85%, rgba(0, 255, 163, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(3, 225, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(220, 31, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 25% 25%, rgba(0, 255, 163, 0.04) 0%, transparent 70%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 198px,
            rgba(0, 255, 163, 0.008) 200px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 198px,
            rgba(0, 255, 163, 0.008) 200px
        );
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
    animation: gridPulse 15s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.1; }
}

/* Professional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 163, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 163, 0.6);
    }
}

/* Professional Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 163, 0.3);
    border-radius: 50%;
    border-top-color: #00FFA3;
    animation: spin 1s ease-in-out infinite;
}

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

/* Professional Focus States */
input:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.2);
}

/* Professional Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 163, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 163, 0.5);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.99) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(0, 255, 163, 0.08) 0%, transparent 70%);
    backdrop-filter: blur(32px) saturate(180%);
    border-bottom: 1px solid rgba(0, 255, 163, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 
        0 8px 48px rgba(0, 255, 163, 0.12),
        0 1px 0 rgba(0, 255, 163, 0.08) inset,
        0 -1px 0 rgba(0, 255, 163, 0.04) inset,
        0 0 0 1px rgba(0, 255, 163, 0.02) inset;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 24px 24px;
    margin: 0 16px;
    width: calc(100% - 32px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0;
    min-height: 96px;
    position: relative;
    backdrop-filter: blur(8px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.875rem;
    font-weight: 800;
    color: #00FFA3;
    letter-spacing: -0.025em;
    text-shadow: 0 0 24px rgba(0, 255, 163, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.1), rgba(0, 255, 163, 0.05));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.logo:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 32px rgba(0, 255, 163, 0.6);
}

.logo:hover::before {
    opacity: 1;
}

.logo i {
    font-size: 2.25rem;
    filter: drop-shadow(0 0 12px rgba(0, 255, 163, 0.5));
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 255, 163, 0.05);
    padding: 0.5rem;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 163, 0.1);
}

.nav-link {
    text-decoration: none;
    color: rgba(0, 255, 163, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.875rem 2rem;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.015em;
    backdrop-filter: blur(8px);
}

.nav-link:hover {
    color: #00FFA3;
    background: 
        linear-gradient(135deg, rgba(0, 255, 163, 0.08) 0%, rgba(0, 255, 163, 0.12) 100%);
    border-color: rgba(0, 255, 163, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 255, 163, 0.15);
}

.nav-link.active {
    color: #000;
    background: 
        linear-gradient(135deg, #00FFA3 0%, #d4a017 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-color: rgba(0, 255, 163, 0.6);
    box-shadow: 
        0 6px 24px rgba(0, 255, 163, 0.25),
        0 0 0 1px rgba(0, 255, 163, 0.2) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transform: translateY(-2px);
}

.wallet-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.connect-btn {
    background: 
        linear-gradient(135deg, #00FFA3 0%, #d4a017 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    letter-spacing: 0.015em;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 24px rgba(0, 255, 163, 0.25),
        0 0 0 1px rgba(0, 255, 163, 0.15) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

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

.connect-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 255, 163, 0.35),
        0 0 0 1px rgba(0, 255, 163, 0.25) inset,
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: 
        linear-gradient(135deg, #00FFA3 0%, #d4a017 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    padding: 1rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 255, 163, 0.4);
    box-shadow: 
        0 6px 28px rgba(0, 255, 163, 0.2),
        0 0 0 1px rgba(0, 255, 163, 0.15) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: #000;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.015em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wallet-address i {
    color: #22c55e;
    font-size: 0.875rem;
    filter: drop-shadow(0 1px 2px rgba(34, 197, 94, 0.3));
}

.disconnect-btn {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
}

.disconnect-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: translateY(-1px);
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 0;
    color: #00FFA3;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 163, 0.05) 0%, transparent 70%);
    border: 1px solid rgba(0, 255, 163, 0.3);
    border-radius: 24px;
    margin: 3rem 0;
    box-shadow: 
        0 8px 40px rgba(0, 255, 163, 0.1),
        0 0 0 1px rgba(0, 255, 163, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 163, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 163, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-shadow: 
        0 0 40px rgba(0, 255, 163, 0.4),
        0 0 20px rgba(0, 255, 163, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #00FFA3 0%, #03E1FF 50%, #DC1FFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.hero-content p {
    font-size: 1.375rem;
    margin-bottom: 3.5rem;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.7;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(0, 255, 163, 0.9);
    animation: fadeInUp 1.4s ease-out 0.4s both;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.stat {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 163, 0.05) 0%, transparent 70%);
    backdrop-filter: blur(20px);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 163, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 255, 163, 0.1),
        0 0 0 1px rgba(0, 255, 163, 0.1) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 255, 163, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 255, 163, 0.15),
        0 0 0 1px rgba(0, 255, 163, 0.2) inset;
}

.stat-value {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #00FFA3;
    text-shadow: 0 0 20px rgba(0, 255, 163, 0.4);
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1rem;
    color: rgba(0, 255, 163, 0.8);
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 1;
}

/* Sections */
.section {
    margin: 5rem 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 163, 0.03) 0%, transparent 70%);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(0, 255, 163, 0.3);
    box-shadow: 
        0 8px 40px rgba(0, 255, 163, 0.1),
        0 0 0 1px rgba(0, 255, 163, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 163, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 163, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    animation: fadeInUp 1s ease-out 0.6s both;
    z-index: 1;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #00FFA3;
    text-shadow: 0 0 20px rgba(0, 255, 163, 0.4);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #00FFA3 0%, #d4a017 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.15rem;
    color: rgba(0, 255, 163, 0.8);
    font-weight: 400;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Tokens Grid */
.tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.token-card {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 163, 0.05) 0%, transparent 70%);
    border: 1px solid rgba(0, 255, 163, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 32px rgba(0, 255, 163, 0.08),
        0 0 0 1px rgba(0, 255, 163, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.token-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 255, 163, 0.02) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.token-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 255, 163, 0.2),
        0 0 0 1px rgba(0, 255, 163, 0.3) inset,
        0 0 40px rgba(0, 255, 163, 0.1);
    border-color: rgba(0, 255, 163, 0.7);
    animation: glow 2s ease-in-out infinite;
}

.token-card:hover::before {
    opacity: 1;
}

.token-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.token-logo {
    position: relative;
}

.token-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 163, 0.3);
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 255, 163, 0.2));
}

.token-logo::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00FFA3, #d4a017);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.token-card:hover .token-logo::after {
    opacity: 1;
}

.token-details h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #00FFA3;
    letter-spacing: -0.01em;
    text-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
}

.token-name {
    color: rgba(0, 255, 163, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.token-stats {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: rgba(0, 255, 163, 0.9);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.stat-row .value {
    font-weight: 700;
    color: #00FFA3;
    text-shadow: 0 0 8px rgba(0, 255, 163, 0.4);
    font-size: 1rem;
}

.action-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.supply-btn {
    background: linear-gradient(135deg, #00FFA3 0%, #03E1FF 100%);
    color: #000;
    box-shadow: 
        0 6px 24px rgba(0, 255, 163, 0.3),
        0 0 0 1px rgba(0, 255, 163, 0.15) inset,
        0 2px 0 rgba(255, 255, 255, 0.1) inset;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.supply-btn:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 255, 163, 0.5),
        0 0 0 1px rgba(0, 255, 163, 0.25) inset,
        0 2px 0 rgba(255, 255, 255, 0.15) inset;
    background: linear-gradient(135deg, #00FFA3 0%, #03E1FF 100%);
}

.borrow-btn {
    background: linear-gradient(135deg, rgba(220, 31, 255, 0.12) 0%, rgba(220, 31, 255, 0.25) 100%);
    color: #DC1FFF;
    border: 2px solid rgba(220, 31, 255, 0.5);
    box-shadow: 
        0 6px 24px rgba(220, 31, 255, 0.15),
        0 0 0 1px rgba(220, 31, 255, 0.08) inset;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.borrow-btn:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(220, 31, 255, 0.25) 0%, rgba(220, 31, 255, 0.4) 100%);
    border-color: rgba(220, 31, 255, 0.7);
    box-shadow: 
        0 12px 40px rgba(220, 31, 255, 0.25),
        0 0 0 1px rgba(220, 31, 255, 0.15) inset;
}

/* Portfolio */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: #000;
    border: 2px solid #00FFA3;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.1);
}

.portfolio-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #00FFA3;
}

.portfolio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #00FFA3;
}

.portfolio-item:last-child {
    border-bottom: none;
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.asset-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.asset-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #00FFA3;
}

.asset-amount {
    color: #00FFA3;
    font-size: 0.9rem;
    opacity: 0.7;
}

.asset-value {
    text-align: right;
}

.asset-value .value {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #00FFA3;
}

.asset-value .apy {
    color: #00FFA3;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
}

.modal-content {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 255, 163, 0.08) 0%, transparent 70%);
    border: 1px solid rgba(0, 255, 163, 0.2);
    border-radius: 24px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 32px 64px rgba(0, 255, 163, 0.15),
        0 0 0 1px rgba(0, 255, 163, 0.1) inset;
    backdrop-filter: blur(24px) saturate(180%);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(0, 255, 163, 0.15);
    background: rgba(0, 255, 163, 0.02);
    border-radius: 24px 24px 0 0;
}

.modal-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #00FFA3;
    letter-spacing: -0.01em;
    text-shadow: 0 0 16px rgba(0, 255, 163, 0.3);
}

.close-btn {
    background: rgba(0, 255, 163, 0.1);
    border: 1px solid rgba(0, 255, 163, 0.2);
    border-radius: 12px;
    font-size: 1.25rem;
    cursor: pointer;
    color: #00FFA3;
    transition: all 0.3s ease;
    padding: 0.75rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: rgba(0, 255, 163, 0.2);
    border-color: rgba(0, 255, 163, 0.4);
    color: #00FFA3;
    transform: scale(1.05);
}

.modal-body {
    padding: 2rem;
    color: #00FFA3;
}

.token-selector {
    margin-bottom: 2rem;
}

.selected-token {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.selected-token img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.selected-token span:first-of-type {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.selected-token span:last-of-type {
    color: #666;
    font-size: 0.9rem;
}

.input-section {
    margin-bottom: 2rem;
}

.input-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #00FFA3;
    box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.1);
}

.max-btn {
    background: #00FFA3;
    color: #000;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.max-btn:hover {
    background: #d4a017;
}

.balance {
    color: #666;
    font-size: 0.9rem;
}

.transaction-details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.confirm-btn {
    width: 100%;
    background: linear-gradient(135deg, #00FFA3 0%, #d4a017 100%);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 163, 0.3);
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: #666;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00FFA3;
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    text-align: center;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .tokens-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-stats {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 1.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .token-card {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}