/* ═══════════════════════════════
   COOKIE BAR — GUSTAV
═══════════════════════════════ */
.cc-bar {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 9500;
    max-width: 780px;
    margin: 0 auto;
    padding: 22px 26px;
    border-radius: 14px;
    background: rgba(13, 8, 0, 0.9);
    border: 1px solid rgba(255, 153, 0, 0.22);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    color: #FAF8F4;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 153, 0, 0.06);
    display: none;
    gap: 24px;
    align-items: center;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cc-bar.show { display: flex; }
.cc-bar.in { opacity: 1; transform: none; }
.cc-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FF9900 40%, transparent);
}
.cc-text {
    flex: 1;
    color: rgba(250, 248, 244, 0.8);
    font-weight: 300;
}
.cc-text strong {
    color: #FAF8F4;
    font-weight: 600;
}
.cc-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cc-btn {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.cc-btn.ok {
    background: #FF9900;
    color: #0d0800;
    box-shadow: 0 0 24px rgba(255, 153, 0, 0.28);
}
.cc-btn.ok:hover {
    background: #D97C00;
    box-shadow: 0 0 32px rgba(255, 153, 0, 0.4);
    transform: translateY(-1px);
}
.cc-btn.settings {
    background: rgba(255, 255, 255, 0.05);
    color: #FAF8F4;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.cc-btn.settings:hover {
    border-color: #FF9900;
    color: #FF9900;
    background: rgba(255, 153, 0, 0.1);
}
.cc-btn:focus-visible {
    outline: 2px solid #FF9900;
    outline-offset: 3px;
}

/* ═══════════════════════════════
   COOKIE MODAL
═══════════════════════════════ */
.cc-mod {
    position: fixed;
    inset: 0;
    z-index: 9600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 4, 1, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.cc-mod.show { display: flex; }
.cc-mod.in { opacity: 1; }
.cc-mod-card {
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(13, 8, 0, 0.96);
    border: 1px solid rgba(255, 153, 0, 0.22);
    border-radius: 14px;
    padding: 40px 40px 32px;
    color: #FAF8F4;
    font-family: 'DM Sans', system-ui, sans-serif;
    transform: translateY(24px);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    position: relative;
}
.cc-mod.in .cc-mod-card { transform: none; }
.cc-mod-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 40px;
    right: 40px;
    height: 1px;
    background: linear-gradient(90deg, #FF9900, transparent 70%);
}
.cc-mod h2 {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    line-height: 1.15;
}
.cc-mod-intro {
    color: rgba(250, 248, 244, 0.6);
    font-size: 13px;
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 24px;
}
.cc-cat {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.cc-cat-body { flex: 1; }
.cc-cat h3 {
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.cc-cat p {
    font-size: 12px;
    color: rgba(250, 248, 244, 0.5);
    line-height: 1.65;
    font-weight: 300;
}
.cc-toggle {
    flex-shrink: 0;
    margin-top: 3px;
    position: relative;
}
.cc-toggle input {
    position: absolute;
    opacity: 0;
    width: 40px;
    height: 22px;
    margin: 0;
    cursor: pointer;
}
.cc-toggle label {
    display: block;
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.cc-toggle label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: rgba(250, 248, 244, 0.7);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}
.cc-toggle input:checked + label {
    background: rgba(255, 153, 0, 0.28);
    border-color: rgba(255, 153, 0, 0.5);
}
.cc-toggle input:checked + label::after {
    transform: translateX(18px);
    background: #FF9900;
}
.cc-toggle input:disabled + label {
    opacity: 0.55;
    cursor: not-allowed;
}
.cc-toggle input:focus-visible + label {
    outline: 2px solid #FF9900;
    outline-offset: 3px;
}
.cc-mod-foot {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.cc-mod-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: rgba(250, 248, 244, 0.5);
    font-size: 22px;
    line-height: 1;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s ease;
}
.cc-mod-close:hover { color: #FF9900; }
.cc-mod-close:focus-visible { outline: 2px solid #FF9900; outline-offset: 2px; }

/* Reopen link (footer) — matches .fi-links a look */
.cc-reopen {
    background: none;
    border: none;
    padding: 0;
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: rgba(250, 248, 244, 0.46);
    cursor: pointer;
    transition: color 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.cc-reopen:hover { color: #FF9900; }
.cc-reopen:focus-visible { outline: 2px solid #FF9900; outline-offset: 3px; border-radius: 2px; }

@media (max-width: 640px) {
    .cc-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 16px;
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
    .cc-actions { justify-content: flex-end; }
    .cc-mod-card { padding: 32px 24px 24px; }
    .cc-mod-card::before { left: 24px; right: 24px; }
    .cc-mod-foot { flex-direction: column-reverse; align-items: stretch; }
    .cc-mod-foot .cc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-bar,
    .cc-mod,
    .cc-mod-card,
    .cc-btn,
    .cc-toggle label,
    .cc-toggle label::after {
        transition: none;
    }
}
