@font-face {
  font-family: Vazirmatn;
  src: url("/static/vazirmatn.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}
:root {
  --background: #0b0714;
  --card: #120b20;
  --sidebar: #120b20;
  --hover: #1a1029;
  --border: #30253f;
  --text: #f7f4ff;
  --muted: #b8afca;
  --button: #6d28d9;
  --buttonText: #fff;
  --accent: #c4b5fd;
  --glow: #8b5cf6;
  --active: #321d4e;
  --gradientStart: #0b0714;
  --gradientEnd: #4c1d95;
  --heroText: #fff;
  --navigation: #e8def6;
  --shadow: #160b2b;
  --positive: #48cf9f;
  color-scheme: dark;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--background);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
body,
button,
input,
textarea,
select {
  font-family: Vazirmatn, Tahoma, sans-serif;
}
button,
input,
textarea,
select {
  font-size: inherit;
}
button,
a,
label[for] {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: 0;
}
svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
  flex-shrink: 0;
}
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
b,
strong {
  font-weight: 750;
}
.wrap {
  max-width: 1320px;
  width: calc(100% - 104px);
  margin: auto;
}
.skip {
  position: absolute;
  z-index: 100;
  top: -70px;
  background: var(--button);
  padding: 8px;
}
.skip:focus {
  top: 3px;
}
.loading,
.empty {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.mast {
  height: 78px;
  background: color-mix(in srgb, var(--background) 82%, var(--card));
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 5;
}
.mast .wrap,
.row,
.identity,
.navbar,
.tools,
.flex,
.spread,
.buttons,
.badge,
.btn,
.small-link,
.statusline,
.kicker,
.foot-inner {
  display: flex;
  align-items: center;
}
.mast .wrap {
  height: 100%;
  gap: clamp(22px, 4vw, 72px);
}
.identity {
  gap: 10px;
  white-space: nowrap;
}
.mark {
  width: 41px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px #8b5cf666);
}
.identity strong {
  display: block;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 900;
  letter-spacing: -1.1px;
}
.identity small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.8px;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-weight: 700;
  direction: ltr;
  text-align: right;
}
.navbar {
  gap: clamp(15px, 2.2vw, 34px);
  height: 100%;
  font-size: 13px;
}
.navbar a {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  position: relative;
  white-space: nowrap;
  font-weight: 550;
}
.navbar a svg {
  width: 12px;
}
.navbar a.on {
  color: var(--accent);
}
.navbar a.on:after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: 15px;
  inset-inline: 3px;
  background: var(--glow);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--glow);
}
.tools {
  margin-inline-start: auto;
  gap: 11px;
}
.iconbtn,
.btn,
.small-link {
  border-radius: 8px;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.iconbtn {
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  background: color-mix(in srgb, var(--card) 80%, transparent);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  padding: 12px 18px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--card);
  cursor: pointer;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn:hover,
.iconbtn:hover,
.small-link:hover {
  border-color: var(--glow);
  background: var(--hover);
}
.primary {
  color: var(--buttonText);
  background: linear-gradient(
    120deg,
    color-mix(in srgb, var(--button) 74%, var(--glow)),
    var(--button)
  );
  border-color: color-mix(in srgb, var(--glow) 75%, var(--border));
  box-shadow: 0 4px 22px color-mix(in srgb, var(--button) 25%, transparent);
}
.btn.primary:hover {
  background: var(--button);
  box-shadow: 0 0 22px color-mix(in srgb, var(--glow) 33%, transparent);
}
.loginbtn {
  background: color-mix(in srgb, var(--button) 23%, var(--background));
  color: var(--accent);
  border-color: color-mix(in srgb, var(--glow) 49%, var(--border));
  padding: 10px 14px;
}
.hamburger {
  display: none;
}
.hero-net {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 425px;
  display: flex;
  align-items: center;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.hero-net > .world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 47%;
  z-index: -3;
}
.hero-net:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      270deg,
      color-mix(in srgb, var(--background) 97%, transparent) 0%,
      color-mix(in srgb, var(--background) 83%, transparent) 26%,
      color-mix(in srgb, var(--background) 16%, transparent) 55%,
      transparent 74%
    ),
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--background) 65%, transparent),
      transparent 20%
    );
}
.hero-net .wrap {
  position: relative;
  min-height: inherit;
  display: flex;
  align-items: center;
}
.hero-copy {
  width: 53%;
  padding: 40px 0 48px;
  color: var(--heroText);
}
.badge {
  display: inline-flex;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--glow) 45%, transparent);
  background: color-mix(in srgb, var(--gradientEnd) 35%, transparent);
  color: #ddcdff;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 600;
}
.badge svg {
  width: 13px;
  height: 13px;
}
.hero-copy h1 {
  font-size: clamp(42px, 4.4vw, 69px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -2.4px;
  margin: 15px 0 9px;
}
.hero-copy h1 span {
  display: block;
  font-size: 1.1em;
  color: var(--glow);
  background: linear-gradient(90deg, #b79aff 10%, #aa7bff 40%, #9057fb 90%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy > p {
  font-size: 14px;
  line-height: 2;
  max-width: 440px;
  color: #d1c8e0;
}
.buttons {
  gap: 10px;
  flex-wrap: wrap;
}
.hero-copy .buttons {
  margin-top: 22px;
}
.hero-copy .btn {
  padding: 12px 20px;
}
.ghost {
  background: #181225b8;
  border-color: #564465;
  color: #f5ebff;
  backdrop-filter: blur(8px);
}
.hero-coordinate {
  position: absolute;
  left: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f2e7ff99;
  font-size: 10px;
}
.hero-coordinate:after {
  content: "";
  width: 35px;
  height: 1px;
  background: #ded0ff60;
}
.dust {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ded4ff;
  box-shadow:
    -94px 28px 3px #b79aff,
    144px -70px 2px #905afa,
    80px 96px 1px #e0ccff,
    250px 48px 4px #a378ff;
  left: 29%;
  top: 52%;
  opacity: 0.56;
  animation: drift 5s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}
@keyframes drift {
  to {
    transform: translate(9px, -17px);
    opacity: 0.19;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.statusbar {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--card) 77%, var(--background)),
    var(--card)
  );
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 18px 0;
}
.metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-inline-start: 1px solid var(--border);
}
.metric:first-child {
  padding-inline-start: 0;
  border: 0;
}
.metric-icon,
.square {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--glow) 12%, var(--card));
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--glow) 21%, var(--border));
}
.metric small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 2px;
}
.metric b {
  font-size: 14px;
}
.metric b[dir="ltr"] {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.2px;
  font-size: 13px;
}
.pin {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  vertical-align: middle;
  margin-inline-end: 5px;
}
.warm {
  color: #d8b77f;
}
.good {
  color: var(--positive);
}
.section {
  padding: 35px 0 0;
}
.section:last-child {
  padding-bottom: 42px;
}
.sectionhead,
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.kicker {
  font-size: 10px;
  line-height: 1.8;
  font-weight: 650;
  color: var(--accent);
  gap: 7px;
}
.kicker:before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--glow);
}
.sectionhead h2,
.pagehead h1 {
  font-size: clamp(24px, 2.2vw, 33px);
  letter-spacing: -1.2px;
  font-weight: 850;
  line-height: 1.5;
}
.small-link {
  gap: 7px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  padding: 7px 12px;
  font-size: 11px;
}
.small-link svg {
  width: 14px;
  height: 14px;
}
.grid3,
.grid2,
.grid4 {
  display: grid;
  gap: 18px;
}
.grid3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.game,
.product,
.article,
.box,
.pane {
  min-width: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}
.game,
.product,
.article {
  display: block;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.game:hover,
.product:hover,
.article:hover {
  transform: translateY(-3px);
  border-color: var(--glow);
}
.cover {
  height: clamp(145px, 13.4vw, 210px);
  position: relative;
  background: var(--hover);
  overflow: hidden;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.game:hover .cover img,
.product:hover .cover img {
  transform: scale(1.045);
}
.cover:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0c071651, transparent 28%);
  pointer-events: none;
}
.cover .tag {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: #100e18ab;
  border: 1px solid #ffffff38;
  border-radius: 6px;
  color: #fff;
  font-size: 10px;
  backdrop-filter: blur(7px);
}
.tag svg {
  width: 12px;
  height: 12px;
}
.cardbody {
  padding: 15px 17px 17px;
}
.cardbody h3 {
  font-size: 19px;
  font-weight: 800;
}
.cardbody p,
.sub,
.bodytext {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}
.cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.cardhead > .arrow {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 7px;
}
.arrow svg {
  width: 14px;
}
.cardbody p {
  margin-top: 6px;
  font-size: 12px;
}
.cost {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.box,
.pane {
  padding: 20px;
}
.pane {
  margin-bottom: 15px;
}
.box h3,
.pane h2,
.pane h3 {
  font-size: 18px;
  font-weight: 780;
  margin-bottom: 10px;
}
.tile {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tile .square {
  width: 44px;
  height: 44px;
}
.tile strong {
  display: block;
  font-size: 15px;
}
.tile small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.notice,
.flag {
  padding: 10px 13px;
  border-radius: 7px;
  background: var(--hover);
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.notice {
  display: flex;
  align-items: center;
  gap: 9px;
}
.flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 10px;
  color: var(--accent);
}
.foot {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.foot-inner {
  min-height: 96px;
  justify-content: space-between;
  gap: 17px;
  flex-wrap: wrap;
}
.foot .identity strong {
  font-size: 18px;
}
.foot .mark {
  width: 29px;
  height: 37px;
}
.foot nav {
  display: flex;
  gap: 17px;
  font-size: 12px;
  color: var(--muted);
}
.foot p {
  font-size: 11px;
  color: var(--muted);
}
.content {
  padding-top: 32px;
  min-height: 60vh;
}
.pagehead {
  margin-bottom: 23px;
}
.pagehead h1 {
  font-size: 33px;
}
.crumb {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  margin-bottom: 15px;
}
.crumb svg {
  width: 13px;
  height: 13px;
}
.feature {
  position: relative;
  isolation: isolate;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.feature > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #10091df5, transparent);
}
.feature h2 {
  color: #fff;
  font-size: 26px;
}
.feature p {
  color: #e2d8ed;
  margin-top: 6px;
}
.flex {
  gap: 8px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
  gap: 12px;
}
.stack {
  display: grid;
  gap: 13px;
}
.form {
  display: grid;
  gap: 13px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  font-weight: 550;
  font-size: 12px;
}
.field > small {
  font-weight: 400;
}
.field input,
.field select,
.field textarea,
.control,
input[type="search"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--background);
  font-size: 13px;
  line-height: 1.7;
  min-width: 0;
}
.field textarea {
  min-height: 84px;
  resize: vertical;
}
.field input[type="color"] {
  padding: 2px;
  height: 39px;
  cursor: pointer;
}
.field input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--glow);
}
.help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.85;
}
.formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth {
  margin: 25px auto;
  max-width: 465px;
  padding: 27px;
}
.auth .identity {
  margin-bottom: 18px;
}
.auth h1 {
  font-size: 26px;
}
.auth .sub {
  margin: 5px 0 16px;
}
.auth .btn {
  width: 100%;
}
.auth .small-link {
  width: max-content;
  margin-top: 14px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.tab {
  padding: 7px 12px;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
}
.tab.on {
  background: var(--active);
  color: var(--accent);
  border-color: var(--glow);
}
.hlist {
  display: grid;
  gap: 9px;
}
.listrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  flex-wrap: wrap;
}
.listrow:last-child {
  border-bottom: 0;
}
.listrow > strong {
  flex: 1;
}
.listrow .thumb {
  width: 63px;
  height: 43px;
  object-fit: cover;
  border-radius: 6px;
}
.listrow small {
  color: var(--muted);
  font-size: 11px;
}
.tablewrap {
  overflow: auto;
}
.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data td,
.data th {
  text-align: start;
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data th {
  color: var(--muted);
  font-weight: 600;
}
.data td {
  overflow-wrap: anywhere;
}
.data .btn {
  padding: 6px 9px;
  font-size: 11px;
}
.data .thumb {
  width: 49px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
}
.mediaimg {
  width: 100%;
  object-fit: contain;
  max-height: 310px;
  border-radius: 8px;
  background: var(--background);
}
.mini {
  font-size: 11px;
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.big {
  font-size: 27px;
  font-weight: 800;
}
.break {
  overflow-wrap: anywhere;
}
.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: start;
  gap: 18px;
}
.modalback {
  position: fixed;
  inset: 0;
  background: #080410b8;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 18px;
}
.modal {
  display: flex;
  flex-direction: column;
  width: min(100%, 610px);
  max-height: 92dvh;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 24px 60px #0007;
}
.modal.wide {
  width: min(920px, 100%);
}
.modal > header {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal > header h2 {
  font-size: 18px;
}
.modal > header .iconbtn {
  width: 29px;
  height: 29px;
}
.modalbody {
  padding: 19px;
  overflow: auto;
}
.modalfoot {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 13px 17px;
  flex-wrap: wrap;
}
#toasts {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 60;
  max-width: min(430px, 90vw);
  display: grid;
  gap: 8px;
}
.toast {
  background: var(--active);
  border: 1px solid var(--glow);
  color: var(--text);
  font-size: 13px;
  border-radius: 9px;
  padding: 11px 16px;
  box-shadow: 0 8px 20px #0004;
}
.toast.bad {
  border-color: #e28991;
}
.skip:focus,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
}
.ops {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
  background: var(--sidebar);
  border-inline-end: 1px solid var(--border);
  padding: 17px 13px;
}
.rail .identity {
  margin-bottom: 22px;
}
.rail .identity strong {
  font-size: 20px;
}
.rail-nav {
  display: grid;
  gap: 3px;
}
.rail-nav a {
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  border-radius: 6px;
  color: var(--navigation);
}
.rail-nav a svg {
  width: 16px;
}
.rail-nav a.on,
.rail-nav a:hover {
  background: var(--active);
  color: var(--accent);
}
.rail .kicker {
  margin: 10px 8px;
}
.opmain {
  min-width: 0;
  padding: 0 30px 45px;
}
.opbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 21px;
  font-size: 12px;
  color: var(--muted);
}
.ops.owner,
.ops.founder {
  display: block;
}
.founder .rail,
.owner .rail,
.developer .rail {
  position: static;
  height: auto;
  border-inline-end: 0;
  border-bottom: 1px solid var(--border);
}
.founder .rail .identity,
.owner .rail .identity,
.developer .rail .identity {
  margin-bottom: 7px;
}
.founder .rail-nav,
.owner .rail-nav,
.developer .rail-nav {
  display: flex;
  flex-wrap: wrap;
}
.ops.developer {
  display: block;
}
.developer .pane {
  border-radius: 5px;
}
.danger .rail {
  border-inline-end-color: #854951;
}
.danger .kicker {
  color: #e5a1a7;
}
.danger .opbar {
  border-bottom-color: #854951;
}
.ops .pagehead {
  margin-bottom: 18px;
}
.ops .cardbody h3 {
  font-size: 15px;
}
.searchbox {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.searchbox input {
  max-width: 340px;
}
.fields-group {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.swatch {
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 10px;
  text-align: start;
}
.swatch.selected {
  border-color: var(--glow);
}
.swatch i {
  display: block;
  border-radius: 3px;
  height: 22px;
  margin-bottom: 3px;
}
.sample {
  padding: 17px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
}
.sample .banner {
  background: linear-gradient(
    var(--dir, 90deg),
    var(--gradientStart),
    var(--gradientEnd)
  );
  color: var(--heroText);
  border-radius: 7px;
  padding: 20px;
  margin: 12px 0;
}
.bubble {
  padding: 13px;
  border-radius: 8px;
  background: var(--hover);
}
.bubble p {
  white-space: pre-line;
  line-height: 1.9;
  font-size: 13px;
}
.bubble.note {
  border: 1px dashed #b38d49;
}
.banner-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}
.avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--active);
}
.headnote {
  background: var(--active);
  color: var(--accent);
  text-align: center;
  padding: 7px;
  font-size: 12px;
}
code,
bdi[dir="ltr"] {
  unicode-bidi: isolate;
}
code {
  font-family: ui-monospace, monospace;
  font-size: 0.92em;
  word-break: break-word;
}
.bodytext {
  white-space: pre-line;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 13px;
}
.media-grid button {
  text-align: start;
}
.media-grid img {
  height: 115px;
  width: 100%;
  object-fit: cover;
}
.media-grid .cardbody {
  padding: 10px;
}
.msgbox {
  margin: 8px 0;
}
.guide-step {
  display: flex;
  gap: 12px;
  align-items: start;
}
.guide-step b {
  background: var(--active);
  color: var(--accent);
  border-radius: 7px;
  padding: 5px 10px;
}
.noprofile {
  background: var(--active);
  color: var(--accent);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.rank-preview {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 10px;
}
.section-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.panel-menu {
  display: none;
}
.compact .section {
  padding-top: 22px;
}
.compact .pane {
  padding: 14px;
}
@media (min-width: 1550px) {
  .hero-net {
    min-height: 485px;
  }
  .hero-copy h1 {
    font-size: 69px;
  }
  .hero-copy > p {
    font-size: 16px;
  }
  .section {
    padding-top: 41px;
  }
}
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .mast .wrap {
    gap: 21px;
  }
  .navbar {
    gap: 17px;
  }
  .identity strong {
    font-size: 20px;
  }
  .metric {
    padding-inline: 13px;
  }
  .hero-net {
    min-height: 385px;
  }
  .grid3,
  .grid2 {
    gap: 12px;
  }
  .hero-copy h1 {
    font-size: 46px;
  }
  .hero-copy {
    width: 52%;
  }
  .ops {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .opmain {
    padding: 0 18px 18px;
  }
  .grid4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 790px) {
  .mast {
    height: 66px;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .mast .navbar {
    display: none;
  }
  .hamburger {
    display: grid;
  }
  .menu-open .mast .navbar {
    display: flex;
    position: absolute;
    top: 65px;
    right: 0;
    left: 0;
    background: var(--card);
    height: auto;
    flex-wrap: wrap;
    gap: 5px 18px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
  }
  .navbar a {
    height: 35px;
  }
  .navbar a.on:after {
    bottom: 0;
  }
  .hero-net {
    min-height: 360px;
  }
  .hero-copy h1 {
    font-size: 41px;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .hero-copy .btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .status-grid {
    padding: 13px 0;
  }
  .metric {
    gap: 7px;
  }
  .metric-icon {
    width: 30px;
    height: 30px;
  }
  .metric b {
    font-size: 12px;
  }
  .metric b[dir="ltr"] {
    font-size: 10px;
  }
  .grid3 .cover {
    height: 125px;
  }
  .cardbody {
    padding: 12px;
  }
  .cardbody h3 {
    font-size: 17px;
  }
  /* چیدمان موبایلِ پنل‌ها در خودِ control.js است (کشوی فهرست)؛
     قاعده‌های قدیمی اینجا با آن تداخل داشتند و ریل باز نمی‌شد. */
  .split,
  .section-layout {
    grid-template-columns: 1fr;
  }
  .foot-inner {
    padding: 20px 0;
  }
  .foot nav {
    flex-wrap: wrap;
  }
  .metric small {
    font-size: 9px;
  }
}
@media (max-width: 570px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .mast {
    height: 62px;
  }
  .identity strong {
    font-size: 18px;
  }
  .identity small {
    font-size: 8px;
  }
  .mark {
    width: 32px;
    height: 39px;
  }
  .tools {
    gap: 6px;
  }
  .tools .btn {
    font-size: 11px;
    padding: 9px;
  }
  .tools .iconbtn {
    width: 33px;
    height: 33px;
  }
  .hero-net {
    min-height: 450px;
    align-items: flex-start;
  }
  .hero-net > .world {
    object-position: 24% 0%;
    height: 67%;
    object-fit: cover;
  }
  .hero-net:before {
    background: linear-gradient(
      0deg,
      var(--background) 1%,
      color-mix(in srgb, var(--background) 96%, transparent) 32%,
      color-mix(in srgb, var(--background) 80%, transparent) 48%,
      transparent 77%
    );
  }
  .hero-net .wrap {
    align-items: flex-end;
  }
  .hero-copy {
    width: 100%;
    padding: 163px 5px 24px;
  }
  .hero-copy h1 {
    font-size: 38px;
    line-height: 1.24;
    margin: 10px 0 5px;
  }
  .hero-copy h1 span {
    display: inline;
    font-size: 1em;
  }
  .hero-copy p {
    max-width: 400px;
  }
  .hero-copy .buttons {
    margin-top: 14px;
  }
  .hero-coordinate {
    display: none;
  }
  .status-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 13px 0;
    padding: 13px 0;
  }
  .metric:nth-child(odd) {
    border: 0;
    padding-inline-start: 0;
  }
  .metric small {
    font-size: 10px;
  }
  .metric b {
    font-size: 13px;
  }
  .metric b[dir="ltr"] {
    font-size: 12px;
  }
  .section {
    padding-top: 23px;
  }
  .grid3,
  .grid2,
  .formrow {
    grid-template-columns: 1fr;
  }
  .grid3 .cover,
  .cover {
    height: 185px;
  }
  .sectionhead h2,
  .pagehead h1 {
    font-size: 25px;
  }
  .sectionhead {
    margin-bottom: 12px;
  }
  .sectionhead .small-link {
    padding: 6px 8px;
    font-size: 10px;
  }
  .hero-copy .badge {
    font-size: 10px;
  }
  .content {
    padding-top: 20px;
  }
  .box,
  .pane {
    padding: 15px;
  }
  .btn {
    padding: 10px 13px;
  }
  .cardbody h3 {
    font-size: 18px;
  }
  .modalback {
    padding: 6px;
  }
  .modal {
    max-height: 96dvh;
  }
  .modalbody {
    padding: 14px;
  }
  .opmain {
    padding: 0 14px 14px;
  }
  .foot-inner {
    display: grid;
  }
  .foot nav {
    gap: 10px 14px;
  }
  .pagehead {
    align-items: end;
  }
  .swatches {
    grid-template-columns: repeat(3, 1fr);
  }
  .statusbar .metric-icon {
    width: 32px;
    height: 32px;
  }
  .tools .cartbtn {
    display: none;
  }
  .grid4 {
    gap: 9px;
  }
  .print-hide {
    display: none;
  }
}
@media print {
  .mast,
  .foot,
  .rail,
  .opbar,
  .btn,
  .iconbtn,
  #toasts,
  .skip,
  .print-hide {
    display: none !important;
  }
  body,
  :root {
    background: white !important;
    color: black !important;
  }
  .box,
  .pane {
    background: white !important;
    color: black !important;
    border-color: #aaa;
  }
  .wrap {
    width: 100%;
  }
}
.hero-copy h1 span {
  background-image: linear-gradient(95deg, var(--accent), var(--glow) 82%);
}
.hero-net:before {
  background:
    linear-gradient(
      calc(var(--dir, 90deg) + 180deg),
      color-mix(in srgb, var(--gradientStart) 97%, transparent),
      color-mix(in srgb, var(--gradientStart) 83%, transparent) 26%,
      color-mix(in srgb, var(--gradientStart) 16%, transparent) 55%,
      transparent 74%
    ),
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--background) 65%, transparent),
      transparent 20%
    );
}
.game,
.pane {
  box-shadow: 0 4px 15px color-mix(in srgb, var(--shadow) 13%, transparent);
}
@media (max-width: 570px) {
  .hero-net:before {
    background: linear-gradient(
      0deg,
      var(--gradientStart) 1%,
      color-mix(in srgb, var(--gradientStart) 96%, transparent) 32%,
      color-mix(in srgb, var(--gradientStart) 80%, transparent) 48%,
      transparent 77%
    );
  }
}

.mode-badge {position:absolute; bottom:12px; right:12px; z-index:1; display:inline-block; color:#fff; background:#a51e32; border:1px solid #ff8893; border-radius:6px; padding:2px 8px; font:bold 11px/1.5 sans-serif; box-shadow:0 2px 5px #15060a66;}
.feature.has-mode-badge {padding-bottom:42px;}

.auth-status {display:inline-flex;align-items:center;gap:.4rem;color:var(--text);font-size:.75rem;white-space:nowrap}.auth-status svg {width:15px;height:15px;color:var(--accent)}.pause-card {position:relative;overflow:hidden;isolation:isolate;text-align:center;padding:clamp(24px,6vw,64px) 24px}.pause-card::before {content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 0%,#8b5cf62b,transparent 67%)}.pause-gem {width:54px;height:54px;display:grid;place-items:center;margin:0 auto 20px;transform:rotate(45deg);border:1px solid #a78bfa;border-radius:14px;background:#4c1d95;box-shadow:0 0 40px #8b5cf633}.pause-gem svg{transform:rotate(-45deg);color:white;width:26px}.pause-card .buttons{justify-content:center;margin-top:24px}.pause-card h1{font-size:clamp(1.4rem,4vw,2.15rem);margin:10px 0}.pause-card .sub{line-height:1.9}

/* ==========================================================================
   Crystal polish layer — a nicer skin over the original skeleton.
   Everything here is additive: no markup contract of the base sheet changes.
   ========================================================================== */
:root {
  --background: #08060f;
  --card: rgba(20, 13, 34, 0.82);
  --sidebar: #100a1c;
  --hover: #1b1230;
  --border: rgba(148, 116, 226, 0.16);
  --text: #f6f2ff;
  --muted: #a99fc4;
  --button: #7c3aed;
  --accent: #c9b6ff;
  --glow: #8b5cf6;
  --active: #2a1a45;
  --gradientStart: #0a0715;
  --gradientEnd: #3b0f7a;
  --shadow: #0a0417;
  --positive: #4ade80;
  --ring: 0 0 0 3px rgba(139, 92, 246, 0.35);
  --lift: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
}

html {
  scroll-behavior: smooth;
}
body {
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(45rem 32rem at 5% 8%, rgba(56, 189, 248, 0.1), transparent 60%),
    linear-gradient(180deg, #0b0716 0%, #08060f 42%, #06040c 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #fff;
}
*:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(#4c2889, #2a1a45);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* ------------------------------------------------------------------ header */
.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(148, 116, 226, 0.14);
  background: linear-gradient(180deg, rgba(10, 6, 18, 0.92), rgba(10, 6, 18, 0.72));
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.mast .identity strong {
  font-size: 16px;
  letter-spacing: 0.2px;
}
.mast .identity small {
  color: var(--accent);
  letter-spacing: 0.32em;
  font-size: 9px;
}
.mast .mark {
  filter: drop-shadow(0 0 14px rgba(139, 92, 246, 0.55));
}
.navbar a {
  position: relative;
  height: auto;
  border-radius: 999px;
  padding: 9px 15px;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.navbar a:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-1px);
}
.navbar a.on {
  color: #fff;
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.32), rgba(76, 29, 149, 0.22));
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.26);
  color: #fff !important;
}
.navbar a.on:after {
  content: none;
}
.headnote {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.22), rgba(56, 189, 248, 0.12));
  border-bottom: 1px solid rgba(148, 116, 226, 0.16);
  font-size: 12.5px;
}

/* ----------------------------------------------------------------- buttons */
.btn {
  border-radius: 12px;
  border: 1px solid rgba(148, 116, 226, 0.22);
  background: rgba(28, 19, 45, 0.9);
  padding: 11px 18px;
  font-weight: 650;
  letter-spacing: 0.2px;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 181, 253, 0.45);
  box-shadow: var(--lift);
}
.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 55%, #4c1d95 100%);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(124, 58, 237, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn.primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 20px 40px -18px rgba(139, 92, 246, 1), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(196, 181, 253, 0.28);
}
.iconbtn {
  border-radius: 13px;
  border: 1px solid rgba(148, 116, 226, 0.2);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.iconbtn:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(139, 92, 246, 0.16);
}
.loginbtn {
  gap: 8px;
}
.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 116, 226, 0.4);
  padding: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}

/* -------------------------------------------------------------------- hero */
.hero-net {
  border-radius: 0 0 34px 34px;
  overflow: hidden;
}
.hero-net:before {
  background:
    radial-gradient(70% 90% at 15% 20%, rgba(8, 4, 16, 0.36), transparent 70%),
    linear-gradient(180deg, rgba(8, 5, 15, 0.18) 0%, rgba(8, 5, 15, 0.72) 62%, #08060f 100%);
}
.hero-copy h1 {
  letter-spacing: -0.5px;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}
.hero-copy h1 span {
  background: linear-gradient(120deg, #e9dcff 0%, #b794ff 40%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy .badge {
  border-radius: 999px;
  border: 1px solid rgba(196, 181, 253, 0.32);
  background: rgba(10, 6, 18, 0.55);
  backdrop-filter: blur(10px);
  padding: 7px 14px;
  font-size: 12px;
}
.statusbar {
  border-block: 1px solid rgba(148, 116, 226, 0.14);
  background: rgba(10, 6, 18, 0.66);
  backdrop-filter: blur(14px);
}

/* ------------------------------------------------------------------- cards */
.section {
  padding-top: 44px;
}
.sectionhead h2,
.sectionhead h1 {
  letter-spacing: -0.3px;
}
.box,
.pane,
.product,
.game,
.article {
  border-radius: 20px;
  border: 1px solid rgba(148, 116, 226, 0.16);
  background:
    linear-gradient(180deg, rgba(30, 20, 48, 0.75), rgba(16, 10, 28, 0.9));
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.box:hover,
.product:hover,
.game:hover,
.article:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 181, 253, 0.38);
  box-shadow: 0 32px 60px -34px rgba(124, 58, 237, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.box h3,
.pane h2,
.pane h3 {
  letter-spacing: -0.2px;
}
.kicker {
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 10.5px;
}
.tabs {
  gap: 8px;
  background: rgba(12, 8, 22, 0.6);
  border: 1px solid rgba(148, 116, 226, 0.14);
  border-radius: 999px;
  padding: 6px;
  display: inline-flex;
  flex-wrap: wrap;
}
.tab {
  border-radius: 999px;
  padding: 8px 15px;
  border: 0;
  font-size: 12.5px;
  transition: background 0.18s ease, color 0.18s ease;
}
.tab:hover {
  background: rgba(139, 92, 246, 0.14);
}
.tab.on {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(109, 40, 217, 0.9));
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(139, 92, 246, 1);
}
.small-link {
  color: var(--accent);
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.small-link:hover {
  color: #fff;
  border-color: rgba(196, 181, 253, 0.6);
}

/* --------------------------------------------------------------- the forms */
.field > span {
  font-size: 12px;
  color: #cfc4e8;
  font-weight: 600;
}
.field input,
.field select,
.field textarea,
.control,
input[type="search"] {
  border-radius: 13px;
  border: 1px solid rgba(148, 116, 226, 0.2);
  background: rgba(9, 6, 16, 0.78);
  padding: 12px 14px;
  font-size: 14px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.field input:hover,
.field select:hover,
.control:hover {
  border-color: rgba(196, 181, 253, 0.36);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.control:focus {
  border-color: rgba(168, 130, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: rgba(14, 9, 24, 0.92);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(169, 159, 196, 0.55);
}
.form {
  display: grid;
  gap: 14px;
}
.form .btn.primary {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 15px;
}

/* ------------------------------------------------------- login / register */
.auth-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  width: min(1080px, 100%);
  margin: 56px auto 80px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(148, 116, 226, 0.2);
  background: rgba(10, 6, 18, 0.72);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  isolation: isolate;
}
.auth-aside {
  position: relative;
  padding: 52px 44px;
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(139, 92, 246, 0.34), transparent 65%),
    linear-gradient(160deg, #1a0f31 0%, #0d0718 60%, #0a0612 100%);
  overflow: hidden;
}
.auth-aside:after {
  content: "";
  position: absolute;
  inset: auto -30% -60% -10%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.18), transparent);
  pointer-events: none;
}
.auth-aside h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.35;
  margin: 16px 0 10px;
  letter-spacing: -0.6px;
}
.auth-aside h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #fff 0%, #c4b5fd 45%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-aside .sub {
  color: #bfb3d8;
  max-width: 42ch;
  line-height: 2;
}
.auth-perks {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.auth-perks li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.auth-perks i,
.auth-perks .perk-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 1px solid rgba(196, 181, 253, 0.24);
  background: rgba(139, 92, 246, 0.14);
  color: #ddd0ff;
}
.auth-perks strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 3px;
}
.auth-perks small {
  color: #a99fc4;
  font-size: 12px;
  line-height: 1.9;
}
.auth-gem {
  position: absolute;
  inset-inline-start: -90px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    conic-gradient(from 140deg, rgba(139, 92, 246, 0.22), rgba(56, 189, 248, 0.12), transparent 70%);
  filter: blur(6px);
  opacity: 0.55;
  animation: gemPulse 9s ease-in-out infinite;
  pointer-events: none;
}
.auth-card {
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(18, 12, 30, 0.9), rgba(11, 7, 20, 0.96));
  border-inline-start: 1px solid rgba(148, 116, 226, 0.14);
}
.auth-card .identity {
  margin-bottom: 26px;
}
.auth-card h2 {
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: -0.4px;
}
.auth-card .sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 26px;
  line-height: 1.9;
}
.auth-card details {
  border-radius: 13px;
  border: 1px dashed rgba(148, 116, 226, 0.28);
  padding: 10px 14px;
  background: rgba(139, 92, 246, 0.05);
}
.auth-card details summary {
  cursor: pointer;
  font-size: 12.5px;
  color: var(--accent);
}
.auth-card details .field {
  margin-top: 12px;
}
.auth-card .small-link {
  margin-top: 18px;
  font-size: 12.5px;
  align-self: center;
}
.auth-card .form {
  gap: 16px;
}
.auth-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.auth-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #c7bce2;
  border: 1px solid rgba(148, 116, 226, 0.2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 6px 11px;
}
@keyframes gemPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* -------------------------------------------------------------- dashboards */
.grid3 > .box,
.grid2 > .box {
  padding: 22px;
}
.listrow {
  border-color: rgba(148, 116, 226, 0.12);
}
.notice {
  border-radius: 14px;
  border: 1px solid rgba(148, 116, 226, 0.24);
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.12), rgba(56, 189, 248, 0.06));
  padding: 14px 16px;
}
.empty {
  border-radius: 18px;
  border: 1px dashed rgba(148, 116, 226, 0.26);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

/* ------------------------------------------------------------------ footer */
.foot {
  margin-top: 70px;
  border-top: 1px solid rgba(148, 116, 226, 0.14);
  background: linear-gradient(180deg, rgba(10, 6, 18, 0.4), rgba(6, 4, 10, 0.92));
}
.foot nav a {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12.5px;
  color: #b6aacd;
  transition: color 0.18s ease, background 0.18s ease;
}
.foot nav a:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.14);
}
.foot p {
  color: rgba(169, 159, 196, 0.75);
  font-size: 11.5px;
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  main > .section,
  .auth-wrap,
  main > .pane {
    animation: riseIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  main > .section:nth-child(2) {
    animation-delay: 0.06s;
  }
  main > .section:nth-child(3) {
    animation-delay: 0.12s;
  }
  @keyframes riseIn {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .auth-wrap {
    grid-template-columns: 1fr;
    margin: 26px auto 60px;
    border-radius: 24px;
  }
  .auth-aside {
    padding: 34px 26px;
    order: 2;
  }
  .auth-aside .auth-perks {
    display: none;
  }
  .auth-card {
    padding: 34px 26px;
    border-inline-start: 0;
    border-block-end: 1px solid rgba(148, 116, 226, 0.14);
  }
  .mast .wrap {
    gap: 10px;
  }
  .navbar a {
    padding: 7px 10px;
    font-size: 12.5px;
  }
}

.auth-stats {
  display: flex;
  gap: 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 116, 226, 0.18);
}
.auth-stats div {
  display: grid;
  gap: 4px;
}
.auth-stats b {
  font-size: 20px;
  letter-spacing: -0.3px;
  background: linear-gradient(120deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-stats small {
  color: #9a8fb8;
  font-size: 11px;
}

/* the "page could not load" fallback keeps the site's frame around it */
.failcard {
  max-width: 560px;
  margin: 90px auto;
  padding: 38px 34px;
  text-align: center;
  border-radius: 24px;
}
.failcard > svg {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  color: var(--accent);
  opacity: 0.9;
}
.failcard h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.failcard .sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin: 0 0 22px;
  word-break: break-word;
}
.failcard .buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------------------------- site frame & new footer */
body {
  min-height: 100vh;
  min-height: 100dvh;
}
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
#app > main {
  flex: 1 0 auto;
}
.foot {
  margin-top: auto;
  padding-top: 46px;
  background:
    radial-gradient(60% 120% at 80% 0%, rgba(124, 58, 237, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(10, 6, 18, 0.55), rgba(6, 4, 10, 0.96));
  border-top: 1px solid rgba(148, 116, 226, 0.16);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(120px, 1fr));
  gap: 34px;
  align-items: start;
  padding-bottom: 34px;
}
.foot-brand .identity {
  margin-bottom: 14px;
}
.foot-note {
  color: #9d92b8;
  font-size: 12px;
  line-height: 2;
  margin: 0 0 16px;
  max-width: 34ch;
}
.foot-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid rgba(148, 116, 226, 0.24);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 12px;
  font-size: 11.5px;
  color: #cbbfe6;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.chip:hover {
  color: #fff;
  border-color: rgba(196, 181, 253, 0.5);
  background: rgba(139, 92, 246, 0.16);
}
.chip svg {
  width: 14px;
  height: 14px;
}
.foot .foot-col {
  display: grid;
  align-content: start;
  gap: 10px;
}
.foot .foot-col h4 {
  margin: 0 0 4px;
  font-size: 12px;
  color: #fff;
  letter-spacing: 0.02em;
}
.foot .foot-col a {
  font-size: 12.5px;
  white-space: nowrap;
  color: #a99fc4;
  width: fit-content;
  transition: color 0.16s ease, transform 0.16s ease;
}
.foot .foot-col a:hover {
  color: #e9dcff;
  transform: translateX(-2px);
}
.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(148, 116, 226, 0.12);
  padding: 16px 0 calc(18px + env(safe-area-inset-bottom));
  font-size: 11.5px;
  color: rgba(169, 159, 196, 0.8);
}
.foot-made {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.foot-made svg {
  width: 14px;
  height: 14px;
  color: var(--glow);
}

/* sign-in gate card */
.gatecard {
  max-width: 520px;
  margin: 64px auto;
  padding: 40px 34px;
  text-align: center;
  border-radius: 26px;
  border: 1px solid rgba(148, 116, 226, 0.2);
  background: linear-gradient(180deg, rgba(28, 18, 46, 0.85), rgba(11, 7, 20, 0.95));
  box-shadow: 0 40px 80px -56px #000;
}
.gate-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 18px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  background: rgba(139, 92, 246, 0.16);
  color: #ddd0ff;
}
.gate-ico svg {
  width: 24px;
  height: 24px;
}
.gatecard h1 {
  font-size: 22px;
  margin: 0 0 10px;
}
.gatecard .sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
  margin: 0 0 24px;
}
.gatecard .buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  .foot-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* avatars survive a missing media file: the initial shows through */
.avatar.initials {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  border: 1px solid rgba(196, 181, 253, 0.24);
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.34), rgba(56, 189, 248, 0.14));
  color: #efe7ff;
  font-weight: 700;
  font-size: 15px;
  overflow: hidden;
  flex: none;
}
.avatar.initials .avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

img.is-broken {
  display: none !important;
}

@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
    min-width: 0;
  }
  .foot .foot-col {
    min-width: 0;
  }
  .foot .foot-col a {
    white-space: normal;
    font-size: 12px;
  }
}

/* --------------------------------------------------- compact footer (v2) */
.foot {
  padding-top: 26px;
}
.foot-grid {
  gap: 24px;
  padding-bottom: 20px;
}
.foot-brand .identity {
  margin-bottom: 8px;
}
.foot-brand .mark {
  width: 24px;
  height: 30px;
}
.foot-note {
  font-size: 11.5px;
  line-height: 1.9;
  margin-bottom: 10px;
}
.foot .foot-col {
  gap: 7px;
}
.foot .foot-col h4 {
  font-size: 11.5px;
  margin-bottom: 2px;
}
.foot .foot-col a {
  font-size: 11.5px;
}
.chip {
  padding: 5px 10px;
  font-size: 11px;
}
.chip svg {
  width: 12px;
  height: 12px;
}
.foot-bottom {
  padding: 11px 0 calc(12px + env(safe-area-inset-bottom));
  font-size: 10.5px;
}
.foot-made svg {
  width: 12px;
  height: 12px;
}

/* small helper under the login form: session-cookie troubleshooting */
.auth-help-note {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--dim, #A79FC4);
}
.auth-help-note a {
  color: var(--accent, #C4B5FD);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------- compact footer (v3, small) */
.foot {
  padding-top: 14px;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 20, 0.6));
}
.foot-grid {
  gap: 18px;
  padding-bottom: 12px;
}
.foot-brand .identity {
  margin-bottom: 6px;
  gap: 8px;
}
.foot-brand .identity strong {
  font-size: 12.5px;
}
.foot-brand .identity small {
  font-size: 8.5px;
  letter-spacing: 0.14em;
}
.foot-brand .mark {
  width: 18px;
  height: 24px;
}
.foot-note {
  font-size: 10.5px;
  line-height: 1.85;
  margin: 0 0 8px;
  max-width: 36ch;
}
.foot .foot-tags {
  gap: 6px;
}
.foot .foot-col {
  gap: 3px;
}
.foot .foot-col h4 {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  margin: 0 0 3px;
  opacity: 0.75;
}
.foot .foot-col a {
  font-size: 10.5px;
  line-height: 1.65;
}
.chip {
  padding: 3px 8px;
  font-size: 9.5px;
  gap: 5px;
}
.chip svg {
  width: 11px;
  height: 11px;
}
.foot-bottom {
  padding: 7px 0 calc(8px + env(safe-area-inset-bottom));
  font-size: 9.5px;
  gap: 8px;
  opacity: 0.85;
}
.foot-made svg {
  width: 11px;
  height: 11px;
}

/* card shown when a page needs the PostgreSQL private database */
.dbcard {
  max-width: 620px;
  margin: 56px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 26px;
}
.dbcard > svg {
  width: 44px;
  height: 44px;
  color: var(--accent, #8b5cf6);
  opacity: 0.9;
}
.dbcard h2 {
  margin: 2px 0 0;
  font-size: 19px;
}
.dbcard .sub {
  color: var(--dim, #a79fc4);
  font-size: 13px;
  line-height: 2;
  margin: 0;
}
.dbcard .buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.dbcard .small-note {
  font-size: 11px;
  opacity: 0.75;
}
.dbcard .mono-note {
  font-size: 11px;
  direction: ltr;
  text-align: left;
  background: #0e0a18;
  border: 1px solid var(--line, #2a2342);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .foot-grid {
    gap: 14px;
    padding-bottom: 10px;
  }
  .foot-note {
    font-size: 10px;
  }
  .foot .foot-col a {
    font-size: 10px;
  }
}

/* ------------------------------------------- footer v4: one compact band */
.foot {
  padding-top: 10px;
}
.foot-grid {
  align-items: start;
  gap: 14px;
  padding-bottom: 8px;
}
.foot-note {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
  max-width: 42ch;
}
.foot .foot-col {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 9px;
}
.foot .foot-col h4 {
  margin: 0;
  font-size: 9px;
  opacity: 0.6;
}
.foot .foot-col a {
  font-size: 10px;
  line-height: 1.9;
  white-space: nowrap;
}
.foot .foot-col a + a::before {
  content: "·";
  margin-inline-end: 7px;
  opacity: 0.35;
}
.foot .foot-tags {
  margin-top: 2px;
}
.foot-bottom {
  padding: 6px 0 calc(7px + env(safe-area-inset-bottom));
  font-size: 9px;
}
@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .foot .foot-col h4 {
    min-width: 100%;
  }
  .foot-note {
    -webkit-line-clamp: 3;
    font-size: 10px;
  }
}

/* ---------------------------------------- footer v5: tighter mobile layout */
@media (max-width: 760px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
  .foot-brand .identity {
    margin-bottom: 4px;
  }
  .foot-note {
    -webkit-line-clamp: 2;
    font-size: 10px;
    margin-bottom: 4px;
    max-width: none;
  }
  .foot .foot-tags {
    display: none;
  }
  .foot .foot-col h4 {
    min-width: 100%;
    margin-bottom: 1px;
  }
  .foot-bottom {
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
  }
}

/* -------------------------------------------- footer v6: mobile minimal */
@media (max-width: 620px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-bottom: 6px;
  }
  .foot .foot-col:nth-of-type(2) {
    display: none;      /* سومین ستون (جامعه) در موبایل حذف می‌شود */
  }
  .foot .foot-col {
    gap: 0 8px;
  }
  .foot .foot-col h4 {
    min-width: auto;
    margin-inline-end: 2px;
  }
  .foot-made {
    display: none;
  }
  .foot-bottom {
    font-size: 8.5px;
  }
}

/* ------------------------------------- footer v7: links really inline */
.foot .foot-col a {
  display: inline-block;
  margin: 0;
  padding: 0;
}
.foot .foot-col h4 {
  display: inline-block;
}
.foot .foot-col {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
}

/* پیام درون‌خطی فرم ورود (حساب ناموجود / رمز نادرست) */
.authnote{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:12px 0 0;padding:10px 14px;border-radius:12px;background:rgba(126,34,55,.18);border:1px solid #5B2230;color:#FECACA;font-size:13px;line-height:1.9;text-align:start}
.authnote[hidden]{display:none}
.authnote .btn{white-space:nowrap}

/* ---------------------------------------------------------- footer v8 (جمع‌وجور) */
.foot {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 116, 226, 0.16);
  background: linear-gradient(180deg, rgba(10, 6, 18, 0.5), rgba(6, 4, 10, 0.94));
}
.foot .foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding-bottom: 14px;
}
.foot .foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.foot .foot-brand .identity {
  margin: 0;
}
.foot .foot-brand .identity small {
  display: none;
}
.foot .foot-note {
  margin: 0;
  max-width: 42ch;
  font-size: 12px;
  line-height: 1.9;
  color: #9d92b8;
  border-inline-start: 1px solid rgba(148, 116, 226, 0.2);
  padding-inline-start: 12px;
}
.foot .foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
}
.foot .foot-links a {
  font-size: 12.5px;
  color: #a99fc4;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease;
}
.foot .foot-links a:hover {
  color: #fff;
  background: rgba(139, 92, 246, 0.16);
}
.foot .foot-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.foot .foot-tags .chip {
  padding: 5px 11px;
  font-size: 11.5px;
}
.foot .foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 10px 0 14px;
  border-top: 1px solid rgba(148, 116, 226, 0.1);
  font-size: 11.5px;
  color: #7e7699;
}
.foot .foot-bottom .foot-made {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.foot .foot-bottom .foot-made svg {
  width: 13px;
  height: 13px;
}
@media (max-width: 760px) {
  .foot .foot-row {
    justify-content: center;
    text-align: center;
  }
  .foot .foot-note {
    display: none;
  }
  .foot .foot-bottom {
    justify-content: center;
  }
}
@media (max-width: 760px) {
  .foot .foot-links .foot-extra {
    display: none;
  }
  .foot .foot-links {
    justify-content: center;
    gap: 0 2px;
  }
  .foot .foot-row {
    padding-bottom: 10px;
    gap: 10px;
  }
  .foot .foot-tags .chip {
    padding: 4px 10px;
  }
}
@media (max-width: 760px) {
  .foot {
    margin-top: 22px;
    padding-top: 14px;
  }
  .foot .foot-row {
    padding-bottom: 6px;
    gap: 8px;
  }
  .foot .foot-tags {
    display: none;
  }
  .foot .foot-links a {
    font-size: 12px;
    padding: 4px 7px;
  }
  .foot .foot-bottom {
    padding: 8px 0 12px;
    font-size: 11px;
  }
}

/* ------------------------------------------------- اعلان‌ها (زنگوله) v1 */
.bellbtn {
  position: relative;
}
.bellbtn.has {
  color: #e9dcff;
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(139, 92, 246, 0.16);
}
.bell-dot {
  position: absolute;
  top: -5px;
  inset-inline-start: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px #0b0714;
}
.notif-list {
  display: grid;
  gap: 9px;
}
.notif-list.tight {
  gap: 7px;
}
.notif {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 116, 226, 0.16);
  background: linear-gradient(180deg, rgba(24, 18, 40, 0.85), rgba(16, 12, 28, 0.85));
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}
.notif:hover {
  border-color: rgba(196, 181, 253, 0.42);
  transform: translateY(-1px);
}
.notif.unread {
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(180deg, rgba(46, 30, 78, 0.9), rgba(22, 16, 38, 0.9));
}
.notif-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(148, 116, 226, 0.22);
  background: rgba(139, 92, 246, 0.13);
  color: #cbb8ff;
}
.notif-ic svg {
  width: 18px;
  height: 18px;
}
.notif-ic.shop {
  color: #ffd79a;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
}
.notif-ic.support {
  color: #9fe8d0;
  background: rgba(16, 185, 129, 0.13);
  border-color: rgba(16, 185, 129, 0.26);
}
.notif-ic.team {
  color: #bfd0ff;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.28);
}
.notif-ic.content {
  color: #f4c2ff;
  background: rgba(217, 70, 239, 0.13);
  border-color: rgba(217, 70, 239, 0.26);
}
.notif-body {
  display: grid;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.notif-title {
  font-size: 13.5px;
  line-height: 1.85;
  color: #efeafb;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.notif.compact .notif-title {
  font-size: 13px;
  font-weight: 500;
}
.notif-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8f86a9;
}
.notif-meta svg {
  width: 13px;
  height: 13px;
}
.notif-meta i {
  font-style: normal;
  opacity: 0.5;
}
.notif-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: #a78bfa;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
}
.notifpane .notifhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.notifpane .notifhead h2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.notifpane .notifhead h2 svg {
  width: 18px;
  height: 18px;
  color: #c4b5fd;
}
.notif-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 34px 18px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 116, 226, 0.22);
  color: #8f86a9;
  text-align: center;
}
.notif-empty svg {
  width: 26px;
  height: 26px;
  opacity: 0.7;
}
.notif-empty strong {
  color: #d8cff0;
  font-size: 13.5px;
}
.notif-empty span {
  font-size: 12px;
}

/* ==========================================================================
   پنل‌های مدیریتی — پوستهٔ تازه (رنگ‌ها همان پالت قبلی: بنفش/تیره)
   ========================================================================== */
.ops,
.ops.founder,
.ops.owner,
.ops.developer {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  min-height: 100vh;
  background: radial-gradient(1100px 600px at 88% -10%, rgba(139, 92, 246, 0.10), transparent 62%),
    radial-gradient(900px 520px at 6% 6%, rgba(139, 92, 246, 0.06), transparent 58%), var(--bg, #0b0714);
}
.ops .rail,
.ops.founder .rail,
.ops.owner .rail,
.ops.developer .rail {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px 14px;
  background: linear-gradient(180deg, rgba(24, 16, 38, 0.96), rgba(15, 9, 26, 0.98));
  border-inline-end: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.ops .rail .identity {
  margin: 2px 4px 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.16);
}
.ops .rail .kicker,
.ops .rail-panel {
  margin: 0 4px 2px;
}
.ops .rail-panel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  font-size: 11.5px;
  border-radius: 999px;
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.32);
}
.rail-groups {
  display: grid;
  gap: 14px;
  flex: 1 1 auto;
  overflow: auto;
  padding-inline-end: 2px;
}
.rail-group > span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: #7d6fa0;
  padding: 0 10px 5px;
}
.rail-group nav {
  display: grid;
  gap: 2px;
}
.ops .rail-nav a,
.rail-group nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  font-size: 12.8px;
  border-radius: 9px;
  color: var(--navigation, #cbbfe6);
  border: 1px solid transparent;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.rail-group nav a svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
  flex: 0 0 auto;
}
.rail-group nav a:hover {
  background: rgba(139, 92, 246, 0.12);
  color: #f3ecff;
}
.rail-group nav a.on {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.24), rgba(139, 92, 246, 0.06));
  border-color: rgba(139, 92, 246, 0.38);
  color: #ffffff;
  font-weight: 700;
}
.rail-group nav a.on::before {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: #a78bfa;
}
.ops-railfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 6px 2px;
  border-top: 1px solid rgba(139, 92, 246, 0.16);
  font-size: 11.5px;
  color: var(--muted);
}
.ops-railfoot .who {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.ops-railfoot .who b {
  color: #efeafb;
  font-size: 12px;
}
.opmain {
  min-width: 0;
  /* بدون فاصلهٔ بالا: نوار چسبانِ پنل باید به بالای صفحه بچسبد */
  padding: 0 clamp(14px, 3vw, 34px) 46px;
}
.opbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 calc(clamp(14px, 3vw, 34px) * -1) 20px;
  padding: 15px clamp(14px, 3vw, 34px) 13px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(11, 7, 20, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.opbar .crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  /* قاعدهٔ سراسری .crumb حاشیهٔ ۱۵ پیکسلی دارد و نوار پنل را کج و بلند می‌کرد */
  margin: 0;
}
.opbar > * {
  align-self: center;
}
.opbar .crumb b {
  color: #efeafb;
  font-weight: 700;
}
.opbar .acct-link{display:inline-flex;align-items:center;gap:7px;padding:4px 10px 4px 4px}
.opbar .acct-ava{width:25px;height:25px;flex:none;border-radius:50%;display:grid;place-items:center;
  font-size:12px;font-weight:700;line-height:1;color:#fff;background:linear-gradient(135deg,#7c3aed,#a78bfa);
  box-shadow:0 4px 12px -6px #7c3aed}
.opbar .acct-ava svg{width:15px;height:15px}
@media (max-width: 940px) {
  .opbar .flex > .small-link.acct-link{width:40px;height:40px;padding:0;border-radius:12px;justify-content:center}
  .opbar .acct-ava{width:28px;height:28px;font-size:13px}
  .opbar .acct-ava svg{width:16px;height:16px}
  .opbar .acct-label{display:none}
}
.opbar .crumb svg {
  width: 15px;
  opacity: 0.7;
}
.ophead-t {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 6px 0 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.14);
  margin-bottom: 18px;
}
.ophead-t .kicker {
  margin-bottom: 4px;
}
.ophead-t h1 {
  margin: 0;
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: -0.01em;
}
.ophead-t .sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 62ch;
}
.ophead-t .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.opbody {
  display: grid;
  gap: 16px;
}
.ops .pane {
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28, 20, 44, 0.9), rgba(19, 13, 32, 0.9));
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.ops .pane h2,
.ops .pane h3 {
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.ops .pane h2 .flag,
.ops .pane h2 .pill {
  font-weight: 500;
}
.ops .box {
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.22);
}
.ops .box .big {
  font-size: 22px;
  display: block;
  margin-top: 4px;
  letter-spacing: -0.01em;
}
.ops .box.tile {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
  transition: transform 0.14s, border-color 0.14s, background 0.14s;
}
.ops .box.tile:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.13);
}
.ops .box.tile .square {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  flex: 0 0 auto;
}
.ops .box.tile strong {
  flex: 1 1 auto;
  font-size: 12.8px;
}
.ops .listrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
  font-size: 12.6px;
}
.ops .listrow:last-child {
  border-bottom: 0;
}
.ops .listrow strong {
  font-weight: 600;
  color: #ddd6fe;
}
.ops .tablewrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
  max-height: 62vh;
}
.ops table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.4px;
}
.ops table.data thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #1a1229;
  color: #b9a9dd;
  font-weight: 600;
  text-align: start;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.28);
  white-space: nowrap;
}
.ops table.data tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  vertical-align: middle;
}
.ops table.data tbody tr:hover td {
  background: rgba(139, 92, 246, 0.07);
}
.ops .grid2,
.ops .grid3,
.ops .grid4 {
  gap: 12px;
}
.ops .section {
  margin: 0;
}
/* کشوی فهرست پنل روی موبایل فقط در control.js تعریف می‌شود.
   نسخهٔ قبلی همین قاعده‌ها اینجا هم بود و خطِ
   html[dir="rtl"] .ops .rail{transform:translateX(100%)}
   به‌خاطر وزن بیشترش حالتِ «باز» را هم خنثی می‌کرد؛ یعنی روی گوشی
   فهرست پنل اصلاً باز نمی‌شد. */
@media (max-width: 940px) {
  .opmain {
    padding-top: 0;
  }
}
.ops-switch {
  appearance: none;
  padding: 5px 10px;
  font: inherit;
  font-size: 11.5px;
  color: #ddd6fe;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.32);
  border-radius: 999px;
  cursor: pointer;
}
.ops-switch option {
  background: #17102a;
  color: #efeafb;
}
.ops .box.stat {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-areas: "ic kicker" "ic big";
  align-items: center;
  column-gap: 10px;
}
.ops .box.stat .square {
  grid-area: ic;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
}
.ops .box.stat .kicker {
  grid-area: kicker;
  margin: 0;
}
.ops .box.stat .big {
  grid-area: big;
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  color: #f5f1ff;
}
.ops .pane {
  transition: border-color 0.16s, box-shadow 0.16s;
}
.ops .pane:hover {
  border-color: rgba(139, 92, 246, 0.32);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
}

/* ---- صفحه‌های خطا (۴۰۳ / ۴۰۴ / ۵۰۰ …) ---- */
/* صفحهٔ خطا همیشه وسطِ کادر دید باشد، نه چسبیده به بالا */
.errwrap{width:100%;max-width:640px;margin:0 auto;display:flex;align-items:center;justify-content:center;
  min-height:calc(100vh - 240px);min-height:calc(100dvh - 240px);padding:8px 0}
.pane.errpage{position:relative;overflow:hidden;width:100%;max-width:600px;margin:0;text-align:center;
  padding:clamp(26px,4vw,40px) clamp(18px,4vw,32px);border-radius:22px}
.pane.errpage::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse at 50% -10%,rgba(139,92,246,.20),transparent 62%)}
.pane.errpage>*{position:relative}
.errpage .eicon{width:62px;height:62px;margin:0 auto 12px;border-radius:18px;display:grid;place-items:center;
  line-height:0;color:#f87171;background:rgba(248,113,113,.10);border:1px solid rgba(248,113,113,.30);
  box-shadow:0 0 0 6px rgba(248,113,113,.04)}
.errpage .eicon svg{width:29px!important;height:29px!important;display:block}
.errpage .eicon.info{color:#c4b5fd;background:rgba(139,92,246,.12);border-color:rgba(139,92,246,.32);box-shadow:0 0 0 6px rgba(139,92,246,.05)}
.errpage .ecode{font-size:clamp(58px,13vw,96px);font-weight:900;line-height:.95;letter-spacing:.03em;
  background:linear-gradient(180deg,#e9d5ff 0%,#a78bfa 45%,#7c3aed 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 8px 24px rgba(124,58,237,.42))}
.errpage h2{margin:6px 0 8px;font-size:clamp(18px,3vw,23px);display:block;text-align:center}
.errpage .sub{display:block;text-align:center}
.errpage .ecode,.errpage .eicon{text-align:center}
.errpage .sub{margin:0 auto;max-width:44ch;line-height:2}
.errpage .buttons{justify-content:center;margin-top:20px}
.errpage .etips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:20px;padding-top:16px;
  border-top:1px solid rgba(139,92,246,.14)}
.errpage .etip{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#9c90b8;text-decoration:none;
  padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.03);border:1px solid rgba(139,92,246,.16)}
.errpage .etip svg{width:14px;height:14px;opacity:.85}
.errpage .etip:hover{color:#ede9fe;background:rgba(139,92,246,.16)}
[data-theme="light"] .errpage .etip{background:rgba(139,92,246,.06);color:#6b5f88}
@media(max-width:940px){.errwrap{min-height:calc(100vh - 200px);min-height:calc(100dvh - 200px)}}
@media(prefers-reduced-motion:no-preference){
  .errpage .ecode{animation:errPop .45s ease-out both}
  @keyframes errPop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
}

/* ---- اسکین اعضای تیم ---- */
.skin-grid{align-items:start}
.pane.skin-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;align-items:center;padding:16px}
.skin-figure{width:76px;height:152px;display:grid;place-items:center;border-radius:12px;
  background:linear-gradient(180deg,rgba(139,92,246,.16),rgba(139,92,246,.05));
  border:1px solid rgba(139,92,246,.28);overflow:hidden}
.skin-figure img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.skin-empty{display:grid;place-items:center;color:#8b7cb6}
.skin-empty svg{width:26px;height:26px}
.skin-meta{display:grid;gap:5px;min-width:0}
.skin-meta strong{font-size:14px}
.skin-meta .flag{justify-self:start}
.skin-meta small{color:var(--muted,#9c90b8);font-size:11.5px;overflow:hidden;text-overflow:ellipsis}
.skin-card .buttons{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.skin-card .buttons .btn{cursor:pointer}
.avatar.has-skin{background:rgba(139,92,246,.14);overflow:hidden}
.avatar .skin-head{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;display:block}
.staff-grid{align-items:start}
.box.staff-card{display:grid;justify-items:center;text-align:center;gap:8px;padding:20px 16px}
.staff-skin{width:128px;height:236px;display:grid;place-items:center;border-radius:16px;
  background:radial-gradient(120px 150px at 50% 18%,rgba(139,92,246,.22),transparent 70%),rgba(139,92,246,.06);
  border:1px solid rgba(139,92,246,.24)}
.staff-skin img{width:112px;height:224px;object-fit:contain;image-rendering:pixelated}
.staff-noskin{color:#8b7cb6}
.staff-noskin svg{width:34px;height:34px}
.box.staff-card h3{margin:6px 0 0}
.box.staff-card .sub{margin:0;font-size:12.5px}
@media (max-width:560px){
  .pane.skin-card{grid-template-columns:58px minmax(0,1fr)}
  .skin-figure{width:58px;height:116px}
  .staff-skin{width:104px;height:192px}
  .staff-skin img{width:92px;height:184px}
}

/* ---- دکمهٔ «ورود به پنل …» در هدر، کنار حساب کاربری ---- */
.head-panel{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border-radius:8px;
  font-size:12.5px;font-weight:700;line-height:1.5;white-space:nowrap;text-decoration:none;color:#f1ebff;
  background:linear-gradient(180deg,rgba(139,92,246,.30),rgba(139,92,246,.13));
  border:1px solid rgba(139,92,246,.48);transition:background .15s,border-color .15s,transform .15s}
.head-panel svg{width:16px;height:16px;flex:0 0 auto}
.head-panel:hover{background:linear-gradient(180deg,rgba(139,92,246,.42),rgba(139,92,246,.2));
  border-color:rgba(167,139,250,.72);color:#fff}
/* «حساب کاربری» نباید به‌خاطر دکمهٔ تازه دو خطی شود */
.tools .loginbtn{white-space:nowrap}
/* روی صفحه‌های باریک فقط نشان سپر می‌ماند تا نوار بالا شلوغ نشود */
@media (max-width:1300px){
  .head-panel span{display:none}
  .head-panel{padding:9px;gap:0}
}
@media (max-width:790px){
  .head-panel{width:33px;height:33px;justify-content:center;padding:0}
  .head-panel svg{width:17px;height:17px}
  .tools .loginbtn{padding:9px 10px;gap:6px}
}

/* ---- پیشخوان بازیکن ---- */
.dash-top{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:14px;margin-bottom:14px}
.pane.dash-id{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:18px}
.dash-avatar{width:66px;height:66px;flex:0 0 auto;border-radius:18px;overflow:hidden;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(139,92,246,.3),rgba(139,92,246,.08));border:1px solid rgba(139,92,246,.38)}
.dash-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.dash-avatar .initials{font-size:25px;font-weight:800;color:#ddd6fe}
.dash-who{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto}
.dash-who strong{font-size:16.5px}
.dash-who .flag{align-self:flex-start}
.dash-who small{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis}
.dash-idbtns{display:flex;gap:8px;margin-inline-start:auto}
.dash-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dash-stat{display:grid;gap:3px;padding:14px;border-radius:14px;text-decoration:none;color:inherit;
  background:linear-gradient(180deg,rgba(28,18,46,.9),rgba(17,11,32,.92));border:1px solid rgba(139,92,246,.22);
  transition:border-color .15s,transform .15s,box-shadow .15s}
.dash-stat .square{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;
  background:rgba(139,92,246,.16);color:#c4b5fd;margin-bottom:4px}
.dash-stat .square svg{width:16px;height:16px}
.dash-stat b{font-size:19px;color:#f5f1ff}
.dash-stat span{font-size:11.5px;color:var(--muted)}
.dash-stat:hover{border-color:rgba(139,92,246,.5);transform:translateY(-1px);box-shadow:0 12px 26px rgba(0,0,0,.35)}
.dash-body .pane h2{display:flex;align-items:center;gap:8px}
.dash-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.dash-link{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;text-decoration:none;
  font-size:12.5px;color:#cbbfe6;background:rgba(139,92,246,.07);border:1px solid rgba(139,92,246,.16)}
.dash-link svg{width:15px;height:15px;opacity:.85}
.dash-link:hover{background:rgba(139,92,246,.16);color:#fff}
@media(max-width:820px){
  .dash-top{grid-template-columns:minmax(0,1fr)}
  .dash-links{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:520px){
  .dash-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .dash-stat{padding:10px 8px;gap:2px;border-radius:12px}
  .dash-stat .square{width:26px;height:26px;border-radius:8px;margin-bottom:2px}
  .dash-stat .square svg{width:14px;height:14px}
  .dash-stat b{font-size:15px}
  .dash-stat span{font-size:10.5px}
  .pane.dash-id{padding:14px;gap:10px}
  .dash-avatar{width:54px;height:54px;border-radius:14px}
  .dash-avatar .initials{font-size:21px}
  .dash-who strong{font-size:15px}
  .dash-idbtns{width:100%;margin-inline-start:0}
  .dash-idbtns .btn{width:100%;justify-content:center}
}

/* ===================== کادر کد ۶ رقمی · بازیابی رمز ===================== */
.otp-field{display:flex;flex-direction:column;gap:9px;margin:4px 0 6px;width:100%;min-width:0}
.otp-label{font-size:12.5px;color:var(--muted)}
.otp-row{display:flex;gap:8px;direction:ltr;justify-content:space-between;unicode-bidi:isolate;width:100%;min-width:0}
/* width:0 لازم است: ورودی‌ها عرض ذاتی دارند و بدون آن کارت روی موبایل پهن‌تر از صفحه می‌شد */
.otp-cell{flex:1 1 0;width:0;min-width:0;max-width:60px;min-height:52px;height:54px;text-align:center;
  font:700 22px/1 Vazirmatn,Tahoma,sans-serif;color:#fff;padding:0;
  background:rgba(11,7,20,.72);border:1.5px solid rgba(148,116,226,.3);border-radius:14px;outline:none;
  transition:border-color .15s,box-shadow .15s,transform .12s,background .15s;-moz-appearance:textfield}
.otp-cell::-webkit-outer-spin-button,.otp-cell::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.otp-cell:hover{border-color:rgba(167,139,250,.55)}
.otp-cell:focus{border-color:var(--glow);box-shadow:0 0 0 4px rgba(139,92,246,.2);transform:translateY(-1px)}
.otp-cell.on{background:linear-gradient(180deg,rgba(124,58,237,.32),rgba(76,29,149,.22));border-color:rgba(167,139,250,.8)}
.otp-row.ready .otp-cell{border-color:rgba(72,207,159,.75);box-shadow:none}
.otp-row.shake{animation:otpshake .4s ease}
@keyframes otpshake{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
.otp-hint{font-size:11px;color:#8c83a3}
.code-card{margin-top:16px;display:flex;flex-direction:column;gap:12px;min-width:0;
  background:linear-gradient(180deg,rgba(124,58,237,.1),rgba(18,11,32,.6));
  border:1px solid rgba(148,116,226,.26);border-radius:18px;padding:18px}
.code-head{display:flex;gap:12px;align-items:center}
.code-head strong{display:block;font-size:14.5px;color:#fff}
.code-head small{display:block;margin-top:3px;font-size:11.8px;color:var(--muted);line-height:1.8}
.code-head small b{color:var(--accent);font-weight:600;unicode-bidi:isolate;overflow-wrap:anywhere}
.code-head>div{min-width:0}
.code-ico{width:42px;height:42px;flex:none;border-radius:13px;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(124,58,237,.9),rgba(167,139,250,.55));color:#fff;box-shadow:0 6px 18px -8px #7c3aed}
.code-ico svg{width:20px;height:20px}
.codeform{gap:10px;min-width:0}
.code-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:2px}
.code-actions .btn{flex:1 1 150px;justify-content:center}
.resend-btn.waiting,.resend-btn:disabled{opacity:.5;cursor:not-allowed;filter:saturate(.6)}
.resend-btn svg{width:15px;height:15px}
.code-foot{display:flex;gap:7px;align-items:flex-start;margin:0;font-size:11.8px;color:var(--muted);line-height:1.9}
.code-foot svg{width:14px;height:14px;flex:none;margin-top:3px;opacity:.8}
.btn.linky{background:none;border:none;box-shadow:none;padding:0 3px;height:auto;min-height:0;
  color:var(--accent);font-size:11.8px;text-decoration:underline;display:inline}
.btn.linky:hover{color:#fff;background:none}
.auth-steps{display:flex;gap:7px;list-style:none;padding:0;margin:0 0 16px}
.auth-steps li{flex:1 1 0;min-width:0;display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--muted);
  padding:8px 10px;border-radius:13px;border:1px solid rgba(148,116,226,.16);background:rgba(18,11,32,.55)}
.auth-steps li span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.auth-steps li b{width:21px;height:21px;flex:none;border-radius:50%;display:grid;place-items:center;
  font-size:11px;background:rgba(139,92,246,.18);color:var(--accent)}
.auth-steps li.now{border-color:rgba(167,139,250,.6);color:#fff;background:rgba(124,58,237,.17)}
.auth-steps li.now b{background:var(--button);color:#fff}
.auth-steps li.done{border-color:rgba(72,207,159,.4);color:#cfeee2}
.auth-steps li.done b{background:rgba(72,207,159,.22);color:var(--positive)}
/* «رمزت را فراموش کردی؟» درست زیر دکمهٔ ورود می‌نشیند؛ حاشیهٔ منفی قبلی باعث
   می‌شد به دکمه بچسبد و مثل بخشی از همان دکمه دیده شود. */
.auth-card .small-link.forgot-link{margin:14px 0 2px;color:var(--accent);font-size:12.5px}
.auth-card .small-link.forgot-link svg{width:14px;height:14px}
@media(max-width:560px){
  .otp-row{gap:6px}
  .otp-cell{height:50px;min-height:48px;font-size:19px;border-radius:12px}
  .code-card{padding:14px;border-radius:16px}
  .code-actions .btn{flex:1 1 100%}
  .auth-steps{gap:5px}
  .auth-steps li{padding:7px 8px;justify-content:center}
  .auth-steps li span{display:none}
  .auth-steps li.now span{display:inline}
}

/* ───────────────── میز تیکت‌ها در پنل مدیریت (r31) ───────────────── */
.ops .tq-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:12px;margin-bottom:14px}
.ops .tq-pane{padding:16px 18px}
.ops .tq-bar{border-bottom:1px solid var(--border);padding-bottom:13px;margin-bottom:4px;gap:10px;justify-content:flex-start}
.ops .tq-bar .ticket-search{flex:1 1 230px;min-width:0}
.ops .tq-bar .ticket-filter{flex:0 1 auto}
.ops .tq-table{min-width:905px;table-layout:fixed}
.ops .tq-table td:first-child,.ops .tq-table th:first-child{width:170px}
.ops .tq-table td:nth-child(6),.ops .tq-table th:nth-child(6){width:104px}
.ops .tq-table td:nth-child(2),.ops .tq-table th:nth-child(2){width:86px}
.ops .tq-table td:nth-child(3),.ops .tq-table th:nth-child(3){width:150px}
.ops .tq-table td:nth-child(4),.ops .tq-table th:nth-child(4){width:70px}
.ops .tq-table td:nth-child(5),.ops .tq-table th:nth-child(5){width:64px}
.ops .tq-table td:nth-child(7),.ops .tq-table th:nth-child(7){width:88px}
.ops .tq-table td:nth-child(n+8),.ops .tq-table th:nth-child(n+8){width:63px}
.ops .tq-table thead th{white-space:nowrap}
.ops .tq-table td,.ops .tq-table th{padding:9px 8px}
.ops .tq-time{white-space:nowrap;font-size:11px;color:var(--muted)}
.ops .tq-who{white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis}
.ops .tq-row{cursor:pointer;transition:background .15s}
.ops .tq-row:hover,.ops .tq-row:focus-visible{background:color-mix(in srgb,var(--glow) 8%,transparent);outline:none}
.ops .tq-row td{vertical-align:top}
.ops .tq-open{font-weight:700;color:var(--accent)}
.ops .tq-title{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:11px;margin-top:3px}
.ops .tq-mail{direction:ltr;text-align:start;font-size:11.5px;color:var(--muted);white-space:nowrap;max-width:155px;overflow:hidden;text-overflow:ellipsis}
.ops .tq-none{color:var(--muted);font-size:11px;border:1px dashed var(--border);border-radius:99px;padding:3px 9px;white-space:nowrap}
.ops .tq-has{white-space:nowrap}
.ops .tq-pri{font-size:11px;border-radius:99px;padding:3px 9px;white-space:nowrap;border:1px solid color-mix(in srgb,var(--pri,var(--muted)) 35%,var(--border));background:color-mix(in srgb,var(--pri,var(--muted)) 11%,transparent);color:var(--pri,var(--muted))}
.ops .p0{--pri:var(--muted)}.ops .p1{--pri:#deba80}.ops .p2{--pri:#e4879b}
.ops .tq-inbox{margin-bottom:14px}
.ops .tq-inbox h2{display:flex;align-items:center;gap:8px}
.ops .tq-inbox h2 svg{width:17px;height:17px;color:var(--accent)}
.ops .tq-invite{display:flex;align-items:center;gap:11px;flex-wrap:wrap;padding:12px;border-radius:11px;border:1px dashed color-mix(in srgb,#e5b779 50%,var(--border));background:color-mix(in srgb,#e5b779 7%,var(--card))}
.ops .tq-invite-id{flex:1;min-width:160px}
.ops .tq-invite-id strong{display:block;font-size:13px}
.ops .tq-invite-id small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.ops .tq-invite-id p{font-size:11.5px;color:var(--muted);line-height:1.85;margin-top:5px}
.ops .tq-invite .buttons{display:flex;gap:8px}
@media(max-width:940px){
.ops .tq-bar{flex-direction:column;align-items:stretch}
.ops .tq-bar .ticket-search,.ops .tq-bar .ticket-filter{flex:0 0 auto;width:100%}
.ops .tq-table{min-width:760px}
.ops .tq-invite .buttons{width:100%}
.ops .tq-invite .buttons .btn{flex:1;justify-content:center}
}
/* ──────────────── مقام‌های ساخته‌شدهٔ مدیر (r32) ──────────────── */
.ops .pane.role-made{border-color:rgba(139,92,246,.42);box-shadow:0 12px 30px rgba(76,29,149,.22)}
.ops .pane h2 .flag.made{background:rgba(139,92,246,.18);border:1px solid rgba(139,92,246,.38);color:#d9c9ff;border-radius:999px;padding:2px 9px;font-size:11px;white-space:nowrap}
.ops .role-form{margin:2px 0 10px}
.ops .rf-label{display:flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:#cfc0f5;margin:0 0 6px}
.ops .rf-label svg{width:13px;height:13px}
.ops .role-field{display:flex;align-items:center;gap:8px;padding:0 11px;border-radius:11px;background:rgba(10,7,20,.72);border:1px solid var(--border);transition:border-color .16s,box-shadow .16s,background .16s}
.ops .role-field:focus-within{border-color:rgba(139,92,246,.75);box-shadow:0 0 0 3px rgba(139,92,246,.17);background:rgba(16,11,30,.9)}
.ops .role-field input{flex:1 1 auto;width:0;min-width:0;border:0;background:transparent;box-shadow:none;padding:10px 0;font-size:13px;font-weight:600;color:#fff}
.ops .role-field input:focus{outline:none;box-shadow:none}
.ops .role-field .rf-count{flex:0 0 auto;font-size:10.5px;letter-spacing:.02em;color:var(--muted);font-variant-numeric:tabular-nums;direction:ltr;opacity:.75}
.ops .role-field .rf-count.near{color:#fbbf24;opacity:1}
.ops .role-field[data-state=ok]{border-color:rgba(52,211,153,.62);background:rgba(6,25,20,.55)}
.ops .role-field[data-state=ok]:focus-within{box-shadow:0 0 0 3px rgba(52,211,153,.16)}
.ops .role-field[data-state=bad]{border-color:rgba(248,113,113,.65);background:rgba(32,10,12,.55)}
.ops .role-field[data-state=bad]:focus-within{box-shadow:0 0 0 3px rgba(248,113,113,.16)}
.ops .rf-hint{font-size:11px;line-height:1.8;color:var(--muted);margin:6px 2px 0}
.ops .role-field[data-state=ok]~.rf-hint{color:#6ee7b7}
.ops .role-field[data-state=bad]~.rf-hint{color:#fca5a5}
.ops .rf-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:9px}
.ops .rf-chips-k{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;color:var(--muted)}
.ops .rf-chips-k svg{width:12px;height:12px}
.ops .rf-chip{font:inherit;font-size:11px;line-height:1;color:#d9c9ff;background:rgba(139,92,246,.12);border:1px dashed rgba(139,92,246,.42);border-radius:999px;padding:6px 10px;cursor:pointer;transition:background .15s,border-color .15s,transform .12s}
.ops .rf-chip:hover{background:rgba(139,92,246,.26);border-style:solid;transform:translateY(-1px)}
.ops .rf-prev{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px;padding:9px 11px;border-radius:11px;background:rgba(255,255,255,.03);border:1px dashed var(--border)}
.ops .rf-prev-k{font-size:10.5px;color:var(--muted);flex:0 0 auto}
.ops .rf-prevcard{display:inline-flex;align-items:center;gap:7px;min-width:0}
.ops .rf-prevchip{font-size:12.5px;font-weight:700;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}
.ops .rf-go{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:11px}
.ops .rf-go .btn{flex:0 0 auto}
.ops .rf-go .btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.ops .rf-room{font-size:11px;color:var(--muted);flex:1 1 120px;min-width:0}
.ops .role-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}
.ops .role-acts .btn{flex:0 0 auto}
.ops .pane.role-new{border-style:dashed;border-color:rgba(139,92,246,.45);background:linear-gradient(180deg,rgba(40,27,66,.72),rgba(21,15,36,.9))}
.ops .pane.role-new h2{color:#e4d9ff}
.ops .pane.role-new p{font-size:12px;color:var(--muted);line-height:1.95;margin:0 0 10px}
.ops .pane.role-new .sub{margin:6px 0 0;font-size:11.5px}
.ops .pane.role-new .role-zero{display:flex;align-items:flex-start;gap:7px;font-size:11.5px;line-height:1.95;color:#d9c9ff;background:rgba(139,92,246,.12);border:1px solid rgba(139,92,246,.3);border-radius:10px;padding:8px 10px;margin:0 0 11px}
.ops .pane.role-new .role-zero svg{width:14px;height:14px;flex:0 0 auto;margin-top:3px}
.ops .pane.role-new .role-zero span{flex:1 1 auto;min-width:0}
.ops .pane.role-new .role-zero b{color:#fff;font-weight:700}
@media(max-width:940px){
.ops .rf-go{flex-direction:column;align-items:stretch}
.ops .rf-go .btn,.ops .role-acts .btn{flex:0 0 auto;width:100%;justify-content:center}
.ops .role-acts{flex-direction:column;align-items:stretch}
.ops .rf-room{text-align:center}
.ops .rf-prevchip{max-width:46vw}
}

