/* Shared across the portal, native readers, independent guides and compass. */
/* The old monogram is decorative. Hide it in print/export as well as screen,
   without changing authored print colors or meaningful pseudo-element labels. */
html[data-flow-theme] .intro-badge::before,
html[data-flow-theme] .final-note::after,
html[data-flow-theme] .share-panel::after { content:none !important; }
.flow-footer-logo { display:block; width:128px; height:54px; flex:0 0 128px; object-fit:contain; }
.flow-brand-mark { width:112px; height:48px; border:0; border-radius:0; background:none; box-shadow:none; }
.flow-brand-mark .flow-footer-logo { width:112px; height:48px; }
.aris-dossier-footer .flow-channel-join,.aris-inline-invite .flow-channel-join,.flow-channel-join {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:48px; max-width:100%; padding:13px 20px; border:1px solid #c1f4d280;
  border-radius:16px; background:linear-gradient(115deg,#a2e887,#31dded); color:#031319;
  box-shadow:0 4px 20px #31dded16; font:inherit; font-weight:800; line-height:1.5;
  text-decoration:none; text-align:center; transition:filter .18s,transform .18s,box-shadow .18s;
}
.flow-channel-join .flow-channel-icon { width:20px; height:20px; flex:0 0 20px; }
.aris-dossier-footer .flow-channel-join:hover,.flow-channel-join:hover { background:linear-gradient(115deg,#a2e887,#31dded); filter:brightness(1.07); transform:translateY(-1px); box-shadow:0 6px 24px #31dded28; }
html[data-flow-theme] .aris-home-footer a.flow-channel-join { color:#031319; }
.flow-channel-handle { display:inline-block; margin-inline-start:16px; color:var(--flow-muted,#acbfc4); font-size:13px; }
.flow-channel-join:active { transform:translateY(0); }
.flow-channel-join:focus-visible { outline:3px solid #31dded; outline-offset:3px; }
.aris-dossier-footer .aris-footer-main { gap:20px; }
@media(max-width:480px) {
  .aris-dossier-footer .aris-footer-main { flex-wrap:wrap; }
  .flow-footer-logo { width:112px; height:48px; flex-basis:112px; }
  .aris-dossier-footer .aris-footer-copy { flex-basis:100%; }
  .aris-dossier-footer .aris-footer-actions { align-items:flex-start; }
}
@media(prefers-reduced-motion:reduce) { .flow-channel-join { transition:none; } .flow-channel-join:hover { transform:none; } }


/* Homepage footer: premium Flow portal finish. */
html[data-flow-theme] .aris-home-footer {
  position: relative;
  display: block;
  width: calc(100% - 64px);
  max-width: var(--flow-max-width);
  margin: 56px auto 28px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(87, 221, 224, .24);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 8%, rgba(49, 221, 237, .13), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(162, 232, 135, .11), transparent 32%),
    linear-gradient(145deg, rgba(10, 34, 40, .96), rgba(4, 21, 27, .98));
  color: var(--flow-text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
}
html[data-flow-theme] .aris-home-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent, rgba(49, 221, 237, .08), transparent) 0 0 / 100% 1px no-repeat,
    linear-gradient(135deg, transparent 42%, rgba(162, 232, 135, .035) 50%, transparent 58%);
}
html[data-flow-theme] .flow-home-footer__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 44px;
  align-items: center;
  padding: 46px 48px 38px;
}
html[data-flow-theme] .flow-home-footer__brand {
  min-width: 0;
}
html[data-flow-theme] .flow-home-footer__logo {
  display: block;
  width: 150px;
  height: 64px;
  margin: 0 0 14px;
  object-fit: contain;
}
html[data-flow-theme] .flow-home-footer__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--flow-cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  direction: ltr;
}
html[data-flow-theme] .flow-home-footer__brand h2 {
  margin: 0 0 12px;
  color: var(--flow-text);
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.6;
}
html[data-flow-theme] .flow-home-footer__brand p {
  max-width: 62ch;
  margin: 0;
  color: var(--flow-muted);
  font-size: 14px;
  line-height: 2;
}
html[data-flow-theme] .flow-home-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #c8d8dc;
  font-size: 12px;
}
html[data-flow-theme] .flow-home-footer__status i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: var(--flow-green);
  box-shadow: 0 0 0 5px rgba(162, 232, 135, .08), 0 0 18px rgba(162, 232, 135, .38);
}
html[data-flow-theme] .flow-home-footer__telegram {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(49, 221, 237, .17);
  border-radius: 24px;
  background: rgba(3, 19, 25, .48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
}
html[data-flow-theme] .flow-home-footer__telegram-label {
  display: block;
  color: var(--flow-cyan);
  font-size: 12px;
  font-weight: 800;
}
html[data-flow-theme] .flow-home-footer__telegram strong {
  display: block;
  margin: 7px 0 18px;
  color: var(--flow-text);
  font-size: 15px;
  line-height: 1.9;
}
html[data-flow-theme] .aris-home-footer .flow-channel-join {
  position: relative;
  width: 100%;
  min-height: 66px;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  padding: 16px 20px;
  border: 1px solid rgba(226, 255, 239, .82);
  border-radius: 20px;
  background: linear-gradient(120deg, #a2e887 0%, #63ebbd 36%, #31dded 100%);
  color: #031319;
  box-shadow:
    0 12px 34px rgba(49, 221, 237, .19),
    inset 0 1px 0 rgba(255, 255, 255, .62);
  font-weight: 900;
  text-decoration: none;
  transform: translateZ(0);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
html[data-flow-theme] .aris-home-footer .flow-channel-join::before {
  content: "";
  position: absolute;
  inset: -45% 55% -45% -30%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .55) 50%, transparent 75%);
  transform: translateX(-190%) rotate(8deg);
  transition: transform .58s ease;
}
html[data-flow-theme] .aris-home-footer .flow-channel-join::after {
  content: "↗";
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  margin-inline-start: 4px;
  border: 1px solid rgba(3, 19, 25, .2);
  border-radius: 999px;
  background: rgba(3, 19, 25, .08);
  font-size: 17px;
  line-height: 1;
}
html[data-flow-theme] .aris-home-footer .flow-channel-join .flow-channel-icon {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
}
html[data-flow-theme] .aris-home-footer .flow-channel-join:hover {
  filter: brightness(1.05) saturate(1.04);
  transform: translateY(-3px);
  box-shadow:
    0 18px 42px rgba(49, 221, 237, .28),
    0 0 0 5px rgba(49, 221, 237, .055),
    inset 0 1px 0 rgba(255, 255, 255, .7);
}
html[data-flow-theme] .aris-home-footer .flow-channel-join:hover::before {
  transform: translateX(360%) rotate(8deg);
}
html[data-flow-theme] .aris-home-footer .flow-channel-join:active {
  transform: translateY(-1px);
}
html[data-flow-theme] .aris-home-footer .flow-channel-handle {
  display: block;
  margin: 12px 0 0;
  color: var(--flow-muted);
  font-size: 12px;
  text-align: center;
  letter-spacing: .04em;
}
html[data-flow-theme] .flow-home-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 48px 18px;
  border-top: 1px solid rgba(87, 221, 224, .12);
  color: #88a5ad;
  font-size: 11px;
}
@media (max-width: 820px) {
  html[data-flow-theme] .aris-home-footer {
    width: calc(100% - 32px);
    margin-top: 36px;
    border-radius: 26px;
  }
  html[data-flow-theme] .flow-home-footer__shell {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 32px 24px 24px;
  }
  html[data-flow-theme] .flow-home-footer__logo {
    width: 128px;
    height: 56px;
  }
  html[data-flow-theme] .flow-home-footer__telegram {
    padding: 18px;
    border-radius: 20px;
  }
  html[data-flow-theme] .flow-home-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 24px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-flow-theme] .aris-home-footer .flow-channel-join,
  html[data-flow-theme] .aris-home-footer .flow-channel-join::before {
    transition: none;
  }
  html[data-flow-theme] .aris-home-footer .flow-channel-join:hover {
    transform: none;
  }
  html[data-flow-theme] .aris-home-footer .flow-channel-join:hover::before {
    transform: translateX(-190%) rotate(8deg);
  }
}


/* Telegram CTA v2: luminous orb adaptation. */
/* Visual direction adapted from the MIT-licensed “Luminous Glowing Orb Buttons”
   pattern curated by FreeFrontend / originally published on Uiverse by santhosh_2608.
   Reworked here for Flow’s Telegram CTA; no external runtime or asset dependency. */
html[data-flow-theme] .aris-home-footer .flow-channel-join {
  --flow-tg-rgb: 49, 221, 237;
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 11px 14px 11px 12px;
  overflow: visible;
  border: 1px solid rgba(106, 232, 236, .24);
  border-radius: 23px;
  background:
    radial-gradient(circle at 14% 50%, rgba(var(--flow-tg-rgb), .10), transparent 27%),
    linear-gradient(135deg, rgba(10, 36, 43, .92), rgba(4, 22, 28, .98));
  color: var(--flow-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 14px 34px rgba(0, 0, 0, .22);
  text-align: right;
  text-decoration: none;
  transform: translateZ(0);
  transition:
    transform .32s cubic-bezier(.2,.8,.2,1),
    border-color .32s ease,
    box-shadow .32s ease,
    background .32s ease;
}
html[data-flow-theme] .aris-home-footer .flow-channel-join::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255,255,255,.08) 48%, transparent 68%);
  transform: translateX(-32%);
  transition: opacity .25s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
html[data-flow-theme] .aris-home-footer .flow-channel-join::after {
  content: "↗";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(var(--flow-tg-rgb), .16);
  border-radius: 50%;
  background: rgba(var(--flow-tg-rgb), .055);
  color: rgba(206, 252, 255, .84);
  font-size: 16px;
  line-height: 1;
  transition:
    transform .34s cubic-bezier(.2,.8,.2,1),
    background .34s ease,
    border-color .34s ease;
}
html[data-flow-theme] .aris-home-footer .flow-channel-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.34), transparent 20%),
    radial-gradient(circle at 50% 55%, rgba(var(--flow-tg-rgb), .20), rgba(var(--flow-tg-rgb), .06) 50%, rgba(var(--flow-tg-rgb), .34) 100%);
  box-shadow:
    inset 0 0 18px rgba(var(--flow-tg-rgb), .34),
    inset 0 0 6px rgba(var(--flow-tg-rgb), .62),
    0 0 22px rgba(var(--flow-tg-rgb), .22);
  transition:
    transform .38s cubic-bezier(.2,.8,.2,1),
    box-shadow .38s cubic-bezier(.2,.8,.2,1);
}
html[data-flow-theme] .aris-home-footer .flow-channel-orb::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.20), transparent 38%, rgba(0,0,0,.24));
  box-shadow: inset 1px 1px 2px rgba(255,255,255,.20);
}
html[data-flow-theme] .aris-home-footer .flow-channel-orb::after {
  content: "";
  position: absolute;
  top: -12%;
  left: -72%;
  width: 38%;
  height: 124%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-24deg);
}
html[data-flow-theme] .aris-home-footer .flow-channel-icon {
  position: relative;
  z-index: 2;
  width: 27px;
  height: 27px;
  color: #eaffff;
  filter: drop-shadow(0 0 5px rgba(255,255,255,.24));
  transition:
    transform .55s cubic-bezier(.16,1,.3,1),
    opacity .28s ease;
}
html[data-flow-theme] .aris-home-footer .flow-channel-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  color: #effeff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
}
html[data-flow-theme] .aris-home-footer .flow-channel-copy::after {
  content: "ورود به Telegram";
  color: #83aab1;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  direction: ltr;
  text-align: right;
  letter-spacing: .07em;
}
html[data-flow-theme] .aris-home-footer .flow-channel-join:hover {
  filter: none;
  transform: translateY(-2px);
  border-color: rgba(97, 231, 235, .46);
  background:
    radial-gradient(circle at 14% 50%, rgba(var(--flow-tg-rgb), .16), transparent 31%),
    linear-gradient(135deg, rgba(11, 40, 47, .96), rgba(4, 23, 29, .99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055),
    0 19px 42px rgba(0,0,0,.28),
    0 0 30px rgba(var(--flow-tg-rgb), .07);
}
html[data-flow-theme] .aris-home-footer .flow-channel-join:hover::before {
  opacity: 1;
  transform: translateX(28%);
}
html[data-flow-theme] .aris-home-footer .flow-channel-join:hover .flow-channel-orb {
  transform: scale(1.055);
  box-shadow:
    inset 0 0 22px rgba(var(--flow-tg-rgb), .46),
    inset 0 0 8px rgba(var(--flow-tg-rgb), .72),
    0 0 31px rgba(var(--flow-tg-rgb), .34);
}
html[data-flow-theme] .aris-home-footer .flow-channel-join:hover .flow-channel-orb::after {
  animation: flowTelegramShimmer .7s ease-out both;
}
html[data-flow-theme] .aris-home-footer .flow-channel-join:hover .flow-channel-icon {
  animation: flowTelegramFly .62s cubic-bezier(.16,1,.3,1) both;
}
html[data-flow-theme] .aris-home-footer .flow-channel-join:hover::after {
  transform: translate(2px,-2px);
  border-color: rgba(var(--flow-tg-rgb), .34);
  background: rgba(var(--flow-tg-rgb), .10);
}
html[data-flow-theme] .aris-home-footer .flow-channel-join:active {
  transform: translateY(0) scale(.985);
}
@keyframes flowTelegramShimmer {
  from { left: -72%; }
  to { left: 144%; }
}
@keyframes flowTelegramFly {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  42% { transform: translate(13px,-13px) scale(.9); opacity: 0; }
  43% { transform: translate(-11px,11px) scale(.9); opacity: 0; }
  100% { transform: translate(0,0) scale(1); opacity: 1; }
}
@media (max-width: 520px) {
  html[data-flow-theme] .aris-home-footer .flow-channel-join {
    grid-template-columns: 52px minmax(0,1fr) 30px;
    gap: 11px;
    min-height: 74px;
    padding: 10px 11px;
    border-radius: 20px;
  }
  html[data-flow-theme] .aris-home-footer .flow-channel-orb {
    width: 52px;
    height: 52px;
  }
  html[data-flow-theme] .aris-home-footer .flow-channel-icon {
    width: 24px;
    height: 24px;
  }
  html[data-flow-theme] .aris-home-footer .flow-channel-join::after {
    width: 30px;
    height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-flow-theme] .aris-home-footer .flow-channel-join,
  html[data-flow-theme] .aris-home-footer .flow-channel-join::after,
  html[data-flow-theme] .aris-home-footer .flow-channel-orb,
  html[data-flow-theme] .aris-home-footer .flow-channel-icon {
    transition: none;
    animation: none !important;
  }
  html[data-flow-theme] .aris-home-footer .flow-channel-join:hover,
  html[data-flow-theme] .aris-home-footer .flow-channel-join:hover::after,
  html[data-flow-theme] .aris-home-footer .flow-channel-join:hover .flow-channel-orb {
    transform: none;
  }
}
