* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f3f3f3;
}

/* ─── LOADING ─────────────────────────────────────────────────────────────── */
.result-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    gap: 16px;
    color: #666;
}

.result-loading__spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top-color: #e11d2e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── ASOSIY ──────────────────────────────────────────────────────────────── */
.result {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.result__container {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.result__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result__back {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.result__back:hover { color: #e11d2e; }

.result__user {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.result__title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #555;
}

.result__score {
    font-size: 120px;
    color: #e11d2e;
    margin-bottom: 10px;
    line-height: 1;
}

.result__date {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

/* ─── KARTOCHKALAR ────────────────────────────────────────────────────────── */
.result__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.result__card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.result__card p {
    font-size: 18px;
    margin-bottom: 10px;
    color: #555;
}

.result__card span {
    font-size: 32px;
    color: #e11d2e;
    font-weight: bold;
}

/* ─── STATISTIKA ──────────────────────────────────────────────────────────── */
.result__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.result__stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.result__stat-card span {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #e11d2e;
    margin-bottom: 6px;
}

.result__stat-card p {
    font-size: 13px;
    color: #888;
}

/* ─── TARIX ───────────────────────────────────────────────────────────────── */
.result__history {
    text-align: left;
}

.result__history-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.result__history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.result__history-item {
    background: #fff;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result__history-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result__history-module {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.result__history-type {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result__history-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.result__history-score {
    font-size: 22px;
    font-weight: 700;
    color: #e11d2e;
}

.result__history-date {
    font-size: 12px;
    color: #aaa;
}

.result__empty {
    text-align: center;
    color: #999;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .result__score { font-size: 80px; }
    .result__grid { grid-template-columns: 1fr; }
    .result__stats { grid-template-columns: 1fr; }
    .result__header { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 900px) {
    .result__score { font-size: 100px; }
}
