:root {
  --bg: #050713;
  --bg2: #070b1c;
  --card: rgba(11, 16, 34, .78);
  --line: rgba(255, 255, 255, .12);
  --text: #eef5ff;
  --muted: #9aa9cb;
  --a: #00e7ff;
  --b: #8a6dff;
  --c: #58ffb3;
  --gold: #ffd36d;
  --danger: #ff5f7a;
  --shadow: 0 34px 120px rgba(0, 0, 0, .45);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  background: #050713 !important;
  scroll-behavior: auto !important;
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: #050713 !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  overscroll-behavior-y: none;
  position: relative;
}

body.modal-open {
  overflow: hidden !important;
}

a {
  color: inherit;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% -10%, rgba(41, 78, 255, .40), transparent 34%),
    radial-gradient(circle at 82% 8%, rgba(0, 231, 255, .22), transparent 30%),
    radial-gradient(circle at 50% 95%, rgba(138, 109, 255, .18), transparent 42%),
    linear-gradient(180deg, #060817 0%, #03040b 65%, #050713 100%);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #050713;
  opacity: 1;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  opacity: .12;
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background:
    conic-gradient(
      from 80deg at 50% 50%,
      rgba(0, 231, 255, .08),
      rgba(138, 109, 255, .13),
      rgba(255, 211, 109, .035),
      rgba(0, 231, 255, .08)
    );
  filter: blur(96px);
  opacity: .75;
  animation: spin 28s linear infinite;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, .45) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 35%, rgba(0, 231, 255, .45) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 82%, rgba(255, 211, 109, .30) 0 1px, transparent 2px);
  background-size: 180px 180px, 240px 240px, 320px 320px;
  opacity: .20;
}

.progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--a), var(--b), var(--gold));
  z-index: 100000;
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 5;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
  background: rgba(5, 7, 19, .76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand strong {
  display: block;
  letter-spacing: .08em;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar nav a {
  padding: 10px 12px;
  text-decoration: none;
  color: var(--muted);
  border-radius: 999px;
}

.topbar nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}

.menu {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: #fff;
  border-radius: 12px;
  padding: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-weight: 800;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, .28);
}

.btn.primary {
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #04101a;
  border-color: transparent;
}

.btn.ghost {
  background: rgba(255, 255, 255, .035);
}

.btn.small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 13px;
}

.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 28px 54px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--a);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 86px);
  line-height: .93;
  letter-spacing: -.075em;
  margin: 12px 0 20px;
}

.lead {
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.48;
  color: #c6d3f2;
  max-width: 760px;
}

.actions,
.trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.actions {
  margin-top: 28px;
}

.trustline {
  margin-top: 26px;
  color: var(--muted);
}

.trustline span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
}

.globe-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  border-radius: 38px;
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.globe-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(assets/world-grid.svg) center / cover no-repeat;
  opacity: .35;
  pointer-events: none;
}

.globe {
  position: relative;
  height: 520px;
  border-radius: 32px;
  background: radial-gradient(circle, rgba(0, 231, 255, .12), rgba(138, 109, 255, .08) 42%, rgba(0, 0, 0, .12));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(0, 231, 255, .25);
  border-radius: 50%;
  transform: rotateX(70deg);
  filter: drop-shadow(0 0 18px rgba(0, 231, 255, .22));
}

.o1 {
  width: 78%;
  height: 78%;
  animation: spin 20s linear infinite;
}

.o2 {
  width: 60%;
  height: 60%;
  animation: spin 15s linear reverse infinite;
}

.o3 {
  width: 92%;
  height: 40%;
  animation: spin 18s linear infinite;
}

.core {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .22), rgba(0, 231, 255, .18), rgba(5, 7, 19, .72));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 0 80px rgba(0, 231, 255, .3);
}

.core strong {
  font-size: 28px;
  letter-spacing: .16em;
}

.core small {
  max-width: 120px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}

.node {
  position: absolute;
  width: 118px;
  height: 72px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(7, 11, 28, .76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 55px rgba(0, 0, 0, .3);
}

.node b {
  display: block;
}

.node small {
  color: var(--muted);
}

.n1 {
  left: 5%;
  top: 16%;
}

.n2 {
  right: 4%;
  top: 21%;
}

.n3 {
  left: 10%;
  bottom: 18%;
}

.n4 {
  right: 10%;
  bottom: 14%;
}

.globe-meta {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.globe-meta div {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .18);
  border-radius: 18px;
  padding: 12px;
}

.globe-meta strong {
  font-size: 28px;
  display: block;
}

.globe-meta span {
  color: var(--muted);
  font-size: 12px;
}

.worlds,
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 28px;
  scroll-margin-top: 92px;
}

.worlds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.worlds article,
.card,
.builder,
.experience-form,
.experience-feed,
.map-panel,
.command {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px;
}

.worlds span {
  color: var(--gold);
  font-weight: 900;
}

.worlds h3 {
  font-size: 22px;
  margin: 12px 0;
}

.worlds p,
.section-head p,
.card p,
.map-panel li,
.mini-disclaimer {
  color: var(--muted);
  line-height: 1.55;
}

.section-head {
  max-width: 850px;
  margin-bottom: 22px;
}

.section-head h2,
.command h2 {
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.05em;
  margin: 10px 0;
}

.command {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.command-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.command-grid div {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(0, 0, 0, .18);
}

.command-grid strong {
  color: var(--a);
  display: block;
}

.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(150px, .7fr)) auto;
  gap: 10px;
  margin: 18px 0 22px;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(2, 4, 12, .72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 14px;
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 231, 255, .55);
  box-shadow: 0 0 0 4px rgba(0, 231, 255, .08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0, rgba(0, 231, 255, .12), transparent 38%);
  pointer-events: none;
}

.card > * {
  position: relative;
}

.card .tagrow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.tag {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b9c7e8;
  font-size: 12px;
  background: rgba(255, 255, 255, .04);
}

.card h3 {
  font-size: 24px;
  margin: 0 0 8px;
}

.card .meta {
  color: var(--muted);
  font-size: 13px;
}

.card .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 44px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
}

.investor-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}

.investor-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.map-panel {
  position: sticky;
  top: 92px;
  height: max-content;
}

.map-panel h3 {
  margin-top: 0;
}

.builder .form-grid,
.experience-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.builder label,
.experience-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wide {
  grid-column: 1 / -1;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
}

.form-status {
  font-weight: 800;
}

.experience-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
}

.experience-feed {
  display: grid;
  gap: 12px;
}

.exp {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background: rgba(0, 0, 0, .14);
}

/* CUSTOM MODAL — final premium visible overlay */
.modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;

  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;

  margin: 0 !important;
  padding: 28px !important;

  display: none !important;
  align-items: center !important;
  justify-content: center !important;

  border: 0 !important;
  transform: none !important;
  overflow-y: auto !important;

  background: rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.modal.open {
  display: flex !important;
}

.modal-box {
  position: relative !important;

  width: min(900px, 92vw) !important;
  max-height: 86vh !important;
  max-height: 86dvh !important;
  overflow-y: auto !important;

  background:
    radial-gradient(circle at 20% 0%, rgba(0, 231, 255, 0.08), transparent 36%),
    linear-gradient(180deg, #080d1d 0%, #050814 100%) !important;

  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 30px !important;

  box-shadow:
    0 40px 140px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;

  color: #eef5ff !important;
}

.modal [data-modal-body] {
  padding: 38px !important;
  clear: both !important;
  color: #eef5ff !important;
}

.modal [data-modal-body] h2,
.modal [data-modal-body] h3 {
  color: #ffffff !important;
}

.modal [data-modal-body] p,
.modal [data-modal-body] .lead {
  color: #c8d4f4 !important;
}

.modal [data-modal-body] .meta {
  color: #aab8d9 !important;
}

.modal [data-modal-body] .tag {
  color: #c9d6f6 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.modal .actions {
  margin-top: 28px !important;
}

.modal .btn {
  color: #ffffff !important;
}

.modal-close {
  position: sticky !important;
  top: 14px !important;
  float: right !important;

  margin: 14px 14px 0 0 !important;

  width: 42px !important;
  height: 42px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 50% !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;

  background: #11172b !important;
  color: #ffffff !important;

  font-size: 24px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 3 !important;
}

.modal-close:hover {
  background: #1a2140 !important;
}

.footer {
  max-width: 1280px;
  margin: 60px auto 0;
  padding: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer strong {
  color: #fff;
}

.footer nav {
  display: flex;
  gap: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: .8s ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1050px) {
  .hero,
  .command,
  .investor-layout,
  .experience-layout {
    grid-template-columns: 1fr;
  }

  .worlds,
  .card-grid,
  .investor-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .map-panel {
    position: relative;
    top: auto;
  }

  .builder .form-grid,
  .experience-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px 16px;
  }

  .menu {
    display: block;
  }

  .topbar nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 74px;
    flex-direction: column;
    background: #070b19;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px;
  }

  .topbar nav.open {
    display: flex;
  }

  .auth {
    display: none;
  }

  .hero {
    padding: 54px 16px 32px;
  }

  .worlds,
  .section {
    padding: 34px 16px;
  }

  .worlds,
  .card-grid,
  .investor-list,
  .filters,
  .builder .form-grid,
  .experience-form,
  .globe-meta,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .globe {
    height: 420px;
  }

  .footer {
    flex-direction: column;
    margin-top: 30px;
  }

  .node {
    width: 106px;
  }

  .hero h1 {
    font-size: 44px;
  }
}

.fit-panel {
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 231, 255, .10), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: .9fr 1.4fr;
  gap: 18px;
  align-items: end;
}

.fit-panel h3 {
  margin: 6px 0 8px;
  font-size: 26px;
}

.fit-panel p {
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.fit-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.fit-tag {
  color: #04101a !important;
  background: linear-gradient(135deg, var(--a), var(--gold)) !important;
  border-color: transparent !important;
  font-weight: 900;
}

@media (max-width: 1050px) {
  .fit-panel {
    grid-template-columns: 1fr;
  }

  .fit-controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .fit-controls {
    grid-template-columns: 1fr;
  }
}

.orbit-status {
  display: none;
}

.orbit-status.active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  border: 1px solid rgba(0, 231, 255, .22);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 231, 255, .13), transparent 36%),
    rgba(0, 231, 255, .045);

  border-radius: 22px;
  padding: 16px 18px;
  margin: -8px 0 22px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .22);
}

.orbit-status strong {
  display: block;
  color: #ffffff;
  font-size: 16px;
}

.orbit-status p {
  margin: 4px 0 0;
  color: #c8d4f4;
}

.orbit-status span {
  color: var(--a);
  font-weight: 800;
  font-size: 13px;
  text-align: right;
}

@media (max-width: 720px) {
  .orbit-status.active {
    flex-direction: column;
    align-items: flex-start;
  }

  .orbit-status span {
    text-align: left;
  }
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 22px;
}

.dashboard-stats article {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 231, 255, .10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.dashboard-stats strong {
  display: block;
  font-size: 34px;
  color: #ffffff;
}

.dashboard-stats span {
  color: var(--muted);
  font-size: 13px;
}

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

.dash-row {
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    radial-gradient(circle at 10% 0%, rgba(138, 109, 255, .10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  border-radius: 26px;
  padding: 20px;
  box-shadow: var(--shadow);

  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.dash-row h3 {
  margin: 4px 0 10px;
  font-size: 24px;
}

.dash-row .tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.dash-controls {
  display: grid;
  gap: 10px;
  align-content: start;
}

.dash-controls label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .dash-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
  }
}

.agenda-panel {
  border: 1px solid rgba(0, 231, 255, .20);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 231, 255, .13), transparent 36%),
    radial-gradient(circle at 90% 0%, rgba(138, 109, 255, .13), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.agenda-panel h3 {
  margin: 6px 0 8px;
  font-size: 26px;
}

.agenda-panel p {
  color: var(--muted);
  margin: 0;
}

.agenda-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.agenda-mini span {
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .055);
  border-radius: 999px;
  padding: 8px 11px;
  color: #dbe6ff;
  font-size: 13px;
  font-weight: 800;
}

.agenda-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.agenda-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .18);
  border-radius: 18px;
  padding: 13px 14px;
}

.agenda-item strong {
  color: #ffffff;
}

.agenda-item p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.agenda-item > span {
  color: var(--a);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}

.agenda-item.overdue {
  border-color: rgba(255, 180, 90, .35);
  background: rgba(255, 180, 90, .06);
}

.status-tag {
  background: rgba(255, 255, 255, .075) !important;
  color: #ffffff !important;
}

.date-tag {
  border-color: rgba(0, 231, 255, .22) !important;
  color: var(--a) !important;
}

@media (max-width: 720px) {
  .agenda-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-actions .btn {
  padding: 9px 11px;
  font-size: 12px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(18px);
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 14px;

  border: 1px solid rgba(0, 231, 255, .25);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 231, 255, .18), transparent 42%),
    rgba(8, 12, 28, .94);

  color: #ffffff;
  border-radius: 999px;
  padding: 12px 16px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .45);

  opacity: 0;
  pointer-events: none;
  transition: .22s ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast span {
  font-weight: 800;
  font-size: 13px;
}

.toast a {
  color: var(--a);
  font-weight: 900;
  text-decoration: none;
  font-size: 13px;
}

@media (max-width: 720px) {
  .toast {
    left: 14px;
    right: 14px;
    bottom: 16px;
    transform: translateY(18px);
    justify-content: space-between;
  }

  .toast.show {
    transform: translateY(0);
  }
}

.agenda-item {
  cursor: pointer;
}

.agenda-item:hover {
  border-color: rgba(0, 231, 255, .28);
  background: rgba(0, 231, 255, .045);
}

.dash-row-focus {
  border-color: rgba(0, 231, 255, .45) !important;
  box-shadow:
    0 0 0 1px rgba(0, 231, 255, .20),
    0 24px 90px rgba(0, 231, 255, .10),
    var(--shadow) !important;
}

.pipeline-panel {
  border: 1px solid rgba(255, 255, 255, .13);
  background:
    radial-gradient(circle at 12% 0%, rgba(138, 109, 255, .12), transparent 36%),
    radial-gradient(circle at 90% 0%, rgba(0, 231, 255, .10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.pipeline-panel h3 {
  margin: 6px 0 8px;
  font-size: 26px;
}

.pipeline-panel p {
  color: var(--muted);
  margin: 0;
}

.pipeline-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pipeline-tab {
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .055);
  color: #dbe6ff;
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 9px;

  font-weight: 850;
  transition: .18s ease;
}

.pipeline-tab span {
  font-size: 13px;
}

.pipeline-tab strong {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(0, 0, 0, .22);
  color: #ffffff;
  font-size: 12px;
}

.pipeline-tab:hover {
  border-color: rgba(0, 231, 255, .28);
  background: rgba(0, 231, 255, .055);
}

.pipeline-tab.active {
  border-color: rgba(0, 231, 255, .36);
  background:
    linear-gradient(135deg, rgba(0, 231, 255, .22), rgba(138, 109, 255, .16));
  color: #ffffff;
}

.dashboard-filter-note {
  color: var(--muted);
  font-weight: 800;
  margin: 4px 0 14px;
  padding: 0 4px;
}

.dashboard-filter-note strong {
  color: #ffffff;
}

.priority-tag.high {
  border-color: rgba(255, 210, 90, .35) !important;
  color: #ffe18a !important;
  background: rgba(255, 210, 90, .08) !important;
}

.priority-tag.medium {
  border-color: rgba(0, 231, 255, .24) !important;
  color: var(--a) !important;
  background: rgba(0, 231, 255, .06) !important;
}

.priority-tag.low {
  border-color: rgba(255, 255, 255, .12) !important;
  color: var(--muted) !important;
  background: rgba(255, 255, 255, .045) !important;
}

.top-targets-panel {
  border: 1px solid rgba(255, 210, 90, .22);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 210, 90, .12), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(0, 231, 255, .10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}

.top-targets-panel h3 {
  margin: 6px 0 8px;
  font-size: 26px;
}

.top-targets-panel p {
  color: var(--muted);
  margin: 0;
}

.top-targets-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.top-target-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  border: 1px solid rgba(255, 210, 90, .18);
  background: rgba(255, 210, 90, .055);
  border-radius: 18px;
  padding: 13px 14px;
  cursor: pointer;
  transition: .18s ease;
}

.top-target-item:hover {
  border-color: rgba(255, 210, 90, .36);
  background: rgba(255, 210, 90, .085);
}

.top-target-item strong {
  color: #ffffff;
}

.top-target-item p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.top-target-item > span {
  color: #ffe18a;
  font-weight: 950;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .top-target-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* DASHBOARD — final clean layout */

.dash-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 24px;
  align-items: start;
}

.dash-row > div,
.dash-controls,
.tracker-grid,
.tracker-grid label,
.dash-controls label {
  min-width: 0;
}

.dash-controls {
  display: grid;
  gap: 14px;
  align-content: start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.dash-controls label,
.tracker-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dash-controls input,
.dash-controls select,
.dash-controls textarea,
.tracker-grid input,
.tracker-grid select,
.tracker-grid textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Tracker is intentionally one column: cleaner, stable, premium */
.tracker-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  width: 100%;
  max-width: 100%;
}

.tracker-grid .wide {
  grid-column: auto !important;
}

.next-action-tag {
  border-color: rgba(138, 109, 255, .28) !important;
  color: #cfc6ff !important;
  background: rgba(138, 109, 255, .07) !important;
}

@media (max-width: 1050px) {
  .dash-row {
    grid-template-columns: 1fr;
  }
}

/* FINAL FORM CONTROL NORMALIZATION — iPad/Safari fix */

.dash-controls input,
.dash-controls select,
.dash-controls textarea,
.tracker-grid input,
.tracker-grid select,
.tracker-grid textarea {
  -webkit-appearance: none !important;
  appearance: none !important;

  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;

  box-sizing: border-box !important;

  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;

  background:
    linear-gradient(180deg, rgba(2, 4, 12, .88), rgba(2, 4, 12, .74)) !important;

  color: #ffffff !important;
  padding: 14px 16px !important;

  overflow: hidden !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
}

/* Date inputs specifically */
.dash-controls input[type="date"],
.tracker-grid input[type="date"] {
  -webkit-appearance: none !important;
  appearance: none !important;

  border-radius: 16px !important;
  background:
    linear-gradient(180deg, rgba(2, 4, 12, .88), rgba(2, 4, 12, .74)) !important;

  color-scheme: dark;
  line-height: normal !important;
}

/* Safari/iPad internal date text */
.dash-controls input[type="date"]::-webkit-date-and-time-value,
.tracker-grid input[type="date"]::-webkit-date-and-time-value {
  color: #ffffff !important;
  text-align: center;
}

/* Safari/iPad date icon area */
.dash-controls input[type="date"]::-webkit-calendar-picker-indicator,
.tracker-grid input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .65;
  filter: invert(1);
}

/* Placeholder consistency */
.dash-controls input::placeholder,
.tracker-grid input::placeholder,
.dash-controls textarea::placeholder,
.tracker-grid textarea::placeholder {
  color: rgba(200, 212, 244, .58) !important;
}

/* Focus consistency */
.dash-controls input:focus,
.dash-controls select:focus,
.dash-controls textarea:focus,
.tracker-grid input:focus,
.tracker-grid select:focus,
.tracker-grid textarea:focus {
  border-color: rgba(0, 231, 255, .55) !important;
  box-shadow:
    0 0 0 4px rgba(0, 231, 255, .08),
    inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 18px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.sync-status.synced {
  border-color: rgba(88, 255, 179, .24);
  background: rgba(88, 255, 179, .07);
  color: var(--c);
}

.sync-status.syncing {
  border-color: rgba(0, 231, 255, .24);
  background: rgba(0, 231, 255, .07);
  color: var(--a);
}

.sync-status.error,
.sync-status.offline {
  border-color: rgba(255, 95, 122, .28);
  background: rgba(255, 95, 122, .07);
  color: var(--danger);
}

@media (max-width: 720px) {
  .dashboard-actions {
    align-items: flex-start;
  }

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

.sync-status {
  pointer-events: none !important;
  cursor: default !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 38px !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;

  border: 1px solid rgba(88, 255, 179, .24) !important;
  background: rgba(88, 255, 179, .07) !important;

  color: #58ffb3 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.sync-status::before {
  content: "✓";
  margin-right: 7px;
}

.dashboard-actions [data-dashboard-sync],
.sync-status {
  pointer-events: none !important;
  cursor: default !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;

  min-height: 38px !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;

  border: 1px solid rgba(88, 255, 179, .24) !important;
  background: rgba(88, 255, 179, .07) !important;

  color: #58ffb3 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;

  box-shadow: 0 10px 35px rgba(0, 0, 0, .18) !important;
}

.dashboard-actions [data-dashboard-sync]::before,
.sync-status::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
}

.dashboard-actions [data-dashboard-sync].syncing,
.sync-status.syncing {
  border-color: rgba(0, 231, 255, .24) !important;
  background: rgba(0, 231, 255, .07) !important;
  color: var(--a) !important;
}

.dashboard-actions [data-dashboard-sync].syncing::before,
.sync-status.syncing::before {
  content: "↻";
}

.dashboard-actions [data-dashboard-sync].error,
.dashboard-actions [data-dashboard-sync].offline,
.sync-status.error,
.sync-status.offline {
  border-color: rgba(255, 95, 122, .28) !important;
  background: rgba(255, 95, 122, .07) !important;
  color: var(--danger) !important;
}

.dashboard-actions [data-dashboard-sync].error::before,
.dashboard-actions [data-dashboard-sync].offline::before,
.sync-status.error::before,
.sync-status.offline::before {
  content: "!";
}

/* FINAL SYNC BADGE FIX */

.dashboard-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 20px !important;
}

.dashboard-actions > .btn,
.dashboard-actions > .sync-status,
.dashboard-actions > [data-dashboard-sync] {
  align-self: center !important;
}

.sync-status,
.dashboard-actions [data-dashboard-sync] {
  pointer-events: none !important;
  cursor: default !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;

  min-height: 38px !important;
  height: 38px !important;
  padding: 0 14px !important;

  border-radius: 999px !important;
  border: 1px solid rgba(88, 255, 179, .28) !important;
  background: rgba(88, 255, 179, .08) !important;

  color: #58ffb3 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  white-space: nowrap !important;

  transform: translateY(0) !important;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .18) !important;
}

.sync-status::before,
.dashboard-actions [data-dashboard-sync]::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
}

.sync-status.syncing,
.dashboard-actions [data-dashboard-sync].syncing {
  border-color: rgba(0, 231, 255, .26) !important;
  background: rgba(0, 231, 255, .08) !important;
  color: var(--a) !important;
}

.sync-status.syncing::before,
.dashboard-actions [data-dashboard-sync].syncing::before {
  content: "↻";
}

.sync-status.error,
.sync-status.offline,
.dashboard-actions [data-dashboard-sync].error,
.dashboard-actions [data-dashboard-sync].offline {
  border-color: rgba(255, 95, 122, .30) !important;
  background: rgba(255, 95, 122, .08) !important;
  color: var(--danger) !important;
}

.sync-status.error::before,
.sync-status.offline::before,
.dashboard-actions [data-dashboard-sync].error::before,
.dashboard-actions [data-dashboard-sync].offline::before {
  content: "!";
}

/* FINAL SYNC STATUS — label, not button */
.sync-status {
  pointer-events: none !important;
  cursor: default !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;

  min-height: auto !important;
  height: auto !important;
  padding: 0 0 0 4px !important;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  color: rgba(88, 255, 179, .92) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;

  transform: translateY(1px) !important;
}

.sync-status::before {
  content: "●" !important;
  margin-right: 2px !important;
  font-size: 9px !important;
  color: #58ffb3 !important;
  box-shadow: 0 0 18px rgba(88, 255, 179, .35);
}

.sync-status::after {
  content: " status" !important;
  margin-left: 3px !important;
  color: rgba(154, 169, 203, .78) !important;
  font-weight: 700 !important;
}

.support-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.support-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.support-form .wide {
  grid-column: 1 / -1;
}

.support-form textarea {
  min-height: 120px;
}

@media (max-width: 720px) {
  .support-form {
    grid-template-columns: 1fr;
  }
}

/* FINAL FOOTER / BOTTOM CLEANUP */

main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.section:last-of-type {
  padding-bottom: 28px !important;
}

.footer {
  margin-top: 28px !important;
  margin-bottom: 0 !important;
  padding-bottom: max(28px, env(safe-area-inset-bottom)) !important;
}

body {
  padding-bottom: 0 !important;
}

/* ATLAS UP — Pitch / Demo Experience */

.pitch-tag {
  border-color: rgba(0, 231, 255, .30) !important;
  background:
    linear-gradient(135deg, rgba(0, 231, 255, .18), rgba(138, 109, 255, .14)) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  box-shadow: 0 0 26px rgba(0, 231, 255, .08);
}

.pitch-experience {
  position: relative;
  margin: 26px 0;
  padding: 22px;
  overflow: hidden;

  border: 1px solid rgba(0, 231, 255, .22);
  border-radius: 26px;

  background:
    radial-gradient(circle at 10% 0%, rgba(0, 231, 255, .16), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(138, 109, 255, .18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028));

  box-shadow:
    0 24px 90px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

.pitch-experience::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .055), transparent);
  transform: translateX(-100%);
  animation: pitchSweep 8s ease-in-out infinite;
  opacity: .75;
}

.pitch-experience > * {
  position: relative;
  z-index: 1;
}

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

.pitch-experience-head .eyebrow {
  margin: 0 0 7px;
}

.pitch-experience-head h3 {
  margin: 0 !important;
  font-size: clamp(24px, 3vw, 34px) !important;
  letter-spacing: -.035em;
}

.pitch-experience p {
  color: #c8d4f4 !important;
  line-height: 1.58;
  margin: 10px 0 0;
}

.pitch-orb {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 50%;

  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .85), rgba(0, 231, 255, .45) 25%, rgba(138, 109, 255, .28) 55%, rgba(5, 7, 19, .35) 100%);

  border: 1px solid rgba(255, 255, 255, .18);

  box-shadow:
    0 0 34px rgba(0, 231, 255, .28),
    0 0 80px rgba(138, 109, 255, .16);
}

.pitch-actions {
  margin-top: 18px !important;
}

/* Startup cards — stronger pitch surface */

.startup-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.startup-card .links {
  margin-top: auto;
  padding-top: 14px;
}

.startup-card .links .btn {
  white-space: nowrap;
}

/* Builder form — premium clarity */

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

.builder::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(circle at 14% 0%, rgba(0, 231, 255, .075), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(138, 109, 255, .08), transparent 34%);
}

.builder > * {
  position: relative;
  z-index: 1;
}

.builder label,
.experience-form label,
.support-form label {
  display: grid;
  gap: 7px;
}

.builder input,
.builder select,
.builder textarea {
  min-height: 52px;
}

.builder textarea {
  line-height: 1.5;
}

/* Better public tags and links */

.tagrow {
  align-items: center;
}

.card .links {
  align-items: center;
}

.card .links .btn,
.modal .actions .btn {
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.card .links .btn:hover,
.modal .actions .btn:hover {
  box-shadow: 0 14px 44px rgba(0, 231, 255, .10);
}

/* Support signals wording surface */

.modal [data-modal-body] h3 {
  margin-top: 26px;
}

.modal [data-modal-body] .tagrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

/* Mobile polish */

@media (max-width: 720px) {
  .pitch-experience {
    padding: 18px;
    border-radius: 22px;
  }

  .pitch-experience-head {
    align-items: flex-start;
  }

  .pitch-orb {
    width: 44px;
    height: 44px;
  }

  .startup-card .links .btn {
    width: 100%;
  }

  .modal .actions .btn {
    width: 100%;
  }
}

@keyframes pitchSweep {
  0%, 78% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ATLAS UP — Founder ID */
.founder-id-panel {
  border: 1px solid rgba(255, 255, 255, .14);
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 231, 255, .11), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(138, 109, 255, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px;
  margin: 20px 0 22px;
}

.founder-id-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.founder-avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 30px;
  font-weight: 950;
  color: #04101a;
  background: linear-gradient(135deg, var(--a), var(--b));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 18px 70px rgba(0, 231, 255, .16);
  overflow: hidden;
}

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

.founder-id-top h3 {
  margin: 4px 0 6px;
  font-size: 28px;
}

.founder-id-top p {
  margin: 0;
  color: var(--muted);
}

.founder-id-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.founder-id-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.founder-startups {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.founder-startups h3 {
  margin: 4px 0 14px;
  font-size: 24px;
}

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

.founder-startup-row {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .16);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.founder-startup-row h4 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.founder-startup-row p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1050px) {
  .founder-id-form,
  .founder-startup-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .founder-id-top {
    align-items: flex-start;
  }

  .founder-avatar {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }
}

.form-field {
  display: block;
}

.form-label {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.sector-field {
  grid-column: span 2;
}

.sector-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 58px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(3,7,18,.72);
}

.sector-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.sector-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sector-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  color: var(--muted);
  background: rgba(255,255,255,.05);
  font-weight: 800;
  font-size: 13px;
}

.sector-chip input:checked + span {
  color: #04101a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--a), var(--gold));
}

.startup-founders {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}

.startup-founder-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: radial-gradient(circle at 30% 20%, rgba(50,220,255,.9), rgba(110,90,255,.55));
  color: #fff;
  font-weight: 800;
}

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

.startup-founders .meta {
  margin: 0 0 3px;
}

.startup-founders strong {
  display: block;
  color: #fff;
  font-size: .95rem;
  line-height: 1.35;
}

.startup-meta-block {
  margin-bottom: 18px;
}

.startup-meta-block .meta {
  margin: 0;
}

.location-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px !important;
  opacity: 0.85;
}

.location-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  display: inline-block;
  background: linear-gradient(135deg, #21d4fd, #8b5cf6);
  box-shadow: 0 0 14px rgba(33, 212, 253, 0.55);
}

.startup-card > .tagrow {
  margin-top: 20px;
  margin-bottom: 20px;
}

.startup-card .links {
  margin-top: 22px;
}

.founder-access-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(160, 180, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(0, 219, 255, 0.10), transparent 36%),
    rgba(9, 13, 28, 0.72);
}

.founder-access-head {
  margin-bottom: 18px;
}

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

.founder-access-card {
  padding: 18px;
  border: 1px solid rgba(160, 180, 255, 0.16);
  border-radius: 22px;
  background: rgba(3, 7, 18, 0.55);
}

.founder-access-card h4 {
  margin: 0 0 14px;
}

.access-key-result {
  margin-top: 16px;
}

.access-key-box {
  padding: 16px;
  border: 1px solid rgba(0, 219, 255, 0.35);
  border-radius: 20px;
  background: rgba(0, 219, 255, 0.08);
}

.access-key-box code {
  display: block;
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  overflow-wrap: anywhere;
}

.founder-access-existing {
  margin-top: 18px;
}

.founder-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(160, 180, 255, 0.12);
}

.founder-access-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

@media (max-width: 800px) {
  .founder-access-grid {
    grid-template-columns: 1fr;
  }

  .founder-access-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.founder-access-local {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(160, 180, 255, 0.12);
}