/* =========================
   Page Review Modal - Premium Compact
========================= */

.page-review-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.page-review-modal.active {
    display: flex;
}

.page-review-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(0, 122, 218, 0.16), transparent 34%),
        rgba(7, 10, 34, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: reviewFadeIn .25s ease both;
}

.page-review-card {
    position: relative;
    width: min(100%, 430px);
    max-height: none;
    overflow: hidden;
    padding: 22px 22px 18px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,252,255,.96));
    border: 1px solid rgba(0, 122, 218, 0.14);
    box-shadow:
        0 34px 90px rgba(6, 8, 47, 0.26),
        inset 0 1px 0 rgba(255,255,255,.9);
    text-align: center;
    animation: reviewPopIn .34s cubic-bezier(.2, .9, .2, 1) both;
}

.page-review-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 120px;
    background: radial-gradient(circle at 50% 0%, rgba(0,122,218,.14), transparent 62%);
    pointer-events: none;
}

.page-review-close {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(6, 8, 47, 0.06);
    color: var(--navy);
    cursor: pointer;
    transition: transform .22s ease, background .22s ease;
}

.page-review-close:hover {
    transform: rotate(90deg);
    background: rgba(0, 122, 218, 0.12);
}

.page-review-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    font-size: 17px;
    background: linear-gradient(135deg, var(--navy), var(--cyan));
    box-shadow: 0 16px 30px rgba(0, 122, 218, 0.24);
}

.page-review-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cyan);
}

.page-review-card h3 {
    position: relative;
    z-index: 1;
    margin: 7px 0 6px;
    color: var(--navy);
    font-size: clamp(21px, 3vw, 27px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.page-review-card p {
    position: relative;
    z-index: 1;
    max-width: 340px;
    margin: 0 auto 14px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.55;
}

.page-review-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
    text-align: left;
}

.review-rating-group {
    padding: 11px 12px;
    border-radius: 18px;
    border: 1px solid rgba(6, 8, 47, 0.08);
    background: rgba(255,255,255,.78);
    box-shadow: 0 10px 26px rgba(6, 8, 47, 0.04);
}

.review-rating-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 11.5px;
    font-weight: 900;
}

.review-stars {
    display: flex;
    gap: 7px;
}

.review-stars button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 13px;
    background: rgba(0, 122, 218, 0.08);
    color: rgba(6, 8, 47, 0.24);
    cursor: pointer;
    font-size: 13px;
    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.review-stars.compact button {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    font-size: 11px;
}

.review-stars button:hover {
    transform: translateY(-2px) scale(1.03);
}

.review-stars button.active {
    color: #fff;
    background: linear-gradient(135deg, #f8b92c, #ffd56a);
    box-shadow: 0 9px 17px rgba(248, 185, 44, 0.25);
}

.review-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.page-review-form textarea {
    width: 100%;
    min-height: 72px;
    max-height: 84px;
    resize: none;
    border: 1px solid rgba(6, 8, 47, 0.1);
    border-radius: 17px;
    padding: 11px 13px;
    color: var(--navy);
    background: #fff;
    outline: none;
    font-size: 14px;
    line-height: 1.45;
}

.page-review-form textarea:focus {
    border-color: rgba(0, 122, 218, 0.44);
    box-shadow: 0 0 0 4px rgba(0, 122, 218, 0.09);
}

.page-review-modal.closing {
    opacity: 0;
    transition: opacity .35s ease;
}

.review-check {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.45;
}

.review-check input {
    margin-top: 2px;
    accent-color: var(--cyan);
}

.page-review-submit,
.page-review-whatsapp,
.lt-review-cta button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 17px;
    font-size: 12.5px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        opacity .2s ease;
}

.page-review-submit {
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--cyan));
    box-shadow: 0 15px 28px rgba(0, 122, 218, 0.22);
}

.page-review-submit:disabled {
    opacity: .72;
    cursor: not-allowed;
}

.page-review-whatsapp {
    color: #128c7e;
    background: rgba(18, 140, 126, 0.09);
}

.page-review-submit:hover,
.page-review-whatsapp:hover,
.lt-review-cta button:hover {
    transform: translateY(-2px);
}

.page-review-credit {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(6, 8, 47, 0.08);
    color: var(--muted);
    font-size: 10.8px;
    line-height: 1.4;
}

.page-review-credit a {
    color: var(--cyan);
    font-weight: 900;
    text-decoration: none;
}

.review-success {
    text-align: center;
    padding: 12px 0 4px;
}

.review-success h3 {
    margin-bottom: 5px;
}

/* =========================
   Premium Review CTA
========================= */

.lt-review-cta {
    position: relative;
    isolation: isolate;
    max-width: 1080px;
    margin: 54px auto 34px;
    padding: 24px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 122, 218, 0.13);
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,251,255,.94));
    box-shadow:
        0 24px 70px rgba(6, 8, 47, 0.07),
        inset 0 1px 0 rgba(255,255,255,.9);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 22px;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.lt-review-cta::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -10%;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(0,122,218,.13), transparent 62%);
    z-index: -1;
}

.lt-review-cta::after {
    content: "";
    position: absolute;
    right: 24%;
    top: 18px;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: rgba(0,122,218,.06);
    transform: rotate(14deg);
    z-index: -1;
}

.lt-review-cta:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 122, 218, 0.22);
    box-shadow: 0 30px 80px rgba(6, 8, 47, 0.1);
}

.lt-review-cta span {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--cyan);
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.lt-review-cta h3 {
    max-width: 680px;
    margin: 0 0 7px;
    color: var(--navy);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.lt-review-cta p {
    max-width: 640px;
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.lt-review-cta button {
    min-width: 160px;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--navy), var(--cyan));
    box-shadow: 0 16px 34px rgba(0, 122, 218, 0.2);
}

.lt-review-cta button i {
    font-size: 12px;
}

/* =========================
   Animations
========================= */

@keyframes reviewFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes reviewPopIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================
   Mobile
========================= */

@media (max-width: 640px) {
    .page-review-modal {
        padding: 10px;
        align-items: center;
    }

    .page-review-card {
        width: 100%;
        padding: 20px 15px 15px;
        border-radius: 24px;
    }

    .page-review-close {
        width: 30px;
        height: 30px;
        top: 11px;
        right: 11px;
    }

    .page-review-icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
        font-size: 15px;
        margin-bottom: 9px;
    }

    .page-review-card h3 {
        font-size: 21px;
    }

    .page-review-card p {
        max-width: 300px;
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.5;
    }

    .page-review-form {
        gap: 9px;
    }

    .review-rating-group {
        padding: 10px;
        border-radius: 16px;
    }

    .review-rating-group label {
        margin-bottom: 7px;
        font-size: 11px;
    }

    .review-mini-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .review-stars {
        justify-content: space-between;
        gap: 5px;
    }

    .review-stars button,
    .review-stars.compact button {
        width: 32px;
        height: 32px;
        border-radius: 11px;
    }

    .page-review-form textarea {
        min-height: 64px;
        max-height: 70px;
        padding: 10px 12px;
    }

    .review-check {
        font-size: 11px;
    }

    .page-review-submit,
    .page-review-whatsapp {
        min-height: 40px;
        font-size: 12px;
    }

    .page-review-credit {
        margin-top: 10px;
        padding-top: 10px;
        font-size: 10.5px;
    }

    .lt-review-cta {
        margin: 42px 16px 28px;
        padding: 22px;
        grid-template-columns: 1fr;
        gap: 18px;
        border-radius: 26px;
    }

    .lt-review-cta::after {
        right: 18px;
        top: 18px;
        width: 56px;
        height: 56px;
    }

    .lt-review-cta h3 {
        font-size: 24px;
    }

    .lt-review-cta p {
        font-size: 13px;
    }

    .lt-review-cta button {
        width: 100%;
        min-height: 44px;
    }
}

@media (max-height: 700px) {
    .page-review-card {
        width: min(100%, 410px);
        padding: 18px 18px 14px;
    }

    .page-review-icon {
        width: 42px;
        height: 42px;
        margin-bottom: 8px;
    }

    .page-review-card h3 {
        font-size: 22px;
    }

    .page-review-card p {
        margin-bottom: 10px;
        font-size: 12px;
    }

    .review-rating-group {
        padding: 9px 10px;
    }

    .review-stars button {
        width: 31px;
        height: 31px;
    }

    .review-stars.compact button {
        width: 28px;
        height: 28px;
    }

    .page-review-form textarea {
        min-height: 58px;
        max-height: 60px;
    }

    .page-review-submit,
    .page-review-whatsapp {
        min-height: 38px;
    }
}

@media (max-width: 380px) {
    .page-review-card {
        padding: 18px 13px 14px;
    }

    .review-stars button,
    .review-stars.compact button {
        width: 29px;
        height: 29px;
        border-radius: 10px;
        font-size: 10px;
    }

    .page-review-card h3 {
        font-size: 20px;
    }
}

/* =========================
   Toasts
========================= */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    gap: 12px;

    width: min(420px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    position: relative;

    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 62px;
    padding: 14px 16px;

    border-radius: 18px;

    background: rgba(255,255,255,.95);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,.5);

    box-shadow:
        0 18px 40px rgba(6,8,47,.14),
        0 4px 12px rgba(6,8,47,.08);

    pointer-events: auto;

    opacity: 0;
    transform: translateX(20px);

    transition:
        opacity .28s ease,
        transform .28s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    flex-shrink: 0;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 15px;
}

.toast-content {
    flex: 1;
}

.toast-content span {
    display: block;

    color: var(--navy);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.toast-close {
    border: none;
    background: transparent;

    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(6,8,47,.45);

    cursor: pointer;

    border-radius: 8px;

    transition:
        background .2s ease,
        color .2s ease;
}

.toast-close:hover {
    background: rgba(6,8,47,.06);
    color: var(--navy);
}

/* Success */

.toast-success .toast-icon {
    color: #0f9d58;
    background: rgba(15,157,88,.12);
}

/* Error */

.toast-error .toast-icon {
    color: #d93025;
    background: rgba(217,48,37,.12);
}

/* Warning */

.toast-warning .toast-icon {
    color: #f9ab00;
    background: rgba(249,171,0,.14);
}

/* Info */

.toast-info .toast-icon {
    color: var(--cyan);
    background: rgba(0,122,218,.12);
}

/* Mobile */

@media (max-width: 640px) {

    .toast-container {
        top: auto;
        bottom: 18px;
        left: 16px;
        right: 16px;
        width: auto;
    }

    .toast {
        min-height: 58px;
        padding: 12px 14px;
    }

    .toast-content span {
        font-size: 12.5px;
    }
}