/* =========================================================
   CRYSTAL ❤️ LYRA — ANALYTICS CONSENT
   ========================================================= */

.analytics-consent {
    position: fixed;

    left: 18px;
    right: 18px;
    bottom: 18px;

    z-index: 5000;

    display: flex;
    justify-content: center;

    pointer-events: none;
}

.analytics-consent[hidden] {
    display: none;
}

.analytics-consent-inner {
    width: min(760px, 100%);

    padding: 20px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 18px;

    pointer-events: auto;

    border: 1px solid rgba(193, 132, 255, 0.28);

    border-radius: 22px;

    background:
        radial-gradient(circle at 0 0, rgba(156, 92, 255, 0.14), transparent 46%),
        linear-gradient(145deg, rgba(27, 22, 39, 0.985), rgba(10, 9, 16, 0.985));

    box-shadow:
        0 26px 90px rgba(0, 0, 0, 0.58),
        0 0 42px rgba(156, 92, 255, 0.1);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.analytics-consent-heart {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    flex: 0 0 46px;

    border: 1px solid rgba(193, 132, 255, 0.25);

    border-radius: 15px;

    background: linear-gradient(145deg, rgba(156, 92, 255, 0.13), rgba(125, 220, 255, 0.08));

    color: #c99cff;

    font-size: 1.25rem;

    text-shadow: 0 0 18px rgba(193, 132, 255, 0.45);
}

.analytics-consent-copy {
    min-width: 0;
}

.analytics-consent-eyebrow {
    margin: 0 0 5px;

    color: #7ddcff;

    font-size: 0.59rem;
    font-weight: 850;

    letter-spacing: 0.15em;
}

.analytics-consent-copy h2 {
    margin: 0 0 7px;

    color: #f7f4ff;

    font-family: Georgia, 'Times New Roman', serif;

    font-size: 1rem;
    font-weight: 500;
}

.analytics-consent-copy p {
    margin: 0;

    color: #aaa4ba;

    font-size: 0.74rem;
    line-height: 1.5;
}

.analytics-consent-copy .analytics-consent-private {
    margin-top: 5px;

    color: rgba(247, 244, 255, 0.54);

    font-size: 0.67rem;
}

.analytics-consent-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.analytics-decline,
.analytics-accept {
    min-height: 40px;

    padding: 0 14px;

    border-radius: 12px;

    font: inherit;

    font-size: 0.7rem;
    font-weight: 800;

    white-space: nowrap;

    cursor: pointer;

    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.analytics-decline {
    border: 1px solid rgba(247, 244, 255, 0.22);

    background: rgba(255, 255, 255, 0.055);

    color: #f7f4ff;
}

.analytics-decline:hover {
    color: #f7f4ff;

    border-color: rgba(247, 244, 255, 0.22);
}

.analytics-accept {
    border: 1px solid rgba(193, 132, 255, 0.4);

    background: linear-gradient(
        110deg,
        rgba(109, 40, 217, 0.92),
        rgba(193, 132, 255, 0.84),
        rgba(75, 189, 222, 0.82)
    );

    color: #fff;

    box-shadow: 0 8px 25px rgba(109, 40, 217, 0.22);
}

.analytics-accept:hover {
    transform: translateY(-1px);
}

/* =========================================================
   PRIVACY CHOICES BUTTON
   ========================================================= */

.analytics-choices {
    position: fixed;

    left: 14px;
    bottom: 14px;

    z-index: 4900;

    min-height: 32px;

    padding: 0 11px;

    border: 1px solid rgba(247, 244, 255, 0.1);

    border-radius: 999px;

    background: rgba(10, 9, 16, 0.82);

    color: rgba(247, 244, 255, 0.53);

    font: inherit;

    font-size: 0.61rem;
    font-weight: 750;

    cursor: pointer;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    transition:
        color 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.analytics-choices:hover {
    color: #f7f4ff;

    border-color: rgba(193, 132, 255, 0.34);

    background: rgba(21, 17, 31, 0.94);
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .analytics-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .analytics-consent-inner {
        grid-template-columns: auto 1fr;

        padding: 17px;

        gap: 13px;
    }

    .analytics-consent-actions {
        grid-column: 1 / -1;

        justify-content: flex-end;
    }

    .analytics-consent-heart {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }
}

@media (max-width: 430px) {
    .analytics-consent-inner {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .analytics-consent-heart {
        margin: 0 auto;
    }

    .analytics-consent-actions {
        width: 100%;

        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .analytics-decline,
    .analytics-accept {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .analytics-decline,
    .analytics-accept,
    .analytics-choices {
        transition: none;
    }
}

.analytics-privacy-link {
    display: inline-block;

    margin-top: 7px;

    color: #bfa0e8;

    font-size: 0.67rem;
    font-weight: 750;

    text-decoration: none;
}

.analytics-privacy-link:hover {
    color: #f7f4ff;

    text-decoration: underline;
}

/* Mobile compositing optimization */
@media (max-width: 700px) {
    .analytics-consent-inner,
    .analytics-choices {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
