:root {
  --bg: #090b0d;
  --panel: rgba(18, 21, 22, 0.9);
  --panel-strong: #15191a;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f5f2e8;
  --muted: #9aa5a3;
  --gold: #f5c542;
  --gold-2: #ffdc73;
  --teal: #2bd7b7;
  --danger: #ff7a55;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(9, 11, 13, 0.05), #090b0d 78%),
    linear-gradient(112deg, rgba(245, 197, 66, 0.12) 0%, transparent 34%),
    linear-gradient(248deg, rgba(43, 215, 183, 0.08) 0%, transparent 32%),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(245, 197, 66, 0.55);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffe08a, #bf8720);
  color: #0c0d0b;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(245, 197, 66, 0.2);
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 16, 17, 0.72);
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 6px;
  color: #c8d0cd;
  font-size: 14px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.top-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.social-link:hover {
  border-color: rgba(245, 197, 66, 0.45);
  color: var(--gold-2);
}

.connect-button,
.lang-toggle,
.primary-button,
.ghost-button,
.contract-card button {
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

.connect-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 126px;
  height: 42px;
  padding: 0 16px;
  background: #f4cf63;
  color: #12130f;
}

.lang-toggle {
  height: 42px;
  min-width: 58px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.button-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111;
}

.hero {
  position: relative;
  min-height: calc(100vh - 44px);
  padding: 22px 0 54px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(9, 11, 13, 0.96) 0%, rgba(9, 11, 13, 0.82) 46%, rgba(9, 11, 13, 0.66) 100%),
    url("assets/ideaai-command-center.png");
  background-size: cover;
  background-position: center;
  opacity: 0.72;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.submit-panel,
.command-panel,
.allocation-board,
.rule-list article,
.pipe-step,
.contract-card,
.profile-panel,
.my-submission-card,
.whitepaper-doc,
.whitepaper-aside,
.paper-stat,
.paper-flow {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.submit-panel {
  padding: 24px;
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 660px;
  margin-bottom: 0;
  font-size: clamp(34px, 4.25vw, 58px);
  line-height: 1;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 3.1vw, 48px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.live-chip {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(43, 215, 183, 0.32);
  border-radius: 999px;
  background: rgba(43, 215, 183, 0.11);
  color: #9af7df;
  font-size: 12px;
  font-weight: 800;
}

.hero-copy {
  max-width: 620px;
  margin: 14px 0 0;
  color: #c1cac6;
  font-size: 15px;
  line-height: 1.48;
}

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

.gate-item {
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.gate-item span,
.status-grid span,
.allocation-row span,
.contract-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.gate-item strong {
  display: block;
  margin-top: 9px;
  color: var(--gold-2);
  font-size: 18px;
}

.idea-form {
  display: grid;
  gap: 12px;
}

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

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

label span {
  display: block;
  margin-bottom: 7px;
  color: #d7dedb;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(5, 7, 8, 0.78);
  color: var(--text);
  outline: none;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(245, 197, 66, 0.72);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.12);
}

::placeholder {
  color: #697472;
}

.form-actions {
  display: grid;
  grid-template-columns: 160px 132px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.primary-button {
  height: 46px;
  background: linear-gradient(135deg, #ffd765, #e6a823);
  color: #11120e;
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ghost-button,
.contract-card button {
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

#formStatus {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
}

.command-panel {
  align-self: start;
  padding: 14px;
  background: rgba(14, 17, 18, 0.76);
}

.visual-window {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #080a0a;
}

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

.visual-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(7, 9, 10, 0.76);
  backdrop-filter: blur(14px);
}

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

.visual-overlay strong {
  color: var(--gold-2);
  font-size: 13px;
  text-align: right;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.status-grid div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.status-grid strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.profile-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  box-shadow: none;
  background: rgba(14, 17, 18, 0.78);
}

.profile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 10px;
  align-items: start;
}

.profile-head h2 {
  max-width: none;
  font-size: 22px;
  line-height: 1.12;
}

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

.profile-stats div {
  min-height: 66px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.profile-stats span,
.my-submission-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--gold-2);
  font-size: 22px;
}

.my-submission-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.my-submission-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.045);
}

.my-submission-card strong {
  display: block;
  margin-top: 6px;
  color: #fff9e8;
  font-size: 15px;
}

.my-submission-card p {
  margin: 4px 0 0;
  color: #c8d0cd;
  font-size: 13px;
  line-height: 1.45;
}

.my-submission-card a {
  color: #bdf8e8;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.my-submission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.my-submission-tags span {
  padding: 6px 8px;
  border: 1px solid rgba(245, 197, 66, 0.24);
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.08);
  color: var(--gold-2);
}

#profileStatus {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

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

.section.band {
  width: 100%;
  padding: 76px max(16px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head.compact {
  align-items: start;
  display: block;
}

.whitepaper-section {
  padding-top: 84px;
}

.whitepaper-head {
  align-items: flex-start;
}

.section-note {
  max-width: 390px;
  margin: 8px 0 0;
  color: #c1cac6;
  font-size: 15px;
  line-height: 1.55;
}

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

.whitepaper-doc {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(245, 197, 66, 0.08), transparent 34%),
    rgba(18, 21, 22, 0.9);
}

.paper-section + .paper-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.paper-section h3,
.paper-flow h3 {
  margin-bottom: 16px;
  color: #fff9e8;
  font-size: 24px;
}

.paper-section p {
  max-width: 820px;
  margin-bottom: 15px;
  color: #d4dcd8;
  font-size: 16px;
  line-height: 1.8;
}

.paper-section p:last-child {
  margin-bottom: 0;
}

.paper-thesis {
  padding: 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(245, 197, 66, 0.08);
  color: var(--gold-2) !important;
  font-weight: 700;
}

.mechanism-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mechanism-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.mechanism-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(43, 215, 183, 0.12);
  color: var(--teal);
  font-weight: 800;
}

.mechanism-list p {
  margin: 3px 0 0;
  font-size: 15px;
  line-height: 1.7;
}

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

.value-list div {
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.value-list strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-2);
  font-size: 15px;
}

.value-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.whitepaper-aside {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 10px;
  padding: 12px;
  box-shadow: none;
  background: rgba(14, 17, 18, 0.78);
}

.paper-stat {
  padding: 15px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.045);
}

.paper-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.paper-stat strong {
  display: block;
  margin-top: 10px;
  color: var(--gold-2);
  font-size: 24px;
}

.paper-flow {
  padding: 16px;
  box-shadow: none;
  background:
    linear-gradient(180deg, rgba(43, 215, 183, 0.09), transparent 60%),
    rgba(255, 255, 255, 0.045);
}

.paper-flow h3 {
  margin-top: 0;
  font-size: 20px;
}

.paper-flow ol {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.paper-flow li {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #dce4df;
  font-size: 14px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.16);
}

.treasury-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.allocation-board {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--panel-strong);
}

.allocation-row {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 10px;
  align-items: center;
}

.allocation-row strong {
  text-align: right;
  color: var(--gold-2);
  font-size: 24px;
}

meter {
  grid-column: 1 / -1;
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

meter::-webkit-meter-bar {
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

meter::-webkit-meter-optimum-value {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
}

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

.rule-list article {
  padding: 18px;
  box-shadow: none;
}

.rule-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: rgba(245, 197, 66, 0.13);
  color: var(--gold-2);
  font-weight: 800;
}

.rule-list p,
.pipe-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.pipe-step {
  min-height: 190px;
  padding: 16px;
  box-shadow: none;
}

.pipe-step span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 800;
}

.pipe-step.active {
  border-color: rgba(245, 197, 66, 0.5);
  background: rgba(245, 197, 66, 0.08);
}

.pipe-step.active span {
  background: var(--gold);
  color: #11120e;
}

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

.contract-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px;
  box-shadow: none;
}

.contract-card code {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  padding: 12px;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #bdf8e8;
  font-size: 13px;
}

.contract-card code.empty-address::before {
  content: "0x...";
  color: #5f6b68;
}

.contract-card button {
  width: 88px;
  height: 38px;
}

.contract-card button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.admin-shell {
  min-height: 100vh;
}

.admin-home-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-weight: 800;
}

.admin-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.admin-login,
.admin-panel,
.submission-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  max-width: 920px;
  margin: 70px auto 0;
  padding: 30px;
}

.admin-login h1 {
  margin-bottom: 16px;
}

.admin-login p {
  max-width: 560px;
  margin-bottom: 0;
  color: #c8d0cd;
  line-height: 1.65;
}

.admin-login-form,
.admin-config-form {
  display: grid;
  gap: 12px;
}

#loginStatus,
#configStatus {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.admin-panel {
  padding: 20px;
  box-shadow: none;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

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

.admin-check span {
  margin-bottom: 0;
}

.admin-check.inline {
  align-self: end;
  padding-bottom: 10px;
}

.admin-actions {
  grid-template-columns: 160px 1fr;
}

.admin-summary {
  display: grid;
  gap: 14px;
}

.vault-payout-card {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vault-payout-card > div:not(.vault-payout-actions) {
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.vault-payout-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.vault-payout-card strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--gold-2);
  font-size: 14px;
}

.vault-payout-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#payoutStatus.error-text {
  color: var(--danger);
}

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

.admin-stat-grid div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-stat-grid span,
.submission-meta span,
.submission-body span,
.submission-id {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-stat-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--gold-2);
  font-size: 28px;
}

.submissions-panel {
  margin-top: 14px;
}

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

.admin-list-head h2 {
  font-size: 32px;
}

.admin-list-head select {
  width: 230px;
}

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

.submission-card {
  padding: 18px;
  box-shadow: none;
  background: rgba(18, 21, 22, 0.82);
}

.submission-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.submission-top h3 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.submission-top p {
  max-width: 760px;
  margin-bottom: 0;
  color: #c8d0cd;
  line-height: 1.55;
}

.submission-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.submission-badges span {
  padding: 7px 9px;
  border: 1px solid rgba(245, 197, 66, 0.28);
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.08);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
}

.submission-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.submission-meta div,
.submission-body div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.submission-meta strong,
.submission-body strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: #f4f0e3;
  font-size: 13px;
}

.submission-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.4fr) minmax(220px, 0.4fr);
  gap: 10px;
  margin-bottom: 14px;
}

.submission-body > p {
  min-height: 92px;
  margin-bottom: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: #d4dcd8;
  line-height: 1.65;
}

.review-form {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.submission-actions {
  display: grid;
  grid-template-columns: 140px 150px 150px 150px 1fr;
  gap: 10px;
  align-items: center;
}

.submission-actions p {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .treasury-layout,
  .contract-grid,
  .whitepaper-layout,
  .admin-grid,
  .admin-login,
  .submission-body {
    grid-template-columns: 1fr;
  }

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

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

  .whitepaper-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    width: min(100% - 24px, 1180px);
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .connect-button {
    min-width: 98px;
  }

  .top-actions {
    gap: 6px;
  }

  .lang-toggle {
    min-width: 52px;
    padding: 0 10px;
  }

  .hero-grid,
  .section {
    width: min(100% - 24px, 1180px);
  }

  .submit-panel {
    padding: 16px;
  }

  .panel-head {
    display: block;
  }

  .live-chip {
    display: inline-block;
    margin-top: 14px;
  }

  h1 {
    font-size: 38px;
  }

  .gate-row,
  .form-grid,
  .form-grid.three,
  .profile-head,
  .profile-stats,
  .rule-list,
  .pipeline,
  .status-grid,
  .value-list,
  .submission-meta,
  .submission-actions,
  .admin-actions {
    grid-template-columns: 1fr;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .admin-main {
    width: min(100% - 24px, 1180px);
    padding-top: 24px;
  }

  .admin-login {
    margin-top: 26px;
    padding: 18px;
  }

  .admin-list-head,
  .submission-top {
    display: block;
  }

  .admin-list-head select {
    width: 100%;
    margin-top: 12px;
  }

  .submission-badges {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .section,
  .section.band {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .section-head {
    display: block;
  }

  .section-note {
    max-width: none;
  }

  .whitepaper-doc {
    padding: 18px;
  }

  .paper-section p {
    font-size: 15px;
  }

  .mechanism-list li {
    grid-template-columns: 30px 1fr;
  }

  .mechanism-list span {
    width: 30px;
    height: 30px;
  }

  .pipe-step {
    min-height: 150px;
  }

  .pipe-step span {
    margin-bottom: 22px;
  }
}
