/* =========================================
   SG Fundasy — Global Styles (site.css)
   Shared across ALL pages
   ========================================= */

/* ---------- Theme Variables ---------- */
:root {
  --bg-main: #05060a;
  --bg-elevated: #0c1019;
  --bg-soft: #111624;
  --border-subtle: #262c3d;

  --accent: #3bb7a9;
  --accent-soft: rgba(59, 183, 169, 0.16);

  --text-main: #f5f7ff;
  --text-muted: #a3a8c1;
  --text-soft: #7f849a;

  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.7);

  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

/* ---------- Base Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-color: #397c78 #090d17;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: #090d17;
  border: 1px solid #171d2c;
}

*::-webkit-scrollbar-thumb {
  min-width: 36px;
  min-height: 36px;
  border: 3px solid #090d17;
  border-radius: 999px;
  background: linear-gradient(180deg, #397c78, #285955);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4fc8bb, #32766f);
}

*::-webkit-scrollbar-corner {
  background: #090d17;
}

/* ---------- Base Page ---------- */
body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, #161b30 0, transparent 45%),
    radial-gradient(circle at bottom, #05060a 0, #020309 50%, #000 100%);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;

  /* Important because footer is fixed */
  padding-bottom: 80px;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* =========================================
   Header / Nav (shared)
   ========================================= */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(
    to bottom,
    rgba(4, 6, 12, 0.94),
    rgba(4, 6, 12, 0.8),
    transparent
  );
  border-bottom: 1px solid rgba(21, 26, 45, 0.9);
}

.top-bar {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  height: 80px;
  width: auto;
  display: block;
}

.tagline-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(49, 57, 87, 0.85);
  background: rgba(10, 13, 24, 0.95);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--text-soft);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  padding: 0.2rem 0.38rem;
  border-radius: 0.45rem;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links .divider {
  color: var(--text-soft);
}

/* Active link (for later PHP "current page" highlight) */
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(59, 183, 169, 0.28);
}

.nav-toggle,
.burger-menu {
  display: none;
}

.burger-menu {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(49, 57, 87, 0.85);
  background: rgba(10, 13, 24, 0.95);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.burger-menu span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* =========================================
   Layout / Typography (shared)
   ========================================= */
.wrapper {
  /* Use homepage width by default */
  max-width: 960px;
  margin: 0 auto;
  padding: 2.4rem 1.5rem 3.2rem;
}
 .wrapper-wide {
  max-width: 100%;
  padding: 2.4rem 1rem 3rem;
}

section {
  margin-bottom: 2.6rem;
}

section:last-of-type {
  margin-bottom: 0;
}

h1, h2, h3 {
  font-weight: 650;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.2rem, 3.3vw, 2.7rem);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.6rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
}

p {
  font-size: 0.98rem;
  color: var(--text-main);
}

p + p {
  margin-top: 0.75rem;
}

.muted {
  color: var(--text-muted);
}

/* =========================================
   Shared Components (cards, shells, buttons)
   ========================================= */
   /* Auth forms */
.form-shell {
  max-width: 460px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(49, 57, 87, 0.85);
  background: rgba(10, 13, 24, 0.95);
  color: var(--text-main);
  outline: none;
}

.input:focus {
  border-color: rgba(59, 183, 169, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 183, 169, 0.12);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.linkish {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.18rem;
}
.section-shell {
  padding: 1.6rem 1.6rem 1.7rem;
  border-radius: 1.1rem;
  background: linear-gradient(
    135deg,
    rgba(16, 22, 40, 0.98),
    rgba(10, 13, 24, 0.98)
  );
  border: 1px solid rgba(38, 42, 66, 0.9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.65);
}

.section-shell + .section-shell {
  margin-top: 1.2rem;
}

.what-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  margin-top: 1.7rem;
}

.card {
  background: linear-gradient(145deg, #121829, #090c16);
  border-radius: 1rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(49, 58, 90, 0.95);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}

.card p {
  font-size: 0.94rem;
}

.card p + p {
  margin-top: 0.45rem;
}

hr {
  border: none;
  border-top: 1px dashed rgba(60, 68, 104, 0.9);
  margin: 1.9rem 0 1.7rem;
}

/* Lists (homepage + price targets explanation cards) */
ul {
  list-style: none;
  margin-top: 0.9rem;
}

ul li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-main);
}

ul li + li {
  margin-top: 0.35rem;
}

.bullet {
  width: 1.2rem;
  display: inline-block;
  text-align: center;
  color: var(--text-soft);
}

/* If you use <ul> inside .card on PriceTargets page */
.card ul {
  margin-top: 0.5rem;
  margin-left: 0;
  padding-left: 1.75rem;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.14s ease-out,
    box-shadow 0.14s ease-out,
    background-color 0.14s ease-out,
    border-color 0.14s ease-out;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6ce3d5);
  color: #041012;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(59, 183, 169, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 50px rgba(59, 183, 169, 0.7);
}

.btn-ghost {
  border-color: rgba(54, 64, 94, 0.9);
  background: rgba(10, 13, 24, 0.95);
  color: var(--text-muted);
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  background: rgba(16, 21, 38, 0.98);
  transform: translateY(-1px);
}

/* Homepage specific helper classes (still reusable) */
.cta-row {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
}

.discord-cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.discord-note {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  background: rgba(7, 10, 20, 0.95);
  border-radius: 0.7rem;
  border: 1px dashed rgba(52, 60, 92, 0.9);
  padding: 0.55rem 0.7rem;
}

/* Homepage hero (you can keep it here; doesn't hurt) */
section[aria-labelledby="intro-heading"] {
  display: flex;
  justify-content: center;
}

.hero-shell {
  padding: 2.4rem 2.1rem 2.5rem;
  border-radius: 1.7rem;
  background:
    radial-gradient(circle at top center, rgba(59, 183, 169, 0.25) 0, transparent 55%),
    radial-gradient(circle at bottom, rgba(26, 33, 61, 0.95) 0, #05060a 75%);
  border: 1px solid rgba(132, 199, 192, 0.65);
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.9),
    0 0 110px rgba(59, 183, 169, 0.28);
  position: relative;
  overflow: hidden;
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.hero-shell-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1.1rem;
}

.hero-body {
  max-width: 40rem;
  margin: 0 auto;
}

.hero-body p {
  font-size: 0.98rem;
}

/* Disclaimer box (shared component) */
.disclaimer-box {
  background: linear-gradient(130deg, #0c1019, #05060a);
  border-radius: 1rem;
  border: 1px dashed rgba(76, 84, 118, 0.95);
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.disclaimer-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.disclaimer-box p + p {
  margin-top: 0.65rem;
}

/* =========================================
   Footer (shared)
   ========================================= */
footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(25, 30, 48, 0.95);
  padding: 1.3rem 1.5rem 1.8rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  background: radial-gradient(circle at top, rgba(22, 28, 52, 0.6) 0, transparent 52%);
  z-index: 5;
}

.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.footer-inner a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.18rem;
}

/* =========================================
   PriceTargets Table (page component, but ok to keep global for now)
   ========================================= */
.table-wrapper {
  overflow-x: auto;
}

.price-targets-scroll {
  max-height: 70vh;
  overflow: auto;
  isolation: isolate;
}

.price-targets-scroll table {
  border-collapse: separate;
  border-spacing: 0;
}

.price-targets-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #191e2f;
}

.price-targets-scroll .price-targets-filter-row th {
  top: 49px;
  padding: 0.45rem 0.35rem;
  background: #111727;
}

.price-targets-filter-row input,
.price-targets-filter-row select {
  width: 100%;
  min-width: 5.5rem;
  height: 2rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid #303950;
  border-radius: 0.45rem;
  outline: none;
  background: #090d17;
  color: var(--text-main);
  font: inherit;
  font-size: 0.76rem;
}

.price-targets-filter-row input {
  min-width: 7rem;
}

.price-targets-filter-row input:focus,
.price-targets-filter-row select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.price-targets-filter-row input::placeholder {
  color: var(--text-soft);
}

.price-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.price-filter-summary-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.price-filter-summary select {
  height: 2rem;
  padding: 0.25rem 1.8rem 0.25rem 0.55rem;
  border: 1px solid #303950;
  border-radius: 0.5rem;
  background: #090d17;
  color: var(--text-main);
  font: inherit;
}

.price-filter-reset {
  padding: 0.38rem 0.65rem;
  border: 1px solid #303950;
  border-radius: 0.55rem;
  background: rgba(59, 183, 169, 0.08);
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

.price-filter-reset:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: rgba(59, 183, 169, 0.55);
}

.price-filter-reset:disabled {
  opacity: 0.45;
  cursor: default;
}

.price-filter-empty td {
  position: static !important;
  padding: 2rem 1rem;
  color: var(--text-soft);
  text-align: center;
}

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

.favorite-toast[hidden] {
  display: none;
}

.favorite-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  z-index: 110;
  max-width: min(26rem, calc(100vw - 2.5rem));
  padding: 0.8rem 1rem;
  border: 1px solid rgba(59, 183, 169, 0.5);
  border-radius: 0.75rem;
  background: #101827;
  color: var(--text-main);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.favorite-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.favorite-toast.is-error {
  border-color: rgba(255, 107, 143, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .favorite-toggle,
  .favorite-inline-actions,
  .favorite-toast {
    transition: none;
  }
}

.price-targets-scroll tr > :first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #0e1323;
}

.price-targets-scroll tr > :nth-child(2) {
  position: sticky;
  left: 6rem;
  z-index: 1;
  background: #0e1323;
  box-shadow: 1px 0 0 #2a3044;
}

.price-targets-scroll tbody tr:nth-child(even) > :first-child,
.price-targets-scroll tbody tr:nth-child(even) > :nth-child(2) {
  background: #141928;
}

.price-targets-scroll tbody tr:hover > :first-child,
.price-targets-scroll tbody tr:hover > :nth-child(2) {
  background: #142331;
}

.price-targets-scroll thead tr > :first-child,
.price-targets-scroll thead tr > :nth-child(2) {
  z-index: 4;
  background: #191e2f;
}

.price-targets-scroll thead .price-targets-filter-row > :first-child,
.price-targets-scroll thead .price-targets-filter-row > :nth-child(2) {
  z-index: 4;
  background: #111727;
}

.price-targets-scroll .favorite-column {
  width: 6rem;
  min-width: 6rem;
  max-width: 6rem;
  padding-inline: 0.35rem;
  text-align: center;
}

.favorite-toggle {
  position: absolute;
  top: 0;
  left: 50%;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #727990;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transform: translateX(-50%);
  transition: left 0.2s ease, color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.2s ease;
}

.favorite-toggle:hover,
.favorite-toggle:focus-visible {
  border-color: rgba(255, 107, 143, 0.45);
  background: rgba(255, 107, 143, 0.1);
  color: #ff86a5;
  outline: none;
  transform: translateX(-50%) scale(1.08);
}

.favorite-toggle.is-favorite {
  color: #ff6b8f;
  text-shadow: 0 0 14px rgba(255, 107, 143, 0.4);
}

.favorite-login {
  position: static;
  display: inline-grid;
  transform: none;
  text-decoration: none;
}

.favorite-login:hover,
.favorite-login:focus-visible {
  transform: scale(1.08);
}

.favorite-inline-control {
  position: relative;
  width: 5.25rem;
  height: 2rem;
  margin: 0 auto;
}

.favorite-inline-control.is-confirming .favorite-toggle {
  left: 0;
  transform: translateX(0);
}

.favorite-inline-control.is-confirming .favorite-toggle:hover,
.favorite-inline-control.is-confirming .favorite-toggle:focus-visible {
  transform: scale(1.04);
}

.favorite-inline-actions {
  position: absolute;
  top: 0.15rem;
  right: 0;
  display: flex;
  gap: 0.18rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-0.35rem);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.favorite-inline-control.is-confirming .favorite-inline-actions {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0.06s, 0.06s, 0s;
}

.favorite-inline-actions button {
  display: grid;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  place-items: center;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.favorite-inline-approve {
  border: 1px solid rgba(59, 183, 169, 0.55);
  background: rgba(59, 183, 169, 0.18);
  color: #69d8ca;
}

.favorite-inline-reject {
  border: 1px solid rgba(255, 107, 143, 0.42);
  background: rgba(255, 107, 143, 0.12);
  color: #ff8daa;
}

.favorite-inline-actions button:hover,
.favorite-inline-actions button:focus-visible {
  filter: brightness(1.25);
  outline: 2px solid var(--text-main);
  outline-offset: 1px;
}

.favorite-inline-actions button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.price-targets-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead {
  background: rgba(255, 255, 255, 0.04);
}

th {
  padding: 0.75rem;
  color: var(--text-soft);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

th a {
  color: var(--text-soft);
}

th a:hover {
  color: var(--accent);
}

td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

tbody tr:hover {
  background: rgba(59, 183, 169, 0.08);
  transition: 0.15s;
}

/* Community projects and forum */
.community-page { display: grid; gap: 1.5rem; }
.community-kicker { margin: 0 0 .45rem; color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .16em; }
.community-hero { background: radial-gradient(circle at 90% 0%, rgba(78, 183, 169, .14), transparent 38%), rgba(15, 18, 30, .94); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.project-card { display: grid; grid-template-rows: 9rem 1fr; min-width: 0; overflow: hidden; color: var(--text-main); border: 1px solid var(--border-subtle); border-radius: 1rem; background: rgba(7, 10, 20, .62); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.project-card:hover { transform: translateY(-3px); border-color: rgba(132, 199, 192, .55); }
.project-thumbnail { display: grid; place-items: center; font-size: 3.3rem; background: linear-gradient(135deg, rgba(63, 184, 169, .24), rgba(201, 162, 39, .18)); }
.project-thumbnail img { display: block; width: 4rem; height: 4rem; object-fit: contain; }
.project-card-copy { display: grid; gap: .55rem; align-content: start; padding: 1rem; }
.project-card-copy strong { font-size: 1.05rem; }
.project-card-copy small { min-height: 2.8em; color: var(--text-soft); line-height: 1.45; }
.project-status { color: var(--accent); font-size: .82rem; font-weight: 700; }
.community-notice, .community-flash { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--border-subtle); border-radius: .75rem; background: rgba(132, 199, 192, .08); }
.community-flash-error { border-color: rgba(220, 53, 69, .42); background: rgba(220, 53, 69, .12); }
.forum-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.forum-heading h2 { margin-bottom: 0; }
.thread-list { border-top: 1px solid var(--border-subtle); }
.thread-row { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem .25rem; border-bottom: 1px solid var(--border-subtle); }
.thread-votes { display: grid; place-items: center; align-content: center; color: var(--text-soft); }
.thread-votes span { color: var(--accent); }
.thread-summary { min-width: 0; }
.thread-summary h3 { margin: 0 0 .35rem; }
.thread-summary h3 a { color: var(--text-main); text-decoration: none; }
.thread-summary h3 a:hover { color: var(--accent); }
.thread-summary p { margin: 0 0 .45rem; color: var(--text-soft); }
.thread-summary small, .thread-meta { color: var(--text-soft); }
.forum-empty { padding: 2rem 1rem; text-align: center; }
.forum-composer { margin-top: 1.5rem; padding: 1.2rem; border: 1px solid var(--border-subtle); border-radius: 1rem; background: rgba(7, 10, 20, .45); }
.forum-composer form { display: grid; gap: .7rem; }
.forum-composer textarea { min-height: 8rem; resize: vertical; padding: .8rem; border: 1px solid rgba(255,255,255,.14); border-radius: .7rem; background: rgba(255,255,255,.04); color: var(--text-main); font: inherit; }
.forum-composer .btn { justify-self: start; }
.thread-detail { padding: 1.2rem; border: 1px solid var(--border-subtle); border-radius: 1rem; background: rgba(7, 10, 20, .45); }
.community-back { color: var(--accent); text-decoration: none; }
.thread-body { margin: 1rem 0; line-height: 1.7; }
.vote-form { display: inline-block; }
.vote-button { display: inline-block; padding: .55rem .8rem; border: 1px solid var(--border-subtle); border-radius: .65rem; background: rgba(255,255,255,.04); color: var(--text-soft); cursor: pointer; text-decoration: none; }
.vote-button.is-voted { border-color: rgba(132,199,192,.55); background: rgba(132,199,192,.12); color: var(--accent); }
.reply-list { margin-top: 1.5rem; }
.reply-card { padding: 1rem 0; border-bottom: 1px solid var(--border-subtle); }
.reply-card p { margin-top: 0; }

@media (max-width: 760px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 7rem 1fr; grid-template-rows: auto; }
  .forum-heading { align-items: start; flex-direction: column; }
}

.ticker {
  font-weight: 650;
  color: var(--text-main);
}

.tier-badge {
  background: rgba(132, 199, 192, 0.18);
  border: 1px solid rgba(132, 199, 192, 0.4);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--accent);
}

.risk-badge {
  background: rgba(255, 180, 60, 0.16);
  border: 1px solid rgba(255, 180, 60, 0.35);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #ffb63c;
}

.price {
  font-weight: 650;
  color: #6ce3d5;
}

.price-error {
  color: var(--text-muted);
}

.upside {
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-align: center;
  display: inline-block;
}

.upside.positive {
  background: rgba(37, 199, 110, 0.18);
  color: #22c55e;
}

.upside.negative {
  background: rgba(255, 86, 86, 0.18);
  color: #ef4444;
}

.no-data {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
}
/* =========================================
   Blog 
   ========================================= */
.blog-hero {
  position: relative;
  margin-bottom: 2rem;
}

.blog-hero::after {
  content: "";
  display: block;
  width: 75%;
  height: 2px;
  margin-top: 14px;
  background: #D4AF37;
}
.blog-title {
  background: linear-gradient(90deg, #E7C873, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-hero .section-kicker {
  display: inline-block;
  margin-bottom: 0.6rem;
}

.blog-hero h1 {
  margin: 0;
  line-height: 1.05;
}

.blog-hero .section-copy {
  margin-top: 1rem;
  max-width: 680px;
  line-height: 1.6;
  color: var(--text-soft);
}
/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
  .wrapper,
  .wrapper-wide {
    padding-inline: 1.25rem;
    padding-top: 1.7rem;
  }

  .top-bar {
    position: relative;
    padding-inline: 1.25rem;
  }

  .brand-logo {
    height: 62px;
  }

  .burger-menu {
    display: flex;
  }

  .tagline-pill.nav-links {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 1.25rem;
    right: 1.25rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.7rem;
    border-radius: 1rem;
    background: rgba(10, 13, 24, 0.98);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.75);
    white-space: normal;
  }

  .nav-toggle:checked ~ .tagline-pill.nav-links {
    display: flex;
  }

  .nav-toggle:checked + .burger-menu span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .burger-menu span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .burger-menu span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0.9rem;
    border-radius: 0.75rem;
  }

  .nav-links a:hover {
    background: rgba(59, 183, 169, 0.10);
  }

  .nav-links .divider {
    display: none;
  }

  .hero-shell {
    padding: 2rem 1.5rem 2.2rem;
  }

  .section-shell {
    padding: 1.4rem 1.25rem 1.5rem;
  }

  .cta-row,
  .discord-cta-row {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-caption {
    text-align: center;
  }
}



@media (max-width: 480px) {
  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }
}
.project-embed-shell { margin-top: 1.5rem; }
.project-embed { display: block; width: 100%; min-height: 760px; border: 1px solid var(--border, #29324a); border-radius: 16px; background: #fff; }
body.community-embed-fullscreen { padding: 0; overflow: hidden; }
.community-embed-fullscreen .page,
.community-embed-fullscreen main,
.community-embed-fullscreen .community-page,
.community-embed-fullscreen .community-page > section:first-child,
.community-embed-fullscreen .community-hero { width: 100%; height: 100dvh; min-height: 0; margin: 0; padding: 0; }
.community-embed-fullscreen .community-page { max-width: none; display: block; }
.community-embed-fullscreen .community-hero { border: 0; border-radius: 0; box-shadow: none; background: #080b14; }
.community-embed-fullscreen .community-hero > div:first-child,
.community-embed-fullscreen .project-grid,
.community-embed-fullscreen .community-page > section:nth-child(2),
.community-embed-fullscreen footer { display: none; }
.community-embed-fullscreen .project-embed-shell { position: relative; width: 100%; height: 100%; margin: 0; }
.community-embed-fullscreen #tickerscope-status { position: absolute; z-index: 1; top: .75rem; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem); margin: 0; }
.community-embed-fullscreen .project-embed { width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; }
