/* One quiet, fixed contact surface across public pages and workspaces. */
.cfx-support-clearance { height: 86px; height: calc(86px + env(safe-area-inset-bottom, 0px)); }
#cfx-support {
  --cs-gold: #e7c679;
  --cs-muted: #a6a49c;
  position: fixed;
  right: 22px;
  right: max(22px, env(safe-area-inset-right, 0px));
  bottom: 20px;
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 900;
  margin: 0;
  color: #f4f0e6;
  font: 400 13px/1.65 var(--font-sans, "ChartFX Persian", "IRANSans", system-ui, sans-serif);
  text-align: start;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
#cfx-support *, #cfx-support *::before, #cfx-support *::after { box-sizing: border-box; }
#cfx-support [hidden] { display: none !important; }
#cfx-support svg { display: block; flex-shrink: 0; width: 22px; height: 22px; }
#cfx-support button { font: inherit; cursor: pointer; margin: 0; letter-spacing: normal; text-transform: none; box-shadow: none; }
#cfx-support a { color: inherit; text-decoration: none; }
#cfx-support :is(button, a, summary, input):focus-visible { outline: 2px solid var(--cs-gold); outline-offset: 4px; }
#cfx-support .cfx-support__trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 7px 15px 7px 8px;
  padding-inline: 8px 15px;
  border: 1px solid #7c673f;
  border-radius: 18px;
  background: linear-gradient(125deg, #302a1e, #17191b 72%);
  box-shadow: 0 8px 30px #0006, inset 0 1px 0 #f8df9b13;
  color: #f2dba5;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
#cfx-support .cfx-support__trigger::-webkit-details-marker { display: none; }
#cfx-support .cfx-support__trigger::marker { content: ""; }
#cfx-support .cfx-support__trigger:hover { border-color: #d1af69; box-shadow: 0 10px 32px #0007, 0 0 20px #d4b16c0c; transform: translateY(-2px); }
#cfx-support .cfx-support__emblem { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(145deg, #f0d48e, #b99144); color: #211b0f; box-shadow: inset 0 1px 0 #fff5; }
#cfx-support .cfx-support__emblem svg { width: 23px; height: 23px; }
#cfx-support .cfx-support__chevron { width: 14px; height: 14px; margin-inline-start: 5px; color: #c5b17e; transition: transform .18s; }
#cfx-support[open] .cfx-support__chevron { transform: rotate(180deg); }
#cfx-support[open] .cfx-support__trigger { border-color: #b39457; }
#cfx-support .cfx-support__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 13px);
  width: 350px;
  max-width: calc(100vw - 44px);
  max-height: calc(100vh - 110px);
  max-height: calc(100dvh - 110px - env(safe-area-inset-bottom, 0px));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 18px 16px;
  border: 1px solid #655331;
  border-radius: 22px;
  background: radial-gradient(ellipse at 95% 0%, #a582321d, transparent 65%), #141719;
  box-shadow: 0 20px 65px #0009, inset 0 1px 0 #f7d99012;
  scrollbar-width: thin;
  scrollbar-color: #79623a #141719;
}
#cfx-support[open] .cfx-support__panel { animation: cfx-support-reveal .18s ease-out both; }
#cfx-support .cfx-support__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin: 0 0 20px; padding: 0; border: 0; background: none; }
#cfx-support .cfx-support__eyebrow { display: inline-block; color: #d7b76e; font: 600 9px/1.5 system-ui, sans-serif; letter-spacing: 2px; }
#cfx-support .cfx-support__eyebrow span { padding: 0 3px; color: #716340; }
#cfx-support h2 { margin: 9px 0 5px; padding: 0; color: #f3ead6; font-family: inherit; font-size: 17px; font-weight: 650; line-height: 1.6; letter-spacing: normal; }
#cfx-support .cfx-support__header p { margin: 0; padding: 0; color: var(--cs-muted); font: inherit; font-size: 11.5px; line-height: 1.9; }
#cfx-support .cfx-support__close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 12px; border: 1px solid #ffffff0d; border-radius: 11px; background: #ffffff03; color: #aaa79e; }
#cfx-support .cfx-support__close svg { width: 18px; height: 18px; }
#cfx-support .cfx-support__close:hover { background: #ffffff0a; color: #f0d494; border-color: #d4ae5a3b; }
#cfx-support .cfx-support__channels { display: grid; gap: 10px; }
#cfx-support .cfx-support__channel { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 7px; padding: 11px 10px; border: 1px solid #ffffff12; border-radius: 14px; background: #ffffff03; transition: border-color .18s, background .18s; }
#cfx-support .cfx-support__channel:hover { border-color: #a88a4e68; background: #e7c67906; }
#cfx-support .cfx-support__link { display: flex; align-items: center; min-width: 0; min-height: 42px; gap: 10px; border-radius: 8px; }
#cfx-support .cfx-support__platform { display: grid; place-items: center; width: 39px; height: 39px; flex-shrink: 0; color: var(--cs-gold); border: 1px solid #e7c6791c; border-radius: 12px; background: #d3af6210; }
#cfx-support .cfx-support__platform svg { width: 22px; height: 22px; }
#cfx-support .cfx-support__identity { display: grid; gap: 3px; min-width: 0; }
#cfx-support .cfx-support__identity strong { color: #ede7da; font-size: 13px; font-weight: 600; }
#cfx-support .cfx-support__identity > span { font: 400 10.5px/1.6 system-ui, sans-serif; color: #b7b4aa; white-space: nowrap; }
#cfx-support .cfx-support__external { width: 14px; height: 14px; margin-inline-start: auto; color: #8e856e; }
#cfx-support .cfx-support__link:hover .cfx-support__external { color: var(--cs-gold); }
#cfx-support .cfx-support__copy { display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border: 1px solid transparent; border-inline-start-color: #ffffff0e; border-radius: 9px; background: transparent; color: #a6a191; }
#cfx-support .cfx-support__copy svg { width: 18px; height: 18px; }
#cfx-support:not([data-ready]) :is(.cfx-support__copy, .cfx-support__close) { display: none; }
#cfx-support:not([data-ready]) .cfx-support__channel { grid-template-columns: minmax(0, 1fr); }
#cfx-support .cfx-support__copy:hover, #cfx-support .cfx-support__copy[data-copied] { border-color: #e7c67935; background: #e7c6790e; color: var(--cs-gold); }
#cfx-support .cfx-support__check, #cfx-support [data-copied] .cfx-support__copy-icon { display: none; }
#cfx-support [data-copied] .cfx-support__check { display: block; }
#cfx-support .cfx-support__manual { width: 100%; min-width: 0; margin: 12px 0 0; padding: 10px; border: 1px solid #b39457; border-radius: 8px; background: #101214; color: #f2dba5; font: 16px/1.6 system-ui, sans-serif; }
#cfx-support .cfx-support__status { min-height: 20px; margin: 15px 0 0; padding: 0; color: #a6a191; font: inherit; font-size: 10px; line-height: 1.8; text-align: center; }
@keyframes cfx-support-reveal { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 540px) {
  #cfx-support { right: max(12px, env(safe-area-inset-right, 0px)); bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
  #cfx-support .cfx-support__trigger { min-height: 52px; font-size: 12px; border-radius: 16px; }
  #cfx-support .cfx-support__panel { width: 336px; max-width: calc(100vw - 24px); padding: 20px 14px 14px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #cfx-support *, #cfx-support *::before, #cfx-support *::after { animation: none !important; transition: none !important; }
}
@media print { #cfx-support, .cfx-support-clearance { display: none !important; } }
