:root {
    --primary-blue: #3b82f6;
    --primary-green: #10b981;
    --primary-gold: #f4c76b;
    --text-primary: #ffffff;
    --text-secondary: #a8b0bf;
    --text-muted: #6f7785;
    --bg-primary: #090b12;
    --bg-panel: rgba(18, 21, 32, 0.72);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-glow: rgba(244, 199, 107, 0.24);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    background:
        radial-gradient(circle at 20% 8%, rgba(59, 130, 246, 0.16), transparent 32%),
        radial-gradient(circle at 82% 16%, rgba(244, 199, 107, 0.13), transparent 30%),
        linear-gradient(180deg, #0b0d15 0%, #090b12 55%, #080910 100%);
    overflow-x: hidden;
}

body[dir="rtl"] {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(9, 11, 18, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-gold) 68%, #9ad8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links { display: flex; align-items: center; gap: 12px; }
.lang-switcher { position: relative; z-index: 1001; }
.lang-switcher select {
    min-width: 128px;
    min-height: 42px;
    appearance: none;
    -webkit-appearance: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 8px 34px 8px 14px;
    font-size: 14px;
    font-weight: 700;
    outline: none;
}

body[dir="rtl"] .lang-switcher select { padding: 8px 14px 8px 34px; }
.lang-switcher::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: translateY(-58%) rotate(45deg);
    pointer-events: none;
}
body[dir="rtl"] .lang-switcher::after { right: auto; left: 14px; }
.lang-switcher select option { background: #151925; color: var(--text-primary); }

.main-container {
    padding: 96px 18px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section {
    width: 100%;
    max-width: 560px;
    text-align: center;
    padding: 22px 0 22px;
}

.badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 18px;
    border: 1px solid rgba(244, 199, 107, 0.38);
    border-radius: 999px;
    color: var(--primary-gold);
    background: rgba(244, 199, 107, 0.07);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 38px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 0;
    text-shadow: 0 0 30px rgba(244, 199, 107, 0.16);
}

.hero-subtitle {
    display: none;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 13px;
}

.hero-subtitle span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.assessment-card {
    width: 100%;
    max-width: 480px;
    padding: 26px 24px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(21, 25, 38, 0.88), rgba(12, 15, 24, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.42), 0 0 70px var(--accent-glow);
}

.status-text {
    min-height: 22px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gauge-wrap {
    position: relative;
    width: 100%;
    max-width: 310px;
    height: 154px;
    margin: 0 auto;
}

.gauge-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.gauge-track,
.gauge-fill {
    fill: none;
    stroke-linecap: round;
    stroke-width: 16;
}

.gauge-track { stroke: rgba(255, 255, 255, 0.09); }
.gauge-fill {
    stroke: url("#gaugeGradient");
    stroke: var(--primary-gold);
    stroke-dasharray: 284;
    stroke-dashoffset: 284;
    filter: drop-shadow(0 0 12px rgba(244, 199, 107, 0.35));
    transition: stroke-dashoffset 0.8s cubic-bezier(.2, .9, .2, 1);
}

.gauge-needle {
    transform-origin: 120px 120px;
    transform: rotate(-86deg);
    transition: transform 0.9s cubic-bezier(.18, 1.32, .3, 1);
}

.gauge-needle line {
    stroke: #ffffff;
    stroke-width: 4;
    stroke-linecap: round;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25));
}

.gauge-needle circle { fill: var(--primary-gold); }

.gauge-center,
.gauge-meta {
    text-align: center;
}

.gauge-center {
    display: none;
}

.gauge-meta {
    margin: 2px 0 18px;
    min-height: 58px;
    position: relative;
    z-index: 2;
}

.gauge-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.gauge-score {
    margin-top: 4px;
    color: var(--primary-gold);
    font-size: 32px;
    font-weight: 900;
}

.loading-area { margin: 0 0 22px; }
.progress-bar-bg {
    height: 10px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-gold), var(--primary-green));
    box-shadow: 0 0 18px rgba(244, 199, 107, 0.5);
    transition: width 0.08s linear;
    position: relative;
}
.progress-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    transform: translateX(-100%);
    animation: shine 1.1s infinite;
}

@keyframes shine { to { transform: translateX(100%); } }

.result-area {
    display: none;
    text-align: center;
    animation: resultIn .56s cubic-bezier(.22, 1.28, .34, 1) both;
}

@keyframes resultIn {
    0% { transform: translateY(16px) scale(.96); opacity: 0; }
    70% { transform: translateY(-3px) scale(1.03); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.result-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.amount-display {
    font-size: 44px;
    line-height: 1;
    font-weight: 950;
    color: #ffffff;
    text-shadow: 0 0 26px rgba(244, 199, 107, 0.28);
    letter-spacing: 0;
    margin-bottom: 14px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.amount-display.bump { animation: amountBump .45s cubic-bezier(.2, 1.5, .45, 1); }
@keyframes amountBump {
    0% { transform: scale(.94); }
    58% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.timer-display {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.btn-base {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    color: #141414;
    background: linear-gradient(135deg, #ffe29a, #f2b84b);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(244, 199, 107, 0.18);
}
.btn-base:active { transform: scale(.98); }

.footer-tip {
    margin-top: 20px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.09);
    border: 1px solid rgba(16, 185, 129, 0.18);
}
.footer-tip-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07110d;
    background: var(--primary-green);
    font-weight: 900;
}
.footer-tip-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.footer-tip-text { color: rgba(255,255,255,.74); font-size: 12px; font-weight: 700; }
.footer-tip-highlight { color: #72f2b7; font-size: 14px; font-weight: 900; }

.faq-section {
    width: 100%;
    max-width: 560px;
    margin: 30px auto 0;
    padding: 0 18px 22px;
}
.faq-section-title {
    text-align: center;
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 16px;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.faq-question {
    color: #ffffff;
    font-size: 15px;
    font-weight: 850;
    margin-bottom: 8px;
}
.faq-answer {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}
.footer-section {
    padding: 26px 20px 36px;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
}

body[dir="rtl"] .hero-subtitle,
body[dir="rtl"] .footer-tip,
body[dir="rtl"] .faq-item {
    text-align: right;
}

@media (max-width: 768px) {
    .navbar { height: 68px; padding: 0 14px; }
    .logo { font-size: 18px; }
    .lang-switcher select { min-width: 116px; min-height: 40px; font-size: 13px; }
    .main-container { padding-top: 90px; }
    .hero-section { padding: 22px 0 20px; }
    .hero-title { font-size: 32px; }
    .assessment-card { padding: 20px; }
    .amount-display { font-size: 36px; }
    .gauge-wrap { height: 146px; }
    .gauge-score { font-size: 30px; }
    .loading-area { margin-bottom: 20px; }
}
