/**
 * Estilos del Frontend
 * 
 * @package Gestor_Suscripciones_Stripe
 */

/* ===========================
   Wrapper Principal
   =========================== */
.gss-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===========================
   Login Requerido
   =========================== */
.gss-login-required {
    text-align: center;
    padding: 40px 20px;
}

.gss-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 4px solid;
}

.gss-message-info {
    background-color: #e7f3ff;
    border-color: #0073aa;
    color: #0073aa;
}

.gss-login-required form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

/* ===========================
   Suscripción Activa - DISEÑO MODERNO
   =========================== */
.gss-active-section {
    margin-bottom: 60px;
}

.gss-active-card-modern {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.gss-active-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Header de la tarjeta */
.gss-active-header {
    background: var(--gss-active-header-bg, linear-gradient(135deg, #0f172a 0%, #1e293b 100%));
    color: var(--gss-active-header-text, #ffffff);
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gss-active-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
    font-weight: 600;
}

.gss-active-plan-name {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 800;
    color: inherit;
}

.gss-active-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

.gss-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.gss-active-price {
    display: block;
    font-size: 32px;
    font-weight: 700;
    text-align: right;
}

.gss-active-interval {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    text-align: right;
}

/* Cuerpo de la tarjeta */
.gss-active-body {
    padding: 40px;
}

.gss-active-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.gss-active-detail-box {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.gss-detail-icon {
    font-size: 24px;
    margin-right: 15px;
}

.gss-detail-content {
    display: flex;
    flex-direction: column;
}

.gss-detail-title {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.gss-detail-data {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.gss-active-description {
    padding: 20px;
    background: #fff7ed;
    border-left: 4px solid #f97316;
    border-radius: 0 8px 8px 0;
    color: #9a3412;
    font-size: 15px;
    line-height: 1.6;
}

/* Footer de la tarjeta */
.gss-active-footer {
    padding: 25px 40px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.gss-btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    background: var(--gss-primary-color, #0073aa);
    color: white;
    border-radius: 3px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    max-width: 300px;
    text-decoration: none; /* Evitar subrayado */
}

.gss-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none; /* Evitar subrayado al hover */
    color: white;
}

.gss-secure-note {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.gss-lock-icon-small {
    width: 16px;
    height: 16px;
    color: #10b981;
}

@media (max-width: 768px) {
    .gss-active-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .gss-active-price, 
    .gss-active-interval {
        text-align: center;
    }
    
    .gss-active-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .gss-btn-modern {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   Nuevo Dashboard de Usuario (Tabs)
   =========================== */
.gss-dashboard-wrapper,
.gss-wrapper.gss-dashboard-wrapper {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
}

.gss-dashboard-tabs {
    display: flex;
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden; /* Ocultar scroll vertical */
    margin-bottom: 30px;
    width: 100%;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.gss-dashboard-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.gss-tab-btn {
    background: transparent;
    border: none;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-bottom: -1px;
    text-decoration: none;
}

.gss-tab-btn:hover {
    color: var(--gss-primary-color, #0073aa);
    background: transparent;
    text-decoration: none;
}

.gss-tab-btn.active {
    color: var(--gss-primary-color, #0073aa);
    border-bottom-color: var(--gss-primary-color, #0073aa);
    background: transparent;
    font-weight: 600;
}

.gss-tab-content {
    display: none;
    padding: 0;
    animation: fadeEffect 0.3s;
    width: 100%;
}

.gss-tab-content.active {
    display: block;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.gss-tab-title {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 24px;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

/* Formulario Moderno en Tabs */
.gss-form-modern {
    max-width: 700px;
}

.gss-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px; /* Espacio horizontal y vertical */
    margin-bottom: 20px;
}

.gss-form-group {
    margin-bottom: 20px;
}

.gss-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
}

.gss-form-group input[type="text"],
.gss-form-group input[type="email"],
.gss-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box; /* CRÍTICO: Evita que el padding rompa el layout */
}

.gss-form-group input:focus {
    border-color: var(--gss-primary-color, #0073aa);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

/* Botones primarios - Máxima especificidad para sobrescribir temas y Gutenberg/UAGB */
.gss-btn-primary,
a.gss-btn-primary,
button.gss-btn-primary,
.gss-view-plans-btn,
a.gss-view-plans-btn,
.wp-block-uagb-container .gss-btn-primary,
.wp-block-uagb-container a.gss-btn-primary,
.wp-block-uagb-container * a.gss-btn-primary,
[class*="wp-block"] .gss-btn-primary,
[class*="wp-block"] a.gss-btn-primary,
[class*="uagb-block"] .gss-btn-primary,
[class*="uagb-block"] a.gss-btn-primary,
[class*="uagb-block"] * .gss-btn-primary,
[class*="uagb-block"] * a.gss-btn-primary,
body .gss-btn-primary,
body a.gss-btn-primary {
    background: var(--gss-primary-color, #0073aa) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.gss-btn-primary:hover,
a.gss-btn-primary:hover,
button.gss-btn-primary:hover,
.gss-view-plans-btn:hover,
a.gss-view-plans-btn:hover,
.wp-block-uagb-container .gss-btn-primary:hover,
.wp-block-uagb-container a.gss-btn-primary:hover,
[class*="wp-block"] .gss-btn-primary:hover,
[class*="wp-block"] a.gss-btn-primary:hover {
    opacity: 0.9 !important;
    text-decoration: none !important;
    color: #fff !important;
}

.gss-btn-primary:visited,
.gss-btn-primary:focus,
.gss-btn-primary:active,
a.gss-btn-primary:visited,
a.gss-btn-primary:focus,
a.gss-btn-primary:active,
.gss-view-plans-btn:visited,
.gss-view-plans-btn:focus,
.gss-view-plans-btn:active,
a.gss-view-plans-btn:visited,
a.gss-view-plans-btn:focus,
a.gss-view-plans-btn:active,
.wp-block-uagb-container .gss-btn-primary:visited,
.wp-block-uagb-container .gss-btn-primary:focus,
.wp-block-uagb-container .gss-btn-primary:active,
.wp-block-uagb-container a.gss-btn-primary:visited,
.wp-block-uagb-container a.gss-btn-primary:focus,
.wp-block-uagb-container a.gss-btn-primary:active,
[class*="wp-block"] .gss-btn-primary:visited,
[class*="wp-block"] .gss-btn-primary:focus,
[class*="wp-block"] .gss-btn-primary:active,
[class*="wp-block"] a.gss-btn-primary:visited,
[class*="wp-block"] a.gss-btn-primary:focus,
[class*="wp-block"] a.gss-btn-primary:active {
    text-decoration: none !important;
    color: #fff !important;
}

.gss-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.gss-empty-state p {
    font-size: 16px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .gss-form-row {
        grid-template-columns: 1fr;
    }
    
    .gss-dashboard-tabs {
        gap: 0;
    }
    
    .gss-tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* ===========================
   Tabla de Precios - DISEÑO PROFESIONAL
   =========================== */
.gss-pricing-table {
    padding: 60px 20px;
    position: relative;
    min-height: 100px; /* Asegurar espacio mínimo */
}

/* Botones Superiores (Login/Registro) */
.gss-top-buttons {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

/* Asegurar que el contenido no se superponga con los botones */
.gss-pricing-table .gss-welcome-section {
    clear: both;
    margin-top: 50px; /* Espacio para los botones superiores */
}

.gss-pricing-table .gss-pricing-title {
    clear: both;
    margin-top: 20px;
}

.gss-top-login-btn,
.gss-top-register-btn {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.gss-top-login-btn {
    background-color: var(--gss-top-login-bg, #ffffff);
    color: var(--gss-top-login-text, #0073aa);
    border: 2px solid var(--gss-top-login-text, #0073aa);
}

.gss-top-login-btn:hover {
    background-color: var(--gss-top-login-text, #0073aa);
    color: var(--gss-top-login-bg, #ffffff);
}

.gss-top-register-btn {
    background-color: var(--gss-top-register-bg, #0073aa);
    color: var(--gss-top-register-text, #ffffff);
    border: 2px solid var(--gss-top-register-bg, #0073aa);
}

.gss-top-register-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.gss-pricing-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    margin-top: 0; /* Resetear para evitar conflictos */
    color: #1a202c;
    letter-spacing: -0.5px;
}

/* Grid de Planes */
.gss-plans-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 50px auto;
    max-width: var(--gss-plans-max-width, 1200px);
}

/* Tarjeta de Plan - REDISEÑO MODERNO */
.gss-plan-card {
    flex: 0 1 340px;
    max-width: var(--gss-plan-card-max-width, 380px);
    min-width: 280px;
    background: #ffffff;
    border: 1px solid var(--gss-plan-border-color, #e2e8f0);
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gss-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: var(--gss-primary-color, #007cba);
}

/* Plan Destacado - DISEÑO PREMIUM */
.gss-plan-destacado {
    border: 2px solid var(--gss-primary-color, #007cba);
    box-shadow: 0 12px 24px rgba(0, 124, 186, 0.15), 0 4px 8px rgba(0, 124, 186, 0.1);
    transform: scale(1.05);
}

.gss-plan-destacado:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 24px 48px rgba(0, 124, 186, 0.2), 0 12px 24px rgba(0, 124, 186, 0.15);
}

/* Cinta de Destacado - RIBBON PROFESIONAL */
.gss-featured-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gss-featured-ribbon-bg, linear-gradient(135deg, #007cba 0%, #005a87 100%));
    color: var(--gss-featured-ribbon-text, white);
    padding: 8px 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gss-featured-ribbon span {
    display: block;
}

/* Header del Plan */
.gss-plan-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.gss-plan-name {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--gss-plan-name-color, #1a202c);
    letter-spacing: -0.3px;
}

.gss-plan-description {
    font-size: 15px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* Precio - JERARQUÍA VISUAL MEJORADA */
.gss-plan-price {
    text-align: center;
    padding: 30px 30px;
    background: #ffffff;
}

.gss-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gss-price-amount {
    display: block;
    font-size: 56px;
    font-weight: 900;
    color: var(--gss-plan-price-color, #1a202c);
    line-height: 1;
    letter-spacing: -1px;
}

.gss-plan-destacado .gss-price-amount {
    color: var(--gss-featured-price-color, #f5576c);
}

.gss-price-interval {
    display: block;
    margin-top: 10px;
    font-size: 16px;
    color: #718096;
    font-weight: 500;
}

/* Información de Prueba Gratuita - DISEÑO ATRACTIVO */
.gss-trial-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin: 0 30px 20px;
    background: var(--gss-trial-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gss-trial-text, white);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    animation: pulse-trial 3s ease-in-out infinite;
}

@keyframes pulse-trial {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    }
    50% {
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    }
}

.gss-plan-destacado .gss-trial-info {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.35);
}

.gss-gift-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Características - LISTA PROFESIONAL */
.gss-plan-features {
    padding: 0 30px 30px;
    flex-grow: 1;
}

.gss-plan-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gss-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    border-bottom: 1px solid #f7fafc;
}

.gss-plan-features li:last-child {
    border-bottom: none;
}

.gss-check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--gss-check-color, #48bb78);
}

.gss-plan-destacado .gss-check-icon {
    color: var(--gss-primary-color, #007cba);
}

.gss-plan-features li span {
    flex: 1;
}

/* Acciones - BOTÓN FIJO AL FINAL */
.gss-plan-actions {
    margin-top: auto;
    padding: 0 30px 30px;
}

/* ===========================
   Botones - DISEÑO PROFESIONAL
   =========================== */
.gss-subscribe-btn,
.gss-manage-btn {
    display: inline-block;
    width: 100%;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    color: var(--gss-plan-button-text-color, white);
    background: var(--gss-plan-button-color, #007cba);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    position: relative;
    overflow: hidden;
}

.gss-subscribe-btn::before,
.gss-manage-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.gss-subscribe-btn:hover,
.gss-manage-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 124, 186, 0.4);
    color: white;
}

.gss-subscribe-btn:hover::before,
.gss-manage-btn:hover::before {
    left: 100%;
}

.gss-subscribe-btn:active,
.gss-manage-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.gss-plan-destacado .gss-subscribe-btn {
    background: var(--gss-featured-button-color, #f093fb) !important;
    color: var(--gss-featured-button-text-color, white) !important;
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.gss-plan-destacado .gss-subscribe-btn:hover {
    background: var(--gss-featured-button-color, #f093fb) !important;
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
    color: var(--gss-featured-button-text-color, white) !important;
}

/* ===========================
   Contenido Bloqueado
   =========================== */
.gss-blocked-content {
    max-width: 600px;
    margin: 40px auto;
    padding: 60px 40px;
    text-align: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gss-blocked-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.gss-blocked-content h3 {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: #333;
}

.gss-blocked-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
}

.gss-subscribe-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gss-subscribe-link:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
}

/* ===========================
   Loading State
   =========================== */
.gss-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.gss-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: gss-spin 1s linear infinite;
}

@keyframes gss-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
    .gss-pricing-title {
        font-size: 24px;
    }
    
    .gss-plans-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .gss-plan-card {
        width: 100%;
        max-width: 380px;
    }
    
    .gss-plan-destacado {
        transform: scale(1);
    }
    
    .gss-plan-destacado:hover {
        transform: translateY(-5px);
    }
    
    .gss-subscription-card {
        padding: 30px 20px;
    }
    
    .gss-blocked-content {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .gss-plan-card {
        padding: 20px;
    }
    
    .gss-plan-name {
        font-size: 20px;
    }
    
    .gss-price-amount {
        font-size: 32px;
    }
}

/* ===========================
   Formulario de Login AJAX
   =========================== */
.gss-login-card {
    max-width: 450px;
    margin: 40px auto;
    padding: 40px;
    background-color: var(--gss-login-bg, #f7f7f7);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gss-login-title {
    margin: 0 0 30px 0;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.gss-login-form {
    width: 100%;
}

.gss-form-group {
    margin-bottom: 20px;
}

.gss-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 14px;
}

.gss-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.gss-input:focus {
    outline: none;
    border-color: var(--gss-login-button, #0073aa);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.gss-input-readonly {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.gss-input-readonly:focus {
    border-color: #ddd;
    box-shadow: none;
}

.gss-field-locked {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    color: #9ca3af;
    vertical-align: middle;
}

.gss-field-locked .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.gss-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.gss-error-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 5px;
    color: #dc2626;
    font-size: 14px;
}

.gss-login-submit {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--gss-login-button, #0073aa);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.gss-login-submit:hover:not(:disabled) {
    background-color: var(--gss-login-button-hover, #005a87);
    transform: translateY(-1px);
}

.gss-login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gss-login-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

.gss-login-links a {
    color: var(--gss-login-button, #0073aa);
    text-decoration: none;
    transition: color 0.3s ease;
}

.gss-login-links a:hover {
    color: var(--gss-login-button-hover, #005a87);
    text-decoration: underline;
}

.gss-separator {
    margin: 0 10px;
    color: #999;
}

/* ===========================
   Tarjeta de Suscripción Minimalista
   =========================== */
.gss-subscription-compact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    flex-wrap: wrap;
    gap: 20px;
}

.gss-sub-info-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gss-sub-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gss-sub-plan-name .dashicons {
    color: #f59e0b;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.gss-sub-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.gss-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
}

.gss-sub-info-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gss-meta-label {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.gss-meta-value {
    font-size: 15px;
    color: #334155;
    font-weight: 600;
}

.gss-sub-actions {
    margin-left: auto;
}

.gss-btn-sm {
    padding: 8px 16px !important;
    font-size: 14px !important;
}

/* Sección de Upgrade */
.gss-upgrade-section {
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 40px;
}

.gss-section-title {
    font-size: 20px;
    color: #334155;
    margin: 0 0 30px 0;
    text-align: center;
    font-weight: 700;
}

/* Ajustes responsive para la tarjeta minimalista */
@media (max-width: 640px) {
    .gss-subscription-compact-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .gss-sub-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .gss-btn-sm {
        width: 100%;
        justify-content: center;
    }
}

.gss-customer-dashboard {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.gss-dashboard-section {
    margin-bottom: 40px;
}

.gss-section-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.gss-card-active {
    border: 2px solid #10b981;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.gss-card-header {
    padding: 20px;
    background-color: #f0fdf4;
    border-bottom: 1px solid #d1fae5;
    border-radius: 8px 8px 0 0;
}

.gss-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.gss-status-active {
    background-color: #10b981;
    color: #fff;
}

.gss-status-canceled {
    background-color: #ef4444;
    color: #fff;
}

.gss-status-ended {
    background-color: #6b7280;
    color: #fff;
}

.gss-status-trialing {
    background-color: #3b82f6;
    color: #fff;
}

.gss-status-past_due {
    background-color: #f59e0b;
    color: #fff;
}

.gss-status-icon {
    font-size: 16px;
}

.gss-card-body {
    padding: 30px;
}

.gss-card-body .gss-plan-name {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
    color: #111;
}

.gss-card-body .gss-plan-description {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 15px;
}

.gss-subscription-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gss-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.gss-detail-item:last-child {
    border-bottom: none;
}

.gss-detail-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

.gss-detail-value {
    font-weight: 600;
    color: #111;
    font-size: 15px;
}

.gss-card-footer {
    padding: 25px 30px;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.gss-btn-large {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
}

.gss-help-text {
    margin: 15px 0 0 0;
    font-size: 13px;
    color: #6b7280;
}

/* ===========================
   Historial de Suscripciones
   =========================== */
.gss-history-section {
    margin-top: 50px;
}

.gss-history-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gss-history-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.gss-history-table thead {
    background-color: #f9fafb;
}

.gss-history-table th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e5e7eb;
}

.gss-history-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 15px;
}

.gss-history-table tbody tr:last-child td {
    border-bottom: none;
}

.gss-history-table tbody tr:hover {
    background-color: #f9fafb;
}

.gss-col-plan {
    font-weight: 600;
    color: #111;
}

.gss-col-status {
    text-align: center;
}

.gss-col-date {
    color: #6b7280;
}

/* ===========================
   Responsive Dashboard
   =========================== */
@media (max-width: 768px) {
    .gss-customer-dashboard {
        padding: 15px;
    }
    
    .gss-card-body {
        padding: 20px;
    }
    
    .gss-card-footer {
        padding: 20px;
    }
    
    .gss-detail-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .gss-history-table th,
    .gss-history-table td {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gss-login-card {
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    .gss-card-body .gss-plan-name {
        font-size: 22px;
    }
    
    .gss-btn-large {
        padding: 14px 30px;
        font-size: 16px;
    }
}

/* ===========================
   Mensaje de Bienvenida (CRO)
   =========================== */
.gss-welcome-section {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 30px;
    background: var(--gss-welcome-bg, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.gss-welcome-section p {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.gss-welcome-section strong {
    font-weight: 700;
}

/* ===========================
   Features del Plan (CRO)
   =========================== */
.gss-plan-features {
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid #e5e7eb;
}

.gss-plan-features ul {
    list-style: none;
    padding: 0 30px;
    margin: 0;
}

.gss-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.gss-check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gss-primary-color, #10b981);
    margin-top: 2px;
}

.gss-plan-destacado .gss-check-icon {
    color: var(--gss-featured-color, #f0b849);
}

/* ===========================
   FAQ Section (CRO)
   =========================== */
.gss-faq-section {
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 40px;
    background: #f9fafb;
    border-radius: 12px;
}

.gss-faq-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--gss-faq-title-color, #111827);
    margin: 0 0 30px;
}

.gss-faq-list {
    display: grid;
    gap: 20px;
}

.gss-faq-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--gss-faq-border-color, #0073aa);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gss-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gss-faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

.gss-faq-answer {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
}

/* ===========================
   Trust Badge (CRO)
   =========================== */
.gss-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    margin-top: 40px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 8px;
    font-size: 16px;
    color: #166534;
}

.gss-lock-icon {
    width: 24px;
    height: 24px;
    color: #16a34a;
}

.gss-trust-badge strong {
    font-weight: 700;
    color: #6366f1;
}

/* Grid de Planes - Definido arriba, esta sección se mantiene para compatibilidad */

/* ===========================
   Modal de Login/Registro
   =========================== */
.gss-auth-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 999999 !important;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    margin: 0 !important;
    padding: 0 !important;
    backdrop-filter: blur(5px);
}

.gss-auth-modal.active {
    display: flex !important;
}

.gss-auth-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
    margin: auto;
    z-index: 1000000;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gss-auth-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.gss-auth-modal-close:hover {
    background: #f3f4f6;
    color: #000;
}

/* Logo en modal */
.gss-auth-modal-logo {
    text-align: center;
    padding: 24px 24px 16px;
}

.gss-auth-modal-logo img {
    display: inline-block;
    height: auto;
}

.gss-auth-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
}

.gss-auth-tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
}

.gss-auth-tab:hover {
    color: #374151;
    background: #f9fafb;
}

.gss-auth-tab.active {
    color: var(--gss-primary-color, #0073aa);
    border-bottom-color: var(--gss-primary-color, #0073aa);
}

.gss-auth-tab-content {
    display: none;
    padding: 30px;
}

.gss-auth-tab-content.active {
    display: block;
}

.gss-auth-form .form-group {
    margin-bottom: 20px;
}

.gss-auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.gss-auth-form input[type="text"],
.gss-auth-form input[type="email"],
.gss-auth-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.gss-auth-form input:focus {
    outline: none;
    border-color: var(--gss-primary-color, #0073aa);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.gss-auth-form button[type="submit"] {
    width: 100% !important;
    padding: 14px !important;
    background: var(--gss-primary-color, #0073aa) !important;
    color: white !important;
    border: none !important;
    border-radius: 3px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    margin-top: 10px !important;
    text-decoration: none !important;
}

.gss-auth-form button[type="submit"]:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
    color: white !important;
}

.gss-auth-form button[type="submit"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.gss-auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.gss-auth-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.gss-auth-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Forgot Password Panel */
.gss-forgot-description {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin: 0 0 24px;
    line-height: 1.6;
}

.gss-back-to-login {
    text-align: center;
    margin-top: 20px;
}

.gss-back-to-login a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gss-primary-color, #0073aa) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.gss-back-to-login a:hover {
    opacity: 0.8;
    text-decoration: none !important;
}

.gss-forgot-link {
    color: var(--gss-primary-color, #0073aa) !important;
    text-decoration: none !important;
    font-size: 13px;
}

.gss-forgot-link:hover {
    text-decoration: underline !important;
}

/* ===========================
   Responsive CRO Elements
   =========================== */
@media (max-width: 768px) {
    .gss-pricing-table {
        padding-top: 20px;
    }

    .gss-top-buttons {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
        margin-bottom: 20px;
        padding: 0;
    }
    
    .gss-top-login-btn,
    .gss-top-register-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Resetear márgenes en móviles */
    .gss-pricing-table .gss-welcome-section {
        margin-top: 0;
    }

    .gss-pricing-table .gss-pricing-title {
        margin-top: 0;
    }

    /* Modal en móviles */
    .gss-auth-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .gss-welcome-section {
        padding: 25px 20px;
        margin-bottom: 30px;
    }
    
    .gss-welcome-section p {
        font-size: 16px;
    }
    
    .gss-faq-section {
        padding: 30px 20px;
        margin: 40px auto 30px;
    }
    
    .gss-faq-title {
        font-size: 24px;
    }
    
    .gss-faq-item {
        padding: 20px;
    }
    
    .gss-faq-question {
        font-size: 16px;
    }
    
    .gss-faq-answer {
        font-size: 14px;
    }
    
    .gss-trust-badge {
        flex-direction: column;
        text-align: center;
        font-size: 14px;
    }
}

/* ===========================
   Tabla de Facturas
   =========================== */
.gss-invoices-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
}

.gss-invoices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.gss-invoices-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    background: #f8fafc;
}

.gss-invoices-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    color: #334155;
}

.gss-invoices-table tr:hover td {
    background: #f8fafc;
}

.gss-invoices-table .text-right {
    text-align: right;
}

.gss-invoice-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.gss-invoice-status.gss-status-paid {
    background: #dcfce7;
    color: #166534;
}

.gss-invoice-status.gss-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.gss-download-invoice-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

.gss-download-invoice-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.gss-download-invoice-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .gss-invoices-table {
        display: block;
        overflow-x: auto;
    }
    
    .gss-invoices-table th,
    .gss-invoices-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
