
.nft-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9998;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nft-modal.active {
    opacity: 1;
    pointer-events: all;
}

.nft-modal-content {
    width: 100%;
    max-height: 80vh;
    background: linear-gradient(180deg, #0a0e27 0%, #050812 100%);
    border-radius: 24px 24px 0 0;
    padding: 20px 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.nft-modal.active .nft-modal-content {
    transform: translateY(0);
}


.nft-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
}

.nft-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.nft-modal-subtitle {
    font-size: 13px;
    color: #8a8fa3;
    margin-top: 4px;
}

.nft-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8fa3;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nft-modal-close:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.1);
}


.nft-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 4px;
}


.nft-items-list::-webkit-scrollbar {
    width: 4px;
}

.nft-items-list::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.4);
    border-radius: 2px;
}

.nft-items-list::-webkit-scrollbar-thumb {
    background: rgba(74, 158, 255, 0.3);
    border-radius: 2px;
}

.nft-items-list::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 158, 255, 0.5);
}

.nft-item {
    background: rgba(20, 25, 45, 0.6);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(74, 158, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.nft-item-info {
    flex: 1;
    min-width: 0;
}

.nft-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.nft-item-meta {
    font-size: 12px;
    color: #8a8fa3;
}

.nft-item-link {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: #4a9eff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nft-item-link:active {
    transform: scale(0.95);
    background: rgba(74, 158, 255, 0.15);
}


.nft-item.success {
    border-color: rgba(46, 204, 113, 0.2);
}

.nft-item.success .nft-item-name {
    color: #2ecc71;
}

.nft-item.error {
    border-color: rgba(231, 76, 60, 0.2);
}

.nft-item.error .nft-item-name {
    color: #e74c3c;
}

.nft-item-error {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 4px;
    font-style: italic;
}


.nft-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8a8fa3;
    font-size: 14px;
}

.nft-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}


.nft-loading {
    text-align: center;
    padding: 40px 20px;
    color: #8a8fa3;
    font-size: 14px;
}

.nft-loading-spinner {
    font-size: 32px;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.nft-item.detected {
    border-color: rgba(74, 158, 255, 0.2);
}

.nft-item.detected .nft-item-name {
    color: #4a9eff;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: linear-gradient(180deg, #0a0e27 0%, #050812 100%);
    border-radius: 24px;
    padding: 20px;
    z-index: 10000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
    gap: 10px;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    flex: 1;
    text-align: center;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8fa3;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    margin-bottom: 20px;
}


.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(74, 158, 255, 0.4);
    border-radius: 5px;
    background: rgba(10, 14, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: linear-gradient(135deg, #4a9eff, #667eea);
    border-color: transparent;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.checkbox-text {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}


.form-group-inline {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(74, 158, 255, 0.1);
}

.checkbox-label-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.checkbox-label-inline input[type="checkbox"] {
    display: none;
}

.checkbox-text-inline {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.checkbox-custom-inline {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-custom-inline::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8a8fa3;
    transition: all 0.3s ease;
}

.checkbox-label-inline input[type="checkbox"]:checked + .checkbox-text-inline + .checkbox-custom-inline {
    background: linear-gradient(135deg, #4a9eff, #667eea);
}

.checkbox-label-inline input[type="checkbox"]:checked + .checkbox-text-inline + .checkbox-custom-inline::after {
    left: 22px;
    background: #ffffff;
}

.modal-footer {
    display: flex;
    gap: 10px;
}


.notifications-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.notifications-modal.active {
    opacity: 1;
    pointer-events: all;
}

.notifications-modal-content {
    width: calc(100% - 32px);
    max-width: 400px;
    max-height: 70vh;
    background: linear-gradient(180deg, #0a0e27 0%, #0d1235 100%);
    border-radius: 20px;
    padding: 20px 16px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 1px solid rgba(74, 158, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.notifications-modal.active .notifications-modal-content {
    transform: translateY(0);
}

.notifications-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
}

.notifications-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
}

.notifications-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8fa3;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notifications-modal-close:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.1);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
}

.notifications-list::-webkit-scrollbar {
    width: 4px;
}

.notifications-list::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.4);
    border-radius: 2px;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: rgba(74, 158, 255, 0.3);
    border-radius: 2px;
}


.notification-item {
    background: rgba(74, 158, 255, 0.05);
    border: 1px solid rgba(74, 158, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}

.notification-item.unread {
    background: rgba(74, 158, 255, 0.1);
    border-color: rgba(74, 158, 255, 0.2);
}

.notification-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.notification-icon {
    font-size: 16px;
}

.notification-type {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.notification-time {
    font-size: 11px;
    color: #8a8fa3;
    margin-left: auto;
}

.notification-text {
    font-size: 12px;
    color: #b8bdd0;
    line-height: 1.4;
}

.notification-amount {
    font-weight: 600;
    color: #4ade80;
}

.notification-amount.rejected {
    color: #ff6b7a;
}


.notifications-empty {
    text-align: center;
    padding: 40px 20px;
    color: #8a8fa3;
}

.notifications-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notifications-empty-text {
    font-size: 14px;
}
