/* subscribe.css - NutriPaws Payment Gateway UI */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color, #0B1120);
    color: var(--text-main, #F8FAFC);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

/* Reutilizando las variables de styles.css implícitamente */

.subscribe-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
    animation: fadeIn 0.8s ease-out forwards;
}

.btn-back-subscribe {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-muted, #94a3b8);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    display: inline-block;
}

.btn-back-subscribe:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.subscribe-header {
    text-align: center;
    margin-bottom: 2rem;
}

.subscribe-logo {
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

.subscribe-title {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    background: linear-gradient(to right, #4ade80, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subscribe-subtitle {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin: 0;
}

.pricing-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ade80, #3b82f6);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-header h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: white;
}

.price-amount {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    line-height: 1;
}

.currency {
    font-size: 1.5rem;
    color: #4ade80;
    margin-top: 0.5rem;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    color: white;
}

.period {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.price-desc {
    color: #94a3b8;
    margin: 1rem 0 0 0;
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #f1f5f9;
    font-size: 1rem;
    line-height: 1.4;
}

.features-list .check {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.payment-methods {
    text-align: center;
}

.payment-methods h3 {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.btn-payment {
    width: 100%;
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-nowpayments {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-nowpayments:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(16, 185, 129, 0.4);
}

.btn-nowpayments:active {
    transform: translateY(1px);
}

.btn-card {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
}

.btn-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #3b82f6;
}

.btn-paypal {
    background: #003087;
    color: white;
    margin-top: 1rem;
}

.btn-paypal:hover {
    background: #002266;
}

.payment-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-bottom-left-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-note {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* removed pseudo emoji lock */

/* Loading State */
.payment-loading {
    text-align: center;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.payment-loading p {
    color: #94a3b8;
    margin-top: 1rem;
    font-weight: 500;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-left-color: #4ade80;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Mobile responsive */
@media (max-width: 480px) {
    .pricing-card {
        padding: 1.5rem;
    }
    
    .amount {
        font-size: 3rem;
    }
    
    .subscribe-title {
        font-size: 1.6rem;
    }
}

/* Plan Option Cards styling */
.plan-option-card {
    flex: 1;
    text-align: center;
    padding: 1.2rem;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-option-card.active-monthly {
    border-color: #4ade80;
    background: rgba(74, 222, 128, 0.05);
}

.plan-option-card.active-lifetime {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

/* =========================================================================
   SUBSCRIBE REFRESH 2026-08 — glass real, coherencia con landing/dashboard.
   ========================================================================= */

/* Fondo con glows sutiles como landing */
body {
    background:
        radial-gradient(60% 40% at 15% 0%, rgba(141, 198, 63, 0.18), transparent 70%),
        radial-gradient(50% 40% at 90% 100%, rgba(59, 130, 246, 0.20), transparent 70%),
        var(--bg-color, #0B1120);
}

/* Título con fuente display */
.subscribe-title,
.pricing-header h2 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Botón volver con más chip */
.btn-back-subscribe {
    background: rgba(141, 198, 63, 0.10);
    border: 1px solid rgba(141, 198, 63, 0.30);
    color: #8DC63F;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.22s ease,
                box-shadow 0.22s ease;
}
.btn-back-subscribe:hover {
    background: rgba(141, 198, 63, 0.22);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(141, 198, 63, 0.35);
}

/* Tarjeta de precio: glass mejor definido + shine sutil al hover */
.pricing-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(141, 198, 63, 0.35);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.6), 0 0 0 1px rgba(141,198,63,0.2);
}

/* Botones de pago con shine y spring */
.btn-payment {
    position: relative;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.28s ease,
                background 0.25s ease;
}
.btn-payment::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.btn-payment:hover::after { transform: translateX(120%); }
.btn-payment:active { transform: translateY(1px) scale(0.985); }

/* Focus ring accesible */
:where(button, a):focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.4);
    border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
