/* ==========================================================
   Asylonia Pricing v5
   International credit storefront + Omise card modal
   ========================================================== */

.pricing-v5 {
    --pv-bg: #f6f0e7;
    --pv-bg-soft: #fbf8f2;
    --pv-ink: #071a34;
    --pv-muted: rgba(7, 26, 52, 0.66);
    --pv-card: #fffaf1;
    --pv-card-2: #fff6e8;
    --pv-gold: #d8a84f;
    --pv-gold-2: #f1c86a;
    --pv-gold-3: #b57919;
    --pv-blue: #082b55;
    --pv-line: rgba(184, 124, 31, 0.30);
    color: var(--pv-ink);
    background:
        radial-gradient(circle at 12% 2%, rgba(216, 168, 79, 0.12), transparent 24%),
        linear-gradient(180deg, var(--pv-bg-soft) 0%, var(--pv-bg) 100%);
}

.pricing-v5 * {
    box-sizing: border-box;
}

.pricing-v5 a {
    text-decoration: none;
}

.pricing-v5 h1,
.pricing-v5 h2,
.pricing-v5 h3,
.pricing-v5 p {
    margin: 0;
}

.pricing-v5-wrap {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 52px) 24px;
}

.pricing-v5-hero .pricing-v5-wrap {
    padding-bottom: 12px;
}

.pricing-v5-title {
    max-width: 980px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5.1vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    color: var(--pv-ink);
}

.credit-pack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 4px;
}

.credit-pack-card {
    position: relative;
    min-height: 348px;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid var(--pv-line);
    background:
        radial-gradient(circle at 88% 0%, rgba(216, 168, 79, 0.16), transparent 38%),
        linear-gradient(180deg, var(--pv-card) 0%, var(--pv-card-2) 100%);
    color: var(--pv-ink);
    box-shadow:
        0 18px 42px rgba(7, 26, 52, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.38) inset;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.credit-pack-card:hover,
.credit-pack-card.is-hovered {
    transform: translateY(-2px);
    border-color: rgba(216, 168, 79, 0.62);
    box-shadow:
        0 24px 58px rgba(7, 26, 52, 0.12),
        0 0 0 1px rgba(216, 168, 79, 0.10) inset;
}

.credit-pack-card.is-featured {
    border-color: rgba(216, 168, 79, 0.72);
}

.credit-pack-card.is-founder {
    padding-right: 78px;
    border-color: rgba(216, 168, 79, 0.82);
}

.credit-pack-top {
    position: relative;
    z-index: 2;
}

.credit-pack-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 230, 160, 0.22), transparent 42%),
        linear-gradient(180deg, #21130a 0%, #050302 100%);
    border: 1px solid rgba(216, 168, 79, 0.56);
    color: #f1c86a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 950;
    box-shadow: 0 0 22px rgba(216, 168, 79, 0.18);
}

.credit-pack-badge {
    width: fit-content;
    margin-bottom: 10px;
    color: var(--pv-gold-3);
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.credit-pack-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 1.8vw, 2rem);
    line-height: 1;
    color: var(--pv-ink);
}

.credit-pack-credits {
    margin-top: 20px;
}

.credit-pack-credits strong {
    display: block;
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 0.88;
    letter-spacing: -0.052em;
    color: var(--pv-ink);
}

.credit-pack-credits span {
    display: block;
    margin-top: 6px;
    color: var(--pv-muted);
    font-weight: 850;
}

.credit-pack-price {
    margin-top: 18px;
    width: min(100%, 190px);
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(184, 124, 31, 0.26);
    background: rgba(255, 255, 255, 0.42);
}

.credit-pack-price strong {
    display: block;
    font-size: clamp(2rem, 3.1vw, 3.25rem);
    line-height: 0.88;
    color: var(--pv-ink);
    letter-spacing: -0.045em;
}

.credit-pack-action {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #082b55;
    color: #fff8e8;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(8, 43, 85, 0.22);
    transition: transform 0.18s ease, background 0.18s ease;
}

.credit-pack-action:hover,
.civic-card-action:hover {
    transform: translateY(-1px);
}

.credit-pack-card.is-founder .credit-pack-action,
.civic-card-action {
    background: linear-gradient(180deg, #ffd879, #c98d22);
    color: #130b04;
    box-shadow: 0 14px 30px rgba(184, 124, 31, 0.22);
}

.credit-pack-action.is-disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.credit-founder-ribbon {
    position: absolute;
    top: -6px;
    right: 18px;
    z-index: 6;
    width: 54px;
    height: 142px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 18px;
    background: linear-gradient(180deg, #3a2312 0%, #241409 100%);
    border: 2px solid rgba(230, 187, 92, 0.95);
    border-bottom: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.18),
        0 0 16px rgba(210, 176, 109, 0.16);
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
}

.credit-founder-ribbon::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 18px;
    border-left: 1px solid rgba(230, 187, 92, 0.45);
    border-right: 1px solid rgba(230, 187, 92, 0.45);
    border-top: 1px solid rgba(230, 187, 92, 0.45);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    pointer-events: none;
}

.credit-founder-ribbon img {
    width: 25px;
    height: 25px;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 7px rgba(230, 187, 92, 0.26));
}

.pricing-v5-anchor-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.pricing-v5-pill {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pv-line);
    background: rgba(255, 250, 241, 0.72);
    color: var(--pv-ink);
    font-weight: 900;
}

.pricing-v5-pill.is-primary {
    color: #fff8e8;
    background: var(--pv-blue);
    border-color: var(--pv-blue);
}

.civic-pricing-section {
    color: #fff4da;
    background:
        radial-gradient(circle at 88% 8%, rgba(216, 168, 79, 0.18), transparent 30%),
        linear-gradient(135deg, #090604, #120c07 52%, #070503);
}

.pricing-v5-section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4vw, 4.4rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: inherit;
}

.civic-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.civic-card {
    min-height: 260px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(216, 168, 79, 0.3);
    background: rgba(255, 255, 255, 0.045);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.civic-card.is-featured {
    border-color: rgba(241, 200, 106, 0.86);
    background:
        radial-gradient(circle at 72% 0%, rgba(241, 200, 106, 0.15), transparent 40%),
        rgba(255, 255, 255, 0.055);
}

.civic-card-label {
    color: #f1c86a;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.civic-card h3 {
    margin-top: 12px;
    font-family: Georgia, "Times New Roman", serif;
    color: #fff6e8;
    font-size: clamp(1.4rem, 2vw, 2.1rem);
    line-height: 1;
}

.civic-card-price {
    margin-top: 24px;
    color: #ffd879;
    font-weight: 950;
    font-size: 1.55rem;
}

.civic-card-action,
.civic-card-soon {
    min-height: 48px;
    margin-top: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 950;
}

.civic-card-soon {
    color: rgba(255, 244, 218, 0.68);
    border: 1px solid rgba(216, 168, 79, 0.28);
}

.pricing-v5-note {
    margin-top: 28px;
    color: rgba(255, 244, 218, 0.52);
    font-size: 0.92rem;
}

.pricing-payment-status {
    min-height: 22px;
    margin-top: 16px;
    color: rgba(7, 26, 52, 0.72);
    font-weight: 850;
}

.pricing-payment-status.is-error {
    color: #9b1c1c;
}

.pricing-payment-status.is-success {
    color: #137a3f;
}

/* ==========================================================
   Payment modal
   ========================================================== */

.pricing-payment-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(5, 3, 1, 0.74);
    backdrop-filter: blur(12px);
}

.pricing-payment-modal.is-open {
    display: flex;
}

.payment-box {
    width: min(100%, 620px);
    max-height: min(92vh, 760px);
    overflow: auto;
    border-radius: 30px;
    padding: 34px;
    background:
        radial-gradient(circle at 88% 0%, rgba(216, 168, 79, 0.18), transparent 34%),
        linear-gradient(180deg, #fffaf1 0%, #f6ead4 100%);
    border: 1px solid rgba(184, 124, 31, 0.42);
    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.44),
        0 0 0 1px rgba(255, 255, 255, 0.48) inset;
    color: var(--pv-ink);
}

.payment-box-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.payment-box-head h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: var(--pv-ink);
}

.payment-box-head p {
    margin-top: 8px;
    color: rgba(7, 26, 52, 0.68);
    font-size: 0.9rem;
    font-weight: 850;
}

.payment-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(184, 124, 31, 0.24);
    background: rgba(255, 255, 255, 0.72);
    color: var(--pv-ink);
    font-weight: 950;
    cursor: pointer;
}

.payment-form {
    display: grid;
    gap: 16px;
    width: 100%;
}

.payment-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.payment-form label span {
    color: rgba(7, 26, 52, 0.62);
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.payment-form input {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 54px;
    border-radius: 15px;
    border: 1px solid rgba(184, 124, 31, 0.34);
    background: rgba(255, 255, 255, 0.74);
    padding: 0 16px;
    color: var(--pv-ink);
    font-size: 1rem;
    font-weight: 800;
    outline: none;
}

.payment-form input:focus {
    border-color: rgba(8, 43, 85, 0.62);
    box-shadow: 0 0 0 4px rgba(216, 168, 79, 0.18);
}

.payment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.75fr);
    gap: 14px;
    width: 100%;
}

.payment-submit {
    width: 100%;
    min-height: 56px;
    margin-top: 8px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #0d3d70 0%, #062b53 100%);
    color: #fff8e8;
    font-size: 1rem;
    font-weight: 950;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(8, 43, 85, 0.28);
}

.payment-submit:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.payment-safe-note {
    margin-top: 12px;
    color: rgba(7, 26, 52, 0.58);
    font-size: 0.78rem;
    line-height: 1.45;
}

@media (max-width: 1120px) {
    .credit-pack-grid,
    .civic-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .pricing-v5-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pricing-v5-title {
        font-size: clamp(2rem, 13vw, 3.55rem);
    }

    .credit-pack-grid,
    .civic-pricing-grid {
        grid-template-columns: 1fr;
    }

    .credit-pack-card,
    .civic-card {
        min-height: auto;
    }

    .credit-pack-card.is-founder {
        padding-right: 68px;
    }

    .credit-founder-ribbon {
        right: 14px;
        width: 48px;
        height: 126px;
        padding-top: 16px;
    }

    .credit-founder-ribbon img {
        width: 21px;
        height: 21px;
    }

    .pricing-payment-modal {
        padding: 14px;
    }

    .payment-box {
        padding: 24px;
        border-radius: 24px;
    }

    .payment-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   SVC Showcase Recorder pricing card
   ========================================================== */

.svc-pricing-block {
    margin-top: 28px;
}

.svc-pricing-title {
    margin: 0 0 14px;
    color: #ffd884;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.svc-pricing-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px);
    gap: 16px;
}

.civic-card.svc-card {
    min-height: 300px;
    border-color: rgba(255, 216, 132, 0.48);
    background:
        radial-gradient(circle at 82% 0%, rgba(255, 216, 132, 0.16), transparent 40%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.072), rgba(255, 255, 255, 0.028)),
        rgba(18, 11, 6, 0.86);
}

.svc-card-icon {
    width: 92px;
    height: 92px;
    margin: 14px 0 12px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 18%, rgba(255, 230, 160, 0.20), transparent 42%),
        linear-gradient(180deg, #21130a 0%, #050302 100%);
    border: 1px solid rgba(210, 176, 109, 0.42);
    box-shadow:
        0 0 24px rgba(216, 168, 79, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.svc-card-icon img {
    width: 84px;
    height: 84px;
    display: block;
    object-fit: contain;
}

.svc-card-line {
    margin-top: 10px;
    color: rgba(255, 244, 218, 0.62);
    font-size: 0.92rem;
    font-weight: 850;
}

@media (max-width: 680px) {
    .svc-pricing-grid {
        grid-template-columns: 1fr;
    }
}
