    /* swap-dex-6.css for kenomega.io/swap-dex */
    
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Share Tech Mono', monospace;
            background: #000;
            color: #00d4ff;
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px),
                linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px);
            background-size: 40px 40px;
            z-index: 0;
            pointer-events: none;
        }

/* --- Visibility Helpers --- */
.mobile-only {
    display: none;
}

/* --- Tactical Header Styles --- */
header {
    background-color: #050a14;
    border-bottom: 1px solid rgba(0, 170, 255, 0.4);
    padding: 15px 3%;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Share Tech Mono', monospace;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    font-size: 24px;
    color: #00aaff;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.7);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-links li a {
    color: #c0c0c0;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 5px 0;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links li a:hover,
.dropdown:hover > a {
    color: #00aaff;
    text-shadow: 0 0 8px rgba(0, 170, 255, 0.8);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.connect-wallet-btn {
    background: transparent;
    border: 1px solid #00aaff;
    color: #00aaff;
    padding: 10px 20px;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s, color 0.3s;
    clip-path: polygon(0% 8px, 8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px));
}

.connect-wallet-btn:hover {
    background-color: rgba(0, 170, 255, 0.1);
}

/* --- Dropdown Styles --- */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #050a14;
    border: 1px solid rgba(0, 170, 255, 0.5);
    min-width: 160px;
    z-index: 1;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-content a {
    color: #c0c0c0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: rgba(0, 170, 255, 0.1) !important;
    color: #00aaff !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- Hamburger & Mobile Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #00aaff;
    transition: all 0.3s ease-in-out;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;  /* Changed from 2rem - removes padding */
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 140px);  /* Adjust based on header/footer height */
}

.dex-container {
    max-width: 480px;
    margin: 10px auto 10px auto;  /* top: 60px, right: auto, bottom: 0, left: auto */
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 1.6rem;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
}

        .dex-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .dex-header h1 {
            font-size: 2rem;
            color: #0f0;
            text-shadow: 0 0 15px #0f0;
            margin-bottom: 0.5rem;
            opacity: 0.8;
            //brightness: 0.3;
        }

        .dex-tabs {
            display: flex;
            gap: 1rem;
            margin-bottom: 2rem;
            justify-content: center;
        }

        .tab-btn {
            background: transparent;
            border: 2px solid #00d4ff;
            color: #00d4ff;
            padding: 0.75rem 2rem;
            cursor: pointer;
            font-family: 'Share Tech Mono', monospace;
            transition: all 0.3s;
            flex: 1;
        }

        .tab-btn.active,
        .tab-btn:hover {
            background: #00d4ff;
            color: #000;
        }

        .swap-container {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .token-input {
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid #00d4ff;
            border-radius: 8px;
            padding: 1.5rem;
        }

        .token-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }

        .token-select {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: transparent;
            border: 1px solid #00d4ff;
            color: #00d4ff;
            padding: 0.5rem 1rem;
            cursor: pointer;
            font-family: 'Share Tech Mono', monospace;
            border-radius: 20px;
            transition: all 0.3s;
        }

        .token-select:hover {
            background: rgba(0, 212, 255, 0.1);
        }

        .amount-input {
            background: transparent;
            border: none;
            color: #00d4ff;
            font-size: 1.5rem;
            width: 100%;
            font-family: 'Share Tech Mono', monospace;
            outline: none;
            /* Keep typed/focused value blue-on-dark (Chrome otherwise flips to white/black) */
            color-scheme: dark;
            caret-color: #00d4ff;
            -webkit-text-fill-color: #00d4ff;
        }

        .amount-input:focus,
        .amount-input:active,
        .amount-input:hover {
            background: transparent !important;
            background-color: transparent !important;
            color: #00d4ff !important;
            -webkit-text-fill-color: #00d4ff !important;
            outline: none;
            box-shadow: none;
        }

        .amount-input::placeholder {
            color: rgba(0, 212, 255, 0.3);
            -webkit-text-fill-color: rgba(0, 212, 255, 0.3);
        }

        /* Chrome autofill can force white/yellow backgrounds — neutralize it */
        .amount-input:-webkit-autofill,
        .amount-input:-webkit-autofill:hover,
        .amount-input:-webkit-autofill:focus,
        .amount-input:-webkit-autofill:active {
            -webkit-text-fill-color: #00d4ff !important;
            caret-color: #00d4ff;
            transition: background-color 9999s ease-in-out 0s;
            box-shadow: 0 0 0 1000px #000 inset !important;
        }

        .swap-arrow {
            text-align: center;
            font-size: 2rem;
            cursor: pointer;
            transition: all 0.3s;
        }

        .swap-arrow:hover {
            transform: rotate(180deg);
            text-shadow: 0 0 15px #00d4ff;
        }

        .swap-info {
            background: rgba(0, 0, 0, 0.5);
            border: 1px solid #00d4ff;
            border-radius: 8px;
            padding: 1rem;
            margin-top: 1rem;
        }

        .info-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }

        .swap-btn {
            width: 100%;
            background: #00d4ff;
            color: #000;
            border: none;
            padding: 1rem;
            font-size: 1.2rem;
            font-family: 'Share Tech Mono', monospace;
            cursor: pointer;
            border-radius: 8px;
            margin-top: 1.5rem;
            transition: all 0.3s;
            font-weight: bold;
        }

        .swap-btn:hover {
            box-shadow: 0 0 30px #00d4ff;
            transform: translateY(-2px);
        }

        .swap-btn:disabled {
            background: rgba(0, 212, 255, 0.3);
            cursor: not-allowed;
        }

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #00d4ff;
    //margin-top: 4rem;
    margin-top: -15px;
    background-color: black;
    opacity: 0.8;
}

        @media (max-width: 992px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: #000;
                flex-direction: column;
                padding: 2rem;
                border-top: 1px solid #00d4ff;
            }

            .nav-links.active {
                display: flex;
            }

            .hamburger {
                display: flex;
            }

            .desktop-only {
                display: none;
            }

            .dex-container {
                padding: 1.5rem;
            }

            .dex-header h1 {
                font-size: 1.5rem;
            }
        }
