:root {
  color-scheme: dark;
  --bg: #071826;
  --bg-soft: #102c4f;
  --panel: rgba(5, 28, 48, 0.78);
  --panel-strong: rgba(4, 24, 42, 0.92);
  --line: rgba(121, 169, 233, 0.24);
  --gold: #f2bd64;
  --text: #fff6e8;
  --muted: #c5d3e7;
  --blue: #4c8df7;
  --panel-title: linear-gradient(90deg, rgba(76, 141, 247, 0.7), rgba(242, 189, 100, 0.5));
  --profile-card-bg: rgba(6, 18, 30, 0.82);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 70% 12%, rgba(71, 123, 213, 0.52), transparent 34rem),
    radial-gradient(circle at 24% 74%, rgba(122, 82, 125, 0.34), transparent 24rem),
    linear-gradient(145deg, var(--bg), #020711 70%);
}

body.theme-app-blue {
  --bg: #071826;
  --bg-soft: #102c4f;
  --panel: rgba(5, 28, 48, 0.78);
  --panel-strong: rgba(4, 24, 42, 0.92);
  --line: rgba(121, 169, 233, 0.24);
  background:
    radial-gradient(circle at 70% 12%, rgba(71, 123, 213, 0.52), transparent 34rem),
    radial-gradient(circle at 24% 74%, rgba(122, 82, 125, 0.34), transparent 24rem),
    linear-gradient(145deg, var(--bg), #020711 70%);
}

body.theme-warm-brown {
  --bg: #221811;
  --bg-soft: #5a3925;
  --panel: rgba(42, 24, 16, 0.8);
  --panel-strong: rgba(31, 18, 12, 0.94);
  --line: rgba(242, 189, 100, 0.24);
  background:
    radial-gradient(circle at 72% 10%, rgba(185, 112, 61, 0.42), transparent 32rem),
    radial-gradient(circle at 22% 68%, rgba(31, 86, 68, 0.26), transparent 24rem),
    linear-gradient(145deg, #6b442c, #14110e 70%);
}

body.theme-deep-night {
  --bg: #020711;
  --bg-soft: #0b1a33;
  --panel: rgba(2, 12, 24, 0.84);
  --panel-strong: rgba(1, 8, 17, 0.96);
  --line: rgba(175, 204, 245, 0.18);
  background:
    radial-gradient(circle at 80% 8%, rgba(59, 104, 184, 0.26), transparent 28rem),
    radial-gradient(circle at 16% 78%, rgba(79, 47, 102, 0.24), transparent 22rem),
    linear-gradient(145deg, #071221, #000 78%);
}

body.theme-soft-purple {
  --bg: #120d24;
  --bg-soft: #2e2356;
  --panel: rgba(22, 14, 43, 0.8);
  --panel-strong: rgba(15, 10, 31, 0.94);
  --line: rgba(186, 138, 255, 0.24);
  background:
    radial-gradient(circle at 72% 12%, rgba(98, 87, 188, 0.46), transparent 32rem),
    radial-gradient(circle at 20% 76%, rgba(19, 112, 101, 0.24), transparent 24rem),
    linear-gradient(145deg, #1a1233, #05030c 72%);
}

body.theme-gold {
  --bg: #251b08;
  --bg-soft: #6a501d;
  --panel: rgba(45, 31, 8, 0.8);
  --panel-strong: rgba(31, 22, 7, 0.94);
  --line: rgba(242, 189, 100, 0.28);
  background:
    radial-gradient(circle at 70% 12%, rgba(242, 189, 100, 0.45), transparent 32rem),
    radial-gradient(circle at 22% 74%, rgba(76, 141, 247, 0.18), transparent 24rem),
    linear-gradient(145deg, #5b4317, #080602 72%);
}

body.theme-red {
  --bg: #240d12;
  --bg-soft: #52202b;
  --panel: rgba(42, 13, 19, 0.8);
  --panel-strong: rgba(30, 8, 13, 0.94);
  --line: rgba(248, 94, 108, 0.24);
  background:
    radial-gradient(circle at 72% 12%, rgba(198, 43, 43, 0.44), transparent 32rem),
    radial-gradient(circle at 20% 76%, rgba(242, 189, 100, 0.18), transparent 24rem),
    linear-gradient(145deg, #3b1118, #070305 72%);
}

body.theme-green {
  --bg: #0d2117;
  --bg-soft: #1c4f37;
  --panel: rgba(9, 35, 22, 0.8);
  --panel-strong: rgba(7, 25, 17, 0.94);
  --line: rgba(84, 214, 111, 0.24);
  background:
    radial-gradient(circle at 72% 12%, rgba(84, 214, 111, 0.35), transparent 32rem),
    radial-gradient(circle at 20% 76%, rgba(76, 141, 247, 0.18), transparent 24rem),
    linear-gradient(145deg, #103622, #020906 72%);
}

body.theme-teal {
  --bg: #062022;
  --bg-soft: #145054;
  --panel: rgba(5, 32, 35, 0.8);
  --panel-strong: rgba(3, 23, 26, 0.94);
  --line: rgba(64, 213, 214, 0.24);
  background:
    radial-gradient(circle at 72% 12%, rgba(64, 213, 214, 0.36), transparent 32rem),
    radial-gradient(circle at 20% 76%, rgba(98, 87, 188, 0.22), transparent 24rem),
    linear-gradient(145deg, #08383c, #020708 72%);
}

body.theme-gray {
  --bg: #121820;
  --bg-soft: #303a47;
  --panel: rgba(17, 25, 34, 0.82);
  --panel-strong: rgba(10, 15, 22, 0.94);
  --line: rgba(200, 215, 235, 0.2);
  background:
    radial-gradient(circle at 72% 12%, rgba(140, 160, 185, 0.28), transparent 32rem),
    radial-gradient(circle at 20% 76%, rgba(76, 141, 247, 0.18), transparent 24rem),
    linear-gradient(145deg, #1d2630, #030508 72%);
}

body.panel-blue-gold {
  --panel-title: linear-gradient(90deg, rgba(76, 141, 247, 0.7), rgba(242, 189, 100, 0.5));
  --profile-card-bg: rgba(6, 22, 40, 0.88);
}

body.panel-blue {
  --panel-title: linear-gradient(90deg, rgba(76, 141, 247, 0.86), rgba(76, 141, 247, 0.42));
  --profile-card-bg: rgba(5, 28, 58, 0.88);
}

body.panel-gold {
  --panel-title: linear-gradient(90deg, rgba(242, 189, 100, 0.9), rgba(242, 189, 100, 0.45));
  --profile-card-bg: rgba(54, 39, 12, 0.88);
}

body.panel-purple {
  --panel-title: linear-gradient(90deg, rgba(139, 92, 246, 0.86), rgba(98, 87, 188, 0.45));
  --profile-card-bg: rgba(31, 20, 62, 0.88);
}

body.panel-green {
  --panel-title: linear-gradient(90deg, rgba(84, 214, 111, 0.78), rgba(26, 105, 64, 0.46));
  --profile-card-bg: rgba(8, 42, 26, 0.88);
}

body.panel-red {
  --panel-title: linear-gradient(90deg, rgba(239, 68, 68, 0.82), rgba(153, 27, 27, 0.46));
  --profile-card-bg: rgba(49, 13, 20, 0.88);
}

body.panel-teal {
  --panel-title: linear-gradient(90deg, rgba(64, 213, 214, 0.78), rgba(20, 105, 112, 0.46));
  --profile-card-bg: rgba(5, 42, 46, 0.88);
}

body.panel-gray {
  --panel-title: linear-gradient(90deg, rgba(140, 160, 185, 0.72), rgba(70, 82, 98, 0.48));
  --profile-card-bg: rgba(25, 34, 45, 0.88);
}

body.panel-brown {
  --panel-title: linear-gradient(90deg, rgba(185, 112, 61, 0.84), rgba(98, 61, 35, 0.5));
  --profile-card-bg: rgba(46, 27, 16, 0.88);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.site-nav {
  position: sticky;
  top: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.nav-links,
.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a,
.account-tool,
.profile-chip {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(4, 16, 29, 0.68);
  backdrop-filter: blur(12px);
}

.account-tool {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 7px;
  align-items: center;
  border-radius: 999px;
  padding: 8px 9px;
  cursor: pointer;
  font: inherit;
}

.account-actions > .account-tool {
  display: none;
}

.profile-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
}

.tool-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-chip {
  padding: 6px;
  border-radius: 999px;
}

.profile-chip::after {
  content: attr(data-alert-count);
  position: absolute;
  top: -3px;
  right: 17px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border: 2px solid rgba(3, 18, 32, 0.96);
  border-radius: 999px;
  color: #fff;
  background: #e23333;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.profile-chip[data-alert-count="0"]::after,
.profile-chip:not([data-alert-count])::after {
  display: none;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #061320;
  background:
    radial-gradient(circle at 35% 28%, #f3dfbc, transparent 18%),
    linear-gradient(145deg, #415d55, #b79e75);
  font-weight: 900;
  background-size: cover;
  background-position: center;
}

.profile-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
}

.top-panel {
  position: sticky;
  top: 76px;
  z-index: 4;
  width: min(420px, 100%);
  margin: -6px 0 18px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 18, 32, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  padding: 16px;
}

.top-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.top-panel a {
  color: var(--gold);
  font-weight: 900;
}

.profile-panel {
  width: min(460px, 100%);
  padding: 0;
  overflow: hidden;
}

.account-menu-head {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.account-menu-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #071321;
  background:
    radial-gradient(circle at 35% 28%, #f4ddb6, transparent 20%),
    linear-gradient(145deg, #6e4dd0, #d7b46f);
  font-size: 2rem;
  font-weight: 900;
}

.account-menu-head strong,
.account-menu-head small {
  display: block;
}

.account-menu-head strong {
  color: var(--text);
  font-size: 1.15rem;
}

.account-menu-head small {
  margin-top: 4px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account-menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 8px;
}

.account-menu-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.account-menu-item:hover {
  background: rgba(246, 196, 95, 0.12);
}

.account-menu-item.danger {
  grid-column: 1 / -1;
  color: #ffd0d0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #061320;
  background: var(--gold);
  font-size: 0.8rem;
}

.panel-signout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.panel-signout:hover {
  border-color: rgba(246, 196, 95, 0.55);
  background: rgba(246, 196, 95, 0.16);
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.hero-art {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.cross {
  width: 92px;
  height: 360px;
  border-radius: 999px;
  background: rgba(205, 223, 245, 0.16);
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.cross::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 82px;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(205, 223, 245, 0.16);
}

.book {
  position: absolute;
  display: flex;
  gap: 3px;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.4));
}

.book span {
  width: 104px;
  height: 96px;
  background: linear-gradient(145deg, #f5ead5, #cbbd9f);
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.book span:first-child {
  border-radius: 14px 5px 5px 14px;
}

.book span:last-child {
  border-radius: 5px 14px 14px 5px;
}

.hero-copy h1,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.92;
}

.hero-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions a {
  color: #061320;
  background: var(--gold);
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 800;
  text-decoration: none;
}

.hero-actions .ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.section {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.section h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.page-heading h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5rem);
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.feature-grid article,
.scripture-list article,
.forum-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 18px;
}

strong {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
}

.feature-grid p,
.warning-card p,
.scripture-list p,
.section-copy,
.forum-grid p,
.login-card p,
.roadmap {
  color: var(--muted);
  line-height: 1.55;
}

.section-copy {
  max-width: 740px;
  font-size: 1.08rem;
}

.forum-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.forum-grid span {
  display: inline-flex;
  color: #061320;
  background: var(--gold);
  border-radius: 999px;
  padding: 5px 9px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 900;
}

.forum-board {
  margin-top: 24px;
  border-top: 8px solid rgba(123, 43, 202, 0.92);
  background: rgba(0, 0, 0, 0.18);
}

.post-filter-card {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(242, 189, 100, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.post-filter-card h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.post-filter-card p {
  color: var(--muted);
}

.post-filter-card label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.post-filter-card textarea {
  width: 100%;
  resize: vertical;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(1, 13, 24, 0.9);
  padding: 13px 14px;
  font: inherit;
}

.post-filter-card button {
  justify-self: start;
  color: #061320;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  padding: 12px 16px;
  font: inherit;
  font-weight: 900;
}

.filter-message {
  margin: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 900;
}

.filter-message:empty {
  display: none;
}

.filter-message.blocked {
  color: #ffd8d8;
  border: 1px solid rgba(255, 64, 64, 0.45);
  background: rgba(120, 0, 0, 0.28);
}

.filter-message.warning {
  color: #fff1c2;
  border: 1px solid rgba(242, 189, 100, 0.45);
  background: rgba(130, 82, 0, 0.26);
}

.filter-message.approved {
  color: #c9ffd7;
  border: 1px solid rgba(84, 214, 111, 0.45);
  background: rgba(0, 94, 35, 0.26);
}

.forum-discussion-panel {
  margin-top: 22px;
}

.forum-discussion-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.subforum-notice,
.subforum-toolbar,
.subforum-thread-board,
.sticky-thread-board {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 18, 28, 0.72);
  overflow: hidden;
}

.subforum-notice {
  padding: 14px 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.subforum-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  color: var(--muted);
}

.subforum-toolbar button,
.subforum-thread-head button {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  padding: 8px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.subforum-toolbar > button,
.subforum-thread-head {
  background: var(--panel-gradient);
}

.subforum-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.subforum-thread-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  color: var(--text);
  font-weight: 900;
}

.subforum-thread-board .forum-post-list,
.sticky-thread-board .thread-row {
  margin-top: 0;
}

.subforum-thread-board .forum-post-list {
  gap: 0;
}

.thread-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 130px minmax(210px, 300px);
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.thread-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.045);
}

.thread-row.sticky {
  background: rgba(242, 189, 100, 0.07);
}

.thread-status-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--gold);
  border: 2px solid rgba(242, 189, 100, 0.55);
  font-weight: 900;
}

.thread-main {
  min-width: 0;
}

.thread-title {
  color: var(--text);
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 900;
}

.thread-title:hover {
  color: var(--gold);
}

.thread-main p {
  margin: 6px 0 10px;
  color: var(--muted);
  line-height: 1.4;
}

.thread-author {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
}

.thread-author .forum-post-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
}

.thread-stats,
.thread-latest {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.thread-stats {
  justify-items: end;
}

.thread-latest strong {
  color: var(--text);
}

.thread-page-panel {
  margin-top: 22px;
}

.thread-detail {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.thread-detail-card,
.thread-reply-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 18, 28, 0.78);
  overflow: hidden;
}

.thread-detail-card {
  padding: 0;
}

.thread-detail-header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.045);
}

.thread-detail-header div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.thread-detail-header span {
  color: var(--muted);
}

.thread-detail-header .thread-delete-button {
  margin-left: auto;
}

.thread-detail-card h2,
.thread-detail-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.thread-detail-card h2 {
  margin-top: 18px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.thread-detail-card p {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.thread-reply-card h2 {
  margin: 0;
}

.thread-reply-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.thread-reply-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.thread-reply-item p {
  margin: 0;
  padding: 16px 18px 20px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.thread-reply-form {
  margin: 0 18px 18px;
}

.thread-reply-form .forum-composer-avatar {
  margin-top: 0;
}

.danger-button {
  width: max-content;
  color: #fff;
  border: 1px solid rgba(255, 113, 113, 0.5);
  border-radius: 8px;
  background: rgba(198, 43, 43, 0.88);
  padding: 10px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.danger-button:hover {
  background: rgba(224, 61, 61, 0.95);
}

.post-composer-head {
  grid-column: 1 / -1;
  margin: -18px -18px 2px;
  border-radius: 8px 8px 0 0;
}

.forum-post-form {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
  border: 1px solid rgba(242, 189, 100, 0.32);
  border-radius: 8px;
  background: rgba(3, 18, 32, 0.78);
  padding: 18px;
}

.forum-composer-avatar {
  width: 48px;
  height: 48px;
  align-self: start;
  margin-top: 66px;
}

.forum-composer-fields {
  display: grid;
  gap: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.forum-post-form input,
.forum-post-form select,
.forum-post-form textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 12, 22, 0.86);
  padding: 12px 14px;
  font: inherit;
}

.forum-editor {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.forum-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  min-height: 44px;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.forum-editor-toolbar button {
  width: auto;
  color: var(--muted);
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 7px 9px;
  font: inherit;
  font-weight: 900;
}

.forum-editor-toolbar button:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.forum-editor textarea {
  min-height: 126px;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
}

.forum-composer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.forum-composer-actions .filter-message {
  flex: 1 1 220px;
  min-height: 0;
  margin: 0;
}

.forum-composer-actions button[type="submit"] {
  margin-left: auto;
}

.forum-post-form button {
  width: max-content;
  color: #061320;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  padding: 12px 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.forum-post-form .forum-editor-toolbar button {
  width: auto;
  color: var(--muted);
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 7px 9px;
}

.forum-post-form .forum-editor-toolbar button:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.forum-post-form .forum-composer-actions .secondary-auth {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.forum-post-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.forum-post,
.forum-post-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 18, 32, 0.7);
  padding: 16px;
}

.forum-post {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
}

.forum-post h3 {
  margin: 8px 0;
  font-size: 1.15rem;
}

.forum-post p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-wrap;
}

.forum-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.forum-post-meta span,
.forum-post-empty span {
  color: var(--muted);
}

.forum-post-empty {
  display: grid;
  gap: 6px;
}

.forum-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 126px minmax(220px, 310px);
  gap: 20px;
  align-items: center;
  min-height: 104px;
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
}

.forum-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.045);
}

.forum-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #b369ff;
  background: rgba(123, 43, 202, 0.12);
  font-weight: 900;
}

.forum-main {
  min-width: 0;
}

.forum-title {
  color: var(--text);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 900;
}

.forum-title:hover,
.subforums a:hover {
  color: var(--gold);
}

.forum-main p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.subforums {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.subforums a {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.subforums a::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 11px;
  margin-right: 8px;
  border-radius: 2px;
  background: #6e27b7;
}

.forum-count {
  display: grid;
  place-items: center;
  gap: 3px;
  justify-self: end;
  min-width: 108px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.16);
  padding: 12px;
}

.forum-count span {
  color: #7a2dd2;
  font-size: 1.2rem;
  font-weight: 900;
}

.forum-count small {
  color: var(--muted);
  font-weight: 800;
}

.forum-latest {
  min-width: 0;
}

.forum-latest strong,
.forum-latest span {
  display: block;
}

.forum-latest strong {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-latest span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
}

.login-section {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 24px;
  align-items: start;
}

.login-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.admin-preview {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(242, 189, 100, 0.35);
  border-radius: 8px;
  background: rgba(4, 24, 42, 0.72);
}

.admin-preview h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
}

.admin-preview p {
  color: var(--muted);
  line-height: 1.55;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.admin-actions button {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 11px 12px;
  font: inherit;
  font-weight: 800;
}

.admin-actions button:not(:disabled) {
  cursor: pointer;
}

.admin-actions button:not(:disabled):hover,
.login-card button:hover {
  border-color: rgba(242, 189, 100, 0.55);
  background: rgba(242, 189, 100, 0.16);
}

.admin-number-tool {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(1, 13, 24, 0.56);
}

.admin-number-tool h4,
.admin-number-tool p {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-number-tool h4 {
  color: var(--text);
}

.admin-number-tool label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-number-tool input,
.admin-number-tool select {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(1, 13, 24, 0.88);
  padding: 10px 12px;
  font: inherit;
}

.admin-number-tool button {
  color: #061320;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  padding: 11px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-mode [data-edit] {
  outline: 2px dashed rgba(242, 189, 100, 0.78);
  outline-offset: 5px;
  border-radius: 6px;
  cursor: text;
}

.admin-mode [data-edit]:focus {
  background: rgba(242, 189, 100, 0.1);
}

.login-card label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.login-card .remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  justify-content: flex-start;
}

.login-card input {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(1, 13, 24, 0.88);
  padding: 13px 14px;
  font: inherit;
}

.login-card .remember-row input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 54px;
}

.login-card .password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 0;
}

.login-card .password-toggle:hover,
.login-card .password-toggle[aria-pressed="true"] {
  color: var(--gold);
  border-color: rgba(242, 189, 100, 0.35);
  background: rgba(242, 189, 100, 0.12);
}

.password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-card button {
  color: #061320;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  padding: 13px 16px;
  font: inherit;
  font-weight: 900;
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.login-card .auth-actions .secondary-auth,
.button-link.secondary-auth {
  grid-column: 1 / -1;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.button-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  color: #061320;
  border-radius: 8px;
  background: var(--gold);
  padding: 12px 16px;
  font-weight: 900;
  text-decoration: none;
}

.auth-callback-card {
  max-width: 760px;
}

.admin-actions button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.rank-board {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-tabs button {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 11px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.rank-tabs button.active {
  color: #061320;
  border-color: rgba(242, 189, 100, 0.9);
  background: rgba(242, 189, 100, 0.95);
}

.rank-members {
  display: grid;
  gap: 10px;
}

.member-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(1, 13, 24, 0.66);
  padding: 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.member-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #061320;
  background: var(--gold);
  font-weight: 900;
}

.member-card strong,
.member-card small {
  display: block;
}

.member-card small,
.profile-privacy {
  color: var(--muted);
}

.profile-privacy {
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-popover {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 8px);
  z-index: 4;
  display: none;
  width: min(260px, 82vw);
  border: 1px solid rgba(242, 189, 100, 0.45);
  border-radius: 8px;
  background: rgba(3, 18, 32, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  padding: 12px;
}

.profile-popover span,
.profile-popover em {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.profile-popover em {
  margin-top: 8px;
  color: var(--gold);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 900;
}

.member-card:hover .profile-popover,
.member-card:focus .profile-popover {
  display: block;
}

.rank-page-tabs {
  margin-top: 20px;
  border-radius: 8px;
}

.public-member-list {
  margin-top: 18px;
}

.private-member {
  opacity: 0.74;
  cursor: default;
}

.scripture-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.roadmap {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  font-size: 1.05rem;
}

.profile-page {
  margin-top: 28px;
}

.profile-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.profile-breadcrumb a {
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.profile-breadcrumb span {
  color: var(--muted);
}

.profile-breadcrumb span::before {
  content: ">";
  margin-right: 9px;
  color: rgba(255, 255, 255, 0.36);
}

.upgrade-strip {
  display: block;
  margin-bottom: 26px;
  border-radius: 4px;
  background: #d96b00;
  color: #ffffff;
  padding: 14px 18px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
}

.signed-in .upgrade-strip,
.upgrade-strip[hidden] {
  display: none;
}

.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-action-row button {
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 15px;
  font: inherit;
  font-weight: 800;
}

.profile-action-row button:hover {
  color: var(--text);
  border-color: rgba(242, 189, 100, 0.45);
}

.profile-hero {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(90deg, rgba(4, 16, 29, 0.96), rgba(4, 16, 29, 0.7), rgba(4, 16, 29, 0.96)),
    radial-gradient(circle at 72% 28%, rgba(76, 141, 247, 0.46), transparent 26rem),
    linear-gradient(135deg, #071826, #182c47);
}

.profile-avatar-large {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 8px;
  color: #061320;
  background:
    radial-gradient(circle at 36% 24%, #f7ead0, transparent 19%),
    linear-gradient(145deg, var(--gold), #4c8df7);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  font-size: 3.2rem;
  font-weight: 900;
}

.profile-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.profile-hero p {
  margin: 8px 0 0;
  color: var(--gold);
  font-weight: 900;
}

.profile-hero .member-number-line {
  margin-top: 6px;
  color: var(--muted);
}

.edit-profile-link {
  position: absolute;
  top: 22px;
  right: 22px;
  color: #061320;
  text-decoration: none;
  border-radius: 8px;
  background: var(--gold);
  padding: 11px 14px;
  font-weight: 900;
}

.edit-profile-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.edit-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.edit-settings-card:first-child {
  grid-row: span 2;
}

.danger-zone-card {
  border-color: rgba(255, 113, 113, 0.28);
}

.two-column-settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-field {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 900;
}

.profile-pic-editor {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
}

.profile-pic-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-pic-preview,
.account-menu-avatar,
.forum-post-avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #061320;
  background:
    radial-gradient(circle at 35% 28%, #f3dfbc, transparent 18%),
    linear-gradient(145deg, #415d55, #b79e75);
  background-size: cover;
  background-position: center;
  font-weight: 900;
}

.profile-pic-preview {
  width: 78px;
  height: 78px;
  font-size: 1.8rem;
}

.account-menu-avatar,
.forum-post-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}

.avatar-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-choice {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: #061320;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.avatar-choice.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 189, 100, 0.18);
}

.avatar-choice-gold {
  background: radial-gradient(circle at 35% 28%, #f3dfbc, transparent 18%), linear-gradient(145deg, #415d55, #b79e75);
}

.avatar-choice-purple {
  background: radial-gradient(circle at 35% 28%, #f1d4ff, transparent 18%), linear-gradient(145deg, #7a4fd6, #d7a06c);
}

.avatar-choice-blue {
  background: radial-gradient(circle at 35% 28%, #cfe6ff, transparent 18%), linear-gradient(145deg, #2c6bd1, #061320);
}

.avatar-choice-green {
  background: radial-gradient(circle at 35% 28%, #d7ffe3, transparent 18%), linear-gradient(145deg, #2fba67, #062215);
}

.avatar-choice-red {
  background: radial-gradient(circle at 35% 28%, #ffd2d2, transparent 18%), linear-gradient(145deg, #d73a3a, #2a0508);
}

.avatar-choice-teal {
  background: radial-gradient(circle at 35% 28%, #cfffff, transparent 18%), linear-gradient(145deg, #2ec4c7, #05242b);
}

.upload-avatar-button {
  width: max-content;
  color: #061320;
  border-radius: 8px;
  background: var(--gold);
  padding: 10px 13px;
  font-weight: 900;
  cursor: pointer;
}

.upload-avatar-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1.9fr 1fr;
  gap: 18px;
  padding: 18px 0 0;
}

.profile-sidebar,
.profile-main {
  display: grid;
  align-content: start;
  gap: 16px;
}

.profile-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-mini-stats article,
.profile-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: var(--profile-card-bg);
}

.profile-mini-stats article {
  display: grid;
  gap: 7px;
  place-items: center;
  min-height: 118px;
  padding: 16px;
}

.profile-mini-stats strong {
  color: var(--gold);
  font-size: 1.7rem;
}

.profile-mini-stats span,
.profile-card p {
  color: var(--muted);
}

.profile-card {
  overflow: hidden;
}

.profile-card h3 {
  margin: 0;
  padding: 13px 16px;
  color: var(--text);
  background: var(--panel-title);
}

.profile-card p {
  margin: 0;
  padding: 18px;
  line-height: 1.55;
}

.profile-card dl {
  margin: 0;
}

.profile-card dl div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-card dt {
  color: var(--muted);
}

.profile-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.account-settings-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.account-settings-body label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
}

.account-settings-body input,
.account-settings-body select,
.account-settings-body textarea {
  width: 100%;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(1, 13, 24, 0.88);
  padding: 12px 14px;
  font: inherit;
}

.account-settings-body select {
  min-height: 60px;
  font-weight: 900;
}

.color-select-preview {
  display: block;
  width: 100%;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

body.theme-app-blue #edit-theme-preset-preview,
body.theme-app-blue #edit-background-preview {
  background:
    radial-gradient(circle at 82% 28%, rgba(76, 141, 247, 0.68), transparent 34%),
    linear-gradient(135deg, #0b3158, #020711);
}

body.theme-warm-brown #edit-theme-preset-preview,
body.theme-warm-brown #edit-background-preview {
  background:
    radial-gradient(circle at 82% 28%, rgba(185, 112, 61, 0.72), transparent 34%),
    linear-gradient(135deg, #6b442c, #14110e);
}

body.theme-deep-night #edit-theme-preset-preview,
body.theme-deep-night #edit-background-preview {
  background:
    radial-gradient(circle at 82% 28%, rgba(59, 104, 184, 0.45), transparent 34%),
    linear-gradient(135deg, #071221, #000);
}

body.theme-soft-purple #edit-theme-preset-preview,
body.theme-soft-purple #edit-background-preview {
  background:
    radial-gradient(circle at 82% 28%, rgba(98, 87, 188, 0.72), transparent 34%),
    linear-gradient(135deg, #2a1a55, #05030c);
}

body.theme-gold #edit-theme-preset-preview,
body.theme-gold #edit-background-preview {
  background:
    radial-gradient(circle at 82% 28%, rgba(242, 189, 100, 0.76), transparent 34%),
    linear-gradient(135deg, #5b4317, #080602);
}

body.theme-red #edit-theme-preset-preview,
body.theme-red #edit-background-preview {
  background:
    radial-gradient(circle at 82% 28%, rgba(239, 68, 68, 0.76), transparent 34%),
    linear-gradient(135deg, #3b1118, #070305);
}

body.theme-green #edit-theme-preset-preview,
body.theme-green #edit-background-preview {
  background:
    radial-gradient(circle at 82% 28%, rgba(84, 214, 111, 0.68), transparent 34%),
    linear-gradient(135deg, #103622, #020906);
}

body.theme-teal #edit-theme-preset-preview,
body.theme-teal #edit-background-preview {
  background:
    radial-gradient(circle at 82% 28%, rgba(64, 213, 214, 0.7), transparent 34%),
    linear-gradient(135deg, #08383c, #020708);
}

body.theme-gray #edit-theme-preset-preview,
body.theme-gray #edit-background-preview {
  background:
    radial-gradient(circle at 82% 28%, rgba(140, 160, 185, 0.62), transparent 34%),
    linear-gradient(135deg, #1d2630, #030508);
}

body.panel-blue-gold #edit-panel-preview {
  background: linear-gradient(90deg, #4c8df7, #7f7460 48%, #f2bd64);
}

body.panel-blue #edit-panel-preview {
  background: linear-gradient(90deg, #4c8df7, #204c96);
}

body.panel-gold #edit-panel-preview {
  background: linear-gradient(90deg, #f2bd64, #8a6423);
}

body.panel-purple #edit-panel-preview {
  background: linear-gradient(90deg, #8b5cf6, #3d2b73);
}

body.panel-green #edit-panel-preview {
  background: linear-gradient(90deg, #54d66f, #1a6940);
}

body.panel-red #edit-panel-preview {
  background: linear-gradient(90deg, #ef4444, #7f1d1d);
}

body.panel-teal #edit-panel-preview {
  background: linear-gradient(90deg, #40d5d6, #146970);
}

body.panel-gray #edit-panel-preview {
  background: linear-gradient(90deg, #8ca0b9, #465262);
}

body.panel-brown #edit-panel-preview {
  background: linear-gradient(90deg, #b9703d, #623d23);
}

.account-settings-body textarea {
  resize: vertical;
}

.account-settings-body .check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-settings-body .check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.account-settings-body button {
  justify-self: start;
  color: #061320;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  padding: 11px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.account-settings-body .danger-button {
  color: #fff;
  border: 1px solid rgba(255, 113, 113, 0.5);
  background: rgba(198, 43, 43, 0.88);
}

.account-settings-body p {
  padding: 0;
}

.connected-list,
.friend-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.connected-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.connected-list button,
.friend-list button,
.edit-profile-save-row button {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 11px 12px;
  font: inherit;
  font-weight: 900;
}

.connected-list button:disabled,
.friend-list button:disabled {
  opacity: 0.65;
}

.friend-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.friend-list .empty-friends-row {
  display: grid;
  justify-content: stretch;
  color: var(--muted);
  line-height: 1.45;
}

.friend-list .empty-friends-row strong {
  color: var(--text);
}

.setting-note {
  margin: 0;
  padding: 0 16px 16px;
}

.theme-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  max-width: 340px;
}

.theme-swatch,
.panel-swatch {
  width: 42px;
  min-width: 42px;
  height: 54px;
  min-height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  cursor: pointer;
}

.theme-swatch.active,
.panel-swatch.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 189, 100, 0.16);
}

.theme-swatch.app-blue {
  background:
    radial-gradient(circle at 72% 20%, rgba(76, 141, 247, 0.78), transparent 46%),
    linear-gradient(145deg, #071826, #020711);
}

.theme-swatch.warm-brown {
  background:
    radial-gradient(circle at 72% 20%, rgba(185, 112, 61, 0.72), transparent 46%),
    linear-gradient(145deg, #6b442c, #14110e);
}

.theme-swatch.deep-night {
  background:
    radial-gradient(circle at 72% 20%, rgba(59, 104, 184, 0.44), transparent 46%),
    linear-gradient(145deg, #071221, #000);
}

.theme-swatch.soft-purple {
  background:
    radial-gradient(circle at 72% 20%, rgba(98, 87, 188, 0.72), transparent 46%),
    linear-gradient(145deg, #1a1233, #05030c);
}

.theme-swatch.gold {
  background:
    radial-gradient(circle at 72% 20%, rgba(242, 189, 100, 0.76), transparent 46%),
    linear-gradient(145deg, #5b4317, #080602);
}

.theme-swatch.red {
  background:
    radial-gradient(circle at 72% 20%, rgba(239, 68, 68, 0.76), transparent 46%),
    linear-gradient(145deg, #3b1118, #070305);
}

.theme-swatch.green {
  background:
    radial-gradient(circle at 72% 20%, rgba(84, 214, 111, 0.68), transparent 46%),
    linear-gradient(145deg, #103622, #020906);
}

.theme-swatch.teal {
  background:
    radial-gradient(circle at 72% 20%, rgba(64, 213, 214, 0.7), transparent 46%),
    linear-gradient(145deg, #08383c, #020708);
}

.theme-swatch.gray {
  background:
    radial-gradient(circle at 72% 20%, rgba(140, 160, 185, 0.62), transparent 46%),
    linear-gradient(145deg, #1d2630, #030508);
}

.panel-swatch.blue-gold {
  background: linear-gradient(90deg, #4c8df7, #f2bd64);
}

.panel-swatch.blue {
  background: linear-gradient(90deg, #4c8df7, #204c96);
}

.panel-swatch.gold {
  background: linear-gradient(90deg, #f2bd64, #8a6423);
}

.panel-swatch.purple {
  background: linear-gradient(90deg, #8b5cf6, #3d2b73);
}

.panel-swatch.green {
  background: linear-gradient(90deg, #54d66f, #1a6940);
}

.panel-swatch.red {
  background: linear-gradient(90deg, #ef4444, #7f1d1d);
}

.panel-swatch.teal {
  background: linear-gradient(90deg, #40d5d6, #146970);
}

.panel-swatch.gray {
  background: linear-gradient(90deg, #8ca0b9, #465262);
}

.panel-swatch.brown {
  background: linear-gradient(90deg, #b9703d, #623d23);
}

.edit-profile-save-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.edit-profile-save-row button {
  color: #061320;
  border: 0;
  background: var(--gold);
}

.save-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  color: #061320;
  border: 1px solid rgba(255, 246, 232, 0.24);
  border-radius: 8px;
  background: var(--gold);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  padding: 14px 18px;
  font-weight: 900;
}

.online-pill {
  display: inline-flex;
  color: #061320;
  background: #54d66f;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 0.78rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-row article {
  display: grid;
  gap: 7px;
  place-items: center;
  min-height: 104px;
  padding: 18px;
}

.stat-row strong {
  color: var(--text);
  font-size: 1.7rem;
}

.stat-row span {
  color: var(--muted);
}

.rank-home-section {
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.24);
}

.public-ranks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
}

.public-ranks span,
.public-ranks a {
  text-shadow: 0 0 10px currentColor;
}

.public-ranks a {
  text-decoration: none;
}

.public-ranks a:hover {
  filter: brightness(1.25);
  text-decoration: underline;
}

.rank-admin {
  color: #ff4040;
}

.rank-staff {
  color: #ff55d6;
}

.rank-mentor {
  color: #d99a48;
}

.rank-scholar {
  color: #ffd84a;
}

.rank-developer {
  color: #a646ff;
}

.rank-messenger {
  color: #ff8bd1;
}

.rank-premium {
  color: #29a8ff;
}

.rank-member {
  color: #ffffff;
}

.rank-validating {
  color: #bec6d1;
}

.rank-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.rank-stats article {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.rank-stats strong {
  font-size: 1rem;
}

.rank-stats span {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 780px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 48px;
  }

  .hero-art {
    min-height: 280px;
    order: 2;
  }

  .cross {
    height: 240px;
    width: 68px;
  }

  .cross::before {
    width: 190px;
    height: 62px;
  }

  .book span {
    width: 76px;
    height: 70px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .forum-grid,
  .login-section {
    grid-template-columns: 1fr;
  }

  .forum-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
  }

  .forum-count,
  .forum-latest {
    grid-column: 2;
    justify-self: stretch;
  }

  .forum-count {
    place-items: start;
  }

  .thread-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
  }

  .thread-stats,
  .thread-latest {
    grid-column: 2;
    justify-items: start;
  }

  .subforum-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .subforum-actions {
    margin-left: 0;
  }

  .forum-discussion-head,
  .forum-post-form,
  .profile-pic-row {
    grid-template-columns: 1fr;
  }

  .forum-discussion-head {
    display: grid;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .profile-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .edit-profile-link {
    position: static;
  }

  .edit-profile-heading,
  .edit-profile-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .two-column-settings {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    grid-template-columns: 1fr;
  }

  .admin-number-tool {
    grid-template-columns: 1fr;
  }

  .site-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links,
  .account-actions {
    width: 100%;
  }

  .nav-links a,
  .account-tool,
  .profile-chip {
    flex: 1;
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
  }

  .rank-stats {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 20px;
  }
}
