/* RP Prime Review — plans, subscriptions, locked content, and auth extras */

/* ---- Plan cards -------------------------------------------------------- */
.plan-card {
    display: flex;
    flex-direction: column;
    position: relative;
}
/* Short scope note under the CTA (e.g. "Full access to the Criminal Law area"). */
.plan-card .plan-scope-note {
    font-size: .85rem;
    color: #64748b;
    margin: 0 0 .25rem;
}
/* Divider + label above the areas/access checklist. */
.plan-card .plan-features-title {
    margin: .5rem 0 .5rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(10, 31, 68, .1);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--navy, #0B2472);
}

/* Feature checklist (areas + access perks), check / dash rows. */
.plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .9rem;
    line-height: 1.3;
}
.plan-features .feat-ico {
    flex: 0 0 auto;
    width: 1.1rem;
    text-align: center;
    font-weight: 700;
}
.plan-features .feat-on .feat-ico { color: #16a34a; }
.plan-features .feat-on .feat-text { color: #1e293b; }
.plan-features .feat-strong .feat-text { font-weight: 600; }
.plan-features .feat-off .feat-ico { color: #cbd5e1; }
.plan-features .feat-off .feat-text {
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: rgba(148, 163, 184, .5);
}
.plan-card .plan-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy, #0B2472);
    margin: .35rem 0 .25rem;
}
.plan-card .plan-price .text-muted {
    font-size: .9rem;
    font-weight: 500;
}

/* Previous price shown struck-through beside the current price. */
.plan-card .plan-price .plan-price-was {
    font-size: 1rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: .15rem;
}

/* ---- Plan promotion ribbon -------------------------------------------- */
.plan-card-promo {
    position: relative;
    border: 1px solid var(--gold, #FFC629);
    box-shadow: 0 4px 18px rgba(201, 162, 39, .18);
    overflow: hidden;
}
.plan-ribbon {
    display: inline-block;
    margin-bottom: .5rem;
    padding: .2rem .7rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #3a2e00;
    background: linear-gradient(90deg, #ffd76a, var(--gold, #FFC629));
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(201, 162, 39, .3);
}

/* ---- Locked content cards ---------------------------------------------- */
.card-locked {
    position: relative;
    opacity: .96;
    border: 1px dashed rgba(10, 31, 68, .25);
    background: linear-gradient(180deg, rgba(10,31,68,.02), rgba(10,31,68,.05));
}
.lock-badge {
    font-size: 1.1rem;
    line-height: 1;
    filter: grayscale(.2);
}

/* ---- Plan item picker (admin) ----------------------------------------- */
.pi-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    max-height: 240px;
    overflow-y: auto;
}
.pi-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .6rem;
    border: 1px solid rgba(10,31,68,.08);
    border-radius: 8px;
    background: #fff;
}
.pi-row .pi-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn-xs {
    padding: .2rem .5rem;
    font-size: .78rem;
    line-height: 1.2;
    border-radius: 6px;
}

/* ---- GCash checkout box (student) ------------------------------------- */
.gcash-box {
    text-align: center;
    padding: 1rem;
    border: 1px solid rgba(10,31,68,.12);
    border-radius: 12px;
    background: #f7f9fc;
}
.gcash-name { font-weight: 600; margin: .25rem 0 0; }
.gcash-number {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--color-navy, #0a1f44);
    margin: .1rem 0 .5rem;
}
.gcash-qr {
    max-width: 180px;
    width: 100%;
    height: auto;
    margin: .5rem auto 0;
    display: block;
    border-radius: 8px;
}

/* ---- Receipt viewer (admin) ------------------------------------------- */
.receipt-view { text-align: center; }
.receipt-img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 8px;
}

/* ---- Subscription rows ------------------------------------------------- */
.sub-row {
    padding: .5rem 0;
    border-bottom: 1px solid rgba(10,31,68,.06);
}
.sub-row:last-child { border-bottom: none; }

/* ---- Badges (fallbacks if not already defined) ------------------------ */
.badge-warning { background: #fff4d6; color: #8a6100; }
.badge-danger  { background: #fde2e1; color: #9b1c1c; }

/* ---- Auth: Google button, divider, alt link --------------------------- */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: .82rem;
    margin: 1rem 0;
    gap: .75rem;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(10,31,68,.12);
}
.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-weight: 600;
}
.btn-google:hover { background: #f7f8f9; }
.btn-google .google-ico { flex: 0 0 auto; }
.auth-alt-link {
    text-align: center;
    margin-top: 1rem;
    font-size: .9rem;
    color: #475569;
}
.auth-alt-link a { font-weight: 600; }
