/* Integrated Swap Panel - MorrHollow Style (for Wallet Panel) */

.swap-panel {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'RemiliaMincho', serif;
    color: #E5E7EB;
    overflow: hidden;
    max-width: 100%;
}

.swap-panel .panel-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.swap-panel .panel-body::-webkit-scrollbar {
    width: 8px;
}

.swap-panel .panel-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.swap-panel .panel-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.4) 0%,
        rgba(186, 166, 116, 0.6) 100%);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.swap-panel .panel-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.6) 0%,
        rgba(186, 166, 116, 0.8) 100%);
}

.swap-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    max-width: 100%;
}

.swap-form {
    flex: 1;
    padding: 16px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.15) 0%,
        rgba(51, 65, 85, 0.2) 100%);
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.swap-form::-webkit-scrollbar {
    width: 8px;
}

.swap-form::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.swap-form::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.4) 0%,
        rgba(186, 166, 116, 0.6) 100%);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.swap-form::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.6) 0%,
        rgba(186, 166, 116, 0.8) 100%);
}

.token-input-section {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.5) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.token-input-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.token-input-section:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.6) 0%,
        rgba(30, 41, 59, 0.8) 100%);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(212, 175, 55, 0.2);
}

.token-input-section:hover::before {
    left: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.section-label {
    font-family: 'RemiliaMincho', serif;
    font-size: 11px;
    color: rgba(212, 175, 55, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.balance {
    font-family: 'RemiliaMincho', serif;
    font-size: 9px;
    color: rgba(186, 166, 116, 0.6);
    display: flex;
    align-items: center;
    gap: 4px;
}

.balance-label {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(186, 166, 116, 0.5);
}

.balance-amount {
    color: rgba(212, 175, 55, 0.9);
    font-weight: 600;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.token-input {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.amount-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: 'RemiliaMincho', serif;
    font-size: 20px;
    font-weight: 700;
    color: #E5E7EB;
    outline: none;
    padding: 4px 0;
    letter-spacing: -0.5px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
    min-width: 0;
    max-width: 100%;
}

.amount-input::placeholder {
    color: rgba(186, 166, 116, 0.3);
}

.amount-input:disabled,
.amount-input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

.token-selector {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 90px;
    position: relative;
    overflow: hidden;
    user-select: none;
    flex-shrink: 1;
}

.token-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.3s ease;
}

.token-selector:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.8) 0%,
        rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(212, 175, 55, 0.2);
}

.token-selector:hover::before {
    left: 100%;
}

.token-selector:active {
    transform: translateY(0px);
}

.selected-token, .select-token {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #E5E7EB;
    font-family: 'RemiliaMincho', serif;
    font-weight: 600;
    font-size: 13px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
}

.token-logo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.2);
    object-fit: cover;
    flex-shrink: 0;
}

.token-text {
    font-size: 13px;
    letter-spacing: 0.2px;
    color: rgba(212, 175, 55, 0.9);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.token-placeholder-icon {
    font-size: 16px;
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.3s;
    color: rgba(186, 166, 116, 0.6);
    flex-shrink: 0;
}

.token-selector:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: rgba(212, 175, 55, 0.9);
}

.quick-amounts {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.quick-amount {
    flex: 1;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.4) 0%,
        rgba(51, 65, 85, 0.6) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    color: rgba(186, 166, 116, 0.6);
    padding: 6px 10px;
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
    text-align: center;
}

.quick-amount:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.6) 0%,
        rgba(30, 41, 59, 0.8) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    color: rgba(186, 166, 116, 0.8);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.1);
    transform: translateY(-1px);
}

.quick-amount:active {
    transform: translateY(0);
}

.swap-direction {
    display: flex;
    justify-content: center;
    margin: 4px 0;
    position: relative;
    z-index: 1;
}

.swap-flip-btn {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.9) 0%,
        rgba(51, 65, 85, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    color: rgba(186, 166, 116, 0.8);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.swap-flip-btn:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.95) 0%,
        rgba(30, 41, 59, 0.98) 100%);
    border-color: rgba(212, 175, 55, 0.6);
    color: rgba(212, 175, 55, 0.9);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 8px rgba(212, 175, 55, 0.3);
    transform: scale(1.05);
}

.swap-flip-btn.flipping {
    animation: flipRotate 0.3s ease-in-out;
}

@keyframes flipRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(90deg) scale(1.1); }
    100% { transform: rotate(180deg) scale(1); }
}

.quote-info {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.5) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 12px;
    margin: 12px 0;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    flex-shrink: 0;
}

.quote-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.quote-info:hover::before {
    left: 100%;
}

.quote-info.animate-in {
    animation: slideIn 0.3s ease;
}

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

.quote-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-family: 'RemiliaMincho', serif;
    font-size: 11px;
}

.quote-row:first-child {
    padding-top: 0;
}

.quote-row:last-child:not(.quote-route) {
    padding-bottom: 0;
}

.quote-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(186, 166, 116, 0.6);
    font-size: 10px;
}

.quote-icon {
    font-size: 11px;
}

.quote-value {
    color: rgba(212, 175, 55, 0.9);
    font-weight: 600;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.quote-value.impact-low {
    color: rgba(34, 197, 94, 0.9);
}

.quote-value.impact-medium {
    color: rgba(251, 191, 36, 0.9);
}

.quote-value.impact-high {
    color: rgba(239, 68, 68, 0.9);
}

.quote-route {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'RemiliaMincho', serif;
}

.route-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(186, 166, 116, 0.6);
}

.route-path {
    font-size: 10px;
    color: rgba(212, 175, 55, 0.9);
    font-weight: 600;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.swap-actions {
    padding: 12px 16px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.15) 0%,
        rgba(51, 65, 85, 0.2) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    position: sticky;
    bottom: 0;
    z-index: 10;
    backdrop-filter: blur(4px);
    margin: 0;
    flex-shrink: 0;
}

.btn-swap {
    width: 100%;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    color: rgba(186, 166, 116, 0.8);
    font-family: 'RemiliaMincho', serif;
    font-size: 12px;
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.btn-swap::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.3s ease;
}

.btn-swap:hover:not(:disabled) {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.8) 0%,
        rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.9);
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(212, 175, 55, 0.2);
}

.btn-swap:hover:not(:disabled)::before {
    left: 100%;
}

.btn-swap:active:not(:disabled) {
    transform: translateY(0);
}

.btn-swap:disabled {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.5) 100%);
    color: rgba(186, 166, 116, 0.3);
    cursor: not-allowed;
    border-color: rgba(212, 175, 55, 0.1);
    opacity: 0.5;
}

.btn-swap.loading {
    cursor: wait;
}

.btn-swap.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: rgba(212, 175, 55, 0.9);
    animation: spin 1s linear infinite;
}

.swap-settings-panel {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.3) 0%,
        rgba(51, 65, 85, 0.5) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    padding: 12px;
    margin: 0 16px 12px 16px;
}

.settings-item {
    margin-bottom: 12px;
}

.settings-item:last-child {
    margin-bottom: 0;
}

.settings-item label {
    display: block;
    font-family: 'RemiliaMincho', serif;
    font-size: 11px;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.9);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.slippage-options {
    display: flex;
    gap: 6px;
    align-items: center;
}

.slippage-btn {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    color: rgba(186, 166, 116, 0.6);
    padding: 6px 10px;
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.slippage-btn:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.8) 0%,
        rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(212, 175, 55, 0.3);
    color: rgba(186, 166, 116, 0.8);
}

.slippage-btn.active {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.9) 0%,
        rgba(30, 41, 59, 0.95) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    color: rgba(212, 175, 55, 0.9);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.2);
}

.slippage-custom {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    color: #E5E7EB;
    padding: 6px 10px;
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    width: 70px;
    outline: none;
    transition: all 0.15s ease;
}

.slippage-custom:focus {
    border-color: rgba(212, 175, 55, 0.5);
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.8) 0%,
        rgba(30, 41, 59, 0.9) 100%);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.2);
}

/* Token Selection Modal - MorrHollow Style */
.token-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    animation: modalFadeIn 0.3s ease-in-out;
    display: none;
}

.token-modal.modal-open {
    display: block !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    max-width: 90%;
    height: 600px;
    max-height: 80vh;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        rgba(186, 166, 116, 0.3) 0 0 40px,
        rgba(186, 166, 116, 0.2) 0 0 20px,
        rgba(186, 166, 116, 0.1) 1px 1px 3px inset,
        rgba(0, 0, 0, 0.5) 0 12px 40px;
    font-family: 'RemiliaMincho', serif;
    animation: modalSlideUp 0.4s ease-out;
    background: transparent;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(30, 41, 59, 0.05) 0%,
        rgba(51, 65, 85, 0.08) 50%,
        rgba(30, 41, 59, 0.05) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: -1;
    pointer-events: none;
}

.modal-header {
    background: linear-gradient(0deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.98));
    height: 2.25rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    position: relative;
    z-index: 20;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
    font-family: 'RemiliaMincho', serif;
    font-size: 0.9rem;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
    color: rgba(186, 166, 116, 0.7);
    font-weight: 400;
    opacity: 0.8;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-close {
    width: 20px;
    height: 20px;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.9) 0%,
        rgba(51, 65, 85, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: rgba(186, 166, 116, 0.8);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.8);
}

.modal-close:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.9) 0%,
        rgba(30, 41, 59, 0.95) 100%);
    border-color: rgba(239, 68, 68, 0.5);
    color: rgba(239, 68, 68, 0.9);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.2);
}

.modal-body {
    padding: 0;
    background: transparent;
    position: relative;
    z-index: 10;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-container {
    position: relative;
    padding: 12px;
    flex-shrink: 0;
}

.search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: rgba(186, 166, 116, 0.4);
}

.token-search {
    width: 100%;
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    color: #E5E7EB;
    font-family: 'RemiliaMincho', serif;
    font-size: 11px;
    padding: 8px 12px 8px 32px;
    outline: none;
    transition: all 0.15s ease;
}

.token-search::placeholder {
    color: rgba(186, 166, 116, 0.4);
}

.token-search:focus {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.8) 0%,
        rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.2);
}

.popular-tokens {
    padding: 0 12px 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    flex-shrink: 0;
}

.popular-label {
    display: block;
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(186, 166, 116, 0.6);
    margin-bottom: 8px;
    font-weight: 600;
}

.popular-badges {
    display: flex;
    gap: 6px;
}

.popular-badge {
    background: linear-gradient(180deg,
        rgba(30, 41, 59, 0.6) 0%,
        rgba(51, 65, 85, 0.8) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 4px;
    padding: 4px 10px;
    color: rgba(186, 166, 116, 0.8);
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.popular-badge:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.8) 0%,
        rgba(30, 41, 59, 0.9) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.2);
}

.token-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.token-list::-webkit-scrollbar {
    width: 8px;
}

.token-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.token-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.4) 0%,
        rgba(186, 166, 116, 0.6) 100%);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.token-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0.6) 0%,
        rgba(186, 166, 116, 0.8) 100%);
}

.token-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.token-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.5s ease;
}

.token-option:hover {
    background: linear-gradient(180deg,
        rgba(51, 65, 85, 0.6) 0%,
        rgba(30, 41, 59, 0.8) 100%);
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(212, 175, 55, 0.2);
}

.token-option:hover::before {
    left: 100%;
}

.token-option .token-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.2);
    object-fit: cover;
}

.token-info {
    flex: 1;
}

.token-name {
    font-family: 'RemiliaMincho', serif;
    font-size: 13px;
    font-weight: 600;
    color: #E5E7EB;
    margin-bottom: 2px;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

.token-symbol {
    font-family: 'RemiliaMincho', serif;
    font-size: 10px;
    color: rgba(186, 166, 116, 0.6);
}

.token-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: 'RemiliaMincho', serif;
}

.balance-value {
    font-size: 12px;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.9);
}

.balance-symbol {
    font-size: 9px;
    color: rgba(186, 166, 116, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .swap-container {
        padding: 12px;
    }

    .token-input-section {
        padding: 10px;
    }

    .amount-input {
        font-size: 16px;
    }

    .modal-content {
        width: 95%;
        max-height: calc(100vh - 32px);
    }

    .quick-amounts {
        flex-wrap: wrap;
    }

    .slippage-options {
        flex-wrap: wrap;
    }
}