* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #08080c 0%, #0d0d14 50%, #0a0a12 100%);
}

.header-gradient {
    background: linear-gradient(90deg, rgba(151, 151, 255, 0.08) 0%, rgba(0, 193, 222, 0.08) 100%);
    backdrop-filter: blur(10px);
}

.card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #2a2a4e;
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease;
}

@media (min-width: 640px) {
    .card {
        padding: 1.5rem;
    }
}

.card:hover {
    border-color: #3a3a6e;
}

.input-field {
    width: 100%;
    background: #0d0d14;
    border: 1px solid #2a2a4e;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: #00C1DE;
    box-shadow: 0 0 0 3px rgba(0, 193, 222, 0.15);
}

.input-field::placeholder {
    color: #4a4a6e;
}

.input-select {
    background: #1a1a2e;
    border: 1px solid #2a2a4e;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    cursor: pointer;
}

.input-select:focus {
    outline: none;
    border-color: #00C1DE;
}

.btn-primary {
    background: linear-gradient(135deg, #9797FF 0%, #00C1DE 100%);
    color: #0d0d14;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    min-height: 44px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(151, 151, 255, 0.35);
}

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

.btn-secondary {
    background: transparent;
    color: #9797FF;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    border: 1px solid #2a2a4e;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    min-height: 44px;
}

.btn-secondary:hover {
    border-color: #9797FF;
    background: rgba(151, 151, 255, 0.1);
}

.wallet-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a1a2e;
    border: 1px solid #2a2a4e;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00D395;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 211, 149, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0, 211, 149, 0); }
}

.token-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #0d0d14;
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.token-card:hover {
    border-color: #00C1DE;
    transform: translateY(-2px);
}

.token-card.selected {
    border-color: #00C1DE;
    background: rgba(0, 193, 222, 0.1);
    box-shadow: 0 0 20px rgba(0, 193, 222, 0.2);
}

.selected-token-card {
    border-color: #00C1DE;
    background: linear-gradient(135deg, rgba(0, 193, 222, 0.1) 0%, rgba(151, 151, 255, 0.05) 100%);
}

.amount-input-wrapper {
    display: flex;
    align-items: center;
    background: #0d0d14;
    border: 1px solid #2a2a4e;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.amount-input-wrapper:focus-within {
    border-color: #00C1DE;
    box-shadow: 0 0 0 3px rgba(0, 193, 222, 0.15);
}

.amount-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    outline: none;
    min-width: 0;
}

.amount-input::placeholder {
    color: #4a4a6e;
}

.amount-suffix {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.max-btn {
    background: rgba(151, 151, 255, 0.2);
    color: #9797FF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.max-btn:hover {
    background: rgba(151, 151, 255, 0.3);
}

.summary-card {
    background: #0d0d14;
    border: 1px solid #2a2a4e;
    border-radius: 12px;
    padding: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #1a1a2e;
    font-size: 0.875rem;
}

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

.status-success {
    border-color: rgba(0, 211, 149, 0.5);
    background: rgba(0, 211, 149, 0.1);
}

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

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: #0d0d14;
    border: 1px solid #2a2a4e;
    border-radius: 10px;
    padding: 0.75rem 1rem;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #0d0d14;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #2a2a4e;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a6e;
}

@media (max-width: 640px) {
    .amount-input {
        font-size: 1.5rem;
    }
}