.output-format-selector{display:flex;flex-direction:column;gap:12px;padding:16px;background-color:#f5f5f5;border-radius:8px;border:1px solid #e0e0e0}.output-format-selector label:first-child{font-weight:600;font-size:14px;color:#333;margin-bottom:4px}.format-options{display:flex;gap:12px;flex-wrap:wrap}.format-option{display:flex;align-items:center;gap:8px;cursor:pointer;padding:8px 12px;background-color:#fff;border:2px solid #ddd;border-radius:6px;transition:all .3s ease;-webkit-user-select:none;user-select:none}.format-option:hover{border-color:#2196f3;background-color:#f0f7ff}.format-option input[type=radio]{cursor:pointer;width:18px;height:18px;accent-color:#2196f3}.format-option input[type=radio]:disabled{cursor:not-allowed;opacity:.5}.format-option input[type=radio]:disabled+.format-label{opacity:.5;cursor:not-allowed}.format-label{font-size:14px;font-weight:500;display:flex;align-items:center;gap:6px;color:#555;transition:color .3s ease}.format-option input[type=radio]:checked+.format-label{color:#2196f3;font-weight:600}.format-html{color:#ff6b6b}.format-option input[type=radio]:checked+.format-html{color:#ff6b6b}.format-pdf{color:#ee5a6f}.format-option input[type=radio]:checked+.format-pdf{color:#ee5a6f}.format-word{color:#2196f3}.format-option input[type=radio]:checked+.format-word{color:#2196f3}.format-option input[type=radio]:checked+.format-label:after{content:"✓";margin-left:4px;font-weight:700}@media(max-width:600px){.format-options{flex-direction:column}.format-option{width:100%;justify-content:center}}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background-color:#f5f7fa;color:#333;line-height:1.6}.app{min-height:100vh;display:flex;flex-direction:column}.header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem;display:flex;justify-content:space-between;align-items:center}.header h1{font-size:2.5rem;margin-bottom:.5rem}.header p{opacity:.9;font-size:1.1rem}.main{flex:1;max-width:1200px;margin:0 auto;padding:2rem;width:100%}.input-section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 2px 10px #0000001a;margin-bottom:2rem}.file-uploader{margin-bottom:1.5rem}.drop-zone{border:2px dashed #ccc;border-radius:8px;padding:2rem;text-align:center;cursor:pointer;transition:all .3s ease}.drop-zone:hover{border-color:#667eea;background-color:#f8f9ff}.drop-zone-content{display:flex;flex-direction:column;align-items:center;gap:.5rem}.drop-icon{font-size:3rem}.drop-zone p{font-size:1.1rem;color:#555}.drop-zone small{color:#888}.file-list{margin-top:1rem}.file-list h4{margin-bottom:.5rem;color:#555}.file-list ul{list-style:none}.file-list li{display:flex;justify-content:space-between;align-items:center;padding:.5rem;background:#f8f9fa;border-radius:4px;margin-bottom:.25rem}.file-name{font-size:.9rem}.remove-btn{background:none;border:none;color:#dc3545;cursor:pointer;font-size:1rem;padding:.25rem .5rem}.remove-btn:hover{background:#fee;border-radius:4px}.prompt-input{margin-bottom:1.5rem}.prompt-input label{display:block;margin-bottom:.5rem;font-weight:500;color:#333}.prompt-input textarea{width:100%;padding:1rem;border:1px solid #ddd;border-radius:8px;font-size:1rem;resize:vertical;font-family:inherit}.prompt-input textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.actions{display:flex;gap:1rem}.btn{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .3s ease}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.btn-secondary{background:#f8f9fa;color:#333;border:1px solid #ddd}.btn-secondary:hover:not(:disabled){background:#e9ecef}.error-banner{background:#fee;border:1px solid #fcc;color:#c00;padding:1rem;border-radius:8px;margin-bottom:1rem}.success-banner{background:#efe;border:1px solid #cfc;color:#080;padding:1rem;border-radius:8px;margin-bottom:1rem;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.loading{color:#667eea;font-style:italic}.error{color:#dc3545;font-size:.9rem;margin-top:.5rem}.loading-overlay{background:#fff;border-radius:12px;padding:3rem;text-align:center;box-shadow:0 2px 10px #0000001a;margin-bottom:2rem}.spinner{width:50px;height:50px;border:4px solid #f3f3f3;border-top:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-overlay p{font-size:1.2rem;color:#333;margin-bottom:.5rem}.loading-overlay small{color:#666}.output-section{background:#fff;border-radius:12px;box-shadow:0 2px 10px #0000001a;overflow:hidden}.report-viewer{display:flex;flex-direction:column;height:100%}.tabs{display:flex;border-bottom:1px solid #ddd;background:#f8f9fa}.tab{padding:1rem 2rem;border:none;background:none;cursor:pointer;font-size:1rem;color:#666;border-bottom:2px solid transparent;transition:all .3s ease}.tab:hover{color:#333}.tab.active{color:#667eea;border-bottom-color:#667eea;background:#fff}.tab-content{padding:1.5rem;min-height:400px}.report-content{height:100%}.report-iframe{width:100%;height:600px;border:1px solid #ddd;border-radius:4px}.error-message{text-align:center;padding:2rem}.error-message h3{color:#dc3545;margin-bottom:1rem}.code-content{font-family:Fira Code,Consolas,monospace}.code-explanation{background:#f0f4ff;padding:1rem;border-radius:8px;margin-bottom:1rem}.code-explanation h4{margin-bottom:.5rem;color:#667eea}.code-block{background:#1e1e1e;color:#d4d4d4;padding:1rem;border-radius:8px;overflow-x:auto;font-size:.9rem;line-height:1.5}.report-meta{display:flex;justify-content:space-between;padding:1rem 1.5rem;background:#f8f9fa;border-top:1px solid #ddd;color:#666;gap:1rem;flex-wrap:wrap}.format-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #ddd}.format-header h3{margin:0;color:#333;font-size:1.3rem}.download-btn{padding:.6rem 1.2rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.95rem;font-weight:500;transition:all .3s ease;display:flex;align-items:center;gap:.5rem}.download-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea66}.download-btn:active{transform:translateY(0)}.pdf-viewer{height:800px}.word-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px;background:linear-gradient(135deg,#f5f7fa,#f8f9fa);border:2px dashed #ddd;border-radius:8px;text-align:center;color:#666}.word-placeholder p{margin:.5rem 0;font-size:1.1rem}.word-placeholder p:first-child{font-size:3rem;margin-bottom:1rem}.footer{text-align:center;padding:1rem;color:#666;font-size:.9rem}@media(max-width:768px){.header h1{font-size:1.8rem}.main,.input-section{padding:1rem}.actions{flex-direction:column}.btn{width:100%}.report-meta{flex-direction:column;gap:.5rem}}.auth-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.auth-card{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000001a;padding:40px;width:100%;max-width:400px;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.auth-card h1{text-align:center;color:#333;margin-bottom:8px;font-size:28px}.auth-card .subtitle{text-align:center;color:#666;margin-bottom:30px;font-size:14px}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;color:#333;font-weight:500;font-size:14px}.form-group input{width:100%;padding:12px;border:2px solid #e0e0e0;border-radius:8px;font-size:14px;transition:border-color .3s;box-sizing:border-box}.form-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group input:disabled{background-color:#f5f5f5;cursor:not-allowed}.btn{width:100%;padding:12px;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s;margin-bottom:12px}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.btn-primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 20px #667eea66}.btn-primary:disabled{opacity:.7;cursor:not-allowed}.btn-google{background:#fff;color:#333;border:2px solid #e0e0e0;margin-bottom:20px}.btn-google:hover:not(:disabled){background:#f9f9f9;border-color:#667eea}.btn-google:disabled{opacity:.7;cursor:not-allowed}.divider{text-align:center;margin:20px 0;color:#999;font-size:14px;position:relative}.divider:before,.divider:after{content:"";position:absolute;top:50%;width:40%;height:1px;background:#e0e0e0}.divider:before{left:0}.divider:after{right:0}.signup-link{text-align:center;color:#666;font-size:14px;margin-top:20px}.signup-link a{color:#667eea;text-decoration:none;font-weight:600;transition:color .3s}.signup-link a:hover{color:#764ba2;text-decoration:underline}.error-banner{background:#fee;color:#c33;padding:12px;border-radius:8px;margin-bottom:20px;font-size:14px;border-left:4px solid #c33}.subscription-page{max-width:1200px;margin:0 auto;padding:2rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.back-button{background:none;border:none;color:#007bff;font-size:1rem;cursor:pointer;padding:.5rem 0;margin-bottom:1rem}.back-button:hover{text-decoration:underline}.subscription-page h1{font-size:2.5rem;margin-bottom:2rem;color:#333;text-align:center}.alert{padding:1rem 1.5rem;border-radius:8px;margin-bottom:1.5rem;font-weight:500}.alert-error{background-color:#fee2e2;color:#dc2626;border:1px solid #fecaca}.alert-success{background-color:#dcfce7;color:#16a34a;border:1px solid #bbf7d0}.current-plan-card{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:2rem;border-radius:16px;text-align:center;margin-bottom:3rem;box-shadow:0 10px 40px #667eea4d}.current-plan-card h2{margin-bottom:1rem;font-size:1.2rem;opacity:.9}.plan-badge{display:inline-block;padding:.5rem 2rem;background:#fff3;border-radius:50px;font-size:1.5rem;font-weight:700;text-transform:uppercase;letter-spacing:2px}.plan-badge[data-plan=pro]{background:linear-gradient(135deg,gold,#ffb347);color:#333}.renewal-date{margin-top:1rem;opacity:.9;font-size:.9rem}.plans-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem;margin-bottom:3rem}.plan-card{background:#fff;border:2px solid #e5e7eb;border-radius:16px;padding:2rem;position:relative;transition:all .3s ease}.plan-card:hover{transform:translateY(-5px);box-shadow:0 20px 40px #0000001a}.plan-card.current{border-color:#667eea}.plan-card.pro{border-color:gold;background:linear-gradient(to bottom,#fffbeb,#fff)}.popular-badge{position:absolute;top:-12px;right:20px;background:linear-gradient(135deg,gold,#ffb347);color:#333;padding:.3rem 1rem;border-radius:50px;font-size:.8rem;font-weight:700}.plan-header{text-align:center;margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid #e5e7eb}.plan-header h3{font-size:1.5rem;margin-bottom:.5rem;color:#333}.plan-price{display:flex;align-items:baseline;justify-content:center;gap:.2rem}.plan-price .price{font-size:3rem;font-weight:700;color:#667eea}.plan-card.pro .plan-price .price{color:#d97706}.plan-price .period{color:#6b7280;font-size:1rem}.plan-features{list-style:none;padding:0;margin:0 0 2rem}.plan-features li{padding:.75rem 0;color:#374151;display:flex;align-items:center;gap:.5rem}.plan-features li:not(:last-child){border-bottom:1px solid #f3f4f6}.plan-button{width:100%;padding:1rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease}.plan-button.current{background:#e5e7eb;color:#6b7280;cursor:default}.plan-button.upgrade{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.plan-button.upgrade:hover:not(:disabled){transform:scale(1.02);box-shadow:0 5px 20px #667eea66}.plan-button:disabled{opacity:.7;cursor:not-allowed}.faq-section{background:#f9fafb;padding:2rem;border-radius:16px}.faq-section h2{text-align:center;margin-bottom:2rem;color:#333}.faq-item{background:#fff;padding:1.5rem;border-radius:8px;margin-bottom:1rem;box-shadow:0 1px 3px #0000001a}.faq-item h4{color:#333;margin-bottom:.5rem}.faq-item p{color:#6b7280;margin:0;line-height:1.6}.loading-spinner{display:flex;justify-content:center;align-items:center;height:50vh;font-size:1.2rem;color:#6b7280}@media(max-width:768px){.subscription-page{padding:1rem}.subscription-page h1{font-size:2rem}.current-plan-card{padding:1.5rem}.plan-price .price{font-size:2.5rem}}
