/* TDDDG cookie consent — dark theme, equal-prominence actions */
.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10000;
    padding: 1rem;
    pointer-events: none;
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
    display: none !important;
}

.cookie-banner__panel {
    pointer-events: auto;
    max-width: 720px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
    color: #e2e8f0;
}

.cookie-banner__title {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: #00f2ff;
}

.cookie-banner__text {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.cookie-banner__text a {
    color: #22d3ee;
}

.cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.cookie-banner__actions .cookie-btn {
    width: 100%;
}

.cookie-banner__secondary {
    margin-top: 0.65rem;
    text-align: center;
}

.cookie-btn {
    appearance: none;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    line-height: 1.2;
}

.cookie-btn--accept,
.cookie-btn--reject {
    background: linear-gradient(135deg, #00f2ff, #8b5cf6);
    color: #fff;
    border-color: transparent;
}

.cookie-btn--reject {
    background: transparent;
    color: #e2e8f0;
    border-color: rgba(0, 242, 255, 0.45);
    box-shadow: inset 0 0 0 1px rgba(0, 242, 255, 0.15);
}

.cookie-btn--accept:hover,
.cookie-btn--reject:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.cookie-btn--ghost {
    background: transparent;
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.35);
    font-weight: 600;
}

.cookie-btn--ghost:hover {
    color: #00f2ff;
    border-color: rgba(0, 242, 255, 0.4);
}

.cookie-btn--save {
    background: linear-gradient(135deg, #00f2ff, #8b5cf6);
    color: #fff;
    width: 100%;
}

.cookie-banner__actions .cookie-btn--accept,
.cookie-banner__actions .cookie-btn--reject {
    min-height: 48px;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.65);
}

.cookie-modal__dialog {
    width: min(520px, 100%);
    max-height: min(90vh, 640px);
    overflow: auto;
    background: #0f172a;
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 14px;
    padding: 1.35rem;
    color: #e2e8f0;
}

.cookie-modal__dialog h2 {
    margin: 0 0 0.75rem;
    color: #00f2ff;
    font-size: 1.25rem;
}

.cookie-category {
    border: 1px solid rgba(0, 242, 255, 0.12);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(7, 10, 15, 0.55);
}

.cookie-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cookie-category__head strong {
    color: #e2e8f0;
}

.cookie-category p {
    margin: 0.45rem 0 0;
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.45;
}

.cookie-switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    background: rgba(100, 116, 139, 0.5);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
}

.cookie-switch span::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #e2e8f0;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cookie-switch input:checked + span {
    background: linear-gradient(135deg, #00f2ff, #8b5cf6);
}

.cookie-switch input:checked + span::before {
    transform: translateX(20px);
}

.cookie-switch input:disabled + span {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-modal__actions {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.affiliate-disclosure {
    max-width: 1200px;
    margin: 0 auto 1rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-disclosure {
    max-width: 720px;
    margin: 0 auto 0.55rem;
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.45;
    opacity: 0.9;
}

.footer-links a[data-open-cookie-settings] {
    cursor: pointer;
}

@media (max-width: 560px) {
    .cookie-banner__actions {
        grid-template-columns: 1fr;
    }
}
