*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f5f5f5;color:#333}.container{max-width:1400px;margin:0 auto;padding:20px}:root{--primary: #2563eb;--primary-hover: #1d4ed8;--primary-light: #dbeafe;--success: #2563eb;--warning: #2563eb;--danger: #2563eb}.header{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;padding:30px;border-radius:12px;margin-bottom:20px}.header h1{font-size:28px;margin-bottom:8px}.header p{opacity:.9}.header-stats{display:flex;gap:30px;margin-top:20px}.stat-item{text-align:center}.stat-value{font-size:32px;font-weight:700}.stat-label{font-size:12px;opacity:.8}.card{background:#fff;border-radius:12px;padding:24px;margin-bottom:20px;box-shadow:0 2px 8px #00000014}.card-title{font-size:18px;font-weight:600;margin-bottom:16px;color:#333;display:flex;align-items:center;gap:10px;position:relative;padding-left:14px}.card-title:before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:4px;height:20px;background:#2563eb;border-radius:2px}.tabs{display:flex;gap:8px;margin-bottom:20px;flex-wrap:wrap}.tab{padding:12px 24px;background:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;color:#666;transition:all .2s}.tab:hover{background:#f0f0f0}.tab.active{background:#2563eb;color:#fff}.tab-content{display:none}.tab-content.active{display:block}.form-row{display:flex;gap:16px;margin-bottom:16px;flex-wrap:wrap}.form-group{flex:1;min-width:200px}.form-group label{display:block;margin-bottom:6px;font-weight:500;font-size:14px;color:#555}.form-control{width:100%;padding:10px 14px;border:1px solid #ddd;border-radius:8px;font-size:14px;transition:border-color .2s;background:#fff}.form-control:focus{outline:none;border-color:#2563eb}.form-control::placeholder{color:#999;font-size:14px}select.form-control{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px}.btn{padding:10px 20px;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s;display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#2563eb;color:#fff;min-width:100px;white-space:nowrap}.btn:hover{background:#1d4ed8}.btn-primary{background:#2563eb}.btn-primary:hover{background:#1d4ed8}.btn-success{background:#2563eb}.btn-success:hover{background:#1d4ed8}.btn-warning{background:#2563eb}.btn-warning:hover{background:#1d4ed8}.btn-danger{background:#2563eb}.btn-danger:hover{background:#1d4ed8}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-sm{padding:6px 12px;font-size:12px;min-width:auto}.btn.loading{pointer-events:none}.btn .spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite;flex-shrink:0;margin:0}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px;min-height:300px;align-content:start}.product-grid.empty{display:flex;align-items:center;justify-content:center}.product-card{background:#fff;border-radius:16px;padding:16px;border:1px solid #e9ecef;transition:all .25s;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 1px 3px #0000000a}.product-card:hover{border-color:#339af0;box-shadow:0 8px 24px #339af01f;transform:translateY(-2px)}.product-card.optimized{border:2px solid #339af0}.product-image-wrapper{width:100%;aspect-ratio:1 / 1;overflow:hidden;background:linear-gradient(135deg,#f8f9fa,#e9ecef);display:flex;align-items:center;justify-content:center;border-radius:12px}.product-image{width:100%;height:100%;object-fit:contain;padding:16px}.product-image-placeholder{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#adb5bd;font-size:13px;gap:8px}.product-image-placeholder svg{width:56px;height:56px;opacity:.4}.product-content{display:flex;flex-direction:column;flex:1;padding-top:12px}.product-header{padding-bottom:4px}.product-title-row{display:flex;align-items:flex-start;gap:8px;margin-bottom:6px}.product-title{font-weight:600;font-size:14px;color:#212529;line-height:1.4;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-box-flex:1;flex:1;box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.product-status{font-size:11px;padding:2px 8px;border-radius:4px;white-space:nowrap;flex-shrink:0}.product-status.optimized{background:#e7f5ff;color:#1971c2}.product-status.pending{background:#f1f3f5;color:#868e96}.product-meta{display:flex;gap:6px;flex-wrap:wrap;padding:6px 0 10px;border-bottom:1px solid #f1f3f5}.product-meta .badge{background:#e7f5ff;color:#1971c2;padding:3px 8px;border-radius:4px;font-size:11px;font-weight:500}.product-seo-section{padding:10px 0;flex:1;min-height:50px}.product-seo-section .section-title{font-size:11px;color:#868e96;text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px;font-weight:600}.product-seo-status{margin-bottom:8px}.product-seo-status:last-child{margin-bottom:0}.seo-badge{display:block;padding:6px 10px;border-radius:6px;font-size:12px;line-height:1.4;word-break:break-word}.seo-badge.good{background:#e7f5ff;color:#1971c2}.seo-badge.info{background:#f1f3f5;color:#495057}.seo-badge.normal{background:#f8f9fa;color:#868e96}.product-actions{padding:12px 0 0;background:transparent;border-top:none;display:flex;gap:8px;flex-wrap:wrap;margin-top:auto}.product-price{font-size:18px;font-weight:600;color:#2563eb}.table-wrapper{overflow-x:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px 16px;text-align:left;border-bottom:1px solid #e5e7eb}.table th{background:#f9fafb;font-weight:600;font-size:13px;color:#666;text-transform:uppercase;letter-spacing:.5px}.table tr:hover{background:#f9fafb}.table tr.selected{background:#dbeafe}.modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;z-index:1000;align-items:center;justify-content:center}.modal.show{display:flex}.modal-content{background:#fff;border-radius:16px;padding:30px;max-width:700px;width:90%;max-height:90vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-title{font-size:20px;font-weight:600}.modal-close{background:none;border:none;font-size:28px;cursor:pointer;color:#888}.modal-close:hover{color:#333}.loading{text-align:center;padding:60px;color:#666}.spinner{width:40px;height:40px;border:3px solid #e5e7eb;border-top-color:#2563eb;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 20px}@keyframes spin{to{transform:rotate(360deg)}}.alert{padding:16px 20px;border-radius:8px;margin-bottom:16px;display:flex;align-items:center;gap:12px;background:#dbeafe;color:#2563eb}.alert-success,.alert-error,.alert-warning,.alert-info{background:#dbeafe;color:#2563eb}.progress-bar{height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#2563eb,#1d4ed8);transition:width .3s}.empty-state{text-align:center;padding:60px 20px;color:#888;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center}.empty-state p{font-size:16px;color:#868e96}.product-grid:empty,.product-grid .empty-state{min-height:300px}.toast-container{position:fixed;bottom:20px;right:20px;z-index:2000}.toast{background:#2563eb;color:#fff;padding:16px 24px;border-radius:8px;margin-top:10px;animation:slideIn .3s ease}@keyframes slideIn{0%{transform:translate(100%);opacity:0}to{transform:translate(0);opacity:1}}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;flex-wrap:wrap;gap:16px}.toolbar-left{display:flex;gap:12px;align-items:center}.toolbar-right{display:flex;gap:12px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.stat-card{background:#fff;padding:20px;border-radius:12px;text-align:center;border:1px solid #e5e7eb}.stat-card-value{font-size:32px;font-weight:700;color:#2563eb}.stat-card-label{font-size:14px;color:#666;margin-top:8px}.seo-preview{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px;margin-top:16px}.seo-preview-title{color:#1a0dab;font-size:18px;margin-bottom:4px;cursor:pointer}.seo-preview-title:hover{text-decoration:underline}.seo-preview-url{color:#006621;font-size:14px;margin-bottom:4px}.seo-preview-desc{color:#545454;font-size:14px;line-height:1.6}.result-header{margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid #e5e7eb}.result-header h3{font-size:18px;color:#333;margin-bottom:8px}.result-product{color:#333;font-size:14px;font-weight:500}.result-hint{color:#16a34a;font-size:13px;margin-top:6px}.result-compare{display:flex;flex-direction:column;gap:24px}.result-item{background:#f9fafb;border-radius:12px;padding:20px;border:1px solid #e5e7eb}.result-item label{font-weight:600;color:#333;margin-bottom:12px;display:block;font-size:14px}.compare-box{display:flex;align-items:stretch;gap:12px}.compare-original,.compare-new{flex:1;background:#fff;padding:12px;border-radius:8px;border:1px solid #e5e7eb}.compare-label{font-size:12px;color:#888;display:block;margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}.compare-value{font-size:14px;color:#333;word-break:break-all;line-height:1.5}.compare-value.success{color:#16a34a;font-weight:500}.compare-arrow{display:flex;align-items:center;justify-content:center;color:#2563eb;font-size:24px;font-weight:700;min-width:40px}.keywords-box{display:flex;flex-wrap:wrap;gap:8px}.keyword-tag{background:#dbeafe;color:#2563eb;padding:6px 14px;border-radius:16px;font-size:13px;font-weight:500}.result-actions{margin-top:28px;display:flex;gap:12px;justify-content:flex-end;padding-top:20px;border-top:1px solid #e5e7eb}.loading-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#ffffffe6;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:3000}.check-icon{display:inline-block;width:16px;height:16px;margin-right:8px}.comparison-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.comparison-metric{display:flex;align-items:flex-start;gap:16px;padding:20px;background:#f9fafb;border-radius:12px;border:1px solid #e5e7eb;transition:all .2s}.comparison-metric:hover{border-color:#2563eb;box-shadow:0 2px 8px #2563eb1a}.metric-icon{font-size:28px;width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:12px;border:1px solid #e5e7eb;flex-shrink:0}.metric-content{flex:1;min-width:0}.metric-label{font-size:14px;font-weight:600;color:#333;margin-bottom:10px}.metric-values{display:flex;align-items:center;gap:12px;margin-bottom:8px}.metric-before,.metric-after{display:flex;flex-direction:column}.metric-label-small{font-size:11px;color:#888;text-transform:uppercase;letter-spacing:.5px}.metric-value{font-size:16px;font-weight:600;color:#333}.metric-value.highlight{color:#2563eb}.metric-arrow{color:#2563eb;font-size:18px;font-weight:700}.metric-change{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:16px;font-size:13px;font-weight:600}.metric-change.positive{background:#dcfce7;color:#16a34a}.metric-change.negative{background:#fee2e2;color:#dc2626}.metric-change.neutral{background:#f3f4f6;color:#666}.loading-state{text-align:center;padding:60px 20px}.loading-state .spinner{margin-bottom:16px}.table .change{display:inline-flex;align-items:center;padding:4px 10px;border-radius:16px;font-size:13px;font-weight:600}.table .change.positive{background:#dcfce7;color:#16a34a}.table .change.negative{background:#fee2e2;color:#dc2626}.table .change.neutral{background:#f3f4f6;color:#666}
