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

:root {
    --primary-color: #E34678;
    --primary-light: rgba(227, 70, 120, 0.1);
    --primary-dark: #c43760;
    --background: #ffffff;
    --surface: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --border-radius: 16px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 140px;
}

/* Header */
.header {
    text-align: left;
    margin-bottom: 20px;
}

.title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing-section {
    margin-bottom: 32px;
}

.pricing-plans {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-card {
    position: relative;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--background);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.plan-card.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.plan-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.plan-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.95); }
    50% { transform: scale(1.2); }
}

.plan-details {
    flex: 1;
}

.plan-duration {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.plan-price {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color);
}

.discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
    font-size: 14px;
    font-weight: 600;
}

/* Sample Images Section */
.sample-images-section {
    margin-bottom: 32px;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

.section-label-container {
    padding: 0 20px;
}

.section-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    padding: 0 4px;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    pointer-events: none;
    user-select: none;
}

.carousel {
    display: flex;
    gap: 8px;
    animation: scroll 15s linear infinite;
    width: max-content;
    will-change: transform;
    pointer-events: none;
}

@keyframes scroll {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(calc(-100% / 3));
    }
}

.carousel-image {
    width: 200px;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    flex-shrink: 0;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 768px) {
    .carousel-image {
        width: 160px;
        height: 200px;
    }
}

/* Benefits Section */
.benefits-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.benefit-description {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Bottom CTA */
.bottom-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background);
    padding: 16px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.continue-btn {
    width: 100%;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.continue-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.continue-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.terms-text {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.4;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease;
}

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

.success-icon,
.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 48px;
    font-weight: bold;
}

.success-icon {
    background-color: #d4edda;
    color: #28a745;
}

.error-icon {
    background-color: #f8d7da;
    color: #dc3545;
}

.modal-content h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.modal-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        padding-bottom: 140px;
    }
    
    .sample-images-section {
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
    }
    
    .section-label-container {
        padding: 0 16px;
    }
    
    .bottom-cta {
        padding: 14px 16px;
    }
    
    .title {
        font-size: 22px;
    }
    
    .subtitle {
        font-size: 14px;
    }

    .title {
        font-size: 22px;
    }

    .carousel-image {
        width: 160px;
        height: 200px;
    }

    .bottom-cta {
        padding: 16px;
    }
}
