/* Premium Subscription Page Styles */
/* Custom styles for the premium subscription flow */

/* Hero Section */
.premium-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><linearGradient id="a" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="1" stop-color="%23ffffff" stop-opacity="0"/></linearGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>') repeat-x;
    opacity: 0.1;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
}

.premium-badge i {
    color: #ffd700;
    margin-right: 8px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Price Showcase */
.price-showcase {
    margin: 40px 0;
}

.price-container {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 20px 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-main {
    display: flex;
    align-items: baseline;
    margin-right: 24px;
}

.currency {
    font-size: 2rem;
    font-weight: 600;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.period {
    font-size: 1.5rem;
    opacity: 0.8;
    margin-left: 4px;
}

.trial-badge {
    display: flex;
    align-items: center;
    background: #ffd700;
    color: #333;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
}

.trial-badge i {
    margin-right: 6px;
}

/* URL Preview */
.url-preview {
    margin-top: 40px;
}

.url-example {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 24px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 16px;
    margin-bottom: 8px;
}

.url-example i {
    margin-right: 12px;
    opacity: 0.7;
}

.url-base {
    opacity: 0.8;
}

.url-slug {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.url-description {
    opacity: 0.8;
    font-size: 14px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-example {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    color: #666;
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-list li {
    padding: 6px 0;
    position: relative;
    padding-left: 24px;
    color: #666;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.badge-preview {
    margin-top: 16px;
}

.premium-badge-demo {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.premium-badge-demo i {
    margin-right: 6px;
}

.conversion-stats {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 12px;
    color: #28a745;
    font-weight: 600;
    margin-top: 16px;
}

.branding-preview {
    margin-top: 16px;
}

.color-swatches {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Subscription Section */
.subscription-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.subscription-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.subscription-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px 40px;
    text-align: center;
}

.subscription-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.subscription-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.subscription-form-container {
    padding: 50px 40px;
}

/* Form Styles */
.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
    margin-right: 12px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* URL Input Group */
.url-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.url-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.url-prefix {
    background: #f8f9fa;
    padding: 16px 20px;
    color: #666;
    font-weight: 600;
    border-right: 1px solid #e9ecef;
    white-space: nowrap;
}

.url-input-group input {
    flex: 1;
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    outline: none;
    font-weight: 500;
}

.btn-check {
    background: #667eea;
    color: white;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.btn-check:hover {
    background: #5a67d8;
}

/* Availability Indicator */
.availability-indicator {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.availability-indicator.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.availability-indicator.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.availability-indicator.show {
    display: block;
}

.form-text {
    color: #666;
    font-size: 14px;
    margin-top: 6px;
    line-height: 1.4;
}

/* Plan Options */
.plan-options {
    display: grid;
    gap: 16px;
}

.plan-option {
    border: 2px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.plan-option:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.plan-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.plan-option input[type="radio"] {
    display: none;
}

.plan-label {
    display: block;
    padding: 24px;
    cursor: pointer;
    margin: 0;
}

.plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.plan-header strong {
    font-size: 1.1rem;
    color: #333;
}

.plan-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
}

.plan-savings {
    background: #ffd700;
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
}

.plan-description {
    color: #666;
    font-size: 14px;
}

/* Card Element */
.card-element {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-element:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Trial Info */
.trial-info {
    margin: 40px 0;
}

.trial-card {
    background: linear-gradient(135deg, #e8f5e8, #f0f9f0);
    border: 2px solid #28a745;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.trial-icon {
    background: #28a745;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trial-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.trial-content p {
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.trial-features {
    list-style: none;
    padding: 0;
}

.trial-features li {
    padding: 4px 0;
    position: relative;
    padding-left: 24px;
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
}

.trial-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.checkbox-group label {
    margin-bottom: 0;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-group a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-subscription {
    width: 100%;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-subscription:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-subscription:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-subscription.processing {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Alerts */
.alert {
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid;
    animation: slideDown 0.3s ease;
}

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

.error-alert {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.success-alert {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* Success Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
}

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

.success-content {
    padding: 50px 40px;
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    color: white;
}

.success-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.success-content p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.premium-url-result {
    margin: 30px 0;
}

.premium-url-success {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.url-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.url-text {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 600;
    color: #667eea;
    font-size: 16px;
}

.btn-copy {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #5a67d8;
}

.btn-copy.copied {
    background: #28a745;
}

.trial-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.success-actions .btn-secondary {
    background: white;
    border-color: #e9ecef;
    color: #333;
}

.success-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #e9ecef;
}

.faq-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .price-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .subscription-form-container {
        padding: 30px 20px;
    }
    
    .subscription-header {
        padding: 40px 20px;
    }
    
    .subscription-header h2 {
        font-size: 2rem;
    }
    
    .trial-card {
        flex-direction: column;
        text-align: center;
    }
    
    .url-input-group {
        flex-direction: column;
    }
    
    .url-prefix {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .success-content {
        padding: 40px 20px;
    }
    
    .success-content h2 {
        font-size: 2rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
