/* Payment / plans page */

.page-payment .pay-hero {
    position: relative;
    padding: 4rem 0 3.5rem;
    color: #eef5ef;
    overflow: hidden;
    isolation: isolate;
}

.pay-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 50% 60% at 85% 15%, rgba(176, 137, 61, 0.22), transparent 55%),
        radial-gradient(ellipse 45% 55% at 10% 90%, rgba(31, 122, 85, 0.28), transparent 50%),
        linear-gradient(160deg, #07120e 0%, #0e221a 55%, #123028 100%);
}

.pay-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
    text-align: center;
}

.pay-kicker {
    color: var(--brass-soft, #d4b36a) !important;
    font-weight: 700;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.pay-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 0.75rem;
    letter-spacing: -0.03em;
}

.pay-lead {
    max-width: 40rem;
    margin: 0 auto;
    color: rgba(238, 245, 239, 0.72) !important;
    line-height: 1.8;
    font-size: 1.05rem;
}

.pay-section {
    padding: 3rem 0 4.5rem;
    background: var(--paper, #fafbf8);
}

.pay-wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.pay-shared {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pay-shared h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink, #0a1612) !important;
    margin: 0 0 1.1rem;
}

.pay-shared-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line, rgba(10, 22, 18, 0.1));
    color: var(--ink, #0a1612);
    font-size: 0.88rem;
    font-weight: 600;
    animation: pay-chip-in 0.6s ease both;
}

.pay-chip i {
    color: var(--emerald, #1f7a55);
}

.pay-chip:nth-child(2) { animation-delay: 0.05s; }
.pay-chip:nth-child(3) { animation-delay: 0.1s; }
.pay-chip:nth-child(4) { animation-delay: 0.15s; }
.pay-chip:nth-child(5) { animation-delay: 0.2s; }

@keyframes pay-chip-in {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

.pay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.pay-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line, rgba(10, 22, 18, 0.1));
    border-radius: 22px;
    padding: 1.6rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
    animation: pay-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--delay, 0s);
}

.pay-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 50px rgba(10, 22, 18, 0.1);
}

@keyframes pay-card-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

.pay-card-featured {
    border-color: rgba(31, 122, 85, 0.35);
    box-shadow: 0 16px 40px rgba(31, 122, 85, 0.12);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(160deg, rgba(31, 122, 85, 0.35), rgba(176, 137, 61, 0.25)) border-box;
    border: 1.5px solid transparent;
}

.pay-card-gold {
    border-color: rgba(176, 137, 61, 0.35);
}

.pay-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink, #0a1612);
    color: #eef5ef;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
}

.pay-card-top {
    text-align: center;
    margin-bottom: 1.25rem;
}

.pay-plan-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #14241e, #1f7a55);
    color: #eef5ef;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
    animation: pay-float 4.5s ease-in-out infinite;
}

.pay-plan-icon-bronze {
    background: linear-gradient(145deg, #6b4a1e, #b0893d);
}

.pay-plan-icon-gold {
    background: linear-gradient(145deg, #8a6a1a, #d4b36a);
}

@keyframes pay-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.pay-card-top h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink, #0a1612) !important;
    margin: 0 0 0.35rem;
}

.pay-plan-desc {
    margin: 0 0 0.85rem;
    color: var(--muted, #5a6b63) !important;
    font-size: 0.9rem;
}

.pay-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.pay-price strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink, #0a1612) !important;
    letter-spacing: -0.03em;
}

.pay-price span {
    color: var(--muted, #5a6b63) !important;
    font-size: 0.9rem;
    font-weight: 600;
}

.pay-limits {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    flex: 1;
}

.pay-limits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line, rgba(10, 22, 18, 0.08));
}

.pay-limits li > i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(31, 122, 85, 0.1);
    color: var(--emerald, #1f7a55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pay-limits li div {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
}

.pay-limits strong {
    font-size: 0.9rem;
    color: var(--ink, #0a1612) !important;
    font-weight: 700;
}

.pay-limits span {
    font-size: 0.85rem;
    color: var(--muted, #5a6b63) !important;
    white-space: nowrap;
}

.pay-limits span b {
    color: var(--ink, #0a1612);
    font-size: 1.05rem;
}

.pay-unlimited {
    color: var(--emerald, #1f7a55) !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.pay-note {
    font-size: 0.82rem;
    color: var(--muted, #5a6b63) !important;
    line-height: 1.6;
    margin: 0 0 1rem;
    text-align: center;
}

.pay-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: var(--ink, #0a1612);
    color: #eef5ef !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.25s ease, background 0.25s ease;
}

.pay-cta:hover {
    background: var(--emerald-deep, #145c3f);
    transform: translateY(-2px);
    color: #fff !important;
}

.pay-cta-ghost {
    background: transparent;
    color: var(--ink, #0a1612) !important;
    border: 1.5px solid var(--line, rgba(10, 22, 18, 0.15));
}

.pay-cta-ghost:hover {
    background: rgba(31, 122, 85, 0.08);
    color: var(--emerald, #1f7a55) !important;
}

.pay-cta-gold {
    background: linear-gradient(135deg, #8a6a1a, #b0893d);
}

.pay-cta-gold:hover {
    background: linear-gradient(135deg, #6b4a1e, #8a6a1a);
}

html[dir="ltr"] .pay-cta i {
    transform: scaleX(-1);
}

.pay-compare {
    margin-bottom: 2.5rem;
}

.pay-compare h2 {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink, #0a1612) !important;
    margin: 0 0 1.25rem;
}

.pay-table-wrap {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--line, rgba(10, 22, 18, 0.1));
    background: #fff;
}

.pay-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.pay-table th,
.pay-table td {
    padding: 0.85rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--line, rgba(10, 22, 18, 0.08));
    font-size: 0.9rem;
    color: var(--text, #12201a) !important;
}

.pay-table th {
    background: var(--panel, #f3f6f2);
    font-weight: 800;
    color: var(--ink, #0a1612) !important;
}

.pay-table td:first-child,
.pay-table th:first-child {
    text-align: start;
}

.pay-table td:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.pay-table td:first-child i {
    color: var(--emerald, #1f7a55);
    width: 1.1rem;
}

.pay-span-all {
    color: var(--emerald, #1f7a55) !important;
    font-weight: 700;
}

.pay-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    background: var(--ink, #0a1612);
    color: #eef5ef;
}

.pay-help h2 {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff !important;
}

.pay-help p {
    margin: 0;
    color: rgba(238, 245, 239, 0.7) !important;
}

.pay-help-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.pay-help .pay-cta {
    width: auto;
    min-width: 140px;
    background: var(--brass, #b0893d);
    color: var(--ink, #0a1612) !important;
}

.pay-help .pay-cta-ghost {
    background: transparent;
    border-color: rgba(238, 245, 239, 0.3);
    color: #eef5ef !important;
}

.pay-help .pay-cta-ghost:hover {
    background: rgba(238, 245, 239, 0.1);
    color: #fff !important;
}

@media (max-width: 992px) {
    .pay-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-inline: auto;
        margin-bottom: 2.5rem;
    }

    .pay-card-featured {
        order: -1;
    }
}

@media (max-width: 640px) {
    .pay-help {
        flex-direction: column;
        text-align: center;
    }

    .pay-help-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pay-chip,
    .pay-card,
    .pay-plan-icon {
        animation: none !important;
    }
}
