:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-2: #08111a;
  --panel: #101721;
  --panel-2: #141d2b;
  --panel-3: #182230;
  --line: rgba(224, 234, 244, 0.13);
  --line-strong: rgba(242, 201, 110, 0.32);
  --text: #f6f8fb;
  --muted: #aeb9c8;
  --muted-2: #8190a2;
  --gold: #d8a84b;
  --gold-2: #f3cd74;
  --ice: #7fd7f2;
  --ice-2: #1f8aa8;
  --danger: #e46b7c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 10%, rgba(127, 215, 242, 0.15), transparent 28%),
    radial-gradient(circle at 82% 26%, rgba(216, 168, 75, 0.13), transparent 30%),
    linear-gradient(125deg, rgba(8, 17, 26, 0.95), rgba(3, 5, 9, 0.98)),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 3vw, 3.1rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.9);
  backdrop-filter: blur(18px);
}

.brand img {
  display: block;
  width: auto;
  max-width: min(190px, 44vw);
  height: 58px;
  object-fit: contain;
}

.site-edit-floating {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(237, 188, 92, 0.6);
  border-radius: 0.65rem;
  background: rgba(12, 10, 8, 0.82);
  color: #f3cd74;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  box-shadow: 0 0.9rem 2.2rem rgba(0, 0, 0, 0.34), 0 0 1.5rem rgba(218, 160, 69, 0.2);
  backdrop-filter: blur(14px);
}

.site-manager-shell {
  display: grid;
  gap: 1.1rem;
  margin: 1.25rem 0;
}

.site-manager-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem;
  border: 1px solid rgba(237, 188, 92, 0.18);
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(24, 22, 18, 0.82), rgba(9, 11, 14, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-manager-heading h2,
.site-editor-group h3,
.site-block-card h3,
.site-editor-aside h3 {
  margin: 0;
}

.site-manager-heading p {
  max-width: 52rem;
}

.site-page-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.7rem;
}

.site-page-tab {
  display: grid;
  gap: 0.25rem;
  min-height: 4.2rem;
  padding: 0.85rem;
  border: 1px solid rgba(245, 235, 218, 0.1);
  border-radius: 0.75rem;
  background: rgba(12, 14, 17, 0.66);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.site-page-tab:hover,
.site-page-tab.is-active {
  border-color: rgba(237, 188, 92, 0.58);
  background: rgba(32, 25, 15, 0.72);
  transform: translateY(-1px);
}

.site-page-tab span {
  color: var(--muted);
  font-size: 0.8rem;
}

.site-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.32fr);
  gap: 1rem;
  align-items: start;
}

.site-editor-main,
.site-editor-aside,
.site-editor-group {
  display: grid;
  gap: 1rem;
}

.site-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 0.9rem;
}

.site-block-card {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(245, 235, 218, 0.1);
  border-radius: 0.8rem;
  background:
    radial-gradient(circle at top right, rgba(237, 188, 92, 0.1), transparent 38%),
    rgba(12, 14, 17, 0.74);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.22);
}

.site-block-card.has-draft {
  border-color: rgba(237, 188, 92, 0.42);
}

.site-block-card header,
.site-block-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-block-status {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-block-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.site-block-fields label,
.site-upload-field,
.site-body-field {
  min-width: 0;
}

.site-block-fields .site-body-field,
.site-block-fields .site-upload-field,
.site-block-fields .checkbox-row,
.site-media-preview {
  grid-column: 1 / -1;
}

.site-block-fields input,
.site-block-fields textarea {
  width: 100%;
}

.site-media-preview {
  overflow: hidden;
  border: 1px solid rgba(237, 188, 92, 0.18);
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.22);
}

.site-media-preview img {
  display: block;
  width: 100%;
  max-height: 14rem;
  object-fit: contain;
}

.pack-home-video {
  width: min(100% - 2rem, 72rem);
  margin: 1.25rem auto;
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(237, 188, 92, 0.18);
  border-radius: 0.9rem;
  background: rgba(10, 12, 15, 0.72);
}

.pack-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  background: #050506;
}

.pack-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.public-video-strip {
  grid-template-columns: 1fr;
}

.public-video-strip article {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: 1rem;
  align-items: center;
}

@media (max-width: 980px) {
  .site-editor-layout,
  .pack-home-video {
    grid-template-columns: 1fr;
  }

  .public-video-strip article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-edit-floating {
    right: 0.8rem;
    bottom: 0.8rem;
    max-width: calc(100vw - 1.6rem);
  }

  .site-manager-heading,
  .site-block-card header {
    display: grid;
  }

  .site-block-grid,
  .site-block-fields {
    grid-template-columns: 1fr;
  }
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.footer-links a:hover,
.sidebar nav a:hover {
  color: var(--gold-2);
}

.public-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  color: var(--text);
  cursor: pointer;
  font-weight: 850;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border-color: rgba(242, 201, 110, 0.55);
  background: linear-gradient(135deg, #9d681e, var(--gold-2));
  color: #130d05;
  box-shadow: 0 16px 36px rgba(216, 168, 75, 0.24);
}

.button-secondary {
  border-color: rgba(127, 215, 242, 0.28);
  background: rgba(16, 53, 68, 0.82);
}

.button-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 560px);
  gap: clamp(26px, 5vw, 76px);
  align-items: center;
  min-height: calc(100svh - 90px);
  padding: clamp(44px, 7vw, 96px) clamp(18px, 6vw, 96px) 58px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-v2::before {
  content: "";
  position: absolute;
  inset: 7% 8% auto auto;
  width: 38vw;
  height: 38vw;
  max-width: 520px;
  max-height: 520px;
  border: 1px solid rgba(242, 201, 110, 0.14);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(127, 215, 242, 0.14), transparent 62%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  max-width: 760px;
}

.hero-text {
  max-width: 690px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions,
.button-row,
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 34px;
}

.hero-metrics div {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.hero-metrics strong {
  display: block;
  color: var(--gold-2);
  font-size: 1.55rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-media::before {
  content: "";
  position: absolute;
  width: min(76%, 430px);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(242, 201, 110, 0.24), rgba(242, 201, 110, 0.08) 42%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.premium-crest {
  min-height: 520px;
}

.hero-logo {
  position: relative;
  width: min(100%, 530px);
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 46px rgba(242, 201, 110, 0.22))
    drop-shadow(0 34px 90px rgba(0, 0, 0, 0.44));
}

.story-band,
.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  padding: clamp(44px, 7vw, 84px) clamp(18px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}

.premium-band {
  background: linear-gradient(90deg, rgba(216, 168, 75, 0.08), rgba(127, 215, 242, 0.05));
}

.section {
  padding: clamp(48px, 7vw, 96px) clamp(18px, 6vw, 96px);
}

.section.narrow {
  max-width: 980px;
  margin: 0 auto;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 28px;
}

.value-grid,
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.reason-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-card,
.reason-card,
.panel,
.form-panel,
.table-panel,
.empty-state,
.profile-sheet,
.social-grid a,
.timeline article,
.application-note,
.application-steps {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.value-card,
.reason-card {
  min-height: 190px;
  padding: 22px;
}

.value-card span {
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--gold), var(--ice));
}

.reason-card span {
  color: var(--ice);
  font-weight: 900;
}

.why-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 7, 12, 0.34);
}

.target-list {
  display: grid;
  gap: 12px;
}

.target-list article,
.benefit-list div {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.045);
}

.target-list span,
.benefit-list span {
  color: var(--muted);
}

.application-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: start;
}

.application-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: end;
}

.application-steps {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.application-steps span {
  color: var(--muted);
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: 20px;
  align-items: start;
}

.application-note {
  position: sticky;
  top: 94px;
  padding: 24px;
}

.mini-checklist {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mini-checklist span {
  border: 1px solid rgba(127, 215, 242, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(127, 215, 242, 0.05);
}

.form-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.application-form-v2 {
  border-color: rgba(242, 201, 110, 0.18);
}

.application-form-section {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(243, 205, 116, 0.12);
  border-radius: 8px;
  padding: clamp(14px, 2vw, 20px);
  background: rgba(255, 255, 255, 0.025);
}

.application-form-section h3,
.application-form-section p {
  margin: 0;
}

.application-consents {
  display: grid;
  gap: 10px;
}

.qcm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.qcm-grid fieldset {
  border: 1px solid rgba(127, 215, 242, 0.14);
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
  display: grid;
  gap: 10px;
  background: rgba(127, 215, 242, 0.035);
}

.qcm-grid legend {
  color: var(--gold);
  font-weight: 900;
  padding: 0 6px;
}

.qcm-grid label {
  font-weight: 700;
}

.qcm-score-box {
  border: 1px solid rgba(243, 205, 116, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(243, 205, 116, 0.08);
  color: var(--gold);
  font-weight: 900;
}

[data-age-result].is-error {
  color: #ff9f9f;
}

.form-kicker {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.form-kicker span {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-kicker strong {
  font-size: 1.25rem;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.72);
  color: var(--text);
  outline: none;
  padding: 13px 14px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(127, 215, 242, 0.62);
  box-shadow: 0 0 0 3px rgba(127, 215, 242, 0.1);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.page-hero {
  padding: clamp(54px, 8vw, 108px) clamp(18px, 6vw, 96px);
  border-bottom: 1px solid var(--line);
}

.page-hero.compact {
  max-width: 1050px;
}

.page-hero.compact h1,
.application-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
}

.timeline,
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(40px, 6vw, 80px) clamp(18px, 6vw, 96px);
}

.timeline article,
.social-grid a {
  padding: 24px;
}

.timeline span {
  color: var(--ice);
  font-weight: 900;
}

.values-hero {
  position: relative;
}

.values-intro h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.55rem);
  line-height: 1.18;
}

.values-page-section {
  padding-top: 3.5rem;
}

.values-cms-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.values-close {
  text-align: center;
}

.social-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.social-grid a {
  display: grid;
  gap: 8px;
}

.social-grid span {
  color: var(--muted);
}

.auth-page {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  min-height: calc(100svh - 77px);
  padding: clamp(30px, 6vw, 82px) clamp(18px, 6vw, 96px);
}

.auth-visual img {
  width: min(360px, 78vw);
}

.auth-visual h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.auth-panels {
  display: grid;
  gap: 16px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 6vw, 96px);
  border-top: 1px solid var(--line);
  background: #030407;
}

.footer img {
  width: 112px;
  height: 112px;
  max-width: 70vw;
  object-fit: contain;
}

.footer p {
  max-width: 620px;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.legal-footer {
  display: grid;
  gap: 4px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(242, 201, 110, 0.16);
  background:
    linear-gradient(90deg, rgba(216, 168, 75, 0.055), rgba(127, 215, 242, 0.035)),
    rgba(2, 3, 6, 0.95);
  color: rgba(246, 248, 251, 0.62);
  font-size: 0.78rem;
  text-align: center;
}

.legal-footer p {
  margin: 0;
  color: inherit;
  line-height: 1.45;
}

.legal-doc {
  display: grid;
  gap: 30px;
}

.legal-updated {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-block {
  display: grid;
  gap: 12px;
}

.legal-block h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--text);
}

.legal-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.legal-block ul {
  margin: 4px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 9px;
}

.legal-block li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-block strong {
  color: var(--text);
}

.legal-block a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 22px;
  align-items: start;
}

.contact-intro {
  display: grid;
  gap: 16px;
}

.contact-intro h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-email {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(242, 201, 110, 0.25);
  border-radius: 8px;
  background: rgba(242, 201, 110, 0.05);
}

.contact-email span {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-email strong {
  color: var(--text);
  font-size: 1.05rem;
}

.contact-support-note a,
.contact-intro a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-doc {
  display: grid;
  gap: 34px;
}

.support-block {
  display: grid;
  gap: 12px;
}

.support-block h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--text);
}

.support-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.support-block a {
  color: var(--ice);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0 18px;
}

.faq-item + .faq-item {
  margin-top: 10px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 800;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--ice);
  font-weight: 900;
}

.faq-item[open] summary {
  color: var(--ice);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.app-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100svh;
}

.workspace {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: rgba(3, 4, 7, 0.94);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-weight: 900;
}

.sidebar-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.sidebar nav {
  display: grid;
  gap: 6px;
}

.sidebar nav a {
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 11, 0.86);
  backdrop-filter: blur(16px);
}

.topbar span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-global-search {
  position: relative;
  min-width: min(360px, 42vw);
}

.admin-global-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(242, 201, 110, 0.2);
  border-radius: 8px;
  background: rgba(3, 5, 9, 0.74);
  color: var(--text);
  padding: 0 12px;
}

.admin-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, 82vw);
  max-height: 360px;
  overflow: auto;
  border: 1px solid rgba(242, 201, 110, 0.22);
  border-radius: 8px;
  background: rgba(6, 8, 13, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.admin-search-results a,
.admin-search-empty {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-search-results a:last-child {
  border-bottom: 0;
}

.admin-search-results span,
.admin-search-empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.reward-point-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.reward-point-grid article,
.redemption-hint {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.reward-point-grid span,
.reward-point-grid small,
.redemption-hint {
  color: var(--muted);
}

.reward-point-grid strong {
  display: block;
  margin: 6px 0;
  color: var(--gold);
  font-size: 1.4rem;
}

.workspace-content {
  flex: 1;
  padding: clamp(22px, 4vw, 46px);
}

.workspace .legal-footer {
  margin-top: auto;
  border-left: 1px solid rgba(242, 201, 110, 0.08);
}

.workspace-heading {
  margin-bottom: 24px;
}

.workspace-heading h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(216, 168, 75, 0.12), transparent 44%),
    linear-gradient(225deg, rgba(127, 215, 242, 0.12), transparent 46%),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
}

.admin-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.admin-status-card {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(127, 215, 242, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: rgba(4, 8, 14, 0.58);
}

.admin-status-card span,
.admin-status-card small {
  color: var(--muted);
}

.admin-status-card strong {
  color: var(--ice);
  font-size: 1.6rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-grid article {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
}

.admin-stats article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.stat-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.stat-grid strong {
  color: var(--gold-2);
  font-size: 1.65rem;
}

.info-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  vertical-align: middle;
  outline: 0;
}

.info-hint-icon,
.help-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(242, 201, 110, 0.42);
  border-radius: 999px;
  background: rgba(242, 201, 110, 0.12);
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.info-hint-panel {
  position: absolute;
  z-index: 60;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(280px, 78vw);
  transform: translate(-50%, 8px);
  border: 1px solid rgba(242, 201, 110, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 7, 11, 0.98);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.info-hint-panel strong,
.info-hint-panel small {
  display: block;
}

.info-hint-panel strong {
  margin-bottom: 6px;
  color: var(--gold-2);
}

.info-hint-panel small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.info-hint:hover .info-hint-panel,
.info-hint:focus .info-hint-panel,
.info-hint:focus-within .info-hint-panel {
  opacity: 1;
  transform: translate(-50%, 0);
}

.help-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin: 0 0 18px;
  border: 1px solid rgba(242, 201, 110, 0.24);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(242, 201, 110, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.035);
}

.help-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-2);
}

.help-callout p,
.help-callout li {
  color: var(--muted);
  line-height: 1.65;
}

.help-steps {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.dashboard-grid,
.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  padding: 22px;
}

.command-panel,
.admin-insight {
  min-height: 220px;
}

.admin-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.goal-row,
.goal-card,
.application-row,
.member-row {
  display: grid;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.goal-row,
.goal-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.goal-card:last-child,
.application-row:last-child,
.member-row:last-child {
  border-bottom: 0;
}

.profile-sheet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.profile-sheet div {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.profile-sheet span,
.member-row span,
.application-row small {
  color: var(--muted);
}

.table-panel {
  padding: 8px 20px;
}

.modern-table {
  background: rgba(255, 255, 255, 0.035);
}

.admin-request-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0;
  border-color: rgba(229, 208, 142, 0.18);
}

.admin-request-alert.has-pending {
  border-color: rgba(226, 91, 112, 0.42);
  background:
    radial-gradient(circle at 8% 20%, rgba(226, 91, 112, 0.14), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

.admin-request-table {
  margin-top: 18px;
}

.admin-request-row {
  grid-template-columns: minmax(240px, 1.4fr) minmax(130px, 0.45fr) minmax(180px, 0.55fr) minmax(260px, 1fr);
  align-items: start;
}

.admin-request-row.is-pending {
  border-left: 3px solid rgba(226, 91, 112, 0.78);
  padding-left: 14px;
}

.admin-request-source {
  align-content: start;
}

.admin-request-row textarea,
.admin-request-row input {
  width: 100%;
  min-width: 0;
}

.fast-reward-row {
  grid-template-columns: auto minmax(230px, 1fr) minmax(360px, 1.4fr) minmax(180px, 0.6fr);
  align-items: start;
}

.fast-reward-row.is-pending {
  border-left: 3px solid rgba(226, 91, 112, 0.72);
  padding-left: 14px;
}

.bulk-check {
  width: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  align-self: start;
  margin-top: 4px;
}

.bulk-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.fast-reward-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fast-reward-values div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.fast-reward-values span,
.fast-reward-state span {
  color: var(--muted);
}

.fast-reward-values strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.fast-reward-state {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.quest-bulk-toolbar,
.fast-reward-toolbar {
  margin-bottom: 18px;
}

.application-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.application-detail-section {
  margin-top: 18px;
  min-width: 0;
}

.application-detail-section > h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.application-processing-summary {
  padding-top: 14px;
  border-top: 1px solid rgba(243, 205, 116, 0.14);
}

.application-profile-grid,
.application-text-grid,
.application-interview-grid,
.application-qcm-summary .settings-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.application-profile-grid span,
.application-text-grid p,
.application-qcm-summary,
.filleul-card.is-history,
.filleul-row.is-history {
  border: 1px solid rgba(243, 205, 116, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.application-profile-grid span,
.application-text-grid p,
.application-qcm-summary {
  padding: 10px;
  min-width: 0;
}

.application-profile-grid strong,
.application-text-grid strong,
.application-qcm-summary strong {
  display: block;
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.application-text-grid p,
.application-qcm-summary small {
  overflow-wrap: anywhere;
}

.application-interview-grid .admin-note-field {
  grid-column: span 2;
}

.application-contact-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.row-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.member-row {
  grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.5fr) minmax(150px, 0.5fr) auto;
  align-items: center;
}

.member-row > div {
  display: grid;
  gap: 6px;
}

.member-editor {
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(140px, 0.7fr));
  align-items: end;
}

.room-editor,
.quest-editor,
.content-editor {
  grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(140px, 0.7fr));
  align-items: end;
}

.member-editor .admin-note-field,
.member-editor .row-actions,
.room-editor .admin-note-field,
.room-editor .row-actions,
.quest-editor .admin-note-field,
.quest-editor .row-actions,
.content-editor .admin-note-field,
.content-editor .row-actions {
  grid-column: span 2;
}

.member-main small,
.history-row span,
.admin-note-field span {
  color: var(--muted);
}

.admin-note-field {
  display: grid;
  gap: 8px;
}

.admin-note-field textarea {
  min-height: 86px;
  resize: vertical;
}

.admin-history {
  margin-top: 18px;
}

.admin-create-panel {
  margin-bottom: 18px;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(120px, 0.45fr)) auto;
  gap: 12px;
  align-items: end;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.history-row:last-child {
  border-bottom: 0;
}

.history-row > div {
  display: grid;
  gap: 4px;
}

.history-row code {
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(5, 7, 11, 0.42);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.82rem;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.badge-gold {
  border-color: rgba(242, 201, 110, 0.45);
  color: var(--gold-2);
}

.badge-ice {
  border-color: rgba(127, 215, 242, 0.38);
  color: var(--ice);
}

.badge-danger {
  border-color: rgba(228, 107, 124, 0.45);
  color: var(--danger);
}

.empty-state {
  padding: 22px;
}

[hidden] {
  display: none !important;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(242, 201, 110, 0.34);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(216, 168, 75, 0.34), rgba(127, 215, 242, 0.18)),
    var(--panel);
  color: var(--gold-2);
  font-weight: 950;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 38px;
  height: 38px;
  font-size: 0.78rem;
}

.avatar-xl {
  width: clamp(96px, 16vw, 148px);
  height: clamp(96px, 16vw, 148px);
  font-size: 2rem;
}

.profile-hero,
.team-panel,
.chat-panel,
.chat-rooms,
.team-filters {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: clamp(20px, 4vw, 34px);
}

.profile-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-hero-compact h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.compact-level-card {
  display: grid;
  gap: 8px;
  max-width: 460px;
  margin-top: 14px;
  border: 1px solid rgba(216, 168, 75, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 7, 11, 0.38);
}

.compact-level-card small {
  color: var(--muted);
}

.compact-parchment-stats {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.compact-profile-settings {
  margin-top: 16px;
}

.compact-profile-settings summary {
  cursor: pointer;
  color: var(--gold-2);
  font-weight: 800;
}

.community-stats article {
  background: linear-gradient(180deg, rgba(127, 215, 242, 0.08), rgba(255, 255, 255, 0.025));
}

.community-grid {
  margin-bottom: 16px;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(127, 215, 242, 0.22);
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.7);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--ice));
}

.badge-grid,
.mini-stat-list {
  display: grid;
  gap: 10px;
}

.badge-card,
.team-chip,
.reward-row,
.mini-stat-list div {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.badge-card span,
.team-chip span,
.reward-row span,
.mini-stat-list span {
  color: var(--muted);
}

.reward-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 10px;
}

.backstage-preview {
  width: 100%;
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.backstage-preview-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.backstage-preview-stats article,
.backstage-match-grid section {
  border: 1px solid rgba(243, 205, 116, 0.18);
  background: rgba(6, 12, 18, 0.52);
  border-radius: 8px;
  padding: 0.85rem;
}

.backstage-preview-stats span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.backstage-preview-stats strong {
  color: var(--gold);
  font-size: 1.55rem;
}

.backstage-match-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.backstage-match-grid h4,
.stat-adjustment-history h3 {
  margin: 0 0 0.7rem;
}

.backstage-match-grid ul {
  margin: 0;
  padding-left: 1.1rem;
}

.backstage-match-grid li {
  color: var(--muted);
  margin: 0.35rem 0;
}

.mini-button {
  margin-left: 8px;
  padding: 0.32rem 0.55rem;
  min-height: 0;
  font-size: 0.75rem;
}

.backstage-alias-panel .alias-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.backstage-alias-panel .settings-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: 240px;
}

.backstage-diagnostic-details {
  margin-top: 0.65rem;
  max-width: 100%;
}

.backstage-diagnostic-details summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 700;
}

.backstage-diagnostic-details .table-scroll {
  margin-top: 0.6rem;
}

.stat-adjustment-history {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 1rem;
  padding-top: 1rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.admin-mini-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.admin-mini-table th,
.admin-mini-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 0.85rem;
}

.admin-mini-table th {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0;
}

.reward-claim-form,
.selectable-rewards {
  display: grid;
  gap: 0.8rem;
}

.coin-redemption-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(243, 205, 116, 0.28);
  border-radius: 8px;
  background: rgba(243, 205, 116, 0.08);
}

.coin-redemption-total span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.coin-redemption-total strong {
  color: var(--gold-2);
  font-size: 1.45rem;
}

.reward-checkbox {
  min-width: 10rem;
  justify-content: flex-end;
}

.reward-checkbox.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.reward-checkbox.is-disabled input,
.reward-checkbox.is-disabled span {
  cursor: not-allowed;
}

.reward-request-items {
  margin-top: 0.75rem;
}

.quest-board {
  display: grid;
  gap: 14px;
}

.quest-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.22fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.quest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
}

.quest-meta span,
.quest-progress span {
  color: var(--muted);
}

.quest-meta span {
  border: 1px solid rgba(127, 215, 242, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(127, 215, 242, 0.04);
  font-size: 0.82rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.quest-progress {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.quest-progress strong {
  color: var(--gold-2);
  font-size: 1.35rem;
}

.journey-section {
  margin-top: 18px;
}

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

.journey-card,
.validation-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.validation-card > * {
  min-width: 0;
}

.journey-card-head p,
.validation-comment {
  color: var(--muted);
  margin: 6px 0 0;
}

.quest-metrics {
  display: grid;
  gap: 12px;
}

.quest-metric {
  display: grid;
  gap: 6px;
}

.quest-metric-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.quest-metric-head strong {
  color: var(--gold-2);
}

.quest-progress-meter {
  display: grid;
  gap: 6px;
}

.quest-progress-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.quest-progress-meter-head span {
  color: var(--muted);
}

.quest-progress-meter-head strong {
  color: var(--gold-2);
  font-size: 1.05rem;
}

.proof-tiktok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ice);
  font-weight: 600;
  font-size: 0.9rem;
}

.quest-muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.proof-list {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.proof-list-title,
.award-form-title {
  font-weight: 700;
  color: var(--ice);
}

.proof-item {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 7, 11, 0.4);
}

.proof-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proof-item p,
.proof-review {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.proof-thumb {
  display: block;
  max-width: 220px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.proof-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-gallery .proof-thumb {
  width: min(150px, 42vw);
  max-width: 150px;
}

.custom-objective-box {
  border: 1px solid rgba(243, 205, 116, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(243, 205, 116, 0.06);
}

.custom-objective-box p {
  margin: 4px 0;
  color: var(--text);
}

.custom-objective-box span {
  color: var(--muted);
  font-size: 0.85rem;
}

.proof-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.proof-form-wrap > summary {
  display: inline-flex;
  cursor: pointer;
  list-style: none;
  width: fit-content;
}

.proof-form-wrap > summary::-webkit-details-marker {
  display: none;
}

.proof-form,
.award-form {
  margin-top: 12px;
}

.validation-board {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  align-items: start;
  margin-bottom: 18px;
}

.validation-head,
.validation-quest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.validation-head > div,
.validation-quest > strong {
  min-width: 0;
}

.validation-head strong {
  display: block;
  overflow-wrap: anywhere;
}

.validation-head span,
.validation-quest small {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.validation-card .badge {
  justify-self: end;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.award-form {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  align-items: end;
  min-width: 0;
}

.award-form .award-form-title,
.award-form .button {
  grid-column: 1 / -1;
}

.award-form .button {
  justify-self: start;
}

.award-form label,
.award-form input,
.award-form select {
  min-width: 0;
  width: 100%;
}

.community-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.team-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
}

.team-board {
  display: grid;
  gap: 18px;
}

.team-panel {
  padding: clamp(18px, 3vw, 26px);
}

.team-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.team-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.team-member-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(5, 7, 11, 0.44);
}

.team-member-card:hover,
.chat-rooms a:hover,
.chat-rooms a.is-active {
  border-color: rgba(242, 201, 110, 0.42);
  background: rgba(216, 168, 75, 0.08);
}

.team-member-card span,
.member-progress span,
.member-progress small {
  display: block;
  color: var(--muted);
}

.member-progress {
  text-align: right;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.chat-rooms {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.chat-rooms a {
  display: grid;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px;
}

.chat-rooms span,
.chat-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.chat-panel {
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
}

.chat-panel-head {
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.pinned-message {
  border: 1px solid rgba(242, 201, 110, 0.36);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px;
  background: rgba(216, 168, 75, 0.08);
}

.chat-messages {
  display: grid;
  gap: 12px;
  max-height: min(64vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.chat-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.chat-message.is-deleted {
  opacity: 0.62;
}

.chat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chat-actions .button {
  min-height: 34px;
  padding-inline: 12px;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 14px;
}

.loading-screen {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 100svh;
  color: var(--muted);
}

.loading-screen img {
  width: 120px;
  aspect-ratio: 1;
  object-fit: contain;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--panel-2);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.toast-error {
  border-color: rgba(228, 107, 124, 0.5);
}

/* Legacy premium atmosphere */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 50% 2%, rgba(242, 201, 110, 0.12), transparent 22%),
    linear-gradient(115deg, rgba(5, 7, 11, 0.58), rgba(4, 10, 16, 0.92)),
    repeating-linear-gradient(90deg, rgba(242, 201, 110, 0.035) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(127, 215, 242, 0.026) 0 1px, transparent 1px 82px);
  opacity: 0.34;
  filter: saturate(1.1);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%, rgba(242, 201, 110, 0.035)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 16px);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.kingdom-hero {
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.96), rgba(5, 9, 15, 0.78));
}

.kingdom-hero::after,
.app-shell::before,
.workspace-content::before {
  content: "ᚠ ᚢ ᚦ ᚨ ᚱ ᚲ";
  position: absolute;
  pointer-events: none;
  color: rgba(242, 201, 110, 0.13);
  font-size: clamp(2.4rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.kingdom-hero::after {
  right: -3vw;
  bottom: 5vh;
  transform: rotate(-8deg);
}

.hero-logo,
.loading-screen img,
.sidebar-brand img {
  animation: crestGlow 5.6s ease-in-out infinite;
}

@keyframes crestGlow {
  0%,
  100% {
    filter: drop-shadow(0 28px 90px rgba(127, 215, 242, 0.14));
  }
  50% {
    filter: drop-shadow(0 34px 110px rgba(242, 201, 110, 0.24));
  }
}

.public-nav,
.topbar,
.sidebar {
  background:
    linear-gradient(180deg, rgba(10, 15, 22, 0.94), rgba(3, 4, 7, 0.92)),
    repeating-linear-gradient(90deg, rgba(242, 201, 110, 0.035) 0 1px, transparent 1px 36px);
}

.brand img,
.footer img {
  filter: drop-shadow(0 10px 28px rgba(242, 201, 110, 0.18));
}

.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.button:hover::after {
  transform: translateX(120%);
}

.realm-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid rgba(242, 201, 110, 0.2);
  background: rgba(242, 201, 110, 0.16);
}

.realm-strip article {
  display: grid;
  gap: 6px;
  min-height: 128px;
  align-content: center;
  padding: 24px clamp(18px, 4vw, 42px);
  background:
    linear-gradient(145deg, rgba(7, 13, 20, 0.94), rgba(16, 23, 33, 0.88)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 14px);
}

.realm-strip strong {
  color: var(--gold-2);
  font-size: 1.05rem;
}

.realm-strip span {
  color: var(--muted);
}

.value-card,
.reason-card,
.panel,
.form-panel,
.table-panel,
.profile-hero,
.team-panel,
.chat-panel,
.chat-rooms,
.team-filters,
.podium-card {
  position: relative;
  overflow: hidden;
}

.value-card::before,
.reason-card::before,
.panel::before,
.profile-hero::before,
.team-panel::before,
.chat-panel::before,
.podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(242, 201, 110, 0.18);
  background:
    linear-gradient(135deg, rgba(242, 201, 110, 0.055), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(4, 7, 12, 0.98), rgba(9, 15, 22, 0.94));
}

.sidebar-oath {
  display: grid;
  gap: 4px;
  margin: -12px 0 18px;
  border: 1px solid rgba(242, 201, 110, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(216, 168, 75, 0.075);
}

.sidebar-oath span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.sidebar-oath strong,
.topbar-rune {
  color: var(--gold-2);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-shell {
  position: relative;
  background:
    linear-gradient(115deg, rgba(3, 4, 7, 0.92), rgba(8, 16, 24, 0.95)),
    repeating-linear-gradient(135deg, rgba(127, 215, 242, 0.026) 0 1px, transparent 1px 22px);
}

.app-shell::before {
  right: 3vw;
  bottom: 4vh;
  z-index: 0;
  opacity: 0.4;
  transform: rotate(-5deg);
}

.workspace,
.sidebar {
  position: relative;
  z-index: 1;
}

.workspace-content {
  position: relative;
}

.workspace-content::before {
  top: 10px;
  right: 28px;
  z-index: -1;
  opacity: 0.32;
  font-size: clamp(2rem, 6vw, 5.4rem);
}

.workspace-heading,
.admin-hero,
.profile-hero,
.leaderboard-heading {
  isolation: isolate;
}

.workspace-heading h1,
.admin-hero h1,
.profile-hero h1 {
  text-shadow: 0 16px 46px rgba(0, 0, 0, 0.62), 0 0 28px rgba(242, 201, 110, 0.12);
}

.privacy-panel,
.setting-panel {
  margin-top: 18px;
}

.compact-form {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.content-preview-grid {
  margin-bottom: 18px;
}

.content-preview {
  display: grid;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.content-preview:last-child {
  border-bottom: 0;
}

.content-preview span {
  color: var(--ice);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-history {
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.podium-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(242, 201, 110, 0.22);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(216, 168, 75, 0.1), rgba(127, 215, 242, 0.04)),
    rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow);
  text-align: center;
}

.podium-1 {
  transform: translateY(-8px);
  border-color: rgba(242, 201, 110, 0.48);
}

.podium-rank {
  color: var(--gold-2);
  font-size: 1.4rem;
  font-weight: 950;
}

.podium-card small,
.podium-stats span {
  color: var(--muted);
}

.podium-stats {
  display: grid;
  gap: 6px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 52px auto minmax(0, 1fr) repeat(3, minmax(90px, 0.25fr)) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.leaderboard-row:last-child {
  border-bottom: 0;
}

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

.leaderboard-row b {
  display: block;
}

.kingdom-hero::after,
.app-shell::before,
.workspace-content::before {
  content: "\16A0  \16A2  \16A6  \16A8  \16B1  \16B2";
}

.leaderboard-controls {
  display: grid;
  gap: 10px;
  margin: -8px 0 18px;
}

.leaderboard-controls div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leaderboard-controls a {
  border: 1px solid rgba(127, 215, 242, 0.2);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(5, 7, 11, 0.52);
  font-size: 0.86rem;
  font-weight: 850;
}

.leaderboard-controls a:hover,
.leaderboard-controls a.is-active {
  border-color: rgba(242, 201, 110, 0.46);
  color: var(--gold-2);
  background: rgba(216, 168, 75, 0.12);
}

.parchment-grid {
  align-items: stretch;
}

.panel-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.tiktok-panel,
.avatar-panel {
  background:
    linear-gradient(145deg, rgba(216, 168, 75, 0.09), rgba(127, 215, 242, 0.04)),
    rgba(255, 255, 255, 0.035);
}

.tiktok-form,
.avatar-form {
  margin-top: 16px;
}

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

.tiktok-form .checkbox-row,
.tiktok-form .button {
  grid-column: span 2;
}

.tiktok-login-panel {
  border-color: rgba(242, 201, 110, 0.28);
  background:
    linear-gradient(145deg, rgba(216, 168, 75, 0.12), rgba(127, 215, 242, 0.055)),
    rgba(255, 255, 255, 0.045);
}

.tiktok-login-panel small {
  color: var(--muted);
  font-weight: 800;
}

.tiktok-login-button {
  width: fit-content;
}

.tiktok-action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tiktok-official-card,
.tiktok-connected-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  border: 1px solid rgba(127, 215, 242, 0.18);
  border-radius: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(127, 215, 242, 0.16), transparent 42%),
    rgba(5, 7, 11, 0.48);
}

.tiktok-official-card.is-connected,
.tiktok-connected-card {
  border-color: rgba(242, 201, 110, 0.34);
  box-shadow: 0 0 0 1px rgba(242, 201, 110, 0.08), 0 18px 42px rgba(0, 0, 0, 0.22);
}

.tiktok-official-avatar {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(242, 201, 110, 0.4);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  background: linear-gradient(135deg, rgba(216, 168, 75, 0.2), rgba(127, 215, 242, 0.11));
  font-weight: 950;
}

.tiktok-official-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tiktok-official-copy {
  display: grid;
  gap: 4px;
}

.tiktok-official-copy strong,
.tiktok-connected-card strong {
  color: var(--gold-2);
}

.tiktok-official-copy span,
.tiktok-official-copy small,
.tiktok-connected-card span {
  color: var(--muted);
}

.avatar-preview {
  display: grid;
  place-items: center;
  margin: 14px 0;
}

.avatar-form {
  grid-template-columns: minmax(220px, 1fr) auto auto;
}

.auth-result-hero {
  background:
    linear-gradient(135deg, rgba(216, 168, 75, 0.15), rgba(127, 215, 242, 0.07)),
    rgba(255, 255, 255, 0.035);
}

.auth-result-hero h1 {
  color: var(--gold-2);
}

.auth-result-error {
  background:
    linear-gradient(135deg, rgba(228, 107, 124, 0.14), rgba(127, 215, 242, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.referral-note {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  border: 1px solid rgba(242, 201, 110, 0.24);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(216, 168, 75, 0.14), rgba(127, 215, 242, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.referral-note span,
.referral-admin-line span,
.settings-pill span {
  color: var(--muted);
}

.referral-note strong {
  color: var(--gold-2);
}

.referral-note-warning {
  border-color: rgba(255, 119, 119, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 119, 119, 0.12), rgba(127, 215, 242, 0.05)),
    rgba(255, 255, 255, 0.035);
}

.referral-panel {
  margin-bottom: 16px;
  background:
    linear-gradient(135deg, rgba(216, 168, 75, 0.11), rgba(127, 215, 242, 0.05)),
    rgba(255, 255, 255, 0.035);
}

.referral-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
}

.referral-link-box code {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid rgba(127, 215, 242, 0.18);
  border-radius: 8px;
  padding: 14px;
  color: var(--ice);
  background: rgba(5, 7, 11, 0.58);
}

.referral-panel-compact {
  padding-bottom: 18px;
}

.compact-referral-stats {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.compact-referral-link {
  margin: 14px 0;
}

.typed-referral-links,
.referral-links-admin-block {
  display: grid;
  gap: 12px;
}

.typed-referral-link {
  margin: 0;
}

.typed-referral-link strong,
.referral-link-admin-row strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-2);
}

.referral-link-admin-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(127, 215, 242, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 7, 11, 0.26);
}

.referral-link-admin-row code,
.typed-referral-link code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.nested-panel {
  box-shadow: none;
  background: rgba(5, 7, 11, 0.34);
}

.ambassador-board {
  margin-top: 18px;
  background:
    linear-gradient(145deg, rgba(216, 168, 75, 0.1), rgba(127, 215, 242, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.ambassador-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ambassador-row {
  display: grid;
  grid-template-columns: 52px auto minmax(0, 1fr) repeat(3, minmax(110px, 0.32fr)) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 7, 11, 0.48);
}

.ambassador-row > strong {
  color: var(--gold-2);
}

.ambassador-row b,
.settings-pill strong {
  display: block;
}

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

.referral-admin-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}

.referral-admin-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin: 12px 0;
  border: 1px solid rgba(127, 215, 242, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.referral-editor,
.referral-reward-editor,
.reward-setting-editor {
  grid-template-columns: minmax(240px, 1.15fr) repeat(4, minmax(140px, 0.7fr));
  align-items: end;
}

.referral-editor .admin-note-field,
.referral-editor .row-actions,
.referral-reward-editor .row-actions,
.reward-setting-editor .admin-note-field,
.reward-setting-editor .row-actions {
  grid-column: span 2;
}

.table-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.table-section-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.table-section-head span {
  color: var(--muted);
  font-weight: 850;
}

.settings-panel {
  margin-bottom: 18px;
  background:
    linear-gradient(145deg, rgba(216, 168, 75, 0.08), rgba(127, 215, 242, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.settings-form {
  display: grid;
  gap: 16px;
}

.settings-toggles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.settings-pill:last-child {
  border-bottom: 0;
}

.clan-admin-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.clan-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.clan-assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.clan-live-grid h3 {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.95rem;
}

.mini-clan-card {
  padding: 12px;
  border: 1px solid rgba(245, 197, 92, 0.16);
  border-radius: 8px;
  background: rgba(8, 13, 25, 0.62);
  margin-bottom: 10px;
}

.mini-clan-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.mini-clan-header div {
  display: grid;
  gap: 2px;
}

.mini-clan-card strong,
.mini-clan-card span,
.mini-clan-card p {
  display: block;
}

.mini-clan-card span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
}

.mini-clan-card p,
.muted {
  color: var(--muted);
}

.clan-kingdom-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--clan-accent) 38%, rgba(245, 197, 92, 0.14));
}

.clan-kingdom-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--clan-accent) 28%, transparent), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--clan-accent) 12%, transparent), transparent 42%);
  opacity: 0.65;
}

.clan-kingdom-card > * {
  position: relative;
}

.clan-banner {
  height: 145px;
  margin: -18px -18px 18px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clan-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.clan-emblem,
.clan-rank-emblem {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--clan-accent) 56%, rgba(255, 255, 255, 0.1));
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(5, 7, 11, 0.7);
  color: var(--gold);
  font-weight: 900;
}

.clan-emblem img,
.clan-rank-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clan-motto {
  display: block;
  color: var(--gold);
  margin-top: 8px;
}

.clan-presentation {
  max-width: 720px;
}

.clan-stat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.clan-stat-row span,
.clan-rank-summary {
  border: 1px solid rgba(245, 197, 92, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(5, 7, 11, 0.45);
}

.clan-stat-row b {
  display: block;
  color: var(--gold);
  font-size: 1.12rem;
}

.champion-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.champion-highlight-card {
  min-height: 180px;
  border: 1px solid rgba(245, 197, 92, 0.18);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 197, 92, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(13, 20, 35, 0.94), rgba(5, 7, 11, 0.78));
  box-shadow: var(--shadow);
}

.champion-highlight-card span,
.champion-highlight-card small {
  color: var(--muted);
}

.champion-highlight-card h2 {
  color: var(--gold);
}

.champions-grid {
  margin-bottom: 18px;
}

.champion-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.champion-row:last-child {
  border-bottom: 0;
}

.video-section {
  margin-bottom: 18px;
}

.video-grid,
.public-video-grid,
.recognition-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.video-card,
.public-video-card,
.recognition-card {
  border: 1px solid rgba(245, 197, 92, 0.16);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 0%, rgba(127, 215, 242, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(9, 14, 24, 0.92), rgba(5, 7, 11, 0.72));
}

.video-card,
.public-video-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 170px;
}

.public-video-section {
  padding-top: 8px;
}

.recognition-strip {
  margin: 16px 0;
}

.recognition-card span {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.recognition-card strong,
.recognition-card small {
  display: block;
  margin-top: 6px;
}

.trophy-card {
  border-color: rgba(245, 197, 92, 0.26);
  background: linear-gradient(145deg, rgba(245, 197, 92, 0.08), rgba(8, 13, 25, 0.72));
}

.clan-rank-row {
  border-left: 3px solid var(--clan-accent);
}

.room-access-form {
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
}

.room-access-list {
  display: grid;
  gap: 8px;
  grid-column: span 2;
  border: 1px solid rgba(127, 215, 242, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 7, 11, 0.42);
}

.room-access-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.room-access-list button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.chat-rooms a span {
  line-height: 1.4;
}

.sidebar nav a {
  position: relative;
  padding-left: 18px;
}

.sidebar nav a::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(242, 201, 110, 0.42);
  transform: translateY(-50%);
}

.quest-card {
  background:
    linear-gradient(145deg, rgba(216, 168, 75, 0.08), rgba(127, 215, 242, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.chat-message {
  animation: messageRise 0.22s ease both;
}

.tournament-grid,
.tournament-admin-list {
  display: grid;
  gap: 16px;
}

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

.tournament-card,
.tournament-admin-card,
.nested-panel,
.bonus-history {
  min-width: 0;
}

.tournament-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.tournament-banner {
  display: grid;
  place-items: center;
  min-height: 172px;
  overflow: hidden;
  border: 1px solid rgba(242, 201, 110, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 168, 75, 0.14), rgba(127, 215, 242, 0.08)),
    rgba(5, 7, 11, 0.74);
}

.tournament-banner img {
  width: 100%;
  height: 100%;
  min-height: 172px;
  object-fit: cover;
}

.tournament-banner span {
  color: var(--gold-2);
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 950;
}

.tournament-meta,
.tournament-registration-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tournament-meta span {
  border: 1px solid rgba(127, 215, 242, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(127, 215, 242, 0.04);
  font-size: 0.82rem;
  font-weight: 800;
}

.tournament-rules {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 7, 11, 0.42);
}

.tournament-rules summary {
  cursor: pointer;
  color: var(--gold-2);
  font-weight: 900;
}

.tournament-admin-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.tournament-edit-grid,
.referral-bonus-form,
.tournament-create-form {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
}

.tournament-create-form textarea,
.tournament-create-form input[name="reward_label"],
.tournament-create-form input[name="poster_url"],
.tournament-create-form input[name="promo_poster_url"],
.tournament-edit-grid .admin-note-field,
.tournament-edit-grid .row-actions,
.referral-bonus-form .row-actions,
.bonus-history {
  grid-column: span 2;
}

.tournament-admin-sections {
  margin-top: 16px;
}

.nested-panel {
  box-shadow: none;
}

.stack-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.45fr) minmax(110px, 0.3fr) minmax(150px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.match-row:last-child {
  border-bottom: 0;
}

.match-row div {
  display: grid;
  gap: 4px;
}

.match-row span,
.match-row small {
  color: var(--muted);
}

.coin-command-panel,
.coin-management-panel,
.coin-history-panel {
  margin-top: 18px;
}

.coin-adjust-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 0.8fr) minmax(120px, 0.5fr) minmax(220px, 1.5fr) auto;
  gap: 12px;
  align-items: end;
}

.coin-search {
  max-width: 320px;
}

.coin-member-list,
.coin-history-list {
  display: grid;
  gap: 12px;
}

.coin-member-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(300px, 1.4fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(243, 205, 116, 0.08), rgba(57, 197, 216, 0.045)),
    rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.coin-member-main {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.coin-member-main strong,
.coin-member-main span {
  display: block;
  overflow-wrap: anywhere;
}

.coin-member-main span,
.coin-member-meta,
.coin-history-row span,
.coin-history-row small {
  color: var(--muted);
}

.coin-member-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.coin-member-stats span,
.coin-member-stats strong {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 11, 0.45);
  overflow-wrap: anywhere;
}

.coin-member-stats strong {
  color: var(--gold-2);
}

.coin-member-meta,
.coin-inline-form {
  grid-column: 1 / -1;
}

.coin-member-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.coin-inline-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(110px, 0.45fr) minmax(220px, 1.2fr) auto auto;
  gap: 10px;
  align-items: center;
}

.coin-inline-label {
  min-width: 0;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.coin-xp-form {
  grid-template-columns: minmax(90px, 0.35fr) minmax(130px, 0.5fr) minmax(220px, 1fr) auto;
}

.coin-request-inline {
  grid-template-columns: minmax(150px, 0.8fr) minmax(200px, 1fr) minmax(170px, 0.8fr) repeat(4, auto);
}

.coin-request-admin-row .fast-reward-values {
  min-width: 0;
}

.coin-history-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.3fr) auto minmax(90px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.coin-history-row > div {
  min-width: 0;
}

.coin-history-row strong,
.coin-history-row span,
.coin-history-row small {
  overflow-wrap: anywhere;
}

.validation-reward-preview,
.validation-reward-override {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.validation-reward-preview {
  padding: 12px;
  border: 1px solid rgba(243, 205, 116, 0.22);
  border-radius: 8px;
  background: rgba(243, 205, 116, 0.055);
}

.validation-reward-preview strong,
.validation-reward-override .award-form-title {
  grid-column: 1 / -1;
}

.validation-reward-preview span {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.validation-reward-override {
  align-items: end;
}

@keyframes messageRise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .reason-grid,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-preview,
  .application-layout,
  .contact-layout,
  .admin-hero,
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .application-note {
    position: static;
  }
}

@media (max-width: 1000px) {
  .public-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-section,
  .story-band,
  .split-section,
  .auth-page,
  .coin-adjust-form,
  .coin-member-card,
  .coin-inline-form,
  .coin-request-inline,
  .coin-history-row,
  .validation-reward-preview,
  .validation-reward-override,
  .dashboard-grid,
  .command-grid,
  .champion-highlight-grid,
  .clan-admin-summary,
  .clan-assignment-grid,
  .clan-stat-row,
  .clan-live-grid,
  .tournament-grid,
  .tournament-admin-head,
  .tournament-edit-grid,
  .referral-bonus-form,
  .tournament-create-form,
  .coin-adjust-form,
  .coin-member-card,
  .coin-inline-form,
  .coin-history-row,
  .validation-reward-preview,
  .validation-reward-override,
  .match-row {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .timeline,
  .social-grid,
  .team-member-grid,
  .realm-strip,
  .podium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .application-row,
  .member-row,
  .member-editor,
  .room-editor,
  .quest-editor,
  .content-editor,
  .referral-editor,
  .referral-reward-editor,
  .reward-setting-editor,
  .referral-admin-editor,
  .referral-link-admin-row,
  .room-access-form,
  .admin-inline-form,
  .quest-card,
  .ambassador-row,
  .leaderboard-row,
  .history-row {
    grid-template-columns: 1fr;
  }

  .member-editor .admin-note-field,
  .member-editor .row-actions,
  .room-editor .admin-note-field,
  .room-editor .row-actions,
  .quest-editor .admin-note-field,
  .quest-editor .row-actions,
  .content-editor .admin-note-field,
  .content-editor .row-actions,
  .referral-editor .admin-note-field,
  .referral-editor .row-actions,
  .referral-reward-editor .row-actions,
  .reward-setting-editor .admin-note-field,
  .reward-setting-editor .row-actions,
  .room-access-list,
  .tournament-create-form textarea,
  .tournament-create-form input[name="reward_label"],
  .tournament-create-form input[name="poster_url"],
  .tournament-create-form input[name="promo_poster_url"],
  .tournament-edit-grid .admin-note-field,
  .tournament-edit-grid .row-actions,
  .referral-bonus-form .row-actions,
  .bonus-history {
    grid-column: auto;
  }

  .config-grid,
  .settings-toggles,
  .referral-link-box,
  .tiktok-official-card,
  .tiktok-connected-card {
    grid-template-columns: 1fr;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .tiktok-login-button {
    width: 100%;
  }

  .tiktok-action-stack {
    justify-content: stretch;
  }
}

@media (max-width: 640px) {
  .public-nav {
    min-height: 66px;
    gap: 12px;
    padding-inline: 14px;
  }

  .brand img {
    max-width: 128px;
    height: 46px;
  }

  .button {
    width: 100%;
  }

  .public-nav .button {
    width: auto;
    min-height: 40px;
    padding-inline: 12px;
  }

  .public-actions {
    display: grid;
    gap: 6px;
  }

  .public-actions .button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
  }

  .hero-section,
  .section,
  .story-band,
  .split-section,
  .page-hero,
  .workspace-content {
    padding-inline: 18px;
  }

  .premium-crest {
    min-height: 360px;
  }

  .hero-logo {
    width: min(100%, 350px);
  }

  .hero-metrics,
  .form-grid,
  .value-grid,
  .reason-grid,
  .timeline,
  .social-grid,
  .realm-strip,
  .podium-grid,
  .leaderboard-row,
  .leaderboard-controls div,
  .stat-grid,
  .profile-sheet,
  .sidebar nav,
  .team-filters,
  .team-member-grid,
  .profile-hero,
  .team-member-card,
  .tiktok-form,
  .avatar-form,
  .chat-form,
  .fast-reward-values,
  .tournament-grid,
  .tournament-admin-head,
  .tournament-edit-grid,
  .referral-bonus-form,
  .tournament-create-form,
  .match-row {
    grid-template-columns: 1fr;
  }

  .tiktok-form .checkbox-row,
  .tiktok-form .button {
    grid-column: auto;
  }

  .hero-actions,
  .button-row,
  .row-actions,
  .admin-request-alert,
  .topbar-actions {
    display: grid;
  }

  .admin-global-search,
  .coin-search,
  .reward-point-grid {
    min-width: 0;
    width: 100%;
  }

  .reward-point-grid {
    grid-template-columns: 1fr;
  }

  .help-callout {
    grid-template-columns: 1fr;
  }

  .info-hint-panel {
    left: auto;
    right: 0;
    transform: translate(0, 8px);
  }

  .info-hint:hover .info-hint-panel,
  .info-hint:focus .info-hint-panel,
  .info-hint:focus-within .info-hint-panel {
    transform: translate(0, 0);
  }

  .coin-member-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer,
  .topbar,
  .leaderboard-controls div,
  .admin-list-heading,
  .community-heading,
  .team-panel-head,
  .reward-row {
    display: grid;
  }

  .member-progress {
    text-align: left;
  }

  .quest-progress {
    justify-items: start;
  }

  .table-panel {
    padding: 6px 14px;
  }
}

/* Internal policy (reglement) viewer + filleuls */
.policy-viewer {
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: 16px;
  background: rgba(12, 14, 20, 0.6);
  padding: 16px;
  margin: 8px 0 16px;
  scroll-behavior: smooth;
}

.policy-pages {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.policy-page-canvas {
  width: 100%;
  max-width: 780px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  background: #fff;
}

.policy-iframe {
  width: 100%;
  height: 68vh;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.policy-loading {
  text-align: center;
  padding: 32px 12px;
  opacity: 0.75;
}

.policy-scroll-hint {
  position: sticky;
  bottom: 0;
  margin-top: 12px;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.9rem;
  border-radius: 10px;
  background: rgba(184, 134, 11, 0.18);
  color: #f4e7c5;
}

.policy-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.policy-gate .workspace-heading {
  margin-bottom: 8px;
}

.policy-publish-form input[type="file"] {
  padding: 8px;
}

.admin-help-line {
  border-left: 3px solid rgba(184, 134, 11, 0.6);
  padding-left: 12px;
  margin-top: 8px;
  font-size: 0.92rem;
  opacity: 0.9;
}

.filleul-card .filleul-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 18px;
  margin: 12px 0;
}

.filleul-card .filleul-stats div {
  display: flex;
  flex-direction: column;
}

.filleul-card .filleul-stats span {
  font-size: 0.78rem;
  opacity: 0.7;
}

/* Single-source referral admin + "Mes filleuls" profile section. */
.referral-adjust {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5, 7, 11, 0.4);
}

.referral-adjust > span {
  color: var(--muted);
  font-size: 0.85rem;
}

.referral-adjust-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.referral-adjust-controls input[type="number"] {
  max-width: 140px;
}

.mes-filleuls .filleuls-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mes-filleuls .filleul-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(5, 7, 11, 0.42);
}

.mes-filleuls .filleul-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.mes-filleuls .filleul-id strong {
  display: block;
}

.mes-filleuls .compact-filleuls-table .filleul-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto minmax(0, 0.8fr);
}

@media (max-width: 720px) {
  .profile-hero-compact {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .compact-level-card {
    max-width: none;
  }

  .referral-link-box,
  .mes-filleuls .compact-filleuls-table .filleul-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .mes-filleuls .filleul-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* The Pack Of Souls public identity */
.public-nav {
  grid-template-columns: minmax(220px, auto) 1fr auto;
  background:
    linear-gradient(180deg, rgba(8, 8, 9, 0.92), rgba(8, 8, 9, 0.74)),
    rgba(8, 8, 9, 0.86);
  border-bottom-color: rgba(244, 235, 214, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(219, 176, 93, 0.22));
}

.brand span {
  color: #f7f1e4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  color: rgba(244, 235, 214, 0.68);
}

.nav-links a {
  position: relative;
  padding: 8px 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 187, 103, 0.9), transparent);
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.pack-home {
  position: relative;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 34%),
    radial-gradient(circle at 50% 18%, rgba(224, 186, 104, 0.16), transparent 33rem),
    linear-gradient(135deg, #050505 0%, #101012 48%, #050505 100%);
  isolation: isolate;
}

.pack-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, transparent, rgba(244, 235, 214, 0.028), transparent),
    repeating-linear-gradient(90deg, rgba(244, 235, 214, 0.018) 0 1px, transparent 1px 7rem);
  opacity: 0.7;
}

.pack-home::after {
  content: "";
  position: absolute;
  inset: auto 8% 0;
  z-index: -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(226, 187, 103, 0.46), transparent);
}

.pack-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.pack-ambient span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(244, 235, 214, 0.82);
  box-shadow: 0 0 18px rgba(226, 187, 103, 0.7);
  animation: packParticle 10s ease-in-out infinite;
}

.pack-ambient span:nth-child(1) { left: 18%; top: 24%; animation-delay: 0s; }
.pack-ambient span:nth-child(2) { left: 76%; top: 16%; animation-delay: 1.5s; }
.pack-ambient span:nth-child(3) { left: 68%; top: 58%; animation-delay: 3s; }
.pack-ambient span:nth-child(4) { left: 28%; top: 72%; animation-delay: 4.5s; }
.pack-ambient span:nth-child(5) { left: 88%; top: 43%; animation-delay: 6s; }

.pack-hero {
  display: grid;
  grid-template-columns: minmax(18rem, 31rem) minmax(0, 43rem);
  gap: 5rem;
  align-items: center;
  width: min(72rem, calc(100% - 2rem));
  min-height: calc(100svh - 76px);
  margin: 0 auto;
  padding: 5.5rem 0 4.5rem;
}

.pack-mark {
  position: relative;
  display: grid;
  place-items: center;
  animation: packFade 0.8s ease both;
}

.pack-mark::before {
  content: "";
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(226, 187, 103, 0.13);
  filter: blur(34px);
  animation: packPulse 5s ease-in-out infinite;
}

.pack-mark::after {
  content: "";
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border: 1px solid rgba(244, 235, 214, 0.18);
  border-radius: 999px;
}

.pack-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 31rem);
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 3rem 5rem rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 2rem rgba(226, 187, 103, 0.2));
  animation: packFloat 7s ease-in-out infinite;
}

.pack-mark-orbit {
  position: absolute;
  width: 104%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(226, 187, 103, 0.22);
  box-shadow: inset 0 0 2rem rgba(226, 187, 103, 0.06);
}

.pack-hero-copy {
  animation: packFade 0.9s ease 0.12s both;
}

.pack-kicker {
  margin: 0 0 1rem;
  color: #d9b56c;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pack-hero h1 {
  margin-bottom: 1.35rem;
  color: #f9f5eb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.8rem;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.pack-hero blockquote {
  margin: 0 0 1.45rem;
  max-width: 42rem;
  color: #efe5d2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.55;
}

.pack-lead {
  max-width: 36rem;
  color: rgba(244, 235, 214, 0.68);
  font-size: 1.08rem;
}

.pack-actions {
  margin-top: 2rem;
}

.pack-intro,
.pack-values-section,
.pack-promise,
.pack-cta {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.pack-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 4rem;
  border-top: 1px solid rgba(244, 235, 214, 0.1);
}

.pack-intro h2,
.pack-section-heading h2,
.pack-cta h2 {
  color: #f8f2e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.05rem;
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.pack-intro p:last-child {
  align-self: end;
  color: rgba(244, 235, 214, 0.68);
  font-size: 1.06rem;
}

.pack-section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.pack-values {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-radius: 1.2rem;
  background: rgba(244, 235, 214, 0.1);
}

.pack-value-card {
  min-height: 23rem;
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    #111113;
  transition: background 0.25s ease, transform 0.25s ease;
}

.pack-value-card:hover {
  background:
    linear-gradient(180deg, rgba(226, 187, 103, 0.11), rgba(255, 255, 255, 0.02)),
    #111113;
  transform: translateY(-2px);
}

.pack-value-card span,
.pack-pillar span {
  display: block;
  margin-bottom: 7rem;
  color: rgba(226, 187, 103, 0.75);
  font-family: Georgia, "Times New Roman", serif;
}

.pack-value-card h3,
.pack-pillar h3 {
  color: #f7f1e4;
  font-size: 1.08rem;
}

.pack-value-card p,
.pack-pillar p,
.pack-cta p {
  color: rgba(244, 235, 214, 0.66);
  font-size: 0.95rem;
}

.pack-pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pack-pillar {
  min-height: 17rem;
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-radius: 1rem;
  padding: 1.45rem;
  background: rgba(255, 255, 255, 0.035);
}

.pack-pillar span {
  margin-bottom: 4.5rem;
}

.pack-cta {
  padding-bottom: 7rem;
}

.pack-cta-card {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  border: 1px solid rgba(226, 187, 103, 0.2);
  border-radius: 1.35rem;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(226, 187, 103, 0.13), rgba(255, 255, 255, 0.035)),
    #101012;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28);
}

.pack-cta-card img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  filter: drop-shadow(0 0 1.4rem rgba(226, 187, 103, 0.18));
}

.pack-cta-card p {
  margin: 0;
}

.pack-cta-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.74), rgba(5, 5, 5, 0.98)),
    #050505;
  border-top-color: rgba(244, 235, 214, 0.12);
}

.footer img {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
}

.footer-links a {
  color: rgba(244, 235, 214, 0.68);
}

@keyframes packFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes packFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes packPulse {
  0%, 100% {
    opacity: 0.68;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes packParticle {
  0%, 100% {
    opacity: 0.16;
    transform: translateY(0);
  }
  50% {
    opacity: 0.72;
    transform: translateY(-18px);
  }
}

@media (max-width: 1120px) {
  .pack-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .pack-hero-copy,
  .pack-lead,
  .pack-hero blockquote {
    margin-inline: auto;
  }

  .pack-actions {
    justify-content: center;
  }

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

  .pack-value-card {
    min-height: 14rem;
  }

  .pack-value-card span {
    margin-bottom: 3rem;
  }

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

@media (max-width: 780px) {
  .public-nav {
    grid-template-columns: 1fr auto;
  }

  .public-nav .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .brand span {
    font-size: 0.88rem;
  }

  .pack-hero {
    padding-top: 3.5rem;
  }

  .pack-hero h1 {
    font-size: 3.15rem;
  }

  .pack-hero blockquote {
    font-size: 1.14rem;
  }

  .pack-intro,
  .pack-cta-card {
    grid-template-columns: 1fr;
  }

  .pack-cta-card > div {
    display: grid;
  }

  .pack-intro h2,
  .pack-section-heading h2,
  .pack-cta h2 {
    font-size: 2.25rem;
  }

  .pack-values,
  .pack-pillar-grid {
    grid-template-columns: 1fr;
  }

  .pack-value-card,
  .pack-pillar {
    min-height: auto;
  }

  .pack-value-card span,
  .pack-pillar span {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .public-nav {
    gap: 12px;
    padding-inline: 14px;
  }

  .brand span {
    display: none;
  }

  .public-actions .button {
    min-height: 40px;
    padding-inline: 12px;
  }

  .pack-hero h1 {
    font-size: 2.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pack-ambient span,
  .pack-mark::before,
  .pack-mark img,
  .pack-hero-copy,
  .pack-mark {
    animation: none;
  }
}

/* Premium public home refresh */
:root {
  --pack-ink: #040506;
  --pack-ash: #111315;
  --pack-smoke: #1b1d20;
  --pack-cream: #f4ecdc;
  --pack-gold: #e3b35d;
  --pack-bronze: #9a6a32;
  --pack-display-font: "Segoe Print", "Bradley Hand ITC", "Brush Script MT", "Trebuchet MS", cursive;
  --pack-body-font: Inter, "Segoe UI", system-ui, sans-serif;
}

.public-nav {
  grid-template-columns: minmax(17rem, auto) 1fr auto;
  gap: 1.4rem;
  min-height: 78px;
  padding-block: 0.65rem;
  background:
    linear-gradient(180deg, rgba(4, 5, 6, 0.94), rgba(4, 5, 6, 0.78)),
    radial-gradient(circle at 18% 0%, rgba(227, 179, 93, 0.12), transparent 24rem);
  border-bottom-color: rgba(227, 179, 93, 0.18);
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.24);
}

.public-nav .brand img {
  width: 3.85rem;
  height: 3.85rem;
  max-width: none;
  border-radius: 999px;
  object-fit: contain;
  background: radial-gradient(circle, rgba(4, 5, 6, 0.12), rgba(4, 5, 6, 0) 68%);
  filter: drop-shadow(0 0 1.1rem rgba(227, 179, 93, 0.28));
}

.public-nav .brand span {
  color: var(--pack-cream);
  font-family: var(--pack-display-font);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 0 1.2rem rgba(227, 179, 93, 0.18);
}

.public-nav .brand span::after {
  content: "Agency";
  display: block;
  margin-top: -0.18rem;
  color: var(--pack-gold);
  font-family: var(--pack-body-font);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.46em;
  line-height: 1;
  text-transform: uppercase;
}

.public-nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.45rem;
  color: rgba(244, 236, 220, 0.78);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.public-nav .nav-links a {
  border-radius: 999px;
  padding: 0.65rem 0.25rem;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.public-nav .nav-links a.is-active,
.public-nav .nav-links a:hover {
  color: var(--pack-gold);
  text-shadow: 0 0 1rem rgba(227, 179, 93, 0.25);
}

.public-nav .nav-links a.is-active::after,
.public-nav .nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.public-nav .public-actions {
  gap: 0.8rem;
}

.public-member-button,
.public-join-button {
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-member-button {
  border-color: rgba(227, 179, 93, 0.58);
  background: rgba(10, 10, 12, 0.45);
  color: var(--pack-gold);
}

.public-join-button {
  background:
    linear-gradient(180deg, rgba(255, 231, 176, 0.92), rgba(214, 150, 58, 0.96)),
    var(--pack-gold);
  color: #080706;
  box-shadow: 0 0.75rem 2rem rgba(227, 179, 93, 0.24);
}

.pack-home-premium {
  min-height: calc(100svh - 78px);
  padding: 1rem 0 1.4rem;
  background:
    linear-gradient(90deg, rgba(4, 5, 6, 0.7), rgba(4, 5, 6, 0.12) 42%, rgba(4, 5, 6, 0.62)),
    radial-gradient(circle at 31% 28%, rgba(244, 236, 220, 0.22), transparent 13rem),
    radial-gradient(circle at 32% 51%, rgba(227, 179, 93, 0.28), transparent 30rem),
    radial-gradient(circle at 78% 23%, rgba(255, 255, 255, 0.06), transparent 26rem),
    linear-gradient(135deg, #030405 0%, #111417 45%, #030405 100%);
}

.pack-home-premium::before {
  background:
    linear-gradient(180deg, rgba(4, 5, 6, 0.2), transparent 12% 48%, rgba(4, 5, 6, 0.2) 49%, rgba(4, 5, 6, 0.92) 100%),
    linear-gradient(112deg, transparent 0 38%, rgba(244, 236, 220, 0.035) 39% 40%, transparent 41%),
    radial-gradient(ellipse at 14% 76%, rgba(227, 179, 93, 0.18), transparent 22rem),
    radial-gradient(ellipse at 86% 72%, rgba(128, 151, 158, 0.16), transparent 28rem),
    repeating-linear-gradient(118deg, rgba(244, 236, 220, 0.022) 0 1px, transparent 1px 7rem);
  opacity: 1;
}

.pack-home-premium::after {
  inset: auto 3rem 1.1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 179, 93, 0.78), transparent);
}

.pack-home-premium,
.pack-feature-section,
.pack-home-close,
.pack-contact-cta {
  font-family: var(--pack-body-font);
}

.pack-fog {
  position: absolute;
  inset: 20% -12% 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 22% 60%, rgba(244, 236, 220, 0.08), transparent 29rem),
    radial-gradient(ellipse at 64% 72%, rgba(255, 255, 255, 0.06), transparent 31rem),
    radial-gradient(ellipse at 48% 100%, rgba(227, 179, 93, 0.09), transparent 34rem);
  filter: blur(10px);
  opacity: 0.8;
  animation: packFogDrift 18s ease-in-out infinite;
}

.pack-social-rail {
  position: absolute;
  top: 7rem;
  bottom: 28%;
  left: max(1.2rem, calc((100% - 92rem) / 2 - 3.2rem));
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 0.8rem;
  pointer-events: auto;
}

.pack-social-rail span {
  justify-self: center;
  width: 1px;
  height: 4.2rem;
  background: linear-gradient(180deg, transparent, rgba(227, 179, 93, 0.5), transparent);
}

.pack-social-rail a {
  display: grid;
  width: 2.05rem;
  height: 2.05rem;
  place-items: center;
  border: 1px solid rgba(227, 179, 93, 0.24);
  border-radius: 0.45rem;
  background: rgba(5, 6, 7, 0.42);
  color: var(--pack-gold);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.pack-social-rail a:hover,
.pack-social-rail a:focus-visible {
  border-color: rgba(227, 179, 93, 0.7);
  background: rgba(227, 179, 93, 0.12);
  transform: translateX(3px);
}

.pack-ambient-premium span {
  width: 4px;
  height: 4px;
  background: rgba(248, 231, 187, 0.86);
  box-shadow: 0 0 1.4rem rgba(227, 179, 93, 0.78);
}

.pack-ambient-premium span:nth-child(6) { left: 43%; top: 11%; animation-delay: 7.2s; }
.pack-ambient-premium span:nth-child(7) { left: 52%; top: 47%; animation-delay: 2.4s; }
.pack-ambient-premium span:nth-child(8) { left: 7%; top: 63%; animation-delay: 5.1s; }

.pack-hero-premium {
  grid-template-columns: minmax(23rem, 40rem) minmax(34rem, 45rem);
  gap: 2.5rem;
  width: min(92rem, calc(100% - 3rem));
  min-height: auto;
  padding: 1.4rem 0 1rem;
}

.pack-hero-art {
  position: relative;
  display: grid;
  min-height: 34rem;
  place-items: center;
  overflow: hidden;
  border-radius: 1.25rem;
}

.pack-hero-art > * {
  position: relative;
  z-index: 1;
}

.pack-hero-art::before {
  content: "";
  position: absolute;
  inset: 0 0 11%;
  z-index: 0;
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 50% 39%, rgba(244, 236, 220, 0.2), transparent 13rem),
    radial-gradient(circle at 50% 46%, rgba(227, 179, 93, 0.17), transparent 20rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
  border: 1px solid rgba(227, 179, 93, 0.3);
  box-shadow:
    inset 0 0 4rem rgba(227, 179, 93, 0.08),
    0 0 4rem rgba(0, 0, 0, 0.28);
}

.pack-hero-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 10rem;
  background:
    linear-gradient(180deg, transparent, rgba(3, 4, 5, 0.96) 58%),
    linear-gradient(115deg, transparent 0 44%, rgba(16, 20, 22, 0.98) 45% 100%),
    linear-gradient(65deg, transparent 0 46%, rgba(9, 12, 14, 0.98) 47% 100%);
  clip-path: polygon(0 100%, 0 34%, 6% 62%, 10% 24%, 15% 65%, 22% 18%, 29% 70%, 36% 30%, 43% 72%, 50% 22%, 57% 70%, 64% 32%, 71% 76%, 78% 25%, 84% 68%, 90% 35%, 96% 72%, 100% 42%, 100% 100%);
  opacity: 0.92;
}

.pack-moon {
  position: absolute;
  top: 0.6rem;
  z-index: 0;
  width: 24rem;
  max-width: 76%;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 251, 237, 0.96), rgba(236, 225, 203, 0.62) 38%, rgba(112, 103, 92, 0.14) 68%, transparent 70%);
  opacity: 0.52;
  filter: blur(0.2px);
}

.pack-mountain {
  position: absolute;
  z-index: 0;
  bottom: 0.8rem;
  width: 27rem;
  height: 18rem;
  opacity: 0.72;
  background:
    linear-gradient(142deg, transparent 0 48%, rgba(244, 236, 220, 0.12) 49% 50%, transparent 51%),
    linear-gradient(135deg, transparent 0 45%, rgba(15, 18, 20, 0.96) 46% 100%);
  clip-path: polygon(8% 100%, 46% 6%, 78% 100%);
}

.pack-mountain-left {
  left: -5rem;
  transform: scaleX(1.18);
}

.pack-mountain-right {
  right: -7rem;
  transform: scaleX(-1.08) scaleY(0.9);
  opacity: 0.58;
}

.pack-logo-scene {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 2;
  width: min(27rem, 76%);
  margin-top: -0.2rem;
  animation: packSceneRise 0.85s ease both;
}

.pack-mark-premium {
  position: relative;
  width: 100%;
  max-width: 27rem;
  isolation: isolate;
}

.pack-mark-premium::before {
  width: 108%;
  background:
    radial-gradient(circle at 50% 52%, rgba(4, 5, 6, 0.9), rgba(4, 5, 6, 0.46) 52%, transparent 73%),
    radial-gradient(circle, rgba(227, 179, 93, 0.24), transparent 72%);
  filter: blur(1.8rem);
  animation: packPulse 5.8s ease-in-out infinite;
}

.pack-mark-premium::after {
  width: 112%;
  border-color: rgba(227, 179, 93, 0.48);
  box-shadow:
    0 0 2.2rem rgba(227, 179, 93, 0.14),
    inset 0 0 1.8rem rgba(227, 179, 93, 0.08);
}

.pack-mark-premium img {
  width: 100%;
  max-width: 27rem;
  height: auto;
  border-radius: 999px;
  object-fit: contain;
  background: transparent;
  filter:
    drop-shadow(0 2rem 3rem rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 1.2rem rgba(227, 179, 93, 0.22));
}

.pack-mark-premium .pack-mark-orbit {
  width: 110%;
  border-color: rgba(227, 179, 93, 0.32);
  transform: rotate(-12deg);
}

.pack-wolf-ridge {
  position: absolute;
  right: 8%;
  z-index: 3;
  bottom: 2.25rem;
  left: 8%;
  height: 6rem;
  border-bottom: 1px solid rgba(227, 179, 93, 0.22);
  background: linear-gradient(180deg, transparent 0 48%, rgba(4, 5, 6, 0.92) 49% 100%);
  clip-path: polygon(0 100%, 12% 70%, 23% 78%, 35% 58%, 45% 68%, 55% 44%, 66% 72%, 78% 62%, 88% 78%, 100% 58%, 100% 100%);
}

.pack-wolf-ridge span {
  position: absolute;
  bottom: 1.15rem;
  width: 0.78rem;
  height: 1.6rem;
  border-radius: 60% 60% 45% 45%;
  background: #040506;
  box-shadow: 0 0 0.7rem rgba(227, 179, 93, 0.16);
}

.pack-wolf-ridge span::before,
.pack-wolf-ridge span::after {
  content: "";
  position: absolute;
  top: -0.38rem;
  border-right: 0.22rem solid transparent;
  border-bottom: 0.46rem solid #040506;
  border-left: 0.22rem solid transparent;
}

.pack-wolf-ridge span::before { left: 0.02rem; }
.pack-wolf-ridge span::after { right: 0.02rem; }
.pack-wolf-ridge span:nth-child(1) { left: 8%; transform: scale(0.66); }
.pack-wolf-ridge span:nth-child(2) { left: 22%; transform: scale(0.82); }
.pack-wolf-ridge span:nth-child(3) { left: 36%; transform: scale(0.74); }
.pack-wolf-ridge span:nth-child(4) { left: 49%; transform: scale(1.08); }
.pack-wolf-ridge span:nth-child(5) { left: 64%; transform: scale(0.78); }
.pack-wolf-ridge span:nth-child(6) { left: 76%; transform: scale(0.72); }
.pack-wolf-ridge span:nth-child(7) { left: 88%; transform: scale(0.62); }

.pack-side-signature {
  position: absolute;
  bottom: 3.1rem;
  left: 0.55rem;
  z-index: 4;
  display: block;
  margin: 0;
  color: rgba(227, 179, 93, 0.9);
  font-family: var(--pack-display-font);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  transform: rotate(-7deg);
  text-shadow: 0 0 1.2rem rgba(227, 179, 93, 0.18), 0 2px 0 rgba(0, 0, 0, 0.38);
}

.pack-hero-copy-premium {
  position: relative;
  z-index: 1;
  padding: 0.8rem 0;
}

.pack-kicker-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pack-kicker-line span {
  width: 6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 179, 93, 0.84));
}

.pack-kicker-line span:last-child {
  background: linear-gradient(90deg, rgba(227, 179, 93, 0.84), transparent);
}

.pack-kicker-line .pack-kicker,
.pack-feature-heading .pack-kicker,
.pack-home-close .pack-kicker {
  margin: 0;
  color: var(--pack-gold);
}

.pack-hero-premium .pack-display-title {
  display: grid;
  margin: 0 0 1rem;
  color: #fbf8ef;
  font-family: var(--pack-display-font);
  font-size: 5.75rem;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0.4rem 1.8rem rgba(0, 0, 0, 0.54),
    0 0 1.2rem rgba(255, 255, 255, 0.08);
}

.pack-display-title em {
  color: var(--pack-gold);
  font-style: normal;
  text-shadow: 0 0 1.6rem rgba(227, 179, 93, 0.26);
}

.pack-slogan {
  display: inline-block;
  margin: 0 0 1.4rem;
  border-radius: 0.35rem;
  padding: 0.45rem 0.75rem;
  background: rgba(4, 5, 6, 0.72);
  color: #fffaf0;
  font-family: var(--pack-display-font);
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  box-shadow: inset 0 -1px 0 rgba(227, 179, 93, 0.22);
}

.pack-slogan strong {
  color: var(--pack-gold);
}

.pack-hero-premium .pack-lead {
  max-width: 41rem;
  color: rgba(244, 236, 220, 0.82);
  font-size: 1.08rem;
}

.pack-hero-premium .pack-actions {
  gap: 1rem;
  margin: 1.65rem 0 1.35rem;
}

.pack-primary-cta,
.pack-secondary-cta {
  min-width: 13.9rem;
  min-height: 3.15rem;
  border-radius: 0.55rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pack-secondary-cta {
  border-color: rgba(244, 236, 220, 0.16);
  background: rgba(8, 9, 10, 0.56);
}

.pack-quick-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 46rem;
  border-top: 1px solid rgba(227, 179, 93, 0.2);
  border-bottom: 1px solid rgba(227, 179, 93, 0.15);
  background: rgba(227, 179, 93, 0.2);
}

.pack-quick-values article {
  display: flex;
  min-width: 0;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem 0.8rem;
  background:
    radial-gradient(circle at 50% -40%, rgba(227, 179, 93, 0.12), transparent 4.2rem),
    rgba(5, 6, 7, 0.78);
}

.pack-quick-values article > span,
.pack-stats-bar article > span,
.pack-feature-visual span {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid rgba(227, 179, 93, 0.66);
  border-radius: 0.4rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(227, 179, 93, 0.95) 0 0.22rem, transparent 0.24rem),
    radial-gradient(circle at 32% 40%, rgba(227, 179, 93, 0.9) 0 0.18rem, transparent 0.2rem),
    radial-gradient(circle at 68% 40%, rgba(227, 179, 93, 0.9) 0 0.18rem, transparent 0.2rem),
    linear-gradient(135deg, rgba(227, 179, 93, 0.18), rgba(255, 255, 255, 0.02));
  transform: rotate(45deg);
}

.pack-value-team > span {
  border-radius: 999px 999px 0.35rem 999px;
}

.pack-value-challenge > span {
  clip-path: polygon(50% 0, 63% 33%, 100% 33%, 70% 54%, 82% 100%, 50% 73%, 18% 100%, 30% 54%, 0 33%, 37% 33%);
  border-radius: 0.2rem;
}

.pack-value-legacy > span {
  border-radius: 999px 999px 999px 0.35rem;
}

.pack-stat-members > span,
.pack-stat-shield > span,
.pack-stat-star > span,
.pack-stat-world > span {
  width: 2rem;
  height: 2rem;
}

.pack-stat-shield > span {
  clip-path: polygon(50% 0, 90% 16%, 80% 74%, 50% 100%, 20% 74%, 10% 16%);
  border-radius: 0.2rem;
}

.pack-stat-star > span {
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 80% 94%, 50% 72%, 20% 94%, 32% 56%, 2% 35%, 39% 35%);
  border-radius: 0.12rem;
}

.pack-stat-world > span {
  border-radius: 999px;
}

.pack-quick-values div {
  min-width: 0;
}

.pack-quick-values strong,
.pack-stats-bar strong {
  display: block;
  overflow-wrap: anywhere;
  color: #fff8ed;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.pack-quick-values small,
.pack-stats-bar small {
  display: block;
  margin-top: 0.2rem;
  color: rgba(244, 236, 220, 0.72);
  font-size: 0.74rem;
  line-height: 1.25;
}

.pack-stats-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(72rem, calc(100% - 3rem));
  margin: -0.35rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(227, 179, 93, 0.28);
  border-radius: 0.8rem;
  background: rgba(227, 179, 93, 0.28);
  box-shadow:
    0 1.4rem 4rem rgba(0, 0, 0, 0.34),
    inset 0 0 2.4rem rgba(227, 179, 93, 0.04);
}

.pack-stats-bar article {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: 1.05rem 1.3rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(227, 179, 93, 0.12), transparent 5rem),
    rgba(11, 13, 14, 0.82);
}

.pack-feature-section,
.pack-home-close,
.pack-contact-cta {
  position: relative;
  width: min(92rem, calc(100% - 3rem));
  margin: 0 auto;
}

.pack-feature-section {
  padding: 1.7rem 0 3.2rem;
}

.pack-feature-heading {
  max-width: 46rem;
  margin-bottom: 1.7rem;
}

.pack-feature-heading h2,
.pack-home-close h2 {
  color: var(--pack-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.pack-feature-heading p:last-child {
  color: rgba(244, 236, 220, 0.72);
}

.pack-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.pack-feature-card {
  position: relative;
  display: grid;
  min-height: 12.8rem;
  overflow: hidden;
  border: 1px solid rgba(227, 179, 93, 0.2);
  border-radius: 0.75rem;
  padding: 1.15rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012)),
    #101214;
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.24);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.pack-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.95;
  background:
    linear-gradient(180deg, rgba(3, 4, 5, 0.1), rgba(3, 4, 5, 0.82)),
    radial-gradient(circle at 78% 12%, rgba(227, 179, 93, 0.32), transparent 5.8rem),
    radial-gradient(ellipse at 70% 88%, rgba(227, 179, 93, 0.2), transparent 8rem),
    linear-gradient(152deg, transparent 0 48%, rgba(244, 236, 220, 0.055) 49%, transparent 50%);
}

.pack-feature-defis {
  background:
    radial-gradient(circle at 78% 78%, rgba(227, 179, 93, 0.2), transparent 8rem),
    linear-gradient(145deg, rgba(63, 36, 12, 0.36), rgba(255, 255, 255, 0.012)),
    #101214;
}

.pack-feature-progression {
  background:
    radial-gradient(circle at 76% 20%, rgba(149, 95, 197, 0.18), transparent 8rem),
    radial-gradient(circle at 72% 82%, rgba(227, 179, 93, 0.13), transparent 7rem),
    linear-gradient(145deg, rgba(25, 22, 39, 0.48), rgba(255, 255, 255, 0.012)),
    #101214;
}

.pack-feature-rewards {
  background:
    radial-gradient(circle at 75% 70%, rgba(227, 179, 93, 0.28), transparent 8rem),
    linear-gradient(145deg, rgba(67, 44, 13, 0.5), rgba(255, 255, 255, 0.012)),
    #101214;
}

.pack-feature-pack {
  background:
    radial-gradient(circle at 78% 72%, rgba(130, 167, 182, 0.18), transparent 8rem),
    linear-gradient(145deg, rgba(14, 29, 35, 0.48), rgba(255, 255, 255, 0.012)),
    #101214;
}

.pack-feature-defis::after,
.pack-feature-progression::after,
.pack-feature-rewards::after,
.pack-feature-pack::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -1rem;
  width: 14rem;
  height: 8rem;
  opacity: 0.68;
  background:
    linear-gradient(145deg, transparent 0 22%, rgba(227, 179, 93, 0.32) 23% 27%, transparent 28% 100%),
    radial-gradient(ellipse at 64% 72%, rgba(227, 179, 93, 0.22), transparent 60%);
  clip-path: polygon(0 100%, 22% 44%, 36% 74%, 52% 22%, 70% 68%, 88% 36%, 100% 100%);
}

.pack-feature-card:hover {
  border-color: rgba(227, 179, 93, 0.46);
  box-shadow: 0 1.7rem 4rem rgba(0, 0, 0, 0.32), 0 0 2rem rgba(227, 179, 93, 0.08);
  transform: translateY(-4px);
}

.pack-feature-card > * {
  position: relative;
  z-index: 1;
}

.pack-feature-visual {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.4rem;
}

.pack-feature-card h3 {
  color: #fff8ed;
  font-size: 1.18rem;
  line-height: 1.18;
  text-transform: uppercase;
}

.pack-feature-card p {
  color: rgba(244, 236, 220, 0.74);
  font-size: 0.9rem;
}

.pack-feature-card a {
  align-self: end;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(227, 179, 93, 0.24);
  border-radius: 0.45rem;
  padding: 0.58rem 0.78rem;
  color: #fff4df;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pack-feature-card a:hover {
  border-color: rgba(227, 179, 93, 0.58);
  background: rgba(227, 179, 93, 0.12);
  color: var(--pack-gold);
}

.pack-home-close {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: 4.3rem 1rem 5.4rem;
  text-align: center;
}

.pack-home-close::before {
  content: "";
  width: min(42rem, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 179, 93, 0.62), transparent);
}

.pack-home-close h2 {
  max-width: 48rem;
  margin: 0;
}

.pack-home-close .button {
  margin-top: 0.4rem;
}

.pack-contact-cta {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  margin-bottom: 4rem;
  overflow: hidden;
  border: 1px solid rgba(227, 179, 93, 0.24);
  border-radius: 0.95rem;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(227, 179, 93, 0.16), transparent 16rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(8, 10, 11, 0.86);
  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.28),
    inset 0 0 2.4rem rgba(227, 179, 93, 0.035);
  text-align: center;
}

.pack-contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(227, 179, 93, 0.14), transparent),
    repeating-linear-gradient(118deg, rgba(244, 236, 220, 0.022) 0 1px, transparent 1px 5rem);
  opacity: 0.72;
}

.pack-contact-cta > * {
  position: relative;
  z-index: 1;
}

.pack-contact-cta .pack-kicker {
  margin: 0 0 0.65rem;
  color: var(--pack-gold);
}

.pack-contact-cta h2 {
  max-width: 52rem;
  margin: 0 auto;
  color: var(--pack-cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.pack-contact-cta p:last-child {
  max-width: 48rem;
  margin: 0.85rem auto 0;
  color: rgba(244, 236, 220, 0.76);
  font-size: 1.02rem;
  line-height: 1.7;
}

.pack-contact-cta .button {
  min-width: min(100%, 14rem);
}

@keyframes packFogDrift {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.62;
  }
  50% {
    transform: translateX(1.6rem);
    opacity: 0.9;
  }
}

@keyframes packSceneRise {
  from {
    opacity: 0;
    transform: translateY(1.1rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .pack-hero-premium {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .pack-hero-art {
    min-height: 35rem;
  }

  .pack-hero-copy-premium,
  .pack-hero-premium .pack-lead,
  .pack-quick-values {
    margin-inline: auto;
  }

  .pack-kicker-line,
  .pack-hero-premium .pack-actions {
    justify-content: center;
  }

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

@media (max-width: 900px) {
  .public-nav {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .public-nav .brand {
    justify-content: center;
  }

  .public-nav .nav-links {
    grid-column: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 1rem;
    overflow: visible;
    padding: 0;
    font-size: 0.75rem;
  }

  .public-nav .public-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .pack-social-rail {
    display: none;
  }

  .pack-hero-premium,
  .pack-feature-section,
  .pack-home-close,
  .pack-contact-cta,
  .pack-stats-bar {
    width: min(100% - 1.25rem, 92rem);
  }

  .pack-hero-art {
    min-height: 29rem;
  }

  .pack-logo-scene,
  .pack-mark-premium {
    max-width: 24rem;
  }

  .pack-hero-premium .pack-display-title {
    font-size: 3.65rem;
  }

  .pack-slogan {
    font-size: 1.28rem;
  }

  .pack-quick-values,
  .pack-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pack-side-signature {
    display: none;
  }
}

@media (max-width: 560px) {
  .public-nav {
    padding-inline: 0.9rem;
  }

  .public-nav .nav-links {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    gap: 0.65rem 1rem;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .public-nav .brand span {
    font-size: 1.05rem;
  }

  .public-nav .brand img {
    width: 3.2rem;
    height: 3.2rem;
  }

  .public-member-button,
  .public-join-button {
    width: 100%;
  }

  .pack-home-premium {
    padding-top: 1rem;
  }

  .pack-hero-premium {
    padding-top: 0.8rem;
  }

  .pack-hero-art {
    min-height: 21rem;
  }

  .pack-moon {
    top: 0.8rem;
    width: 15.5rem;
  }

  .pack-logo-scene,
  .pack-mark-premium {
    max-width: 15.8rem;
  }

  .pack-logo-scene {
    margin-top: -2rem;
  }

  .pack-wolf-ridge {
    right: 3%;
    bottom: 2rem;
    left: 3%;
  }

  .pack-hero-premium .pack-display-title {
    font-size: 2.8rem;
  }

  .pack-kicker-line span {
    width: 2.6rem;
  }

  .pack-slogan {
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 1.02rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .pack-hero-premium .pack-lead {
    font-size: 0.98rem;
  }

  .pack-primary-cta,
  .pack-secondary-cta,
  .pack-actions .button {
    width: 100%;
  }

  .pack-quick-values,
  .pack-stats-bar,
  .pack-feature-grid {
    grid-template-columns: 1fr;
  }

  .pack-feature-heading h2,
  .pack-home-close h2 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pack-fog,
  .pack-logo-scene,
  .pack-feature-card,
  .pack-ambient-premium span,
  .pack-mark-premium::before,
  .pack-mark-premium img {
    animation: none;
    transition: none;
  }
}

/* The Pack Of Souls creator dashboard */
.pack-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.pack-dashboard-header,
.pack-welcome-card,
.pack-dashboard-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-radius: 1.15rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(13, 13, 15, 0.88);
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.28);
}

.pack-dashboard-header::before,
.pack-welcome-card::before,
.pack-dashboard-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(226, 187, 103, 0.16), transparent 18rem),
    linear-gradient(90deg, rgba(244, 235, 214, 0.03), transparent);
  opacity: 0.86;
}

.pack-dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
}

.pack-user-card,
.pack-dashboard-actions,
.pack-card-head,
.pack-card-footer,
.pack-cta-card > div {
  position: relative;
  z-index: 1;
}

.pack-user-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.pack-user-card .avatar-lg {
  flex: 0 0 auto;
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid rgba(226, 187, 103, 0.34);
  box-shadow: 0 0 2rem rgba(226, 187, 103, 0.16);
}

.pack-user-card h1 {
  margin: 0 0 0.35rem;
  color: #f8f2e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
}

.pack-user-card span,
.pack-card-head span,
.pack-dashboard-progress span,
.pack-activity-item span {
  color: rgba(244, 235, 214, 0.62);
}

.pack-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.pack-welcome-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.35rem, 2.6vw, 2rem);
}

.pack-welcome-card h2 {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  color: #f8f2e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.03;
}

.pack-welcome-card p {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  color: rgba(244, 235, 214, 0.68);
}

.pack-welcome-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 11rem;
  border: 1px solid rgba(226, 187, 103, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(226, 187, 103, 0.14), transparent 64%),
    rgba(255, 255, 255, 0.025);
  text-align: center;
}

.pack-welcome-mark span {
  color: rgba(244, 235, 214, 0.56);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pack-welcome-mark strong {
  color: #e2bb67;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.pack-dashboard-grid {
  display: grid;
  gap: 1rem;
}

.pack-dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pack-dashboard-main {
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 0.8fr));
}

.pack-dashboard-bottom {
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.75fr);
}

.pack-dashboard-card {
  min-height: 15.5rem;
  padding: 1.25rem;
}

.pack-card-large {
  grid-row: span 2;
}

.pack-card-wide {
  min-height: 18rem;
}

.pack-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}

.pack-card-head h2 {
  margin: 0;
  color: #f8f2e7;
  font-size: 1.18rem;
}

.pack-card-head > strong {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  border: 1px solid rgba(226, 187, 103, 0.2);
  border-radius: 999px;
  color: #e2bb67;
  background: rgba(226, 187, 103, 0.08);
}

.pack-dashboard-card p,
.pack-card-footer,
.pack-card-link,
.pack-mini-row,
.pack-activity-list {
  position: relative;
  z-index: 1;
}

.pack-card-value {
  margin-bottom: 0.75rem;
  color: #f8f2e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  line-height: 1;
}

.pack-card-footer {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.pack-card-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 1.15rem;
  color: #e2bb67;
  font-weight: 850;
}

.pack-card-link:hover {
  color: #f7e2a7;
}

.pack-dashboard-progress {
  display: grid;
  gap: 0.45rem;
}

.pack-dashboard-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.pack-dashboard-progress strong {
  color: #f8f2e7;
  font-size: 0.88rem;
}

.pack-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid rgba(244, 235, 214, 0.08);
  border-radius: 0.75rem;
  padding: 0.72rem;
  background: rgba(0, 0, 0, 0.18);
}

.pack-mini-row strong {
  min-width: 0;
  color: #f8f2e7;
}

.pack-notice {
  display: block;
  border-left: 2px solid rgba(226, 187, 103, 0.54);
  padding: 0.3rem 0 0.3rem 0.75rem;
  color: rgba(244, 235, 214, 0.7);
}

.pack-activity-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pack-activity-item {
  display: grid;
  gap: 0.18rem;
  border: 1px solid rgba(244, 235, 214, 0.08);
  border-radius: 0.85rem;
  padding: 0.86rem 0.95rem;
  background: rgba(0, 0, 0, 0.18);
}

.pack-activity-item strong {
  color: #f8f2e7;
}

.pack-activity-item.is-gold {
  border-color: rgba(226, 187, 103, 0.22);
}

.pack-activity-item.is-ice {
  border-color: rgba(244, 235, 214, 0.16);
}

.pack-backstage-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226, 187, 103, 0.14);
  border-radius: 1.15rem;
  padding: clamp(1rem, 2.2vw, 1.35rem);
  background:
    radial-gradient(circle at 12% 0%, rgba(226, 187, 103, 0.14), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(13, 13, 15, 0.88);
  box-shadow: 0 1.4rem 3.2rem rgba(0, 0, 0, 0.22);
}

.pack-backstage-head,
.pack-backstage-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: flex-start;
}

.pack-backstage-head h2 {
  margin: 0.2rem 0 0.35rem;
  color: #f8f2e7;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  letter-spacing: 0;
}

.pack-backstage-head p,
.pack-backstage-foot,
.pack-backstage-panel .quest-muted {
  color: rgba(244, 235, 214, 0.66);
}

.pack-backstage-metrics,
.backstage-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.pack-backstage-metrics article,
.backstage-overview-grid article {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  border: 1px solid rgba(244, 235, 214, 0.08);
  border-radius: 0.9rem;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.18);
}

.pack-backstage-metrics span,
.backstage-overview-grid span {
  color: rgba(244, 235, 214, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pack-backstage-metrics strong,
.backstage-overview-grid strong {
  color: #e2bb67;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.pack-backstage-metrics small,
.backstage-overview-grid small {
  color: rgba(244, 235, 214, 0.52);
}

.pack-backstage-foot {
  margin-top: 0.95rem;
  font-size: 0.86rem;
}

.backstage-overview-panel {
  display: grid;
  gap: 1rem;
}

.backstage-admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.backstage-admin-columns > div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-content: start;
  gap: 0.55rem;
  border: 1px solid rgba(244, 235, 214, 0.08);
  border-radius: 0.95rem;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.14);
}

.backstage-admin-columns h3 {
  width: 100%;
  margin: 0 0 0.15rem;
  color: #f8f2e7;
  font-size: 1rem;
}

@media (max-width: 1180px) {
  .pack-dashboard-stats,
  .pack-dashboard-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pack-card-large {
    grid-row: auto;
  }

  .pack-dashboard-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pack-dashboard-header,
  .pack-welcome-card {
    grid-template-columns: 1fr;
  }

  .pack-dashboard-header {
    display: grid;
  }

  .pack-user-card {
    align-items: flex-start;
  }

  .pack-dashboard-actions {
    justify-content: flex-start;
  }

  .pack-dashboard-stats,
  .pack-dashboard-main {
    grid-template-columns: 1fr;
  }

  .pack-dashboard-card {
    min-height: auto;
  }

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

  .pack-mini-row,
  .pack-dashboard-progress > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }
}

.defi-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: end;
  margin-bottom: 1.2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(226, 187, 103, 0.2);
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, rgba(226, 187, 103, 0.13), transparent 38%),
    linear-gradient(165deg, rgba(244, 235, 214, 0.07), transparent 44%),
    rgba(8, 10, 12, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.defi-hero h1 {
  max-width: 14ch;
  margin-bottom: 0.7rem;
  color: #fff8ea;
  font-size: clamp(2.1rem, 4vw, 4.1rem);
  line-height: 0.98;
}

.defi-hero p {
  max-width: 68ch;
  margin-bottom: 0;
}

.defi-tabs,
.defi-filter-list,
.defi-card-actions,
.defi-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.defi-tabs a,
.defi-filter-list a,
.defi-rewards span {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 235, 214, 0.12);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  color: rgba(244, 235, 214, 0.78);
  background: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.defi-tabs a:hover,
.defi-filter-list a:hover,
.defi-tabs a.is-active,
.defi-filter-list a.is-active {
  border-color: rgba(226, 187, 103, 0.46);
  color: #fff4dd;
  background: rgba(226, 187, 103, 0.12);
  transform: translateY(-1px);
}

.defi-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.defi-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  min-width: 0;
}

.defi-search input,
.defi-proof-form input,
.defi-proof-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(244, 235, 214, 0.14);
  border-radius: 0.8rem;
  padding: 0.85rem 0.95rem;
  color: #fff8ea;
  background: rgba(2, 3, 5, 0.58);
  outline: none;
}

.defi-search input:focus,
.defi-proof-form input:focus,
.defi-proof-form textarea:focus {
  border-color: rgba(226, 187, 103, 0.62);
  box-shadow: 0 0 0 3px rgba(226, 187, 103, 0.12);
}

.defi-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}

.defi-summary-grid article,
.defi-card,
.defi-detail,
.defi-proof-panel,
.defi-history-list article,
.defi-detail-grid article,
.defi-objectives,
.defi-history-panel {
  min-width: 0;
  border: 1px solid rgba(244, 235, 214, 0.11);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 48%),
    rgba(10, 13, 17, 0.86);
}

.defi-summary-grid article {
  border-radius: 0.9rem;
  padding: 1rem;
}

.defi-summary-grid span,
.defi-detail-grid span,
.defi-progress span,
.defi-proof-form span,
.defi-card-top span,
.defi-history-list p {
  color: rgba(244, 235, 214, 0.65);
}

.defi-summary-grid strong {
  display: block;
  margin-top: 0.35rem;
  color: #f2c96e;
  font-size: 1.55rem;
}

.defi-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.defi-card {
  display: grid;
  grid-template-rows: 170px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.26);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.defi-card:hover {
  border-color: rgba(226, 187, 103, 0.32);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.defi-card-art,
.defi-detail-visual {
  position: relative;
  display: grid;
  place-items: end start;
  min-width: 0;
  overflow: hidden;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(244, 235, 214, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(226, 187, 103, 0.18), rgba(5, 7, 9, 0.9));
}

.defi-card-art::before,
.defi-detail-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(244, 235, 214, 0.045) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.defi-card-art > *,
.defi-detail-visual > * {
  position: relative;
  z-index: 1;
}

.defi-card-art span {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid rgba(226, 187, 103, 0.5);
  border-radius: 50%;
  color: #fff4dd;
  background: rgba(5, 7, 9, 0.72);
  font-weight: 800;
}

.defi-card-art.is-moon,
.defi-detail-visual.is-moon {
  background: linear-gradient(145deg, rgba(244, 235, 214, 0.2), rgba(20, 23, 28, 0.96));
}

.defi-card-art.is-gold,
.defi-detail-visual.is-gold {
  background: linear-gradient(145deg, rgba(226, 187, 103, 0.42), rgba(18, 13, 7, 0.96));
}

.defi-card-art.is-white,
.defi-detail-visual.is-white {
  background: linear-gradient(145deg, rgba(255, 248, 232, 0.3), rgba(16, 18, 21, 0.96));
}

.defi-card-art.is-black,
.defi-detail-visual.is-black,
.defi-card-art.is-dark,
.defi-detail-visual.is-dark {
  background: linear-gradient(145deg, rgba(226, 187, 103, 0.16), rgba(0, 0, 0, 0.96));
}

.defi-card-art.is-anthracite,
.defi-detail-visual.is-anthracite {
  background: linear-gradient(145deg, rgba(244, 235, 214, 0.11), rgba(27, 31, 36, 0.96));
}

.defi-card-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.defi-card-top,
.defi-detail-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.defi-card-top > div,
.defi-detail-head > div {
  min-width: 0;
}

.defi-card h2,
.defi-objectives h2,
.defi-history-panel h2 {
  margin: 0.25rem 0 0;
  color: #fff8ea;
  font-size: 1.28rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.defi-card p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.defi-progress {
  display: grid;
  gap: 0.45rem;
}

.defi-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.defi-progress strong {
  color: #f2c96e;
}

.defi-rewards span {
  min-height: 2rem;
  padding: 0.42rem 0.68rem;
  font-size: 0.88rem;
}

.defi-card-actions {
  align-items: center;
  margin-top: auto;
}

.defi-card-actions .button {
  min-width: 0;
}

.defi-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
  border-radius: 1.1rem;
  padding: 1rem;
}

.defi-detail-visual {
  min-height: 520px;
  border-radius: 0.9rem;
  align-content: end;
}

.defi-detail-visual span,
.defi-detail-visual strong {
  display: block;
}

.defi-detail-visual span {
  color: rgba(244, 235, 214, 0.7);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 800;
}

.defi-detail-visual strong {
  max-width: 10ch;
  color: #fff8ea;
  font-size: 2.3rem;
  line-height: 1;
}

.defi-detail-content {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
  padding: 0.5rem;
}

.defi-detail-content h1,
.defi-proof-panel h1 {
  margin-bottom: 0;
  color: #fff8ea;
  font-size: clamp(2rem, 3vw, 3.35rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.defi-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.defi-detail-grid article {
  border-radius: 0.8rem;
  padding: 0.9rem;
}

.defi-detail-grid strong {
  display: block;
  margin-top: 0.35rem;
  color: #fff8ea;
  overflow-wrap: anywhere;
}

.defi-objectives,
.defi-history-panel {
  border-radius: 0.9rem;
  padding: 1rem;
}

.defi-objectives ul,
.defi-history-panel ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: rgba(244, 235, 214, 0.82);
}

.defi-proof-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
  align-items: start;
}

.defi-proof-summary .defi-card {
  position: sticky;
  top: 1rem;
}

.defi-proof-panel {
  border-radius: 1rem;
  padding: clamp(1rem, 2.4vw, 1.6rem);
}

.defi-proof-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.defi-proof-form label {
  display: grid;
  gap: 0.4rem;
}

.defi-proof-form button {
  justify-self: start;
}

.defi-history-list {
  display: grid;
  gap: 0.75rem;
}

.defi-history-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
}

.defi-history-list article > span:first-child {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(226, 187, 103, 0.35);
  border-radius: 50%;
  color: #f2c96e;
  background: rgba(226, 187, 103, 0.08);
  font-weight: 800;
}

.defi-history-list strong {
  color: #fff8ea;
}

.defi-history-list p {
  margin: 0.12rem 0 0;
}

@media (max-width: 1180px) {
  .defi-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .defi-detail,
  .defi-proof-layout {
    grid-template-columns: 1fr;
  }

  .defi-detail-visual {
    min-height: 340px;
  }

  .defi-proof-summary .defi-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .defi-hero,
  .defi-toolbar {
    grid-template-columns: 1fr;
  }

  .defi-summary-grid,
  .defi-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .defi-tabs,
  .defi-filter-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 620px) {
  .defi-card-grid,
  .defi-summary-grid,
  .defi-detail-grid,
  .defi-search {
    grid-template-columns: 1fr;
  }

  .defi-hero,
  .defi-detail,
  .defi-proof-panel {
    border-radius: 0.85rem;
  }

  .defi-card {
    grid-template-rows: 142px minmax(0, 1fr);
  }

  .defi-card-top,
  .defi-detail-head,
  .defi-progress > div:first-child,
  .defi-history-list article {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .defi-history-list article > span:first-child {
    width: 2rem;
    height: 2rem;
  }
}

.progression-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.2rem;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  overflow: hidden;
  border: 1px solid rgba(226, 187, 103, 0.22);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 18% 12%, rgba(226, 187, 103, 0.18), transparent 24rem),
    linear-gradient(145deg, rgba(244, 235, 214, 0.06), transparent 45%),
    rgba(8, 9, 11, 0.94);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.32);
}

.progression-hero h1 {
  max-width: 13ch;
  margin-bottom: 0.8rem;
  color: #fff8ea;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: 0.95;
}

.progression-hero p {
  max-width: 70ch;
  margin-bottom: 0;
}

.progression-hero-rank,
.progression-panel,
.progression-stat-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 235, 214, 0.11);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 48%),
    rgba(10, 13, 17, 0.88);
}

.progression-hero-rank {
  display: grid;
  align-content: end;
  gap: 0.55rem;
  min-height: 220px;
  border-color: color-mix(in srgb, var(--rank-color) 45%, rgba(244, 235, 214, 0.08));
  border-radius: 1rem;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--rank-color) 28%, transparent), transparent 62%),
    rgba(6, 7, 9, 0.82);
}

.progression-hero-rank::before,
.progression-reward-orb::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid color-mix(in srgb, var(--rank-color) 44%, transparent);
  border-radius: 50%;
  animation: progressionGlow 5s ease-in-out infinite;
}

.progression-hero-rank span,
.progression-reward-orb,
.progression-rank-emblem,
.progression-badge-grid span,
.progression-badge-history > span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 187, 103, 0.34);
  border-radius: 50%;
  color: #fff8ea;
  background: rgba(0, 0, 0, 0.42);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.progression-hero-rank span {
  width: 5.2rem;
  height: 5.2rem;
  border-color: color-mix(in srgb, var(--rank-color) 58%, rgba(226, 187, 103, 0.3));
  color: var(--rank-color);
  font-size: 1.8rem;
}

.progression-hero-rank strong {
  color: #fff8ea;
  font-size: 1.35rem;
}

.progression-hero-rank small,
.progression-rank-mini small,
.progression-stat-card small,
.progression-history-list small {
  color: rgba(244, 235, 214, 0.62);
}

.progression-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.progression-panel {
  border-radius: 1rem;
  padding: 1.15rem;
}

.progression-panel h2 {
  margin-bottom: 0.75rem;
  color: #fff8ea;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

.progression-level-number {
  width: 5.6rem;
  height: 5.6rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(226, 187, 103, 0.42);
  border-radius: 50%;
  color: #f2c96e;
  background:
    radial-gradient(circle, rgba(226, 187, 103, 0.18), transparent 68%),
    rgba(0, 0, 0, 0.34);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 800;
}

.progression-bar {
  position: relative;
  height: 0.72rem;
  overflow: hidden;
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.progression-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #8b713f, #f0d28a, #fff0c4),
    #f0d28a;
  box-shadow: 0 0 1.2rem rgba(226, 187, 103, 0.28);
  animation: progressionFill 820ms ease both;
}

.progression-rank-mini {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.progression-rank-mini span {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--rank-color) 48%, rgba(226, 187, 103, 0.24));
  border-radius: 50%;
  color: var(--rank-color);
  background: rgba(0, 0, 0, 0.36);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.progression-rank-mini strong {
  display: block;
  color: #fff8ea;
}

.progression-next-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: rgba(244, 235, 214, 0.78);
}

.progression-next-reward {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.progression-reward-orb {
  position: relative;
  width: 6.8rem;
  height: 6.8rem;
  border-color: color-mix(in srgb, var(--rank-color, #f0d28a) 46%, rgba(226, 187, 103, 0.28));
  color: var(--rank-color, #f0d28a);
  font-size: 2rem;
  box-shadow: 0 0 2.5rem rgba(226, 187, 103, 0.13);
}

.progression-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.progression-stat-card {
  border-radius: 0.9rem;
  padding: 1rem;
  transition: border-color 180ms ease, transform 180ms ease;
}

.progression-stat-card:hover {
  border-color: rgba(226, 187, 103, 0.3);
  transform: translateY(-2px);
}

.progression-stat-card span {
  color: rgba(244, 235, 214, 0.62);
}

.progression-stat-card strong {
  display: block;
  margin: 0.45rem 0;
  color: #fff8ea;
  font-size: 1.55rem;
}

.progression-timeline {
  margin-bottom: 1rem;
}

.progression-timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.progression-timeline-steps article {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-radius: 0.9rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.18);
}

.progression-timeline-steps article::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.8rem;
  width: 0.8rem;
  height: 1px;
  background: rgba(226, 187, 103, 0.28);
}

.progression-timeline-steps article:last-child::after {
  display: none;
}

.progression-timeline-steps span {
  color: #f2c96e;
  font-size: 0.8rem;
  font-weight: 900;
}

.progression-timeline-steps strong {
  display: block;
  margin: 0.35rem 0;
  color: #fff8ea;
}

.progression-timeline-steps small {
  color: rgba(244, 235, 214, 0.62);
}

.progression-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.progression-goal-list,
.progression-history-list,
.progression-badge-grid,
.progression-rank-grid {
  display: grid;
  gap: 0.75rem;
}

.progression-goal-row {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  border: 1px solid rgba(244, 235, 214, 0.08);
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: rgba(0, 0, 0, 0.2);
}

.progression-goal-row > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.progression-goal-row strong {
  min-width: 0;
  color: #fff8ea;
}

.progression-goal-row span {
  color: rgba(244, 235, 214, 0.64);
}

.progression-badge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.progression-badge-grid article {
  min-width: 0;
  border: 1px solid rgba(244, 235, 214, 0.08);
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.2);
}

.progression-badge-grid span {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.8rem;
  color: #f0d28a;
}

.progression-badge-grid strong {
  display: block;
  color: #fff8ea;
}

.progression-badge-grid small {
  display: block;
  margin-top: 0.4rem;
  color: rgba(244, 235, 214, 0.62);
}

.progression-rank-ladder {
  margin-bottom: 1rem;
}

.progression-rank-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.progression-rank-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  min-width: 0;
  border: 1px solid rgba(244, 235, 214, 0.08);
  border-radius: 0.95rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0.68;
}

.progression-rank-card.is-unlocked,
.progression-rank-card.is-current,
.progression-rank-card.is-next {
  opacity: 1;
}

.progression-rank-card.is-current {
  border-color: color-mix(in srgb, var(--rank-color) 52%, rgba(226, 187, 103, 0.18));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--rank-color) 12%, transparent), transparent),
    rgba(0, 0, 0, 0.2);
}

.progression-rank-card.is-next {
  border-color: rgba(244, 235, 214, 0.2);
}

.progression-rank-emblem {
  width: 3.4rem;
  height: 3.4rem;
  border-color: color-mix(in srgb, var(--rank-color) 46%, rgba(226, 187, 103, 0.2));
  color: var(--rank-color);
}

.progression-rank-card span {
  color: var(--rank-color);
  font-size: 0.8rem;
  font-weight: 900;
}

.progression-rank-card h3 {
  margin: 0.25rem 0;
  color: #fff8ea;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.progression-rank-card p {
  margin-bottom: 0;
  font-size: 0.93rem;
  overflow-wrap: anywhere;
}

.progression-history-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.progression-history-panel {
  align-content: start;
}

.progression-history-list article {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  border: 1px solid rgba(244, 235, 214, 0.08);
  border-radius: 0.82rem;
  padding: 0.82rem;
  background: rgba(0, 0, 0, 0.18);
}

.progression-history-list span {
  color: rgba(244, 235, 214, 0.58);
  font-size: 0.82rem;
}

.progression-history-list strong {
  color: #fff8ea;
  overflow-wrap: anywhere;
}

.progression-badge-history > span {
  width: 2.6rem;
  height: 2.6rem;
  color: #f0d28a;
}

@keyframes progressionFill {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

@keyframes progressionGlow {
  0%, 100% {
    opacity: 0.46;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@media (max-width: 1180px) {
  .progression-top-grid,
  .progression-rank-grid,
  .progression-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progression-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .progression-hero,
  .progression-main-grid,
  .progression-timeline-steps {
    grid-template-columns: 1fr;
  }

  .progression-timeline-steps article::after {
    top: auto;
    right: auto;
    left: 1.2rem;
    bottom: -0.8rem;
    width: 1px;
    height: 0.8rem;
  }

  .progression-stats-grid,
  .progression-badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .progression-top-grid,
  .progression-stats-grid,
  .progression-rank-grid,
  .progression-history-grid,
  .progression-badge-grid,
  .progression-next-reward {
    grid-template-columns: 1fr;
  }

  .progression-hero,
  .progression-panel,
  .progression-stat-card {
    border-radius: 0.85rem;
  }

  .progression-goal-row > div,
  .progression-rank-mini {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (prefers-reduced-motion: reduce) {
  .progression-bar span,
  .progression-hero-rank::before,
  .progression-reward-orb::before {
    animation: none;
  }
}

.wall-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
  padding: clamp(1.25rem, 3vw, 2.1rem);
  overflow: hidden;
  border: 1px solid rgba(226, 187, 103, 0.2);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 18% 10%, rgba(226, 187, 103, 0.16), transparent 24rem),
    radial-gradient(circle at 86% 22%, rgba(244, 235, 214, 0.08), transparent 18rem),
    linear-gradient(145deg, rgba(244, 235, 214, 0.055), transparent 48%),
    rgba(7, 8, 10, 0.95);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.32);
  animation: wallFade 520ms ease both;
}

.wall-hero h1 {
  max-width: 14ch;
  margin-bottom: 0.8rem;
  color: #fff8ea;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.wall-hero p {
  max-width: 70ch;
  margin-bottom: 0;
}

.wall-pulse-card,
.wall-activity-card,
.wall-side-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 235, 214, 0.11);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 48%),
    rgba(10, 13, 17, 0.88);
}

.wall-pulse-card {
  display: grid;
  align-content: end;
  gap: 0.35rem;
  border-color: rgba(226, 187, 103, 0.24);
  border-radius: 1rem;
  padding: 1.1rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(226, 187, 103, 0.18), transparent 66%),
    rgba(0, 0, 0, 0.34);
}

.wall-pulse-card span,
.wall-pulse-card small,
.wall-card-header span,
.wall-side-list span,
.wall-side-list small,
.wall-card-meta span {
  color: rgba(244, 235, 214, 0.64);
}

.wall-pulse-card strong {
  color: #f2c96e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.1rem;
  line-height: 1;
}

.wall-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.wall-filter-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border: 1px solid rgba(244, 235, 214, 0.12);
  border-radius: 999px;
  padding: 0.62rem 0.92rem;
  color: rgba(244, 235, 214, 0.78);
  background: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.wall-filter-tabs a:hover,
.wall-filter-tabs a.is-active {
  border-color: rgba(226, 187, 103, 0.46);
  color: #fff4dd;
  background: rgba(226, 187, 103, 0.12);
  transform: translateY(-1px);
}

.wall-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1rem;
  align-items: start;
}

.wall-feed {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.wall-activity-card {
  border-radius: 1rem;
  padding: 1rem;
  animation: wallFade 420ms ease both;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.wall-activity-card:hover {
  border-color: rgba(226, 187, 103, 0.3);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.wall-activity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.78;
  background: linear-gradient(90deg, rgba(226, 187, 103, 0.08), transparent 34%);
}

.wall-activity-card.is-progression::before {
  background: linear-gradient(90deg, rgba(127, 215, 242, 0.09), transparent 34%);
}

.wall-activity-card.is-live::before {
  background: linear-gradient(90deg, rgba(228, 107, 124, 0.1), transparent 34%);
}

.wall-activity-card.is-new::before {
  background: linear-gradient(90deg, rgba(244, 235, 214, 0.08), transparent 34%);
}

.wall-card-header,
.wall-card-meta,
.wall-reactions,
.wall-activity-card p,
.wall-activity-visual {
  position: relative;
  z-index: 1;
}

.wall-card-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.wall-avatar {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  flex: 0 0 auto;
  border: 1px solid rgba(226, 187, 103, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 28%, rgba(244, 235, 214, 0.18), transparent 56%),
    rgba(0, 0, 0, 0.38);
  box-shadow: 0 0 1.4rem rgba(226, 187, 103, 0.12);
}

.wall-avatar span {
  color: #f2c96e;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.wall-card-header strong,
.wall-side-list strong,
.wall-activity-card h2 {
  display: block;
  color: #fff8ea;
}

.wall-card-header > div {
  min-width: 0;
}

.wall-card-header span,
.wall-side-list span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wall-activity-card p {
  margin-bottom: 0.9rem;
  color: rgba(244, 235, 214, 0.76);
  overflow-wrap: anywhere;
}

.wall-activity-card p strong {
  color: #fff8ea;
}

.wall-activity-visual {
  display: grid;
  place-items: end start;
  min-height: 210px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-radius: 0.95rem;
  padding: 1rem;
  background:
    repeating-linear-gradient(135deg, rgba(244, 235, 214, 0.04) 0 1px, transparent 1px 13px),
    linear-gradient(145deg, rgba(226, 187, 103, 0.18), rgba(0, 0, 0, 0.76));
}

.wall-activity-visual.is-moon {
  background:
    repeating-linear-gradient(135deg, rgba(244, 235, 214, 0.04) 0 1px, transparent 1px 13px),
    linear-gradient(145deg, rgba(244, 235, 214, 0.17), rgba(11, 13, 17, 0.9));
}

.wall-activity-visual.is-gold,
.wall-activity-visual.is-spotlight {
  background:
    repeating-linear-gradient(135deg, rgba(244, 235, 214, 0.04) 0 1px, transparent 1px 13px),
    linear-gradient(145deg, rgba(226, 187, 103, 0.32), rgba(19, 14, 7, 0.92));
}

.wall-activity-visual.is-ember {
  background:
    repeating-linear-gradient(135deg, rgba(244, 235, 214, 0.04) 0 1px, transparent 1px 13px),
    linear-gradient(145deg, rgba(228, 107, 124, 0.22), rgba(0, 0, 0, 0.9));
}

.wall-activity-visual.is-white {
  background:
    repeating-linear-gradient(135deg, rgba(244, 235, 214, 0.04) 0 1px, transparent 1px 13px),
    linear-gradient(145deg, rgba(244, 235, 214, 0.2), rgba(8, 9, 11, 0.92));
}

.wall-activity-visual span {
  display: inline-flex;
  border: 1px solid rgba(226, 187, 103, 0.3);
  border-radius: 999px;
  padding: 0.48rem 0.75rem;
  color: #fff8ea;
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.82rem;
  font-weight: 850;
}

.wall-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.wall-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid rgba(226, 187, 103, 0.2);
  border-radius: 999px;
  padding: 0.42rem 0.68rem;
  background: rgba(226, 187, 103, 0.07);
}

.wall-reactions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.wall-reactions button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  min-height: 2.7rem;
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-radius: 0.8rem;
  padding: 0.55rem 0.7rem;
  color: rgba(244, 235, 214, 0.78);
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.wall-reactions button:hover,
.wall-reactions button.is-selected {
  border-color: rgba(226, 187, 103, 0.36);
  background: rgba(226, 187, 103, 0.1);
  transform: translateY(-1px);
}

.wall-reactions button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wall-reactions button strong {
  color: #f2c96e;
  font-size: 0.9rem;
}

.wall-sidebar {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.wall-side-card {
  border-radius: 1rem;
  padding: 1rem;
}

.wall-side-card h2 {
  margin-bottom: 0.85rem;
  color: #fff8ea;
  font-size: 1.12rem;
}

.wall-side-list {
  display: grid;
  gap: 0.65rem;
}

.wall-side-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(244, 235, 214, 0.08);
  border-radius: 0.85rem;
  padding: 0.7rem;
  background: rgba(0, 0, 0, 0.18);
}

.wall-side-list article.wall-side-row-compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.wall-side-list .wall-avatar {
  width: 2.5rem;
  height: 2.5rem;
}

.wall-side-list small {
  color: #f2c96e;
  font-weight: 850;
}

.wall-objective-row {
  align-items: start;
}

.wall-objective-row > div {
  display: grid;
  gap: 0.48rem;
}

.wall-mini-progress {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 235, 214, 0.08);
}

.wall-mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b713f, #f0d28a);
}

@keyframes wallFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .wall-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wall-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .wall-hero {
    grid-template-columns: 1fr;
  }

  .wall-filter-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

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

@media (max-width: 620px) {
  .wall-sidebar,
  .wall-reactions {
    grid-template-columns: 1fr;
  }

  .wall-card-header,
  .wall-side-list article,
  .wall-side-list article.wall-side-row-compact {
    grid-template-columns: 1fr;
  }

  .wall-hero,
  .wall-activity-card,
  .wall-side-card {
    border-radius: 0.85rem;
  }

  .wall-activity-visual {
    min-height: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wall-hero,
  .wall-activity-card {
    animation: none;
  }
}

/* Communication module */
.communication-shell {
  display: grid;
  gap: 1.25rem;
  color: #f4ebd6;
}

.communication-hero,
.communication-panel,
.communication-sidebar {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 210, 138, 0.18);
  border-radius: 1.1rem;
  background:
    linear-gradient(135deg, rgba(240, 210, 138, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(24, 24, 24, 0.92), rgba(12, 12, 14, 0.96));
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.24);
}

.communication-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  padding: clamp(1.25rem, 3vw, 2.1rem);
}

.communication-hero::before {
  content: "";
  position: absolute;
  inset: -35% -20% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(240, 210, 138, 0.16), transparent 68%);
  pointer-events: none;
}

.communication-hero h1,
.communication-panel-title h2,
.communication-panel-header h2 {
  margin: 0;
  letter-spacing: 0;
}

.communication-hero p,
.communication-panel-title p,
.communication-note p,
.conversation-card span,
.notification-card p,
.realtime-card span,
.realtime-card small {
  color: rgba(244, 235, 214, 0.72);
}

.communication-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
  min-width: min(460px, 100%);
}

.communication-hero-stats article,
.communication-note,
.realtime-card {
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.communication-hero-stats strong {
  display: block;
  color: #f0d28a;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.communication-tabs,
.communication-filter-row,
.notification-actions,
.communication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.communication-tabs a,
.communication-filter-row a {
  border: 1px solid rgba(244, 235, 214, 0.12);
  border-radius: 999px;
  color: rgba(244, 235, 214, 0.78);
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.communication-tabs a:hover,
.communication-filter-row a:hover,
.communication-tabs a.is-active,
.communication-filter-row a.is-active {
  border-color: rgba(240, 210, 138, 0.58);
  background: rgba(240, 210, 138, 0.1);
  color: #f4ebd6;
}

.communication-section,
.communication-toolbar,
.communication-filter-stack,
.conversation-list,
.message-list,
.communication-backstage-signals,
.notification-list {
  display: grid;
  gap: 1rem;
}

.communication-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.communication-search input,
.communication-compose textarea {
  width: 100%;
  border: 1px solid rgba(244, 235, 214, 0.14);
  border-radius: 0.85rem;
  background: rgba(4, 5, 7, 0.62);
  color: #f4ebd6;
  padding: 0.85rem 1rem;
}

.communication-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.communication-sidebar,
.communication-panel {
  padding: 1rem;
}

.communication-panel-header,
.communication-panel-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.conversation-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-left: 3px solid rgba(240, 210, 138, 0.65);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.9rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.conversation-card:hover,
.conversation-card.is-selected {
  border-color: rgba(240, 210, 138, 0.42);
  background: rgba(240, 210, 138, 0.07);
  transform: translateY(-1px);
}

.conversation-card a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.conversation-card strong,
.notification-card h3,
.realtime-card strong {
  overflow-wrap: anywhere;
}

.conversation-card-meta,
.conversation-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.communication-counter {
  display: inline-grid;
  min-width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 999px;
  background: #f0d28a;
  color: #101010;
  font-weight: 800;
}

.message-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 0.2rem;
}

.message-bubble {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.035);
}

.message-bubble.is-system {
  border-color: rgba(240, 210, 138, 0.24);
  background: rgba(240, 210, 138, 0.07);
}

.message-bubble-avatar {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0d28a, #6f5a32);
  color: #111;
  font-weight: 900;
  font-size: 0.72rem;
}

.message-bubble header,
.notification-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.message-bubble p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

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

.communication-compose button {
  justify-self: end;
}

.notification-panel {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.notification-card.is-unread {
  border-color: rgba(240, 210, 138, 0.34);
  background: rgba(240, 210, 138, 0.07);
}

.notification-dot {
  width: 0.72rem;
  height: 0.72rem;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: rgba(244, 235, 214, 0.2);
}

.notification-card.is-unread .notification-dot {
  background: #f0d28a;
  box-shadow: 0 0 18px rgba(240, 210, 138, 0.45);
}

.realtime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.realtime-card {
  display: grid;
  gap: 0.45rem;
}

.communication-note {
  margin-top: 1rem;
}

@media (max-width: 1120px) {
  .communication-hero,
  .communication-grid {
    grid-template-columns: 1fr;
  }

  .communication-hero-stats {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .communication-search,
  .communication-hero-stats,
  .realtime-grid {
    grid-template-columns: 1fr;
  }

  .communication-panel-header,
  .communication-panel-title,
  .conversation-card a,
  .conversation-card-meta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .communication-tabs,
  .communication-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .message-bubble,
  .notification-card {
    grid-template-columns: 1fr;
  }

  .communication-compose button,
  .notification-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .conversation-card {
    transition: none;
  }
}

/* Alpha Command Center */
.alpha-command-shell {
  display: grid;
  gap: 1.25rem;
  color: #f4ebd6;
}

.alpha-hero,
.alpha-card,
.alpha-stat-card,
.alpha-source-health {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 210, 138, 0.16);
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(240, 210, 138, 0.12), transparent 26rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(10, 12, 14, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.alpha-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 1.5rem;
  align-items: end;
  padding: clamp(1.35rem, 3vw, 2.35rem);
}

.alpha-hero h1 {
  max-width: 15ch;
  margin: 0 0 0.8rem;
  color: #fff8ea;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.alpha-hero p,
.alpha-card small,
.alpha-card span,
.alpha-hero-card span,
.alpha-hero-card small,
.alpha-empty span {
  color: rgba(244, 235, 214, 0.66);
}

.alpha-hero-card {
  display: grid;
  gap: 0.35rem;
  border: 1px solid rgba(240, 210, 138, 0.18);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.22);
}

.alpha-hero-card strong {
  color: #f0d28a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.alpha-grid {
  display: grid;
  gap: 1rem;
}

.alpha-grid-general {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.alpha-stat-card {
  display: grid;
  min-height: 140px;
  align-content: end;
  gap: 0.35rem;
  padding: 1rem;
}

.alpha-stat-card strong {
  color: #f4ebd6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.alpha-stat-card.alpha-tone-alert {
  border-color: rgba(240, 210, 138, 0.28);
}

.alpha-stat-card.alpha-tone-critical {
  border-color: rgba(255, 132, 96, 0.34);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 132, 96, 0.12), transparent 21rem),
    rgba(10, 12, 14, 0.92);
}

.alpha-command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 1rem;
  align-items: start;
}

.alpha-command-main,
.alpha-command-side {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.alpha-command-side {
  position: sticky;
  top: 1rem;
}

.alpha-card {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.alpha-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.alpha-card-header h2 {
  margin: 0;
  color: #fff8ea;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.alpha-activity-list,
.alpha-objective-list,
.alpha-stat-list,
.alpha-calendar,
.alpha-alert-list,
.alpha-system-grid {
  display: grid;
  gap: 0.75rem;
}

.alpha-activity-item,
.alpha-objective,
.alpha-stat-list article,
.alpha-calendar article,
.alpha-alert-item,
.alpha-rank-row,
.alpha-system-grid article,
.alpha-empty {
  border: 1px solid rgba(244, 235, 214, 0.09);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  padding: 0.85rem 0.95rem;
}

.alpha-activity-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.alpha-activity-item:hover,
.alpha-alert-item:hover {
  border-color: rgba(240, 210, 138, 0.32);
  background: rgba(240, 210, 138, 0.07);
  transform: translateY(-1px);
}

.alpha-activity-item strong,
.alpha-alert-item strong,
.alpha-rank-row span,
.alpha-system-grid strong,
.alpha-objective strong,
.alpha-calendar strong {
  color: #fff8ea;
  overflow-wrap: anywhere;
}

.alpha-activity-item small {
  grid-column: 2 / 3;
}

.alpha-activity-item time {
  color: #f0d28a;
  font-size: 0.82rem;
  font-weight: 800;
}

.alpha-objective {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.alpha-objective .alpha-progress {
  grid-column: 1 / -1;
}

.alpha-objective b {
  color: #f0d28a;
}

.alpha-progress {
  height: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 235, 214, 0.09);
}

.alpha-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7b6438, #f0d28a);
}

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

.alpha-stat-list article,
.alpha-system-grid article {
  display: grid;
  gap: 0.25rem;
}

.alpha-stat-list strong {
  color: #f0d28a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.alpha-calendar article {
  display: grid;
  grid-template-columns: 4.3rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.alpha-calendar time {
  color: #f0d28a;
  font-weight: 900;
}

.alpha-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.alpha-action-button {
  min-height: 3.3rem;
  width: 100%;
  text-align: center;
}

.alpha-alert-item {
  display: grid;
  gap: 0.25rem;
  color: inherit;
  text-decoration: none;
  border-left: 3px solid rgba(240, 210, 138, 0.55);
}

.alpha-alert-item.is-haute {
  border-left-color: rgba(255, 132, 96, 0.85);
}

.alpha-rank-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.alpha-rank-columns h3 {
  margin: 0 0 0.75rem;
  color: #f0d28a;
  font-size: 1rem;
}

.alpha-rank-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.alpha-rank-row b {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(240, 210, 138, 0.12);
  color: #f0d28a;
}

.alpha-source-health {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem;
}

.alpha-source-health span {
  border: 1px solid rgba(244, 235, 214, 0.1);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  color: rgba(244, 235, 214, 0.7);
  font-size: 0.78rem;
}

.alpha-source-health span.is-ok {
  border-color: rgba(110, 231, 183, 0.22);
}

.alpha-source-health span.is-fallback {
  border-color: rgba(240, 210, 138, 0.3);
  color: #f0d28a;
}

@media (max-width: 1200px) {
  .alpha-grid-general,
  .alpha-command-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alpha-command-side {
    position: static;
  }
}

@media (max-width: 860px) {
  .alpha-hero,
  .alpha-grid-general,
  .alpha-command-layout,
  .alpha-rank-columns,
  .alpha-stat-list,
  .alpha-system-grid {
    grid-template-columns: 1fr;
  }

  .alpha-activity-item {
    grid-template-columns: 1fr;
  }

  .alpha-activity-item small {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .alpha-action-grid,
  .alpha-calendar article,
  .alpha-rank-row {
    grid-template-columns: 1fr;
  }

  .alpha-card-header {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alpha-activity-item,
  .alpha-alert-item {
    transition: none;
  }
}

/* The Pack Of Souls platform harmonization layer */
:root {
  --pack-black: #050607;
  --pack-night: #090b0d;
  --pack-anthracite: #111316;
  --pack-panel: rgba(14, 15, 16, 0.82);
  --pack-panel-strong: rgba(20, 18, 14, 0.92);
  --pack-panel-soft: rgba(255, 255, 255, 0.035);
  --pack-border: rgba(231, 184, 91, 0.22);
  --pack-border-soft: rgba(245, 237, 219, 0.1);
  --pack-gold: #e8b957;
  --pack-gold-strong: #f5c86a;
  --pack-gold-soft: rgba(232, 185, 87, 0.14);
  --pack-cream: #f8f1e3;
  --pack-muted: rgba(248, 241, 227, 0.68);
  --pack-danger: #ff8c75;
  --pack-success: #94e0b9;
  --pack-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --pack-glow: 0 0 34px rgba(232, 185, 87, 0.12);
  --pack-radius: 8px;
  --pack-display: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --pack-body: Inter, "Segoe UI", Arial, sans-serif;
}

html {
  background: var(--pack-black);
}

body {
  color: var(--pack-cream);
  background:
    linear-gradient(145deg, rgba(3, 4, 5, 0.98), rgba(15, 15, 13, 0.97) 46%, rgba(5, 6, 7, 0.99)),
    var(--pack-black);
}

.app-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  color: var(--pack-cream);
  background:
    linear-gradient(115deg, rgba(7, 8, 10, 0.98), rgba(16, 14, 10, 0.94) 42%, rgba(5, 7, 9, 0.99)),
    repeating-linear-gradient(125deg, rgba(232, 185, 87, 0.035) 0 1px, transparent 1px 56px);
  overflow-x: hidden;
}

.app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(232, 185, 87, 0.12), transparent 24rem),
    linear-gradient(90deg, rgba(232, 185, 87, 0.09), transparent 26%, transparent 72%, rgba(255, 255, 255, 0.04)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 42%, rgba(0, 0, 0, 0.7));
  opacity: 0.85;
}

.app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(232, 185, 87, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 185, 87, 0.035) 1px, transparent 1px);
  background-size: 160px 160px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.18;
}

.workspace {
  min-width: 0;
  background: transparent;
}

.workspace-content {
  position: relative;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 2rem;
}

.workspace-content > * {
  min-width: 0;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(12, 13, 15, 0.98), rgba(9, 10, 11, 0.94)),
    repeating-linear-gradient(135deg, rgba(232, 185, 87, 0.04) 0 1px, transparent 1px 34px);
  border-right: 1px solid rgba(232, 185, 87, 0.22);
  box-shadow: 18px 0 58px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.sidebar-brand {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.65rem 1rem;
  color: var(--pack-cream);
  text-decoration: none;
}

.sidebar-brand img {
  grid-row: 1 / 3;
  width: 4.2rem;
  height: 4.2rem;
  object-fit: contain;
  border: 1px solid rgba(232, 185, 87, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 28px rgba(232, 185, 87, 0.14);
}

.sidebar-brand span {
  grid-column: 2;
  display: block;
  font-family: var(--pack-display);
  color: var(--pack-cream);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  overflow-wrap: normal;
}

.sidebar-brand small {
  grid-column: 2;
  display: block;
  margin-top: 0.28rem;
  color: var(--pack-gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.sidebar-oath {
  margin: 0.4rem 0 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(232, 185, 87, 0.18);
  border-radius: var(--pack-radius);
  background: linear-gradient(135deg, rgba(232, 185, 87, 0.1), rgba(255, 255, 255, 0.035));
  color: var(--pack-muted);
}

.sidebar-oath span,
.topbar-rune,
.eyebrow,
.pack-kicker,
.form-kicker span {
  color: var(--pack-gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sidebar-oath strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--pack-cream);
  font-size: 0.92rem;
  line-height: 1.35;
}

.sidebar nav {
  gap: 0.32rem;
  padding-right: 0.15rem;
}

.sidebar nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.62rem 0.72rem 0.62rem 1.95rem;
  border: 1px solid transparent;
  border-radius: var(--pack-radius);
  color: rgba(248, 241, 227, 0.75);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.sidebar nav a::before {
  content: "";
  position: absolute;
  left: 0.72rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid rgba(232, 185, 87, 0.48);
  border-radius: 999px;
  background: rgba(232, 185, 87, 0.1);
  box-shadow: 0 0 0 rgba(232, 185, 87, 0);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.sidebar nav a:hover,
.sidebar nav a:focus-visible,
.sidebar nav a.is-active {
  color: var(--pack-cream);
  border-color: rgba(232, 185, 87, 0.28);
  background: linear-gradient(90deg, rgba(232, 185, 87, 0.16), rgba(255, 255, 255, 0.035));
  transform: translateX(2px);
}

.sidebar nav a.is-active::before {
  background: var(--pack-gold);
  box-shadow: 0 0 18px rgba(232, 185, 87, 0.5);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 5rem;
  padding: 0.9rem 1.35rem;
  border-bottom: 1px solid rgba(232, 185, 87, 0.18);
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.95), rgba(16, 13, 9, 0.86), rgba(7, 8, 10, 0.94));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.topbar strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--pack-cream);
  font-family: var(--pack-display);
  font-size: 1.08rem;
}

.topbar span:not(.topbar-rune):not(.badge) {
  color: var(--pack-muted);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.workspace-heading,
.admin-hero,
.profile-hero,
.leaderboard-heading,
.champions-heading,
.community-heading,
.pack-dashboard-header,
.alpha-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 185, 87, 0.18);
  border-radius: var(--pack-radius);
  background:
    linear-gradient(120deg, rgba(232, 185, 87, 0.16), rgba(255, 255, 255, 0.04) 34%, rgba(10, 12, 14, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 30px);
  box-shadow: var(--pack-shadow), var(--pack-glow);
}

.workspace-heading::after,
.admin-hero::after,
.profile-hero::after,
.leaderboard-heading::after,
.champions-heading::after,
.community-heading::after,
.pack-dashboard-header::after,
.alpha-hero::after {
  content: "";
  position: absolute;
  inset: auto 1.4rem 0 1.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 185, 87, 0.55), transparent);
  pointer-events: none;
}

.workspace-heading h1,
.admin-hero h1,
.profile-hero h1,
.leaderboard-heading h1,
.champions-heading h1,
.community-heading h1,
.pack-dashboard-header h1,
.alpha-hero h1 {
  color: var(--pack-cream);
  font-family: var(--pack-display);
  font-size: 2.8rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.workspace-heading p,
.admin-hero p,
.profile-hero p,
.leaderboard-heading p,
.champions-heading p,
.community-heading p,
.pack-dashboard-header p,
.alpha-hero p {
  color: var(--pack-muted);
}

.panel,
.nested-panel,
.form-panel,
.table-panel,
.team-panel,
.chat-panel,
.command-panel,
.settings-panel,
.admin-create-panel,
.admin-filter-panel,
.admin-request-alert,
.coin-command-panel,
.coin-management-panel,
.coin-history-panel,
.profile-sheet,
.referral-panel,
.journey-section,
.tiktok-panel,
.avatar-panel,
.pack-dashboard-card,
.pack-backstage-panel,
.defi-card,
.defi-proof-panel,
.defi-history-panel,
.progression-panel,
.progression-history-panel,
.wall-post,
.wall-sidebar > *,
.communication-panel,
.communication-sidebar,
.notification-panel,
.alpha-card,
.alpha-stat-card,
.alpha-empty,
.tournament-card,
.tournament-admin-card,
.filleul-card,
.support-block,
.faq-item,
.legal-block,
.application-note,
.contact-intro,
.social-grid article,
.pack-feature-card,
.pack-stats-bar,
.auth-panels .form-panel {
  border: 1px solid rgba(232, 185, 87, 0.16);
  border-radius: var(--pack-radius);
  background:
    linear-gradient(145deg, rgba(18, 18, 17, 0.88), rgba(9, 10, 12, 0.86)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 34px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  color: var(--pack-cream);
}

.panel:hover,
.table-panel:hover,
.form-panel:hover,
.pack-dashboard-card:hover,
.alpha-card:hover,
.defi-card:hover,
.wall-post:hover,
.communication-panel:hover,
.team-panel:hover,
.tournament-card:hover {
  border-color: rgba(232, 185, 87, 0.28);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.34), 0 0 30px rgba(232, 185, 87, 0.08);
}

.panel h2,
.panel h3,
.form-panel h2,
.form-panel h3,
.table-panel h2,
.table-panel h3,
.pack-dashboard-card h2,
.alpha-card h2,
.communication-panel h2,
.defi-card h2,
.progression-panel h2,
.wall-post strong,
.support-block h2,
.legal-block h2 {
  color: var(--pack-cream);
  font-family: var(--pack-display);
  letter-spacing: 0;
}

.panel p,
.panel span,
.panel small,
.form-panel p,
.form-panel small,
.table-panel p,
.table-panel small,
.pack-dashboard-card p,
.alpha-card p,
.communication-panel p,
.defi-card p,
.progression-panel p {
  color: var(--pack-muted);
}

.panel-heading-row,
.table-section-head,
.chat-panel-head,
.team-panel-head,
.communication-panel-header,
.communication-panel-title,
.alpha-card-header {
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid rgba(232, 185, 87, 0.12);
  padding-bottom: 0.85rem;
}

.button,
button,
input[type="submit"] {
  border-radius: var(--pack-radius);
  font-family: var(--pack-body);
  font-weight: 900;
  letter-spacing: 0;
}

.button-primary,
button.button-primary,
.alpha-action-button {
  border-color: rgba(255, 218, 136, 0.65);
  background: linear-gradient(135deg, #f6d178, #c98525);
  color: #090806;
  box-shadow: 0 14px 34px rgba(232, 185, 87, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible,
.alpha-action-button:hover,
.alpha-action-button:focus-visible {
  border-color: rgba(255, 238, 194, 0.8);
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.button-secondary,
.button-ghost,
.mini-button,
.inline-button,
.copy-link-button,
.tiktok-login-button {
  border: 1px solid rgba(232, 185, 87, 0.24);
  background: rgba(255, 255, 255, 0.045);
  color: var(--pack-cream);
}

.button-secondary:hover,
.button-ghost:hover,
.mini-button:hover,
.inline-button:hover,
.copy-link-button:hover,
.tiktok-login-button:hover,
.button-secondary:focus-visible,
.button-ghost:focus-visible,
.mini-button:focus-visible,
.inline-button:focus-visible,
.copy-link-button:focus-visible,
.tiktok-login-button:focus-visible {
  border-color: rgba(232, 185, 87, 0.46);
  background: rgba(232, 185, 87, 0.1);
  color: var(--pack-cream);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(232, 185, 87, 0.85);
  outline-offset: 3px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(232, 185, 87, 0.2);
  border-radius: var(--pack-radius);
  background: rgba(2, 3, 4, 0.55);
  color: var(--pack-cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

input::placeholder,
textarea::placeholder {
  color: rgba(248, 241, 227, 0.45);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(232, 185, 87, 0.58);
  background: rgba(7, 8, 10, 0.8);
  box-shadow: 0 0 0 3px rgba(232, 185, 87, 0.1);
}

label > span,
.form-grid span,
.admin-inline-form span,
.admin-note-field span,
.checkbox-row span {
  color: rgba(248, 241, 227, 0.78);
  font-weight: 800;
}

.checkbox-row {
  border: 1px solid rgba(232, 185, 87, 0.14);
  border-radius: var(--pack-radius);
  background: rgba(255, 255, 255, 0.035);
}

.badge {
  border: 1px solid rgba(232, 185, 87, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(248, 241, 227, 0.82);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-gold {
  border-color: rgba(232, 185, 87, 0.58);
  background: rgba(232, 185, 87, 0.16);
  color: var(--pack-gold-strong);
}

.badge-ice {
  border-color: rgba(248, 241, 227, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--pack-cream);
}

.badge-danger {
  border-color: rgba(255, 140, 117, 0.5);
  background: rgba(255, 140, 117, 0.12);
  color: var(--pack-danger);
}

.modern-table,
.table-panel,
.admin-mini-table {
  overflow: hidden;
}

.modern-table table,
.admin-mini-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.modern-table th,
.admin-mini-table th {
  color: var(--pack-gold);
  background: rgba(232, 185, 87, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modern-table td,
.admin-mini-table td {
  color: rgba(248, 241, 227, 0.8);
  border-top: 1px solid rgba(232, 185, 87, 0.09);
}

.modern-table tr:hover td,
.admin-mini-table tr:hover td {
  background: rgba(232, 185, 87, 0.055);
}

.reward-row,
.goal-row,
.pack-mini-row,
.champion-row,
.alpha-activity-item,
.alpha-objective,
.alpha-alert-item,
.alpha-rank-row,
.mini-clan-card,
.settings-pill,
.coin-ledger-row,
.request-row,
.filleul-card,
.admin-search-results a {
  border: 1px solid rgba(232, 185, 87, 0.13);
  border-radius: var(--pack-radius);
  background: rgba(255, 255, 255, 0.035);
}

.reward-row:hover,
.goal-row:hover,
.pack-mini-row:hover,
.champion-row:hover,
.mini-clan-card:hover,
.settings-pill:hover,
.coin-ledger-row:hover,
.request-row:hover,
.admin-search-results a:hover {
  border-color: rgba(232, 185, 87, 0.28);
  background: rgba(232, 185, 87, 0.065);
}

.empty-state {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 1px dashed rgba(232, 185, 87, 0.3);
  border-radius: var(--pack-radius);
  background: rgba(232, 185, 87, 0.055);
  color: var(--pack-muted);
}

.empty-state strong {
  color: var(--pack-cream);
  font-family: var(--pack-display);
}

.help-callout,
.info-hint-panel,
.referral-note,
.application-steps,
.tiktok-connected-card,
.auth-result-hero {
  border-color: rgba(232, 185, 87, 0.2);
  border-radius: var(--pack-radius);
  background:
    linear-gradient(145deg, rgba(232, 185, 87, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(8, 9, 10, 0.88);
  color: var(--pack-cream);
  box-shadow: var(--pack-glow);
}

.auth-page,
.page-hero,
.section,
.timeline,
.support-doc,
.legal-doc,
.contact-layout,
.application-layout {
  position: relative;
  color: var(--pack-cream);
}

.page-hero,
.auth-page {
  background:
    linear-gradient(125deg, rgba(232, 185, 87, 0.16), rgba(255, 255, 255, 0.035) 38%, rgba(4, 5, 6, 0.9)),
    repeating-linear-gradient(135deg, rgba(232, 185, 87, 0.04) 0 1px, transparent 1px 42px);
  border-bottom: 1px solid rgba(232, 185, 87, 0.18);
}

.page-hero h1,
.auth-visual h1,
.page-hero h2 {
  color: var(--pack-cream);
  font-family: var(--pack-display);
  letter-spacing: 0;
}

.page-hero p,
.auth-visual p,
.section p,
.legal-doc p,
.support-doc p {
  color: var(--pack-muted);
}

.pack-dashboard,
.defi-shell,
.progression-shell,
.wall-shell,
.communication-shell,
.alpha-command-shell {
  color: var(--pack-cream);
}

.pack-dashboard-card,
.alpha-stat-card,
.progression-stat-card,
.defi-stat-card,
.wall-side-card {
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pack-dashboard-card:hover,
.alpha-stat-card:hover,
.progression-stat-card:hover,
.defi-stat-card:hover,
.wall-side-card:hover {
  transform: translateY(-2px);
}

.pack-dashboard-stat strong,
.alpha-stat-card strong,
.progression-stat-card strong,
.stat-card strong,
.mini-stat strong {
  color: var(--pack-gold-strong);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.pack-dashboard-progress,
.alpha-progress,
.progression-bar,
.defi-progress,
.profile-progress,
.level-progress {
  overflow: hidden;
  border: 1px solid rgba(232, 185, 87, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.pack-dashboard-progress span,
.alpha-progress span,
.progression-bar span,
.defi-progress span,
.profile-progress span,
.level-progress span {
  background: linear-gradient(90deg, #7b5b21, #f5c86a, #fff1be);
  box-shadow: 0 0 24px rgba(232, 185, 87, 0.22);
}

.admin-global-search input {
  min-width: 15rem;
}

.admin-search-results {
  border: 1px solid rgba(232, 185, 87, 0.24);
  border-radius: var(--pack-radius);
  background: rgba(7, 8, 10, 0.96);
  box-shadow: var(--pack-shadow);
}

.wall-reaction,
.reaction-button,
.filter-pill,
.tab-button,
.admin-filter-panel button,
.pagination button {
  border: 1px solid rgba(232, 185, 87, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--pack-cream);
}

.wall-reaction:hover,
.reaction-button:hover,
.filter-pill:hover,
.tab-button:hover,
.filter-pill.is-active,
.tab-button.is-active {
  border-color: rgba(232, 185, 87, 0.46);
  background: rgba(232, 185, 87, 0.13);
  color: var(--pack-gold-strong);
}

dialog,
.modal,
.drawer,
.toast {
  border: 1px solid rgba(232, 185, 87, 0.24);
  border-radius: var(--pack-radius);
  background: rgba(9, 10, 11, 0.96);
  color: var(--pack-cream);
  box-shadow: var(--pack-shadow);
}

.loader,
.skeleton,
[aria-busy="true"] {
  border-radius: var(--pack-radius);
}

.skeleton,
.loading-card {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(232, 185, 87, 0.1), rgba(255, 255, 255, 0.04));
  background-size: 220% 100%;
  animation: pack-sheen 1.8s ease-in-out infinite;
}

@keyframes pack-sheen {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@media (max-width: 1180px) {
  .workspace-content {
    padding: 1.5rem;
  }

  .workspace-heading h1,
  .admin-hero h1,
  .profile-hero h1,
  .leaderboard-heading h1,
  .champions-heading h1,
  .community-heading h1,
  .pack-dashboard-header h1,
  .alpha-hero h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 920px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(232, 185, 87, 0.2);
  }

  .sidebar-brand {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    padding: 0.65rem 0.85rem;
  }

  .sidebar-brand img {
    width: 3.2rem;
    height: 3.2rem;
  }

  .sidebar-oath {
    display: none;
  }

  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 46vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 0.85rem 0.85rem;
    scrollbar-width: thin;
  }

  .sidebar nav a {
    min-height: 2.35rem;
    white-space: normal;
  }

  .topbar {
    position: relative;
    align-items: flex-start;
  }

  .topbar-actions,
  .admin-global-search,
  .admin-global-search input {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .workspace-content {
    padding: 1rem;
  }

  .workspace-heading,
  .admin-hero,
  .profile-hero,
  .leaderboard-heading,
  .champions-heading,
  .community-heading,
  .pack-dashboard-header,
  .alpha-hero,
  .panel,
  .form-panel,
  .table-panel {
    padding: 1rem;
  }

  .workspace-heading h1,
  .admin-hero h1,
  .profile-hero h1,
  .leaderboard-heading h1,
  .champions-heading h1,
  .community-heading h1,
  .pack-dashboard-header h1,
  .alpha-hero h1 {
    font-size: 1.85rem;
  }

  .topbar,
  .panel-heading-row,
  .table-section-head,
  .chat-panel-head,
  .team-panel-head,
  .communication-panel-header,
  .communication-panel-title,
  .alpha-card-header {
    flex-direction: column;
  }

  .topbar-actions .badge {
    width: 100%;
    justify-content: center;
  }

  .button,
  button,
  .button-primary,
  .button-secondary,
  .button-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .sidebar nav {
    grid-template-columns: 1fr;
  }

  .modern-table,
  .table-panel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modern-table table,
  .admin-mini-table table {
    min-width: 42rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* The Pack Of Souls scenic backgrounds */
.pack-scene {
  --scene-moon-x: 72%;
  --scene-moon-y: 15%;
  --scene-moon-size: 17rem;
  --scene-gold-x: 30%;
  --scene-gold-y: 16%;
  --scene-gold-strength: 0.18;
  --scene-fog-strength: 0.18;
  --scene-tree-strength: 0.28;
  --scene-peak-strength: 0.58;
  --scene-snow-strength: 0;
  --scene-ember-strength: 0.08;
  --scene-glass: rgba(7, 8, 9, 0.72);
  --scene-vignette: rgba(0, 0, 0, 0.78);
}

.app-shell.pack-scene,
.public-main.pack-scene:not(.pack-scene-home) {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(4, 5, 6, 0.96), rgba(16, 16, 15, 0.92) 46%, rgba(4, 5, 6, 0.98)),
    #050607;
}

.app-shell.pack-scene > *,
.public-main.pack-scene:not(.pack-scene-home) > * {
  position: relative;
  z-index: 2;
}

.app-shell.pack-scene::before,
.public-main.pack-scene:not(.pack-scene-home)::before {
  content: "";
  position: fixed;
  inset: -2rem;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--scene-moon-x) var(--scene-moon-y), rgba(255, 248, 227, 0.76) 0 2.2rem, rgba(232, 222, 196, 0.32) 5.3rem, rgba(255, 255, 255, 0.08) var(--scene-moon-size), transparent calc(var(--scene-moon-size) + 2rem)),
    radial-gradient(ellipse at var(--scene-gold-x) var(--scene-gold-y), rgba(232, 185, 87, var(--scene-gold-strength)), transparent 34rem),
    radial-gradient(ellipse at 34% 70%, rgba(248, 241, 227, var(--scene-fog-strength)), transparent 28rem),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 9%, rgba(255, 255, 255, 0.36) 0 1px, transparent 2px),
    radial-gradient(circle at 83% 27%, rgba(232, 185, 87, 0.48) 0 1px, transparent 2px),
    linear-gradient(132deg, transparent 0 53%, rgba(20, 24, 28, calc(var(--scene-peak-strength) * 0.72)) 54% 100%),
    linear-gradient(47deg, transparent 0 57%, rgba(7, 9, 12, var(--scene-peak-strength)) 58% 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.2) 42%, rgba(0, 0, 0, 0.82));
  background-size:
    auto,
    auto,
    auto,
    17rem 17rem,
    23rem 23rem,
    19rem 19rem,
    100% 100%,
    100% 100%,
    100% 100%;
  filter: blur(1.2px) saturate(1.05);
  transform: scale(1.015);
  opacity: 0.92;
}

.app-shell.pack-scene::after,
.public-main.pack-scene:not(.pack-scene-home)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.16) 30%, var(--scene-vignette)),
    radial-gradient(ellipse at 50% 88%, rgba(0, 0, 0, 0.86), transparent 38rem),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(0, 0, 0, var(--scene-tree-strength)) 35px 38px, transparent 39px 74px),
    radial-gradient(circle at 12% 82%, rgba(255, 112, 48, var(--scene-ember-strength)) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 68%, rgba(232, 185, 87, calc(var(--scene-ember-strength) * 1.5)) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 72%, rgba(255, 112, 48, var(--scene-ember-strength)) 0 2px, transparent 3px);
  background-size:
    auto,
    auto,
    auto,
    18rem 18rem,
    24rem 24rem,
    22rem 22rem;
  backdrop-filter: blur(0.2px);
  opacity: 0.9;
}

.public-main.pack-scene:not(.pack-scene-home) {
  min-height: 72vh;
}

.public-main.pack-scene:not(.pack-scene-home)::before,
.public-main.pack-scene:not(.pack-scene-home)::after {
  position: absolute;
}

.pack-scene-forest,
.pack-scene-dashboard {
  --scene-moon-x: 77%;
  --scene-moon-y: 13%;
  --scene-gold-x: 31%;
  --scene-gold-y: 22%;
  --scene-gold-strength: 0.2;
  --scene-tree-strength: 0.38;
  --scene-fog-strength: 0.22;
}

.pack-scene-alpha {
  --scene-moon-x: 52%;
  --scene-moon-y: 8%;
  --scene-moon-size: 19rem;
  --scene-gold-x: 50%;
  --scene-gold-y: 15%;
  --scene-gold-strength: 0.28;
  --scene-tree-strength: 0.12;
  --scene-peak-strength: 0.82;
}

.pack-scene-admin {
  --scene-moon-x: 84%;
  --scene-moon-y: 18%;
  --scene-gold-x: 18%;
  --scene-gold-y: 36%;
  --scene-gold-strength: 0.16;
  --scene-tree-strength: 0.16;
  --scene-peak-strength: 0.42;
}

.pack-scene-clans {
  --scene-moon-x: 58%;
  --scene-moon-y: 12%;
  --scene-gold-x: 44%;
  --scene-gold-y: 28%;
  --scene-gold-strength: 0.22;
  --scene-tree-strength: 0.26;
  --scene-peak-strength: 0.78;
}

.pack-scene-defis {
  --scene-moon-x: 68%;
  --scene-moon-y: 10%;
  --scene-gold-x: 20%;
  --scene-gold-y: 28%;
  --scene-gold-strength: 0.15;
  --scene-tree-strength: 0.18;
  --scene-peak-strength: 0.72;
  --scene-snow-strength: 0.2;
}

.pack-scene-summit {
  --scene-moon-x: 62%;
  --scene-moon-y: 8%;
  --scene-moon-size: 18rem;
  --scene-gold-x: 50%;
  --scene-gold-y: 22%;
  --scene-gold-strength: 0.32;
  --scene-tree-strength: 0.14;
  --scene-peak-strength: 0.86;
}

.pack-scene-rewards {
  --scene-moon-x: 82%;
  --scene-moon-y: 14%;
  --scene-gold-x: 72%;
  --scene-gold-y: 64%;
  --scene-gold-strength: 0.34;
  --scene-tree-strength: 0.1;
  --scene-ember-strength: 0.18;
}

.pack-scene-message {
  --scene-moon-x: 70%;
  --scene-moon-y: 13%;
  --scene-gold-x: 18%;
  --scene-gold-y: 72%;
  --scene-gold-strength: 0.12;
  --scene-tree-strength: 0.42;
  --scene-fog-strength: 0.26;
  --scene-ember-strength: 0.13;
}

.pack-scene-profile {
  --scene-moon-x: 64%;
  --scene-moon-y: 10%;
  --scene-moon-size: 20rem;
  --scene-gold-x: 46%;
  --scene-gold-y: 58%;
  --scene-gold-strength: 0.2;
  --scene-tree-strength: 0.24;
  --scene-fog-strength: 0.24;
}

.pack-scene-backstage {
  --scene-moon-x: 86%;
  --scene-moon-y: 9%;
  --scene-gold-x: 24%;
  --scene-gold-y: 28%;
  --scene-gold-strength: 0.22;
  --scene-tree-strength: 0.08;
  --scene-peak-strength: 0.36;
}

.pack-scene-public {
  --scene-moon-x: 76%;
  --scene-moon-y: 12%;
  --scene-gold-x: 34%;
  --scene-gold-y: 24%;
  --scene-gold-strength: 0.2;
  --scene-tree-strength: 0.3;
  --scene-fog-strength: 0.24;
}

.pack-scene-defis::before {
  background:
    radial-gradient(circle at var(--scene-moon-x) var(--scene-moon-y), rgba(255, 248, 227, 0.78) 0 2.2rem, rgba(232, 222, 196, 0.32) 5.3rem, rgba(255, 255, 255, 0.08) var(--scene-moon-size), transparent calc(var(--scene-moon-size) + 2rem)),
    radial-gradient(ellipse at 22% 30%, rgba(248, 241, 227, 0.12), transparent 24rem),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 9%, rgba(255, 255, 255, 0.42) 0 1px, transparent 2px),
    repeating-radial-gradient(circle at 50% 15%, rgba(255, 255, 255, var(--scene-snow-strength)) 0 1px, transparent 2px 40px),
    linear-gradient(132deg, transparent 0 53%, rgba(21, 26, 30, calc(var(--scene-peak-strength) * 0.75)) 54% 100%),
    linear-gradient(47deg, transparent 0 56%, rgba(8, 10, 12, var(--scene-peak-strength)) 57% 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.86));
}

.pack-scene-admin::after,
.pack-scene-backstage::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.16) 30%, rgba(0, 0, 0, 0.84)),
    repeating-linear-gradient(90deg, transparent 0 13%, rgba(232, 185, 87, 0.08) 13.15% 13.35%, transparent 13.5% 24%),
    repeating-linear-gradient(0deg, transparent 0 4.4rem, rgba(232, 185, 87, 0.055) 4.45rem 4.5rem, transparent 4.55rem 8.9rem),
    radial-gradient(ellipse at 50% 88%, rgba(0, 0, 0, 0.9), transparent 38rem);
}

.pack-scene-backstage::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.2) 34%, rgba(0, 0, 0, 0.86)),
    repeating-linear-gradient(12deg, transparent 0 2.7rem, rgba(232, 185, 87, 0.07) 2.75rem 2.85rem, transparent 2.9rem 5.6rem),
    repeating-linear-gradient(90deg, transparent 0 5rem, rgba(248, 241, 227, 0.045) 5.05rem 5.1rem, transparent 5.15rem 10rem),
    radial-gradient(ellipse at 24% 74%, rgba(232, 185, 87, 0.16), transparent 26rem);
}

.pack-scene-rewards::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12) 28%, rgba(0, 0, 0, 0.86)),
    radial-gradient(ellipse at 70% 72%, rgba(232, 185, 87, 0.28), transparent 18rem),
    radial-gradient(circle at 68% 70%, rgba(255, 231, 154, 0.18) 0 1.8rem, transparent 1.9rem),
    linear-gradient(90deg, transparent 0 60%, rgba(137, 89, 30, 0.16) 61% 72%, transparent 73%),
    radial-gradient(circle at 12% 82%, rgba(255, 112, 48, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 84% 72%, rgba(232, 185, 87, 0.2) 0 2px, transparent 3px);
}

.pack-scene-clans::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.14) 30%, rgba(0, 0, 0, 0.84)),
    radial-gradient(ellipse at 18% 76%, rgba(232, 185, 87, 0.16), transparent 22rem),
    radial-gradient(ellipse at 50% 84%, rgba(248, 241, 227, 0.09), transparent 28rem),
    radial-gradient(ellipse at 82% 76%, rgba(232, 185, 87, 0.14), transparent 22rem),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(0, 0, 0, 0.26) 45px 48px, transparent 49px 88px);
}

.pack-scene-profile::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.14) 34%, rgba(0, 0, 0, 0.86)),
    radial-gradient(ellipse at 47% 68%, rgba(232, 185, 87, 0.18), transparent 20rem),
    linear-gradient(118deg, transparent 0 47%, rgba(0, 0, 0, 0.36) 48% 100%),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(0, 0, 0, 0.3) 41px 44px, transparent 45px 82px);
}

.pack-scene-message::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.18) 34%, rgba(0, 0, 0, 0.86)),
    radial-gradient(ellipse at 18% 76%, rgba(255, 114, 48, 0.16), transparent 17rem),
    radial-gradient(circle at 16% 74%, rgba(232, 185, 87, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 78%, rgba(255, 112, 48, 0.14) 0 2px, transparent 3px),
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(0, 0, 0, 0.38) 33px 37px, transparent 38px 68px);
}

.pack-scene .workspace,
.pack-scene .workspace-content,
.pack-scene .topbar,
.pack-scene .sidebar {
  position: relative;
  z-index: 3;
}

.pack-scene .workspace-content {
  backdrop-filter: none;
}

.pack-scene .workspace-heading,
.pack-scene .admin-hero,
.pack-scene .profile-hero,
.pack-scene .leaderboard-heading,
.pack-scene .champions-heading,
.pack-scene .community-heading,
.pack-scene .pack-dashboard-header,
.pack-scene .alpha-hero,
.pack-scene .page-hero {
  backdrop-filter: blur(18px);
  background:
    linear-gradient(125deg, rgba(232, 185, 87, 0.18), rgba(255, 255, 255, 0.045) 34%, rgba(6, 7, 8, 0.74)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.26));
}

.pack-scene .panel,
.pack-scene .nested-panel,
.pack-scene .form-panel,
.pack-scene .table-panel,
.pack-scene .team-panel,
.pack-scene .chat-panel,
.pack-scene .pack-dashboard-card,
.pack-scene .alpha-card,
.pack-scene .alpha-stat-card,
.pack-scene .defi-card,
.pack-scene .progression-panel,
.pack-scene .wall-post,
.pack-scene .communication-panel,
.pack-scene .communication-sidebar,
.pack-scene .support-block,
.pack-scene .legal-block,
.pack-scene .application-note,
.pack-scene .contact-intro {
  backdrop-filter: blur(16px);
  background:
    linear-gradient(145deg, rgba(18, 18, 16, 0.72), rgba(6, 7, 8, 0.68)),
    rgba(0, 0, 0, 0.34);
}

.pack-scene .workspace-heading::before,
.pack-scene .admin-hero::before,
.pack-scene .profile-hero::before,
.pack-scene .pack-dashboard-header::before,
.pack-scene .alpha-hero::before,
.pack-scene .page-hero::before {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: 1rem;
  width: 14rem;
  max-width: 34%;
  aspect-ratio: 1;
  border: 1px solid rgba(232, 185, 87, 0.2);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 40%, rgba(248, 241, 227, 0.16), transparent 32%),
    linear-gradient(135deg, transparent 0 48%, rgba(232, 185, 87, 0.08) 49% 50%, transparent 51%),
    radial-gradient(circle, rgba(232, 185, 87, 0.08), transparent 68%);
  opacity: 0.7;
  pointer-events: none;
}

.pack-scene-alpha .alpha-hero::before,
.pack-scene-alpha .admin-hero::before,
.pack-scene-alpha .workspace-heading::before {
  background:
    radial-gradient(circle at 50% 38%, rgba(248, 241, 227, 0.18), transparent 33%),
    linear-gradient(135deg, transparent 0 47%, rgba(232, 185, 87, 0.14) 48% 50%, transparent 51%),
    linear-gradient(45deg, transparent 0 48%, rgba(248, 241, 227, 0.09) 49% 50%, transparent 51%);
}

.pack-scene-rewards .workspace-heading::before,
.pack-scene-rewards .admin-hero::before,
.pack-scene-rewards .pack-dashboard-header::before {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(232, 185, 87, 0.16), rgba(83, 47, 14, 0.06)),
    linear-gradient(90deg, transparent 0 42%, rgba(232, 185, 87, 0.2) 43% 57%, transparent 58%);
}

.pack-scene-backstage .workspace-heading::before,
.pack-scene-backstage .admin-hero::before {
  border-radius: 8px;
  background:
    repeating-linear-gradient(12deg, rgba(232, 185, 87, 0.12) 0 1px, transparent 1px 18px),
    radial-gradient(ellipse at 50% 50%, rgba(232, 185, 87, 0.08), transparent 64%);
}

.pack-scene .table-panel,
.pack-scene .modern-table {
  background-color: rgba(5, 6, 7, 0.62);
}

.pack-scene .button-primary {
  box-shadow: 0 0 28px rgba(232, 185, 87, 0.18), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.pack-scene .button-ghost,
.pack-scene .button-secondary {
  background: rgba(0, 0, 0, 0.28);
}

.pack-scene .empty-state {
  backdrop-filter: blur(14px);
}

/* Admin applications: compact list and full-width review dossier. */
.application-filters {
  margin-bottom: 18px;
}

.application-row {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px 0;
}

.application-dossier {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 185, 87, 0.18);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.6);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.application-dossier:hover,
.application-dossier[open] {
  border-color: rgba(232, 185, 87, 0.42);
  background: rgba(8, 9, 10, 0.78);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), 0 0 24px rgba(232, 185, 87, 0.06);
}

.application-summary {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(220px, auto);
  align-items: center;
  gap: 20px;
  min-height: 112px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.application-summary::-webkit-details-marker {
  display: none;
}

.application-summary-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.application-summary-identity > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.application-summary-avatar {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(232, 185, 87, 0.38);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(232, 185, 87, 0.18), rgba(255, 255, 255, 0.035));
  color: var(--gold);
  font-family: var(--pack-display);
  font-size: 1.3rem;
  font-weight: 900;
}

.application-summary-identity small,
.application-summary-meta small {
  color: var(--pack-muted);
  font-size: 0.72rem;
  font-style: normal;
  text-transform: uppercase;
}

.application-summary-identity strong {
  overflow-wrap: anywhere;
  color: var(--pack-cream);
  font-size: 1.08rem;
}

.application-summary-identity em {
  overflow-wrap: anywhere;
  color: var(--pack-muted);
  font-size: 0.88rem;
  font-style: normal;
}

.application-summary-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.application-summary-meta > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 116px;
}

.application-open-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  border: 1px solid rgba(232, 185, 87, 0.32);
  border-radius: 7px;
  padding: 0 13px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
}

.application-open-label b {
  font-size: 1.25rem;
  font-weight: 500;
  transition: transform 180ms ease;
}

.application-dossier[open] .application-open-label b {
  transform: rotate(45deg);
}

.application-dossier-body {
  min-width: 0;
  border-top: 1px solid rgba(232, 185, 87, 0.18);
  padding: 26px;
}

.application-candidate-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 24px;
}

.application-candidate-header h2 {
  margin: 4px 0 6px;
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
}

.application-header-status {
  display: grid;
  min-width: 180px;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.application-header-status > strong {
  color: var(--gold);
  font-size: 1.8rem;
}

.application-header-status > span:not(.badge),
.application-header-status > small {
  color: var(--pack-muted);
}

.application-dossier-body .application-detail-section {
  min-width: 0;
  margin: 0;
  border-top: 1px solid rgba(232, 185, 87, 0.14);
  padding: 24px 0;
}

.application-dossier-body .application-detail-section > h3,
.application-section-heading > h3,
.application-admin-actions h3 {
  margin: 0;
  color: var(--pack-cream);
  font-size: 1.05rem;
}

.application-dossier-body .application-profile-grid {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.application-dossier-body .application-text-grid {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
}

.application-dossier-body .application-profile-grid span,
.application-dossier-body .application-text-grid p,
.application-dossier-body .application-qcm-summary {
  overflow-wrap: break-word;
  word-break: normal;
}

.application-dossier-body .application-text-grid p {
  min-height: 96px;
  line-height: 1.55;
}

.application-dossier-body .application-qcm-summary {
  margin-top: 12px;
  padding: 18px;
}

.application-dossier-body .application-qcm-summary > strong {
  font-size: 1.05rem;
}

.application-dossier-body .application-qcm-summary .settings-pill-grid {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.application-dossier-body .application-qcm-summary .settings-pill {
  min-width: 0;
  white-space: normal;
}

.application-dossier-body .application-qcm-summary .settings-pill small {
  overflow-wrap: break-word;
  word-break: normal;
}

.application-consent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.application-consent {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(232, 185, 87, 0.14);
  border-radius: 7px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.application-consent b {
  color: #83c89b;
  font-size: 1rem;
}

.application-consent.is-refused b {
  color: #dc8090;
}

.application-consent strong {
  overflow-wrap: break-word;
  font-size: 0.82rem;
}

.application-consent small {
  color: var(--pack-muted);
}

.application-interview-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.application-interview-grid label,
.application-referral-section label {
  min-width: 0;
}

.application-interview-grid input,
.application-interview-grid textarea,
.application-referral-section input,
.application-referral-section select,
.application-referral-section textarea {
  width: 100%;
  min-width: 0;
}

.application-interview-grid .admin-note-field {
  grid-column: 1 / -1;
}

.application-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.application-referral-section .referral-admin-line {
  justify-content: flex-end;
  margin: 0;
}

.application-referral-section .referral-admin-editor {
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(160px, 1fr)) auto;
  align-items: end;
  margin-top: 18px;
}

.application-referral-section > .admin-note-field {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.application-admin-actions {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-top: 8px;
  border: 1px solid rgba(232, 185, 87, 0.24);
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(232, 185, 87, 0.08), rgba(0, 0, 0, 0.2));
}

.application-admin-actions .row-actions {
  justify-content: flex-end;
}

.application-admin-actions .button {
  min-height: 42px;
}

.application-back-link {
  display: block;
  margin: 18px auto 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
}

@media (max-width: 1250px) {
  .application-summary {
    grid-template-columns: minmax(240px, 1fr) minmax(210px, auto);
  }

  .application-open-label {
    grid-column: 1 / -1;
  }

  .application-dossier-body .application-profile-grid,
  .application-dossier-body .application-qcm-summary .settings-pill-grid,
  .application-interview-grid {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }

  .application-referral-section .referral-admin-editor {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  .application-summary,
  .application-admin-actions {
    grid-template-columns: 1fr;
  }

  .application-summary-meta {
    justify-content: flex-start;
  }

  .application-candidate-header,
  .application-section-heading {
    display: grid;
  }

  .application-header-status {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .application-dossier-body {
    padding: 18px;
  }

  .application-dossier-body .application-profile-grid,
  .application-dossier-body .application-text-grid,
  .application-dossier-body .application-qcm-summary .settings-pill-grid,
  .application-interview-grid,
  .application-referral-section .referral-admin-editor {
    grid-template-columns: 1fr;
  }

  .application-admin-actions .row-actions,
  .application-contact-actions,
  .application-referral-section .referral-admin-line {
    justify-content: flex-start;
  }

  .application-admin-actions .button,
  .application-contact-actions .button {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .app-shell.pack-scene::before,
  .public-main.pack-scene:not(.pack-scene-home)::before {
    inset: -1rem;
    filter: blur(1.6px);
    opacity: 0.72;
  }

  .app-shell.pack-scene::after,
  .public-main.pack-scene:not(.pack-scene-home)::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.28) 26%, rgba(0, 0, 0, 0.88)),
      repeating-linear-gradient(90deg, transparent 0 44px, rgba(0, 0, 0, calc(var(--scene-tree-strength) * 0.75)) 45px 48px, transparent 49px 88px);
  }
}

@media (max-width: 680px) {
  .pack-scene {
    --scene-moon-size: 12rem;
    --scene-tree-strength: 0.16;
  }

  .pack-scene .workspace-heading::before,
  .pack-scene .admin-hero::before,
  .pack-scene .profile-hero::before,
  .pack-scene .pack-dashboard-header::before,
  .pack-scene .alpha-hero::before,
  .pack-scene .page-hero::before {
    width: 8rem;
    opacity: 0.38;
  }
}

/* Public mobile UX refinements */
.public-main,
.pack-home,
.pack-feature-section,
.pack-home-close,
.pack-contact-cta,
.page-hero,
.section {
  max-width: 100%;
}

@media (max-width: 780px) {
  .public-main {
    overflow-x: hidden;
  }

  .pack-home-premium {
    min-height: auto;
    padding: 0.75rem 0 0.95rem;
  }

  .pack-home-premium::after {
    inset-inline: 1.25rem;
    bottom: 0.45rem;
  }

  .pack-hero-premium,
  .pack-feature-section,
  .pack-home-close,
  .pack-contact-cta,
  .pack-stats-bar {
    width: min(100% - 1.25rem, 44rem);
  }

  .pack-hero-premium {
    gap: 0.85rem;
    padding: 0.45rem 0 0.9rem;
  }

  .pack-hero-art {
    min-height: 18.75rem;
    border-radius: 0.9rem;
  }

  .pack-hero-art::before {
    inset: 0 0 8%;
  }

  .pack-hero-art::after {
    height: 6.7rem;
  }

  .pack-moon {
    top: 0.35rem;
    width: 14.25rem;
  }

  .pack-logo-scene,
  .pack-mark-premium {
    max-width: 14.8rem;
  }

  .pack-logo-scene {
    margin-top: -0.6rem;
  }

  .pack-wolf-ridge {
    bottom: 1.35rem;
    height: 4.6rem;
  }

  .pack-wolf-ridge span {
    bottom: 0.9rem;
  }

  .pack-hero-copy-premium {
    padding: 0.15rem 0 0;
  }

  .pack-kicker-line {
    gap: 0.65rem;
    margin-bottom: 0.7rem;
  }

  .pack-hero-premium .pack-display-title {
    margin-bottom: 0.75rem;
    font-size: 2.65rem;
  }

  .pack-slogan {
    margin-bottom: 0.95rem;
  }

  .pack-hero-premium .pack-lead {
    max-width: 36rem;
    margin-bottom: 0;
    line-height: 1.6;
  }

  .pack-hero-premium .pack-actions {
    margin: 1rem 0;
  }

  .pack-quick-values article,
  .pack-stats-bar article {
    padding: 0.8rem 0.9rem;
  }

  .pack-stats-bar {
    margin-top: 0;
  }

  .pack-feature-section {
    padding: 1rem 0 1.7rem;
  }

  .pack-feature-grid {
    gap: 0.8rem;
  }

  .pack-feature-card {
    min-height: auto;
    padding: 1rem;
  }

  .pack-feature-visual {
    margin-bottom: 0.9rem;
  }

  .pack-feature-card p,
  .pack-feature-card h3,
  .pack-feature-card a {
    overflow-wrap: anywhere;
  }

  .pack-feature-card a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .pack-home-close {
    gap: 0.8rem;
    padding: 2.1rem 0.75rem 2.8rem;
  }

  .pack-contact-cta {
    margin-bottom: 2rem;
  }

  .page-hero.compact,
  .page-hero.application-hero {
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    padding: 2rem 1rem;
    overflow: hidden;
  }

  .page-hero > * {
    width: min(100%, calc(100vw - 2rem));
    min-width: 0;
    max-width: calc(100vw - 2rem);
  }

  .page-hero h1,
  .page-hero p {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .page-hero h1 {
    font-size: 2.35rem;
    line-height: 1.05;
  }

  .section,
  .timeline,
  .social-grid,
  .support-doc,
  .legal-doc {
    width: min(100% - 1.25rem, 44rem);
    margin-inline: auto;
    padding: 1.55rem 0;
  }

  .application-layout,
  .application-hero,
  .contact-layout,
  .auth-page {
    grid-template-columns: 1fr;
  }

  .application-steps,
  .application-note {
    position: static;
  }

  .form-grid,
  .contact-form,
  .application-form,
  .contact-layout > *,
  .application-layout > *,
  .auth-panels,
  .auth-visual,
  .form-panel,
  .support-block,
  .legal-block,
  .timeline article,
  .social-grid a {
    min-width: 0;
    max-width: 100%;
  }

  .auth-page {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .auth-visual img {
    max-width: 11rem;
  }
}

@media (max-width: 560px) {
  .page-hero > *,
  .page-hero h1,
  .page-hero p {
    width: min(100%, 20.5rem);
    max-width: 20.5rem;
  }

  .page-hero h1 {
    font-size: 2.05rem;
    line-height: 1.05;
  }

  .contact-intro > *,
  .application-note > *,
  .support-block > *,
  .legal-block > *,
  .timeline article > *,
  .social-grid a > * {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .contact-intro p,
  .application-note p,
  .support-block p,
  .legal-block p {
    width: min(100%, 20.5rem);
    max-width: 20.5rem;
  }
}

@media (max-width: 480px) {
  .public-nav {
    row-gap: 0.65rem;
  }

  .public-nav .nav-links {
    grid-template-columns: repeat(2, max-content);
  }

  .pack-home-premium {
    padding-top: 0.45rem;
  }

  .pack-hero-premium,
  .pack-feature-section,
  .pack-home-close,
  .pack-contact-cta,
  .pack-stats-bar,
  .section,
  .timeline,
  .social-grid,
  .support-doc,
  .legal-doc {
    width: min(100% - 1rem, 28rem);
  }

  .pack-hero-art {
    min-height: 16.25rem;
  }

  .pack-logo-scene,
  .pack-mark-premium {
    max-width: 12.9rem;
  }

  .pack-moon {
    width: 12.8rem;
  }

  .pack-wolf-ridge {
    bottom: 1rem;
    transform: scale(0.9);
  }

  .pack-hero-premium .pack-display-title {
    font-size: 2.25rem;
  }

  .pack-slogan {
    max-width: calc(100vw - 2rem);
    padding: 0.45rem 0.55rem;
    font-size: 0.92rem;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  .pack-hero-premium .pack-lead {
    font-size: 0.95rem;
  }

  .pack-primary-cta,
  .pack-secondary-cta {
    min-width: 0;
    min-height: 2.85rem;
  }

  .pack-quick-values article,
  .pack-stats-bar article,
  .pack-feature-card {
    padding: 0.82rem;
  }

  .page-hero.compact,
  .page-hero.application-hero {
    padding: 1.55rem 0.9rem;
  }

  .page-hero > *,
  .page-hero h1,
  .page-hero p {
    width: min(100%, 20.5rem);
    max-width: 20.5rem;
  }

  .page-hero h1 {
    font-size: 2.05rem;
  }
}
