/* FETAMIN — global skin 2026 (island nav, glass surfaces, amber accent) */
:root {
  --bg: #070709;
  --surface: #0e0f13;
  --surface-2: #13151a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2efec;
  --muted: #9a9aa4;
  --accent: #ffa53d;
  --accent-hi: #ffc07c;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  padding-top: 96px;
  background:
    radial-gradient(1100px 540px at 50% -220px, rgba(255, 161, 60, 0.07), transparent 70%) no-repeat,
    #070709;
  background-attachment: fixed;
  color: var(--text);
  font-family: Manrope, Onest, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}
body.home-page {
  padding-top: 0;
}
::selection {
  background: rgba(255, 161, 60, 0.28);
  color: #fff;
}

/* ---------- island navigation ---------- */
.topbar {
  position: fixed !important;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 64px !important;
  padding: 0 10px 0 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 999px !important;
  background: rgba(13, 14, 18, 0.55) !important;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.topbar.is-scrolled .topbar-inner {
  background: rgba(10, 11, 14, 0.84) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
.brand {
  flex: none;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #f5f2ee;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}
.nav {
  flex-wrap: nowrap;
  gap: 2px !important;
  align-items: center;
}
.topbar .nav > a,
.topbar .nav-more-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #b7b6bd !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.topbar .nav > a:hover,
.topbar .nav-more-trigger:hover,
.topbar .nav-more-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
}
.topbar .nav > a.active {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}
.topbar .nav .nav-join {
  margin-left: 4px;
  padding: 10px 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffc481, #ffa13c) !important;
  color: #241505 !important;
  font-weight: 600 !important;
  box-shadow: 0 8px 24px rgba(255, 161, 60, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.topbar .nav .nav-join:hover {
  background: linear-gradient(180deg, #ffd09b, #ffb057) !important;
  color: #241505 !important;
  transform: translateY(-1px);
}
.nav-more-panel {
  margin-top: 8px;
  border-radius: 20px !important;
  border: 1px solid var(--line) !important;
  background: rgba(14, 15, 19, 0.94) !important;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6) !important;
  padding: 8px !important;
}
.nav-more-panel > a,
.nav-more-panel .nav-logout {
  border-radius: 12px !important;
  color: #c6c4cc !important;
}
.nav-more-panel > a:hover,
.nav-more-panel .nav-logout:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
}
.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e7e4ea !important;
}
.nav-toggle i {
  font-size: 22px;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--text);
}
.page-forum .forum-head,
.page-members .forum-head {
  margin-bottom: 26px;
}
.forum-head {
  margin-bottom: 24px;
  align-items: center;
}
.forum-head h1,
.legal h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.forum-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  padding: 0 4px 12px;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #c89761;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-label small,
.section-label strong {
  color: #7f808a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}
.section-gap {
  margin-top: 36px;
}
.card-copy,
.ui-note {
  color: #93939d;
  font-size: 13px;
  line-height: 1.62;
}
.panel-sub {
  color: var(--muted);
  font-size: 13px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #80818c;
  font-size: 12px;
}
.crumb a:hover {
  color: #fff;
}
.empty-state {
  padding: 26px 18px;
  color: #82838e;
  font-size: 13px;
  text-align: center;
}

/* ---------- buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #eae8ee;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  box-shadow: none;
  clip-path: none;
  transition: transform 0.22s var(--ease), background-color 0.22s, border-color 0.22s, box-shadow 0.22s, color 0.22s;
}
.button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.button:active {
  transform: translateY(0) scale(0.99);
}
.button i {
  font-size: 17px;
}
.button-red {
  border: 0;
  background: linear-gradient(180deg, #ffc481, #ffa13c);
  color: #241505;
  box-shadow: 0 10px 26px rgba(255, 161, 60, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.button-red:hover {
  background: linear-gradient(180deg, #ffd09b, #ffb057);
  color: #241505;
  box-shadow: 0 14px 34px rgba(255, 161, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.button-outline {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.11);
  color: #e6e4ea;
}
.button-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.button-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(255, 193, 125, 0.8);
  outline-offset: 3px;
}

/* ---------- forms ---------- */
label {
  color: #a9a8b2;
  font-size: 12.5px;
  font-weight: 500;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select {
  width: 100%;
  min-height: 46px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: #0b0c10;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: #666771;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 178, 98, 0.55);
  background: #0d0e13;
  box-shadow: 0 0 0 3px rgba(255, 161, 60, 0.08);
  outline: 0;
}
.stack-form {
  display: grid;
  gap: 14px;
}
.checkline {
  color: #9a9aa4;
  font-size: 12px;
}
.file-picker {
  border: 1px dashed rgba(255, 255, 255, 0.16) !important;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 13px 16px;
}
.file-picker:hover {
  border-color: rgba(255, 178, 98, 0.5) !important;
  background: rgba(255, 161, 60, 0.05);
}
.forum-search {
  width: min(560px, 100%);
  gap: 10px;
  margin-bottom: 28px;
}
.forum-search input {
  border-radius: 999px;
  padding-left: 18px;
}
.forum-search button {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dedbe3;
}
.forum-search button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- surfaces ---------- */
.auth-panel,
.settings-card,
.side-card,
.market-card,
.category-card,
.thread-row,
.member-card,
.post,
.ticket-row,
.ticket-form,
.ticket-detail-head,
.ticket-message,
.welcome,
.client-panel,
.profile-card,
.invite-card,
.admin2-card,
.admin2-panel,
.market-detail,
.reply-box {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)) !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 22px !important;
  box-shadow: none !important;
}
.category-card,
.thread-row {
  border-radius: 18px !important;
}
.category-card:hover,
.thread-row:hover,
.market-card:hover,
.member-card:hover,
.ticket-row:hover {
  border-color: rgba(255, 178, 98, 0.28) !important;
  background: linear-gradient(180deg, rgba(255, 178, 98, 0.06), rgba(255, 255, 255, 0.015)) !important;
}
.side-card {
  padding: 22px;
}
.side-kicker {
  color: #c89761;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.side-card h2,
.side-card h3 {
  letter-spacing: -0.03em;
}
.settings-card {
  padding: 24px;
}
.settings-card .section-label {
  margin-bottom: 18px;
}
.auth-panel {
  padding: 38px;
  border-radius: 28px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.09) !important;
}
.auth-panel h1 {
  font-size: 30px;
  letter-spacing: -0.045em;
}
.auth-shell {
  padding-top: 40px;
}

/* forum */
.category-card {
  padding: 20px 22px !important;
}
.category-icon {
  border-radius: 14px !important;
  background: rgba(255, 161, 60, 0.1) !important;
  border: 1px solid rgba(255, 161, 60, 0.16) !important;
  color: #ffbe7d !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.category-count {
  color: #b9b7c0;
}
.thread-row {
  padding: 16px 20px !important;
}
.thread-pin {
  border-radius: 12px !important;
  background: rgba(255, 161, 60, 0.08) !important;
  border: 1px solid rgba(255, 161, 60, 0.14) !important;
  color: #ffbe7d !important;
}
.thread-summary strong {
  font-weight: 600;
  letter-spacing: -0.015em;
}
.thread-summary small,
.thread-meta {
  color: #83848f;
}
.member-avatar {
  border-radius: 50% !important;
}
.member-card {
  border-radius: 24px !important;
}
.member-card-banner {
  border-radius: 0 !important;
}
.member-card-content {
  padding: 18px 20px 22px;
}
.role-badge {
  border-radius: 999px !important;
  padding: 5px 10px !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
}

/* marketplace */
.market-card {
  border-radius: 24px !important;
  overflow: hidden;
}
.market-card-cover {
  border-radius: 18px 18px 0 0;
}
.market-title {
  letter-spacing: -0.02em;
  font-weight: 600;
}
.market-description {
  color: #91919b;
  font-size: 12.5px;
  line-height: 1.6;
}
.market-card-top {
  color: #8a8b96;
}
.market-open {
  border-radius: 999px !important;
}

/* tickets */
.ticket-row {
  border-radius: 18px !important;
  padding: 16px 20px !important;
}
.ticket-id {
  color: #8a8b96;
  font-variant-numeric: tabular-nums;
}
.ticket-priority,
.ticket-status {
  border-radius: 999px !important;
  padding: 5px 10px !important;
  font-size: 10.5px !important;
  letter-spacing: 0.02em;
}
.ticket-filters a {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
}
.ticket-filters a.selected {
  background: rgba(255, 161, 60, 0.14);
  border-color: rgba(255, 178, 98, 0.35);
  color: #ffd6ab;
}

/* posts / thread */
.post {
  padding: 22px !important;
}
.post-content,
.post-body {
  font-size: 13.5px;
  line-height: 1.7;
  color: #cfcbd4;
}
.reply-box {
  padding: 18px;
}

/* profile */
.profile-page-head,
.profile-banner,
.profile-identity,
.profile-stats {
  border-radius: 24px !important;
}
.profile-stats div {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* flash */
.flash {
  border-radius: 14px !important;
  padding: 12px 16px;
  background: rgba(255, 161, 60, 0.1);
  border: 1px solid rgba(255, 178, 98, 0.22);
  color: #ffd9b1;
  font-size: 12.5px;
}
.flash.error {
  background: rgba(255, 96, 96, 0.08);
  border-color: rgba(255, 120, 120, 0.24);
  color: #ffb9b9;
}

/* footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: transparent !important;
}
.footer-inner {
  min-height: 74px;
  color: #6a6b76;
  font-size: 11.5px;
}
.footer-links a {
  color: #85858f;
}
.footer-links a:hover {
  color: #e9e6ec;
}
.language-switch button {
  border-radius: 999px;
}

/* legal */
.legal {
  padding-top: 26px;
  padding-bottom: 90px;
}
.legal p {
  color: #a6a4ad;
  font-size: 13px;
  line-height: 1.75;
}

/* community spacing */
.community {
  padding-top: 26px !important;
  padding-bottom: 80px;
}

@media (max-width: 680px) {
  body {
    padding-top: 84px;
  }
  .topbar {
    top: 10px;
    padding: 0 12px !important;
  }
  .topbar-inner {
    min-height: 58px !important;
    padding: 0 8px 0 14px !important;
    gap: 10px;
  }
  .brand {
    font-size: 14px;
  }
  .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .topbar .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px !important;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line) !important;
    border-radius: 24px !important;
    background: rgba(13, 14, 18, 0.94) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%) !important;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6) !important;
  }
  .topbar .nav > a,
  .topbar .nav-more-trigger {
    width: 100%;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
  }
  .topbar .nav .nav-join {
    margin: 4px 0 0;
    justify-content: center;
  }
  .community {
    padding-top: 16px !important;
  }
  .forum-head {
    margin-bottom: 20px;
  }
  .auth-panel {
    padding: 24px;
    border-radius: 22px !important;
  }
  .settings-card,
  .side-card {
    padding: 20px;
  }
}

/* ---------- beat the legacy skin (site-polish uses !important) ---------- */
.brand {
  font-size: 15px !important;
  letter-spacing: -0.025em !important;
}
.forum-head h1,
.legal h1 {
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.045em !important;
}
.auth-panel h1 {
  font-size: 30px !important;
  letter-spacing: -0.045em !important;
}
.section-label {
  font-size: 11px !important;
  letter-spacing: 0.16em !important;
  color: #c89761 !important;
  margin: 0 0 14px !important;
  padding: 0 4px 12px !important;
}
.side-card {
  padding: 22px !important;
}
.side-kicker {
  color: #c89761 !important;
  font-size: 10.5px !important;
}
.category-card {
  padding: 20px 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 18px !important;
}
.thread-row {
  padding: 16px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 18px !important;
}
.category-card:hover,
.thread-row:hover {
  border-color: rgba(255, 178, 98, 0.28) !important;
  background: linear-gradient(180deg, rgba(255, 178, 98, 0.06), rgba(255, 255, 255, 0.015)) !important;
}
.category-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  background: rgba(255, 161, 60, 0.1) !important;
  border: 1px solid rgba(255, 161, 60, 0.16) !important;
  color: #ffbe7d !important;
  font-size: 11.5px !important;
}
.button {
  min-height: 44px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #eae8ee !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}
.button:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}
.button-red {
  background: linear-gradient(180deg, #ffc481, #ffa13c) !important;
  border: 0 !important;
  color: #241505 !important;
  box-shadow: 0 10px 26px rgba(255, 161, 60, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
.button-red:hover {
  background: linear-gradient(180deg, #ffd09b, #ffb057) !important;
  color: #241505 !important;
}
.button-outline {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  color: #e6e4ea !important;
}
.button-outline:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select {
  background: #0b0c10 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 14px !important;
  color: var(--text) !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 178, 98, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(255, 161, 60, 0.08) !important;
  outline: 0 !important;
}
.forum-search input,
.forum-search button {
  border-radius: 999px !important;
  min-height: 46px !important;
}
.forum-search button {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #dedbe3 !important;
}
.settings-card .stack-form > button,
.settings-card .stack-form > .button,
.settings-card .upload-form > button {
  justify-self: start;
  width: auto;
}
.auth-panel .form-submit {
  justify-self: stretch;
  width: 100%;
}

/* ---------- final polish ---------- */
.post-author {
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 18px !important;
}
.post-author img,
.post-author .member-avatar {
  border-radius: 50%;
}
.market-card {
  overflow: hidden !important;
}
.market-card-cover,
.market-card-cover img {
  border-radius: 0 !important;
}
.profile-banner,
.profile-page-head {
  overflow: hidden;
}
.auth-panel h1 {
  margin: 0 0 22px !important;
}
.auth-panel .panel-sub {
  margin-top: -12px;
  margin-bottom: 20px;
}
