/* InstaShadow analyzer: plan-related parts (analytics.js) — limit window actions, the free plan's history lock,
   and the report date with Regenerate. Served as is, after app.analytics.N.css. */
:root {
    --is-grad: linear-gradient(90deg, #11D411 0%, #27DEBF 97%);
    --is-green: #11D411;
}

/* ── Report limit window: create an account / view plans / log in ── */
.limit-modal [hidden] {
    display: none !important;
}

.limit-account-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 1.6rem auto 0;
}

.limit-account-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .9rem;
}

.limit-account-primary,
.limit-account-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 204px;
    min-height: 55px;
    padding: 0 1.5rem;
    border-radius: 5px;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

.limit-account-primary {
    background: var(--is-grad);
    color: #fff;
}

.limit-account-primary:hover {
    filter: brightness(1.06);
}

.limit-account-secondary {
    border: 1px solid transparent;
    background: linear-gradient(#111, #111) padding-box, var(--is-grad) border-box;
    color: #fff;
}

.limit-account-secondary:hover {
    background: linear-gradient(#0b160b, #0b160b) padding-box, var(--is-grad) border-box;
}

.limit-account-login {
    color: var(--is-green);
    font-size: .95rem;
}

.limit-account-actions a:focus-visible {
    outline: 2px solid var(--is-green);
    outline-offset: 4px;
}

@media (max-width: 520px) {
    .limit-account-buttons {
        flex-direction: column;
        width: 100%;
    }

    .limit-account-primary,
    .limit-account-secondary {
        min-height: 46px;
        font-size: 17px;
    }
}

/* ── Free plan: long growth periods of a big profile with a year of history (analytics.js applyHistoryLock) ── */
.period-btn.is-locked {
    border-style: dashed;
    color: rgba(255, 255, 255, .45);
}

.period-btn.is-locked::after {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 5px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 1 1 8 0v2h1v8H3V7zm2 0h4V5a2 2 0 1 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 1 1 8 0v2h1v8H3V7zm2 0h4V5a2 2 0 1 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.period-btn.is-locked:hover {
    color: var(--is-green);
}

.history-upsell {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(17, 212, 17, .3);
    border-radius: 14px;
    background: rgba(17, 212, 17, .07);
}

.history-upsell[hidden] {
    display: none;
}

.history-upsell-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background: var(--is-grad);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 1 1 8 0v2h1v8H3V7zm2 0h4V5a2 2 0 1 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 1 1 8 0v2h1v8H3V7zm2 0h4V5a2 2 0 1 0-4 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.history-upsell-text {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
    line-height: 1.4;
}

.history-upsell-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 5px;
    background: var(--is-grad);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
}

.history-upsell-button:hover {
    filter: brightness(1.06);
}

.history-upsell-button:focus-visible {
    outline: 2px solid var(--is-green);
    outline-offset: 3px;
}

.history-upsell.is-highlighted {
    animation: history-upsell-nudge .6s ease;
}

@keyframes history-upsell-nudge {
    0%, 100% { transform: translateX(0); box-shadow: none; }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); box-shadow: 0 0 0 4px rgba(17, 212, 17, .18); }
    75% { transform: translateX(-2px); }
}

@media (prefers-reduced-motion: reduce) {
    .history-upsell.is-highlighted {
        animation: none;
        box-shadow: 0 0 0 4px rgba(17, 212, 17, .18);
    }
}

@media (max-width: 600px) {
    .history-upsell {
        flex-wrap: wrap;
    }

    .history-upsell-text {
        flex-basis: calc(100% - 30px);
    }

    .history-upsell-button {
        width: 100%;
        box-sizing: border-box;
    }
}

/* ── When the report was made; Regenerate for signed-in viewers ── */
.report-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem 1.2rem;
    margin-top: 0;
    padding: 1rem 0 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .6);
    font-size: .8rem;
}

.report-meta[hidden],
.report-regenerate-wrap[hidden] {
    display: none;
}

.report-regenerate-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}

.report-regenerate {
    padding: .45rem 1rem;
    border: 1px solid var(--is-green);
    border-radius: 9px;
    background: transparent;
    color: var(--is-green);
    font: inherit;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.report-regenerate:hover {
    background: var(--is-green);
    color: #000;
}

.report-regenerate:disabled {
    opacity: .5;
    cursor: default;
    background: transparent;
    color: var(--is-green);
}

.report-regenerate-hint {
    color: rgba(255, 255, 255, .5);
    font-size: .75rem;
}
