@font-face {
  font-family: PlexArabic;
  src: url("/fonts/IBMPlexSansArabic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: PlexArabic;
  src: url("/fonts/IBMPlexSansArabic-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: PlexArabic;
  src: url("/fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --bg: #05090c;
  --surface: #0d151a;
  --surface-2: #132027;
  --text: #edf7f8;
  --muted: #789099;
  --accent: #18c6b4;
  --accent-2: #5ce1e6;
  --on: #fff;
  --line: rgba(160, 172, 205, 0.13);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: CustomSite, PlexArabic, sans-serif;
}
body {
  padding: 0 0 calc(76px + env(safe-area-inset-bottom));
  overscroll-behavior: none;
}
main {
  width: 100%;
  max-width: 820px;
  margin: auto;
  padding: 18px 18px 28px;
}
.hidden {
  display: none !important;
}
.loader,
.empty {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 12px;
  color: var(--muted);
}
.loader i {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}
.page-head {
  padding: 8px 0 22px;
}
.page-head h1 {
  font-size: 28px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.page-head p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.feed {
  display: grid;
  gap: 0;
}
.post {
  position: relative;
  overflow: hidden;
  padding: 20px;
  margin-bottom: 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(25, 30, 44, 0.96),
    rgba(14, 18, 28, 0.96)
  );
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  animation: postIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--delay, 0ms);
}
.post:first-child {
  padding-top: 20px;
}
.post:active {
  opacity: 0.7;
}
.post-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 88%);
  padding: 5px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tag svg {
  width: 13px;
  height: 13px;
}
.post h2 {
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 8px;
}
.post p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 14px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 13px;
}
.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-meta svg {
  width: 14px;
}
.article {
  padding-bottom: 28px;
}
.article-title {
  font-size: 32px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.article-summary {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.article-rule {
  height: 1px;
  background: var(--line);
  margin-bottom: 23px;
}
.article-body {
  font-size: 17px;
  line-height: 2;
  overflow-wrap: anywhere;
}
.article-body h1,
.article-body h2,
.article-body h3 {
  line-height: 1.4;
  margin: 1.5em 0 0.5em;
}
.article-body p {
  margin: 0 0 1.15em;
}
.article-body img,
.article-body video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 22px auto;
}
.article-body blockquote {
  border-right: 3px solid var(--accent);
  margin: 20px 0;
  padding: 8px 18px;
  color: var(--muted);
}
.article-body pre {
  direction: ltr;
  text-align: left;
  background: var(--surface);
  padding: 16px;
  border-radius: 10px;
  overflow: auto;
}
.article-body a {
  color: var(--accent);
}
.legacy-block {
  margin: 0 0 22px;
  white-space: pre-wrap;
}
.legacy-block.media {
  width: 100%;
  border-radius: 12px;
}
.paywall {
  min-height: 62vh;
  display: grid;
  align-content: center;
  text-align: center;
  justify-items: center;
  padding: 25px;
}
.paywall .lock {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent), transparent 86%);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.paywall .lock svg {
  width: 27px;
}
.paywall h1 {
  font-size: 27px;
  margin: 0 0 10px;
}
.paywall p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 430px;
}
.stars {
  font-size: 22px;
  font-weight: 800;
  margin: 14px 0;
}
.btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 17px;
  background: var(--accent);
  color: var(--on);
  font: inherit;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
.btn svg {
  width: 18px;
}
.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn.danger {
  background: #d94a5720;
  color: #ff6673;
}
.btn:disabled {
  opacity: 0.55;
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 24px;
}
.stat {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat b {
  display: block;
  font-size: 21px;
}
.stat span {
  color: var(--muted);
  font-size: 10px;
}
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.admin-row h3 {
  font-size: 16px;
  margin: 0 0 5px;
}
.admin-row small {
  color: var(--muted);
}
.badge {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #e9ad51;
  background: #e9ad5117;
}
.badge.live {
  color: #4bd68b;
  background: #4bd68b17;
}
.form {
  display: grid;
  gap: 15px;
}
.field label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 0 2px 7px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 13px;
  border-radius: 10px;
  font: inherit;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
}
.switch-row input {
  width: 20px;
  height: 20px;
}
.editor-wrap {
  background: #fff;
  color: #17181c;
  border-radius: 12px;
  overflow: hidden;
}
.ql-toolbar.ql-snow {
  border: 0;
  border-bottom: 1px solid #ddd;
  direction: ltr;
}
.ql-container.ql-snow {
  border: 0;
  min-height: 300px;
  font-family: inherit;
  font-size: 16px;
}
.ql-editor {
  direction: rtl;
  text-align: right;
  line-height: 1.9;
}
.section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
nav {
  position: fixed;
  bottom: calc(10px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  width: min(360px, calc(100% - 28px));
  padding: 5px;
  background: color-mix(in srgb, var(--surface), transparent 4%);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  z-index: 20;
  backdrop-filter: blur(22px);
  box-shadow: 0 12px 36px #0005;
}
nav button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 13px;
  display: grid;
  place-content: center;
  justify-items: center;
  font-size: 10px;
  gap: 2px;
}
nav button svg {
  width: 19px;
  height: 19px;
}
nav button.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 90%);
}
#toast {
  position: fixed;
  z-index: 40;
  bottom: 88px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: var(--text);
  color: var(--bg);
  padding: 11px 15px;
  border-radius: 11px;
  opacity: 0;
  transition: 0.2s;
  white-space: nowrap;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .article-title {
    font-size: 28px;
  }
}
nav button svg {
  width: 23px;
  height: 23px;
}
.tweet-meta svg,
.post-meta svg {
  width: 17px;
  height: 17px;
}
.btn svg {
  width: 20px;
  height: 20px;
}
.community-compose-trigger > svg,
.comment-entry > svg {
  width: 21px;
  height: 21px;
}
.community-compose-trigger {
  width: 100%;
  min-height: 58px;
  margin: 4px 0 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: linear-gradient(
    145deg,
    rgba(15, 28, 33, 0.92),
    rgba(8, 18, 22, 0.94)
  );
  color: var(--muted);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  text-align: right;
  font: inherit;
}
.community-compose-trigger .user-avatar {
  width: 40px;
  height: 40px;
}
.community-compose-trigger > i,
.community-compose-trigger > svg {
  width: 18px;
  color: var(--accent);
}
.composer-page {
  min-height: calc(var(--tg-viewport-stable-height, 100vh) - 30px);
  display: flex;
  flex-direction: column;
}
.composer-page header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 9, 12, 0.92);
  backdrop-filter: blur(15px);
}
.composer-page header {
  display: flex;
  justify-content: center;
}
.composer-page > textarea {
  padding-bottom: 90px;
}
.composer-publish {
  position: fixed;
  z-index: 22;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: calc(100% - 32px);
  max-width: 788px;
  margin: auto;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #1bd4bf, #0b94a4);
  color: #02110f;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 15px 38px rgba(17, 195, 180, 0.27);
}
.composer-publish:disabled {
  opacity: 0.3;
  box-shadow: none;
}
.composer-page footer {
  padding-bottom: 75px;
}
.composer-page header #composerBack {
  display: none;
}
.composer-page header #publishPost {
  display: none;
}
.composer-page header button {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.composer-page #composerBack {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 5px;
}
.composer-page #composerBack svg {
  width: 17px;
}
.composer-page #publishPost {
  justify-self: end;
  border-radius: 10px;
  background: var(--accent);
  color: #02110f;
  padding: 7px 16px;
  font-weight: 600;
}
.composer-page #publishPost:disabled {
  opacity: 0.35;
}
.composer-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 2px 8px;
}
.composer-page > textarea {
  flex: 1;
  width: 100%;
  min-height: 46vh;
  border: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  line-height: 1.9;
}
.composer-page footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0;
  color: var(--muted);
  font-size: 11px;
}
.comment-entry {
  width: 100%;
  min-height: 54px;
  margin: 12px 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--muted);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 9px;
  text-align: right;
  font: inherit;
}
.comment-entry .user-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 11px;
}
.comment-entry svg {
  width: 17px;
  color: var(--accent);
}
.thread > .inline-reply {
  margin: 8px 0 12px;
  animation: none;
}
.inline-reply {
  border-color: rgba(24, 198, 180, 0.25);
  background: linear-gradient(
    145deg,
    rgba(14, 29, 33, 0.97),
    rgba(8, 18, 22, 0.98)
  );
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}
.inline-reply textarea {
  min-height: 92px;
}
.post {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(15, 27, 32, 0.96),
    rgba(7, 15, 19, 0.98)
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}
.post-cover,
.post-cover.placeholder {
  width: 92px;
  min-width: 92px;
  height: 92px;
  border-radius: 14px;
}
.post-content {
  min-height: 92px;
  padding: 0;
  background: transparent;
}
.post-content h2 {
  font-size: 16px;
  line-height: 1.45;
  margin: 2px 0 4px;
}
.post-content > p {
  -webkit-line-clamp: 1;
  font-size: 11px;
}
.post-meta {
  padding-top: 5px;
}
.post-top {
  margin-bottom: 3px;
}
.post .tag {
  font-size: 9px;
  padding: 4px 7px;
}
.payment-state {
  font-size: 9px;
}
.card-settings-button {
  left: auto;
  right: 6px;
  top: 6px;
  bottom: auto;
  width: 34px;
  height: 34px;
  background: rgba(5, 12, 15, 0.9);
}
@media (max-width: 380px) {
  .post {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 9px;
  }
  .post-cover,
  .post-cover.placeholder {
    width: 78px;
    min-width: 78px;
    height: 78px;
  }
  .post-content {
    min-height: 78px;
  }
  .post-content h2 {
    font-size: 15px;
  }
}
.search.standalone {
  margin: 4px 0 16px;
}
.compose.compact {
  margin-top: 4px;
}
.compose.compact textarea {
  min-height: 68px;
}
.thread-reply {
  margin-right: 0 !important;
  padding: 16px 2px;
}
.thread-reply:before {
  display: none;
}
.replying-to {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(139, 124, 255, 0.08);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.load-more {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--accent-2);
  padding: 15px;
  font: inherit;
}
.inline-reply {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.inline-reply > div:first-child {
  color: var(--accent-2);
  font-size: 11px;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inline-reply textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.inline-reply > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.post {
  display: block;
}
.post-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  border-radius: 19px 19px 0 0;
}
.post-content {
  min-height: 185px;
  display: flex;
  flex-direction: column;
}
.post-meta {
  margin-top: auto;
}
.post-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
}
.read-more {
  justify-self: end;
}
.favorite {
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
}
.community-feed {
  padding-bottom: 20px;
}
.search {
  height: 48px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(17, 21, 32, 0.82);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
}
.search svg {
  width: 18px;
  color: var(--muted);
}
.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.favorite {
  margin-right: auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.favorite svg {
  width: 16px;
}
.favorite.saved {
  color: #f0c55d;
  background: rgba(240, 197, 93, 0.1);
  border-color: rgba(240, 197, 93, 0.24);
}
.user-avatar {
  display: block;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 13px;
  object-fit: cover;
  background: var(--surface-2);
}
.comment > .user-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
}
.compose {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 21, 32, 0.76);
  margin-bottom: 18px;
}
.compose textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.compose > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.compose span {
  font-size: 10px;
  color: var(--muted);
}
.community-feed,
.thread-list {
  display: grid;
}
.tweet {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.tweet-main {
  min-width: 0;
}
.tweet-author {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tweet-author b {
  font-size: 13px;
}
.tweet-author span {
  font-size: 10px;
  color: var(--muted);
}
.tweet p,
.thread-reply p {
  font-size: 15px;
  line-height: 1.8;
  margin: 7px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tweet-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
}
.tweet-meta span,
.tweet-meta button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tweet-meta button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px;
  font: inherit;
}
.tweet-meta svg {
  width: 15px;
}
.tweet.root {
  padding-top: 10px;
  cursor: default;
}
.thread-reply {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  padding: 17px 0;
  margin-right: calc(var(--depth) * 18px);
  border-bottom: 1px solid var(--line);
}
.thread-reply:before {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  bottom: 0;
  border-right: 1px solid rgba(139, 124, 255, 0.25);
}
.thread-reply .thread-reply {
  grid-column: 1/-1;
}
.cover-preview {
  height: 210px;
}
.post-cover {
  aspect-ratio: 16/9;
  height: auto;
}
.article-cover {
  aspect-ratio: 16/9;
  height: auto;
  max-height: none;
}
.paywall-cover {
  aspect-ratio: 16/9;
  height: auto;
  max-height: none;
}
@media (max-width: 520px) {
  .thread-reply {
    margin-right: calc(var(--depth) * 10px);
  }
  nav {
    width: calc(100% - 28px);
  }
  nav button {
    width: 33.333%;
  }
}
.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at 50% -20%,
    rgba(111, 88, 255, 0.16),
    transparent 43%
  );
}
.ambient i {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  animation: float 11s ease-in-out infinite;
}
.ambient i:nth-child(1) {
  width: 230px;
  height: 230px;
  background: #795cff;
  top: 8%;
  right: -100px;
}
.ambient i:nth-child(2) {
  width: 190px;
  height: 190px;
  background: #22c7c3;
  top: 50%;
  left: -110px;
  animation-delay: -4s;
}
.ambient i:nth-child(3) {
  width: 150px;
  height: 150px;
  background: #c14dff;
  bottom: -60px;
  right: 22%;
  animation-delay: -7s;
}
.admin-inline-reply {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.admin-inline-reply textarea {
  width: 100%;
  min-height: 80px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.admin-inline-reply > div {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}
.article-admin-bar {
  position: sticky;
  top: 8px;
  z-index: 14;
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 15, 18, 0.9);
  backdrop-filter: blur(16px);
}
.article-admin-bar .btn {
  padding: 9px 12px;
  font-size: 11px;
}
.inline-moderation {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.inline-moderation button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  font: inherit;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.inline-moderation button svg {
  width: 13px;
}
.inline-moderation input[type="color"] {
  width: 28px;
  height: 26px;
  border: 0;
  background: transparent;
}
.direct-reply-form {
  grid-column: 1/-1;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.direct-reply-form textarea {
  width: 100%;
  min-height: 76px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.direct-reply-form > div {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.direct-reply-form .btn {
  padding: 8px 11px;
  font-size: 10px;
}
.admin-app .field {
  padding: 14px;
  border: 1px solid rgba(117, 153, 160, 0.11);
  border-radius: 13px;
  background: rgba(7, 14, 17, 0.52);
}
.admin-app .field > label {
  color: #a9c0c4;
  font-weight: 500;
}
.admin-app #priceField {
  border-color: rgba(56, 207, 154, 0.3);
  background: rgba(24, 126, 91, 0.08);
}
.admin-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(12, 21, 25, 0.7);
}
main,
#toast {
  position: relative;
}
.page-head {
  padding-top: 22px;
}
.page-head h1 {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.kicker {
  display: block;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.post-glow {
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(65px);
  opacity: 0.09;
  left: -30px;
  top: -50px;
}
.post:hover {
  border-color: rgba(139, 124, 255, 0.32);
  transform: translateY(-1px);
}
.post-top {
  justify-content: space-between;
}
.read-more {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.read-more svg {
  width: 15px;
}
.tag.premium {
  color: #e9c56b;
  background: rgba(229, 188, 88, 0.1);
}
.article {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
}
.article-body {
  color: #dce0e9;
}
.admin-app body,
.admin-app {
  padding-bottom: 20px;
}
.admin-app main {
  max-width: 940px;
}
.admin-app .page-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.admin-app .stat,
.admin-app .form {
  background: rgba(17, 21, 32, 0.72);
}
.admin-app .form {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(17, 21, 32, 0.84);
  border-color: rgba(162, 171, 205, 0.17);
}
.empty > svg {
  width: 34px;
  margin: auto;
}
@keyframes postIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float {
  50% {
    transform: translate3d(18px, -25px, 0) scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ambient i,
  .post {
    animation: none;
  }
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
main,
section,
article,
.form,
.field,
.editor-wrap,
.ql-container,
.ql-editor {
  min-width: 0;
  max-width: 100%;
}
.field input,
.field textarea,
.field select {
  min-width: 0;
  max-width: 100%;
}
.article-body img,
.article-body video,
.article-body iframe,
.ql-editor img,
.ql-editor video,
.ql-editor iframe {
  display: block;
  width: auto;
  max-width: 100% !important;
  height: auto;
  object-fit: contain;
}
.ql-toolbar {
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
}
.ql-formats {
  white-space: nowrap;
}
.post {
  padding: 0;
}
.post-content {
  padding: 18px 19px 20px;
}
.post-cover {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: cover;
  background: var(--surface-2);
}
.post-cover.placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, #25223f, #15252d);
}
.post-cover.placeholder svg {
  width: 38px;
}
.article-cover,
.paywall-cover,
.cover-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 0 22px;
}
.comments {
  margin-top: 36px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.comments-head h2 {
  font-size: 21px;
}
.comments-head span {
  color: var(--muted);
  font-size: 13px;
}
.comment-form {
  display: grid;
  gap: 9px;
  margin: 14px 0 24px;
}
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.comment-form .btn {
  justify-self: start;
}
.comment {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent), #4c72de);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.comment-name {
  font-size: 13px;
  font-weight: 600;
}
.comment-name span {
  font-size: 9px;
  color: var(--accent-2);
  margin-right: 5px;
}
.comment p {
  margin: 5px 0 0;
  color: #c6ccda;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.reply {
  margin-top: 11px;
  padding: 10px 12px;
  border-right: 2px solid var(--accent);
  background: rgba(139, 124, 255, 0.06);
  border-radius: 8px;
}
.reply b {
  font-size: 11px;
  color: var(--accent-2);
}
.no-comments {
  color: var(--muted);
}
.moderation {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.moderation small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.moderation p {
  overflow-wrap: anywhere;
}
.moderation .toolbar {
  margin: 10px 0 0;
}
.moderation .btn {
  padding: 8px 11px;
  font-size: 11px;
}
nav button {
  min-width: 0;
  flex: 1 1 0;
  text-align: center;
}
.admin-app .form {
  width: 100%;
  overflow: hidden;
}
.post-top .read-more {
  grid-column: 3;
}
.home-admin-button {
  position: relative;
  z-index: 3;
  margin: 3px 0 10px;
  border: 1px solid rgba(24, 198, 180, 0.25);
  border-radius: 11px;
  background: rgba(24, 198, 180, 0.08);
  color: var(--accent-2);
  padding: 8px 11px;
  font: inherit;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.home-admin-button svg {
  width: 15px;
}
.home-admin-dock {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 9px;
}
.home-admin-dock .home-admin-button {
  margin: 0;
}
.home-admin-button.primary {
  background: linear-gradient(
    135deg,
    rgba(24, 198, 180, 0.2),
    rgba(8, 124, 145, 0.14)
  );
  border-color: rgba(24, 198, 180, 0.38);
}
#techScene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.78;
}
.ambient {
  opacity: 0.5;
}
main,
nav,
#toast {
  z-index: 2;
}
.floating-compose,
.floating-comment {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 24;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(68, 225, 210, 0.35);
  border-radius: 18px;
  background: linear-gradient(145deg, #18c6b4, #087c91);
  color: #02100f;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 38px rgba(7, 196, 180, 0.28);
  animation: floatAction 3.2s ease-in-out infinite;
}
.floating-compose svg,
.floating-comment svg {
  width: 23px;
}
.compose-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  background: rgba(1, 5, 7, 0.72);
  backdrop-filter: blur(8px);
}
.modal-sheet {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #091216;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.45);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.modal-head button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
}
.modal-head svg {
  width: 17px;
}
.modal-sheet .compose {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}
.comment-compose {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.post {
  overflow: visible;
  margin-top: 14px;
}
.post-cover,
.post-content {
  position: relative;
  z-index: 2;
  background: var(--surface);
}
.favorite {
  position: absolute !important;
  left: 18px;
  top: -14px;
  z-index: 1 !important;
  width: 36px !important;
  height: 42px !important;
  border-radius: 9px 9px 4px 4px !important;
  background: #112126 !important;
  transform: translateY(0);
  box-shadow: 0 -5px 16px rgba(0, 0, 0, 0.22);
}
.favorite.saved {
  z-index: 5 !important;
  transform: translateY(26px) rotate(-4deg);
  color: #55ead7 !important;
  background: #0c302d !important;
  box-shadow: 0 8px 24px rgba(24, 198, 180, 0.35);
}
.favorite.favorite-pop {
  animation: bookmarkFlight 0.68s cubic-bezier(0.2, 1.5, 0.3, 1);
}
.admin-user-search {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.admin-user-search svg {
  width: 17px;
  color: var(--muted);
}
.admin-user-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.admin-user-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-bottom: 1px solid var(--line);
}
.admin-user-row b,
.admin-user-row small {
  display: block;
}
.admin-user-row small,
.admin-user-row > span {
  font-size: 10px;
  color: var(--muted);
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-head h1 {
  margin: 0;
}
.admin-head button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.admin-head svg {
  width: 15px;
}
@keyframes floatAction {
  50% {
    transform: translateY(-6px);
    box-shadow: 0 20px 46px rgba(7, 196, 180, 0.36);
  }
}
@keyframes bookmarkFlight {
  0% {
    transform: translateY(0) scale(0.8);
  }
  55% {
    transform: translateY(34px) scale(1.28) rotate(-9deg);
  }
  100% {
    transform: translateY(26px) scale(1) rotate(-4deg);
  }
}
.post-top .favorite {
  grid-column: 2;
}
button,
[data-guide],
[data-post],
[data-edit],
.admin-row,
.tweet,
.post {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
button svg,
button span,
button i {
  pointer-events: none;
}
button {
  min-height: 44px;
  position: relative;
}
nav button {
  height: 100%;
  min-height: 48px;
  width: 100%;
  padding: 5px 10px;
}
.admin-tabs button {
  min-height: 50px;
}
.home-admin-button {
  min-height: 42px;
  padding-inline: 14px;
}
.tweet-meta button,
.inline-moderation button {
  min-width: 42px;
  min-height: 38px;
  justify-content: center;
}
.card-settings-button {
  width: 42px;
  height: 42px;
}
.favorite {
  z-index: 5 !important;
  min-width: 44px !important;
  min-height: 44px !important;
}
.favorite:not(.saved) {
  height: 26px !important;
  top: -12px !important;
  background: #112126 !important;
}
.favorite:not(.saved)::after {
  content: "";
  position: absolute;
  inset: -12px -8px -24px;
  z-index: 2;
}
.post,
.tweet,
.admin-row {
  user-select: none;
}
.post-content,
.tweet-main,
.admin-row > div {
  pointer-events: none;
}
.post button,
.post form,
.tweet button,
.admin-row button,
.admin-row input,
.admin-row select {
  pointer-events: auto;
}
.btn {
  min-height: 44px;
  padding-inline: 16px;
}
.admin-tabs {
  position: sticky !important;
  top: 8px;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: 100% !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin: 0 0 24px;
  padding: 6px;
  border-radius: 16px;
  z-index: 15;
  background: rgba(9, 17, 21, 0.92);
  backdrop-filter: blur(18px);
}
.admin-tabs button {
  min-width: 0;
  border: 0;
  border-radius: 11px;
  padding: 9px 4px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.admin-tabs button svg {
  width: 17px;
}
.admin-tabs button.active {
  color: var(--accent-2);
  background: rgba(24, 198, 180, 0.12);
}
.admin-cover {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  margin-left: 11px;
}
.editor-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(13, 21, 26, 0.72);
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-heading svg {
  width: 20px;
  color: var(--accent);
}
.section-heading b,
.section-heading span {
  display: block;
}
.section-heading span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.access-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.access-options label {
  position: relative;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.access-options input {
  position: absolute;
  opacity: 0;
}
.access-options label:has(input:checked) {
  border-color: var(--accent);
  background: rgba(24, 198, 180, 0.09);
  box-shadow: 0 0 0 1px rgba(24, 198, 180, 0.18);
}
.access-options b,
.access-options span {
  display: block;
}
.access-options span {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
}
.comments-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12px !important;
}
.comments-toggle input {
  width: 18px !important;
  height: 18px !important;
}
.editor-wrap {
  background: #091115;
  color: var(--text);
  border: 1px solid var(--line);
}
.ql-toolbar.ql-snow {
  background: #111e24;
  border-color: var(--line);
}
.ql-container.ql-snow {
  background: #081014;
  color: #e6f2f3;
}
.ql-editor.ql-blank:before {
  color: #60777f;
}
.ql-snow .ql-stroke {
  stroke: #a8bdc2;
}
.ql-snow .ql-fill {
  fill: #a8bdc2;
}
.ql-snow .ql-picker {
  color: #a8bdc2;
}
.cover-preview {
  max-width: 280px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 6px;
}
.comment.featured,
.reply.featured {
  border-color: var(--comment-accent);
  background: color-mix(in srgb, var(--comment-accent), transparent 92%);
}
.comment.pinned-comment {
  border-right: 3px solid var(--comment-accent);
  padding-right: 12px;
}
.comment-style-control input {
  width: 34px;
  height: 30px;
  border: 0;
  background: transparent;
}
.referral-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 15px;
}
.referral-status svg {
  width: 15px;
}
.favorite-pop {
  animation: favoritePop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.favorite-pop svg {
  animation: bookmarkSpark 0.55s ease;
}
.btn,
.post,
.tweet,
.favorite {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}
.btn:active,
.favorite:active {
  transform: scale(0.92);
}
main {
  animation: pageReveal 0.42s ease both;
}
@keyframes favoritePop {
  45% {
    transform: scale(1.35) rotate(-9deg);
  }
}
@keyframes bookmarkSpark {
  50% {
    filter: drop-shadow(0 0 8px #51e6d3);
  }
}
@keyframes pageReveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 600px) {
  .access-options {
    grid-template-columns: 1fr;
  }
  .admin-tabs button {
    font-size: 9px;
  }
  .admin-cover {
    width: 44px;
    height: 44px;
  }
}
.post {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: stretch;
  padding: 12px;
  gap: 13px;
}
.post-cover {
  width: 118px;
  min-width: 118px;
  height: auto;
  aspect-ratio: 1 / 1;
  align-self: start;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.post-cover.placeholder {
  width: 118px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
}
.post-content {
  padding: 1px 0;
  min-height: 118px;
}
.post-content h2 {
  font-size: 18px;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-content > p {
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-top {
  margin-bottom: 7px;
}
.post-meta {
  margin-top: auto;
  padding-top: 8px;
}
.read-more {
  display: none;
}
@media (max-width: 380px) {
  .post {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
  }
  .post-cover,
  .post-cover.placeholder {
    width: 96px;
    min-width: 96px;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
  }
  .post-content {
    min-height: 96px;
  }
  .post-content h2 {
    font-size: 16px;
  }
}
@media (max-width: 520px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .admin-app .form {
    padding: 15px;
  }
  .article-title {
    overflow-wrap: anywhere;
  }
}
.post-top {
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
}
.post-top .tag {
  grid-column: 1;
}
.post-top .payment-state {
  grid-column: 2;
}
.post-top .favorite {
  grid-column: 4;
  grid-row: 1;
}
.payment-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #e9c56b;
  white-space: nowrap;
}
.payment-state svg {
  width: 13px;
}
.post.pinned {
  box-shadow: 0 14px 42px rgba(139, 124, 255, 0.18);
}
.card-settings-button {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 10, 16, 0.86);
  color: var(--accent-2);
  display: grid;
  place-items: center;
}
.card-settings-button svg {
  width: 15px;
}
.card-style-panel {
  grid-column: 1/-1;
  width: 100%;
  margin-top: 2px;
  padding: 13px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  background: rgba(8, 10, 16, 0.62);
  border-radius: 12px;
}
.card-style-panel > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.card-style-panel label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}
.card-style-panel input,
.card-style-panel select {
  min-width: 0;
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  padding: 7px;
  font: inherit;
}
.card-style-panel input[type="color"] {
  padding: 3px;
}
.card-style-panel .pin-check {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.card-style-panel .pin-check input {
  width: 18px;
  height: 18px;
}
.card-style-panel .btn {
  justify-self: start;
  padding: 9px 14px;
  font-size: 11px;
}
@media (max-width: 380px) {
  .post-top {
    grid-template-columns: auto 1fr auto;
  }
  .payment-state {
    grid-row: 2;
    grid-column: 1/3;
  }
  .post-top .favorite {
    grid-column: 3;
  }
}
.ambient {
  background: radial-gradient(
    circle at 50% -20%,
    rgba(21, 193, 180, 0.13),
    transparent 44%
  );
}
.ambient i:nth-child(1) {
  background: #0aaea5;
}
.ambient i:nth-child(2) {
  background: #18c66d;
}
.ambient i:nth-child(3) {
  background: #087c91;
}
.post:hover {
  border-color: rgba(24, 198, 180, 0.36);
}
.post.pinned {
  box-shadow: 0 14px 42px rgba(24, 198, 180, 0.15);
}
.replying-to,
.reply {
  background: rgba(24, 198, 180, 0.06);
  border-color: var(--accent);
}
