/* ═══════════════════════════════════════════════════════════════════════════
   PropertyRoute Pricing — Frontend
   ═══════════════════════════════════════════════════════════════════════════ */
#prp-root {
    --prp-accent: #18b652;
    --prp-accent-soft: #e8faf0;
    --prp-accent-dark: #12913f;
    --prp-radius: 28px;
    --prp-shadow: 0 2px 12px rgba(0,0,0,.06);
    --prp-shadow-hover: 0 8px 28px rgba(0,0,0,.10);
    --prp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-family: var(--prp-font);
    color: #1a1a2e;
    line-height: 1.5;
}

/* ── Shell ─────────────────────────────────────────────────────────────── */
#prp-root .prp-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
#prp-root .prp-hero {
    text-align: center;
    margin-bottom: 40px;
}
#prp-root .prp-hero h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -.02em;
}
#prp-root .prp-hero p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* ── Grid ──────────────────────────────────────────────────────────────── */
#prp-root .prp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

/* ── Card ──────────────────────────────────────────────────────────────── */
#prp-root .prp-card {
    position: relative;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--prp-radius);
    padding: 32px 28px 28px;
    box-shadow: var(--prp-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
}
#prp-root .prp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--prp-shadow-hover);
}

/* Featured card */
#prp-root .prp-card.is-featured {
    border-color: var(--prp-accent);
    border-width: 2px;
    border-top-width: 4px;
}

/* Current plan card */
#prp-root .prp-card.is-current {
    background: var(--prp-accent-soft);
    border-color: var(--prp-accent);
}

/* ── Badge ─────────────────────────────────────────────────────────────── */
#prp-root .prp-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--prp-accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Eyebrow ───────────────────────────────────────────────────────────── */
#prp-root .prp-eyebrow {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--prp-accent);
    margin-bottom: 4px;
}

/* ── Name ──────────────────────────────────────────────────────────────── */
#prp-root .prp-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px;
}

/* ── Price ─────────────────────────────────────────────────────────────── */
#prp-root .prp-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}
#prp-root .prp-price {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1;
}
#prp-root .prp-cycle {
    font-size: .95rem;
    color: #888;
}
#prp-root .prp-iva {
    font-size: .78rem;
    color: #999;
    margin: 0 0 16px;
}

/* ── Free card ─────────────────────────────────────────────────────────── */
#prp-root .prp-card.is-free {
    background: linear-gradient(160deg, #fafbfc, #f5f7fa);
    border-color: #e2e8f0;
}
#prp-root .prp-card.is-free .prp-price {
    font-size: 2rem;
    color: var(--prp-accent);
    font-weight: 900;
}
#prp-root .prp-card.is-free .prp-iva {
    color: var(--prp-accent);
    font-weight: 600;
    font-size: .82rem;
}

/* ── Used / expired free card ──────────────────────────────────────────── */
#prp-root .prp-card.is-used {
    opacity: .65;
    background: #f8f9fa;
    border-color: #d1d5db;
}
#prp-root .prp-card.is-used:hover {
    transform: none;
    box-shadow: var(--prp-shadow);
}
#prp-root .prp-card.is-used .prp-price {
    color: #94a3b8;
}
#prp-root .prp-card.is-used .prp-iva {
    color: #94a3b8;
    font-weight: 500;
}
#prp-root .prp-btn-used {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f1f5f9;
    color: #94a3b8;
    border: 1.5px solid #e2e8f0;
    box-shadow: none;
    cursor: default;
    pointer-events: none;
    font-size: .85rem;
}

/* ── Stats 2×2 ─────────────────────────────────────────────────────────── */
#prp-root .prp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}
#prp-root .prp-stat {
    background: #f7f8fa;
    border: 1px solid #e9ebee;
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
}
#prp-root .prp-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #1a1a2e;
}
#prp-root .prp-stat span {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
}

/* ── Features ──────────────────────────────────────────────────────────── */
#prp-root .prp-features {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    flex: 1;
}
#prp-root .prp-features li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: .9rem;
    color: #444;
    line-height: 1.45;
}
#prp-root .prp-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--prp-accent);
    font-weight: 700;
    font-size: .85rem;
}

/* Hidden extra features */
#prp-root .prp-feat-extra[hidden] { display: none; }
#prp-root .prp-feat-extra { margin-top: 0; }

/* ── Toggle button ─────────────────────────────────────────────────────── */
#prp-root .prp-toggle {
    background: none;
    border: none;
    color: var(--prp-accent);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    margin-bottom: 16px;
    text-align: left;
}
#prp-root .prp-toggle:hover { text-decoration: underline; }

/* ── CTA Button ────────────────────────────────────────────────────────── */
#prp-root .prp-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
    margin-top: auto;
    box-sizing: border-box;
    border: none;
    background: linear-gradient(135deg, var(--prp-accent), var(--prp-accent-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(24,182,82,.25);
}
#prp-root .prp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(24,182,82,.35);
}

/* Current plan button (outline) */
#prp-root .prp-btn-current {
    background: transparent;
    color: var(--prp-accent);
    border: 2px solid var(--prp-accent);
    box-shadow: none;
    cursor: default;
    pointer-events: none;
}

/* ── Featured card CTA: bigger shadow */
#prp-root .is-featured .prp-btn:not(.prp-btn-current) {
    box-shadow: 0 6px 20px rgba(24,182,82,.3);
}

/* ── Coming Soon (paid plans blocked) ─────────────────────────────────── */
#prp-root .prp-badge-coming {
    background: #64748b;
}
#prp-root .prp-card:has(.prp-btn-coming-soon) {
    opacity: .6;
    pointer-events: none;
    filter: grayscale(.25);
}
#prp-root .prp-card:has(.prp-btn-coming-soon):hover {
    transform: none;
    box-shadow: var(--prp-shadow);
}
#prp-root .prp-btn-coming-soon {
    background: #94a3b8;
    color: #fff;
    box-shadow: none;
    cursor: default;
    pointer-events: none;
    font-size: .9rem;
    letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════
   Signup Modal
   ═══════════════════════════════════════════════════════════════════════════ */
#prp-root .prp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#prp-root .prp-modal-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    animation: prpModalIn .25s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes prpModalIn {
    from { opacity: 0; transform: scale(.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
#prp-root .prp-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
#prp-root .prp-modal-close:hover { color: #333; }

/* Brand logo */
#prp-root .prp-modal-brand {
    text-align: center;
    margin-bottom: 12px;
}
#prp-root .prp-modal-logo {
    max-height: 36px;
    width: auto;
}

/* Title */
#prp-root .prp-modal-title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a2e;
}
#prp-root .prp-modal-sub {
    text-align: center;
    font-size: .9rem;
    color: #888;
    margin: 0 0 20px;
}

/* Social (Nextend) — SaaS-style Google button */
#prp-root .prp-modal-social {
    margin-bottom: 8px;
}
#prp-root .prp-modal-social .nsl-container {
    margin: 0 !important;
}
/* Override Nextend default button → clean Google pill */
#prp-root .prp-modal-social .nsl-container-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}
#prp-root .prp-modal-social .nsl-container-buttons a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 20px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #1a1a2e !important;
    font-size: .92rem !important;
    font-weight: 600 !important;
    font-family: var(--prp-font) !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all .15s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.06) !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    line-height: 1.4 !important;
}
#prp-root .prp-modal-social .nsl-container-buttons a:hover {
    border-color: #cbd5e1 !important;
    background: #f8fafc !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
    transform: translateY(-1px) !important;
}
/* Icon sizing inside NSL button */
#prp-root .prp-modal-social .nsl-container-buttons a img,
#prp-root .prp-modal-social .nsl-container-buttons a svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}
/* Hide default NSL separator/divider if any */
#prp-root .prp-modal-social .nsl-container-login-layout-below,
#prp-root .prp-modal-social .nsl-container-register-layout-below {
    margin: 0 !important;
    padding: 0 !important;
}
/* Ensure NSL button label is visible and clean */
#prp-root .prp-modal-social .nsl-button-default span,
#prp-root .prp-modal-social .nsl-button span,
#prp-root .prp-modal-social .nsl-button-label {
    font-size: .92rem !important;
    color: #1a1a2e !important;
    font-weight: 600 !important;
}
/* Remove any NSL default background colors on buttons */
#prp-root .prp-modal-social .nsl-button-default,
#prp-root .prp-modal-social .nsl-button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
}
#prp-root .prp-modal-social .nsl-button-icon {
    padding: 0 !important;
    min-width: auto !important;
}
/* Remove extra padding/margin from inner wrappers */
#prp-root .prp-modal-social .nsl-container-buttons > div {
    margin: 0 !important;
    padding: 0 !important;
}

/* Divider */
#prp-root .prp-modal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #aaa;
    font-size: .82rem;
}
#prp-root .prp-modal-divider::before,
#prp-root .prp-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Error */
#prp-root .prp-modal-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .85rem;
    margin-bottom: 16px;
}
#prp-root .prp-modal-error svg { flex-shrink: 0; }

/* Fields */
#prp-root .prp-modal-field {
    margin-bottom: 14px;
}
#prp-root .prp-modal-field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
#prp-root .prp-modal-field input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: var(--prp-font);
    color: #1a1a2e;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
#prp-root .prp-modal-field input:focus {
    border-color: var(--prp-accent);
    box-shadow: 0 0 0 3px rgba(24,182,82,.12);
}
#prp-root .prp-modal-field input.prp-modal-input--error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
#prp-root .prp-modal-field input::placeholder {
    color: #b0b8c4;
}

/* Submit button */
#prp-root .prp-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 14px;
    font-size: .95rem;
    font-weight: 700;
    font-family: var(--prp-font);
    cursor: pointer;
    background: linear-gradient(135deg, var(--prp-accent), var(--prp-accent-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(24,182,82,.25);
    transition: all .2s ease;
    margin-top: 6px;
}
#prp-root .prp-modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(24,182,82,.35);
}
#prp-root .prp-modal-btn:disabled {
    opacity: .7;
    cursor: default;
    transform: none;
}
#prp-root .prp-modal-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: prpSpin .6s linear infinite;
}
@keyframes prpSpin { to { transform: rotate(360deg); } }

/* Consent checkbox */
#prp-root .prp-modal-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 14px;
    cursor: pointer;
    font-size: .78rem;
    color: #666;
    line-height: 1.5;
    user-select: none;
}
#prp-root .prp-modal-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--prp-accent);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 1px;
}
#prp-root .prp-modal-consent a {
    color: var(--prp-accent);
    text-decoration: none;
    font-weight: 500;
}
#prp-root .prp-modal-consent a:hover { text-decoration: underline; }
#prp-root .prp-modal-consent--error {
    color: #dc2626;
}
#prp-root .prp-modal-consent--error input[type="checkbox"] {
    outline: 2px solid #ef4444;
    outline-offset: 1px;
    border-radius: 3px;
}

/* Switch link */
#prp-root .prp-modal-switch {
    text-align: center;
    font-size: .85rem;
    color: #888;
    margin: 16px 0 0;
}
#prp-root .prp-modal-switch a {
    color: var(--prp-accent);
    font-weight: 600;
    text-decoration: none;
}
#prp-root .prp-modal-switch a:hover { text-decoration: underline; }

/* Verify email screen */
#prp-root .prp-verify-screen {
    text-align: center;
    padding: 30px 10px 10px;
}
#prp-root .prp-verify-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 16px;
}
#prp-root .prp-verify-screen .prp-modal-title {
    margin-bottom: 10px;
}
#prp-root .prp-verify-screen .prp-modal-sub {
    margin-bottom: 6px;
}
#prp-root .prp-verify-spam {
    margin-top: 18px;
    font-size: .8rem;
    color: #aaa;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Confirm Free Plan Modal
   ═══════════════════════════════════════════════════════════════════════════ */
#prp-root .prp-confirm-icon {
    text-align: center;
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
}
#prp-root .prp-confirm-features {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
#prp-root .prp-confirm-features li {
    position: relative;
    padding: 7px 0 7px 26px;
    font-size: .88rem;
    color: #444;
    line-height: 1.45;
}
#prp-root .prp-confirm-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 7px;
    color: var(--prp-accent);
    font-weight: 700;
    font-size: .85rem;
}
#prp-root .prp-confirm-features li strong {
    color: #1a1a2e;
}
#prp-root .prp-confirm-note {
    text-align: center;
    font-size: .8rem;
    color: #999;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Notice (error/info) inside confirm modal */
#prp-root .prp-confirm-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    animation: prpNoticeIn .3s ease;
}
@keyframes prpNoticeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
#prp-root .prp-confirm-notice-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}
#prp-root .prp-confirm-notice-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#prp-root .prp-confirm-notice-body strong {
    font-size: .88rem;
    color: #92400e;
}
#prp-root .prp-confirm-notice-body span {
    font-size: .82rem;
    color: #a16207;
    line-height: 1.45;
}

/* Resend button */
#prp-root .prp-confirm-resend {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 14px;
    border: 1.5px solid #f59e0b;
    border-radius: 10px;
    background: #fff;
    color: #92400e;
    font-size: .8rem;
    font-weight: 600;
    font-family: var(--prp-font);
    cursor: pointer;
    transition: all .2s ease;
}
#prp-root .prp-confirm-resend:hover {
    background: #fffbeb;
    border-color: #d97706;
}
#prp-root .prp-confirm-resend:disabled {
    opacity: .6;
    cursor: default;
}
#prp-root .prp-confirm-resend.is-sent {
    border-color: var(--prp-accent);
    color: var(--prp-accent);
    background: var(--prp-accent-soft);
}

/* Success state */
#prp-root .prp-confirm-success {
    text-align: center;
    padding: 40px 20px 32px;
}
#prp-root .prp-confirm-success-icon {
    font-size: 52px;
    line-height: 1;
    margin-bottom: 14px;
    animation: prpSuccessBounce .5s ease;
}
@keyframes prpSuccessBounce {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    #prp-root .prp-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    #prp-root .prp-hero h2 { font-size: 1.6rem; }
    #prp-root .prp-shell { padding: 32px 16px 48px; }

    #prp-root .prp-modal-card {
        padding: 28px 20px 24px;
        border-radius: 16px;
    }
}
