@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

/* 
  Habcheh HealthCheck - Final CSS
  سازگار با id:
  #habcheh-healthcheck-app
*/

#habcheh-healthcheck-app {
    all: unset !important;
    box-sizing: border-box !important;

    display: flex !important;
    position: fixed !important;

    top: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;

    z-index: 99999999 !important;

    background-color: #050505 !important;
    background-image: url('../images/QBG.png') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;

    font-family: 'Vazir', Tahoma, Arial, sans-serif !important;
    direction: rtl !important;

    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
    padding: 24px !important;
        /* تغییر از 0.9 به 0.7 یا کمتر برای دیدن بهتر عکس پشت */
    background-color: rgba(5, 5, 5, 0.65) !important; 
    backdrop-filter: blur(10px) !important; /* بلور ملایم برای خوانایی متن روی عکس */
}

#habcheh-healthcheck-app *,
#habcheh-healthcheck-app *::before,
#habcheh-healthcheck-app *::after {
    box-sizing: border-box !important;
    font-family: 'Vazir', Tahoma, Arial, sans-serif !important;
}

/* لایه تیره روی پس‌زمینه */
#habcheh-healthcheck-app::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;

    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.82) 100%),
        rgba(0, 0, 0, 0.65) !important;

    z-index: 1 !important;
    pointer-events: none !important;
}

/* کانتینر اصلی محتوا */
.hc-container {
    position: relative !important;
    z-index: 10 !important;

    width: 100% !important;
    max-width: 720px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
    direction: rtl !important;
}

/* باکس شیشه‌ای */
.hc-glass-box {
    width: 100% !important;

  background: rgba(255, 255, 255, 0.04) !important; /* بسیار شفاف */
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;

    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 30px !important;

    padding: 54px 42px !important;

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;

    text-align: center !important;
    direction: rtl !important;
}

/* صفحه شروع */
.hc-intro-title {
    color: #ffffff !important;
    font-size: 36px !important;
    line-height: 1.55 !important;
    font-weight: 900 !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.hc-intro-desc {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 16px !important;
    line-height: 2 !important;
    margin: 0 0 34px 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

/* فرم شروع */
.hc-form {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.hc-field {
    all: unset !important;
    box-sizing: border-box !important;

    display: block !important;
    width: 100% !important;
    height: 56px !important;

    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 15px !important;

    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 56px !important;

    padding: 0 18px !important;
    margin: 0 !important;

    text-align: center !important;
    direction: rtl !important;

    outline: none !important;
    box-shadow: none !important;
}

.hc-field::placeholder {
    color: rgba(255, 255, 255, 0.62) !important;
}

.hc-field:focus {
    border-color: rgba(226, 178, 90, 0.9) !important;
    background: rgba(255, 255, 255, 0.11) !important;
    box-shadow: 0 0 0 4px rgba(226, 178, 90, 0.12) !important;
}

/* دکمه اصلی */
.hc-main-btn {
    all: unset !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 58px !important;

    background: #E2B25A !important;
    color: #111111 !important;

    border: none !important;
    border-radius: 15px !important;

    font-size: 18px !important;
    font-weight: 900 !important;

    cursor: pointer !important;
    text-align: center !important;

    transition: all 0.25s ease !important;
    box-shadow: 0 14px 32px rgba(226, 178, 90, 0.22) !important;
}

.hc-main-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 42px rgba(226, 178, 90, 0.34) !important;
}

.hc-main-btn:active {
    transform: translateY(0) scale(0.99) !important;
}

/* ناحیه بالای سوال */
.hc-top-area {
    width: 100% !important;
    margin-bottom: 32px !important;
}

.hc-top-bar {
    width: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    color: #E2B25A !important;
    font-size: 15px !important;
    font-weight: 700 !important;

    margin-bottom: 11px !important;
}

.hc-progress-container {
    width: 100% !important;
    height: 6px !important;

    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
}

.hc-progress-fill {
    display: block !important;
    height: 100% !important;
    width: 0;

    background: linear-gradient(90deg, #C99035, #E2B25A, #F2D08A) !important;
    border-radius: 999px !important;

    box-shadow: 0 0 16px rgba(226, 178, 90, 0.65) !important;

    transition: width 0.35s ease !important;
}

/* عنوان و متن سوال */
.hc-question-title {
    display: block !important;

    color: #E2B25A !important;
    font-size: 15px !important;
    font-weight: 800 !important;

    margin: 0 0 18px 0 !important;
    padding: 0 !important;

    text-align: center !important;
}

.hc-question-text {
    color: #ffffff !important;

    font-size: 25px !important;
    line-height: 1.85 !important;
    font-weight: 900 !important;

    margin: 0 0 30px 0 !important;
    padding: 0 !important;

    text-align: center !important;
}

.hc-question-hint {
    color: rgba(255, 255, 255, 0.66) !important;
    font-size: 14px !important;
    line-height: 1.9 !important;

    margin: -16px 0 28px 0 !important;
    padding: 0 !important;

    text-align: center !important;
}

/* گزینه‌ها */
.hc-options {
    width: 100% !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.hc-option-btn {
    all: unset !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 56px !important;

    background: rgba(255, 255, 255, 0.045) !important;
    color: #ffffff !important;

    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 14px !important;

    padding: 15px 20px !important;
    margin: 0 !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.8 !important;

    cursor: pointer !important;

    text-align: center !important;
    direction: rtl !important;

    transition: all 0.22s ease !important;
}

.hc-option-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(226, 178, 90, 0.9) !important;
    color: #ffffff !important;

    transform: translateY(-2px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25) !important;
}

.hc-option-btn:active {
    transform: translateY(0) scale(0.99) !important;
}

/* صفحه در حال ارسال */
.hc-loading,
.hc-error {
    position: relative !important;
    z-index: 10 !important;

    width: 90% !important;
    max-width: 520px !important;

    background: rgba(255, 255, 255, 0.075) !important;

    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;

    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 26px !important;

    padding: 42px 28px !important;

    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.9 !important;

    text-align: center !important;

    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65) !important;
}

.hc-error {
    color: #ffb8b8 !important;
    border-color: rgba(255, 90, 90, 0.35) !important;
}

/* نتیجه */
.hc-result-title {
    color: #ffffff !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    margin: 0 0 20px 0 !important;
}

.hc-score {
    color: #E2B25A !important;
    font-size: 46px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
}

.hc-level {
    color: #ffffff !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 1.7 !important;
    margin: 0 0 14px 0 !important;
}

.hc-leak {
    color: rgba(255, 255, 255, 0.84) !important;
    font-size: 16px !important;
    line-height: 1.9 !important;
    margin: 0 0 20px 0 !important;
}

.hc-result-message {
    color: rgba(255, 255, 255, 0.74) !important;
    font-size: 15px !important;
    line-height: 2 !important;
    margin: 0 0 28px 0 !important;
}

/* دکمه CTA */
.hc-cta {
    all: unset !important;
    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 56px !important;

    background: #E2B25A !important;
    color: #111111 !important;

    border-radius: 15px !important;

    font-size: 17px !important;
    font-weight: 900 !important;

    cursor: pointer !important;

    transition: all 0.25s ease !important;
}

.hc-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 42px rgba(226, 178, 90, 0.32) !important;
}

/* موبایل */
@media (max-width: 768px) {
    #habcheh-healthcheck-app {
        padding: 16px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hc-container {
        max-width: 100% !important;
    }

    .hc-glass-box {
        border-radius: 24px !important;
        padding: 34px 20px !important;
    }

    .hc-intro-title {
        font-size: 25px !important;
        line-height: 1.7 !important;
    }

    .hc-intro-desc {
        font-size: 14px !important;
        line-height: 2 !important;
    }

    .hc-question-text {
        font-size: 20px !important;
        line-height: 1.9 !important;
    }

    .hc-option-btn {
        min-height: 54px !important;
        font-size: 15px !important;
        line-height: 1.8 !important;
        padding: 13px 14px !important;
    }

    .hc-field,
    .hc-main-btn {
        height: 54px !important;
        font-size: 15px !important;
    }

    .hc-score {
        font-size: 36px !important;
    }
}

@media (max-width: 420px) {
    .hc-glass-box {
        padding: 28px 16px !important;
    }

    .hc-intro-title {
        font-size: 22px !important;
    }

    .hc-question-text {
        font-size: 18px !important;
    }
}



/* اصلاح نوار پیشرفت برای راست‌به‌چپ */
.hc-top-bar {
    flex-direction: row-reverse !important; /* جابجایی جای درصد و شماره سوال */
}

.hc-progress-fill {
    float: right !important; /* پر شدن از راست */
}

/* استایل‌های جدید برای صفحه نتیجه مشابه تصویر ارسالی */
.hc-result-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-top: 25px !important;
}

.hc-dashboard-box {
 background: rgba(255, 255, 255, 0.02) !important; /* شفافیت بیشتر */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 18px !important;
    padding: 20px !important;
    text-align: right !important;
}

.hc-dashboard-box:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(226, 178, 90, 0.3) !important;
}

.hc-dashboard-box h4 {
    color: #E2B25A !important;
    font-size: 15px !important;
    margin: 0 0 12px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.hc-dashboard-box ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hc-dashboard-box li {
    color: #fff !important;
    font-size: 13px !important;
    margin-bottom: 8px !important;
    position: relative !important;
    padding-right: 15px !important;
}

.hc-dashboard-box li::before {
    content: "○" !important;
    position: absolute !important;
    right: 0 !important;
    color: #E2B25A !important;
}

.hc-chart-placeholder {
    width: 100% !important;
    height: 120px !important;
    background: linear-gradient(transparent 50%, rgba(226, 178, 90, 0.1) 100%) !important;
    border-bottom: 2px solid #E2B25A !important;
    margin-top: 10px !important;
    position: relative !important;
}

/* دکمه طلایی بزرگ مشابه تصویر */
.hc-cta-gold {
  background: linear-gradient(135deg, #F2D08A 0%, #E2B25A 100%) !important;
    border: none !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    text-align: center !important;    color: #000 !important;
    font-weight: bold !important;
    padding: 18px !important;
    border-radius: 12px !important;
    margin: 25px 0 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 25px rgba(226, 178, 90, 0.3) !important;
    font-size: 18px !important;
    display: block !important;
    width: 100% !important;
    text-decoration: none !important;
}

.hc-cta-gold:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(226, 178, 90, 0.4) !important;
}

/* فارسی سازی اعداد با فونت وزیر */
#habcheh-healthcheck-app {
    font-variant-numeric: tabular-nums !important;
}
