/* ==========================================================================
   خورشید — لایهٔ ظاهری مدرن (modern.css)
   بعد از app.css لود می‌شود و فقط ظاهر را بازتعریف می‌کند: هیچ کلاس، صفحه یا رفتاری حذف نشده.
   تم تاریک با همان data-theme="dark" کار می‌کند.
   ========================================================================== */

:root {
  --primary-color: #f0a500;
  --p-strong: #d98f00;
  --p-soft: #fff4d6;
  --p-tint: #fffaf0;
  --bg-primary: #ffffff;
  --bg-secondary: #f4f3ef;
  --bg-secondary-light: #faf9f6;
  --font-color: #2b2416;
  --font-color2: #6f6552;
  --hint-color: #a49a88;
  --border-color: #ebe6da;
  --border-color2: #ddd6c6;
  --bg-gradient: linear-gradient(135deg, #ffc43d, #f0a500);
  --app-bg: #f6f5f1;
  --card: #ffffff;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(80, 60, 10, 0.06);
  --shadow-md: 0 10px 30px rgba(80, 60, 10, 0.12);
  --shadow-p: 0 8px 20px rgba(240, 165, 0, 0.32);
  --nav-h: 64px;
}

[data-theme="dark"] {
  --primary-color: #f0b429;
  --p-strong: #d99a12;
  --p-soft: rgba(240, 180, 41, 0.16);
  --p-tint: #262013;
  --bg-primary: #1c1812;
  --bg-secondary: #26211a;
  --bg-secondary-light: #2f2920;
  --font-color: #f1ebdd;
  --font-color2: #c9bea7;
  --hint-color: #8f846f;
  --border-color: #332c22;
  --border-color2: #42392c;
  --bg-gradient: linear-gradient(135deg, #b8831a, #e0a21c);
  --app-bg: #141109;
  --card: #1f1a13;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-p: 0 8px 20px rgba(240, 180, 41, 0.22);
}

/* ---------- پایه ---------- */
body {
  background-color: var(--app-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
::selection { background: var(--p-soft); }
.bg-primary { background-color: var(--card) !important; }
.text-muted { color: var(--hint-color) !important; }
.opacity-7, .opacity-8 { color: var(--font-color2); }

/* ---------- هدر صفحات ---------- */
header {
  background: var(--bg-gradient);
  box-shadow: 0 6px 18px rgba(240, 165, 0, 0.25);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  font-weight: 700;
  letter-spacing: 0.1px;
}
header .title { font-size: 1.05em; }
header .icon { opacity: .95; }
header.chatheader {
  background: var(--card);
  color: var(--font-color);
  border-radius: 0 0 18px 18px;
  box-shadow: var(--shadow-sm);
}
.topgap { height: 54px; }

/* ---------- نوار پایین (شناور) ---------- */
nav {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 480px;
  height: var(--nav-h);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
[data-theme="dark"] nav { background-color: rgba(31, 26, 19, 0.92); }
nav ul li .navli-content {
  padding: 6px 10px;
  border-radius: 16px;
  transition: background .25s ease, transform .25s ease;
  min-width: 64px;
}
nav ul li.act .navli-content { background: var(--p-soft); }
nav ul li i { font-size: 1.45em; opacity: .55; }
nav ul li.act i { font-size: 1.5em; color: var(--p-strong); }
.navli .title { font-size: 10.5px; margin-top: 4px; font-weight: 600; }
.navli.act .title { font-size: 10.5px; color: var(--p-strong); }
.navli img { height: 24px; width: 24px; }
.navli.act img { height: 26px; width: 26px; }
.navli .bdg {
  top: 4px;
  left: calc(50% - 26px);
  background: #ff4d4f;
  box-shadow: 0 0 0 2px var(--card);
  font-weight: 700;
}
/* اسلایدهای تب‌ها به اندازهٔ نوار شناور جا باز می‌کنند؛ تنظیم پایین صفحات داخل iframe است */

/* ---------- دکمه‌ها ---------- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 700;
  letter-spacing: 0;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus { box-shadow: none !important; }
.mybtn, .myBtn {
  background: var(--bg-gradient) !important;
  color: #fff !important;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-p);
}
.btn-success, .btn-success:hover, .btn-success:focus {
  background: linear-gradient(135deg, #22c37a, #0ea862) !important;
  border-color: transparent !important;
  color: #fff;
  box-shadow: 0 6px 16px rgba(14, 168, 98, 0.25);
}
.btn-info, .btn-info:hover, .btn-info:focus {
  background: linear-gradient(135deg, #2aa7d8, #1b86bd) !important;
  border-color: transparent !important;
  color: #fff;
  box-shadow: 0 6px 16px rgba(27, 134, 189, 0.22);
}
.btn-danger, .btn-danger:hover, .btn-danger:focus {
  background: linear-gradient(135deg, #ff5a5f, #e8363c) !important;
  border-color: transparent !important;
  color: #fff;
}
.btn-warning { border-color: transparent !important; }
.btn-sm { border-radius: 10px; }

/* ---------- فرم‌ها ---------- */
.form-control {
  border-radius: 14px;
  border: 1.5px solid var(--border-color2);
  background-color: var(--card);
  padding: 12px 14px;
  font-size: 0.85em;
  box-shadow: none;
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px var(--p-soft);
}
select.form-control {
  background-image: linear-gradient(45deg, transparent 50%, var(--hint-color) 50%), linear-gradient(135deg, var(--hint-color) 50%, transparent 50%);
  background-position: calc(14px) calc(50% + 1px), calc(14px + 5px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-left: 30px;
}
.myInput .title {
  background-color: var(--card);
  color: var(--font-color2);
  border-radius: 8px;
  font-weight: 600;
  top: -10px;
}
.custom-control-input:checked ~ .custom-control-label::before { background-color: var(--primary-color); border-color: var(--primary-color); }

/* ---------- تب‌ها ---------- */
.tabList {
  gap: 6px;
  padding: 6px;
  border-bottom: 0;
  background-color: var(--card);
  box-shadow: var(--shadow-sm);
}
.tabList li {
  flex: 1;
  text-align: center;
  border-radius: 12px;
  padding: 9px 10px;
  font-weight: 600;
  border-bottom: 0;
  color: var(--font-color2);
}
.tabList li.act {
  border-bottom: 0;
  background: var(--p-soft);
  color: var(--p-strong);
}

/* ---------- کارت‌های لیست کاربران (خانه، جستجو، چت‌ها، علاقه‌مندی‌ها، بلاک‌ها) ---------- */
.profileRow {
  background-color: var(--card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin: 8px 10px;
  padding: 10px 8px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
  align-items: center;
}
.profileRow:active { transform: scale(0.99); }
.profileRow .name { font-weight: 700; font-size: 1em; }
.profileRow .picbox {
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.profileRow .picbox .pic { border-width: 2px; }
.profileRow.online .picbox { border-color: #22c37a; }
.profileRow .city {
  background-color: var(--bg-secondary);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  color: var(--font-color2);
}
.profileRow .city i { color: var(--p-strong); }
.listloader, .listloader2, #searchloader, #msglist { padding-bottom: 86px; }

/* سرتیتر بخش‌های خانه */
.t-biggest i.blue, .t-biggest i.red { font-size: 1.1em; }
span.radius10.px-3.py-1.t-smaller {
  border: 0 !important;
  background: var(--p-soft);
  color: var(--p-strong);
  font-weight: 700;
  border-radius: 999px !important;
  padding: 5px 14px !important;
}

/* راهنمای رنگ‌ها زیر هدر جستجو */
body > .d-flex.posision-fixed {
  background-color: var(--card) !important;
  color: var(--font-color2) !important;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  top: 58px !important;
  left: 10px !important;
  width: calc(100% - 20px) !important;
  padding: 6px 16px !important;
  font-weight: 600;
}
body > .d-flex.posision-fixed .help-color { top: 2px; }
#searchloader { padding-top: 50px !important; }
#searchbox {
  top: 0;                      /* چسبیده به بالای صفحه، روی هدر */
  padding-top: 18px;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow-md);
  border-bottom: 0;
  z-index: 1032;
}
#searchbox::before { display: none; }

/* پیام‌های خالی و هشدار */
.alert {
  border: 0;
  border-radius: 14px;
  font-weight: 600;
}
.alert-danger { background: #fff1f1; color: #c0392b; }
.alert-success { background: #ecfbf3; color: #117a4b; }
.alert-info { background: #eaf6fb; color: #1b6e92; }
[data-theme="dark"] .alert-danger { background: rgba(232, 54, 60, 0.15); color: #ff8a8e; }
[data-theme="dark"] .alert-success { background: rgba(14, 168, 98, 0.15); color: #5fd79b; }
[data-theme="dark"] .alert-info { background: rgba(27, 134, 189, 0.15); color: #74c3ea; }
.text-muted.text-center i[class*="icofont-5x"] { color: var(--border-color2); }

/* ---------- ورود / ثبت‌نام / فراموشی ---------- */
/* صفحات ورود/ثبت‌نام/فراموشی: پس‌زمینهٔ سفید (لوگوی JPG زمینهٔ سفید دارد و با رنگ کرم نمی‌خواند) */
#vp { background: var(--card); }
#vp .loginbox { box-shadow: none; border-color: var(--border-color); background: var(--bg-secondary-light); }
#vp > .text-center img.img-fluid { max-width: 150px; }
.loginbox, .frgbox {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 26px 6px 10px;
  box-shadow: var(--shadow-md);
  margin: 0 4px;
}
.loginbox .btn-success, .loginbox .btn-info { border-radius: 14px; padding: 11px 8px; }
.loginbox .row.mbot20 { margin-bottom: 8px !important; }
.loginbox .btngrp > .btn { border-radius: 12px; }
#pinpage .loginbox { background: transparent; border: 0; box-shadow: none; }

/* ---------- حساب کاربری ---------- */
.myProf .picbox { box-shadow: var(--shadow-md); }
.main > .row:first-child { padding: 6px 4px 12px; }
.main .slink.col-6, .main .slink.col-4 { transition: background .2s ease; }
.main .slink.col-6:active, .main .slink.col-4:active { background: var(--bg-secondary); }
.main > .mt-2 {
  margin: 6px 10px 0 !important;
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.stbtn {
  background-color: var(--card);
  padding: 11px 14px;
  gap: 14px;
  min-height: 56px;
}
.stbtn:last-child { border-bottom: 0; }
.stbtn:active { background-color: var(--bg-secondary); }
.stbtn i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg-secondary);
  font-size: 19px;
}
.stbtn span { font-size: 13px; font-weight: 600; opacity: 1; color: var(--font-color); }
.stbtn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--hint-color);
  border-bottom: 2px solid var(--hint-color);
  transform: rotate(45deg);
  opacity: .6;
  margin-left: 4px;
  flex-shrink: 0;
}
.stbtn .bdg { position: static; margin-left: 4px; }
.hint .dtl { color: var(--hint-color); }

/* سربرگ: ویرایش / مشاهدهٔ پروفایل کنار نام (به‌جای دو ردیف جدا در فهرست) */
.profActs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.profAct {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-p);
  transition: transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.profAct.is-ghost { background: var(--card); color: var(--font-color); border: 1px solid var(--border-color); box-shadow: none; }
.profAct i { font-size: 14px; }
.profAct:active { transform: scale(.96); }

/* جایزهٔ نظر در مارکت (فقط نسخه‌های فروشگاهی) */
.setPromo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 10px 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ff8fb1, #e8578a);
  color: #fff;
  box-shadow: 0 8px 20px rgba(232, 87, 138, 0.28);
  cursor: pointer;
}
.setPromo i { display: grid; flex-shrink: 0; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.22); font-size: 20px; }
.setPromo b { display: block; font-size: 13.5px; }
.setPromo small { display: block; margin-top: 2px; font-size: 11px; opacity: .92; }

/* میان‌برهای پرکاربرد: کاشی‌های سه‌ستونه با بج */
.setTiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 10px 0; }
.setTile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  padding: 12px 4px 10px;
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.setTile:active { transform: scale(.96); background: var(--bg-secondary); }
.setTile i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--bg-secondary); font-size: 20px; }
.setTile b { font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--font-color); }
.setTile .bdg {
  position: absolute;
  top: 8px;
  left: 8px;
  display: none;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger, #e8363c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--card);
}
.setTile .bdg.act { display: block; }

/* گروه‌های تنظیمات */
.setGroupTitle { margin: 18px 20px 0; font-size: 12px; font-weight: 800; color: var(--hint-color); }

/* پایین صفحه: قوانین و درباره، خروج، نسخه */
.setFoot { padding-top: 18px !important; }
.setLinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.setLinks span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--card);
  color: var(--font-color2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.setLinks i { font-size: 14px; color: var(--hint-color); }
.setLogout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 20px);
  margin: 14px auto 12px;
  padding: 12px;
  border: 1px solid rgba(232, 54, 60, 0.35);
  border-radius: 14px;
  background: rgba(232, 54, 60, 0.06);
  color: #d93339;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.setLogout i { font-size: 17px; }
.setLogout:active { background: rgba(232, 54, 60, 0.12); }
[data-theme="dark"] .setLogout { background: rgba(232, 54, 60, 0.12); color: #ff8a8e; }

/* ---------- پروفایل ---------- */
#profpage { background-color: var(--app-bg); }
#profpage .shade { border-radius: 24px 24px 0 0; backdrop-filter: blur(6px); }
#profpage .bg-primary { border-radius: 0 0 22px 22px !important; box-shadow: var(--shadow-sm); }
#profpage .sendMSG { border-radius: 16px !important; padding: 14px !important; font-size: 1em; }
#profpage .btn.stretch { font-weight: 700; }
.box {
  background-color: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--font-color2);
  box-shadow: var(--shadow-sm);
}
.box .title { color: var(--font-color); font-weight: 700; }
.box .title i { color: var(--p-strong); }
.biobg .iconBox .icon { background-color: rgba(255, 255, 255, 0.55); border-color: rgba(255, 255, 255, 0.6); }
[data-theme="dark"] .biobg .iconBox .icon { background-color: rgba(0, 0, 0, 0.35); }
[data-theme="dark"] .biobg .iconBox .icon span { color: #fff; }

/* ---------- چت ---------- */
#msgloader {
  background:
    radial-gradient(500px 300px at 100% 0%, var(--p-soft) 0%, transparent 70%),
    var(--app-bg);
  color: var(--font-color);
  padding: 72px 0 110px;
}
#msgloader .send .text, #msgloader .get .text {
  padding: 12px 16px;
  border-radius: 18px;
  min-width: 30%;
  box-shadow: var(--shadow-sm);
  line-height: 1.6;
}
#msgloader .send .text {
  background: var(--bg-gradient);
  color: #fff;
  border-bottom-right-radius: 6px;
}
#msgloader .get .text {
  background-color: var(--card);
  color: var(--font-color);
  border-bottom-left-radius: 6px;
}
#msgloader .get .pic, #msgloader .send .pic { border-width: 2px; border-color: var(--card); box-shadow: var(--shadow-sm); }
#msgloader .time { font-size: 0.85em; color: var(--hint-color); }
#msgloader > div.selected .text { outline: 2px solid var(--primary-color); }
#msginputbox {
  background: transparent;
  padding: 8px 10px 12px;
}
#msginputbox .inputbox {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
#msginputbox .inputbox input { background: transparent; }
#msginputbox .sendbtn {
  background: var(--bg-gradient);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-p);
}
#msginputbox .sendbtn i { color: #fff; font-size: 20px; }
#msginputbox .cam {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
#chatSettingsBox, .chatheader .editpanel {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
}
#premsgbtn { box-shadow: var(--shadow-md); }
.chatheader .name { font-weight: 700; }

/* لیست چت‌ها: نشان نخوانده */
#msglist .badge-danger {
  background: #ff4d4f;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
}

/* ---------- پلن‌ها ---------- */
.panel {
  background-color: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.panel-heading {
  background: var(--bg-gradient);
  padding: 10px;
  font-weight: 800;
  font-size: 1.05em;
  border-radius: 20px 20px 0 0;
}
.panel-body { padding: 14px 14px 10px; }
.panel .text-info { color: var(--font-color2) !important; }
.panel .t-biggest.blue, .panel .blue { color: var(--p-strong) !important; }
.panel .t-biggest .t-bigger { font-size: 1.5em; font-weight: 900; }
.panel .btn-success { border-radius: 14px; padding: 12px; }

/* ---------- مودال، توست، لودینگ ---------- */
.modal-content {
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  background-color: var(--card);
  color: var(--font-color);
}
.modal-footer { border-top: 1px solid var(--border-color); }
.modal-footer .btn { border-radius: 12px; padding: 8px 18px; }
.loading {
  background: var(--card);
  box-shadow: var(--shadow-md);
}
#loader .wait { color: var(--primary-color); }

/* ---------- فونت و اندازه‌ها ---------- */
.t-small { font-size: 0.92em; }
.name, .vname, .chname { font-weight: 700; }

/* دکمه‌های کم‌رنگ پروفایل (رنگ متن داخل خود دکمه است؛ پس‌زمینه سفید می‌ماند) */
#profpage .row .btn.stretch:not(.sendMSG) {
  background: var(--card) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] #profpage .row .btn.stretch:not(.sendMSG) { background: var(--bg-secondary-light) !important; }

/* ---------- اشتراک‌ها: کارت با سوئیچ ۱ ماهه / ۳ ماهه ---------- */
.planPage { padding-bottom: 40px; }
.planCard {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-sm);
}
.planHead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.planHead b { font-size: 1.2em; font-weight: 800; }
.planIcon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg-secondary);
  font-size: 22px;
}
.planPerks { list-style: none; padding: 0; margin: 0 0 14px; }
.planPerks li { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; color: var(--font-color2); line-height: 1.6; }
.planPerks li i {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  font-size: 14px;
}
.planToggle {
  position: relative;
  display: flex;
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 4px;
  margin: 18px 0 14px;
}
.planToggle .planOpt {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  padding: 11px 8px;
  border-radius: 11px;
  color: var(--font-color2);
  transition: background .2s ease, color .2s ease;
}
.planToggle .planOpt.act { background: var(--bg-gradient); color: #fff; box-shadow: var(--shadow-p); }
.planToggle .planBadge {
  position: absolute;
  top: -12px;
  left: 14px;
  background: #7b4de6;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(123, 77, 230, 0.35);
}
.planPrice { text-align: center; margin-bottom: 14px; }
.planPer { display: flex; align-items: baseline; justify-content: center; gap: 6px; flex-wrap: wrap; }
.planPer small { color: var(--hint-color); font-size: 0.8em; }
.planPer b { font-size: 2em; font-weight: 900; color: var(--font-color); line-height: 1.3; }
.planPer span { color: var(--font-color2); font-size: 0.95em; }
.planSave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: #ecfbf3;
  color: #117a4b;
  font-weight: 700;
  font-size: 0.85em;
  padding: 5px 12px;
  border-radius: 999px;
}
[data-theme="dark"] .planSave { background: rgba(14, 168, 98, 0.15); color: #5fd79b; }
.planTotal { margin-top: 8px; color: var(--font-color2); font-size: 0.9em; }
.planTotal small { display: block; color: var(--hint-color); font-size: 0.8em; margin-top: 2px; }
.planBuy { border-radius: 14px !important; padding: 13px !important; font-size: 1em !important; }
.planAddon {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.planAddonInfo { flex: 1; min-width: 0; }
.planAddonInfo b { display: block; font-weight: 800; }
.planAddonInfo small { color: var(--font-color2); }
.planAddonDesc { color: var(--hint-color); font-size: 0.8em; margin-top: 2px; line-height: 1.5; }
.planAddonBuy {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--font-color);
  font-size: 18px;
  padding: 0;
  display: grid;
  place-items: center;
}

/* آواتار لیست‌ها: روی صفحه‌های بزرگ (تبلت/دسکتاپ) با vw بزرگ نشود */
.profileRow .picbox {
  width: clamp(52px, 17vw, 72px);
  height: clamp(52px, 17vw, 72px);
}
/* آیکن icofont حرف «چپ‌به‌راست» حساب می‌شود؛ وقتی متن با عدد شروع شود («۵ ساعت پیش») آیکن بین عدد و متن می‌افتاد.
   flex آیکن و متن را دو جزء جدا می‌کند تا ترتیب همیشه «آیکن، متن» بماند. */
.proviewTs { display: flex; align-items: center; gap: 4px; }
.proviewTs i { color: var(--p-strong); }
.listmore i { color: var(--primary-color); font-size: 20px; }

/* بازدیدهای جدید: ردیف برجسته + برچسب «جدید» + بج تعداد */
.profileRow.isnew { border-color: rgba(240, 165, 0, 0.55); background: var(--p-tint); }
.newtag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.proviewbadg {
  display: none;
  margin-right: 6px;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}
.proviewbadg.act { display: inline-block; }
.navli .homebadg { left: calc(50% - 24px); }

/* بازدیدها برای کاربر غیر VIP: ردیف مات و بدون کلیک (شناسه/نام در DOM نیست)، قفل روی آواتار، نوار «خرید VIP» */
.profileRow.locked { cursor: default; }
.profileRow.locked .picbox { overflow: hidden; }
.profileRow.locked .pic,
.profileRow.locked .name,
.profileRow.locked .opacity-7:not(.proviewTs),
.profileRow.locked .city span {
  filter: blur(5px);
  -webkit-filter: blur(5px);
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.profileRow.locked .pic { transform: scale(1.15); }
.lockBadge {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.vipLockBar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 6px 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--p-soft);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.vipLockBar > i { color: var(--p-strong); font-size: 24px; }
.vipLockBar .txt { flex: 1; min-width: 0; font-size: 12px; line-height: 1.7; color: var(--font-color); }
.vipLockBar button {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--bg-gradient);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

/* چت: نوار ورودی هم‌عرض محتوا (حداکثر ۵۰۰px) و دکمهٔ «پیام رایگان» بالای دوربین */
#msginputbox { left: 50%; transform: translateX(-50%); max-width: 500px; }
#premsgbtn {
  left: max(12px, calc(50% - 238px));
  bottom: 74px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
  color: var(--p-strong);
}
#premsghelp {
  left: max(46px, calc(50% - 204px));
  bottom: 82px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

/* جستجو: پس‌زمینهٔ تیره پشت فیلتر باز؛ کلیک روی آن فیلتر را می‌بندد */
#searchBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(24, 16, 4, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1030;
}

/* ---------- سوابق خرید ---------- */
.histSummary {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.histSummary > div {
  flex: 1;
  background: var(--p-soft);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
}
.histSummary b { display: block; font-size: 1.25em; font-weight: 900; color: var(--p-strong); }
.histSummary span { font-size: 0.8em; color: var(--font-color2); }
.histCard {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.histIcon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg-secondary);
  font-size: 22px;
}
.histMeta { flex: 1; min-width: 0; }
.histMeta b { display: block; font-weight: 800; margin-bottom: 4px; }
.histMeta small { display: flex; align-items: center; gap: 4px; color: var(--font-color2); font-size: 0.8em; line-height: 1.7; }
.histMeta small i { color: var(--p-strong); margin-left: 2px; }
.histPrice { text-align: left; flex-shrink: 0; direction: rtl; }
.histPrice b { display: block; font-size: 1.1em; font-weight: 900; }
.histPrice span { font-size: 0.75em; color: var(--font-color2); }
.histPrice s { display: block; font-size: 0.75em; color: var(--hint-color); }
.histPrice em {
  display: inline-block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.7em;
  font-weight: 700;
  color: #117a4b;
  background: #ecfbf3;
  border-radius: 999px;
  padding: 1px 8px;
}
[data-theme="dark"] .histPrice em { background: rgba(14, 168, 98, 0.15); color: #5fd79b; }

/* ---------- تنظیمات حساب ---------- */
.setCard {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 4px 6px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.setCard .setRow {
  margin: 0 !important;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}
.setCard .setRow:last-child, .setCard #settingsRows .setRow:last-child { border-bottom: 0; }
.setCard .setRow .t-small { font-weight: 600; }
.setCard .setRow .icofont-duotone:not(.toggle) {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--bg-secondary);
  font-size: 18px !important;
  color: var(--p-strong);
}
.setCard .setRow > .col-6:last-child {
  text-align: left;
  color: var(--font-color2);
  font-weight: 600;
  direction: ltr;
}
.setCard .setRow > .col-6:last-child:lang(fa) { direction: rtl; }
.setCard .toggle { font-size: 34px !important; color: var(--hint-color); transition: color .2s ease; }
.setCard .toggle.icofont-toggle-on { color: var(--p-strong); }
.setPage .alert-danger { font-size: 0.85em; }
#delacc {
  background: transparent !important;
  color: #e53935 !important;
  border: 1.5px solid rgba(229, 57, 53, 0.45) !important;
  box-shadow: none;
  border-radius: 14px !important;
}
#delacc:active { background: rgba(229, 57, 53, 0.08) !important; }

/* ---------- قفل امنیتی (پین) ---------- */
#pinpage {
  background:
    radial-gradient(520px 360px at 50% 0%, var(--p-soft) 0%, transparent 70%),
    var(--app-bg);
}
#pinpage .loginbox { max-width: 360px; margin: 0 auto; padding: 26px 10px 18px; }
#pinpage .pinTitle { font-size: 1.15em; font-weight: 800; margin-bottom: 4px; direction: rtl; }
#pinpage .pinHint { color: var(--font-color2); direction: rtl; }
#pinpage .pinDigits { display: flex; justify-content: center; gap: 8px; }
#pinpage .loginbox .logindigit {
  width: 46px;
  height: 54px !important;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 800;
  border: 1.5px solid var(--border-color2);
  background: var(--bg-secondary-light);
}
#pinpage .loginbox .logindigit:focus { border-color: var(--primary-color); box-shadow: 0 0 0 4px var(--p-soft); background: var(--card); }
#pinpage .pinDigits.shake { animation: pinShake .45s ease; }
@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
#pinpage .pinForgot { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
#pinpage .pinLogout {
  background: transparent;
  color: var(--p-strong);
  border: 1.5px solid rgba(240, 165, 0, 0.4);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
}
#pinpage .pinLogout:active { background: var(--p-soft); }

/* ---------- صفحات متنی: شرایط و قوانین، درباره ---------- */
.docPage { padding: 14px 12px 40px; font-size: 13.5px; line-height: 1.9; color: var(--font-color); }
.docIntro {
  background: var(--p-soft);
  border: 1px solid rgba(240, 165, 0, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  color: var(--font-color);
}
.docIntroTitle { font-size: 1.1em; font-weight: 800; margin-bottom: 6px; }
.docSection {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.docSection p { margin: 0 0 10px; text-align: justify; }
.docSection p:last-child { margin-bottom: 0; }
.docH {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05em;
  font-weight: 800;
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
}
.docH i {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--p-soft);
  color: var(--p-strong);
  font-size: 16px;
}
.docList { list-style: none; margin: 0; padding: 0; }
.docList li {
  position: relative;
  padding-right: 20px;
  margin-bottom: 7px;
  color: var(--font-color2);
  text-align: justify;
}
.docList li:last-child { margin-bottom: 0; }
.docList li::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-color);
}
.aboutHero { text-align: center; padding: 10px 0 18px; }
.aboutLogo { width: 84px; height: 84px; object-fit: contain; margin-bottom: 8px; filter: drop-shadow(0 8px 16px rgba(240, 165, 0, 0.35)); }
.aboutTitle { font-size: 1.4em; font-weight: 900; }
.aboutTagline { color: var(--font-color2); margin-top: 4px; }
.aboutClosing { text-align: center; font-weight: 600; }
.aboutVersion { text-align: center; margin-top: 16px; }

/* دیالوگ تأیید باید روی صفحهٔ قفل (z-index 9999) هم دیده شود. پس‌زمینهٔ تیره برای همهٔ مودال‌ها مشترک است، پس
   همهٔ مودال‌ها باید بالای آن بنشینند؛ قبلاً فقط #modal_dialog بالا رفته بود و بقیه (مثل پیشنهاد کد تخفیف) زیر
   پس‌زمینه می‌ماندند و هیچ کلیکی (فعلاً نه / خرید) به دکمه‌هایشان نمی‌رسید. */
.modal { z-index: 10001; }
#modal_dialog { z-index: 10001; }
.modal-backdrop { z-index: 10000; }

/* آیکن‌های duotone داخل کاشی‌ها: icofont نیمهٔ اول را absolute در (0,0) می‌گذارد و نیمهٔ دوم را در جریان عادی؛
   وقتی <i> را کاشیِ بزرگ‌تر از گلیف کرده‌ایم دو نیمه از هم جدا می‌افتند. هر دو نیمه را وسط کاشی می‌نشانیم. */
.stbtn i.icofont-duotone,
.setTile i.icofont-duotone,
.setCard .setRow .icofont-duotone:not(.toggle),
.planIcon .icofont-duotone,
.planPerks li .icofont-duotone,
.histIcon .icofont-duotone,
.docH .icofont-duotone,
.sessIcon.icofont-duotone,
#msginputbox .cam.icofont-duotone,
#msginputbox .sendbtn .icofont-duotone,
.planAddonBuy .icofont-duotone {
  position: relative;
  line-height: 1;
}
#msginputbox .sendbtn .icofont-duotone { display: block; width: 100%; height: 100%; }
.stbtn i.icofont-duotone:before, .stbtn i.icofont-duotone:after,
.setTile i.icofont-duotone:before, .setTile i.icofont-duotone:after,
.setCard .setRow .icofont-duotone:not(.toggle):before, .setCard .setRow .icofont-duotone:not(.toggle):after,
.planIcon .icofont-duotone:before, .planIcon .icofont-duotone:after,
.planPerks li .icofont-duotone:before, .planPerks li .icofont-duotone:after,
.histIcon .icofont-duotone:before, .histIcon .icofont-duotone:after,
.docH .icofont-duotone:before, .docH .icofont-duotone:after,
.sessIcon.icofont-duotone:before, .sessIcon.icofont-duotone:after,
#msginputbox .cam.icofont-duotone:before, #msginputbox .cam.icofont-duotone:after,
#msginputbox .sendbtn .icofont-duotone:before, #msginputbox .sendbtn .icofont-duotone:after,
.planAddonBuy .icofont-duotone:before, .planAddonBuy .icofont-duotone:after {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  line-height: 1;
}

/* فیلدهای عددی (پین، کد تأیید، موبایل، سن و …) بدون دکمه‌های افزایش/کاهش */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* صفحهٔ مستقل قوانین (از صفحهٔ ورود) */
.termsPage { max-width: 560px; margin: 0 auto; }
.termsPage header.msgheader { width: 100%; max-width: 560px; left: 50%; right: auto; transform: translateX(-50%); }
.termsPage .docPage { padding-bottom: 16px; }
.termsBack { padding: 0 12px 30px; }

/* in-app toast (notif() in app.js): app.css points its default avatar at css/img/, which does not exist */
.notification .notif .pic { background-image: url(../img/noimg01-t.jpg); background-color: #f3ead8; }

/* حساب کاربری: ردیف‌های گروه‌ها کمی فشرده‌تر؛ پایین صفحه بدون قاب کارت (کلاس mt-2 قاب .main > .mt-2 را می‌گرفت) */
.setGroup .stbtn { min-height: 50px; padding: 8px 14px; }
.setGroup .stbtn i { width: 34px; height: 34px; border-radius: 11px; font-size: 17px; }
.main > .setFoot.mt-2 { background: transparent; border: 0; box-shadow: none; overflow: visible; }

/* ---------- راهنمای خورشید (plugin/settings/help.html) ---------- */
.helpPage { padding: 6px 12px 110px; }
.helpHero {
  position: relative;
  margin: 4px 0 14px;
  padding: 22px 16px 16px;
  border-radius: 22px;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: radial-gradient(260px 160px at 100% 0%, rgba(255, 255, 255, 0.3), transparent 60%), var(--bg-gradient);
  box-shadow: var(--shadow-p);
}
.helpHeroSun { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 18px; background: rgba(255, 255, 255, 0.22); font-size: 28px; animation: tourFloat 4s ease-in-out infinite; }
.helpHero h1 { margin: 0; color: #fff; font-size: 18px; font-weight: 800; }
.helpHero p { margin: 4px 0 14px; font-size: 12.5px; opacity: .92; }
.helpSearch {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  margin: 0;
  padding-inline: 14px 6px;
  border-radius: 14px;
  background: var(--card);
  color: var(--font-color);
  box-shadow: 0 6px 18px rgba(120, 70, 0, 0.18);
  cursor: text;
}
.helpSearch > i { color: var(--hint-color); font-size: 17px; }
.helpSearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--font-color); font: inherit; font-size: 13.5px; }
.helpSearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.helpClear { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--bg-secondary); color: var(--font-color2); }
.helpClear[hidden] { display: none; }

.helpTiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.helpTile {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  color: var(--font-color);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.helpTile:active { transform: scale(.97); }
.helpTile i { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; font-size: 19px; }
.helpTile b { overflow: hidden; font-size: 12.5px; font-weight: 800; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.helpTile small { overflow: hidden; color: var(--hint-color); font-size: 10.5px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.helpTile.tone-gold i, .helpSec.tone-gold h2 i { background: rgba(240, 165, 0, 0.14); color: #d98f00; }
.helpTile.tone-green i, .helpSec.tone-green h2 i { background: rgba(22, 163, 104, 0.12); color: #16a368; }
.helpTile.tone-blue i, .helpSec.tone-blue h2 i { background: rgba(43, 124, 201, 0.12); color: #2b7cc9; }
.helpTile.tone-purple i, .helpSec.tone-purple h2 i { background: rgba(123, 82, 217, 0.12); color: #7b52d9; }
.helpTile.tone-red i, .helpSec.tone-red h2 i { background: rgba(217, 51, 57, 0.11); color: #d93339; }
.helpSec.tone-pink h2 i { background: rgba(224, 68, 126, 0.12); color: #e0447e; }

.helpSec { margin-top: 20px; scroll-margin-top: 72px; }
.helpSec h2 { display: flex; align-items: center; gap: 8px; margin: 0 4px 8px; color: var(--font-color); font-size: 13.5px; font-weight: 800; }
.helpSec h2 i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-size: 15px; }
.helpQs { overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.helpQ + .helpQ { border-top: 1px solid var(--border-color); }
.helpQ summary { display: flex; align-items: center; gap: 10px; padding: 13px 14px; color: var(--font-color); font-size: 13px; font-weight: 700; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.helpQ summary::-webkit-details-marker { display: none; }
.helpQ summary span { flex: 1; line-height: 1.7; }
.helpChev { flex-shrink: 0; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--hint-color); border-bottom: 2px solid var(--hint-color); transform: rotate(45deg); transition: transform .2s ease, margin .2s ease; }
.helpQ[open] summary { color: var(--p-strong); }
.helpQ[open] .helpChev { margin-top: 4px; transform: rotate(-135deg); }
.helpA { padding: 0 14px 14px; animation: helpIn .2s ease; }
.helpA p { margin: 0; color: var(--font-color2); font-size: 12.5px; line-height: 2; }
.helpA b { color: var(--font-color); }
.helpAct { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--p-soft); color: var(--p-strong); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.helpQ mark { padding: 0; background: linear-gradient(transparent 55%, rgba(255, 196, 61, 0.55) 55%); color: inherit; }
.helpEmpty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 10px 10px; color: var(--font-color2); font-size: 12.5px; text-align: center; }
.helpEmpty[hidden] { display: none; }
.helpEmpty i { color: var(--hint-color); font-size: 40px; }
.helpEmpty b { color: var(--font-color); font-size: 14px; }

.helpCards { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.helpCard { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.helpCard > i { display: grid; flex-shrink: 0; place-items: center; width: 42px; height: 42px; border-radius: 14px; font-size: 20px; }
.helpCard div { flex: 1; }
.helpCard b { display: block; font-size: 13px; }
.helpCard small { display: block; margin-top: 2px; font-size: 11px; opacity: .85; }
.helpCardGo { padding: 6px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.helpTourCard { background: linear-gradient(135deg, #8c9ad8, #5d6db8); color: #fff; box-shadow: 0 8px 20px rgba(93, 109, 184, 0.3); }
.helpTourCard > i, .helpTourCard .helpCardGo { background: rgba(255, 255, 255, 0.22); }
.helpSupportCard { border: 1px solid var(--border-color); background: var(--card); color: var(--font-color); box-shadow: var(--shadow-sm); }
.helpSupportCard > i { background: rgba(22, 163, 104, 0.12); color: #16a368; }
.helpSupportCard .helpCardGo { background: var(--bg-gradient); color: #fff; }
@keyframes helpIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- تور معرفی (main.html #tour) ---------- */
.tour {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  flex-direction: column;
  direction: rtl;
  background: radial-gradient(520px 320px at 50% 0%, var(--p-soft), transparent 70%), var(--app-bg);
  animation: tourIn .3s ease;
}
.tour[hidden] { display: none; }
.tour.is-out { animation: tourOut .25s ease forwards; }
.tourSkip { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 14px; z-index: 2; padding: 6px 14px; border: 0; border-radius: 999px; background: var(--bg-secondary); color: var(--font-color2); font: inherit; font-size: 12.5px; font-weight: 700; }
.tourTrack { display: flex; flex: 1; overflow-x: auto; overscroll-behavior: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tourTrack::-webkit-scrollbar { display: none; }
.tourSlide { display: flex; flex: 0 0 100%; flex-direction: column; align-items: center; justify-content: center; padding: 40px 28px 10px; scroll-snap-align: start; text-align: center; }
.tourArt { position: relative; display: grid; place-items: center; width: 200px; height: 200px; margin-bottom: 30px; }
.tourArt i { position: relative; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 40px; color: #fff; font-size: 58px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); animation: tourFloat 4s ease-in-out infinite; }
.tourOrb { position: absolute; border-radius: 50%; opacity: .2; }
.tourOrb.o1 { inset: 0; }
.tourOrb.o2 { top: -4px; right: 8px; width: 64px; height: 64px; opacity: .35; animation: tourFloat 5s ease-in-out infinite reverse; }
.tourArt.tone-gold i, .tourArt.tone-gold .tourOrb { background: linear-gradient(135deg, #ffc43d, #f0a500); }
.tourArt.tone-green i, .tourArt.tone-green .tourOrb { background: linear-gradient(135deg, #3ccf8e, #16a368); }
.tourArt.tone-blue i, .tourArt.tone-blue .tourOrb { background: linear-gradient(135deg, #5aa9f0, #2b7cc9); }
.tourArt.tone-purple i, .tourArt.tone-purple .tourOrb { background: linear-gradient(135deg, #a07ef0, #7b52d9); }
.tourSlide h2 { margin: 0 0 10px; color: var(--font-color); font-size: 21px; font-weight: 900; }
.tourSlide p { max-width: 320px; margin: 0; color: var(--font-color2); font-size: 14px; line-height: 2.05; }
.tourDots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 18px; }
.tourDots i { width: 7px; height: 7px; border-radius: 999px; background: var(--border-color2); transition: width .25s ease, background-color .25s ease; }
.tourDots i.on { width: 22px; background: var(--primary-color); }
.tourNav { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 480px; margin: 0 auto; padding: 0 20px calc(22px + env(safe-area-inset-bottom)); }
.tourHelp { padding: 13px 12px; border: 0; background: none; color: var(--font-color2); font: inherit; font-size: 13px; font-weight: 700; }
.tourNext { flex: 1; padding: 14px; border: 0; border-radius: 16px; background: var(--bg-gradient); color: #fff; font: inherit; font-size: 15px; font-weight: 800; box-shadow: var(--shadow-p); transition: transform .15s ease; }
.tourNext:active { transform: scale(.98); }
@keyframes tourIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes tourOut { to { opacity: 0; } }
@keyframes tourFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .tour, .tourArt i, .tourOrb, .helpHeroSun, .helpA { animation: none !important; }
}
.helpHint { display: flex; align-items: center; gap: 10px; margin: 12px 10px 0; padding: 11px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--p-tint); color: var(--font-color2); font-size: 12.5px; cursor: pointer; }
.helpHint > i:first-child { color: var(--p-strong); font-size: 20px; }
.helpHint span { flex: 1; }
.helpHint b { color: var(--p-strong); }
.helpHint > i:last-child { color: var(--hint-color); }

/* ---------- راهنمای گفتگو (plugin/msg/chat.html → showChatHelp) ---------- */
.chHelp { position: fixed; inset: 0; z-index: 10030; display: flex; flex-direction: column; justify-content: flex-end; direction: rtl; }
.chHelpScrim { position: absolute; inset: 0; background: rgba(20, 14, 4, 0.45); animation: chHelpFade .2s ease; }
.chHelpSheet {
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--card);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  animation: chHelpUp .28s cubic-bezier(.2, .8, .2, 1);
}
.chHelp.is-out .chHelpSheet { animation: chHelpDown .22s ease forwards; }
.chHelp.is-out .chHelpScrim { animation: chHelpFade .22s ease reverse forwards; }
.chHelpGrab { display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: var(--border-color2); }
.chHelpHead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.chHelpIcon { display: grid; flex-shrink: 0; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--bg-gradient); color: #fff; font-size: 22px; box-shadow: var(--shadow-p); }
.chHelpHead b { display: block; color: var(--font-color); font-size: 16px; font-weight: 900; }
.chHelpHead small { display: block; color: var(--hint-color); font-size: 12px; }
.chHelpList { margin: 0; padding: 0; list-style: none; }
.chHelpList li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border-color); }
.chHelpList li > i { display: grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-size: 18px; }
.chHelpList li > div { flex: 1; min-width: 0; }
.chHelpList b { display: block; color: var(--font-color); font-size: 13px; font-weight: 800; line-height: 1.6; }
.chHelpList span { display: block; color: var(--font-color2); font-size: 12px; line-height: 1.95; }
.chHelpList span b { display: inline; font-size: 12px; }
.chHelpList em { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 2px; border-radius: 7px; background: var(--bg-secondary); color: var(--p-strong); font-size: 13px; font-style: normal; vertical-align: middle; }
.chHelpList .tone-gold { background: rgba(240, 165, 0, 0.14); color: #d98f00; }
.chHelpList .tone-purple { background: rgba(123, 82, 217, 0.12); color: #7b52d9; }
.chHelpList .tone-blue { background: rgba(43, 124, 201, 0.12); color: #2b7cc9; }
.chHelpList .tone-green { background: rgba(22, 163, 104, 0.12); color: #16a368; }
.chHelpList .tone-red { background: rgba(217, 51, 57, 0.11); color: #d93339; }
.chHelpTicks { display: flex !important; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.chHelpTicks > span { display: inline-flex !important; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--bg-secondary); color: var(--font-color2); font-size: 11.5px; }
.chHelpTicks em { width: auto; min-width: 18px; height: 18px; margin: 0; padding: 0 3px; background: var(--primary-color); color: #fff; font-size: 11px; direction: ltr; }
.chHelpTicks em.is-spin::before { display: inline-block; animation: chHelpSpin 1.4s linear infinite; }
.chTick i { display: inline-block; }
.chTick.is-read i + i { margin-left: -4px; }
.chHelpActions { display: flex; gap: 8px; padding-top: 14px; }
.chHelpOk { flex: 1; padding: 13px; border: 0; border-radius: 14px; background: var(--bg-gradient); color: #fff; font: inherit; font-size: 14px; font-weight: 800; box-shadow: var(--shadow-p); }
.chHelpMore { padding: 13px 16px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--card); color: var(--font-color2); font: inherit; font-size: 13px; font-weight: 700; }
@keyframes chHelpUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes chHelpDown { to { transform: translateY(100%); } }
@keyframes chHelpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes chHelpSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .chHelpSheet, .chHelpScrim, .chHelpTicks em.is-spin::before { animation: none !important; }
}

/* ---------- نصب روی آیفون: بنر بالای نوار پایین و برگهٔ راهنما (main.html → showIosInstall؛ قالب برگه همان .chHelp*) ---------- */
.iosBanner {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom));
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(460px, calc(100% - 20px));
  padding: 8px 8px 8px 8px;
  padding-inline-start: 10px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
  direction: rtl;
  animation: iosBannerIn .35s cubic-bezier(.2, .8, .2, 1);
}
.iosBanner[hidden] { display: none; }
.iosBanner img { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.iosBanner span { flex: 1; min-width: 0; color: var(--font-color); font-size: 12.5px; font-weight: 700; line-height: 1.6; }
.iosBannerGo { flex-shrink: 0; padding: 8px 14px; border: 0; border-radius: 12px; background: var(--bg-gradient); color: #fff; font: inherit; font-size: 12.5px; font-weight: 800; box-shadow: var(--shadow-p); }
.iosBannerX { display: grid; flex-shrink: 0; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 10px; background: var(--bg-secondary); color: var(--hint-color); font-size: 14px; }
@keyframes iosBannerIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.iosAppIcon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 13px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14); }
.iosSteps { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: none; }
.iosSteps li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-color); }
.iosNum { display: grid; flex-shrink: 0; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--p-soft); color: var(--p-strong); font-size: 14px; font-weight: 900; }
.iosSteps b { display: block; color: var(--font-color); font-size: 13.5px; font-weight: 800; line-height: 1.9; }
.iosSteps li span:not(.iosNum) { display: block; color: var(--font-color2); font-size: 12px; line-height: 1.9; }
.iosKey { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin: 0 2px; padding: 0 5px; border-radius: 8px; background: var(--bg-secondary); color: #007aff; font-size: 12px; font-style: normal; font-weight: 900; vertical-align: middle; }
.iosNote { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--p-tint); color: var(--font-color2); font-size: 12px; line-height: 1.9; }
.iosNote i { margin-top: 3px; color: var(--p-strong); font-size: 15px; }
.iosNote.is-warn { background: var(--bg-secondary); }
@media (prefers-reduced-motion: reduce) { .iosBanner { animation: none; } }

/* ---------- ۲۵ مهر ۱۴۰۵: گالری خانم‌ها (settings.html)، نوار عکس‌ها در پروفایل، نشان هویت، کیف پول، هدیهٔ پیام ---------- */
.myGallery .galStrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.myGallery .galStrip::-webkit-scrollbar { display: none; }
.galItem { position: relative; flex: 0 0 auto; width: 76px; height: 76px; border-radius: 14px; border: 1px solid var(--border-color); background: var(--bg-secondary) center/cover no-repeat; cursor: pointer; }
.galItem.is-pending { opacity: .72; }
.galTag { position: absolute; right: 4px; bottom: 4px; left: 4px; padding: 2px 4px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 9.5px; line-height: 1.6; text-align: center; }
.galTag.is-main { background: var(--primary-color, #f0a500); }
.galAdd { display: grid; place-items: center; align-content: center; gap: 2px; border: 1px dashed var(--p-strong, #d98f00); background: var(--p-tint, #fffaf0); color: var(--p-strong, #d98f00); font-size: 11px; }
.galAdd i { font-size: 20px; }

.stbtn .idvState, .stbtn .walletState { margin-right: auto; color: #16a368; font-size: 11px; font-weight: 700; }
.stbtn .walletState { color: var(--p-strong, #d98f00); }
.profGallery { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.profGallery::-webkit-scrollbar { display: none; }
.profThumb { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 12px; border: 2px solid rgba(255, 255, 255, 0.7); background: rgba(255, 255, 255, 0.3) center/cover no-repeat; cursor: pointer; }
.giftBar { position: fixed; left: 50%; bottom: 74px; z-index: 5; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--bg-gradient); color: #fff; font-size: 12px; font-weight: 700; box-shadow: var(--shadow-p); white-space: nowrap; direction: rtl; }
.giftBar i { margin-left: 4px; }
.planWallet { display: flex; gap: 10px; align-items: flex-start; margin: 0 2px 12px; padding: 12px 14px; border: 1px solid var(--p-soft, #fff4d6); border-radius: 16px; background: var(--p-tint, #fffaf0); color: var(--font-color2); font-size: 12px; line-height: 1.9; }
.planWallet i { margin-top: 2px; color: var(--p-strong, #d98f00); font-size: 22px; }
.planWallet b { display: block; color: var(--font-color); font-size: 13.5px; }
.planWallet span { display: block; }
