.cookie-page {
    min-height: calc(100vh - 200px);
    padding: 42px 20px 70px;
    position: relative;
    overflow: hidden;
}

.cookie-page::before {
    content: '';
    position: absolute;
    top: -110px;
    left: 22%;
    width: 820px;
    height: 560px;
    background:
        radial-gradient(ellipse at 30% 10%, rgba(74, 163, 255, 0.10) 0%, transparent 48%),
        radial-gradient(ellipse at 82% 36%, rgba(16, 185, 129, 0.055) 0%, transparent 42%);
    pointer-events: none;
}

.cookie-page::after {
    content: '';
    position: absolute;
    right: -180px;
    bottom: 6%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(125, 175, 255, 0.055), transparent 62%);
    pointer-events: none;
}

.cookie-card {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    background:
        radial-gradient(ellipse at 18% 0%, rgba(74, 163, 255, 0.10) 0%, transparent 42%),
        linear-gradient(180deg, rgba(10, 15, 25, 0.58), rgba(7, 12, 22, 0.52));
    backdrop-filter: blur(16px) saturate(130%);
    border: 1px solid rgba(125, 175, 255, 0.14);
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.24);
    color: #cfe7ff;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cookie-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 175, 255, 0.42), transparent);
}

.cookie-header {
    margin: -2px 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

.cookie-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 140px;
    height: 1px;
    background: linear-gradient(90deg, rgba(74, 163, 255, 0.85), transparent);
}

.cookie-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #f4f8ff;
    margin: 0 0 12px;
    line-height: 1.08;
}

.cookie-text {
    font-size: 0.95rem;
    color: #9fb2ce;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 620px;
}

.cookie-toggle {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.cookie-toggle:hover {
    border-color: rgba(125, 175, 255, 0.22);
    background: rgba(74, 163, 255, 0.055);
}

.cookie-toggle label {
    font-size: 1rem;
    font-weight: 900;
    color: #eaf2ff;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
    width: 48px;
    height: 26px;
    appearance: none;
    background: rgba(255,255,255,0.13);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 26px;
    position: relative;
    cursor: pointer;
    transition: background 0.25s ease;
    flex-shrink: 0;
    margin-left: 14px;
}

.cookie-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 3px;
    transition: transform 0.25s ease;
    box-shadow: 0 3px 8px rgba(0,0,0,0.28);
}

.cookie-toggle input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #4aa3ff, #1f6fd6);
}

.cookie-toggle input[type="checkbox"]:checked::before {
    transform: translateX(22px);
}

.cookie-toggle input[type="checkbox"]:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"]:disabled::before {
    background: #d7e6ff;
}

.cookie-toggle-info {
    flex: 1;
}

.cookie-desc {
    font-size: 0.85rem;
    color: #8fa5c4;
    margin-top: 8px;
    line-height: 1.55;
}

.save-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 0;
    padding: 13px 22px;
    min-height: 46px;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, #4aa3ff, #1f6fd6);
    border: 1px solid rgba(125, 175, 255, 0.30);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 10px 24px rgba(74,163,255,0.28);
    transition: all 0.25s ease;
    cursor: pointer;
}

.save-cookie-btn::before {
    content: '\F26E';
    font-family: "bootstrap-icons";
}

.save-cookie-btn:hover {
    color: #fff;
    filter: brightness(1.07);
    box-shadow: 0 14px 30px rgba(74,163,255,0.34);
    transform: translateY(-1px);
}

.save-cookie-btn:active {
    transform: translateY(0);
}

.cookie-toast {
    position: fixed;
    top: 90px;
    right: 24px;
    background:
        linear-gradient(135deg, rgba(34, 197, 94, 0.96), rgba(22, 163, 74, 0.96));
    padding: 14px 20px;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    font-size: 0.95rem;
    box-shadow: 0 12px 34px rgba(34, 197, 94, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 576px) {
    .cookie-page {
        padding: 26px 12px 46px;
    }

    .cookie-card {
        padding: 22px 18px;
    }

    .cookie-title {
        font-size: 1.6rem;
    }

    .cookie-toggle {
        padding: 16px;
        align-items: flex-start;
    }

    .cookie-toggle label {
        font-size: 0.95rem;
    }

    .save-cookie-btn {
        width: 100%;
    }

    .cookie-toast {
        right: 12px;
        left: 12px;
        justify-content: center;
    }
}
