/* =========================================================
   Niknaman Growth System
   Cookie consent + Growth/Privacy pages
   ========================================================= */


/* ---------------------------------------------------------
   Cookie Consent
   Compact desktop/mobile notification
   --------------------------------------------------------- */

.nr-consent {
    position: fixed;
    z-index: 1100;

    top: 14px;
    right: 14px;
    left: auto;
    bottom: auto;

    width: min(410px, calc(100vw - 28px));
    max-width: 410px;

    display: block;

    padding: 10px 12px;

    border: 1px solid var(--nr-border, #e4dfd4);
    border-radius: 14px;

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

    box-shadow:
        0 10px 30px rgba(23, 21, 15, 0.10),
        0 2px 8px rgba(23, 21, 15, 0.05);

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

    direction: rtl;
    text-align: right;
}

.nr-consent[hidden] {
    display: none !important;
}

.nr-consent__body {
    max-width: none;
}

.nr-consent__body strong {
    display: block;

    margin: 0 0 2px;

    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.6;

    color: var(--nr-text, #24211b);
}

.nr-consent__body p {
    margin: 2px 0 3px;

    font-size: 0.73rem;
    line-height: 1.7;

    color: var(--nr-muted, #6d685e);
}

.nr-consent__body a {
    display: inline-block;

    margin-top: 1px;

    font-size: 0.70rem;
    line-height: 1.5;

    color: inherit;

    text-decoration: underline;
    text-underline-offset: 2px;
}

.nr-consent__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 6px;
    flex-wrap: wrap;

    margin-top: 7px;
}

.nr-consent__actions .nr-button {
    min-height: 30px;

    padding: 4px 10px;

    border-radius: 8px;

    font-size: 0.70rem;
    line-height: 1.4;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   Growth / Privacy Page
   --------------------------------------------------------- */

.nr-growth-page {
    padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.nr-growth-prose {
    max-width: 900px;
}

.nr-growth-prose h1 {
    margin: 0.5rem 0 1.3rem;

    font-size: clamp(1.9rem, 4vw, 3rem);
}

.nr-growth-prose h2 {
    margin: 2rem 0 0.65rem;

    font-size: 1.25rem;
}

.nr-growth-prose p {
    line-height: 2;

    color: var(--nr-muted, #625d53);
}

.nr-growth-prose code {
    direction: ltr;

    display: inline-block;
}

.nr-growth-consent-card {
    margin-top: 2rem;

    padding: 1.4rem;

    border: 1px solid var(--nr-border, #e4dfd4);
    border-radius: 20px;

    background: var(--nr-surface-soft, #faf8f3);
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 760px) {

    .nr-consent {
        top: 8px;
        right: 8px;
        left: auto;
        bottom: auto;

        width: calc(100vw - 16px);
        max-width: none;

        padding: 8px 10px;

        border-radius: 12px;
    }

    .nr-consent__body strong {
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .nr-consent__body p {
        margin: 1px 0 2px;

        font-size: 0.68rem;
        line-height: 1.55;
    }

    .nr-consent__body a {
        font-size: 0.66rem;
    }

    .nr-consent__actions {
        gap: 5px;

        margin-top: 5px;

        justify-content: flex-start;
    }

    .nr-consent__actions .nr-button {
        flex: 0 0 auto;

        width: auto;
        min-height: 27px;

        padding: 3px 8px;

        border-radius: 7px;

        font-size: 0.65rem;
    }
}


/* ---------------------------------------------------------
   Very Small Mobile
   --------------------------------------------------------- */

@media (max-width: 380px) {

    .nr-consent {
        top: 6px;
        right: 6px;

        width: calc(100vw - 12px);

        padding: 7px 8px;
    }

    .nr-consent__body strong {
        font-size: 0.74rem;
    }

    .nr-consent__body p {
        font-size: 0.64rem;
    }

    .nr-consent__actions .nr-button {
        min-height: 26px;

        padding: 3px 7px;

        font-size: 0.62rem;
    }
}
