/* ════════════════════════════════════════════════════════
   Laniakea Corp — Custom CSS (complémentaire à Tailwind)
   ════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────── */
:root {
    --brand-400: #b894f6;
    --brand-500: #9b6dec;
    --accent-400: #ffc83e;
    --accent-500: #faa439;
    --testimonial-speed: 40s;
}

/* ── Base ───────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(184, 148, 246, 0.3);
    color: #fff;
}

/* ── Focus visible (accessibilité) ──────────────────── */
:focus-visible {
    outline: 2px solid var(--brand-400);
    outline-offset: 2px;
}

/* ── Prose overrides (pages légales) ────────────────── */
.prose h2 {
    margin-top: 2rem;
}
.prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* ── Animations ─────────────────────────────────────── */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.6s ease-out both;
}

/* ── Scrollbar custom (Webkit) ──────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #07071a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ════════════════════════════════════════════════════════
   Testimonials — Auto-scrolling carousel
   ════════════════════════════════════════════════════════ */

/* Wrapper with fade edges */
.testimonials-track-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

/* Track: inline row of cards */
.testimonials-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
}

.testimonials-left {
    animation: testimonials-scroll-left var(--testimonial-speed) linear infinite;
}
.testimonials-right {
    animation: testimonials-scroll-right var(--testimonial-speed) linear infinite;
}

@keyframes testimonials-scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes testimonials-scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pause on hover */
.testimonials-track-wrapper:hover .testimonials-track {
    animation-play-state: paused;
}

/* Individual card */
.testimonial-card {
    flex-shrink: 0;
    width: 360px;
    padding: 24px;
    background: rgba(15, 15, 35, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.testimonial-card:hover {
    border-color: rgba(184, 148, 246, 0.2);
    box-shadow: 0 8px 32px rgba(184, 148, 246, 0.08);
    transform: translateY(-2px);
}

/* Line clamp for blockquote */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .testimonials-left,
    .testimonials-right {
        animation: none;
    }
    .testimonials-track {
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
        gap: 16px;
        padding: 0 16px;
    }
    .testimonials-track-wrapper {
        mask-image: none;
        -webkit-mask-image: none;
    }
    .testimonial-card {
        width: min(360px, 100%);
    }
}

/* Mobile: narrower cards */
@media (max-width: 480px) {
    .testimonial-card {
        width: 300px;
        padding: 20px;
    }
}

/* ════════════════════════════════════════════════════════
   Lead Widget v2 — "Lani" conversational assistant
   ════════════════════════════════════════════════════════ */

/* ── Trigger button ─────────────────────────────────── */
#lani-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-400), #7a3bc9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 24px rgba(184, 148, 246, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
#lani-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(184, 148, 246, 0.55);
}
#lani-trigger svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    transition: opacity 0.2s, transform 0.2s;
}
#lani-trigger .lani-close-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}
#lani-trigger.open .lani-chat-icon { opacity: 0; transform: rotate(90deg); }
#lani-trigger.open .lani-close-icon { opacity: 1; transform: rotate(0); }

/* notification badge */
.lani-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    border: 2px solid #0f0f23;
}
.lani-badge.visible {
    opacity: 1;
    transform: scale(1);
}

/* attention animation (bounce + glow) */
#lani-trigger.lani-attention {
    animation: lani-bounce 1s ease-in-out 3;
}
@keyframes lani-bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-4px); }
}

/* pulse ring */
#lani-trigger::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--brand-400);
    animation: lani-pulse 2.5s ease-out infinite;
}
#lani-trigger.open::after { display: none; }

@keyframes lani-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ── Tooltip on trigger ─────────────────────────────── */
#lani-tooltip {
    position: fixed;
    bottom: 92px;
    right: 24px;
    z-index: 9997;
    background: #1a1a3e;
    color: #fff;
    font-size: 0.85rem;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(184, 148, 246, 0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    max-width: 260px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s, transform 0.4s;
}
#lani-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    animation: lani-tooltip-glow 2s ease-in-out infinite alternate;
}
@keyframes lani-tooltip-glow {
    from { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
    to   { box-shadow: 0 4px 24px rgba(184,148,246,0.3), 0 0 8px rgba(184,148,246,0.15); }
}
#lani-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #1a1a3e;
    border-right: 1px solid rgba(184, 148, 246, 0.25);
    border-bottom: 1px solid rgba(184, 148, 246, 0.25);
    transform: rotate(45deg);
}

/* ── Chat panel ─────────────────────────────────────── */
#lani-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 9999;
    width: 390px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 140px);
    background: #0f0f23;
    border: 1px solid rgba(184, 148, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.35s, transform 0.35s;
}
#lani-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* header */
.lani-header {
    background: linear-gradient(135deg, #1a1040 0%, #0f0f23 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(184, 148, 246, 0.15);
}
.lani-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-400), #7a3bc9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
}
.lani-avatar-pulse {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #0f0f23;
    animation: lani-online 2s ease-in-out infinite;
}
@keyframes lani-online {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.lani-header-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.lani-header-text p {
    font-size: 0.75rem;
    color: var(--brand-400);
    margin: 0;
}

/* messages area */
.lani-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.lani-messages::-webkit-scrollbar { width: 4px; }
.lani-messages::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* message bubbles */
.lani-msg {
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
    animation: lani-msg-in 0.35s ease-out both;
}
.lani-msg-bot {
    align-self: flex-start;
    background: #1a1a3e;
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}
.lani-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--brand-400), #7a3bc9);
    color: #fff;
    border-bottom-right-radius: 4px;
}

@keyframes lani-msg-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* typing indicator */
.lani-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    align-self: flex-start;
}
.lani-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-400);
    animation: lani-dot 1.2s ease-in-out infinite;
}
.lani-typing span:nth-child(2) { animation-delay: 0.15s; }
.lani-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes lani-dot {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30%           { opacity: 1;   transform: scale(1); }
}

/* option buttons */
.lani-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    animation: lani-msg-in 0.35s ease-out both;
}
.lani-opt-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(184, 148, 246, 0.35);
    background: transparent;
    color: var(--brand-400);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.lani-opt-btn:hover {
    background: rgba(184, 148, 246, 0.15);
    border-color: var(--brand-400);
    transform: translateY(-1px);
}
/* suggested / contextual highlight */
.lani-opt-suggested {
    border-color: var(--brand-400);
    background: rgba(184, 148, 246, 0.1);
    box-shadow: 0 0 12px rgba(184, 148, 246, 0.15);
    animation: lani-suggest-glow 2s ease-in-out infinite alternate;
}
@keyframes lani-suggest-glow {
    from { box-shadow: 0 0 8px rgba(184,148,246,0.1); }
    to   { box-shadow: 0 0 16px rgba(184,148,246,0.25); }
}

/* skip button */
.lani-skip-wrapper {
    margin-top: 4px;
    animation: lani-msg-in 0.35s ease-out both;
}
.lani-skip-btn {
    padding: 6px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    background: transparent;
    color: #888;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}
.lani-skip-btn:hover {
    color: #bbb;
    border-color: rgba(255,255,255,0.25);
}

/* text input area */
.lani-input-area {
    padding: 12px 16px;
    border-top: 1px solid rgba(184, 148, 246, 0.1);
    display: flex;
    gap: 8px;
    align-items: center;
    background: #0a0a1e;
}
.lani-input-area input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-size: 0.875rem;
    padding: 8px 0;
}
.lani-input-area input::placeholder { color: #555; }
.lani-input-area button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-400), #7a3bc9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.lani-input-area button:hover { transform: scale(1.1); }
.lani-input-area button:disabled { opacity: 0.4; cursor: default; transform: none; }
.lani-input-area button svg { width: 16px; height: 16px; fill: #fff; }

/* progress bar */
.lani-progress {
    height: 3px;
    background: rgba(255,255,255,0.05);
}
.lani-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-400), var(--accent-400));
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* GDPR notice */
.lani-gdpr {
    font-size: 0.65rem;
    color: #555;
    text-align: center;
    padding: 4px 16px 8px;
    background: #0a0a1e;
}
.lani-gdpr a { color: var(--brand-400); text-decoration: underline; }

/* ── Mobile responsive ──────────────────────────────── */
@media (max-width: 480px) {
    #lani-panel {
        bottom: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 20px 20px 0 0;
    }
    #lani-trigger {
        bottom: 16px;
        right: 16px;
    }
    #lani-tooltip {
        bottom: 84px;
        right: 16px;
        max-width: calc(100vw - 80px);
    }
}

/* ════════════════════════════════════════════════════════
   Cookie Consent — RGPD / Google Consent Mode v2
   ════════════════════════════════════════════════════════ */

/* ── Banner (Layer 1) ───────────────────────────────── */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    pointer-events: none;
}
.cc-banner.cc-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    background: rgba(15, 15, 35, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(184, 148, 246, 0.2);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.cc-banner-content {
    flex: 1;
    min-width: 280px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.cc-banner-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}
.cc-banner-text strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.cc-banner-text p {
    color: #9ca3af;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
}
.cc-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ── Buttons ────────────────────────────────────────── */
.cc-btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: Inter, system-ui, sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.cc-btn-accept {
    background: linear-gradient(135deg, var(--brand-400), #7a3bc9);
    color: #fff;
    box-shadow: 0 2px 12px rgba(184, 148, 246, 0.3);
}
.cc-btn-accept:hover {
    box-shadow: 0 4px 20px rgba(184, 148, 246, 0.45);
    transform: translateY(-1px);
}
.cc-btn-reject {
    background: transparent;
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.cc-btn-reject:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
.cc-btn-customize {
    background: transparent;
    color: var(--brand-400);
    border: 1px solid rgba(184, 148, 246, 0.3);
}
.cc-btn-customize:hover {
    background: rgba(184, 148, 246, 0.1);
    border-color: var(--brand-400);
}
.cc-btn-save {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.3);
}
.cc-btn-save:hover {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
    transform: translateY(-1px);
}

/* ── Preferences Panel (Layer 2) ────────────────────── */
.cc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.cc-overlay.cc-visible {
    opacity: 1;
    pointer-events: auto;
}
.cc-overlay.cc-visible .cc-prefs-panel {
    transform: translateY(0) scale(1);
}
.cc-prefs-panel {
    width: 660px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    background: #0f0f23;
    border: 1px solid rgba(184, 148, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
.cc-prefs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(184, 148, 246, 0.12);
}
.cc-prefs-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.cc-prefs-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}
.cc-prefs-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Intro text */
.cc-prefs-intro {
    padding: 16px 24px;
    font-size: 0.82rem;
    color: #9ca3af;
    line-height: 1.6;
}
.cc-prefs-intro p { margin: 0; }
.cc-link {
    color: var(--brand-400);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cc-link:hover { color: #d4b8ff; }

/* Categories */
.cc-prefs-categories {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 16px;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}
.cc-prefs-categories::-webkit-scrollbar { width: 4px; }
.cc-prefs-categories::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

.cc-category {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.cc-category:hover {
    border-color: rgba(184, 148, 246, 0.15);
}
.cc-category-required {
    border-color: rgba(34, 197, 94, 0.15);
    background: rgba(34, 197, 94, 0.03);
}
.cc-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
}
.cc-category-info {
    flex: 1;
    min-width: 0;
}
.cc-category-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
}
.cc-category-info p {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* Required badge */
.cc-required-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Toggle switch */
.cc-toggle-wrap {
    flex-shrink: 0;
    position: relative;
}
.cc-toggle-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cc-toggle-slider {
    display: block;
    width: 48px;
    height: 26px;
    border-radius: 13px;
    background: #374151;
    cursor: pointer;
    position: relative;
    transition: background 0.3s;
}
.cc-toggle-slider::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.cc-toggle-input:checked + .cc-toggle-slider {
    background: linear-gradient(135deg, var(--brand-400), #7a3bc9);
}
.cc-toggle-input:checked + .cc-toggle-slider::after {
    transform: translateX(22px);
}
.cc-toggle-input:focus-visible + .cc-toggle-slider {
    outline: 2px solid var(--brand-400);
    outline-offset: 2px;
}

/* Cookie details table */
.cc-category-footer {
    padding: 0 16px 12px;
}
.cc-details-toggle {
    background: none;
    border: none;
    color: var(--brand-400);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cc-details-toggle:hover { color: #d4b8ff; }

.cc-cookie-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.cc-cookie-details.cc-open {
    max-height: 300px;
}
.cc-cookie-details table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
    margin-top: 8px;
}
.cc-cookie-details th {
    text-align: left;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cc-cookie-details td {
    padding: 6px 10px;
    color: #9ca3af;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.cc-cookie-name {
    font-family: 'Courier New', monospace;
    color: var(--accent-400);
    font-weight: 600;
}

/* Prefs footer */
.cc-prefs-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid rgba(184, 148, 246, 0.12);
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Floating settings button ───────────────────────── */
.cc-settings-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9990;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 24px;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 148, 246, 0.2);
    color: #9ca3af;
    font-size: 0.75rem;
    font-family: Inter, system-ui, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
}
.cc-settings-btn.cc-visible {
    opacity: 1;
    transform: translateY(0);
}
.cc-settings-btn:hover {
    color: #fff;
    border-color: var(--brand-400);
    box-shadow: 0 4px 16px rgba(184, 148, 246, 0.2);
}
.cc-settings-btn svg {
    flex-shrink: 0;
}
.cc-settings-label {
    font-weight: 500;
}

/* ── Mobile responsive (cookie consent) ─────────────── */
@media (max-width: 640px) {
    .cc-banner-inner {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }
    .cc-banner-content {
        flex-direction: column;
        gap: 10px;
    }
    .cc-banner-actions {
        width: 100%;
        flex-direction: column;
    }
    .cc-banner-actions .cc-btn {
        width: 100%;
        text-align: center;
    }
    .cc-prefs-panel {
        border-radius: 16px 16px 0 0;
        max-height: 90vh;
    }
    .cc-prefs-footer {
        flex-direction: column;
    }
    .cc-prefs-footer .cc-btn {
        width: 100%;
        text-align: center;
    }
    .cc-settings-btn {
        bottom: 16px;
        left: 16px;
    }
}
