/* ─── Pricing Page ────────────────────────────────────────────────────────── */

body.pricing-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
}

.pricing-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Header */
.pricing-header {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 24px;
    font-size: 14px;
    transition: color 0.2s;
}
.pricing-back:hover { color: #fff; }

.pricing-header h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    margin: 0 auto;
}

/* Checkout message */
.checkout-message {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 32px;
    display: none;
}
.checkout-message.success {
    border: 1px solid rgba(39, 174, 96, 0.5);
    background: rgba(39, 174, 96, 0.15);
    display: block;
}
.checkout-message.cancelled {
    border: 1px solid rgba(243, 156, 18, 0.5);
    background: rgba(243, 156, 18, 0.15);
    display: block;
}
.checkout-message i { font-size: 40px; margin-bottom: 12px; }
.checkout-message.success i { color: #2ecc71; }
.checkout-message.cancelled i { color: #f39c12; }
.checkout-message h3 { margin-bottom: 6px; }
.checkout-message p { color: rgba(255, 255, 255, 0.8); }

/* Credits banner */
.credits-banner {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    margin-bottom: 40px;
    display: none;
}
.credits-banner.visible { display: block; }
.credits-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
}
.credits-banner-count {
    font-size: 26px;
    font-weight: 700;
    color: #7C3AED;
}

/* Login prompt */
.login-prompt {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    margin: 40px auto;
    display: none;
}
.login-prompt h3 { font-size: 22px; margin-bottom: 12px; }
.login-prompt p { color: rgba(255, 255, 255, 0.7); margin-bottom: 20px; }
.login-prompt a {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.login-prompt a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

/* Pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.5);
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.15);
}
.pricing-card.popular {
    border-color: rgba(124, 58, 237, 0.6);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    color: white;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon { font-size: 40px; margin-bottom: 16px; }
.card-name { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.card-credits { font-size: 15px; color: rgba(255, 255, 255, 0.6); margin-bottom: 20px; }
.card-price { font-size: 44px; font-weight: 700; margin-bottom: 6px; }
.card-price span { font-size: 18px; font-weight: 400; color: rgba(255, 255, 255, 0.5); }
.card-per-credit { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-bottom: 20px; }

.savings-badge {
    display: inline-block;
    background: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.buy-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}
.buy-btn.primary {
    background: linear-gradient(135deg, #7C3AED, #6D28D9);
    color: white;
}
.buy-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}
.buy-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.buy-btn.secondary:hover { background: rgba(255, 255, 255, 0.18); }
.buy-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.buy-btn .spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* What 1 Credit Includes */
.includes-section {
    text-align: center;
    margin-top: 60px;
}
.includes-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
}
.includes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.includes-item { padding: 20px; }
.includes-icon {
    width: 52px; height: 52px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
    color: #7C3AED;
}
.includes-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.includes-item p { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* Responsive */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto 60px;
    }
    .pricing-card.popular { order: -1; }
    .includes-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-header h1 { font-size: 32px; }
}

@media (max-width: 500px) {
    .includes-grid { grid-template-columns: 1fr; }
}
