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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #a8e6cf 0%, #dcedc1 50%, #ffd3a5 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(218, 175, 225, 0.3);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    text-align: left;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8b5fa3;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.header-content p {
    font-size: 0.9rem;
    color: #6a6a7b;
    font-weight: 400;
}

.app-main {
    flex: 1;
    display: grid;
    grid-template-columns: 400px auto minmax(0, 1fr);
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
    align-items: start;
    height: calc(100vh - 80px);
    overflow: hidden;
}

.left-panel {
    height: 100%;
    overflow: visible;
    padding: 0;
}

.controls-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

.input-group {
    margin-bottom: 16px;
}

.customization-section {
    margin: 16px 0;
    padding: 0;
}

.customization-section h3 {
    color: #2d2d3d;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: left;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(139, 95, 163, 0.2);
}

label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #2d2d3d;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 2px solid rgba(139, 95, 163, 0.3);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(139, 95, 163, 0.1);
}

input[type="text"]:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    border: 2px solid rgba(139, 95, 163, 0.3);
    border-radius: 8px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 95, 163, 0.1);
    color: #2d2d3d;
    font-weight: 500;
}

select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.slider-container {
    position: relative;
    margin: 8px 0;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e0e0e0 0%, #667eea 50%, #e0e0e0 100%);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: 3px solid white;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(139, 95, 163, 0.2);
    box-shadow: 0 1px 4px rgba(139, 95, 163, 0.1);
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(139, 95, 163, 0.15);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #8b5fa3;
    cursor: pointer;
}

.checkbox-item span {
    font-size: 0.85rem;
    color: #2d2d3d;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.generate-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 20px;
}

.generate-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #d63384 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 10;
}

.generate-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 16px 50px rgba(255, 107, 107, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.generate-button:active {
    transform: translateY(-1px) scale(1.02);
}

.generate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.right-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    min-width: 0;
    overflow: hidden;
}

.preview-section {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
}


.welcome-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #2d2d3d;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(139, 95, 163, 0.2);
}

.welcome-illustration {
    margin: 0 auto 32px;
    text-align: center;
}

.yarn-illustration {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 8px 24px rgba(139, 95, 163, 0.2));
    transition: transform 0.3s ease;
}

.yarn-illustration:hover {
    transform: scale(1.05);
}

.welcome-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d2d3d;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.welcome-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 350px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.loading-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-animation {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.loading-animation lottie-player {
    margin: 0 auto;
}

.yarn-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.loading-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.loading-text p {
    font-size: 1rem;
    color: #666;
}

.result-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    min-height: 300px;
    border: 2px solid rgba(139, 95, 163, 0.3);
    box-shadow: 0 4px 16px rgba(139, 95, 163, 0.15);
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.action-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.action-btn.secondary:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.error-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
    padding: 32px;
    background: rgba(244, 67, 54, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(244, 67, 54, 0.1);
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.error-content p {
    color: #d32f2f;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .app-main {
        grid-template-columns: 350px auto 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .left-panel {
        padding: 20px;
    }
    
    .preview-section {
        padding: 20px;
    }
}

@media (max-width: 968px) {
    .app-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
        padding: 16px;
        height: auto;
        overflow: visible;
    }
    
    .left-panel {
        height: auto;
        order: 1;
    }
    
    .generate-section {
        order: 2;
        padding: 16px 0;
    }
    
    .right-panel {
        height: 60vh;
        order: 3;
        min-height: 300px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        padding: 0 20px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .header-left h1 {
        font-size: 1.5rem;
    }
    
    .header-left p {
        font-size: 0.8rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .user-profile {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .user-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .google-signin-btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .customization-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .input-group {
        margin-bottom: 16px;
    }
    
    .generate-button {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .action-btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .welcome-illustration .yarn-illustration {
        width: 120px;
        height: 120px;
    }
    
    .showcase-content {
        padding: 20px;
    }
    
    .showcase-cta {
        margin-top: 24px;
    }
    
    .loading-animation lottie-player {
        width: 150px !important;
        height: 150px !important;
    }
}

@media (max-width: 480px) {
    .app-main {
        padding: 8px;
        gap: 12px;
    }
    
    .left-panel {
        padding: 12px;
        border-radius: 12px;
    }
    
    .preview-section {
        padding: 12px;
        border-radius: 12px;
    }
    
    .right-panel {
        height: 45vh;
        min-height: 250px;
    }
    
    .header-content {
        padding: 0 12px;
    }
    
    .header-left h1 {
        font-size: 1.3rem;
    }
    
    .header-left p {
        font-size: 0.75rem;
    }
    
    .customization-section {
        padding: 12px;
        margin: 12px 0;
    }
    
    .customization-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .input-group {
        margin-bottom: 12px;
    }
    
    .input-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .checkbox-group {
        gap: 8px;
    }
    
    .checkbox-item {
        font-size: 0.85rem;
    }
    
    .generate-button {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .action-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .welcome-illustration .yarn-illustration {
        width: 100px;
        height: 100px;
    }
    
    .welcome-section h3 {
        font-size: 1.1rem;
    }
    
    .welcome-section p {
        font-size: 0.85rem;
    }
    
    .loading-animation lottie-player {
        width: 120px !important;
        height: 120px !important;
    }
    
    .loading-text h3 {
        font-size: 1.2rem;
    }
    
    .loading-text p {
        font-size: 0.85rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    .user-name {
        font-size: 0.9rem;
    }
    
    .user-status {
        font-size: 0.75rem;
    }
    
    .payment-btn, .sign-out-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .google-signin-btn {
        font-size: 0.85rem;
        padding: 10px 16px;
        max-width: 280px;
    }
    
    .footer-content {
        padding: 0 12px;
        font-size: 0.8rem;
    }
}

/* Authentication Styles */
.auth-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.google-signin-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #dadce0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-signin-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: #dadce0;
}

.google-signin-btn:active {
    background: #f8f9fa;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(139, 95, 163, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(139, 95, 163, 0.3);
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d2d3d;
}

.user-status {
    font-size: 0.8rem;
    font-weight: 500;
}

.user-status.paid {
    color: #22c55e;
}

.user-status.free {
    color: #f59e0b;
}

.user-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.payment-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.payment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.sign-out-btn {
    background: rgba(139, 95, 163, 0.1);
    color: #8b5fa3;
    border: 1px solid rgba(139, 95, 163, 0.3);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sign-out-btn:hover {
    background: rgba(139, 95, 163, 0.15);
}


/* Authentication Required Section */
.auth-required-section,
.payment-required-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 48px 32px;
    border: 2px solid rgba(139, 95, 163, 0.2);
}

.auth-required-content,
.payment-required-content {
    max-width: 400px;
}

.auth-icon,
.payment-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.auth-required-section h3,
.payment-required-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2d3d;
    margin-bottom: 12px;
}

.auth-required-section p,
.payment-required-section p {
    font-size: 1rem;
    color: #5a5a6b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.payment-required-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.payment-required-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
}

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

.payment-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.payment-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2d3d;
    margin: 0;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: #f3f4f6;
    color: #6b7280;
}

.payment-modal-body {
    padding: 32px;
}

.payment-details {
    margin-bottom: 32px;
}

.payment-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(139, 95, 163, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(139, 95, 163, 0.1);
}

.feature-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.payment-feature span:last-child {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
}

.payment-price {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(139, 95, 163, 0.1) 0%, rgba(139, 95, 163, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(139, 95, 163, 0.2);
}

.price-amount {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #2d2d3d;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.price-description {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.payment-actions {
    text-align: center;
}

.proceed-payment-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 18px 48px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
    width: 100%;
    margin-bottom: 16px;
}

.proceed-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.4);
}

.proceed-payment-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.payment-note {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0;
    font-style: italic;
}

/* Payment Notifications */
.payment-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    min-width: 320px;
    animation: notificationSlideIn 0.3s ease-out;
}

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

.payment-notification.success {
    border-left: 4px solid #22c55e;
}

.payment-notification.error {
    border-left: 4px solid #ef4444;
}

.payment-notification.warning {
    border-left: 4px solid #f59e0b;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d3d;
    margin: 0 0 4px 0;
}

.notification-text p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* Showcase Gallery Styles */
.showcase-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 32px 24px;
    border: 2px solid rgba(139, 95, 163, 0.2);
    min-width: 0;
    overflow: hidden;
}

.showcase-content {
    max-width: 100%;
    width: 100%;
    min-width: 0;
}

.showcase-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d2d3d;
    margin-bottom: 8px;
}

.showcase-content > p {
    font-size: 1rem;
    color: #5a5a6b;
    margin-bottom: 32px;
    line-height: 1.5;
}

.gallery-carousel {
    position: relative;
    width: 100%;
    margin-bottom: 32px;
    overflow: hidden;
    border-radius: 12px;
    min-height: 300px;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 16px;
    width: fit-content;
}

.gallery-slide {
    flex: none;
    width: min(250px, calc(100vw - 200px));
    text-align: center;
}

.gallery-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-slide img:hover {
    transform: scale(1.05);
}

.slide-caption {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d3d;
    text-transform: capitalize;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(139, 95, 163, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b5fa3;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(139, 95, 163, 0.1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(139, 95, 163, 0.3);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.showcase-cta {
    text-align: center;
}

.showcase-cta p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d2d3d;
    margin-bottom: 20px;
}

.showcase-cta .google-signin-btn {
    font-size: 1rem;
    padding: 16px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
}

.showcase-cta .google-signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.4);
}


/* Mobile responsiveness for gallery */
@media (max-width: 768px) {
    .gallery-slide {
        width: 200px;
    }
    
    .gallery-slide img {
        height: 200px;
    }
    
    .gallery-nav {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .gallery-prev {
        left: 8px;
    }
    
    .gallery-next {
        right: 8px;
    }
    
    .showcase-content h3 {
        font-size: 1.3rem;
    }
    
    .showcase-content > p {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

}

/* Footer Styles */
.app-footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(218, 175, 225, 0.3);
    padding: 16px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-size: 0.9rem;
    color: #666;
}

.made-in-india {
    font-weight: 600;
    color: #8b5fa3;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    /* Payment Modal Mobile Optimization */
    .payment-modal-content {
        width: 95vw;
        max-width: 400px;
        margin: 20px;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .payment-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .payment-feature {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
    
    .proceed-payment-btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
    }
    
    /* Error Section Mobile */
    .error-content {
        padding: 20px;
        text-align: center;
    }
    
    .error-icon {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
    
    /* Image Container Mobile */
    .image-container {
        min-height: 250px;
        margin-bottom: 12px;
    }
    
    .image-container img {
        max-width: 100%;
        height: auto;
    }
    
    /* Showcase Gallery Mobile */
    .gallery-slide {
        width: 180px;
        height: 180px;
    }
    
    .gallery-slide img {
        height: 180px;
        width: 180px;
    }
    
    .gallery-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    /* Form Controls Mobile */
    input[type="text"], 
    input[type="range"], 
    select {
        width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    /* Prevent iOS zoom on form elements */
    input, select, textarea {
        font-size: 16px;
    }
    
    /* Touch-friendly improvements */
    button, .action-btn, .generate-button {
        min-height: 44px; /* Apple's recommended touch target size */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* Improve touch scrolling */
    .preview-section, .left-panel {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Better spacing for touch */
    .checkbox-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 8px 4px;
    }
    
    .checkbox-item input[type="checkbox"] {
        transform: scale(1.2);
        margin-right: 12px;
    }
    
    /* Gallery carousel touch improvements */
    .gallery-carousel {
        touch-action: pan-x;
    }
    
    .gallery-nav {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
    .header-left h1 {
        font-size: 1.2rem;
    }
    
    .header-left p {
        font-size: 0.7rem;
    }
    
    .app-main {
        padding: 6px;
    }
    
    .left-panel, .preview-section {
        padding: 10px;
    }
    
    .generate-button {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    
    .welcome-illustration .yarn-illustration {
        width: 80px;
        height: 80px;
    }
    
    .loading-animation lottie-player {
        width: 100px !important;
        height: 100px !important;
    }
}