*{margin:0;padding:0;box-sizing:border-box}body{font-family:Outfit,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.6;color:#333;background:linear-gradient(135deg,#667eea,#764ba2);min-height:100vh}.container{max-width:1200px;margin:0 auto;padding:20px}header{text-align:center;color:#fff;margin-bottom:25px}header h1{font-size:2rem;margin-bottom:6px;font-weight:300}header p{font-size:1rem;opacity:.9}main{background:#fff;border-radius:12px;padding:25px;box-shadow:0 20px 40px #0000001a}.upload-section{margin-bottom:40px}.upload-area{border:3px dashed #ddd;border-radius:12px;padding:60px 20px;text-align:center;transition:all .3s ease;cursor:pointer}.upload-area:hover{border-color:#667eea;background:#f8f9ff}.upload-area.dragover{border-color:#667eea;background:#f0f4ff;transform:scale(1.02)}.upload-icon{font-size:4rem;margin-bottom:20px}.upload-content h3{font-size:1.5rem;margin-bottom:10px;color:#333}.upload-content p{color:#666;margin-bottom:30px}.upload-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:15px 30px;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .3s ease}.upload-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px #667eea4d}.options-section{margin-bottom:40px;padding:30px;background:#f8f9fa;border-radius:12px}.options-section h3{margin-bottom:25px;color:#333}.options-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-bottom:30px}.option-card{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 10px #0000000d}.option-card label{display:block;margin-bottom:10px;font-weight:500;color:#333}.option-card select{width:100%;padding:12px;border:2px solid #e9ecef;border-radius:6px;font-size:1rem;background:#fff}.option-card select:focus{outline:none;border-color:#667eea}.option-card input[type=range]{width:100%;margin:10px 0;-webkit-appearance:none;height:6px;border-radius:3px;background:#e9ecef;outline:none}.option-card input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);cursor:pointer}.option-card input[type=range]::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);cursor:pointer;border:none}.slider-labels{display:flex;justify-content:space-between;font-size:.8rem;color:#666;margin-top:5px}.process-btn{background:linear-gradient(135deg,#28a745,#20c997);color:#fff;border:none;padding:15px 30px;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .3s ease}.process-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px #28a7454d}.preview-section{text-align:center}.preview-header{display:flex;align-items:center;justify-content:center;margin-bottom:25px;position:relative}.back-btn{position:absolute;left:0;background:linear-gradient(135deg,#6c757d,#495057);color:#fff;border:none;padding:10px 15px;border-radius:6px;font-size:.9rem;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:5px}.back-btn:hover{transform:translateY(-2px);box-shadow:0 6px 15px #6c757d4d}.folding-btn{position:absolute;right:0;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:10px 15px;border-radius:6px;font-size:.9rem;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:5px}.folding-btn:hover{transform:translateY(-2px);box-shadow:0 6px 15px #667eea4d}.preview-section h3{margin:0;color:#333}.preview-container{background:#f8f9fa;border-radius:12px;padding:20px;margin-bottom:30px;display:inline-block}#previewCanvas{max-width:100%;height:auto;border:1px solid #ddd;border-radius:8px}.download-btn{background:linear-gradient(135deg,#dc3545,#e83e8c);color:#fff;border:none;padding:15px 30px;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .3s ease}.download-btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px #dc35454d}.margin-control{margin:20px 0 0;background:#f8f9fa;border-radius:8px;text-align:left}.margin-control .option-card{margin-bottom:0}.margin-toggle-btn{width:100%;background:linear-gradient(135deg,#6c757d,#495057);color:#fff;border:none;padding:10px 15px;border-radius:6px;font-size:.9rem;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:8px}.margin-toggle-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #6c757d4d}.toggle-icon{font-size:1rem}.margin-controls-content{margin-top:15px}.update-btn{background:linear-gradient(135deg,#007bff,#0056b3);color:#fff;border:none;padding:12px 25px;border-radius:8px;font-size:.9rem;cursor:pointer;transition:all .3s ease}.update-btn:hover{transform:translateY(-2px);box-shadow:0 6px 15px #007bff4d}.slider-status{font-size:.8rem;color:#666;margin-top:8px;min-height:16px;font-style:italic}.instructions-section h2{text-align:center;margin-bottom:30px;color:#333}.instructions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:25px}.instruction-card{text-align:center;padding:25px;background:#f8f9fa;border-radius:12px;transition:all .3s ease}.instruction-card:hover{transform:translateY(-5px);box-shadow:0 10px 25px #0000001a}.step-number{display:inline-block;width:40px;height:40px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:50%;line-height:40px;font-size:1.2rem;font-weight:700;margin-bottom:15px}.instruction-card h4{margin-bottom:10px;color:#333}.instruction-card p{color:#666;font-size:.9rem;margin-bottom:10px}.folding-guide-link{color:#667eea;text-decoration:none;font-size:.85rem;font-weight:500;transition:color .3s ease}.folding-guide-link:hover{color:#764ba2;text-decoration:underline}.modal{display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background-color:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-content{background-color:#fff;margin:1% auto 3%;padding:0;border-radius:12px;width:90%;max-width:700px;max-height:92vh;overflow:hidden;box-shadow:0 20px 60px #0000004d;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-50px)}to{opacity:1;transform:translateY(0)}}.modal-header{padding:8px 15px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;justify-content:space-between;align-items:center}.modal-header h3{margin:0;font-size:1.1rem;font-weight:500}.modal-close{font-size:1.8rem;font-weight:700;cursor:pointer;color:#fff;opacity:.8;transition:opacity .3s ease;line-height:1}.modal-close:hover{opacity:1}.modal-spacer{font-size:1.8rem;opacity:0;line-height:1}.modal-body{padding:15px;text-align:center;overflow-y:auto;max-height:calc(92vh - 50px)}.folding-guide-image{max-width:85%;height:auto;border-radius:8px;box-shadow:0 4px 15px #0000001a;margin-bottom:15px}.modal-source{margin-bottom:16px}.modal-source p{margin:0;font-size:.9rem;color:#666}.modal-source a{color:#667eea;text-decoration:none}.modal-source a:hover{color:#764ba2;text-decoration:underline}.features-section{margin-top:40px}.features-section h2{text-align:center;margin-bottom:30px;color:#333;font-size:1.8rem}.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:25px;margin-top:30px}.feature-item{text-align:center;padding:25px;background:#f8f9fa;border-radius:12px;transition:all .3s ease;border:1px solid #e9ecef}.feature-item:hover{transform:translateY(-5px);box-shadow:0 10px 25px #0000001a;background:#fff}.feature-item h3{margin-bottom:15px;color:#333;font-size:1.2rem;font-weight:600}.feature-item p{color:#666;font-size:.9rem;line-height:1.5;margin:0}footer{margin-top:60px;padding:30px 0;border-top:1px solid rgba(255,255,255,.2);text-align:center;color:#fff}footer p{margin:0;font-size:.9rem;opacity:.8}footer a{color:#fff;text-decoration:none;transition:all .3s ease;padding:2px 4px;border-radius:4px}footer a:hover{background:#fff3;text-decoration:none}.loading-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:9999;opacity:0;visibility:hidden;transition:opacity .3s ease,visibility .3s ease}.loading-overlay.show{opacity:1;visibility:visible}.loading-content{text-align:center;color:#fff;max-width:400px;padding:40px}.loading-spinner{width:80px;height:80px;margin:0 auto 30px;border:4px solid rgba(255,255,255,.3);border-top:4px solid white;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-title{font-size:1.8rem;font-weight:600;margin-bottom:15px;opacity:0;animation:fadeInUp .6s ease forwards .2s}.loading-message{font-size:1rem;opacity:.9;line-height:1.5;margin-bottom:30px;opacity:0;animation:fadeInUp .6s ease forwards .4s}.loading-progress{width:100%;height:4px;background:#ffffff4d;border-radius:2px;overflow:hidden;margin-bottom:20px}.loading-progress-bar{height:100%;background:#fff;border-radius:2px;width:0%;transition:width .6s ease-out}.loading-steps{list-style:none;padding:0;margin:0;opacity:0;animation:fadeInUp .6s ease forwards .6s}.loading-steps li{font-size:.9rem;margin-bottom:10px;opacity:.4;transition:all .3s ease;padding:8px 12px;border-radius:6px;background:#ffffff0d}.loading-steps li.active{opacity:1;font-weight:600;background:#ffffff26;transform:translate(8px);color:#fff;border-left:3px solid #ffffff;padding-left:9px}.loading-steps li.completed{opacity:.6;background:#ffffff14;color:#fffc}.loading-steps li.completed:after{content:" ✓";color:#ffffffe6;font-weight:700}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.section-transition{opacity:1;transform:translateY(0);transition:all .4s ease}.section-transition.fade-out{opacity:0;transform:translateY(-20px)}.section-transition.fade-in{opacity:0;transform:translateY(20px);animation:fadeInSection .5s ease forwards}@keyframes fadeInSection{to{opacity:1;transform:translateY(0)}}.upload-area{transition:all .3s cubic-bezier(.4,0,.2,1)}.upload-area.processing{transform:scale(.98);opacity:.7;pointer-events:none}.instruction-card,.feature-item{opacity:0;transform:translateY(30px);animation:slideInUp .6s ease forwards}.instruction-card:nth-child(1){animation-delay:.1s}.instruction-card:nth-child(2){animation-delay:.2s}.instruction-card:nth-child(3){animation-delay:.3s}.instruction-card:nth-child(4){animation-delay:.4s}.feature-item:nth-child(1){animation-delay:.1s}.feature-item:nth-child(2){animation-delay:.2s}.feature-item:nth-child(3){animation-delay:.3s}.feature-item:nth-child(4){animation-delay:.4s}@keyframes slideInUp{to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){.container{padding:10px}main{padding:15px}header h1{font-size:1.6rem}.options-grid,.instructions-grid,.features-grid{grid-template-columns:1fr}.features-section h2{font-size:1.5rem}.feature-item{padding:20px}footer{margin-top:40px;padding:20px 0}}
