:root {
    --navy-deep: #011a27;
    --navy: #022739;
    --navy-mid: #0a3d58;
    --navy-light: #0f4e6e;
    --orange: #ff7000;
    --orange-soft: #ff8e24;
    --orange-glow: rgba(255, 112, 0, 0.3);
    --blue: #3097d1;
    --blue-soft: #4aa9df;
    --blue-deep: #257fb3;
    --blue-glow: rgba(48, 151, 209, 0.34);
    --white: #ffffff;
    --bg: #011a27;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.76);
    --text-muted: rgba(255, 255, 255, 0.46);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.28);
    --glass-shine: rgba(255, 255, 255, 0.08);
    --divider: rgba(255, 255, 255, 0.1);
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(168deg, var(--navy-deep) 0%, var(--navy) 24%, var(--navy-mid) 58%, var(--navy-light) 100%);
    background-attachment: fixed;
    min-height: 100dvh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: -20%;
    background:
    radial-gradient(circle at top right, rgba(255, 112, 0, 0.16) 0%, transparent 30%),
    radial-gradient(circle at bottom left, rgba(48, 151, 209, 0.14) 0%, transparent 34%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 22%);
    pointer-events: none;
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.brand-text {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.lang-switcher {
    display: flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.lang-btn {
    padding: 6px 10px;
    background: transparent;
    border: none;
    line-height: 1;
    cursor: pointer;
    opacity: 0.45;
    transition: background 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.lang-btn:hover { opacity: 0.75; }

.lang-btn.active {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.lang-divider {
    width: 1px;
    height: 14px;
    background: var(--glass-border);
    flex: 0 0 auto;
}

.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 112, 0, 0.12);
    border: 1px solid rgba(255, 112, 0, 0.22);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.hero-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.hero-sub {
    font-size: clamp(0.9rem, 1.9vw, 1.02rem);
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 40rem;
    margin: 0 auto;
    text-wrap: pretty;
}

/* === BENEFITS === */
.benefits {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--glass-bg), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 36px var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
    margin-bottom: 32px;
}

.benefits-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-align: center;
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.benefit:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.benefit-icon.orange { background: rgba(255, 255, 255, 0.08); color: var(--blue); }
.benefit-icon.blue { background: rgba(255, 255, 255, 0.08); color: #7ec8f0; }
.benefit-icon.navy { background: rgba(255, 255, 255, 0.08); color: #9bd9ff; }
.benefit-icon.green { background: rgba(255, 255, 255, 0.08); color: #4ade80; }

.benefit-icon svg {
    width: 20px;
    height: 20px;
    stroke: #9bd9ff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* === MAIN PURCHASE FLOW === */
.main-layout {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.plans-col {
    padding: 18px;
    border-radius: var(--radius-xl);
    background: linear-gradient(165deg, rgba(48, 151, 209, 0.12) 0%, rgba(255, 255, 255, 0.04) 42%, rgba(37, 127, 179, 0.1) 100%);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(48, 151, 209, 0.24);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 var(--glass-shine);
}

.plans-col {
    display: flex;
    flex-direction: column;
    align-self: start;
}

.section-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.discount-offer {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin: -4px 0 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.discount-offer[hidden] {
    display: none;
}

.discount-offer-copy {
    color: var(--text-primary);
}

.discount-offer-timer {
    color: #7fd7ff;
    font-weight: 800;
}

.purchase-actions {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--divider);
}

.payment-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.payment-select-shell {
    position: relative;
}

.payment-select-shell[data-open="true"] {
    z-index: 80;
}

.payment-select-trigger {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.payment-select-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.payment-select-shell[data-open="true"] .payment-select-visual {
    border-color: rgba(48, 151, 209, 0.38);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.payment-select-logos,
.payment-select-option-logos {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.payment-logo-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 4px 6px;
}

.payment-select-logos img,
.payment-select-option-logos img {
    height: 16px;
    width: auto;
    max-width: 68px;
    object-fit: contain;
    display: block;
}

.payment-logos-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.payment-logos-more svg {
    width: 16px;
    height: 4px;
    display: block;
}

.payment-select-text,
.payment-select-option-text {
    min-width: 0;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    text-align: right;
    justify-self: end;
}

.payment-select-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    transition: transform 0.18s ease;
}

.payment-select-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.payment-select-shell[data-open="true"] .payment-select-arrow {
    transform: rotate(180deg);
}

.payment-select-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 8px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 39, 57, 0.96);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
    z-index: 80;
}

.payment-select-dropdown[hidden] {
    display: none;
}

.payment-select-options {
    list-style: none;
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.payment-select-option-item {
    list-style: none;
}

.payment-select-option {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: background 0.16s ease;
}

.payment-select-option:hover,
.payment-select-option[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.08);
}

.payment-select-option[aria-selected="true"] {
    font-weight: 700;
}

.payment-select-trigger:focus-visible .payment-select-visual,
.payment-select-option:focus-visible {
    outline: 3px solid rgba(48, 151, 209, 0.24);
    outline-offset: 3px;
}

.payment-select-trigger:focus-visible .payment-select-visual {
    border-color: rgba(48, 151, 209, 0.42);
    box-shadow: 0 0 0 4px rgba(48, 151, 209, 0.12), 0 16px 36px rgba(0, 0, 0, 0.28);
}

/* === PRICING CARDS === */
.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.plan-card {
    position: relative;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s, background 0.2s;
    overflow: hidden;
    min-height: 100%;
}

.plan-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 0 3px 3px 0;
    transition: background 0.2s;
}

.plan-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.plan-card:focus-visible {
    outline: 3px solid rgba(48, 151, 209, 0.24);
    outline-offset: 3px;
    border-color: rgba(48, 151, 209, 0.42);
    box-shadow: 0 0 0 4px rgba(48, 151, 209, 0.12), 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.plan-card.selected {
    border-color: rgba(48, 151, 209, 0.38);
    background: linear-gradient(160deg, rgba(48, 151, 209, 0.22), rgba(255, 255, 255, 0.08) 52%, rgba(37, 127, 179, 0.12) 100%);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(48, 151, 209, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.plan-card.selected::before {
    background: linear-gradient(180deg, var(--blue-soft), var(--blue));
}

.plan-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.plan-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.plan-duration {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plan-card.selected .plan-duration {
    background: rgba(48, 151, 209, 0.22);
    color: #d9f2ff;
}

.plan-cycle {
    font-size: 0.79rem;
    color: var(--text-secondary);
    line-height: 1.45;
    max-width: none;
}

.plan-price-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
}

.plan-price {
    font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.7rem, 2vw, 2.05rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 0.9;
    white-space: nowrap;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: 'lnum' 1, 'tnum' 1;
}

.plan-original-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1.1;
    white-space: nowrap;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(155, 217, 255, 0.85);
    text-underline-offset: 0.08em;
}

.plan-per-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.69rem;
    font-weight: 700;
    color: #d9f2ff;
    background: rgba(48, 151, 209, 0.2);
    padding: 4px 9px;
    border-radius: 999px;
}

.plan-summary {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: 8px;
    inline-size: auto;
    width: 100%;
    min-height: 76px;
    margin-top: 0;
    padding: 14px 0 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--divider);
}

.plan-summary::before {
    display: none;
}

.plan-card.selected .plan-summary {
    border-top-color: rgba(48, 151, 209, 0.24);
}

/* === CTA BUTTON === */
.cta-wrapper {
    align-self: start;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue-soft), var(--blue) 56%, var(--blue-deep));
    color: var(--white);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
    box-shadow: 0 8px 28px var(--blue-glow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(48, 151, 209, 0.42);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(48, 151, 209, 0.24);
}

.cta-button .cta-sub {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 2px;
}

/* === TERMS === */
.terms {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 32px;
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.terms a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.terms a:hover { text-decoration: underline; }

/* === FOOTER === */
.footer {
    text-align: center;
    display: grid;
    gap: 18px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.footer-testimonials,
.footer-meta {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
}

.footer-prayer {
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
    padding: 4px 8px 0;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-prayer .arabic {
    display: block;
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 1rem;
    font-style: normal;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.75;
    margin-bottom: 8px;
}

.footer-prayer .translation {
    display: block;
    font-size: 0.8rem;
    font-style: italic;
}

.footer-prayer .source {
    display: block;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-testimonials {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--glass-bg), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 36px var(--glass-shadow), inset 0 1px 0 var(--glass-shine);
    text-align: left;
}

.footer-testimonials-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-testimonials-label {
    margin-bottom: 0;
}

.footer-testimonials-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-nav {
    width: 32px;
    height: 32px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.testimonial-nav:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.testimonial-nav:focus-visible {
    outline: 3px solid rgba(255, 112, 0, 0.2);
    outline-offset: 3px;
    border-color: rgba(255, 112, 0, 0.24);
}

.testimonial-nav svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.testimonial-track {
    display: flex;
    transition: transform 0.45s ease;
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.testimonial-quote {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
    text-wrap: pretty;
    margin: 0;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 12px;
    border-top: 1px solid var(--divider);
}

.testimonial-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.testimonial-role {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.testimonial-dots {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.testimonial-dot {
    appearance: none;
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.testimonial-dot:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.34);
}

.testimonial-dot:focus-visible {
    outline: 3px solid rgba(255, 112, 0, 0.18);
    outline-offset: 3px;
}

.testimonial-dot.active {
    width: 18px;
    background: var(--blue);
}

.footer-meta {
    position: relative;
    max-width: 620px;
    padding-top: 18px;
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-meta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 96px;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.footer-help {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 0;
}

.footer a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover { text-decoration: underline; }

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
}

/* === RESPONSIVE === */

@media (max-width: 799px) {
    .main-layout { gap: 24px; }

    .plans-col {
    height: auto;
    }

    .purchase-actions {
    gap: 14px;
    }

    .plans {
    grid-template-columns: 1fr;
    }

    .plan-card {
    min-height: unset;
    }

    .benefit {
    padding: 10px 12px;
    }
}

@media (max-width: 600px) {
    .page {
    padding: 24px 16px 40px;
    }

    .site-header { margin-bottom: 36px; }

    .hero h1 { font-size: 1.4rem; }

    .hero-sub {
    max-height: none;
    overflow: visible;
    display: block;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
    text-wrap: pretty;
    }

    .benefits {
    padding: 20px 16px;
    }

    .benefits-list {
    grid-template-columns: 1fr;
    gap: 10px;
    }

    .benefit {
    gap: 10px;
    font-size: 0.82rem;
    }

    .benefit-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    }

    .benefit-icon svg {
    width: 16px;
    height: 16px;
    }

    .plans-col {
    padding: 16px;
    }

    .purchase-actions {
    gap: 12px;
    }

    .payment-select-visual,
    .payment-select-option {
    gap: 10px;
    padding: 12px 14px;
    }

    .payment-select-logos,
    .payment-select-option-logos {
    gap: 8px;
    }

    .payment-select-logos img,
    .payment-select-option-logos img {
    max-width: 58px;
    }

    .payment-select-text,
    .payment-select-option-text {
    font-size: 0.86rem;
    }

    .plans {
    grid-template-columns: 1fr;
    }

    .footer {
    gap: 14px;
    }

    .footer-prayer {
    max-width: 560px;
    padding: 2px 0 0;
    }

    .footer-testimonials {
    padding: 16px;
    border-radius: var(--radius-lg);
    }

    .footer-testimonials-head {
    margin-bottom: 14px;
    }

    .testimonial-slide {
    padding: 0;
    gap: 12px;
    }

    .testimonial-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    }

    .testimonial-quote {
    font-size: 0.84rem;
    }

    .testimonial-author {
    padding-top: 10px;
    }

    .footer-meta {
    padding-top: 14px;
    }

    .footer-links {
    flex-wrap: wrap;
    gap: 10px;
    }

    .plan-card {
    padding: 16px;
    gap: 10px;
    }

    .plan-top {
    margin-bottom: 0;
    }

    .plan-summary {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    inline-size: auto;
    min-height: 0;
    padding: 10px 0 0;
    gap: 6px;
    border-top: 1px solid var(--divider);
    }

    .plan-summary::before {
    display: none;
    }

    .plan-card.selected .plan-summary {
    border-top-color: rgba(48, 151, 209, 0.24);
    }

    .plan-price-row {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 6px;
    }

    .plan-price {
    font-size: 1.8rem;
    }

}

@media (max-width: 380px) {
    .footer-testimonials-head {
    gap: 12px;
    }

    .testimonial-slide {
    grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .purchase-actions {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    }

    .payment-select-wrap,
    .cta-wrapper {
    min-width: 0;
    width: 100%;
    }

    .payment-select-logos,
    .payment-select-option-logos {
    flex-wrap: nowrap;
    }

    .cta-button {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-track {
    transition: none;
    }
}

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

.payment-select-loading {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.payment-select-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-top-color: rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    flex-shrink: 0;
    animation: payment-spin 0.75s linear infinite;
}

.payment-select-shell[data-loading] .payment-select-loading {
    display: inline-flex;
}

.payment-select-shell[data-loading] .payment-select-logos,
.payment-select-shell[data-loading] .payment-select-text,
.payment-select-shell[data-loading] .payment-select-arrow {
    display: none;
}

.payment-select-shell[data-loading] .payment-select-trigger {
    cursor: wait;
    pointer-events: none;
}