/* Subscription Page - Glass Morphism Design */

:root {
    --cyber-blue: #00d4ff;
    --cyber-purple: #7b2cbf;
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #fbbf24;
    --stripe-blue: #635bff;
}

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

body {
    font-family: 'Exo 2', sans-serif;
    background: #0f172a;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/images/background.jpg') center/cover no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    z-index: -1;
}

/* Animated Background Particles */
.particle-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Container */
.subscribe-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    animation: fadeIn 0.6s ease;
    overflow: hidden;
}

/* Header */
.subscribe-header {
    text-align: center;
    margin-bottom: 0.5rem;
    animation: slideDown 0.6s ease;
}

.subscribe-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-family: 'Orbitron', sans-serif;
}

.subscribe-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Current Plan Info */
.current-plan-info {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    animation: slideUp 0.6s ease 0.2s backwards;
}

.current-plan-info p {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--cyber-blue);
}

.tier-badge {
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1500px;
    width: 100%;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

/* Responsive for smaller screens */
@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Pricing Card */
.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.6s ease backwards;
}

.pricing-card:nth-child(1) { animation-delay: 0.1s; }
.pricing-card:nth-child(2) { animation-delay: 0.2s; }
.pricing-card:nth-child(3) { animation-delay: 0.3s; }
.pricing-card:nth-child(4) { animation-delay: 0.4s; }

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyber-blue);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.pricing-card.featured {
    border: 2px solid var(--warning);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05), var(--glass-bg));
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.4);
}

/* Pricing Badge */
.pricing-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    color: #1e293b;
    padding: 8px 24px;
    border-radius: 0 20px 0 20px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.pricing-badge.elite {
    background: linear-gradient(135deg, var(--cyber-purple), #9333ea);
    color: white;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
}

.pricing-badge.trial {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Free Tier - Less prominent styling */
.pricing-card.free-tier {
    opacity: 0.85;
    transform: scale(0.95);
}

.pricing-card.free-tier:hover {
    opacity: 1;
    transform: translateY(-5px) scale(0.95);
}

/* Fleet Admiral - Slightly more premium */
.pricing-card[data-tier="fleet_admiral"] {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.05), var(--glass-bg));
}

.pricing-card[data-tier="fleet_admiral"]:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(123, 44, 191, 0.3);
}

.free-btn {
    background: rgba(100, 116, 139, 0.3);
    border: 1px solid rgba(100, 116, 139, 0.5);
    color: var(--text-secondary);
}

.free-btn:hover {
    background: rgba(100, 116, 139, 0.5);
    border-color: rgba(100, 116, 139, 0.7);
    color: var(--text-primary);
}

/* Pricing Header */
.pricing-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--cyber-blue);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.period {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Pricing Features */
.pricing-features {
    flex: 1;
    margin-bottom: 1rem;
}

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.pricing-features li:hover {
    transform: translateX(5px);
}

.pricing-features .fa-check {
    color: var(--success);
    filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.5));
}

/* Select Plan Button */
.select-plan-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 44, 191, 0.1));
    color: var(--cyber-blue);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.select-plan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.select-plan-btn:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.select-plan-btn:hover::before {
    opacity: 1;
}

.featured-btn {
    background: linear-gradient(135deg, var(--warning), #f59e0b);
    color: #1e293b;
    font-weight: 700;
}

.featured-btn:hover {
    color: #1e293b;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.5);
}

/* Payment Security */
.payment-security {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    animation: slideUp 0.8s ease backwards;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.security-item i {
    font-size: 1.5rem;
    color: var(--cyber-blue);
}

/* FAQ Section */
.faq-section {
    max-width: 1200px;
    width: 100%;
    margin-bottom: 3rem;
    animation: slideUp 1s ease backwards;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
}

.faq-item h4 {
    color: var(--cyber-blue);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Back Link */
.back-section {
    position: absolute;
    left: 2rem;
    top: 2rem;
}

.back-link {
    color: var(--cyber-blue);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.back-link:hover {
    color: var(--text-primary);
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--cyber-blue);
    transform: translateX(-5px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.2);
    border-top-color: var(--cyber-blue);
    border-radius: 50%;
    margin: 0 auto 2rem;
    animation: spin 1s linear infinite;
}

.loading-content p {
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    animation: modalSlide 0.4s ease;
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.success-icon {
    color: var(--success);
    filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.5));
}

.error-icon {
    color: var(--danger);
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.5));
}

.modal-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-btn {
    background: linear-gradient(135deg, var(--cyber-blue), var(--cyber-purple));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .subscribe-title {
        font-size: 2rem;
    }
    
    .subscribe-subtitle {
        font-size: 1rem;
    }
    
    .payment-security {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
}