/* ═══════════════════════════════════════════════════════════════════════
   Cookie Consent Banner
   ═══════════════════════════════════════════════════════════════════════ */

.nft-cb {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 999999;
    padding: 0 16px;
    animation: nftCbSlide 0.4s ease-out;
}

.nft-cb--bottom { bottom: 0; }
.nft-cb--top    { top: 0; }

@keyframes nftCbSlide {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.nft-cb--top .nft-cb__inner {
    border-radius: 0 0 12px 12px;
}

.nft-cb__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 28px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nft-cb__content {
    flex: 1;
    min-width: 280px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.nft-cb__icon {
    flex-shrink: 0;
    opacity: 0.7;
    margin-top: 2px;
}

.nft-cb__text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.nft-cb__link {
    text-decoration: underline;
    font-weight: 500;
    margin-left: 4px;
}

.nft-cb__link:hover {
    opacity: 0.8;
}

.nft-cb__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.nft-cb__btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    white-space: nowrap;
    line-height: 1;
}

.nft-cb__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nft-cb__btn:active {
    transform: translateY(0);
}

.nft-cb__btn--accept {
    color: #fff;
}

.nft-cb__btn--outline {
    background: transparent;
    border: 1px solid;
}

.nft-cb__btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════════════════
   Cookie Settings Modal
   ═══════════════════════════════════════════════════════════════════════ */

.nft-cm {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: nftCmFade 0.25s ease-out;
}

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

.nft-cm__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.nft-cm__dialog {
    position: relative;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nft-cm__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nft-cm__header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.nft-cm__close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    padding: 0 4px;
}

.nft-cm__close:hover { opacity: 1; }

.nft-cm__body {
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
}

.nft-cm__category {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nft-cm__category:last-child {
    border-bottom: none;
}

.nft-cm__cat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.nft-cm__cat-header strong {
    font-size: 15px;
}

.nft-cm__cat-desc {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.65;
    line-height: 1.4;
}

.nft-cm__cookies {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.nft-cm__cookies code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.nft-cm__cookie-info {
    font-size: 12px;
    opacity: 0.5;
}

/* Toggle switch */
.nft-cm__toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.nft-cm__toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.nft-cm__slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.nft-cm__slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.nft-cm__toggle input:checked + .nft-cm__slider {
    background: var(--incc-btn, #16a34a);
}

.nft-cm__toggle input:checked + .nft-cm__slider::before {
    transform: translateX(20px);
}

.nft-cm__toggle--locked {
    opacity: 0.6;
    pointer-events: none;
}

.nft-cm__footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.nft-cm__save {
    min-width: 160px;
}

/* ═══════════════════════════════════════════════════════════════════════
   Mobile
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
    .nft-cb__inner {
        padding: 16px 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .nft-cb__content {
        min-width: 0;
    }

    .nft-cb__icon { display: none; }

    .nft-cb__text p { font-size: 13px; }

    .nft-cb__actions {
        justify-content: stretch;
    }

    .nft-cb__btn {
        flex: 1;
        text-align: center;
        padding: 10px 12px;
        font-size: 12px;
    }

    .nft-cm__dialog {
        width: 95%;
        max-height: 90vh;
    }

    .nft-cm__header,
    .nft-cm__body,
    .nft-cm__footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}
