/* Subscription Page Specific Styles */
/* Most styles are reused from landing.css and pricing.css */

.subscription-page {
    min-height: 100vh;
    background: var(--color-background);
}

/* Hero Section - extends existing hero styles */
.subscription-page .hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.subscription-page .product-name {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 0.5rem;
}

/* Access Notices */
.access-notice {
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.access-notice h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.access-notice p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.access-notice.admin-only {
    border-left: 4px solid var(--color-danger);
}

.access-notice.invite-only {
    border-left: 4px solid var(--color-warning);
}

.access-notice.invite-pending {
    border-left: 4px solid var(--color-info);
}

/* Plan Status Card */
.plan-status-card {
    background: var(--color-bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--color-border);
}

.plan-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.plan-status-header h3 {
    margin: 0;
    color: var(--color-text);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: var(--color-success-light);
    color: var(--color-success);
}

.status-badge.trial {
    background: var(--color-info-light);
    color: var(--color-info);
}

.plan-details h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.trial-info {
    background: var(--color-info-light);
    border-left: 3px solid var(--color-info);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.trial-info p {
    margin: 0;
    color: var(--color-info-dark);
}

/* Resume Trial Alert */
.resume-trial-alert {
    background: var(--color-warning-light);
    border: 1px solid var(--color-warning);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.alert-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.alert-content h5 {
    margin: 0 0 0.5rem 0;
    color: var(--color-warning-dark);
}

.alert-content p {
    margin: 0;
    color: var(--color-text-muted);
}

/* Currency Selector */
.currency-selector-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.currency-selector-container label {
    font-weight: 500;
    color: var(--color-text-muted);
}

.currency-selector-container select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-bg-secondary);
    font-size: 1rem;
    cursor: pointer;
}

/* Plans and pricing styles are in pricing.css */
/* Button styles are in base.css and landing.css */

/* HTMX Loading States */
.htmx-request .button,
.htmx-request .btn {
    position: relative;
    color: transparent;
}

.htmx-request .button::after,
.htmx-request .btn::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .product-name {
        font-size: 1.25rem;
    }
    
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-content {
        flex-direction: column;
        text-align: center;
    }
    
    .currency-selector-container {
        justify-content: center;
    }
    
    /* Special plans layout handled by special-plan-card.css */
}