:root {
    --bg-primary: #000000;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}
.container { max-width: 700px; margin: 0 auto; padding: 60px 20px; }
header { display: flex; justify-content: center; margin-bottom: 60px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 44px; height: 44px; opacity: 0.9; }
.logo h1 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.5px; }
main { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.gauge-container { position: relative; width: 280px; height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge { width: 100%; position: absolute; top: 0; }
.gauge-value { position: absolute; top: 65px; text-align: center; }
.gauge-value span:first-child { font-size: 4rem; font-weight: 700; display: block; line-height: 1; letter-spacing: -2px; }
.gauge-value .unit { font-size: 1.1rem; color: var(--text-secondary); font-weight: 400; }
.gauge-label { position: absolute; bottom: 10px; font-size: 0.95rem; color: var(--text-secondary); }
.start-btn {
    display: flex; align-items: center; gap: 10px; padding: 16px 44px;
    font-size: 1.1rem; font-weight: 500; font-family: inherit;
    color: #000; background: #fff; border: none; border-radius: 50px;
    cursor: pointer; transition: var(--transition);
}
.start-btn:hover { transform: scale(1.03); box-shadow: 0 0 30px rgba(255,255,255,0.15); }
.start-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-icon svg { width: 20px; height: 20px; }
.start-btn.testing .btn-icon svg { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: 100%; max-width: 500px; }
@media (max-width: 500px) { .results-grid { grid-template-columns: 1fr; } }
.result-card {
    display: flex; align-items: center; gap: 14px; padding: 20px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--border-radius); transition: var(--transition);
}
.result-card:hover { border-color: rgba(255,255,255,0.15); }
.result-card.active { border-color: rgba(255,255,255,0.3); }
.result-icon {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: rgba(255,255,255,0.05);
}
.result-icon svg { width: 24px; height: 24px; color: var(--text-secondary); }
.result-info { display: flex; flex-direction: column; gap: 2px; }
.result-label { font-size: 0.85rem; color: var(--text-secondary); }
.result-value { font-size: 1.4rem; font-weight: 600; }
.result-value small { font-size: 0.75rem; font-weight: 400; color: var(--text-secondary); }
.info-panel {
    width: 100%; max-width: 500px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 20px;
}
.info-row { display: flex; justify-content: space-between; align-items: center; }
.info-label { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.9rem; }
.info-icon { width: 18px; height: 18px; }
.info-value { font-weight: 500; font-family: 'SF Mono', monospace; direction: ltr; }
.progress-container { width: 100%; max-width: 500px; display: none; flex-direction: column; gap: 8px; }
.progress-container.visible { display: flex; }
.progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 100px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: #fff; border-radius: 100px; transition: width 0.3s ease; }
.progress-text { text-align: center; font-size: 0.85rem; color: var(--text-secondary); }
@media (max-width: 600px) {
    .container { padding: 40px 16px; }
    .gauge-container { width: 240px; height: 160px; }
    .gauge-value span:first-child { font-size: 3.2rem; }
    .start-btn { padding: 14px 36px; font-size: 1rem; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.result-card { animation: fadeIn 0.4s ease backwards; }
.result-card:nth-child(1) { animation-delay: 0.05s; }
.result-card:nth-child(2) { animation-delay: 0.1s; }
.result-card:nth-child(3) { animation-delay: 0.15s; }
.result-card:nth-child(4) { animation-delay: 0.2s; }
