:root {
    --neon-cyan: #22d3ee;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
}

/* ===== Card Wrapper ===== */
#swap {
    display: none;
    margin: 100px
}

.neon-card {
    width: 380px;
    padding: 22px;
    border-radius: 20px;
    position: relative;
    background: rgba(12, 12, 18, 0.75);
    backdrop-filter: blur(14px);
    color: #e5e7eb;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.65),
        0 0 40px rgba(168, 85, 247, 0.15);
}

/* Neon border */
.neon-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    padding: 1px;
    background: linear-gradient(135deg,
            var(--neon-cyan),
            var(--neon-purple),
            var(--neon-pink));
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* ===== Header ===== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow:
        0 0 8px rgba(168, 85, 247, 0.6);
}

.card-settings {
    opacity: 0.7;
    font-size: 1.2rem;
}

/* ===== Swap Sections ===== */
.swap-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
}

.swap-label {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 6px;
}

.swap-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.token {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.token-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, #22d3ee, #0ea5e9);
}

.amount-input {
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 500;
    color: #00ffc3;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 14px;
    outline: none;
    text-align: right;
    transition: all 0.25s ease;
}

.amount-input::placeholder {
    color: rgba(0, 255, 200, 0.5);
}

.amount-input:focus {
    background: rgba(0, 0, 0, 0.35);
    border-color: #00ffc3;
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.4);
}

/* Arrow divider */
.swap-arrow {
    display: flex;
    justify-content: center;
    margin: 6px 0 10px;
    color: #a855f7;
    font-size: 1.2rem;
}

/* ===== Action Button ===== */
.swap-button {
    width: 100%;
    height: 50px;
    margin-top: 12px;
    border-radius: 16px;
    border: none;
    cursor: pointer;

    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;

    background: linear-gradient(135deg,
            var(--neon-cyan),
            var(--neon-purple));

    box-shadow:
        0 0 25px rgba(168, 85, 247, 0.65),
        inset 0 0 0 rgba(255, 255, 255, 0);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.swap-button:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 35px rgba(168, 85, 247, 0.85);
}

/* ===== Footer Info ===== */
.card-footer {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #9ca3af;
    display: grid;
    gap: 4px;
}

.token-dropdown {
    position: relative;
    width: 140px;
    font-family: 'Segoe UI', sans-serif;
    color: #00ffc3;
    cursor: pointer;
}

/* Selected */
.token-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 12px;
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(0, 255, 200, 0.35);
    border-radius: 14px;
    transition: all 0.25s ease;
}

.token-selected:hover {
    background: rgba(18, 18, 18, 0.85);
    box-shadow: 0 0 12px rgba(0, 255, 200, 0.15);
}

.token-dropdown.open .token-selected {
    box-shadow: 0 0 18px rgba(0, 255, 200, 0.25);
}

/* Arrow */
.arrow {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.token-dropdown.open .arrow {
    transform: rotate(180deg);
}

/* Dropdown panel */
.token-panel {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: rgba(15, 17, 22, 0.95);
    backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(0, 255, 200, 0.3);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 255, 200, 0.18);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.token-dropdown.open .token-panel {
    display: block;
}

/* Search */
.token-search {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: none;
    outline: none;
    background: rgba(10, 12, 18, 0.9);
    color: #fff;
    border-bottom: 1px solid rgba(0, 255, 200, 0.15);
}

.token-search::placeholder {
    color: #777;
}

/* Token list */
.token-options {
    max-height: 260px;
    overflow-y: auto;
}

/* Token row */
.token-option {
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.token-option:hover {
    background: rgba(0, 255, 200, 0.12);
    padding-left: 16px;
}

/* Icon */
.token-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffc3, #00bfa6);
    flex-shrink: 0;
}

/* Scrollbar */
.token-options::-webkit-scrollbar {
    width: 6px;
}

.token-options::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 200, 0.35);
    border-radius: 4px;
}

.by-aero {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;

    color: #7dd3fc;
    opacity: 0.85;

    padding: 2px 6px;
    border-radius: 6px;

    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.25);

    box-shadow:
        inset 0 0 6px rgba(34, 211, 238, 0.2);
}

.by-aero a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    font-size: inherit;
}

.by-aero a:hover {
    opacity: 0.8;
}

.card-subtitle {
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.3rem;

}

.swap-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.swap-button.loading::after {
    content: "…";
    animation: dots 1.4s infinite;
}

@keyframes dots {
    0% {
        content: "";
    }

    33% {
        content: ".";
    }

    66% {
        content: "..";
    }

    100% {
        content: "...";
    }
}

.swap-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    border-radius: 16px;
    z-index: 50;
}

.swap-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.swap-overlay-content {
    text-align: center;
    color: white;
    animation: fadeUp 0.4s ease;
}

.overlay-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.overlay-sub {
    font-size: 0.95rem;
    opacity: 0.8;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}