/* ==========================================================================
   BilimTest — foydalanuvchi qismi dizayni (Bootstrap 5 ustidan)
   ========================================================================== */

:root {
    --bt-primary: #4f46e5;
    --bt-primary-600: #4338ca;
    --bt-primary-soft: #eef0ff;
    --bt-violet: #7c3aed;
    --bt-success: #059669;
    --bt-success-600: #047857;
    --bt-success-soft: #e6f7f0;
    --bt-warning: #d97706;
    --bt-warning-soft: #fff4e0;
    --bt-danger: #dc2626;
    --bt-danger-soft: #fdecec;
    --bt-bg: #f5f6fb;
    --bt-surface: #ffffff;
    --bt-surface-2: #f7f8fc;
    --bt-border: #e5e8f1;
    --bt-text: #1c2033;
    --bt-muted: #6a7089;
    --bt-radius: 18px;
    --bt-radius-sm: 12px;
    --bt-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
    --bt-shadow-lg: 0 24px 60px rgba(49, 46, 129, .18);
    --bt-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);

    --bs-body-font-family: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --bs-body-color: var(--bt-text);
    --bs-body-bg: var(--bt-bg);
    --bs-link-color-rgb: 79, 70, 229;
    --bs-border-color: var(--bt-border);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bt-bg);
    -webkit-font-smoothing: antialiased;
}

.bt-main {
    flex: 1;
}

.bt-muted {
    color: var(--bt-muted);
}

::selection {
    background: #c7d2fe;
}

/* ---------- Tugmalar ---------- */
.btn {
    border-radius: var(--bt-radius-sm);
    font-weight: 700;
    padding: .65rem 1.2rem;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}

.btn-lg {
    padding: .85rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: .4rem .8rem;
    font-size: .85rem;
}

.bt-btn-primary {
    background: var(--bt-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 10px 22px rgba(79, 70, 229, .28);
}

.bt-btn-primary:hover,
.bt-btn-primary:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(79, 70, 229, .36);
}

.bt-btn-success {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    border: none;
    box-shadow: 0 10px 22px rgba(5, 150, 105, .26);
}

.bt-btn-success:hover,
.bt-btn-success:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(5, 150, 105, .34);
}

.bt-btn-outline {
    background: var(--bt-surface);
    color: var(--bt-text);
    border: 1px solid var(--bt-border);
}

.bt-btn-outline:hover {
    color: var(--bt-primary);
    border-color: var(--bt-primary);
    background: var(--bt-surface);
}

.bt-btn-soft {
    background: var(--bt-primary-soft);
    color: var(--bt-primary);
    border: none;
}

.bt-btn-soft:hover {
    background: #e0e3ff;
    color: var(--bt-primary-600);
}

.btn:active {
    transform: translateY(1px) !important;
}

/* ---------- Navigatsiya ---------- */
.bt-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 12px 0;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(229, 232, 241, .8);
}

.bt-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bt-text);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.bt-brand:hover {
    color: var(--bt-text);
}

.bt-logo {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--bt-gradient);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .32);
}

.bt-brand--sm {
    font-size: 1rem;
}

.bt-brand--sm .bt-logo {
    width: 30px;
    height: 30px;
    font-size: .95rem;
    border-radius: 9px;
}

/* ---------- Footer ---------- */
.bt-footer {
    margin-top: 48px;
    padding: 22px 0;
    border-top: 1px solid var(--bt-border);
    background: var(--bt-surface);
    color: var(--bt-muted);
    font-size: .85rem;
}

.bt-taking .bt-footer {
    padding-bottom: 100px;
}

@media (min-width: 992px) {
    .bt-taking .bt-footer {
        padding-bottom: 22px;
    }
}

/* ---------- Xabarlar ---------- */
.bt-toast {
    border: none;
    border-radius: var(--bt-radius-sm);
    font-weight: 600;
    box-shadow: var(--bt-shadow);
}

/* ---------- Hero ---------- */
.bt-hero {
    position: relative;
    padding: 72px 0 64px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(129, 140, 248, .28), transparent 40%),
        radial-gradient(circle at 88% 30%, rgba(196, 181, 253, .35), transparent 38%),
        linear-gradient(180deg, #f1f2ff 0%, var(--bt-bg) 100%);
}

.bt-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: var(--bt-surface);
    color: var(--bt-primary);
    font-weight: 700;
    font-size: .85rem;
    box-shadow: var(--bt-shadow);
}

.bt-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 18px;
}

.bt-hero-title span {
    background: var(--bt-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bt-hero-text {
    max-width: 540px;
    margin: 0 auto 28px;
    color: var(--bt-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .bt-hero-text {
        margin-left: 0;
    }
}

.bt-hero-stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .bt-hero-stats {
        justify-content: flex-start;
    }
}

.bt-hero-stats div {
    display: flex;
    flex-direction: column;
}

.bt-hero-stats b {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--bt-primary);
    line-height: 1.1;
}

.bt-hero-stats span {
    color: var(--bt-muted);
    font-size: .85rem;
    font-weight: 600;
}

/* Hero: test kartasi namunasi (bezak) */
.bt-mock {
    position: relative;
    padding: 26px;
    border-radius: 24px;
    background: var(--bt-surface);
    box-shadow: var(--bt-shadow-lg);
    transform: rotate(2deg);
}

.bt-mock-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.bt-mock-head .badge {
    background: var(--bt-primary-soft);
    color: var(--bt-primary);
    font-weight: 700;
}

.bt-mock-bar {
    flex: 1;
    height: 8px;
    border-radius: 99px;
    background: var(--bt-surface-2);
    overflow: hidden;
}

.bt-mock-bar span {
    display: block;
    width: 60%;
    height: 100%;
    border-radius: inherit;
    background: var(--bt-gradient);
}

.bt-mock-q {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.bt-mock-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    margin-bottom: 8px;
    border: 1.5px solid var(--bt-border);
    border-radius: 12px;
    font-weight: 600;
}

.bt-mock-opt span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bt-surface-2);
    color: var(--bt-muted);
    font-size: .8rem;
    font-weight: 800;
}

.bt-mock-opt.is-picked {
    border-color: var(--bt-primary);
    background: var(--bt-primary-soft);
}

.bt-mock-opt.is-picked span {
    background: var(--bt-primary);
    color: #fff;
}

.bt-mock-opt.is-picked i {
    color: var(--bt-primary);
}

.bt-mock-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -22px 0 0 -18px;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--bt-surface);
    box-shadow: var(--bt-shadow-lg);
    font-weight: 800;
    color: var(--bt-success);
    transform: rotate(-3deg);
}

/* ---------- Bo'limlar ---------- */
.bt-section {
    padding-top: 40px;
    padding-bottom: 16px;
}

.bt-section-head {
    margin-bottom: 24px;
}

.bt-section-head h2 {
    margin: 0 0 4px;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bt-section-head p {
    margin: 0;
    color: var(--bt-muted);
}

.bt-how {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    height: 100%;
    padding: 20px;
    border-radius: var(--bt-radius);
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
}

.bt-how b {
    display: block;
    margin-bottom: 2px;
}

.bt-how p {
    margin: 0;
    color: var(--bt-muted);
    font-size: .9rem;
}

.bt-how-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 13px;
    background: var(--bt-primary-soft);
    color: var(--bt-primary);
    font-size: 1.3rem;
}

/* ---------- Test kartalari ---------- */
.bt-test-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    border-radius: var(--bt-radius);
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    box-shadow: var(--bt-shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.bt-test-card:hover {
    transform: translateY(-4px);
    border-color: #c7d2fe;
    box-shadow: var(--bt-shadow-lg);
}

.bt-test-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.bt-test-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--bt-gradient);
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 10px 22px rgba(79, 70, 229, .28);
}

.bt-test-card.is-done .bt-test-icon {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 10px 22px rgba(5, 150, 105, .25);
}

.bt-test-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.bt-test-desc {
    color: var(--bt-muted);
    font-size: .92rem;
    line-height: 1.55;
}

.bt-test-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: auto 0 18px;
    padding-top: 6px;
    color: var(--bt-muted);
    font-size: .85rem;
    font-weight: 600;
}

.bt-test-meta i {
    color: var(--bt-primary);
}

.bt-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bt-primary-soft);
    color: var(--bt-primary);
    font-size: .78rem;
    font-weight: 700;
}

.bt-chip--success {
    background: var(--bt-success-soft);
    color: var(--bt-success);
}

.bt-live {
    font-size: .45rem;
    animation: bt-pulse 1.6s infinite;
}

@keyframes bt-pulse {
    50% { opacity: .3; }
}

.bt-empty {
    padding: 56px 24px;
    text-align: center;
    border-radius: var(--bt-radius);
    background: var(--bt-surface);
    border: 1px dashed #cdd2e4;
}

.bt-empty i {
    font-size: 2.6rem;
    color: var(--bt-primary);
}

.bt-empty h3 {
    margin: 12px 0 6px;
    font-size: 1.2rem;
    font-weight: 800;
}

.bt-empty p {
    margin: 0;
    color: var(--bt-muted);
}

/* ---------- Sahifa va qadamlar ---------- */
.bt-page {
    padding-top: 28px;
}

.bt-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    max-width: 520px;
    margin: 0 auto 28px;
    padding: 0;
    list-style: none;
}

.bt-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    color: var(--bt-muted);
    font-weight: 700;
    font-size: .88rem;
}

.bt-steps li:last-child {
    flex: 0 0 auto;
}

/* Qadamlar orasidagi chiziq */
.bt-steps li:not(:last-child)::after {
    content: "";
    flex: 1;
    height: 2px;
    margin: 0 10px;
    border-radius: 2px;
    background: var(--bt-border);
}

.bt-steps li.done:not(:last-child)::after {
    background: var(--bt-primary);
}

.bt-step-dot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--bt-surface);
    border: 2px solid var(--bt-border);
    font-size: .85rem;
}

.bt-steps li.current {
    color: var(--bt-text);
}

.bt-steps li.current .bt-step-dot {
    background: var(--bt-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(79, 70, 229, .14);
}

.bt-steps li.done .bt-step-dot {
    background: var(--bt-primary);
    border-color: var(--bt-primary);
    color: #fff;
}

.bt-steps li.done {
    color: var(--bt-primary);
}

/* ---------- Kartalar ---------- */
.bt-card {
    padding: 28px;
    border-radius: var(--bt-radius);
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    box-shadow: var(--bt-shadow);
}

.bt-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

/* Test haqida ma'lumot kartasi */
.bt-info-card {
    position: relative;
    height: 100%;
    padding: 28px;
    border-radius: var(--bt-radius);
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .18), transparent 40%),
        linear-gradient(150deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%);
    box-shadow: var(--bt-shadow-lg);
}

.bt-test-icon--light {
    background: rgba(255, 255, 255, .18);
    box-shadow: none;
    margin-bottom: 18px;
}

.bt-info-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bt-info-card p {
    color: rgba(255, 255, 255, .82);
}

.bt-info-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.bt-info-meta div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    text-align: center;
}

.bt-info-meta b {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.bt-info-meta span {
    font-size: .78rem;
    color: rgba(255, 255, 255, .78);
    font-weight: 600;
}

.bt-rules {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bt-rules li {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .92);
}

.bt-rules i {
    color: #c4b5fd;
}

/* Forma maydonlari (ikonka bilan) */
.form-label {
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 6px;
}

.bt-input {
    position: relative;
}

.bt-input > i {
    position: absolute;
    left: 15px;
    top: 14px;
    color: var(--bt-muted);
    font-size: 1.05rem;
    pointer-events: none;
    z-index: 2;
}

.bt-input .form-control {
    padding: .8rem 1rem .8rem 2.75rem;
    border-radius: var(--bt-radius-sm);
    border: 1.5px solid var(--bt-border);
    background: var(--bt-surface-2);
    font-weight: 600;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.bt-input .form-control:focus {
    border-color: var(--bt-primary);
    background: var(--bt-surface);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .14);
}

.bt-input .form-control.is-invalid {
    border-color: var(--bt-danger);
    background-image: none;
}

.bt-input .form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .12);
}

.invalid-feedback {
    font-weight: 600;
}

.bt-back {
    color: var(--bt-muted);
    font-weight: 600;
    text-decoration: none;
}

.bt-back:hover {
    color: var(--bt-primary);
}

/* ---------- Test topshirish ---------- */
.bt-test-head {
    margin-bottom: 18px;
}

.bt-test-head h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.bt-who {
    color: var(--bt-muted);
    font-weight: 600;
    font-size: .9rem;
}

.bt-question {
    scroll-margin-top: 90px;
    margin-bottom: 18px;
    padding: 24px;
    border-radius: var(--bt-radius);
    background: var(--bt-surface);
    border: 1.5px solid var(--bt-border);
    box-shadow: var(--bt-shadow);
    transition: border-color .2s;
}

.bt-question.is-answered {
    border-color: #c7d2fe;
}

.bt-question-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.bt-q-num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bt-primary-soft);
    color: var(--bt-primary);
    font-weight: 800;
}

.bt-question.is-answered .bt-q-num {
    background: var(--bt-gradient);
    color: #fff;
}

.bt-q-of {
    color: var(--bt-muted);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.bt-q-text {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 16px;
    /* Savoldagi kod parchalarining chekinishi (indent) saqlanishi uchun */
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.bt-options {
    display: grid;
    gap: 10px;
}

.bt-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--bt-border);
    background: var(--bt-surface);
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}

.bt-option:hover {
    border-color: #a5b4fc;
    background: #fafaff;
}

.bt-option:active {
    transform: scale(.995);
}

/* Radio tugmaning o'zi yashiriladi, lekin klaviatura bilan ishlaydi */
.bt-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bt-option-letter {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--bt-surface-2);
    border: 1px solid var(--bt-border);
    color: var(--bt-muted);
    font-weight: 800;
    transition: background .15s, color .15s;
}

.bt-option-text {
    flex: 1;
}

.bt-option-check {
    color: var(--bt-primary);
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(.5);
    transition: opacity .15s, transform .15s;
}

.bt-option:has(input:checked) {
    border-color: var(--bt-primary);
    background: var(--bt-primary-soft);
}

.bt-option:has(input:checked) .bt-option-letter {
    background: var(--bt-primary);
    border-color: var(--bt-primary);
    color: #fff;
}

.bt-option:has(input:checked) .bt-option-check {
    opacity: 1;
    transform: none;
}

.bt-option:has(input:focus-visible) {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .18);
}

/* Yon panel */
.bt-panel {
    position: sticky;
    top: 90px;
    padding: 22px;
    border-radius: var(--bt-radius);
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    box-shadow: var(--bt-shadow);
}

.bt-panel-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--bt-border);
}

.bt-panel-big {
    font-size: 1.5rem;
    font-weight: 800;
}

.bt-panel-label {
    margin-bottom: 10px;
    color: var(--bt-muted);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.bt-navigator {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.bt-nav-dot {
    display: grid;
    place-items: center;
    height: 42px;
    border-radius: 11px;
    border: 1.5px solid var(--bt-border);
    background: var(--bt-surface-2);
    color: var(--bt-muted);
    font-weight: 800;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}

.bt-nav-dot:hover {
    border-color: var(--bt-primary);
    color: var(--bt-primary);
}

.bt-nav-dot.is-answered {
    background: var(--bt-gradient);
    border-color: transparent;
    color: #fff;
}

.bt-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--bt-muted);
    font-size: .8rem;
    font-weight: 600;
}

.bt-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bt-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    border: 1.5px solid var(--bt-border);
    background: var(--bt-surface-2);
}

.bt-legend-dot.is-answered {
    border: none;
    background: var(--bt-gradient);
}

/* Mobil progress va pastki panel */
.bt-mobile-progress {
    position: sticky;
    top: 63px;
    z-index: 10;
    margin: -8px -12px 16px;
    padding: 10px 12px;
    background: rgba(245, 246, 251, .92);
    backdrop-filter: blur(10px);
}

.bt-bar {
    height: 8px;
    border-radius: 99px;
    background: #e3e6f0;
    overflow: hidden;
}

.bt-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--bt-gradient);
    transition: width .3s ease;
}

.bt-bottom-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--bt-border);
}

/* Tasdiqlash oynasi */
.bt-modal {
    border: none;
    border-radius: 22px;
    box-shadow: var(--bt-shadow-lg);
}

.bt-modal-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--bt-success-soft);
    color: var(--bt-success);
    font-size: 1.7rem;
}

/* ---------- Progress doirasi (SVG) ---------- */
.bt-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bt-ring--sm {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.bt-ring-track {
    fill: none;
    stroke: #eceef6;
    stroke-width: 12;
}

.bt-ring-value {
    fill: none;
    stroke: var(--bt-primary);
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.1s cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Natija ---------- */
.bt-result {
    padding: 32px;
}

.bt-result-top {
    text-align: center;
}

.bt-result-top h1 {
    margin: 14px 0 0;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.bt-result-ring {
    position: relative;
    width: 190px;
    height: 190px;
    margin: 26px auto 18px;
}

.bt-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bt-ring-label b {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.bt-ring-label span {
    color: var(--bt-muted);
    font-weight: 700;
    font-size: .85rem;
}

/* Foizga qarab rang */
.bt-result--high .bt-ring-value { stroke: #10b981; }
.bt-result--mid .bt-ring-value { stroke: #f59e0b; }
.bt-result--low .bt-ring-value { stroke: #ef4444; }

.bt-grade {
    margin: 0 0 4px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
}

.bt-result--high .bt-grade { color: var(--bt-success); }
.bt-result--mid .bt-grade { color: var(--bt-warning); }
.bt-result--low .bt-grade { color: var(--bt-danger); }

.bt-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 8px;
    border-radius: 16px;
    background: var(--bt-surface-2);
    border: 1px solid var(--bt-border);
    text-align: center;
}

.bt-tile i {
    font-size: 1.25rem;
    color: var(--bt-primary);
}

.bt-tile b {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.2;
}

.bt-tile span {
    color: var(--bt-muted);
    font-size: .8rem;
    font-weight: 700;
}

.bt-tile--success {
    background: var(--bt-success-soft);
    border-color: transparent;
}

.bt-tile--success i,
.bt-tile--success b {
    color: var(--bt-success);
}

.bt-tile--danger {
    background: var(--bt-danger-soft);
    border-color: transparent;
}

.bt-tile--danger i,
.bt-tile--danger b {
    color: var(--bt-danger);
}

.bt-details {
    margin: 0 0 18px;
    border-radius: 16px;
    border: 1px solid var(--bt-border);
    overflow: hidden;
}

.bt-details div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bt-border);
}

.bt-details div:last-child {
    border-bottom: none;
}

.bt-details dt {
    color: var(--bt-muted);
    font-weight: 600;
}

.bt-details dt i {
    margin-right: 4px;
}

.bt-details dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.bt-saved {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--bt-success);
    font-weight: 700;
    font-size: .9rem;
}

/* ---------- Telefonlar uchun ---------- */
@media (max-width: 575.98px) {
    .bt-hero {
        padding: 44px 0 40px;
    }

    .bt-hero-stats {
        gap: 22px;
    }

    .bt-hero-stats b {
        font-size: 1.4rem;
    }

    .bt-card,
    .bt-info-card,
    .bt-result {
        padding: 20px;
    }

    .bt-question {
        padding: 18px;
    }

    .bt-q-text {
        font-size: 1.02rem;
    }

    .bt-steps {
        margin-bottom: 20px;
    }

    .bt-step-text {
        font-size: .78rem;
    }

    .bt-steps li:not(:last-child)::after {
        margin: 0 6px;
    }

    .bt-result-ring {
        width: 160px;
        height: 160px;
    }

    .bt-ring-label b {
        font-size: 2rem;
    }

    .bt-tile b {
        font-size: 1.4rem;
    }

    .bt-details div {
        flex-direction: column;
        gap: 2px;
    }

    .bt-details dd {
        text-align: left;
    }
}
