/* Ribbon plan cards — Freepik reference adapted to yellow / magenta */
:root {
    --rp-ink: #1a1a1a;
    --rp-black: #1f1f1f;
    --rp-fold: #9b0a3c;
    --rp-gold: #f5d84a;
    --rp-grad: linear-gradient(90deg, #ffe56a 0%, #f5d84a 28%, #ff8a3d 62%, #e91e8c 100%);
    --rp-grad-btn: linear-gradient(90deg, #9c27b0 0%, #e91e8c 55%, #ff2d95 100%);
}

.gp-wrap,
.rp-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
}

.rp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 24px;
    padding: 8px 0 12px;
}

.rp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    padding: 0 0 22px;
    border-radius: 8px;
    background: #fff;
    box-shadow:
        0 18px 40px -16px rgba(26, 26, 26, 0.28),
        0 4px 14px rgba(0, 0, 0, 0.06);
    overflow: visible;
    isolation: isolate;
    animation: rpRise 0.55s ease both;
}

.rp-card:nth-child(2) { animation-delay: 0.06s; }
.rp-card:nth-child(3) { animation-delay: 0.12s; }
.rp-card:nth-child(4) { animation-delay: 0.18s; }

.rp-card.is-featured {
    box-shadow:
        0 22px 48px -14px rgba(233, 30, 140, 0.35),
        0 0 0 2px rgba(233, 30, 140, 0.2);
}

/* Horizontal gradient band — middle only */
.rp-band {
    position: absolute;
    left: 0;
    right: 0;
    top: 112px;
    bottom: 72px;
    background: var(--rp-grad);
    z-index: 0;
    box-shadow:
        0 10px 24px rgba(233, 30, 140, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rp-card--gold .rp-band {
    background: linear-gradient(90deg, #fff59d 0%, #ffd54f 40%, #ffb300 100%);
}
.rp-card--magenta .rp-band {
    background: linear-gradient(90deg, #ffe082 0%, #ff8a65 45%, #e91e8c 100%);
}
.rp-card--sunset .rp-band {
    background: linear-gradient(90deg, #ffe56a 0%, #ff9800 50%, #f44336 100%);
}
.rp-card--rose .rp-band {
    background: linear-gradient(90deg, #fce4ec 0%, #f48fb1 40%, #c2185b 100%);
}

/* White top: ribbon + invest amount */
.rp-top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: start;
    padding: 0 18px 0 18px;
    min-height: 112px;
}

.rp-ribbon {
    position: relative;
    z-index: 2;
    width: 92px;
    margin: 0;
    padding: 18px 10px 22px;
    background: var(--rp-black);
    border-radius: 0 0 28px 28px;
    color: #fff;
    text-align: center;
    box-shadow:
        6px 10px 0 var(--rp-fold),
        0 16px 28px rgba(0, 0, 0, 0.28);
}

.rp-ribbon-line {
    display: block;
    width: 42px;
    height: 2px;
    margin: 0 auto 10px;
    background: var(--rp-gold);
    border-radius: 2px;
}

.rp-ribbon-idx {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--rp-gold);
    margin-bottom: 6px;
}

.rp-ribbon .rp-ribbon-name,
.rp-card h3.rp-ribbon-name {
    margin: 0 !important;
    font-size: 12.5px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
    color: #ffe978 !important;
    word-break: break-word;
}

.rp-ribbon-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a1a1a;
    background: var(--rp-gold);
}

.rp-ribbon-fold {
    position: absolute;
    top: 0;
    left: 100%;
    width: 10px;
    height: 14px;
    background: var(--rp-fold);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.rp-price {
    padding: 18px 4px 10px 0;
    text-align: right;
}
.rp-price small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 4px;
}
.rp-price strong {
    display: block;
    font-size: clamp(1.7rem, 4vw, 2.15rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #111;
}

/* Yellow band: aligned feature rows */
.rp-body {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 18px 20px 16px;
    color: #111;
}

.rp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rp-list li {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(26, 26, 26, 0.06);
    font-size: 13px;
    line-height: 1.25;
}
.rp-list i {
    width: 22px;
    text-align: center;
    font-size: 12px;
    color: #222;
    opacity: 0.9;
}
.rp-lbl {
    font-weight: 600;
    color: #333;
    min-width: 0;
}
.rp-val {
    font-weight: 900;
    color: #111;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Bottom-right folded CTA */
.rp-cta {
    position: relative;
    z-index: 2;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 16px 0 0;
    padding: 14px 22px 14px 26px;
    background: var(--rp-black);
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
    box-shadow:
        -6px 8px 0 var(--rp-fold),
        0 12px 24px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, filter 0.2s ease;
}
.rp-cta i {
    font-size: 11px;
    color: var(--rp-gold);
}
.rp-cta:hover {
    transform: translateY(-2px);
    color: #fff !important;
    filter: brightness(1.08);
}

.rp-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 16px;
    color: #444;
    background: #fff;
    border-radius: 16px;
}
.rp-empty h3 { margin: 0 0 6px; color: #111; }
.rp-empty p { margin: 0; color: #666; }

@keyframes rpRise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

/* User /plan page */
.dv-plans .rp-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 440px;
    margin: 0 auto;
}
@media (min-width: 900px) {
    .dv-plans .rp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 900px;
    }
}
@media (min-width: 1200px) {
    .dv-plans .rp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1120px;
    }
}

/* Landing section */
@media (max-width: 1100px) {
    .rp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 720px) {
    .rp-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
        gap: 30px;
    }
    .rp-top {
        grid-template-columns: 84px 1fr;
        gap: 12px;
        padding: 0 14px;
        min-height: 104px;
    }
    .rp-band {
        top: 104px;
        bottom: 68px;
    }
    .rp-ribbon {
        width: 84px;
        padding: 16px 8px 20px;
    }
    .rp-body {
        padding: 16px 14px 14px;
    }
    .rp-list li {
        grid-template-columns: 20px 1fr auto;
        gap: 8px;
        padding: 7px 10px;
        font-size: 12.5px;
    }
    .rp-price strong {
        font-size: 1.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rp-card, .rp-cta { animation: none !important; transition: none; }
}

/* Backward-compatible empty aliases if old gp markup remains elsewhere */
.gp-grid { display: contents; }
.gp-empty { display: none; }
