:root {
  --bg: #f4f7f9;
  --ink: #111827;
  --muted: #5e6878;
  --line: #d9e2ec;
  --paper: #ffffff;
  --navy: #111827;
  --teal: #0f8b8d;
  --mint: #c7f0d8;
  --amber: #f3b949;
  --coral: #e26d5c;
  --sky: #4f9cf9;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.profile-page {
  padding-top: 92px;
}

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

img {
  max-width: 100%;
}

.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 60px);
  color: #fff;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.portal-header.is-scrolled,
.portal-header.is-open {
  background: rgba(17, 24, 39, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(16px);
}

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

.brand-sign {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: #111827;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.brand-sign img {
  display: block;
  width: 100%;
  height: 100%;
}

.portal-brand strong,
.portal-brand small {
  display: block;
}

.portal-brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.portal-brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 30px);
  font-size: 14px;
  font-weight: 800;
}

.portal-nav a,
.portal-nav button {
  color: rgba(255, 255, 255, 0.82);
}

.portal-nav a:hover,
.portal-nav button:hover {
  color: #fff;
}

.nav-cta {
  border: 0;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy) !important;
}

.account-menu {
  position: relative;
}

.account-trigger {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}

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

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  width: 270px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
}

.account-dropdown.is-open {
  display: grid;
  gap: 8px;
}

.account-dropdown strong,
.account-dropdown span {
  display: block;
}

.account-dropdown span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
}

button,
input {
  font: inherit;
}

body.modal-open {
  overflow: hidden;
}

button {
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  min-height: clamp(680px, 92vh, 860px);
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.9), rgba(11, 18, 32, 0.58) 48%, rgba(11, 18, 32, 0.2)),
    linear-gradient(180deg, rgba(11, 18, 32, 0.2), rgba(11, 18, 32, 0.74));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 32px));
  margin-left: clamp(16px, 7vw, 104px);
  padding-top: 78px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

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

h1 {
  max-width: 800px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy,
.lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.62;
}

.lead {
  color: #485366;
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  border: 0;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.button.primary {
  background: var(--amber);
  color: var(--navy);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
}

.button.light {
  border-color: rgba(255, 255, 255, 0.34);
}

.signal-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 32px));
  margin: -58px auto 74px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.portal-alert {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 56px;
  padding: 16px 18px;
  border: 1px solid #f7d489;
  border-radius: 8px;
  background: #fff7df;
  color: #664600;
  font-weight: 700;
}

.portal-alert.is-success {
  border-color: #a8e5bd;
  background: #eafaf0;
  color: #17613b;
}

.profile-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 82px;
}

.profile-page .hero,
.profile-page .signal-bar,
.profile-page .intro,
.profile-page .split,
.profile-page .section:not(.portal-alert),
.profile-page .join,
.profile-page .login-modal {
  display: none;
}

.profile-page .profile-shell {
  margin-top: 26px;
}

.profile-cover {
  position: relative;
  overflow: hidden;
  min-height: clamp(420px, 34vw, 520px);
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: 8px;
  border: 1px solid rgba(79, 156, 249, 0.22);
  background: #202c41;
  box-shadow: var(--shadow);
}

.profile-cover-frame {
  position: absolute;
  inset: clamp(18px, 2.5vw, 26px);
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
}

.profile-cover-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-cover-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 13, 22, 0.9), rgba(17, 24, 39, 0.34) 48%, rgba(17, 24, 39, 0.18)),
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.78));
}

.profile-cover__content {
  position: absolute;
  left: clamp(42px, 5vw, 96px);
  right: clamp(42px, 5vw, 96px);
  bottom: clamp(88px, 6.5vw, 104px);
  z-index: 2;
  display: grid;
  grid-template-columns: clamp(118px, 10vw, 158px) minmax(220px, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  min-height: 0;
  margin-top: 0;
  padding: 0;
  color: #fff;
}

.profile-avatar {
  flex: 0 0 auto;
  width: clamp(118px, 10vw, 158px);
  height: clamp(118px, 10vw, 158px);
  border: 5px solid rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.profile-cover h2 {
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 0.95;
}

.profile-identity {
  min-width: 0;
}

.profile-identity .eyebrow {
  margin-bottom: 10px;
}

.profile-media-actions {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 8px;
  align-items: center;
  margin-left: auto;
  transform: translateY(14px);
}

.profile-media-actions button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: #1677ff;
  color: #fff;
  padding: 0 18px;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(22, 119, 255, 0.22);
  white-space: nowrap;
}

.profile-status-line {
  position: absolute;
  left: clamp(42px, 5vw, 96px);
  right: clamp(42px, 5vw, 96px);
  bottom: clamp(24px, 3vw, 42px);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 900;
  text-align: center;
}

.profile-status-line strong {
  color: #25d05a;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 16px;
}

.profile-actions a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.profile-actions a:nth-child(2) {
  background: var(--teal);
}

.profile-actions a:nth-child(3) {
  background: #32465a;
}

.profile-actions a:nth-child(4) {
  background: var(--coral);
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.profile-tabs button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f4f7fb;
  color: #334155;
  padding: 0 14px;
  text-align: center;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.profile-tabs button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.profile-tabs button.is-active {
  border-color: rgba(22, 119, 255, 0.36);
  background: #1677ff;
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 119, 255, 0.18);
}

.profile-tab-panel:not(.is-active) {
  display: none !important;
}

.profile-grid.lower.is-empty {
  display: none;
}

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

.work-main-card,
.work-stack {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.work-main-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(18, 54, 60, 0.9)),
    #111827;
  color: #fff;
}

.work-main-card img {
  width: 92px;
  height: 92px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  object-fit: contain;
}

.work-main-card span,
.work-section-head span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-main-card h3 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.work-main-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.work-stack {
  padding: 18px;
}

.work-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.work-section-head h3 {
  margin-bottom: 0;
}

.work-section-head span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #fff4d8;
  color: #9a6200;
}

.work-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.work-mini-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.work-mini-card img {
  width: 48px;
  height: 48px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.work-mini-card strong,
.work-mini-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-mini-card strong {
  font-size: 14px;
}

.work-mini-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.profile-grid.lower {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
  align-items: start;
}

.profile-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.profile-panel h3 {
  margin-bottom: 16px;
}

.info-grid,
.money-list,
.meter-list {
  display: grid;
  gap: 10px;
}

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

.info-grid span,
.money-list div,
.meter-list div,
.list-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
}

.info-grid b,
.money-list span,
.meter-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.money-list strong {
  font-size: 24px;
}

.profile-overview {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr)) repeat(2, minmax(180px, 1.35fr));
  gap: 12px;
  margin: 18px 0 0;
}

.status-card,
.summary-card {
  min-height: 122px;
  padding: 16px;
  border: 1px solid rgba(217, 226, 236, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.11);
  backdrop-filter: blur(14px);
}

.status-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.status-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 9px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
}

.status-icon.health {
  background: linear-gradient(135deg, #e26d5c, #ff9f80);
}

.status-icon.armor {
  background: linear-gradient(135deg, #32465a, #4f9cf9);
}

.status-icon.hunger {
  background: linear-gradient(135deg, #f3b949, #d98634);
}

.status-icon.thirst {
  background: linear-gradient(135deg, #0f8b8d, #55c7e8);
}

.status-card span,
.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-card strong {
  margin-top: 3px;
  font-size: 24px;
}

.summary-card {
  display: grid;
  align-content: center;
}

.summary-card strong {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-summary-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.job-summary-row img {
  width: 50px;
  height: 50px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
  object-fit: contain;
}

.job-summary-row strong {
  margin-top: 0;
}

.summary-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.job-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.job-card i {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 8px;
  background: #e9f8f3;
  color: var(--teal);
  font-size: 22px;
}

.job-card strong,
.job-card span {
  display: block;
}

.job-card span,
.panel-note,
.empty-profile {
  color: var(--muted);
}

.panel-note {
  margin: 14px 0 0;
  font-weight: 800;
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-head h3 {
  margin-bottom: 0;
}

.panel-head span {
  color: var(--muted);
  font-weight: 900;
}

.inventory-panel {
  grid-row: span 5;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.inventory-item {
  position: relative;
  display: grid;
  min-height: 146px;
  place-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafc;
  text-align: center;
}

.inventory-item img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.inventory-item strong {
  align-self: end;
  font-size: 13px;
  line-height: 1.25;
}

.inventory-item span {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.list-panel {
  display: grid;
  align-content: start;
  gap: 8px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.list-row span {
  min-width: 0;
}

.job-list-row span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.list-row span img {
  width: 34px;
  height: 34px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.list-row em {
  min-width: 0;
  color: var(--ink);
  font-style: normal;
  font-weight: 850;
}

.list-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.list-row b {
  color: var(--ink);
  white-space: nowrap;
}

.signal-bar div {
  min-height: 112px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.signal-bar div:last-child {
  border-right: 0;
}

.signal-bar strong,
.signal-bar span {
  display: block;
}

.signal-bar strong {
  margin-bottom: 6px;
  font-size: 30px;
}

.signal-bar span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 82px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head.compact {
  max-width: 900px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.steps,
.activity-grid,
.rule-columns,
.news-list {
  display: grid;
  gap: 16px;
}

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

.steps article,
.activity-grid article,
.rule-columns article,
.news-list article,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.steps article {
  min-height: 260px;
  padding: 22px;
}

.steps span,
.activity-grid i {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: #e9f8f3;
  color: var(--teal);
  font-size: 21px;
}

.steps p,
.activity-grid p,
.rule-columns p,
.news-list p,
.faq p {
  color: var(--muted);
  line-height: 1.58;
}

.split,
.dashboard-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
  gap: 34px;
  align-items: center;
  padding-block: 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.feature-list div {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: #273142;
  font-weight: 850;
}

.feature-list i {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #fff4d8;
  color: #9a6200;
}

.activity-grid {
  grid-template-columns: repeat(3, 1fr);
}

.activity-grid article {
  min-height: 235px;
  padding: 24px;
}

.dashboard-preview {
  background:
    linear-gradient(135deg, rgba(199, 240, 216, 0.42), rgba(79, 156, 249, 0.1));
  padding-inline: clamp(0px, 2vw, 28px);
}

.mock-panel {
  padding: 18px;
  border-radius: 8px;
  background: #101827;
  color: #fff;
  box-shadow: 0 22px 52px rgba(17, 24, 39, 0.22);
}

.mock-top {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.mock-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.mock-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.mock-row.strong {
  background: rgba(243, 185, 73, 0.16);
}

.mock-row i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--amber);
}

.mock-row b,
.mock-row small {
  display: block;
}

.mock-row small {
  color: rgba(255, 255, 255, 0.64);
  margin-top: 3px;
}

.mock-row em {
  color: var(--mint);
  font-style: normal;
  font-weight: 900;
}

.rule-columns,
.news-list {
  grid-template-columns: repeat(3, 1fr);
}

.rule-columns article,
.news-list article {
  padding: 24px;
}

.rule-columns h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-columns i {
  color: var(--coral);
}

.news-list time {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
}

.join {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 0;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background: linear-gradient(135deg, #111827, #12363c 58%, #263342);
  color: #fff;
  box-shadow: var(--shadow);
}

.join h2 {
  max-width: 760px;
}

.join p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.6;
}

.portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 36px auto 0;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.login-modal.is-open {
  display: flex;
}

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 22, 0.78);
  backdrop-filter: blur(12px);
}

.login-modal__box {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: clamp(26px, 5vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.38);
}

.login-modal__logo {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.2);
}

.login-modal__box h2 {
  font-size: clamp(30px, 5vw, 42px);
}

.login-modal__box p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.login-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.login-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.modal-secondary {
  border: 1px solid var(--line);
  background: #eef3f7;
  color: var(--ink);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: grid;
  }

  .portal-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.98);
  }

  .portal-nav.is-open {
    display: flex;
  }

  .portal-nav a {
    padding: 12px;
  }

  .portal-nav button {
    width: 100%;
  }

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

  .hero {
    min-height: 720px;
    align-items: end;
    padding-bottom: 82px;
  }

  .hero-inner {
    margin: 0 auto;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(11, 18, 32, 0.26), rgba(11, 18, 32, 0.92));
  }

  .signal-bar,
  .steps,
  .activity-grid,
  .split,
  .dashboard-preview,
  .rule-columns,
  .news-list,
  .join,
  .portal-footer,
  .profile-overview,
  .profile-actions,
  .profile-tabs,
  .work-hub,
  .profile-grid,
  .profile-grid.lower {
    grid-template-columns: 1fr;
  }

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

  .signal-bar div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-bar div:last-child {
    border-bottom: 0;
  }

  .join-actions {
    margin-top: 0;
  }

  .portal-footer {
    gap: 8px;
  }

  .account-dropdown {
    right: auto;
    left: 0;
    width: min(270px, calc(100vw - 56px));
  }

  .profile-cover__content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 88px;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: end;
    margin-top: 0;
    text-align: center;
  }

  .profile-media-actions {
    justify-content: center;
    margin-left: 0;
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    width: min(440px, 100%);
    transform: none;
  }

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

  .profile-overview {
    margin: 12px 0 0;
  }

  .status-card,
  .summary-card {
    min-height: 104px;
  }

  .work-main-card {
    grid-row: auto;
  }
}

@media (max-width: 1180px) and (min-width: 921px) {
  .profile-cover__content {
    grid-template-columns: clamp(112px, 12vw, 148px) minmax(220px, 1fr);
    bottom: 108px;
  }

  .profile-media-actions {
    grid-column: 2;
    justify-self: end;
    width: min(520px, 100%);
    transform: none;
  }
}

@media (max-width: 560px) {
  .portal-header {
    padding-inline: 12px;
  }

  .brand-sign {
    width: 40px;
    height: 40px;
  }

  .portal-brand strong {
    font-size: 15px;
  }

  .hero {
    min-height: 700px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy,
  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .join-actions,
  .login-modal__actions,
  .profile-tabs {
    display: grid;
  }

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

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

  .summary-card {
    grid-column: 1 / -1;
  }

  .work-main-card,
  .work-mini-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

  .work-mini-card {
    min-height: 130px;
  }

  .work-mini-card strong,
  .work-mini-card span {
    white-space: normal;
  }

  .profile-cover {
    min-height: 560px;
    padding: 12px;
  }

  .profile-cover-frame {
    inset: 12px;
  }

  .profile-media-actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .profile-status-line {
    left: 22px;
    right: 22px;
    bottom: 22px;
    font-size: 17px;
  }

  .section {
    margin-bottom: 60px;
  }

  .steps article,
  .activity-grid article,
  .rule-columns article,
  .news-list article {
    min-height: auto;
  }

  .mock-row {
    grid-template-columns: 40px 1fr;
  }

  .mock-row em {
    grid-column: 2;
  }
}
