/* ==========================================================================
   TGC Public Chat — استایل اصلی
   برای شخصی‌سازی این فایل را ویرایش نکنید؛ تغییرات را در  tgc-custom.css
   یا کادر «CSS سفارشی» در تنظیمات افزونه بنویسید (با به‌روزرسانی از بین نمی‌رود).
   ========================================================================== */

/* ---------- متغیرها (همه‌ی رنگ‌ها از اینجا ساخته می‌شود) ---------- */
.tgc-page {
  --tgc-h: 155;                 /* رنگ اصلی: ۱۵۵ زمردی · ۱۸۰ فیروزه‌ای · ۲۱۰ آبی · ۳۵ نارنجی · ۳۴۰ صورتی */
  --tgc-s: 52%;                 /* پرمایگی رنگ اصلی */
  --tgc-a: hsl(var(--tgc-h) var(--tgc-s) 38%);
  --tgc-a-soft: hsl(var(--tgc-h) var(--tgc-s) 38% / .13);
  --tgc-ink: hsl(var(--tgc-h) 28% 15%);
  --tgc-sub: hsl(var(--tgc-h) 12% 38%);
  --tgc-glass: rgb(255 255 255 / .6);
  --tgc-edge: rgb(255 255 255 / .9);
  --tgc-in: #fff;               /* حباب پیام دیگران */
  --tgc-out: hsl(var(--tgc-h) 50% 36%); /* حباب پیام خودم */
  --tgc-chip: hsl(var(--tgc-h) 25% 25% / .55);
  --tgc-who: 34%;               /* روشنایی نام فرستنده */
  --tgc-danger: hsl(4 70% 48%);
  --tgc-font: inherit;          /* مثلاً: Vazirmatn, Tahoma, sans-serif */
  --tgc-radius: 24px;
  --tgc-maxw: 880px;
  --tgc-height: clamp(540px, 82vh, 800px);
  --tgc-gap: 22px;              /* فاصله‌ی بخش‌ها */
  --tgc-hero-bg: linear-gradient(135deg, hsl(var(--tgc-h) 60% 95%), hsl(calc(var(--tgc-h) + 40) 70% 96%));
  --tgc-hero-ink: var(--tgc-ink);
  --tgc-stage-1: hsl(var(--tgc-h) 70% 90%);
  --tgc-stage-2: hsl(calc(var(--tgc-h) + 45) 60% 93%);
  --tgc-stage-3: hsl(calc(var(--tgc-h) - 28) 65% 89%);
  --tgc-stage-base: hsl(var(--tgc-h) 40% 97%);

  box-sizing: border-box;
  width: 100%;
  max-width: var(--tgc-maxw);
  margin: 0 auto;
  display: flow-root;
  direction: rtl;
  text-align: right;
  font-family: var(--tgc-font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--tgc-ink);
}
@supports (height: 1dvh) { .tgc-page { --tgc-height: clamp(540px, 82dvh, 800px); } }

.tgc-page *, .tgc-page *::before, .tgc-page *::after { box-sizing: border-box; }
.tgc-page [hidden] { display: none !important; }
.tgc-page i, .tgc-page em, .tgc-page b { font-style: normal; }
.tgc-page svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }

/* پاک‌سازی استایل‌های قالب روی دکمه/فیلد/لینک */
.tgc-page button {
  font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; margin: 0;
  min-height: 0; min-width: 0; box-shadow: none; text-transform: none; letter-spacing: normal; border-radius: 0;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; appearance: none;
}
.tgc-page a { text-decoration: none; box-shadow: none; }
.tgc-page h1, .tgc-page h2, .tgc-page h3, .tgc-page p, .tgc-page ul { margin: 0; padding: 0; }
.tgc-page ul { list-style: none; }
.tgc-page button:focus-visible, .tgc-page a:focus-visible, .tgc-page summary:focus-visible, .tgc-page textarea:focus-visible, .tgc-page input:focus-visible { outline: 2px solid var(--tgc-a); outline-offset: 2px; }

/* ---------- دکمه‌ها ---------- */
.tgc-page .tgc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 14px; font-weight: 700; font-size: 14.5px; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform .12s, filter .15s, background .15s;
}
.tgc-page .tgc-btn svg { width: 18px; height: 18px; }
.tgc-page .tgc-btn:active { transform: scale(.97); }
.tgc-page .tgc-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.tgc-page a.tgc-btn-main, .tgc-page button.tgc-btn-main { background: var(--tgc-a); color: #fff; }
.tgc-page a.tgc-btn-main:hover, .tgc-page button.tgc-btn-main:hover { color: #fff; filter: brightness(1.08); }
.tgc-page a.tgc-btn-ghost, .tgc-page button.tgc-btn-ghost { background: var(--tgc-a-soft); color: var(--tgc-a); }
.tgc-page a.tgc-btn-ghost:hover { color: var(--tgc-a); filter: brightness(.95); }

/* ==========================================================================
   بخش بالای صفحه (سئو)
   ========================================================================== */
.tgc-page .tgc-hero {
  position: relative; overflow: hidden; margin-bottom: var(--tgc-gap);
  padding: 30px 26px 26px; border-radius: var(--tgc-radius);
  background: var(--tgc-hero-bg); color: var(--tgc-hero-ink);
  border: 1px solid hsl(var(--tgc-h) 40% 85% / .7);
}
.tgc-page .tgc-hero::after {
  content: ""; position: absolute; inset-inline-start: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, hsl(var(--tgc-h) 80% 80% / .5), transparent); pointer-events: none;
}
.tgc-page .tgc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 700;
  background: rgb(255 255 255 / .75); color: var(--tgc-a); margin-bottom: 12px;
}
.tgc-page .tgc-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(150 70% 45%); display: inline-block; flex: none; }
.tgc-page .tgc-hero-title { font-size: clamp(22px, 4.4vw, 32px); line-height: 1.45; font-weight: 800; color: inherit; margin: 0 0 10px; position: relative; }
.tgc-page .tgc-lead { max-width: 70ch; font-size: 15px; line-height: 2; color: var(--tgc-sub); position: relative; }
.tgc-page .tgc-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; position: relative; }
.tgc-page .tgc-stats li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 14px; background: rgb(255 255 255 / .7); font-size: 13px; color: var(--tgc-sub); }
.tgc-page .tgc-stats li svg { width: 18px; height: 18px; color: var(--tgc-a); }
.tgc-page .tgc-stats b { color: var(--tgc-ink); font-weight: 800; }
.tgc-page .tgc-hero-cta { position: relative; }

/* ==========================================================================
   کارت چت
   ========================================================================== */
.tgc-page .tgc {
  --tgc-a-now: var(--tgc-a);
  position: relative; isolation: isolate; overflow: hidden; width: 100%; height: var(--tgc-height);
  border-radius: var(--tgc-radius); border: 1px solid var(--tgc-edge); direction: rtl; scroll-margin-top: 80px;
  color: var(--tgc-ink); box-shadow: 0 18px 50px -24px hsl(var(--tgc-h) 50% 20% / .35);
}
.tgc-page .tgc[data-theme="dark"] {
  --tgc-a: hsl(var(--tgc-h) 55% 58%);
  --tgc-a-soft: hsl(var(--tgc-h) 55% 58% / .16);
  --tgc-ink: hsl(var(--tgc-h) 15% 94%);
  --tgc-sub: hsl(var(--tgc-h) 12% 72%);
  --tgc-glass: hsl(var(--tgc-h) 20% 12% / .55);
  --tgc-edge: rgb(255 255 255 / .12);
  --tgc-in: hsl(var(--tgc-h) 18% 22%);
  --tgc-out: hsl(var(--tgc-h) 45% 32%);
  --tgc-chip: hsl(var(--tgc-h) 25% 6% / .65);
  --tgc-who: 72%;
  --tgc-stage-1: hsl(var(--tgc-h) 45% 20%);
  --tgc-stage-2: hsl(calc(var(--tgc-h) + 45) 30% 15%);
  --tgc-stage-3: hsl(calc(var(--tgc-h) - 28) 40% 17%);
  --tgc-stage-base: hsl(var(--tgc-h) 22% 10%);
}
.tgc-page .tgc-stage {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 8%, var(--tgc-stage-1), transparent 70%),
    radial-gradient(50% 45% at 92% 28%, var(--tgc-stage-2), transparent 70%),
    radial-gradient(55% 50% at 55% 105%, var(--tgc-stage-3), transparent 70%),
    var(--tgc-stage-base);
}

/* شیشه */
.tgc-page .tgc-glass { position: relative; background: var(--tgc-glass); border: 1px solid var(--tgc-edge); box-shadow: 0 4px 14px -6px hsl(var(--tgc-h) 40% 20% / .3), inset 0 1px 0 rgb(255 255 255 / .5); }
.tgc-page .tgc:not(.tgc-lite) .tgc-glass { -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); }
.tgc-page .tgc.tgc-lite { --tgc-glass: rgb(255 255 255 / .9); }
.tgc-page .tgc[data-theme="dark"].tgc-lite { --tgc-glass: hsl(var(--tgc-h) 20% 14% / .94); }

.tgc-page .tgc-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--tgc-sub); flex: none; }
.tgc-page .tgc-ic:active { background: rgb(127 127 127 / .2); }
@media (hover: hover) { .tgc-page .tgc-ic:hover { background: rgb(127 127 127 / .14); color: var(--tgc-ink); } }
.tgc-page .tgc-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 700; font-size: 13px; background: hsl(var(--tgc-h) 52% 46%); }
.tgc-page .tgc-av.sp { visibility: hidden; }
.tgc-page .out > .tgc-av, .tgc-page .out .tgc-who-line { display: none; }
.tgc-page .tgc-av.brand { width: 42px; height: 42px; background: var(--tgc-a); }
.tgc-page .tgc-av.brand svg { width: 22px; height: 22px; }

/* ---- هدر ---- */
.tgc-page .tgc-head { position: absolute; z-index: 4; top: 8px; inset-inline: 8px; height: 58px; border-radius: 20px; display: flex; align-items: center; gap: 8px; padding: 0 8px; }
.tgc-page .tgc-title { flex: 1; min-width: 0; line-height: 1.35; }
.tgc-page .tgc-title b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgc-page .tgc-title span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tgc-sub); }
.tgc-page .tgc-me { display: flex; align-items: center; gap: 6px; direction: ltr; max-width: 42%; height: 34px; padding: 0 14px; border-radius: 20px; font-size: 13px; background: var(--tgc-a-soft); color: var(--tgc-a); font-weight: 600; }
.tgc-page .tgc-me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tgc-page .tgc-me svg { width: 16px; height: 16px; }
.tgc-page a.tgc-me:hover { color: var(--tgc-a); filter: brightness(.95); }
.tgc-page .tgc-sun { display: none; }
.tgc-page .tgc[data-theme="dark"] .tgc-sun { display: block; }
.tgc-page .tgc[data-theme="dark"] .tgc-moon { display: none; }

.tgc-page .tgc-pin { position: absolute; z-index: 3; top: 72px; inset-inline: 14px; display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 14px; font-size: 12.5px; color: var(--tgc-sub); }
.tgc-page .tgc-pin svg { width: 15px; height: 15px; color: var(--tgc-a); }
.tgc-page .tgc-pin span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- پیام‌ها ---- */
.tgc-page .tgc-msgs {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; padding: 74px 10px 110px;
  display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: rgb(127 127 127 / .35) transparent; transform: translateZ(0);
}
.tgc-page .tgc-msgs.has-pin { padding-top: 118px; }
.tgc-page .tgc-day, .tgc-page .tgc-sys { align-self: center; background: var(--tgc-chip); color: #fff; font-size: 12.5px; padding: 2px 13px; border-radius: 12px; margin: 12px 0 6px; }
.tgc-page .tgc-empty { align-self: center; margin: auto; padding: 14px 20px; border-radius: 16px; background: var(--tgc-chip); color: #fff; font-size: 13.5px; }
.tgc-page .tgc-more { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 16px; font-size: 12.5px; background: var(--tgc-a-soft); color: var(--tgc-a); margin: 4px 0 8px; font-weight: 600; }
.tgc-page .tgc-more svg { width: 15px; height: 15px; }
.tgc-page .tgc-more:disabled { opacity: .5; }

.tgc-page .tgc-msg { position: relative; display: flex; direction: ltr; align-items: flex-end; gap: 7px; contain: layout style; touch-action: pan-y; }
.tgc-page .tgc-msg.out { justify-content: flex-end; }
.tgc-page .tgc-msg.gap { margin-top: 8px; }
.tgc-page .tgc-msg.new { animation: tgc-pop .2s ease-out; }
.tgc-page .tgc-msg.flash .tgc-bub { animation: tgc-flash 1.2s ease-out; }
@keyframes tgc-flash { 0%, 55% { box-shadow: 0 0 0 3px var(--tgc-a); } 100% { box-shadow: 0 0 0 3px transparent; } }
@keyframes tgc-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tgc-page .tgc-bub { position: relative; direction: rtl; max-width: min(80%, 470px); min-width: 84px; padding: 6px 12px 5px; border-radius: 18px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.tgc-page .in .tgc-bub { background: var(--tgc-in); color: var(--tgc-in-ink, var(--tgc-ink)); }
.tgc-page .out .tgc-bub { background: var(--tgc-out); color: var(--tgc-out-ink, #fff); }
.tgc-page .in.last .tgc-bub { border-bottom-left-radius: 5px; }
.tgc-page .out.last .tgc-bub { border-bottom-right-radius: 5px; }
.tgc-page .tgc-who-line { display: flex; align-items: center; gap: 6px; line-height: 1.6; white-space: normal; }
.tgc-page .tgc-who { font-weight: 700; font-size: 13.5px; color: hsl(var(--tgc-h) 55% var(--tgc-who)); }
.tgc-page .tgc-staff { font-size: 10.5px; font-weight: 700; padding: 0 7px; border-radius: 8px; background: var(--tgc-a); color: #fff; line-height: 1.7; }
.tgc-page .tgc-txt { unicode-bidi: plaintext; }
.tgc-page .tgc-tm { float: left; margin: 9px 10px 0 0; font-size: 11.5px; color: var(--tgc-sub); direction: ltr; user-select: none; }
.tgc-page .out .tgc-tm { color: rgb(255 255 255 / .8); }

/* نقل‌قول */
.tgc-page .tgc-q { display: block; margin: 0 0 4px; padding: 3px 9px; border-radius: 8px; border-inline-start: 3px solid var(--tgc-a); background: var(--tgc-a-soft); cursor: pointer; line-height: 1.5; max-width: 100%; white-space: normal; }
.tgc-page .tgc-q b { display: block; font-size: 12.5px; color: var(--tgc-a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgc-page .tgc-q span { display: block; font-size: 13px; color: var(--tgc-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.tgc-page .tgc-q.gone { cursor: default; opacity: .75; }
.tgc-page .out .tgc-q { border-color: rgb(255 255 255 / .85); background: rgb(255 255 255 / .16); }
.tgc-page .out .tgc-q b { color: #fff; }
.tgc-page .out .tgc-q span { color: rgb(255 255 255 / .85); }

/* نوار عملیات روی پیام (با هاور در دسکتاپ، با لمس در موبایل) */
.tgc-page .tgc-acts { position: absolute; z-index: 2; top: -16px; inset-inline-end: 6px; display: none; gap: 0; padding: 2px; border-radius: 16px; direction: ltr; }
.tgc-page .tgc-acts button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--tgc-sub); }
.tgc-page .tgc-acts button svg { width: 16px; height: 16px; }
.tgc-page .tgc-acts button:hover { background: var(--tgc-a-soft); color: var(--tgc-a); }
.tgc-page .tgc-acts button.danger:hover { background: hsl(4 70% 48% / .13); color: var(--tgc-danger); }
.tgc-page .tgc-msg.open .tgc-acts { display: flex; }
@media (hover: hover) { .tgc-page .tgc-msg:hover .tgc-acts { display: flex; } }
.tgc-page .tgc-msg.open { z-index: 2; }

/* ---- نوار پایین (چهار حالت) ---- */
.tgc-page .tgc-bar { position: absolute; z-index: 4; bottom: 8px; inset-inline: 8px; border-radius: 24px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px; padding: 5px; }
.tgc-page .tgc-bar .tgc-in {
  flex: 1; min-width: 0; border: 0 !important; outline: 0; background: none !important; box-shadow: none !important; resize: none; font: inherit; font-size: 16px; color: var(--tgc-ink);
  height: 44px; min-height: 44px !important; max-height: 130px; padding: 9px 6px; line-height: 1.65; margin: 0; border-radius: 0 !important;
}
.tgc-page .tgc-bar .tgc-in::placeholder { color: var(--tgc-sub); opacity: 1; }
@supports (field-sizing: content) { .tgc-page .tgc-bar .tgc-in { field-sizing: content; height: auto; } }
.tgc-page .tgc-bar .tgc-ic { align-self: flex-end; margin-bottom: 3px; }
.tgc-page .tgc-send { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; background: var(--tgc-a); }
.tgc-page .tgc-send:active { transform: scale(.9); }
.tgc-page .tgc-send:disabled { opacity: .4; }
.tgc-page .tgc-send svg { transform: scaleX(-1); }
.tgc-page .tgc-counter { position: absolute; top: -22px; inset-inline-end: 14px; font-size: 11.5px; padding: 0 9px; border-radius: 10px; background: var(--tgc-chip); color: #fff; direction: ltr; }
.tgc-page .tgc-counter.warn { background: var(--tgc-danger); }

.tgc-page .tgc-rp { flex: 0 0 100%; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 2px; margin-bottom: 2px; }
.tgc-page .tgc-rp > svg { color: var(--tgc-a); }
.tgc-page .tgc-rpt { flex: 1; min-width: 0; padding: 2px 10px; border-inline-start: 3px solid var(--tgc-a); line-height: 1.5; }
.tgc-page .tgc-rpt b { display: block; font-size: 13px; color: var(--tgc-a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgc-page .tgc-rpt span { display: block; font-size: 13px; color: var(--tgc-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }

/* فیلد قفل برای مهمان */
.tgc-page .tgc-bar-lock { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 12px 10px; }
.tgc-page .tgc-lock-msg { display: flex; align-items: center; gap: 12px; }
.tgc-page .tgc-lock-ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--tgc-a-soft); color: var(--tgc-a); }
.tgc-page .tgc-lock-msg b { display: block; font-size: 14px; line-height: 1.6; }
.tgc-page .tgc-lock-msg span { display: block; font-size: 12.5px; color: var(--tgc-sub); line-height: 1.6; }
.tgc-page .tgc-lock-act { display: flex; gap: 8px; }
.tgc-page .tgc-lock-act .tgc-btn { flex: 1; height: 44px; }
.tgc-page .tgc-fake { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 16px; background: rgb(127 127 127 / .12); color: var(--tgc-sub); cursor: not-allowed; opacity: .85; }
.tgc-page .tgc-fake svg { width: 17px; height: 17px; }
.tgc-page .tgc-fake textarea { flex: 1; min-width: 0; height: 40px; min-height: 0 !important; resize: none; border: 0 !important; background: none !important; box-shadow: none !important; padding: 9px 0; margin: 0; font: inherit; font-size: 14px; color: var(--tgc-sub); cursor: not-allowed; line-height: 1.6; }
.tgc-page .tgc-fake textarea::placeholder { color: var(--tgc-sub); opacity: .9; }
.tgc-page .tgc-bar-lock[data-bar="banned"] { padding: 14px; }

/* انتخاب نام نمایشی */
.tgc-page .tgc-bar-nick { flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 14px 10px; }
.tgc-page .tgc-nick-head b { display: block; font-size: 14.5px; }
.tgc-page .tgc-nick-head span { display: block; font-size: 12.5px; color: var(--tgc-sub); line-height: 1.7; }
.tgc-page .tgc-nick-row { display: flex; gap: 8px; }
.tgc-page .tgc-input {
  flex: 1; min-width: 0; height: 46px !important; border-radius: 14px !important; border: 1.5px solid rgb(127 127 127 / .3) !important; background: rgb(255 255 255 / .6) !important; color: var(--tgc-ink) !important;
  font: inherit; font-size: 16px; padding: 0 14px !important; outline: 0; margin: 0; box-shadow: none !important; direction: ltr; text-align: left; unicode-bidi: plaintext;
}
.tgc-page .tgc[data-theme="dark"] .tgc-input { background: rgb(255 255 255 / .06) !important; }
.tgc-page .tgc-input:focus { border-color: var(--tgc-a) !important; }
.tgc-page .tgc-bar-nick.bad .tgc-input { border-color: var(--tgc-danger) !important; }
.tgc-page .tgc-bar-nick.ok .tgc-input { border-color: var(--tgc-a) !important; }
.tgc-page .tgc-hint { min-height: 20px; font-size: 12.5px; color: var(--tgc-sub); }
.tgc-page .tgc-bar-nick.bad .tgc-hint { color: var(--tgc-danger); }
.tgc-page .tgc-bar-nick.ok .tgc-hint { color: var(--tgc-a); }

/* ایموجی، دکمه‌ی پرش، توست */
.tgc-page .tgc-emoji { position: absolute; z-index: 5; bottom: 76px; inset-inline-start: 12px; width: min(300px, calc(100% - 24px)); border-radius: 18px; padding: 8px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; background: var(--tgc-glass); }
.tgc-page .tgc-emoji button { font-size: 21px; line-height: 1; padding: 7px 0; border-radius: 10px; }
.tgc-page .tgc-emoji button:active { background: rgb(127 127 127 / .25); }
.tgc-page .tgc-jump { position: absolute; z-index: 4; left: 14px; bottom: 96px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .18s, transform .18s; color: var(--tgc-ink); }
.tgc-page .tgc-jump.show { opacity: 1; transform: none; pointer-events: auto; }
.tgc-page .tgc-badge { position: absolute; top: -6px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--tgc-a); color: #fff; font-size: 11px; line-height: 19px; text-align: center; }
.tgc-page .tgc-badge:empty { display: none; }
.tgc-page .tgc-toast { position: absolute; z-index: 7; top: 74px; left: 50%; max-width: 90%; transform: translate(-50%, -6px); background: hsl(var(--tgc-h) 25% 14% / .96); color: #fff; font-size: 13px; padding: 6px 14px; border-radius: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; }
.tgc-page .tgc-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   محتوای زیر چت (سئو) و سؤالات متداول
   ========================================================================== */
.tgc-page .tgc-content { margin-top: var(--tgc-gap); display: grid; gap: var(--tgc-gap); }
.tgc-page .tgc-prose, .tgc-page .tgc-faq { padding: 24px 26px; border-radius: var(--tgc-radius); background: #fff; border: 1px solid hsl(var(--tgc-h) 20% 90%); }
.tgc-page .tgc-prose h2, .tgc-page .tgc-faq h2 { font-size: 20px; line-height: 1.6; font-weight: 800; color: var(--tgc-ink); margin: 22px 0 8px; }
.tgc-page .tgc-prose > :first-child, .tgc-page .tgc-faq > :first-child { margin-top: 0; }
.tgc-page .tgc-prose h3 { font-size: 16.5px; line-height: 1.6; font-weight: 700; margin: 18px 0 6px; color: var(--tgc-ink); }
.tgc-page .tgc-prose p { color: var(--tgc-sub); line-height: 2.05; margin: 0 0 10px; }
.tgc-page .tgc-prose ul, .tgc-page .tgc-prose ol { margin: 0 0 12px; padding-inline-start: 4px; display: grid; gap: 6px; list-style: none; }
.tgc-page .tgc-prose ul li { position: relative; padding-inline-start: 22px; color: var(--tgc-sub); line-height: 1.9; }
.tgc-page .tgc-prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .82em; width: 8px; height: 8px; border-radius: 50%; background: var(--tgc-a); opacity: .75; }
.tgc-page .tgc-prose ol { list-style: decimal; padding-inline-start: 22px; }
.tgc-page .tgc-prose a { color: var(--tgc-a); text-decoration: underline; text-underline-offset: 3px; }
.tgc-page .tgc-qa { border-radius: 14px; background: hsl(var(--tgc-h) 30% 97%); border: 1px solid hsl(var(--tgc-h) 20% 91%); margin-top: 10px; overflow: hidden; }
.tgc-page .tgc-qa summary { cursor: pointer; list-style: none; padding: 13px 16px; padding-inline-end: 44px; font-weight: 700; font-size: 14.5px; line-height: 1.8; position: relative; color: var(--tgc-ink); }
.tgc-page .tgc-qa summary::-webkit-details-marker { display: none; }
.tgc-page .tgc-qa summary::after { content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border: solid var(--tgc-a); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.tgc-page .tgc-qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.tgc-page .tgc-qa p { padding: 0 16px 14px; color: var(--tgc-sub); line-height: 2; }

/* ==========================================================================
   موبایل و دسترس‌پذیری
   ========================================================================== */
@media (max-width: 600px) {
  .tgc-page { --tgc-radius: 18px; --tgc-height: clamp(520px, 80vh, 780px); }
  .tgc-page .tgc-hero { padding: 22px 16px 18px; }
  .tgc-page .tgc-prose, .tgc-page .tgc-faq { padding: 18px 16px; }
  .tgc-page .tgc-bub { max-width: 84%; }
  .tgc-page .tgc-me { max-width: 40%; padding: 0 10px; }
  .tgc-page .tgc-title em { font-size: 11.5px; }
  .tgc-page .tgc-lock-act { flex-direction: column; }
  .tgc-page .tgc-lock-act .tgc-btn { flex: none; }
  .tgc-page .tgc-nick-row { flex-direction: column; }
  .tgc-page .tgc-nick-row .tgc-btn { width: 100%; }
  .tgc-page .tgc-stats li { font-size: 12px; padding: 6px 10px; }
}
@supports (height: 1dvh) { @media (max-width: 600px) { .tgc-page { --tgc-height: clamp(520px, 80dvh, 780px); } } }
@media (prefers-reduced-motion: reduce) { .tgc-page * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
