/* ===============================
   FONT - Vazirmatn (Local)
================================ */


@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ===============================
   RESET
================================ */

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

body {
  font-family: Vazirmatn, sans-serif;
  direction: rtl;
  background: linear-gradient(180deg, #000000 0%, #0077b6 100%);
  height: 100vh;
  overflow: hidden;
    background:
    radial-gradient(circle at 20% 20%, #00ffcc22, transparent 40%),
    radial-gradient(circle at 80% 70%, #00ff8844, transparent 40%),
    linear-gradient(180deg, #000000 0%, #003f5c 100%);

}
button,
input,
select,
textarea,
a,
.modal,
.header,
.content,
.footer {
  font-family: Vazirmatn, sans-serif;
}


/* ===============================
   APP WRAPPER (Mobile Frame)
================================ */

/* نسخه جدید - fullscreen و بدون کادر */
.mobile-frame {
  width: 100%;
  height: 100%;
  padding: 5px;
  background: none; /* فقط پس‌زمینه اصلی body باشد */
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ===============================
   HEADER
================================ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;
    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(0,255,180,0.25);
    backdrop-filter: blur(10px);
    flex-direction: row-reverse;
}
.logo {
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
}

.login-btn {
  background: #0077b6;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
}

/* ===============================
   CONTENT
================================ */

.content {
  flex: 1;
  padding: 5px;
  overflow-y: auto;
  color: #fff;
}

.intro-screen {
  text-align: center;
  margin-top: 40px;
}

.intro-screen h1 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.intro-screen p {
  font-size: 14px;
  opacity: 0.8;
}

/* ===============================
   DASHBOARD
================================ */

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats {
  display: flex;
  justify-content: space-between;
}

.stat-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 10px;
  border-radius: 12px;
  flex: 1;
  text-align: center;
  margin: 0 4px;
}

.start-btn {
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #00b4d8;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* ===============================
   FOOTER
================================ */

.footer {
  height: 40px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: #ccc;
}

/* ===============================
   LOGIN MODAL
================================ */

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  width: 85%;
  background: #111;
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal input {
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-family: inherit;
}

.otp-wrapper {
  display: flex;
  justify-content: space-between;
  direction: ltr;
}

.otp-input {
  width: 45px;
  height: 45px;
  text-align: center;
  font-size: 18px;
}




/* ===========================================================
   Game Style Buttons
   =========================================================== */
button {
    background: linear-gradient(135deg, #00c853, #009624);
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: 0.25s ease;
    box-shadow: 0 4px 0 #006e20, 
                0 0 12px rgba(0, 255, 128, 0.25);
    user-select: none;
}

/* hover */
button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 0 #005819,
                0 0 16px rgba(0, 255, 128, 0.45);
}

/* active – کلیک */
button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 0 #004313,
                0 0 8px rgba(0, 255, 128, 0.3);
}

/* disabled حالت */
button:disabled {
    background: #a8a8a8 !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed;
    opacity: 0.7;
}



/* پس‌زمینه‌ی تار و تیره برای مودال */
.modal-overlay {
    position: fixed;
    inset: 0;
    /* تار کردن هرچی پشتشه */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    background: rgba(0, 0, 0, 0.35); /* لایه تیره شفاف */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999; /* بالاتر از بقیه */
}



.modal {
    background: radial-gradient(circle at top, #1b2838, #0c1117);
    border-radius: 18px;
    padding: 20px 18px;
    width: 90%;
    max-width: 360px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    color: #ecf5ff;
    text-align: center;
    border: 1px solid rgba(0, 255, 128, 0.25);
}

/* تیتر مودال */
.modal h3 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 700;
}

/* ورودی‌ها داخل مودال */
.modal input[type="tel"],
.modal .otp-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ecf5ff;
    outline: none;
}

/* placeholder روشن‌تر */
.modal input::placeholder {
    color: rgba(236, 245, 255, 0.6);
}

/* otp inputs خاص */
.modal .otp-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 12px 0;
}

.modal .otp-input {
    width: 42px;
    height: 50px;
    text-align: center;
    font-size: 20px;
}


/* overlay پایه */
.modal-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* کارت مودال */
.modal {
    background: radial-gradient(circle at top, #1b2838, #0c1117);
    border-radius: 18px;
    padding: 20px 18px;
    width: 90%;
    max-width: 360px;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    position: relative;
    color: #ecf5ff;
    text-align: center;
    border: 1px solid rgba(0, 255, 128, 0.25);

    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

/* حالت نمایش */
.modal-overlay.show {
    opacity: 1;
}

.modal.show {
    transform: scale(1);
    opacity: 1;
}

/* حالت خروج (برای انیمیشن بسته شدن) */
.modal-overlay.hide {
    opacity: 0;
}

.modal.hide {
    transform: scale(0.7);
    opacity: 0;
}


/* فقط روی دسکتاپ صفحه خطا نمایش بده */
.desktop-warning {
  position: fixed;
  inset: 0;
  background: #000000dd;
  color: white;
  font-size: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  text-align: center;
  padding: 20px;
    backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); /* برای بعضی مرورگرهای موبایل */

}


/* پیام حالت افقی موبایل */
.rotate-warning {
  position: fixed;
  inset: 0;
  background: #000000cc;
  color: #fff;
  font-size: 22px;
  display: none;
  z-index: 2001;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
    backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); /* برای بعضی مرورگرهای موبایل */

}




.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

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

  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1500;
}

.modal-overlay.show {
  opacity: 1;
}

.modal {
  width: 90%;
  max-width: 350px;
  padding: 24px;

  border-radius: 20px;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(0,255,150,0.25);

  box-shadow:
    0 0 25px rgba(0,255,150,0.15),
    0 15px 40px rgba(0,0,0,0.6);

  transform: scale(0.9);
  opacity: 0;
  transition: all 0.25s ease;
}

.modal.show {
  transform: scale(1);
  opacity: 1;
}



.otp-wrapper {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
}

.otp-input {
  width: 50px;
  height: 55px;

  text-align: center;
  font-size: 22px;
  font-weight: bold;

  border-radius: 12px;
  border: 1px solid rgba(0,255,150,0.3);

  background: rgba(255,255,255,0.05);
  color: #fff;

  transition: all 0.2s ease;
}

.otp-input:focus {
  outline: none;
  border-color: #00ff99;
  box-shadow: 0 0 15px #00ff9944;
  transform: scale(1.05);
}



.dashboard {
  padding: 20px;
}

.welcome {
  font-size: 18px;
  margin-bottom: 20px;
  color: #00ff99;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}

.stat-box {
  flex: 1;
  margin: 0 5px;
  padding: 15px;

  border-radius: 16px;
  text-align: center;

  background: rgba(0,255,150,0.08);
  border: 1px solid rgba(0,255,150,0.25);

  box-shadow: 0 0 15px rgba(0,255,150,0.1);

  font-size: 14px;
}


.start-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;

  font-size: 16px;
  font-weight: bold;

  border: none;
  cursor: pointer;

  background: linear-gradient(145deg, #00ff99, #00cc66);
  color: #003322;

  box-shadow:
    0 4px 0 #00994d,
    0 0 20px #00ff9944;

  transition: all 0.2s ease;
}

.start-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #00994d;
}





.mobile-frame {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.content {
    flex: 1;
    overflow-y: auto;
}

.footer {
    padding: 10px;
    text-align: center;
    background: rgba(255,255,255,0.08);
}




.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 5px;

    background: rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(0,255,180,0.25);
    backdrop-filter: blur(10px);
}

.header-left {
    display: flex;
    gap: 3px;
}

.header.header--compact {
    justify-content: flex-end;
    min-height: 48px;
    padding: 6px 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;

    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(0,255,150,0.25);
    box-shadow: 0 0 10px rgba(0,255,150,0.1);
}

.stat-icon {
    width: 20px;
    height: 20px;
}

.header-right {
    position: relative;
    display: flex;
    align-items: center;
}

.player-box {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,255,150,0.25);
    padding: 5px 7px;
    border-radius: 12px;
    cursor: pointer;
}

.player-menu {
    position: absolute;
    top: 40px;
    right: 0;

    width: 140px;
    display: none;

    background: rgba(0,0,0,0.85);
    border: 1px solid rgba(0,255,150,0.25);
    border-radius: 10px;
    padding: 8px;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.player-menu button {
    width: 100%;
    padding: 8px 6px;
    background: transparent;
    border: none;
    color: white;
    text-align: right;
    cursor: pointer;
    font-size: 14px;
}

.player-menu button:hover {
    background: rgba(0,255,150,0.15);
}


/* استایل کلی متن اعداد در هدر */
.stat-item span {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    font-family: Vazirmatn, sans-serif;
    text-shadow: 0 0 8px rgba(0, 255, 180, 0.4); /* درخشش نئونی ملایم */
    letter-spacing: 0.5px;
}

/* اختصاصی برای سکه (رنگ متمایز) */
#coin-points {
    color: #ffd700; /* رنگ طلایی برای سکه */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

/* اختصاصی برای امتیاز اجتماعی (رنگ آبی یا بنفش ملایم) */
#soc-points {
    color: #00d2ff;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.3);
}

/* اختصاصی برای اکو (رنگ سبز اصلی) */
#eco-points {
    color: #00ffb4;
}



/* استایل استاندارد برای تمام مرورگرها */
::placeholder {
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 0.9em;
    font-weight: 300;
}

/* بهینه‌سازی برای اینپوت‌های داخل مودال */
.modal input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease;
}

/* وقتی کاربر روی اینپوت کلیک می‌کند، پلplaceholder محو یا کمرنگ‌تر شود */
.modal input:focus::placeholder {
    opacity: 0.5;
    transform: translateX(-5px); /* افکت جابجایی کوچک */
}


.modal input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    padding: 12px 15px !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.modal input:focus {
    border-color: #00ffb4 !important;
    box-shadow: 0 0 10px rgba(0, 255, 180, 0.15);
}



#player-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    max-width: 110px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    text-shadow: 0 0 6px rgba(0, 255, 180, 0.25);
}


.player-box:hover {
    border-color: rgba(0,255,180,0.6);
    box-shadow: 0 0 12px rgba(0,255,180,0.25);
}






.player-box {
    cursor: pointer;
    transition: all 0.25s ease;
}

.player-box:hover {
    border-color: rgba(0,255,180,0.6);
    box-shadow: 0 0 10px rgba(0,255,180,0.2);
    transform: translateY(-1px);
}

.player-box:active {
    transform: scale(0.97);
}

/* ===========================================================
   MISSION MAP / PRE-GAME PAGE - 20260708
   =========================================================== */
.content {
  padding: 10px;
  scroll-behavior: smooth;
}

.landing-screen,
.mission-dashboard {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 6px 18px;
}

.hero-card,
.dashboard-hero,
.quick-action-card,
.profile-warning-card,
.mission-map-section,
.assessment-hub-section,
.badges-section,
.consent-card {
  border: 1px solid rgba(123, 255, 209, 0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
    rgba(3, 17, 23, 0.72);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px 18px;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -80px -40px auto -40px;
  height: 220px;
  background: radial-gradient(circle, rgba(0,255,180,0.28), transparent 62%);
  pointer-events: none;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: #bcffef;
  background: rgba(0, 255, 180, 0.11);
  border: 1px solid rgba(0, 255, 180, 0.26);
  font-size: 12px;
  font-weight: 700;
}

.hero-card h1,
.dashboard-hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 28px rgba(0,255,180,0.32);
}

.hero-card p,
.dashboard-hero p,
.profile-warning-card p,
.realm-card__info p {
  color: rgba(238, 255, 250, 0.78);
  line-height: 1.9;
  font-size: 13px;
}

.hero-login-btn,
.continue-game-btn,
.profile-warning-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 18px;
  font-family: inherit;
  font-weight: 900;
  border: 0;
  color: #04261c;
  background: linear-gradient(135deg, #7affcf, #00d67f);
  box-shadow:
    0 7px 0 rgba(0, 106, 64, 0.95),
    0 0 26px rgba(0, 255, 163, 0.28);
  min-height: 48px;
}

.hero-login-btn {
  margin: 8px auto 0;
  padding: 0 20px;
}

.landing-realms-preview,
.mission-map-section {
  margin-top: 14px;
  border-radius: 24px;
  padding: 14px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title-row h2 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.section-title-row span {
  color: #9fffe5;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 255, 180, 0.10);
}

.preview-realm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.preview-realm-card {
  position: relative;
  overflow: hidden;
  height: 108px;
  border-radius: 19px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.preview-realm-card img,
.realm-card__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-realm-overlay {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85);
  font-size: 14px;
  font-weight: 900;
}

.preview-realm-overlay i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.16);
}

.dashboard-hero {
  border-radius: 26px;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-hero__content {
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-hero .eyebrow {
  margin: 0 0 10px auto;
}

.dashboard-hero h1 {
  font-size: 23px;
  margin-bottom: 8px;
}

.progress-orb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.36), transparent 23%),
    conic-gradient(from 0deg, #75ffd1, #00d67f, #016b8c, #75ffd1);
  box-shadow: 0 0 34px rgba(0,255,180,0.24);
  color: #032118;
}

.progress-orb strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.progress-orb span {
  font-size: 11px;
  font-weight: 800;
}

.consent-screen {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 6px 20px;
}

.consent-card {
  border-radius: 28px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.consent-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #bcffef;
  background: rgba(0, 255, 180, 0.11);
  border: 1px solid rgba(0, 255, 180, 0.26);
  font-size: 12px;
  font-weight: 800;
}

.consent-card h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.consent-card p {
  margin: 0;
  color: rgba(238,255,250,0.82);
  line-height: 2;
  font-size: 14px;
}

.consent-points {
  display: grid;
  gap: 10px;
}

.consent-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #f4fffb;
  line-height: 1.9;
  font-size: 13px;
}

.consent-point i {
  color: #7affcf;
  margin-top: 3px;
}

.consent-actions {
  margin-top: 4px;
}

.consent-accept-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #7affcf, #00d67f);
  color: #04261c;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(0, 106, 64, 0.95), 0 0 26px rgba(0, 255, 163, 0.28);
}

.consent-accept-btn:disabled {
  opacity: 0.74;
}

.badges-section {
  display: none;
}

.hero-badges {
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-badges__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-badges__head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.hero-badges__head span {
  color: rgba(238,255,250,0.72);
  font-size: 11px;
  font-weight: 800;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  align-items: start;
}

.badge-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 0 1px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.badge-card__image-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.badge-card__image {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.badge-card__check {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7affcf;
  color: #08392b;
  font-size: 10px;
  box-shadow: 0 0 0 2px rgba(4, 30, 38, 0.95);
}

.badge-card strong {
  color: #fff;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 800;
}

.badge-card small {
  min-height: 14px;
  color: rgba(238,255,250,0.52);
  font-size: 8px;
  line-height: 1.35;
}

.badge-card--inactive {
  opacity: 0.5;
  filter: grayscale(1);
}

.badge-card--active {
  opacity: 1;
}

.badge-card--active .badge-card__image-wrap {
  box-shadow: none;
}

.profile-warning-card,
.mission-map-section,
.assessment-hub-section,
.badges-section,
.consent-card {
  border: 1px solid rgba(123, 255, 209, 0.22);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.035)),
    rgba(3, 17, 23, 0.72);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px 18px;
  text-align: center;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -80px -40px auto -40px;
  height: 220px;
  background: radial-gradient(circle, rgba(0,255,180,0.28), transparent 62%);
  pointer-events: none;
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  color: #bcffef;
  background: rgba(0, 255, 180, 0.11);
  border: 1px solid rgba(0, 255, 180, 0.26);
  font-size: 12px;
  font-weight: 700;
}

.hero-card h1,
.dashboard-hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 28px rgba(0,255,180,0.32);
}

.hero-card p,
.dashboard-hero p,
.profile-warning-card p,
.realm-card__info p {
  color: rgba(238, 255, 250, 0.78);
  line-height: 1.9;
  font-size: 13px;
}

.hero-login-btn,
.continue-game-btn,
.profile-warning-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 18px;
  font-family: inherit;
  font-weight: 900;
  border: 0;
  color: #04261c;
  background: linear-gradient(135deg, #7affcf, #00d67f);
  box-shadow:
    0 7px 0 rgba(0, 106, 64, 0.95),
    0 0 26px rgba(0, 255, 163, 0.28);
  min-height: 48px;
}

.hero-login-btn {
  margin: 8px auto 0;
  padding: 0 20px;
}

.landing-realms-preview,
.mission-map-section {
  margin-top: 14px;
  border-radius: 24px;
  padding: 14px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title-row h2 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.section-title-row span {
  color: #9fffe5;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 255, 180, 0.10);
}

.preview-realm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.preview-realm-card {
  position: relative;
  overflow: hidden;
  height: 108px;
  border-radius: 19px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.preview-realm-card img,
.realm-card__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-realm-overlay {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85);
  font-size: 14px;
  font-weight: 900;
}

.preview-realm-overlay i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.16);
}

.dashboard-hero {
  border-radius: 26px;
  padding: 16px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-hero__content {
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-hero .eyebrow {
  margin: 0 0 10px auto;
}

.dashboard-hero h1 {
  font-size: 23px;
  margin-bottom: 8px;
}

.progress-orb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.36), transparent 23%),
    conic-gradient(from 0deg, #75ffd1, #00d67f, #016b8c, #75ffd1);
  box-shadow: 0 0 34px rgba(0,255,180,0.24);
  color: #032118;
}

.progress-orb strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.progress-orb span {
  font-size: 11px;
  font-weight: 800;
}

.consent-screen {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 6px 20px;
}

.consent-card {
  border-radius: 28px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.consent-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #bcffef;
  background: rgba(0, 255, 180, 0.11);
  border: 1px solid rgba(0, 255, 180, 0.26);
  font-size: 12px;
  font-weight: 800;
}

.consent-card h1 {
  margin: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.consent-card p {
  margin: 0;
  color: rgba(238,255,250,0.82);
  line-height: 2;
  font-size: 14px;
}

.consent-points {
  display: grid;
  gap: 10px;
}

.consent-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #f4fffb;
  line-height: 1.9;
  font-size: 13px;
}

.consent-point i {
  color: #7affcf;
  margin-top: 3px;
}

.consent-actions {
  margin-top: 4px;
}

.consent-accept-btn {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #7affcf, #00d67f);
  color: #04261c;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(0, 106, 64, 0.95), 0 0 26px rgba(0, 255, 163, 0.28);
}

.consent-accept-btn:disabled {
  opacity: 0.74;
}

.badges-section {
  margin-top: 12px;
  border-radius: 24px;
  padding: 14px;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 8px;
  padding: 14px 10px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.badge-card__image-wrap {
  width: 104px;
  height: 104px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
}

.badge-card__image {
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: block;
}

.badge-card strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
}

.badge-card small {
  color: rgba(238,255,250,0.64);
  font-size: 11px;
}

.badge-card--inactive {
  opacity: 0.56;
  filter: grayscale(1);
}

.badge-card--active {
  border-color: rgba(0,255,180,0.26);
  box-shadow: 0 0 22px rgba(0,255,180,0.12);
}

.badge-card--active .badge-card__image-wrap {
  border-color: rgba(0,255,180,0.22);
  box-shadow: 0 0 24px rgba(0,255,180,0.10);
}

.profile-warning-card,
.quick-action-card {
  margin-top: 12px;
  border-radius: 22px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-warning-card {
  border-color: rgba(255, 217, 102, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 206, 84, 0.13), rgba(255,255,255,0.035)),
    rgba(3, 17, 23, 0.72);
}

.profile-warning-card strong,
.quick-action-card strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.profile-warning-card p {
  margin-top: 4px;
  font-size: 12px;
}

.profile-warning-card button {
  padding: 0 14px;
  min-width: 118px;
  font-size: 12px;
  box-shadow: 0 5px 0 rgba(0, 106, 64, 0.85), 0 0 18px rgba(0, 255, 163, 0.22);
}

.quick-action-card span {
  color: rgba(238,255,250,0.64);
  font-size: 12px;
}

.continue-game-btn {
  padding: 0 18px;
  min-width: 132px;
}

.realm-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.realm-card {
  overflow: hidden;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(3, 19, 26, 0.72);
  box-shadow: 0 15px 36px rgba(0,0,0,0.30);
}

.realm-card__head {
  width: 100%;
  height: 178px;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  display: block;
  text-align: right;
  background: #08212a;
  box-shadow: none;
  cursor: pointer;
}

.realm-card__head:hover,
.realm-card__head:active {
  transform: none;
  box-shadow: none;
}

.realm-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.18), rgba(0,0,0,0.72)),
    linear-gradient(0deg, rgba(0,0,0,0.75), transparent 55%);
}

.realm-card__info {
  position: absolute;
  inset: 14px 14px 14px 70px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.realm-card__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.realm-icon {
  width: 45px;
  height: 45px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #04261c;
  background: linear-gradient(135deg, #caffef, #42f5b0);
  box-shadow: 0 0 18px rgba(0,255,180,0.26);
  flex: 0 0 auto;
}

.realm-card h3 {
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85);
}

.realm-card small {
  color: #c8fff0;
  font-size: 11px;
  font-weight: 700;
}

.realm-card__meta {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.14);
}

.realm-card__meta i {
  transition: transform 0.25s ease;
}

.realm-card.is-expanded .realm-card__meta i {
  transform: rotate(180deg);
}

.realm-stages {
  display: grid;
  gap: 9px;
  max-height: 0;
  overflow: hidden;
  padding: 0 10px;
  transition: max-height 0.32s ease, padding 0.32s ease;
}

.realm-card.is-expanded .realm-stages {
  max-height: 460px;
  padding: 11px 10px 12px;
}

.stage-item {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 17px;
  text-align: right;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  box-shadow: none;
}

.stage-item:hover,
.stage-item:active {
  transform: none;
  box-shadow: none;
}

.stage-item__number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #082126;
  background: #bfffea;
}

.stage-item__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stage-item__body strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.45;
}

.stage-item__body small {
  color: rgba(238,255,250,0.62);
  font-size: 11px;
  line-height: 1.45;
}

.stage-item__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.88);
}

.stage-item__status em {
  font-style: normal;
  white-space: nowrap;
}

.stage-item--completed {
  border-color: rgba(78, 255, 176, 0.38);
  background: linear-gradient(90deg, rgba(0,255,150,0.14), rgba(255,255,255,0.045));
}

.stage-item--completed .stage-item__number,
.stage-item--completed .stage-item__status {
  background: linear-gradient(135deg, #8dffd8, #00d67f);
  color: #032118;
}

.stage-item--current {
  border-color: rgba(255, 223, 103, 0.62);
  background: linear-gradient(90deg, rgba(255, 206, 84, 0.16), rgba(255,255,255,0.045));
  box-shadow: 0 0 22px rgba(255, 206, 84, 0.14);
}

.stage-item--current .stage-item__number,
.stage-item--current .stage-item__status {
  background: linear-gradient(135deg, #fff0a3, #ffcf4c);
  color: #2b1d00;
}

.stage-item--locked,
.realm-card--locked {
  filter: grayscale(0.85);
  opacity: 0.58;
}

.stage-item--locked {
  cursor: not-allowed;
}

.stage-item--locked .stage-item__number,
.stage-item--locked .stage-item__status {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.55);
}

.realm-card--locked .realm-card__head {
  cursor: default;
}

.realm-card--locked .realm-card__shade {
  background: rgba(0,0,0,0.72);
}

.realm-card--completed {
  border-color: rgba(0,255,180,0.35);
}

@media (max-width: 390px) {
  .content { padding: 8px; }
  .dashboard-hero { align-items: stretch; }
  .progress-orb { width: 82px; height: 82px; }
  .progress-orb strong { font-size: 21px; }
  .realm-card__head { height: 160px; }
  .realm-card h3 { font-size: 17px; }
  .realm-card__info { left: 58px; }
  .stage-item { grid-template-columns: 40px 1fr; }
  .stage-item__status { grid-column: 2; width: max-content; }
  .badge-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  .badge-card__image-wrap { width: 50px; height: 50px; }
  .badge-card__image { width: 46px; height: 46px; }
  .badge-card strong { font-size: 9px; }
  .badge-card small { font-size: 7px; }
}

.stage-item:disabled { background: rgba(255,255,255,0.045) !important; opacity: 0.58 !important; }


/* ===========================================================
   FORCE PERSIAN UI FONT - Vazirmatn
   همه متن‌های صفحه قبل بازی با فونت وزیرمتن نمایش داده شوند.
   کلاس‌های FontAwesome جدا نگه داشته شده‌اند تا آیکن‌ها خراب نشوند.
   =========================================================== */
html,
body,
#app,
.mobile-frame,
.mobile-frame *:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not([class^="fa-"]):not([class*=" fa-"]),
.modal-overlay,
.modal-overlay *:not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid):not(.fa-regular):not(.fa-brands):not([class^="fa-"]):not([class*=" fa-"]),
.desktop-warning,
.rotate-warning {
  font-family: Vazirmatn, sans-serif !important;
}

button,
input,
select,
textarea,
option {
  font-family: Vazirmatn, sans-serif !important;
}

.fa,
.fa-solid,
.fa-regular,
.fa-brands,
.fas,
.far,
.fab,
i.fa,
i.fa-solid,
i.fa-regular,
i.fa-brands,
i.fas,
i.far,
i.fab {
  font-family: "Font Awesome 6 Free" !important;
}

.fa-brands,
.fab,
i.fa-brands,
i.fab {
  font-family: "Font Awesome 6 Brands" !important;
}

/* ===========================================================
   REALM PREVIEW OPEN FIX - 20260711
   در صفحه قبل از ورود هم کارت‌های قلمرو مثل نقشه مأموریت باز می‌شوند.
   قلمروهای قفل‌شده فقط ظاهر قفل دارند، اما برای دیدن مراحل قابل باز شدن‌اند.
   =========================================================== */
.mission-map-section--intro {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 10px 0 0;
  margin-top: 18px;
}

.realm-list--intro .realm-card--locked .realm-card__head,
.realm-card--locked .realm-card__head {
  cursor: pointer;
}

.realm-list--intro .realm-card--locked.is-expanded {
  opacity: 0.72;
}

.realm-list--intro .stage-item--current:not(:disabled) {
  cursor: pointer;
}

/* ===============================
   ASSESSMENT MODULES
================================ */

.assessment-hub-section {
  margin-top: 12px;
  border-radius: 24px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assessment-module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.assessment-module-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(4, 22, 34, 0.78);
  backdrop-filter: blur(12px);
}

.assessment-module-card--available {
  border-color: rgba(0, 255, 190, 0.42);
  background: linear-gradient(145deg, rgba(0, 78, 82, 0.74), rgba(3, 26, 39, 0.9));
}

.assessment-module-card--completed {
  border-color: rgba(103, 232, 156, 0.28);
  background: rgba(6, 56, 51, 0.58);
}

.assessment-module-card--locked {
  opacity: 0.72;
}

.assessment-module-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.assessment-module-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: rgba(0, 255, 190, 0.12);
  color: #79ffe0;
  font-size: 18px;
}

.assessment-module-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
}

.assessment-module-card--available .assessment-module-badge {
  background: rgba(0, 255, 190, 0.15);
  color: #a5ffe9;
}

.assessment-module-card--completed .assessment-module-badge {
  background: rgba(103, 232, 156, 0.14);
  color: #b8ffd0;
}

.assessment-module-card > small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
}

.assessment-module-card h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.assessment-module-card p {
  margin: 0;
  min-height: 46px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.8;
}

.assessment-module-button {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  background: #00a887;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.assessment-module-button:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.58);
  cursor: default;
}

.assessment-access-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 188, 105, 0.28);
  border-radius: 13px;
  background: rgba(109, 55, 0, 0.26);
  color: #ffe0b0;
  font-size: 12px;
}

.assessment-access-error button {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.quick-action-card--locked {
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 0.82;
}

.quick-action-card small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.continue-game-btn--locked {
  border: 0;
  cursor: default;
  opacity: 0.65;
}

.mission-map-section--locked {
  opacity: 0.74;
}

.mission-map-section--locked .stage-item:disabled {
  opacity: 0.54 !important;
}

.stage-item--access-locked {
  opacity: 0.62;
}

/* ===============================
   ONE-QUESTION ASSESSMENT VIEW
================================ */

.assessment-screen {
  width: min(100%, 720px);
  min-height: 100%;
  margin: 0 auto;
  padding: 10px 2px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.assessment-topbar {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
}

.assessment-topbar > div {
  min-width: 0;
}

.assessment-topbar small {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.assessment-topbar h1 {
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assessment-back-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
}

.assessment-counter {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 255, 190, 0.11);
  color: #a8ffea;
  font-size: 12px;
  font-weight: 800;
  direction: rtl;
}

.assessment-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.assessment-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00a887, #4ce8c4);
  transition: width 0.3s ease;
}

.assessment-question-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(2, 19, 31, 0.88);
  backdrop-filter: blur(14px);
}

.assessment-question-card.is-submitting .assessment-options {
  opacity: 0.45;
}

.assessment-question-number {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 255, 190, 0.12);
  color: #9dffe7;
  font-size: 12px;
  font-weight: 800;
}

.assessment-question-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 4.8vw, 21px);
  font-weight: 750;
  line-height: 1.9;
}

.assessment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assessment-option {
  width: 100%;
  min-height: 64px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  text-align: right;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.assessment-option:not(:disabled):active {
  transform: scale(0.985);
}

.assessment-option > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #bcfff0;
  font-weight: 900;
}

.assessment-option strong {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.75;
}

.assessment-option > i {
  color: rgba(255, 255, 255, 0.24);
}

.assessment-option.is-selected {
  border-color: rgba(0, 255, 190, 0.74);
  background: rgba(0, 168, 135, 0.2);
}

.assessment-option.is-selected > span {
  background: #00a887;
  color: #fff;
}

.assessment-option.is-selected > i {
  color: #64f4d1;
}

.assessment-option:disabled {
  /* خنثی‌کردن استایل عمومی button:disabled؛ گزینه‌های انتخاب‌نشده نباید خاکستری شوند. */
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  cursor: default;
}

.assessment-option.is-selected:disabled {
  background: rgba(0, 168, 135, 0.2) !important;
  border-color: rgba(0, 255, 190, 0.74) !important;
}

.assessment-options.is-locked {
  pointer-events: none;
}

.assessment-option.is-selecting {
  animation: assessment-option-confirm 0.34s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.assessment-question-card.is-leaving {
  pointer-events: none;
  animation: assessment-question-fade-out 0.22s ease forwards;
}

.assessment-question-card.is-entering {
  animation: assessment-question-fade-in 0.28s ease both;
}

.assessment-description {
  margin: -2px 0 0;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}

.assessment-helper {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  text-align: center;
}

.assessment-submit-state,
.assessment-submit-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.28);
  text-align: center;
}

.assessment-submit-state p,
.assessment-submit-error p {
  margin: 0;
  font-size: 13px;
}

.assessment-submit-error {
  border: 1px solid rgba(255, 117, 117, 0.25);
  color: #ffd0d0;
}

.assessment-submit-error button,
.assessment-state-card button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: #00a887;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.assessment-state-card {
  width: min(100%, 520px);
  margin: auto;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(2, 19, 31, 0.88);
  color: #fff;
  text-align: center;
}

.assessment-state-card > i {
  font-size: 32px;
  color: #ffbd7b;
}

.assessment-state-card h2,
.assessment-state-card p {
  margin: 0;
}

.assessment-state-card p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.8;
}

.assessment-success-message {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assessment-success-message p {
  margin: 0;
}

.assessment-state-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.assessment-state-card button.secondary {
  background: rgba(255, 255, 255, 0.08);
}

.assessment-success-icon {
  width: 70px;
  height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 200, 145, 0.17);
  color: #70ffd8;
  font-size: 28px;
}

.assessment-loader {
  width: 30px;
  height: 30px;
  display: inline-block;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: #54e7c4;
  border-radius: 50%;
  animation: assessment-spin 0.8s linear infinite;
}

@keyframes assessment-option-confirm {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 255, 190, 0);
  }
  45% {
    transform: scale(0.975);
    box-shadow: 0 0 0 4px rgba(0, 255, 190, 0.12);
  }
  75% {
    transform: scale(1.012);
    box-shadow: 0 0 0 7px rgba(0, 255, 190, 0.04);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 255, 190, 0);
  }
}

@keyframes assessment-question-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes assessment-question-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (min-width: 600px) {
  .assessment-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .assessment-question-card {
    padding: 25px 22px;
  }
}

/* ===========================================================
   جریان نهایی توافق‌نامه و ارزیابی پژوهشی
   =========================================================== */
.consent-text {
  max-height: min(58vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.045);
  scrollbar-width: thin;
  scrollbar-color: rgba(122,255,207,0.55) rgba(255,255,255,0.06);
}

.consent-text p + p {
  margin-top: 12px;
}

.consent-text strong {
  color: #ffffff;
}

.consent-check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(122,255,207,0.25);
  background: rgba(0,255,180,0.075);
  color: #f4fffb;
  font-size: 13px;
  line-height: 1.9;
  cursor: pointer;
}

.consent-check-row input {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  margin-top: 3px;
  accent-color: #16d991;
}

.consent-actions {
  display: grid;
  gap: 11px;
}

.consent-accept-btn,
.consent-decline-btn {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
  padding: 11px 15px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.consent-accept-btn:disabled {
  opacity: 0.42;
  box-shadow: none;
  cursor: not-allowed;
}

.consent-decline-btn {
  border: 1px solid rgba(255,165,165,0.42);
  background: rgba(120,28,36,0.34);
  color: #ffd9d9;
}

.workflow-message {
  margin-top: 14px;
  padding: 17px 16px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(4,25,33,0.84);
}

.workflow-message__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  color: #c7fff0;
  font-size: 20px;
}

.workflow-message h2 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.8;
}

.workflow-message p {
  margin: 4px 0 0;
  color: rgba(238,255,250,0.72);
  font-size: 13px;
  line-height: 1.8;
}

.workflow-message button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #7affcf, #00d67f);
  color: #04261c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.workflow-message--warning {
  border-color: rgba(255,186,105,0.32);
  background: linear-gradient(180deg, rgba(255,167,73,0.12), rgba(4,25,33,0.84));
}

.workflow-message--waiting {
  border-color: rgba(111,215,255,0.28);
  background: linear-gradient(180deg, rgba(76,190,238,0.11), rgba(4,25,33,0.84));
}

.workflow-message--success {
  border-color: rgba(122,255,207,0.32);
  background: linear-gradient(180deg, rgba(0,214,127,0.12), rgba(4,25,33,0.84));
}

.thankyou-screen {
  width: 100%;
  max-width: 560px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 18px 6px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou-card {
  width: 100%;
  padding: 30px 20px;
  border-radius: 28px;
  border: 1px solid rgba(122,255,207,0.30);
  background: linear-gradient(180deg, rgba(0,214,127,0.13), rgba(3,20,28,0.94));
  text-align: center;
  box-shadow: 0 18px 50px rgba(0,0,0,0.30);
}

.thankyou-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: rgba(122,255,207,0.14);
  color: #7affcf;
  font-size: 34px;
}

.thankyou-card h1 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
}

.thankyou-card p {
  margin: 12px 0 22px;
  color: rgba(238,255,250,0.78);
  line-height: 2;
  font-size: 14px;
}

.thankyou-card button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 17px;
  background: linear-gradient(135deg, #7affcf, #00d67f);
  color: #04261c;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

/* EcoTime badges: final compact single-row layout inside dashboard hero */
.dashboard-hero .hero-badges {
  width: 100%;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-hero .hero-badges__head {
  margin-bottom: 7px;
}

.dashboard-hero .hero-badges__head h2 {
  font-size: 14px;
}

.dashboard-hero .hero-badges__head span {
  font-size: 10px;
}

.dashboard-hero .badge-grid,
.dashboard-hero .badge-grid--hero {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 100%;
  align-items: start;
}

.dashboard-hero .badge-card {
  min-width: 0;
  width: auto;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center;
}

.dashboard-hero .badge-card__image-wrap {
  position: relative;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.dashboard-hero .badge-card__image {
  width: 42px !important;
  height: 42px !important;
  max-width: none !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
}

.dashboard-hero .badge-card__check {
  top: -2px !important;
  right: -2px !important;
  width: 15px !important;
  height: 15px !important;
  font-size: 8px !important;
  box-shadow: 0 0 0 1.5px rgba(4, 30, 38, 0.96) !important;
}

.dashboard-hero .badge-card strong {
  width: 100%;
  color: #fff;
  font-size: 8px !important;
  line-height: 1.35 !important;
  font-weight: 800;
  white-space: normal;
  overflow-wrap: anywhere;
}

.dashboard-hero .badge-card small {
  min-height: 0 !important;
  color: rgba(238, 255, 250, 0.5);
  font-size: 6.5px !important;
  line-height: 1.25 !important;
}

.dashboard-hero .badge-card--inactive {
  opacity: 0.48 !important;
  filter: grayscale(1) !important;
}

.dashboard-hero .badge-card--active {
  opacity: 1 !important;
  filter: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dashboard-hero .badge-card--active .badge-card__image-wrap {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 390px) {
  .dashboard-hero .badge-grid,
  .dashboard-hero .badge-grid--hero {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 1px !important;
  }

  .dashboard-hero .badge-card__image-wrap {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
  }

  .dashboard-hero .badge-card__image {
    width: 38px !important;
    height: 38px !important;
  }

  .dashboard-hero .badge-card strong {
    font-size: 7.5px !important;
  }

  .dashboard-hero .badge-card small {
    font-size: 6px !important;
  }
}


/* ===========================================================
   PROFILE GATE + ACCOUNT MENU LAYER FIX - 20260726
   =========================================================== */
.header {
  position: relative;
  z-index: 100;
  overflow: visible;
  flex: 0 0 auto;
}

.header-right {
  position: relative;
  z-index: 101;
}

.player-menu {
  z-index: 102;
}

.content {
  position: relative;
  z-index: 1;
}

.profile-field-label {
  display: block;
  width: 100%;
  margin: 2px 0 6px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.profile-field-label span {
  color: #ff9b9b;
}

.profile-required-note {
  width: 100%;
  margin: 4px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  text-align: right;
}
