/* Updated discount_code.css - More specific selectors to avoid conflicts */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #151b28;
    --bg-tertiary: #1f2632;
    --border-color: #2d3748;
    --border-hover: #4a5568;
    --text-primary: #f7fafc;
    --text-secondary: #a0aec0;
    --accent-color: #38b2ac;
    --success-color: #48bb78;
    --error-color: #f56565;
    --warning-color: #ed8936;
}

/* ONLY target discount-specific elements - no interference with your main buttons */
.discount-code-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    font-family: inherit;
    transition: all 0.3s ease;
}

.discount-code-container:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.discount-code-container .discount-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.discount-code-container .discount-title {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.discount-code-container .discount-badge {
    background: var(--accent-color);
    color: var(--bg-primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discount-code-container .discount-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: stretch;
}

.discount-code-container .discount-input {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    height: 48px;
    box-sizing: border-box;
    min-width: 0;
}

.discount-code-container .discount-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.1);
}

.discount-code-container .discount-input::placeholder {
    color: var(--text-secondary);
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
}

/* Very specific selector for discount apply button only */
.discount-code-container .discount-apply-btn {
    background: var(--accent-color) !important;
    border: none !important;
    border-radius: 8px !important;
    color: var(--bg-primary) !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    height: 48px !important;
    min-width: 120px !important;
    max-width: 140px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
}

.discount-code-container .discount-apply-btn:hover:not(:disabled) {
    background: #319795 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(56, 178, 172, 0.3) !important;
}

.discount-code-container .discount-apply-btn:active:not(:disabled) {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(56, 178, 172, 0.3) !important;
}

.discount-code-container .discount-apply-btn:disabled {
    background: var(--border-color) !important;
    color: var(--text-secondary) !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.discount-code-container .discount-feedback {
    min-height: 24px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 8px 0;
    transition: all 0.3s ease;
    font-weight: 500;
    line-height: 1.4;
}

.discount-code-container .discount-feedback.success {
    color: var(--success-color);
    background: rgba(72, 187, 120, 0.1);
    border-left: 3px solid var(--success-color);
}

.discount-code-container .discount-feedback.error {
    color: var(--error-color);
    background: rgba(245, 101, 101, 0.1);
    border-left: 3px solid var(--error-color);
}

.discount-code-container .discount-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(72, 187, 120, 0.08);
    border: 1px solid var(--success-color);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    animation: slideIn 0.4s ease;
}

.discount-code-container .discount-applied-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.discount-code-container .discount-code-used {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 1.5px;
}

.discount-code-container .discount-savings {
    color: var(--success-color);
    font-size: 18px;
    font-weight: 700;
}

.discount-code-container .discount-remove-btn {
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    color: var(--text-secondary) !important;
    padding: 8px 16px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
    height: 36px !important;
    min-width: 80px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: inherit !important;
}

.discount-code-container .discount-remove-btn:hover {
    border-color: var(--error-color) !important;
    color: var(--error-color) !important;
    background: rgba(245, 101, 101, 0.08) !important;
}

/* Loading state */
.discount-code-container .discount-apply-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.discount-code-container .discount-apply-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    margin-left: -9px;
    border: 2px solid var(--bg-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: discount-spin 0.8s linear infinite;
}

@keyframes discount-spin {
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .discount-code-container .discount-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .discount-code-container .discount-apply-btn {
        width: 100% !important;
        max-width: none !important;
    }
    
    .discount-code-container .discount-applied {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .discount-code-container .discount-remove-btn {
        width: 100% !important;
        max-width: none !important;
    }
}


/* Add this CSS to your existing styles */

/* Wallet status indicator */
.wallet-status-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(21, 27, 40, 0.95);
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 12px 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wallet-status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-connected-dot {
    width: 8px;
    height: 8px;
    background: #48bb78;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.wallet-address {
    color: #f7fafc;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.disconnect-wallet-btn {
    background: transparent;
    border: 1px solid #2d3748;
    border-radius: 50%;
    color: #a0aec0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.disconnect-wallet-btn:hover {
    border-color: #f56565;
    color: #f56565;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.notification {
    background: rgba(21, 27, 40, 0.95);
    border: 1px solid #2d3748;
    border-radius: 8px;
    padding: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-message {
    color: #f7fafc;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.notification-close {
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 18px;
}

.notification-success {
    border-left: 4px solid #48bb78;
}

.notification-success .notification-icon {
    color: #48bb78;
}

.notification-error {
    border-left: 4px solid #f56565;
}

.notification-error .notification-icon {
    color: #f56565;
}

.notification-info {
    border-left: 4px solid #38b2ac;
}

.notification-info .notification-icon {
    color: #38b2ac;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* Add this CSS for transaction status display */
.transaction-status {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(21, 27, 40, 0.98);
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    min-width: 300px;
    z-index: 10000;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: statusSlideIn 0.3s ease;
}

.transaction-status-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.transaction-status-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.transaction-status-message {
    color: #f7fafc;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
    white-space: pre-line;
    font-family: 'Courier New', monospace;
}

.transaction-status-close {
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.transaction-status-close:hover {
    color: #f7fafc;
}

.transaction-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #2d3748;
    border-top-color: #38b2ac;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 12px;
    flex-shrink: 0;
}

.transaction-status-success {
    border-left: 4px solid #22c55e;
}

.transaction-status-error {
    border-left: 4px solid #f56565;
}

.transaction-status-processing {
    border-left: 4px solid #38b2ac;
}

.transaction-status-info {
    border-left: 4px solid #3b82f6;
}

@keyframes statusSlideIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

 /* Trading Tabs */
    .trading-tabs {
        display: flex;
        justify-content: center;
        background-color: #1c2431;
        border-radius: 12px;
        margin: 20px auto;
        max-width: 400px;
        padding: 4px;
    }
    
    .tab-button {
        flex: 1;
        background: none;
        border: none;
        color: #9ca3af;
        padding: 12px 20px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .tab-button.active {
        background: linear-gradient(90deg, #4c6ef5, #be4bdb);
        color: white;
    }
    
    .tab-button:hover:not(.active) {
        background: rgba(59, 130, 246, 0.1);
        color: white;
    }
    
    /* Main layout */
    .main-container {
        display: flex;
        justify-content: center;
        gap: 30px;
        padding: 40px 20px;
        flex: 1;
        align-items: flex-start;
        max-width: 1400px;
        margin: 0 auto;
        width: 100%;
    }
    
    .main-container {
    display: flex !important;
    flex-direction: row !important;  /* ← Add this explicitly */
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    flex: 1;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}


    .tools-container {
        flex: 0 0 35%;
        max-width: 450px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        animation: fadeInUp 0.8s ease;
    }

    .swap-container {
        flex: 0 0 65%;
        max-width: 750px;
        animation: fadeInUp 0.6s ease;
    }

    .swap-box, .calculator-box, .analyzer-box {
        background-color: #1c2431;
        padding: 36px;
        border-radius: 18px;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
        width: 100%;
        box-sizing: border-box;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    /* Enhanced hover effects */
    .swap-box::before, .calculator-box::before, .analyzer-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
        transition: left 0.6s;
        pointer-events: none;
    }
    
    .swap-box:hover, .calculator-box:hover, .analyzer-box:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                    0 0 20px rgba(59, 130, 246, 0.2);
        border: 1px solid rgba(59, 130, 246, 0.3);
    }
    
    .swap-box:hover::before, .calculator-box:hover::before, .analyzer-box:hover::before {
        left: 100%;
    }
    
    .swap-box:active, .calculator-box:active, .analyzer-box:active {
        transform: translateY(-4px) scale(1.01);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
                    0 0 30px rgba(59, 130, 246, 0.4);
    }

    .calculator-box, .analyzer-box {
        padding: 24px;
    }

    .swap-box {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .swap-label {
        font-size: 16px;
        color: #ccc;
        margin-bottom: 8px;
    }

    .token-select-wrapper {
        position: relative;
        width: 100%;
    }

    .token-select {
        width: 100%;
        padding: 16px 16px 16px 50px;
        border-radius: 12px;
        border: none;
        background-color: #2a3345;
        color: white;
        font-size: 18px;
        box-sizing: border-box;
        transition: all 0.3s ease;
        appearance: none;
        cursor: pointer;
        background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 4 5'><path d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 12px;
    }

    .token-logo {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 24px;
        height: 24px;
        border-radius: 50%;
        z-index: 1;
        pointer-events: none;
    }

    .swap-input, .calculator-input {
        width: 100%;
        padding: 16px;
        border-radius: 12px;
        border: none;
        background-color: #2a3345;
        color: white;
        font-size: 18px;
        box-sizing: border-box;
        transition: all 0.3s ease;
    }

    .calculator-input {
        padding: 12px;
        font-size: 16px;
        border: 1px solid #444;
        margin-bottom: 12px;
    }

    .calculator-select {
        width: 100%;
        padding: 12px;
        background-color: #2a3345;
        color: white;
        border: 1px solid #444;
        border-radius: 8px;
        margin-bottom: 12px;
        transition: border-color 0.3s, background-color 0.3s;
    }
    
    .calculator-select:hover {
        border-color: #3b82f6;
    }

    .token-select:focus, .swap-input:focus, .calculator-input:focus {
        outline: none;
        background-color: #334155;
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.4),
                    inset 0 0 10px rgba(59, 130, 246, 0.1);
        border: 1px solid #3b82f6;
    }

    /* Enhanced button styles with glow */
    .swap-button, .buy-button, .sell-button {
        background: linear-gradient(90deg, #4c6ef5, #be4bdb);
        color: white;
        border: none;
        padding: 18px;
        font-size: 18px;
        border-radius: 14px;
        cursor: pointer;
        margin-top: 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 600;
        position: relative;
        overflow: hidden;
    }
    
    .swap-button::before, .buy-button::before, .sell-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
        transition: width 0.4s, height 0.4s;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        pointer-events: none;
    }
    
    .swap-button:hover::before, .buy-button:hover::before, .sell-button:hover::before {
        width: 300px;
        height: 300px;
    }

    .buy-button {
        background: linear-gradient(90deg, #10b981, #34d399);
    }

    .sell-button {
        background: linear-gradient(90deg, #ef4444, #f87171);
    }

    .swap-button:hover, .buy-button:hover, .sell-button:hover {
        opacity: 0.9;
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                    0 0 20px rgba(76, 110, 245, 0.4);
    }
    
    .swap-button:active, .buy-button:active, .sell-button:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                    0 0 30px rgba(76, 110, 245, 0.6);
    }

    .swap-button:disabled, .buy-button:disabled, .sell-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .extra-features {
        margin-top: 20px;
        font-size: 15px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .extra-features label {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .extra-features input, .extra-features select {
        background-color: #2a3345;
        color: white;
        padding: 8px 12px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        transition: background-color 0.3s;
    }

    .extra-features select:hover, .extra-features input:hover {
        background-color: #334155;
    }

    /* Buy/Sell specific styles */
    .preset-amounts {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .preset-button {
        background: #2a3345;
        color: white;
        border: 1px solid #444;
        padding: 10px 16px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .preset-button:hover, .preset-button.active {
        background: #3b82f6;
        border-color: #3b82f6;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    }

    .percentage-buttons {
        display: flex;
        gap: 8px;
        margin-bottom: 16px;
    }

    .percentage-button {
        flex: 1;
        background: #2a3345;
        color: white;
        border: 1px solid #444;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 14px;
    }

    .percentage-button:hover, .percentage-button.active {
        background: #3b82f6;
        border-color: #3b82f6;
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    }

    .current-price {
        font-size: 24px;
        font-weight: bold;
        color: white;
        margin: 10px 0;
    }

    .price-change {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .price-change.positive { color: #10b981; }
    .price-change.negative { color: #ef4444; }

    .swap-summary {
        margin-top: 20px;
        background: #1a1a2e;
        border-radius: 12px;
        padding: 16px;
        color: #ccc;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }
    
    .swap-summary:hover {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
        transform: scale(1.01);
    }

    .swap-summary div {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        padding: 4px 0;
    }

    .swap-summary div:last-child {
        margin-bottom: 0;
    }
    
    .calculator-box h2, .analyzer-box h2 {
        color: #fff;
        font-size: 1.25rem;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .calculator-box p, .analyzer-box p {
        color: #bbb;
        font-size: 0.875rem;
        margin-bottom: 16px;
    }
    
    .estimate-display {
        background: rgba(59, 130, 246, 0.1);
        padding: 12px;
        border-radius: 8px;
        border-left: 4px solid #3b82f6;
        color: #aaa;
        transition: all 0.3s ease;
    }
    
    .estimate-display:hover {
        transform: scale(1.02);
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
        background: rgba(59, 130, 246, 0.15);
    }

    .estimate-display span {
        color: white;
        font-weight: bold;
    }

    .analyzer-content {
        color: #aaa;
        font-size: 0.875rem;
    }

    .analyzer-content div {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        padding: 8px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s ease;
        border-radius: 6px;
    }
    
    .analyzer-content div:hover {
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
        transform: translateX(5px);
        box-shadow: inset 3px 0 0 #3b82f6;
    }

    .analyzer-content div:last-child {
        border-bottom: none;
        padding-top: 12px;
        font-style: italic;
        text-align: center;
        color: #666;
    }

    /* Enhanced Gas Settings */
    .gas-settings {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        border-radius: 12px;
        padding: 16px;
        margin-top: 16px;
        border: 1px solid rgba(59, 130, 246, 0.2);
    }

    .gas-options {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
    }

    .gas-option {
        flex: 1;
        background: #2a3345;
        border: 1px solid #444;
        color: white;
        padding: 8px 6px;
        border-radius: 6px;
        cursor: pointer;
        text-align: center;
        font-size: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .gas-option:hover {
        background: linear-gradient(45deg, #3b82f6, #8b5cf6);
        border-color: #3b82f6;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    }
    
    .gas-option.active {
        background: linear-gradient(45deg, #3b82f6, #8b5cf6);
        border-color: #3b82f6;
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
        animation: pulseGlow 2s infinite;
    }
    
    @keyframes pulseGlow {
        0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
        50% { box-shadow: 0 0 30px rgba(59, 130, 246, 0.8); }
    }

    .gas-estimate {
        font-size: 12px;
        color: #999;
        text-align: center;
    }
    
    .network-status {
        font-size: 12px;
        color: #10b981;
        text-align: center;
        margin-top: 8px;
        font-weight: 500;
    }
    
    .network-status.congested {
        color: #f59e0b;
    }

    .network-status.high {
        color: #ef4444;
    }

    /* Modal Styles */
    .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

    .modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #e5e7eb;
}


    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-header h3 {
        color: white;
        margin: 0;
        font-size: 18px;
    }

    .modal-close {
        background: none;
        border: none;
        color: #ccc;
        font-size: 24px;
        cursor: pointer;
        padding: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-close:hover {
        color: white;
    }

    .modal-body {
        padding: 20px 24px;
        color: #ccc;
    }

    .modal-body p {
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .modal-actions {
        display: flex;
        gap: 12px;
        padding: 20px 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .modal-btn {
        flex: 1;
        padding: 12px 20px;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .modal-btn.confirm {
        background: linear-gradient(90deg, #4c6ef5, #be4bdb);
        color: white;
    }

    .modal-btn.confirm:hover {
        opacity: 0.9;
        transform: translateY(-2px);
    }

    .modal-btn.cancel {
        background: #374151;
        color: white;
        border: 1px solid #4b5563;
    }

    .modal-btn.cancel:hover {
        background: #4b5563;
    }

    .swap-confirmation-details {
        background: rgba(26, 26, 46, 0.5);
        border-radius: 8px;
        padding: 16px;
        margin-top: 16px;
    }

    .detail-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        padding: 4px 0;
    }

    .detail-row:last-child {
        margin-bottom: 0;
    }

    .wallet-info {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 14px;
    }

    .wallet-info p {
        margin: 4px 0;
        color: #10b981;
    }

    /* Notification Styles */
    .notification {
        position: fixed;
        top: 20px;
        right: 20px;
        padding: 12px 20px;
        border-radius: 8px;
        color: white;
        font-weight: 500;
        z-index: 1001;
        transform: translateX(400px);
        transition: transform 0.3s ease;
        max-width: 350px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .notification.show {
        transform: translateX(0);
    }

    .notification.success {
        background: linear-gradient(90deg, #10b981, #34d399);
    }

    .notification.error {
        background: linear-gradient(90deg, #ef4444, #f87171);
    }

    .notification.info {
        background: linear-gradient(90deg, #3b82f6, #6366f1);
    }

    /* Hide inactive tab content */
    .tab-content {
        display: none;
    }
    
    .tab-content.active {
        display: block;
    }

    /* Animations */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Responsive design */
    @media (max-width: 1024px) {
        .main-container {
            flex-direction: column;
            align-items: center;
            gap: 20px;
            padding: 20px 10px;
        }
        
        .tools-container, .swap-container {
            width: 100%;
            max-width: 600px;
        }
    }

    @media (max-width: 768px) {
        .main-container {
            padding: 20px 10px;
            gap: 20px;
        }
        
        .swap-box, .calculator-box, .analyzer-box {
            padding: 20px;
        }

        .trading-tabs {
            max-width: 350px;
            margin: 10px auto;
        }

        .preset-amounts {
            justify-content: center;
        }
    }
    
    /* Enhanced modal styles for wallet connection */
.wallet-connection-info {
    margin-top: 15px;
    padding: 12px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.connected-wallet-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.wallet-connection-required {
    text-align: center;
}

.connection-info {
    margin: 15px 0;
}

.connection-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #475569;
}

.swap-preview {
    margin-top: 15px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.preview-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: #1e293b;
}


/* Enhanced button styles with proper sizing - Updated to include new class names */
.swap-button, .buy-button, .sell-button,
.swap-btn, .buy-btn, .sell-btn {
    background: linear-gradient(90deg, #4c6ef5, #be4bdb);
    color: white;
    border: none;
    
    /* Make buttons ~1 inch tall and full width */
    padding: 24px 20px;  /* Increased vertical padding for ~1 inch height */
    height: 72px;        /* Approximately 1 inch (72-96px) */
    width: 100%;         /* Full width of container */
    
    font-size: 18px;
    border-radius: 14px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    
    /* Ensure proper display and text alignment */
    display: block;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.2;
    
    /* Prevent text wrapping and ensure button stays sized */
    white-space: nowrap;
    min-height: 72px;
    max-width: 100%;
}

.swap-button::before, .buy-button::before, .sell-button::before,
.swap-btn::before, .buy-btn::before, .sell-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transition: width 0.4s, height 0.4s;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
}

.swap-button:hover::before, .buy-button:hover::before, .sell-button:hover::before,
.swap-btn:hover::before, .buy-btn:hover::before, .sell-btn:hover::before {
    width: 300px;
    height: 300px;
}

.buy-button, .buy-btn {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.sell-button, .sell-btn {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.swap-button:hover, .buy-button:hover, .sell-button:hover,
.swap-btn:hover, .buy-btn:hover, .sell-btn:hover {
    opacity: 0.9;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(76, 110, 245, 0.4);
}

.swap-button:active, .buy-button:active, .sell-button:active,
.swap-btn:active, .buy-btn:active, .sell-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(76, 110, 245, 0.6);
}


/* Fix tab button text visibility */
.tab-button {
    color: #e5e7eb !important;
}

.tab-button.active {
    color: #ffffff !important;
}

.tab-button:hover:not(.active) {
    color: #ffffff !important;
}

/* Responsive sizing for smaller

.modal-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

.modal-content {
    background: white !important;
    color: #1a1a2e !important;
    max-width: 550px !important;
    border: none !important;
}

.modal-header h3 {
    color: #1a1a2e !important;
}

.modal-body {
    color: #374151 !important;
}

.modal-body p {
    color: #4b5563 !important;
}