/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* iOS Safari specific fixes */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent iOS Safari from zooming on input focus */
input, textarea, select {
    font-size: 16px;
    -webkit-appearance: none;
    border-radius: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    /* iOS Safari fixes */
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="white" opacity="0.8"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.6"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.9"/><circle cx="90" cy="10" r="0.8" fill="white" opacity="0.7"/><circle cx="10" cy="90" r="1.2" fill="white" opacity="0.8"/></svg>') repeat;
    animation: twinkle 20s linear infinite;
    z-index: -2;
}

.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

@keyframes twinkle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Gradients */
.gradient-text {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-brand a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand i {
    color: #4ecdc4;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 1;
}

/* Main Content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Result page specific main content adjustments */
.result-container .main {
    margin-top: 100px; /* Extra space for result page title */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Generate button always enabled */
#generateBtn {
    cursor: pointer;
    opacity: 1;
}

/* Email field error highlighting */
.email-input-group input.error {
    border-color: #ff6b6b !important;
    background-color: rgba(255, 107, 107, 0.1) !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2) !important;
}

/* Hero Section */
.hero {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    /* Ensure proper text wrapping on mobile */
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    /* Ensure proper text wrapping on mobile */
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.hero-cta {
    margin-bottom: 2rem;
}

.hero-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Zodiac Showcase */
.zodiac-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.zodiac-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.zodiac-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.zodiac-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Hero Visual Container */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Image Carousel Styles */
.hero-image-carousel {
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 400px;
    max-width: 400px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}


/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #ffd700;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* How It Works */
.how-it-works {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
}

.step-icon {
    font-size: 2rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
}

/* Zodiac Gallery */
.zodiac-gallery {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.zodiac-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.zodiac-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.zodiac-symbol {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Pricing */
.pricing {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(69, 183, 209, 0.1));
    border-color: rgba(78, 205, 196, 0.3);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #4ecdc4;
}

.credits {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.price-per-credit {
    font-size: 0.9rem;
    opacity: 0.6;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.pricing-features i {
    color: #4ecdc4;
}

/* Upload Form */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.upload-header {
    text-align: center;
    margin-bottom: 3rem;
}

.upload-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: #4ecdc4;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Caption Counter */
.caption-counter {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

.caption-counter small {
    margin-top: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Email Input Group */
.email-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.email-input-group input {
    flex: 1;
    padding-right: 40px;
}

.btn-clear-email {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none;
}

.btn-clear-email:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.email-input-group input:not(:placeholder-shown) + .btn-clear-email {
    display: block;
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.05);
}

.upload-content i {
    font-size: 3rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
}

.image-preview {
    position: relative;
    margin-top: 1rem;
}

.image-preview img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.btn-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ff6b6b;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Zodiac Selector */
.zodiac-grid-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.zodiac-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zodiac-option:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.zodiac-option.selected {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.2);
}

.zodiac-option .zodiac-symbol {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Credits Info */
.credits-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.credits-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.credits-actions {
    display: flex;
    gap: 1rem;
}

/* Credits Remaining (Result Page) */
.credits-remaining {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.credits-remaining::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4ecdc4, #45b7d1, #4ecdc4);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.credits-remaining .credits-info {
    background: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1rem;
    justify-content: center;
    gap: 0.5rem;
}

.credits-remaining .credits-info i {
    color: #4ecdc4;
    font-size: 1.2rem;
}

.credits-remaining .credits-info span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Next Steps Section */
.next-steps {
    margin: 3rem 0;
}

.next-steps h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: #4ecdc4;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
}

.next-steps h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4ecdc4, #45b7d1);
    border-radius: 1px;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.next-step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.next-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.05), rgba(69, 183, 209, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.next-step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(78, 205, 196, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.next-step:hover::before {
    opacity: 1;
}

.next-step .step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.next-step .step-icon i {
    font-size: 1.5rem;
    color: white;
}

.next-step h4 {
    color: #4ecdc4;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.next-step p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.loading-content {
    text-align: center;
    max-width: 400px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #45b7d1);
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Result Page */
.result-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.result-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.transformation-display {
    margin-bottom: 3rem;
}

/* Featured Result Image */
.featured-result {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-image-container {
    display: inline-block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(69, 183, 209, 0.1));
    padding: 8px;
}

.featured-transformation-image {
    width: 140%; /* 40% larger than normal */
    max-width: 1000px;
    border-radius: 16px;
    transition: all 0.4s ease;
    display: block;
}

.featured-transformation-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for featured image */
@media (max-width: 1024px) {
    .featured-transformation-image {
        width: 100%; /* Full width on tablets and mobile */
        max-width: 100%;
    }
    
    .featured-result {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .featured-transformation-image {
        width: 100%; /* Full width on mobile */
        max-width: 100%;
    }
    
    .featured-result {
        margin-bottom: 2rem;
    }

    .featured-image-container {
        padding: 6px;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

    .featured-transformation-image {
        border-radius: 12px;
    }
}

/* Comparison title */
.comparison-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #4ecdc4;
    font-weight: 600;
}

/* Create Another Section */
.create-another-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Try Different Zodiac Section */
.try-different-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(78, 205, 196, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(78, 205, 196, 0.2);
}

.try-different-title {
    margin-bottom: 1.5rem;
    color: #4ecdc4;
    font-size: 1.8rem;
}

.try-different-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.create-another-title {
    margin-bottom: 1.5rem;
    color: #4ecdc4;
    font-size: 1.8rem;
}

.create-another-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.create-another-buttons .btn {
    min-width: 350px;
    width: 400px;
    position: relative;
    z-index: 10;
    cursor: pointer;
    text-align: center;
    line-height: 1.4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.create-another-buttons .btn .button-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.create-another-buttons .btn .button-line {
    display: block;
    white-space: nowrap;
}

/* Debug styles to ensure button is visible and clickable */
#sameInputBtn {
    position: relative;
    z-index: 10;
    cursor: pointer;
    background: #4ecdc4 !important;
    border: 2px solid #4ecdc4 !important;
    color: white !important;
}

/* Responsive adjustments for create another buttons */
@media (max-width: 768px) {
    .create-another-buttons .btn {
        min-width: 300px;
        width: 100%;
        max-width: 400px;
    }
    
    .try-different-buttons .btn {
        min-width: 300px;
        width: 100%;
        max-width: 400px;
    }
}

/* Zodiac sign display in header */
#zodiacSignDisplay {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #4ecdc4;
}

.before-after-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Responsive adjustments for side-by-side layout */
@media (max-width: 768px) {
    .before-after-slider {
        gap: 1rem; /* Reduce gap on smaller screens */
    }
    
    .image-container {
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 480px) {
    .before-after-slider {
        gap: 0.5rem; /* Further reduce gap on very small screens */
    }
}

.image-container {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.image-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.transformation-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Square crop for the before image to match generated image dimensions */
#beforeImage {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

/* Ensure both images have consistent dimensions */
#afterImage {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Enhanced hover effects for the comparison images */
.image-container:hover {
    border-color: rgba(78, 205, 196, 0.3);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.image-container:hover .transformation-image {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.transformation-info {
    text-align: center;
    margin-bottom: 2rem;
}

.zodiac-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.zodiac-symbol-large {
    font-size: 3rem;
    flex-shrink: 0;
}

.zodiac-details {
    text-align: left;
}

.zodiac-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #4ecdc4;
}

.zodiac-details p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

/* Main action buttons positioned below the featured image */
.main-action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.main-action-buttons .btn {
    min-width: 160px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.main-action-buttons .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 ease;
}

.main-action-buttons .btn:hover::before {
    left: 100%;
}

/* Share Options */
.share-options {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.share-options h3 {
    color: #4ecdc4;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-tiktok { background: #000000; color: white; }
.share-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.share-twitter { background: #1da1f2; color: white; }
.share-facebook { background: #1877f2; color: white; }
.share-copy { background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.2); }

.share-caption textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    resize: vertical;
}

/* Credits Page */
.credits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.credits-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Purchase Options */
.purchase-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.purchase-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.purchase-option:hover {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.05);
}

.purchase-option.active {
    border-color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.purchase-option i {
    font-size: 2.5rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
}

.purchase-option h3 {
    margin-bottom: 0.5rem;
    color: #4ecdc4;
}

.purchase-option p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.credits-info-section {
    margin-bottom: 4rem;
}

.credits-explainer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.credits-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.credit-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.credit-feature i {
    font-size: 1.5rem;
    color: #4ecdc4;
    margin-top: 0.25rem;
}

.checkout-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-package {
    background: rgba(78, 205, 196, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.package-details {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4ecdc4;
}

.purchase-type-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

.purchase-type-indicator i {
    color: #4ecdc4;
}

/* Gift Message Textarea */
#giftMessage {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

#giftMessage:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.faq-section {
    margin-top: 4rem;
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item h4 {
    color: #4ecdc4;
    margin-bottom: 0.5rem;
}

.success-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.success-content {
    text-align: center;
    max-width: 400px;
}

.success-content i {
    font-size: 4rem;
    color: #4ecdc4;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: rgba(15, 15, 35, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* How It Works Section */
.how-it-works {
    padding: 4rem 2rem;
    text-align: center;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Distinct colors for each step number */
.step:nth-child(1) .step-number {
    background: linear-gradient(135deg, #feca57, #ff9f43);
    box-shadow: 0 4px 15px rgba(254, 202, 87, 0.4);
}

.step:nth-child(2) .step-number {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    box-shadow: 0 4px 15px rgba(255, 159, 243, 0.4);
}

.step:nth-child(3) .step-number {
    background: linear-gradient(135deg, #54a0ff, #2e86de);
    box-shadow: 0 4px 15px rgba(84, 160, 255, 0.4);
}

.step:nth-child(4) .step-number {
    background: linear-gradient(135deg, #5f27cd, #341f97);
    box-shadow: 0 4px 15px rgba(95, 39, 205, 0.4);
}

.step-icon {
    margin: 1.5rem 0 1rem 0;
}

.step-icon i {
    font-size: 2.5rem;
    color: #4ecdc4;
}

.step h3 {
    margin-bottom: 0.5rem;
    color: #4ecdc4;
}

.step p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding: 3rem 2rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .zodiac-showcase {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .zodiac-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Hero carousel mobile styles */
    .hero-visual {
        justify-content: center;
    }
    
    .hero-image-carousel {
        aspect-ratio: 1 / 1;
        max-height: 300px;
        max-width: 300px;
        position: relative;
        overflow: hidden;
    }
    
    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.8s ease-in-out;
    }
    
    .hero-image.active {
        opacity: 1;
    }
    
    .carousel-indicators {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 10;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255,255,255,0.5);
        cursor: pointer;
        transition: background 0.3s ease;
        /* Make indicators more touch-friendly */
        min-width: 12px;
        min-height: 12px;
        padding: 2px;
    }
    
    .indicator.active {
        background: #ffd700;
        transform: scale(1.2);
    }
    
    /* Ensure carousel images are properly positioned on mobile */
    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
    }
    
    /* Add touch support for mobile carousel */
    .hero-image-carousel {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    /* Result page mobile fixes */
    .result-container {
        padding: 1rem;
    }

    .result-header {
        margin-bottom: 2rem;
        padding-top: 1rem;
    }

    .result-header h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .result-header p {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .transformation-info {
        margin-bottom: 2.5rem;
    }

    .zodiac-badge {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 1.5rem;
        border-radius: 20px;
        max-width: 280px;
        margin: 0 auto;
    }

    .zodiac-symbol-large {
        font-size: 2.5rem;
    }

    .zodiac-details {
        text-align: center;
    }

    .zodiac-details h3 {
        font-size: 1.3rem;
        margin-bottom: 0.25rem;
    }

    .zodiac-details p {
        font-size: 0.9rem;
    }

    .main-action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin: 2rem 0;
    }

    .main-action-buttons .btn {
        width: 100%;
        max-width: 300px;
        min-width: auto;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .share-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .share-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .share-options {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .next-steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .next-step {
        padding: 1.5rem;
    }

    .credits-remaining {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-links {
        gap: 1rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .purchase-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0 1rem;
    }

    .hero {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-image-carousel {
        flex: 0 0 auto;
        scroll-snap-align: center;
    }
    .hero-image {
        flex: 0 0 auto;
        scroll-snap-align: center;
    }

    .upload-container,
    .result-container,
    .credits-container {
        padding: 0.75rem;
    }

    .zodiac-grid-select {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Additional mobile fixes for very small screens */
    .main-action-buttons .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }

    .featured-transformation-image {
        width: 100%;
        max-width: 100%;
        border-radius: 16px;
    }

    .result-header h1 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    .result-header p {
        font-size: 1rem;
        line-height: 1.3;
    }

    .transformation-info {
        margin-bottom: 2rem;
    }

    .zodiac-badge {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 1.25rem;
        max-width: 260px;
        border-radius: 16px;
    }

    .zodiac-symbol-large {
        font-size: 2.2rem;
    }

    .zodiac-details h3 {
        font-size: 1.2rem;
    }

    .zodiac-details p {
        font-size: 0.85rem;
    }

    .main-action-buttons {
        margin: 1.5rem 0;
        gap: 0.5rem;
    }

    .main-action-buttons .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        max-width: 280px;
    }

    .comparison-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .before-after-slider {
        gap: 0.75rem;
    }

    .image-container {
        border-radius: 12px;
        border: 2px solid rgba(78, 205, 196, 0.2);
    }

    .transformation-image {
        border-radius: 10px;
    }

    .image-label {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        border-radius: 16px;
    }
}

/* Affiliate Dashboard Styles */
.affiliate-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Login Options */
.login-options {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.login-option {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-option h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.login-option p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.divider span {
    background: #1a1a2e;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.affiliate-header {
    text-align: center;
    margin-bottom: 3rem;
}

.affiliate-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.affiliate-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.affiliate-form {
    max-width: 500px;
    margin: 0 auto;
}

.affiliate-form .form-group {
    margin-bottom: 1.5rem;
}

.affiliate-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4ecdc4;
}

.affiliate-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.affiliate-form input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.affiliate-form small {
    display: block;
    margin-top: 0.25rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
    color: #4ecdc4;
}

.stat-content p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}

/* Affiliate code section - styled like referral section */
.affiliate-code-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.affiliate-code-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Keep referral section heading consistent with affiliate code section */
.referral-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Keep commissions section heading consistent too */
.commissions-section h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.affiliate-code-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.affiliate-code-value {
    color: #4ecdc4;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
    background: rgba(78, 205, 196, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(78, 205, 196, 0.3);
    flex: 1;
    text-align: center;
}

.referral-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.referral-link-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.referral-link-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
}

.referral-note {
    opacity: 0.8;
    font-size: 0.9rem;
    margin: 0;
}

.commissions-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.commissions-list {
    max-height: 400px;
    overflow-y: auto;
}

.commission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.commission-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.commission-amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4ecdc4;
}

.commission-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.commission-user {
    font-weight: 500;
    opacity: 0.9;
}

.commission-date {
    font-size: 0.8rem;
    opacity: 0.7;
}

.commission-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.commission-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.commission-status.paid {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.no-commissions {
    text-align: center;
    opacity: 0.7;
    font-style: italic;
    padding: 2rem;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: rgba(40, 167, 69, 0.9);
    border: 1px solid #28a745;
}

.notification.error {
    background: rgba(220, 53, 69, 0.9);
    border: 1px solid #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .affiliate-container {
        padding: 1rem;
    }

    .affiliate-header h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .referral-link-container {
        flex-direction: column;
    }

    .commission-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .commission-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding: 8rem 2rem 4rem 2rem;
    min-height: 100vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.legal-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    text-align: center;
    color: #4ecdc4;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.legal-content {
    line-height: 1.8;
}

.legal-content h2 {
    color: #4ecdc4;
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.legal-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    opacity: 0.9;
}

.legal-content strong {
    color: #4ecdc4;
    font-weight: 600;
}

/* Zodiac sign colors for loading overlay */
.zodiac-aries { color: #ff4444 !important; }
.zodiac-taurus { color: #4a4a4a !important; }
.zodiac-gemini { color: #ffff00 !important; }
.zodiac-cancer { color: #c0c0c0 !important; }
.zodiac-leo { color: #ff8800 !important; }
.zodiac-virgo { color: #8b4513 !important; }
.zodiac-libra { color: #ff69b4 !important; }
.zodiac-scorpio { color: #8b0000 !important; }
.zodiac-sagittarius { color: #4169e1 !important; }
.zodiac-capricorn { color: #2f4f4f !important; }
.zodiac-aquarius { color: #00bfff !important; }
.zodiac-pisces { color: #9370db !important; }

/* Share Page Styles */
.share-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.share-header {
    margin-bottom: 3rem;
}

.share-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.share-image-container {
    /* margin-bottom: 3rem; */
    display: flex;
    justify-content: center;
    /* display: inline-block; */
    position: relative;
    margin-bottom: 2rem;
}

.share-image {
    width: 140%;
    max-width: 1000px;
    /* max-height: 70vh; */
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.share-image:hover {
    transform: scale(1.02);
}

.share-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.share-info {
    opacity: 0.8;
    font-size: 1.1rem;
}

.share-info strong {
    color: #4ecdc4;
}

/* Responsive adjustments for share page */
@media (max-width: 768px) {
    .share-container {
        padding: 1rem;
    }
    
    .share-header h1 {
        font-size: 2.5rem;
    }
    
    .share-header p {
        font-size: 1.1rem;
    }
    
    .share-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .share-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

.legal-content a {
    color: #4ecdc4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: #45b7d1;
    text-decoration: underline;
}

/* Responsive Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 6rem 1rem 2rem 1rem;
    }
    
    .legal-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .legal-title {
        font-size: 2.2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 5rem 0.5rem 2rem 0.5rem;
    }
    
    .legal-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .legal-title {
        font-size: 1.8rem;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
}

/* Extra small screens - iPhone SE and similar */
@media (max-width: 375px) {
    .hero {
        padding: 1rem 0.75rem;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 1.25rem;
    }
    
    .hero-cta {
        margin-bottom: 1.25rem;
    }
    
    .hero-note {
        font-size: 0.85rem;
        margin-top: 1rem;
    }

    /* Result page extra small screen fixes */
    .result-container {
        padding: 0.75rem;
    }

    .result-header {
        margin-bottom: 1.5rem;
        padding-top: 0.5rem;
    }

    .result-header h1 {
        font-size: 1.6rem;
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }

    .result-header p {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .transformation-info {
        margin-bottom: 1.5rem;
    }

    .zodiac-badge {
        padding: 0.875rem 1rem;
        max-width: 240px;
        border-radius: 14px;
    }

    .zodiac-symbol-large {
        font-size: 2rem;
    }

    .zodiac-details h3 {
        font-size: 1.1rem;
    }

    .zodiac-details p {
        font-size: 0.8rem;
    }

    .main-action-buttons {
        margin: 1.25rem 0;
        gap: 0.5rem;
    }

    .main-action-buttons .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        max-width: 260px;
    }

    .comparison-title {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .before-after-slider {
        gap: 0.5rem;
    }

    .image-container {
        border-radius: 10px;
        border: 1px solid rgba(78, 205, 196, 0.2);
    }

    .transformation-image {
        border-radius: 8px;
    }

    .image-label {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
    }

    .next-steps h3 {
        font-size: 1.5rem;
    }

    .next-step {
        padding: 1.5rem;
    }

    .next-step .step-icon {
        width: 50px;
        height: 50px;
    }

    .next-step .step-icon i {
        font-size: 1.2rem;
    }

    .next-step h4 {
        font-size: 1.1rem;
    }

    .next-step p {
        font-size: 0.9rem;
    }
}
