:root {
    --primary-dark: #0f1a32;
    --primary: #1e2a4a;
    --primary-light: #2a3a7c;
    --accent: #4361ee;
    --accent-light: #5e7aff;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --text-dark: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --bg: #a4abb2;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --radius: 10px;
    --radius-sm: 6px;  
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 14px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: modalopen 0.3s;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn {
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
}

.btn-secondary {
    background: var(--bg);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--border);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
    color: var(--text-dark);
}

.notification-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.qr-container {
    text-align: center;
    padding: 1.5rem;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: #f0f0f0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 5rem;
    color: var(--text-light);
}

.wallet-address-qr {
    margin-top: 1rem;
    font-family: monospace;
    font-size: 0.9rem;
    word-break: break-all;
}


.exchange-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.exchange-option {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border);
}

.exchange-option:hover {
    background: var(--border);
    transform: translateY(-2px);
}

.exchange-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.exchange-name {
    font-weight: 500;
    color: var(--text-dark);
}

@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 5px 0;
    }
}