* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: #07111f;
  color: #fff;
  font-family: Outfit, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(45,127,249,.14), transparent 30%),
    radial-gradient(circle at 86% 6%, rgba(34,211,166,.10), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,.024), transparent 44%);
}

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

.portal-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 34px;
}

.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 0 max(16px, calc((100vw - 1180px) / 2));
  background: rgba(6, 17, 31, .94);
  border-bottom: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
}

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

.brand strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand small,
.portal-email {
  color: rgba(255,255,255,.52);
  font-size: 13px;
}

.portal-email:empty {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.header-actions svg,
.btn svg,
.auth-note svg,
.claim-help svg,
.timeline-item svg {
  flex: 0 0 auto;
}

.panel {
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13,26,45,.96), rgba(8,20,36,.98));
  box-shadow: 0 20px 56px rgba(0,0,0,.24);
}

.auth-layout {
  display: grid;
  align-items: center;
  gap: 28px;
  min-height: calc(100svh - 100px);
  padding-top: 18px;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .72fr);
}

.auth-copy h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(2.35rem, 6vw, 5.25rem);
  line-height: 1;
  font-weight: 800;
}

.auth-copy p {
  max-width: 650px;
  color: rgba(255,255,255,.66);
  font-size: 18px;
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,199,247,.22);
  border-radius: 999px;
  background: rgba(0,199,247,.08);
  padding: 8px 11px;
  color: #8befff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-preview {
  width: min(520px, 100%);
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  padding: 15px;
}

.preview-top {
  display: grid;
  align-items: center;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
}

.preview-top span {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2d7ff9, #22d3a6);
}

.preview-top strong { font-size: 14px; }
.preview-top em {
  border: 1px solid rgba(34,211,166,.22);
  border-radius: 999px;
  background: rgba(34,211,166,.10);
  padding: 5px 9px;
  color: #acf7de;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.preview-progress {
  height: 9px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.preview-progress span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d7ff9, #00c7f7, #22d3a6);
}

.preview-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.preview-grid span {
  min-height: 54px;
  border-radius: 8px;
  background: rgba(255,255,255,.055);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 9px;
  margin-top: 18px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  padding: 9px 12px;
  color: rgba(255,255,255,.74);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.auth-card {
  padding: 20px;
}

.auth-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
}

.auth-card-head h2 {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
}

.auth-icon,
.claim-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0,199,247,.22);
  border-radius: 8px;
  background: rgba(0,199,247,.10);
  color: #8befff;
}

.claim-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.claim-head .claim-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.claim-head h2 {
  margin-top: 2px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.08;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  padding: 5px;
}

.auth-tab {
  min-height: 40px;
  border-radius: 7px;
  color: rgba(255,255,255,.62);
  font-size: 14px;
  font-weight: 800;
}

.auth-tab.active {
  background: rgba(0,199,247,.12);
  color: #fff;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: rgba(255,255,255,.56);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: #081424;
  padding: 12px 13px;
  color: #fff;
  outline: none;
  font: inherit;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-color: #081424;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.72) 50%),
    linear-gradient(135deg, rgba(255,255,255,.72) 50%, transparent 50%),
    linear-gradient(90deg, rgba(255,255,255,.10), rgba(255,255,255,.10));
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 15px) 50%,
    calc(100% - 38px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 22px;
  background-repeat: no-repeat;
}

.select:hover {
  border-color: rgba(255,255,255,.20);
  background-color: #0a182a;
}

.select::-ms-expand {
  display: none;
}

.textarea {
  min-height: 118px;
  resize: none;
  line-height: 1.6;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(0,199,247,.70);
  box-shadow: 0 0 0 3px rgba(0,199,247,.10);
}

.input.is-invalid {
  border-color: rgba(248,113,113,.72);
  box-shadow: 0 0 0 3px rgba(248,113,113,.10);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
  line-height: 1;
}

.brand-loader {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.brand-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,.24);
  border-top-color: #fff;
  border-right-color: #8befff;
  border-radius: 999px;
  animation: brandSpin 820ms linear infinite;
}

.brand-loader img {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  object-fit: cover;
}

@keyframes brandSpin {
  to { transform: rotate(360deg); }
}

.btn-primary {
  border: 1px solid rgba(0,199,247,.42);
  background: #186fe8;
  color: #fff;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.86);
}

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  color: #8befff;
  font-size: 13px;
  font-weight: 800;
}

.text-link:hover {
  color: #fff;
}

.auth-note,
.status-message {
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.55;
}

.auth-note {
  display: flex;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.58);
}

.status-message {
  border: 1px solid rgba(34,211,166,.24);
  background: rgba(34,211,166,.08);
  color: #afffe8;
}

.status-message.error {
  border-color: rgba(248,113,113,.28);
  background: rgba(248,113,113,.09);
  color: #fecaca;
}

.portal-titlebar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 16px;
}

.portal-titlebar h1 {
  margin-top: 4px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 800;
}

.portal-titlebar p {
  max-width: 380px;
  color: rgba(255,255,255,.56);
  font-size: 14px;
  line-height: 1.6;
}

.portal-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 340px minmax(0, 1fr);
}

.claim-card,
.dashboard-card {
  padding: 18px;
}

.claim-card {
  align-self: start;
  position: sticky;
  top: 16px;
}

.claim-help {
  margin-top: 15px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 14px;
  color: rgba(255,255,255,.58);
  font-size: 13px;
}

.claim-help p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 800;
}

.claim-help a {
  color: #8befff;
  font-weight: 800;
}

.empty-state {
  display: grid;
  min-height: 420px;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.empty-state span {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(0,199,247,.20);
  border-radius: 8px;
  background: rgba(0,199,247,.08);
  color: #8befff;
}

.empty-state h2 {
  font-size: 25px;
  font-weight: 800;
}

.empty-state p {
  max-width: 390px;
  color: rgba(255,255,255,.56);
  line-height: 1.65;
}

.project-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  padding-bottom: 18px;
}

.project-head h1 {
  margin-top: 4px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border: 1px solid rgba(0,199,247,.22);
  border-radius: 999px;
  background: rgba(0,199,247,.10);
  padding: 0 11px;
  color: #a8efff;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.status-completed {
  border-color: rgba(34,211,166,.24);
  background: rgba(34,211,166,.11);
  color: #acf7de;
}

.status-paused {
  border-color: rgba(242,201,76,.22);
  background: rgba(242,201,76,.10);
  color: #ffe7a8;
}

.status-archived {
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.66);
}

.summary-grid,
.content-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

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

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

.summary-card,
.soft-card {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}

.summary-card {
  padding: 14px;
}

.summary-card p,
.card-label {
  margin-bottom: 7px;
  color: rgba(255,255,255,.44);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-card strong {
  overflow-wrap: anywhere;
  color: rgba(255,255,255,.9);
  font-size: 18px;
}

.progress-track {
  height: 12px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.progress-card {
  min-height: 102px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d7ff9, #00c7f7, #22d3a6);
  transition: width .3s ease;
}

.soft-card {
  margin-top: 14px;
  padding: 16px;
  color: rgba(255,255,255,.68);
  line-height: 1.65;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.timeline-item span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0,199,247,.12);
  color: #8befff;
}

.timeline-item time {
  display: block;
  margin-bottom: 2px;
  color: rgba(255,255,255,.42);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.review-status-item {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  padding: 12px;
}

.review-status-item strong {
  color: #fff;
}

.review-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.portal-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 22px;
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 16px;
  color: rgba(255,255,255,.48);
  font-size: 13px;
  font-weight: 700;
}

.portal-footer a {
  color: rgba(255,255,255,.70);
}

.portal-footer a:hover {
  color: #fff;
}

.review-head {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 150px;
  align-items: start;
  margin-bottom: 12px;
}

.completion-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid rgba(34,211,166,.24);
  border-radius: 8px;
  background: rgba(34,211,166,.08);
  padding: 16px;
}

.completion-card span {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(34,211,166,.13);
  color: #acf7de;
}

.completion-card h2 {
  margin-bottom: 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.completion-card p:last-child {
  color: rgba(255,255,255,.64);
  font-size: 14px;
  line-height: 1.6;
}

.review-head h2 {
  font-size: 22px;
  font-weight: 800;
}

.review-form .btn {
  margin-top: 12px;
}

.hidden,
.hidden-view {
  display: none !important;
}

@media (max-width: 980px) {
  .auth-layout,
  .portal-grid,
  .summary-grid,
  .content-grid,
  .review-head {
    grid-template-columns: 1fr;
  }

  .auth-layout {
    align-items: start;
    min-height: auto;
    padding-top: 28px;
  }

  .claim-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .portal-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 152px;
  }

  .portal-header,
  .portal-titlebar {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-header {
    gap: 8px;
    min-height: 132px;
    padding: 10px 12px;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    width: 100%;
  }

  .portal-email {
    grid-column: 1 / -1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand {
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
    min-width: 0;
    padding: 0 10px;
    font-size: 13px;
    white-space: nowrap;
  }

  .auth-card .btn,
  .claim-card .btn,
  .review-form .btn {
    width: 100%;
  }

  .auth-copy h1 {
    font-size: clamp(2.05rem, 12vw, 3.35rem);
  }

  .auth-copy p {
    font-size: 16px;
  }

  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .trust-row span {
    min-height: 62px;
    padding: 8px 6px;
    white-space: normal;
    text-align: center;
    flex-direction: column;
    gap: 5px;
    font-size: 11px;
    line-height: 1.18;
  }

  .trust-row svg {
    width: 16px;
    height: 16px;
  }

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

  .project-head {
    flex-direction: column;
  }
}
