:root {
    --fmp-bg: #0d0d0d;
    --fmp-card-bg: #141414;
    --fmp-border: #222222;
    --fmp-primary: #b5e82f;
    --fmp-primary-hover: #9ece22;
    --fmp-text: #ffffff;
    --fmp-muted: #8e8e8e;
    --fmp-radius: 12px;
}

.fmls-wrapper {
    direction: rtl;
    max-width: 820px;
    margin: 30px auto;
    font-family: inherit;
    box-sizing: border-box;
}

.fmls-wrapper * {
    box-sizing: border-box;
}

.fmls-card {
    background: var(--fmp-card-bg);
    border: 1px solid var(--fmp-border);
    border-radius: var(--fmp-radius);
    padding: 35px 30px;
    color: var(--fmp-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.fmls-card .fmp-header h2 {
    color: var(--fmp-primary);
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 800;
}

.fmls-card .fmp-header p {
    color: var(--fmp-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

.fmls-q-block {
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.fmls-qnum {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    background: var(--fmp-primary);
    color: #000;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 8px;
}

.fmls-qtext {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #efefef;
}

.fmls-options {
    display: grid;
    gap: 8px;
}

.fmls-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 14px;
}

.fmls-opt:hover {
    border-color: var(--fmp-primary);
}

.fmls-opt input {
    accent-color: var(--fmp-primary);
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.fmls-opt:has(input:checked) {
    border-color: var(--fmp-primary);
    background: #202b18;
    box-shadow: 0 0 0 1px var(--fmp-primary);
}

.fmls-opt-check {
    margin-right: auto;
    color: var(--fmp-primary);
    opacity: 0;
    font-weight: bold;
    transition: 0.2s ease;
}

.fmls-opt:has(input:checked) .fmls-opt-check {
    opacity: 1;
}

#fmls-submit-btn,
.fmp-btn-primary {
    background: var(--fmp-primary);
    color: #000000;
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

#fmls-submit-btn:hover,
.fmp-btn-primary:hover {
    background: var(--fmp-primary-hover);
}

.fmp-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 15px;
}

.fmp-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #cfcfcf;
}

.fmp-field input {
    width: 100%;
    background: #1c1c1c;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.fmp-field input:focus {
    border-color: var(--fmp-primary);
    box-shadow: 0 0 0 2px rgba(181, 232, 47, 0.2);
}

.fmp-loader {
    text-align: center;
    padding: 30px 10px;
}

.fmp-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #2a2a2a;
    border-top-color: var(--fmp-primary);
    border-radius: 50%;
    animation: fmls-spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

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

.fmls-score-wrap {
    text-align: center;
    margin-bottom: 25px;
}

.fmls-gauge {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 15px;
}

.fmls-gauge svg {
    transform: rotate(-90deg);
}

.fmls-gauge circle {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
}

.fmls-gauge .track {
    stroke: #242424;
}

.fmls-gauge .bar {
    stroke: var(--fmp-primary);
    transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
}

.fmls-score-num {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fmls-score-num strong {
    font-size: 44px;
    color: var(--fmp-primary);
    line-height: 1;
}

.fmls-score-num span {
    font-size: 12px;
    color: var(--fmp-muted);
    margin-top: 4px;
}

.fmls-verdict {
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
}

.fmls-verdict.good {
    color: var(--fmp-primary);
}

.fmls-verdict.bad {
    color: #ffb347;
}

.fmls-user-badge h3 {
    margin: 0 0 6px;
    font-size: 20px;
    color: var(--fmp-text);
}

.fmls-badge-sub {
    margin: 0 0 20px;
    color: var(--fmp-muted);
    font-size: 13px;
}

.fmls-cats {
    display: grid;
    gap: 12px;
    margin-bottom: 25px;
}

.fmls-cat {
    background: #1c1c1c;
    border-radius: 8px;
    padding: 14px 16px;
    border-right: 3px solid var(--fmp-primary);
}

.fmls-cat-top {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.fmls-cat-top strong {
    color: #fff;
}

.fmls-cat-top b {
    color: var(--fmp-primary);
}

.fmls-catbar {
    height: 8px;
    background: #2a2a2a;
    border-radius: 99px;
    overflow: hidden;
}

.fmls-catbar i {
    display: block;
    height: 100%;
    background: var(--fmp-primary);
    border-radius: 99px;
    width: 0;
    transition: width 1s ease;
}

.fmls-catbar i.low {
    background: #ffb347;
}

.fmls-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 25px;
}

.fmls-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
}

.fmls-btn-primary {
    background: var(--fmp-primary);
    color: #000;
    border: none;
}

.fmls-btn-primary:hover {
    background: var(--fmp-primary-hover);
}

.fmls-btn-secondary {
    background: #222;
    color: #fff;
    border: 1px solid #333;
}

.fmls-btn-secondary:hover {
    background: #2a2a2a;
    border-color: #444;
}

.fmls-coach-note {
    background: #202b18;
    border: 1px solid rgba(181, 232, 47, 0.25);
    color: #d6e8a8;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    line-height: 1.9;
}

@media (max-width: 600px) {
    .fmls-card {
        padding: 22px 16px;
    }

    .fmls-actions {
        grid-template-columns: 1fr;
    }

    .fmp-header h2 {
        font-size: 19px;
    }
}