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

:root {
    --bg: #0d0b0a;
    --bg-2: #15110e;
    --card: #1b1612;
    --card-2: #211b16;

    --cream: #f4ead8;
    --cream-soft: #d9cbb6;

    --gold: #d6a85c;
    --gold-light: #f0c879;
    --gold-dark: #9f7437;

    --text: #f5eee3;
    --muted: #a99d8d;

    --border: rgba(214, 168, 92, 0.20);

    --shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
}

body {
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--text);

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(214, 168, 92, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(214, 168, 92, 0.08),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #0b0908,
            #15110e 50%,
            #0d0b0a
        );

    overflow-x: hidden;
}

.background-shape {
    position: fixed;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    z-index: -1;
}

.shape-1 {
    background: #d6a85c;
    top: -180px;
    left: -150px;
}

.shape-2 {
    background: #8f642d;
    bottom: -180px;
    right: -150px;
}

.container {
    width: min(1100px, 92%);
    margin: auto;
    padding: 55px 0;
}

.hero {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 38px;
}

.logo {
    width: 72px;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;
    border-radius: 20px;

    background: linear-gradient(
        145deg,
        #e5bc70,
        #9b6d30
    );

    box-shadow:
        0 12px 35px rgba(214, 168, 92, 0.22);

    border: 1px solid rgba(240, 200, 121, 0.35);
}

.tag {
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 7px;
}

.hero h1 {
    font-size: 44px;
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--cream);
}

.hero h1 span {
    color: var(--gold-light);
}

.subtitle {
    color: var(--muted);
    margin-top: 11px;
    font-size: 15px;
}

.card {
    background:
        linear-gradient(
            145deg,
            rgba(32, 26, 21, 0.98),
            rgba(20, 16, 13, 0.98)
        );

    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 36px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 26px;
    margin-bottom: 30px;

    border-bottom:
        1px solid rgba(214, 168, 92, 0.15);
}

.card-heading h2 {
    color: var(--cream);
    font-size: 22px;
}

.card-heading p {
    color: var(--muted);
    margin-top: 6px;
    font-size: 14px;
}

.step {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    color: #17120d;
    font-size: 13px;
    font-weight: 900;

    background:
        linear-gradient(
            145deg,
            var(--gold-light),
            var(--gold)
        );

    box-shadow:
        0 8px 20px rgba(214, 168, 92, 0.18);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 11px;

    margin: 30px 0 18px;

    color: var(--cream);
    font-size: 15px;
    font-weight: 800;
}

.section-title span {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;
    color: var(--gold-light);

    background:
        rgba(214, 168, 92, 0.10);

    border:
        1px solid rgba(214, 168, 92, 0.18);

    font-size: 11px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    color: #d8cbb9;
    font-size: 13px;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    height: 51px;

    padding: 0 15px;

    border-radius: 13px;
    border: 1px solid rgba(214, 168, 92, 0.16);

    outline: none;

    background: #120f0d;
    color: var(--cream);

    font-size: 14px;

    transition:
        border 0.25s,
        box-shadow 0.25s,
        background 0.25s;
}

.field input::placeholder {
    color: #71685d;
}

.field input:hover,
.field select:hover {
    border-color: rgba(214, 168, 92, 0.35);
}

.field input:focus,
.field select:focus {
    border-color: var(--gold);

    background: #17120e;

    box-shadow:
        0 0 0 4px
        rgba(214, 168, 92, 0.08);
}

.field select {
    cursor: pointer;
}

.input-unit {
    position: relative;
}

.input-unit input {
    padding-right: 55px;
}

.input-unit span {
    position: absolute;
    right: 16px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
}

#predictBtn {
    width: 100%;
    height: 59px;

    margin-top: 36px;

    border: none;
    border-radius: 15px;

    cursor: pointer;

    color: #17120d;

    font-size: 15px;
    font-weight: 900;

    background:
        linear-gradient(
            135deg,
            #f0c879,
            #c8954b
        );

    box-shadow:
        0 12px 30px
        rgba(214, 168, 92, 0.18);

    transition:
        transform 0.25s,
        box-shadow 0.25s,
        filter 0.25s;
}

#predictBtn:hover {
    transform: translateY(-2px);

    filter: brightness(1.06);

    box-shadow:
        0 17px 40px
        rgba(214, 168, 92, 0.28);
}

#predictBtn:active {
    transform: translateY(0);
}

#predictBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.loader {
    display: inline-block;

    width: 20px;
    height: 20px;

    border:
        3px solid rgba(23, 18, 13, 0.25);

    border-top-color:
        #17120d;

    border-radius: 50%;

    animation:
        spin 0.8s linear infinite;
}

.hidden {
    display: none !important;
}

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

.result {
    margin-top: 30px;
    padding: 30px;

    border-radius: 23px;

    background:
        linear-gradient(
            145deg,
            #211a14,
            #15110e
        );

    border:
        1px solid
        rgba(214, 168, 92, 0.22);

    box-shadow:
        0 15px 45px
        rgba(0, 0, 0, 0.35);

    animation:
        resultIn 0.5s ease;
}

@keyframes resultIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        rgba(214, 168, 92, 0.10);

    border:
        1px solid
        rgba(214, 168, 92, 0.20);

    font-size: 25px;
}

.result-header p {
    color: var(--gold-light);
    font-size: 10px;
    letter-spacing: 1.7px;
    font-weight: 900;
}

.result-header h2 {
    color: var(--cream);
    font-size: 20px;
    margin-top: 3px;
}

.score-container {
    display: flex;
    align-items: center;
    gap: 42px;
    margin-top: 30px;
}

.score-circle {
    width: 180px;
    height: 180px;
    position: relative;
    flex-shrink: 0;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circle-bg,
.circle-progress {
    fill: none;
    stroke-width: 9;
}

.circle-bg {
    stroke:
        rgba(214, 168, 92, 0.12);
}

.circle-progress {
    stroke:
        var(--gold);

    stroke-linecap: round;

    stroke-dasharray:
        326.7;

    stroke-dashoffset:
        326.7;

    transition:
        stroke-dashoffset 1.2s ease;
}

.score-number {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.score-number strong {
    color: var(--cream);
    font-size: 42px;
    line-height: 1;
}

.score-number small {
    color: var(--gold);
    margin-top: 5px;
    font-weight: 700;
}

.score-info h3 {
    color: var(--gold-light);
    font-size: 24px;
    margin-bottom: 10px;
}

.score-info p {
    color: var(--muted);
    line-height: 1.7;
    max-width: 500px;
}

.again-btn {
    margin-top: 30px;
    padding: 13px 20px;

    border-radius: 11px;

    border:
        1px solid
        rgba(214, 168, 92, 0.22);

    background:
        rgba(214, 168, 92, 0.06);

    color: var(--gold-light);

    font-weight: 800;
    cursor: pointer;

    transition: 0.25s;
}

.again-btn:hover {
    background:
        rgba(214, 168, 92, 0.13);

    border-color:
        rgba(214, 168, 92, 0.4);
}

footer {
    text-align: center;
    padding: 28px 0;

    color: #756d63;

    font-size: 12px;
    line-height: 1.8;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0c0a09;
}

::-webkit-scrollbar-thumb {
    background: #5f4829;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

@media (max-width: 700px) {
    .container {
        padding: 30px 0;
    }

    .hero {
        align-items: flex-start;
    }

    .logo {
        width: 56px;
        height: 56px;
        font-size: 27px;
        border-radius: 16px;
    }

    .hero h1 {
        font-size: 33px;
    }

    .subtitle {
        font-size: 13px;
    }

    .card {
        padding: 22px;
        border-radius: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .score-container {
        flex-direction: column;
        text-align: center;
    }

    .score-info p {
        margin: auto;
    }
}