/* ── Pavilla Pro — light theme (matches the app + profile pro card) ── */

.page-pro {
    --coral:  #ff6f5a;
    --coral-deep: #f05f47;
    --gold:   #e0931a;
    --green:  #2dbd7e;
    --bg:     #eaf3ef;
    --card:   #ffffff;
    --border: rgba(24, 39, 48, 0.08);
    --text:   #1a2730;
    --sub:    rgba(26, 39, 48, 0.6);
    --dim:    rgba(26, 39, 48, 0.42);
    min-height: 100dvh;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 111, 90, 0.07), transparent 42%),
        var(--bg);
    color: var(--text);
}

.pro-screen {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Top bar ───────────────────────────────────────────────────────── */
.page-pro .app-back-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: max(1.1rem, env(safe-area-inset-top, 1.1rem)) 1.25rem 0.4rem;
}

.page-pro .app-back-strip-main {
    gap: 0.7rem;
}

.page-pro .app-back-button {
    background: #fff;
    border: 1px solid rgba(24, 39, 48, 0.08);
    box-shadow: 0 2px 8px rgba(24, 39, 48, 0.06);
    color: var(--coral-deep);
    font-size: 1.2rem;
    transition: background 150ms, transform 120ms;
}

.page-pro .app-back-button:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(24, 39, 48, 0.1);
    transform: none;
}

.page-pro .app-back-button:active {
    transform: scale(0.95);
}

/* Hide "Pavilla" kicker — just show "Pro" */
.page-pro .app-back-kicker {
    display: none;
}

.page-pro .app-back-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
}

.pro-topbar-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a86a00;
    background: rgba(245, 166, 35, 0.14);
    border: 1.5px solid rgba(245, 166, 35, 0.32);
    border-radius: 99px;
    padding: 0.28rem 0.75rem;
}

/* ── Hero ──────────────────────────────────────────────────────────── */
.pro-hero {
    text-align: center;
    padding: 2rem 2rem 1.5rem;
}

.pro-hero-icon {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 0.65rem;
}

.pro-hero-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.04em;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.pro-hero-title span {
    background: linear-gradient(120deg, var(--coral) 20%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pro-hero-sub {
    font-size: 0.9rem;
    color: var(--sub);
    line-height: 1.6;
    margin: 0;
}

/* ── Balance row ───────────────────────────────────────────────────── */
.pro-balance-strip {
    display: flex;
    margin: 0 1.25rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(24, 39, 48, 0.05);
}

.pro-bal-chip {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.75rem 0.5rem;
    border-right: 1px solid var(--border);
}

.pro-bal-chip:last-child {
    border-right: none;
}

.pro-bal-chip.is-plus {
    background: transparent;
    border-color: var(--border);
}

.pro-bal-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.pro-bal-chip.is-plus .pro-bal-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: #a86a00;
}

.pro-bal-lbl {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--dim);
}

/* ── Section headers ───────────────────────────────────────────────── */
.pro-section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 1.25rem 0.6rem;
}

.pro-section-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(26, 39, 48, 0.48);
    margin: 0;
}

.pro-section-note {
    font-size: 0.76rem;
    color: var(--dim);
    margin: 0;
}

/* ── Plan cards ────────────────────────────────────────────────────── */
.pro-plans {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 0 1.25rem;
}

.pro-plan-card {
    position: relative;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(24, 39, 48, 0.05);
    transition: border-color 140ms, background 140ms, box-shadow 140ms;
    -webkit-tap-highlight-color: transparent;
}

.pro-plan-card:active {
    opacity: 0.85;
    transition: opacity 80ms;
}

.pro-plan-card.is-selected {
    border-color: var(--coral);
    background: linear-gradient(135deg, #fff3ee 0%, #fff9f7 100%);
    box-shadow: 0 6px 18px rgba(255, 111, 90, 0.14);
}

.pro-plan-card.is-plus-card {
    border-color: rgba(245, 166, 35, 0.32);
}

.pro-plan-card.is-plus-card.is-selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, #fff6e6 0%, #fffdf7 100%);
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.16);
}

/* Icon */
.pro-plan-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-plan-icon-pav    { background: rgba(255, 111, 90, 0.14); }
.pro-plan-icon-reveal { background: rgba(45, 189, 126, 0.14); }
.pro-plan-icon-plus   { background: rgba(245, 166, 35, 0.16); }

/* Copy */
.pro-plan-copy { flex: 1; min-width: 0; }

.pro-plan-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.1rem;
    line-height: 1.2;
}

.pro-plan-desc {
    font-size: 0.77rem;
    color: var(--sub);
    margin: 0;
    line-height: 1.45;
}

/* Right: price + radio */
.pro-plan-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    flex-shrink: 0;
}

.pro-plan-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.pro-plan-price.is-gold { color: #a86a00; }

/* Radio circle */
.pro-plan-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(24, 39, 48, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 140ms;
    flex-shrink: 0;
}

.pro-plan-radio::after {
    content: '';
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--coral);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 140ms, transform 140ms;
}

.is-selected .pro-plan-radio {
    border-color: var(--coral);
}

.is-selected .pro-plan-radio::after {
    opacity: 1;
    transform: scale(1);
}

.is-plus-card.is-selected .pro-plan-radio       { border-color: var(--gold); }
.is-plus-card.is-selected .pro-plan-radio::after { background: var(--gold); }

/* ── Reveal qty selector ───────────────────────────────────────────── */
.pro-reveal-qty {
    display: none;
    gap: 0.55rem;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--border);
}

.pro-reveal-qty.is-visible { display: flex; }

.pro-qty-label {
    font-size: 0.8rem;
    color: var(--sub);
    flex: 1;
}

.pro-qty-btn {
    background: rgba(24, 39, 48, 0.05);
    border: 1px solid rgba(24, 39, 48, 0.1);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 120ms;
    flex-shrink: 0;
}

.pro-qty-btn:active { background: rgba(24, 39, 48, 0.1); }

.pro-qty-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    min-width: 2ch;
    text-align: center;
}

/* ── Hot badge ─────────────────────────────────────────────────────── */
.pro-hot-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    white-space: nowrap;
    pointer-events: none;
}

.pro-hot-badge.is-coral {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 111, 90, 0.3);
}

.pro-hot-badge.is-gold {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 4px 10px rgba(224, 147, 26, 0.3);
}

/* ── Plus perks ────────────────────────────────────────────────────── */
.pro-plus-perks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem 0;
}

.pro-perk-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.84rem;
    color: var(--sub);
}

.pro-perk-icon { font-size: 0.88rem; flex-shrink: 0; }

/* ── Divider ───────────────────────────────────────────────────────── */
.pro-divider {
    height: 1px;
    background: var(--border);
    margin: 0.75rem 1.25rem 0;
}

/* ── CTA bar ───────────────────────────────────────────────────────── */
.pro-cta-bar {
    position: sticky;
    bottom: 0;
    padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--bg) 72%, transparent);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pro-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--coral), var(--coral-deep));
    color: #fff;
    letter-spacing: -0.01em;
    box-shadow: 0 8px 20px rgba(240, 95, 71, 0.26);
    transition: opacity 120ms, transform 120ms;
    -webkit-tap-highlight-color: transparent;
}

.pro-cta-btn:active   { transform: scale(0.97); }
.pro-cta-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    background: rgba(24, 39, 48, 0.16);
    color: rgba(26, 39, 48, 0.5);
    box-shadow: none;
}

.pro-cta-btn.is-gold {
    background: linear-gradient(135deg, #f5b53a, var(--gold));
    color: #5a3a00;
    box-shadow: 0 8px 20px rgba(224, 147, 26, 0.28);
}

.pro-cta-sub {
    text-align: center;
    font-size: 0.72rem;
    color: var(--dim);
    line-height: 1.5;
}

.pro-cta-sub a {
    color: var(--coral-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Loading state ─────────────────────────────────────────────────── */
.pro-loading-state {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--sub);
    font-size: 0.9rem;
}

.pro-spinner {
    width: 26px;
    height: 26px;
    border: 2.5px solid rgba(24, 39, 48, 0.12);
    border-top-color: var(--coral);
    border-radius: 50%;
    animation: pro-spin 0.7s linear infinite;
    margin: 0 auto 0.75rem;
}

@keyframes pro-spin { to { transform: rotate(360deg); } }

/* ── Toast (kept dark for contrast) ────────────────────────────────── */
.pro-toast {
    position: fixed;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(20, 30, 38, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.65rem 1.2rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    z-index: 9000;
    opacity: 0;
    backdrop-filter: blur(16px);
    transition: opacity 200ms, transform 200ms;
    pointer-events: none;
}

.pro-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.pro-toast.is-error {
    border-color: rgba(255, 80, 60, 0.4);
    color: #ff8a78;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.pro-footer {
    text-align: center;
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.72rem;
    color: var(--dim);
}

.pro-footer a {
    color: var(--coral-deep);
    text-decoration: underline;
}

/* ── Touch ─────────────────────────────────────────────────────────── */
.pro-plan-card,
.pro-qty-btn,
.pro-cta-btn { touch-action: manipulation; }
