* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #0a0a0a; color: #ffffff; line-height: 1.6; overflow: hidden; height: 100vh; }
.app { min-height: 100vh; height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page { display: none; min-height: 100vh; padding: 20px; }
.page.active { display: block; }
.container { max-width: 480px; margin: 0 auto; }

/* Home Page - Luxury Gradient */
.home { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%); display: flex; align-items: center; justify-content: center; text-align: center; }
.home-content { padding: 60px 0 40px; }
.home h1 { font-size: 42px; font-weight: 700; background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 50%, #c084fc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; letter-spacing: -0.5px; }
.home .subtitle { font-size: 16px; color: rgba(255,255,255,0.7); font-weight: 500; margin-bottom: 48px; text-transform: uppercase; letter-spacing: 2px; }
.hero-icon { font-size: 72px; margin-bottom: 48px; }
.home .description { color: rgba(255,255,255,0.8); font-size: 15px; margin-bottom: 40px; line-height: 1.7; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; font-size: 16px; font-weight: 600; color: #000; background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 100%); border: none; border-radius: 14px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3); }
.btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%); color: #0a0a0a; font-size: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.3); color: #ffffff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.btn-secondary { background: linear-gradient(135deg, #10b981 0%, #059669 100%); color: #000; }

.header { text-align: center; padding-top: 60px; margin-bottom: 32px; }
.header h1 { font-size: 32px; font-weight: 700; color: #ffffff; margin-bottom: 8px; letter-spacing: -0.5px; }
.header .sub { font-size: 15px; color: rgba(255,255,255,0.6); }

/* Style Cards */
.style-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 16px; margin-bottom: 24px; }
.style-card { background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%); border: 2px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 24px; text-align: left; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(10px); }
.style-card:hover { transform: translateY(-4px); border-color: rgba(255, 215, 0, 0.5); box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2); }
.style-card.selected { border-color: #ffd700; background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 107, 107, 0.1) 100%); box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3); }
.style-card .icon { font-size: 36px; margin-bottom: 12px; }
.style-card .name { font-size: 20px; font-weight: 700; color: #ffffff; margin-bottom: 6px; }
.style-card .desc { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* Upload Section */
.upload-section { margin-bottom: 32px; }
.upload-label { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 12px; text-align: center; font-weight: 500; }
.upload-box { border: 2px dashed rgba(255,255,255,0.3); border-radius: 16px; background: rgba(255,255,255,0.05); padding: 32px 16px; text-align: center; cursor: pointer; transition: all 0.3s; }
.upload-box:hover { border-color: rgba(255, 215, 0, 0.5); background: rgba(255, 215, 0, 0.05); }
.upload-box.has-image { border-color: #10b981; background: rgba(16, 185, 129, 0.1); }
.upload-icon { font-size: 48px; margin-bottom: 12px; }
.upload-text { color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 8px; }
.upload-hint { color: rgba(255,255,255,0.5); font-size: 12px; }
#photo-upload { display: none; }
.preview-image { max-width: 100%; max-height: 200px; border-radius: 12px; margin-top: 12px; display: none; }

.button-group { display: flex; gap: 12px; }
.button-group .btn { flex: 1; }

/* Generating Page */
.generating { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%); display: flex; align-items: center; justify-content: center; text-align: center; }
.generating-content { padding-top: 40px; }
.spinner { width: 80px; height: 80px; border: 4px solid rgba(255,215,0,0.2); border-top-color: #ffd700; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 32px; }
@keyframes spin { to { transform: rotate(360deg); } }
.generating h1 { font-size: 28px; font-weight: 700; color: #ffffff; margin-bottom: 8px; }
.generating .sub { font-size: 15px; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #ffd700 0%, #ff6b6b 100%); border-radius: 4px; transition: width 0.1s; width: 0%; }
.status-text { font-size: 14px; color: rgba(255,255,255,0.7); }

/* Result Page */
.section { margin-bottom: 28px; }
.section-title { font-size: 18px; font-weight: 600; color: #ffffff; margin-bottom: 16px; }
.image-container { border-radius: 20px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); background: rgba(255,255,255,0.05); }
.image-container img { width: 100%; display: block; }
.result .button-group { margin-top: 32px; margin-bottom: 40px; }
.result .btn-secondary { width: 100%; margin-bottom: 24px; }

/* Brand Footer */
.brand-footer { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.brand-text { font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 1px; }

/* Mobile Optimization */
@media (max-width: 480px) {
    .home h1 { font-size: 36px; }
    .header h1 { font-size: 28px; }
    .style-card { padding: 20px; }
}
