.speed-test-container{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#fffffff2;border:1px solid #fff3;border-radius:24px;margin:2rem 0;padding:2rem;animation:.8s ease-out fadeInUp;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.url-form{flex-wrap:wrap;gap:1rem;margin-bottom:2rem;display:flex}.url-input{border:2px solid var(--border);background:var(--surface,white);border-radius:12px;flex:1;min-width:300px;padding:1rem;font-family:inherit;font-size:1rem;transition:all .3s}.url-input:focus{border-color:var(--primary);outline:none;transform:translateY(-1px);box-shadow:0 0 0 3px #6366f11a}.test-btn{background:linear-gradient(135deg, var(--primary), var(--primary-dark));color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:12px;align-items:center;gap:.5rem;padding:1rem 2rem;font-size:1rem;font-weight:600;transition:all .3s;display:inline-flex}.test-btn:hover{transform:translateY(-2px);box-shadow:0 8px 15px #6366f14d}.test-btn:disabled{opacity:.7;cursor:not-allowed;box-shadow:none;transform:none}.device-tabs{background:var(--secondary);border-radius:12px;gap:1rem;margin-bottom:2rem;padding:.5rem;display:flex}.device-tab{cursor:pointer;background:0 0;border:none;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:.5rem;padding:.75rem 1rem;font-weight:500;transition:all .3s;display:flex}.device-tab.active{background:var(--surface,white);color:var(--primary);box-shadow:0 2px 4px #0000001a}.loading-spinner{border:3px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:1.5rem;height:1.5rem;animation:1s ease-in-out infinite spin;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.test-progress{margin:2rem 0;display:none}.progress-bar{background:#e2e8f0;border-radius:4px;height:8px;margin-bottom:.5rem;overflow:hidden}.progress-fill{background:linear-gradient(90deg, var(--primary), var(--primary-dark));width:0%;height:100%;transition:width .3s}.progress-text{color:var(--text-light);text-align:center;font-size:.9rem}.test-results{animation:.8s ease-out fadeInUp;display:none}.results-header{background:linear-gradient(135deg, var(--primary), var(--primary-dark));color:#fff;border-radius:16px;margin-bottom:2rem;padding:2rem;position:relative;overflow:hidden}.results-header:before{content:"";pointer-events:none;background:radial-gradient(circle at 20% 80%,#ffffff1a 0%,#0000 50%),radial-gradient(circle at 80% 20%,#ffffff1a 0%,#0000 50%);position:absolute;inset:0}.results-title{margin-bottom:.5rem;font-size:1.5rem;font-weight:700}.results-url{opacity:.9;word-break:break-all;margin-bottom:1.5rem;font-size:1.1rem}.score-display{flex-wrap:wrap;justify-content:center;align-items:center;gap:2rem;display:flex}.score-circle{width:120px;height:120px;position:relative}.score-circle svg{width:100%;height:100%;transform:rotate(-90deg)}.score-circle-bg{fill:none;stroke:#fff3;stroke-width:8px}.score-circle-fill{fill:none;stroke-width:8px;stroke-linecap:round;transition:stroke-dasharray 1s ease-in-out}.score-text{text-align:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.score-number{color:#fff;font-size:2rem;font-weight:700}.score-label{opacity:.9;margin-top:.25rem;font-size:.875rem}.score-good{stroke:#10b981}.score-average{stroke:#f59e0b}.score-poor{stroke:#ef4444}.metrics-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-bottom:2rem;display:grid}.metric-card{background:var(--surface,white);border:1px solid var(--border);border-radius:16px;transition:all .3s;overflow:hidden;box-shadow:0 1px 3px #0000001a}.metric-card:hover{transform:translateY(-2px);box-shadow:0 8px 25px -8px #00000026}.metric-header{border-bottom:1px solid var(--border);align-items:center;gap:1rem;padding:1.5rem;display:flex}.metric-icon{color:#fff;border-radius:8px;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.metric-icon.good{background:#10b981}.metric-icon.average{background:#f59e0b}.metric-icon.poor{background:#ef4444}.metric-info h3{color:var(--text);margin-bottom:.25rem;font-size:1.125rem;font-weight:600}.metric-value{font-size:1.5rem;font-weight:700}.metric-value.good{color:#10b981}.metric-value.average{color:#f59e0b}.metric-value.poor{color:#ef4444}.metric-details{padding:1.5rem}.metric-description{color:var(--text-light);margin-bottom:1rem;line-height:1.6}.metric-threshold{color:var(--text-muted);font-size:.875rem}.opportunities-section{background:var(--surface,white);border:1px solid var(--border);border-radius:16px;margin-bottom:2rem;padding:2rem;box-shadow:0 1px 3px #0000001a}.opportunities-title{color:var(--text);align-items:center;gap:.5rem;margin-bottom:1.5rem;font-size:1.5rem;font-weight:700;display:flex}.opportunity-item{border-radius:8px;align-items:flex-start;gap:1rem;margin-bottom:1rem;padding:1rem;transition:all .3s;display:flex}.opportunity-item:hover{background:var(--secondary)}.opportunity-icon{flex-shrink:0;width:24px;height:24px;margin-top:.25rem}.opportunity-icon.high{color:#ef4444}.opportunity-icon.medium{color:#f59e0b}.opportunity-icon.low{color:#10b981}.opportunity-content{flex:1}.opportunity-title{color:var(--text);margin-bottom:.5rem;font-weight:600}.opportunity-description{color:var(--text-light);margin-bottom:.5rem;font-size:.9rem;line-height:1.5}.opportunity-savings{font-size:.875rem;font-weight:600}.opportunity-savings.high{color:#ef4444}.opportunity-savings.medium{color:#f59e0b}.opportunity-savings.low{color:#10b981}.diagnostics-section{background:var(--surface,white);border:1px solid var(--border);border-radius:16px;margin-bottom:2rem;padding:2rem;box-shadow:0 1px 3px #0000001a}.diagnostics-title{color:var(--text);margin-bottom:1.5rem;font-size:1.5rem;font-weight:700}.diagnostic-item{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:1rem;transition:all .3s;display:flex}.diagnostic-item:last-child{border-bottom:none}.diagnostic-item:hover{background:var(--secondary)}.diagnostic-name{color:var(--text);font-weight:500}.diagnostic-value{text-align:right;font-weight:600}.diagnostic-value.good{color:#10b981}.diagnostic-value.average{color:#f59e0b}.diagnostic-value.poor{color:#ef4444}.screenshot-section{background:var(--surface,white);border:1px solid var(--border);border-radius:16px;margin-bottom:2rem;padding:2rem;box-shadow:0 1px 3px #0000001a}.screenshot-title{color:var(--text);margin-bottom:1.5rem;font-size:1.5rem;font-weight:700}.screenshot-container{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;display:grid}.screenshot-item{text-align:center}.screenshot-label{color:var(--text);margin-bottom:1rem;font-weight:600}.screenshot-image{border:1px solid var(--border);border-radius:8px;width:100%;max-width:300px;box-shadow:0 4px 8px #0000001a}.export-options{flex-wrap:wrap;gap:1rem;margin-top:2rem;display:flex}.export-btn{border:1px solid var(--primary);color:var(--primary);cursor:pointer;background:0 0;border-radius:8px;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-size:.9rem;font-weight:500;transition:all .3s;display:inline-flex}.export-btn:hover{background:var(--primary);color:#fff}.notification{color:#fff;z-index:1000;border-radius:12px;padding:1rem 2rem;font-weight:500;transition:transform .3s;position:fixed;top:20px;right:20px;transform:translate(400px);box-shadow:0 8px 25px -8px #0000004d}.notification.success{background:#10b981}.notification.error{background:#ef4444}.notification.warning{background:#f59e0b}.speed-explanation{background:var(--secondary);border-radius:16px;margin-top:3rem;padding:2rem}.speed-explanation h2,.speed-explanation p{margin-bottom:1rem}.speed-explanation ul{margin-bottom:1.5rem;margin-left:1.5rem}.speed-explanation li{margin-bottom:.5rem}.error-message{text-align:center;background:#ef44441a;border:1px solid #ef44444d;border-radius:12px;margin:2rem 0;padding:1.5rem}.error-title{color:#ef4444;margin-bottom:.5rem;font-weight:600}.error-text{color:var(--text)}.retry-btn{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:8px;margin-top:1rem;padding:.75rem 1.5rem;font-weight:500;transition:all .3s}.retry-btn:hover{background:var(--primary-dark)}@media (width<=768px){.url-form{flex-direction:column}.url-input{min-width:auto}.device-tabs{flex-direction:column}.score-display{flex-direction:column;gap:1rem}.metrics-grid{grid-template-columns:1fr}.export-options{flex-direction:column}.screenshot-container{grid-template-columns:1fr}}
