:root {
  --green-900: #02366a;
  --green-800: #073f79;
  --green-700: #0b4f93;
  --green-500: #2f7fc1;
  --green-100: #eef4fb;
  --mint: #f7f1e6;
  --ink: #092844;
  --muted: #617083;
  --line: #e0d5c4;
  --white: #ffffff;
  --amber: #c59b5f;
  --sky: #f2e6d2;
  --shadow: 0 20px 50px rgba(2, 54, 106, .14);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #e5e5e5;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  text-decoration: none;
  color: var(--green-900);
}
.brand img {
  width: 180px;
  height: 48px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--green-800);
  background: var(--green-100);
}
.main-nav .nav-cta {
  color: var(--white);
  background: var(--green-700);
}
.main-nav .nav-cta:hover, .main-nav .nav-cta[aria-current="page"] {
  color: var(--white);
  background: var(--green-900);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--green-900);
}

.hero, .page-hero, .prize-hero, .partner-profile {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px) clamp(18px, 4vw, 32px);
}
.portal-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px clamp(14px, 3vw, 28px) 48px;
}
.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.portal-hero h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(38px, 6vw, 72px);
  line-height: .95;
}
.portal-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.portal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.portal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.portal-stats article {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(2, 54, 106, .08);
}
.portal-stats strong {
  display: block;
  color: var(--green-900);
  font-size: 28px;
  line-height: 1;
}
.portal-stats span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}
.portal-content,
.portal-sidebar {
  min-width: 0;
}
.portal-sidebar {
  display: grid;
  gap: 14px;
}
.portal-panel,
.side-box,
.supporter-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(2, 54, 106, .09);
}
.portal-panel {
  padding: 16px;
}
.compact-head,
.side-box-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.compact-head h2,
.side-box h2,
.portal-band h2,
.portal-lower h2 {
  margin: 0;
  color: var(--green-900);
  font-size: 22px;
  line-height: 1.15;
}
.side-box {
  padding: 14px;
}
.side-box-head {
  align-items: center;
  margin-bottom: 10px;
}
.side-box-head a {
  color: var(--green-800);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.compact-list,
.rank-list {
  display: grid;
  gap: 8px;
}
.compact-list article,
.rank-list article {
  display: grid;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: var(--green-100);
}
.compact-list strong,
.rank-list strong {
  color: var(--green-900);
  font-size: 15px;
  line-height: 1.2;
}
.compact-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.rank-list article {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
}
.rank-list span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-900);
  font-size: 12px;
  font-weight: 900;
}
.rank-list em {
  color: var(--green-800);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}
.portal-band {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.supporter-card,
.info-card {
  padding: 16px;
}
.supporter-card {
  color: var(--white);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
}
.supporter-card .eyebrow,
.supporter-card h2 {
  color: var(--white);
}
.supporter-card p,
.info-card p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 15px;
}
.supporter-card p {
  color: rgba(255, 255, 255, .86);
}
.portal-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}
.compact-steps {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.compact-steps article {
  padding: 14px;
  box-shadow: none;
}
.compact-steps span {
  width: 32px;
  height: 32px;
}
.compact-steps h3 {
  margin-top: 10px;
  font-size: 16px;
}
.compact-steps p {
  margin-bottom: 0;
  font-size: 14px;
}
.widget-compact {
  display: grid;
  gap: 12px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 74px);
}
.hero-content h1, .page-hero h1, .prize-hero h1, .partner-profile h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(48px, 8vw, 104px);
  line-height: .95;
  letter-spacing: 0;
}
.page-hero h1, .prize-hero h1, .partner-profile h1 { font-size: clamp(40px, 7vw, 76px); }
.hero-lead, .page-hero p, .prize-hero p, .partner-profile p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-actions, .button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn.primary { color: var(--white); background: var(--green-700); box-shadow: 0 10px 22px rgba(2, 54, 106, .24); }
.btn.primary:hover { background: var(--green-900); }
.btn.secondary { color: var(--green-900); background: var(--green-100); }
.btn.secondary:hover { background: #dde9f5; }
.btn.large { min-height: 54px; padding-inline: 24px; }

.hero-stats, .stats-grid, .mini-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hero-stats article, .stats-grid article, .mini-stats article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.hero-stats strong, .stats-grid strong, .mini-stats strong {
  display: block;
  color: var(--green-800);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}
.hero-stats span, .stats-grid span, .mini-stats span { color: var(--muted); font-weight: 700; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) clamp(18px, 4vw, 32px);
}
.section h2, .supporter-highlight h2, .support-message h2 {
  margin: 0 0 14px;
  color: var(--green-900);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}
.section-head { max-width: 780px; margin-bottom: 26px; }
.split {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}
.split p:last-child { margin: 0; color: var(--muted); font-size: 19px; }
.steps, .feature-grid, .partner-layout, .ranking, .partner-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.steps article, .feature-grid article, .certificate, .qr-card, .progress-card, .partner-list article, .prize-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-700);
  font-weight: 900;
}
.steps h3, .feature-grid h2, .certificate h2, .qr-card h2 { margin: 16px 0 8px; color: var(--green-900); }
.steps p, .feature-grid p, .certificate p, .qr-card p { color: var(--muted); }

.supporter-highlight, .support-message {
  max-width: var(--max);
  margin: clamp(24px, 5vw, 48px) auto;
  padding: clamp(30px, 5vw, 54px);
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
}
.supporter-highlight {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 28px;
}
.supporter-highlight .eyebrow, .supporter-highlight h2, .support-message h2 { color: var(--white); }
.supporter-highlight p, .support-message p { color: rgba(255,255,255,.86); }
.prize-box {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .12);
}
.prize-box span, .prize-card span { display: block; opacity: .78; }
.prize-box strong, .prize-card strong { display: block; margin-top: 8px; font-size: 28px; line-height: 1.15; }

.ranking { grid-template-columns: repeat(3, 1fr); }
.progress-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--green-900);
  font-weight: 900;
}
.progress {
  height: 12px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--green-100);
}
.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-700), var(--amber));
  transition: width 900ms ease;
}
.progress-card.wide { max-width: 720px; margin-top: 24px; }

.widget-section {
  display: grid;
  grid-template-columns: .8fr 1fr;
  gap: 28px;
  align-items: start;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.news-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.news-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--green-100);
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.news-card:hover .news-image img {
  transform: scale(1.04);
}
.news-card-body {
  padding: 12px;
}
.news-card time {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.news-card h3 {
  margin: 0 0 8px;
  color: var(--green-900);
  font-size: 16px;
  line-height: 1.22;
}
.news-card h3 a {
  text-decoration: none;
}
.news-card h3 a:hover {
  text-decoration: underline;
}
.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.empty-news {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.empty-news h3 {
  margin: 0 0 8px;
  color: var(--green-900);
}
.empty-news p {
  margin: 0;
  color: var(--muted);
}
.article-view {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 72px) clamp(18px, 4vw, 32px);
}
.article-view h1 {
  margin: 10px 0 12px;
  color: var(--green-900);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
}
.article-view time {
  display: block;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 800;
}
.article-view > img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article-lead {
  color: var(--green-900);
  font-size: 22px;
  font-weight: 800;
}
.article-body {
  color: var(--ink);
  font-size: 18px;
}
.article-body img {
  height: auto;
  border-radius: 12px;
}
.nsz-widget {
  border: 2px solid var(--green-700);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}
.nsz-widget-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  color: var(--white);
  background: var(--green-800);
}
.nsz-widget-body { padding: 20px; }
.nsz-widget-body strong { color: var(--green-900); font-size: 22px; }
.nsz-widget-body p { color: var(--muted); }
.nsz-widget small { display: block; margin-top: 12px; color: var(--muted); }

.page-main { min-height: 70vh; }
.page-hero.compact { padding-bottom: 24px; }
.form-shell {
  max-width: 980px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  padding: 0 clamp(18px, 4vw, 32px);
}
.join-form {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field.full { grid-column: 1 / -1; }
label, legend { color: var(--green-900); font-weight: 800; }
input, textarea, select {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #cdbfaa;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }
.error {
  display: block;
  min-height: 20px;
  margin-top: 4px;
  color: #b3261e;
  font-size: 14px;
}
.check-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.check-group legend { padding: 0 8px; }
.check-group label, .consent { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.check-group input, .consent input { width: auto; margin: 0; }
.form-message { color: var(--green-800); font-weight: 800; }
.inline-form { display: grid; gap: 10px; }

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
  gap: 20px;
  align-items: start;
  max-width: 1220px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  padding: 0 clamp(18px, 4vw, 32px);
}
.join-layout .join-form { min-width: 0; }
.join-layout .join-form {
  padding: 20px;
  border-radius: 8px;
}
.join-layout .join-form .form-grid { gap: 10px 14px; }
.join-layout .join-form input,
.join-layout .join-form textarea,
.join-layout .join-form select {
  margin-top: 5px;
  padding: 9px 11px;
  border-radius: 6px;
}
.join-layout .join-form textarea { min-height: 92px; }
.join-layout .join-form .error {
  min-height: 15px;
  margin-top: 2px;
  font-size: 12px;
}
.join-section-head { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; }
.join-form .join-section-head { gap: 9px; margin-bottom: 12px; }
.join-section-head:not(:first-child) { margin-top: 28px; }
.join-form .join-section-head:not(:first-child) { margin-top: 18px; }
.join-section-head > span {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green-800);
  font-weight: 900;
}
.join-section-head h2, .join-section-head p { margin: 0; }
.join-section-head h2 { color: var(--green-900); font-size: 21px; }
.join-section-head p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.type-fields { margin-top: 12px; padding: 12px; border-left: 4px solid var(--green-800); background: var(--green-100); }
.type-fields h3 { margin: 0 0 9px; color: var(--green-900); font-size: 17px; }
.join-layout .check-group { gap: 8px 12px; margin: 12px 0; padding: 12px; border-radius: 7px; }
.join-layout .consent { margin-top: 4px; font-size: 14px; }
.join-layout .join-form .btn.large { min-height: 46px; }
.settlement-field { position: relative; }
.settlement-results {
  position: absolute;
  z-index: 20;
  top: calc(100% - 20px);
  right: 0;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.settlement-results button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--green-900);
  background: var(--white);
  text-align: left;
  cursor: pointer;
}
.settlement-results button:hover,
.settlement-results button.active { background: var(--green-100); box-shadow: inset 4px 0 0 var(--green-800); }
.settlement-results span { color: var(--muted); font-size: 13px; }
.widget-builder {
  position: sticky;
  top: 78px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }
.segmented button {
  min-height: 40px;
  border: 1px solid var(--green-800);
  color: var(--green-900);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}
.segmented button + button { border-left: 0; }
.segmented button.active { color: var(--white); background: var(--green-800); }
.widget-preview {
  display: grid;
  min-height: 104px;
  margin-bottom: 16px;
  padding: 14px;
  place-items: center;
  border: 1px solid var(--line);
  background: #f5f6f7;
}
.widget-preview iframe { width: 100%; border: 0; }
.code-copy textarea {
  min-height: 128px;
  border-radius: 4px;
  color: #eaf2fa;
  background: #13283b;
  font: 13px/1.5 Consolas, monospace;
}
.code-copy .btn { width: 100%; margin-top: 8px; }
.copy-status { min-height: 20px; margin-bottom: 0; color: var(--green-800); font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.auth-shell {
  max-width: 620px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  padding: 0 clamp(18px, 4vw, 32px);
}
.auth-card {
  display: grid;
  gap: 16px;
}
.auth-message {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--green-900);
  background: var(--green-100);
  font-weight: 800;
}
.auth-message.error {
  color: #8f160f;
  background: #ffe8e5;
}
.auth-message.warning {
  color: #704a0d;
  background: #fff4dc;
}
.auth-message.success {
  color: var(--green-900);
  background: var(--green-100);
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-dev-link {
  margin: 0;
  font-weight: 900;
}

.partner-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}
.partner-switch-panel {
  margin-top: 16px;
}
.partner-switch-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.partner-account-side {
  display: grid;
  gap: 14px;
}
.partner-account-side h2 {
  margin: 0;
  color: var(--green-900);
  font-size: 20px;
}
.account-widget-preview {
  width: 100%;
  height: 174px;
  border: 0;
}
.account-widget-code {
  min-height: 118px;
  padding-right: 46px;
  border-radius: 4px;
  color: #eaf2fa;
  background: #13283b;
  font: 13px/1.5 Consolas, monospace;
}
.account-code-copy {
  position: relative;
}
.account-copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 7px;
  color: #fff;
  background: #e00012;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.account-copy-button:hover {
  background: #b6000e;
}
.account-copy-status {
  min-height: 20px;
  margin: -4px 0 0;
  color: var(--green-800);
  font-size: 13px;
  font-weight: 900;
}
.account-widget-builder {
  display: grid;
  gap: 12px;
}
.account-widget-builder .segmented {
  margin-bottom: 0;
}

.partner-profile {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
}
.partner-detail-hero {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.partner-detail-hero h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
}
.partner-detail-hero p {
  color: var(--muted);
}
.partner-logo-large,
.partner-row-logo {
  display: grid;
  place-items: center;
  color: var(--white);
  background: #e00012;
  font-weight: 900;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .75);
}
.partner-logo-large {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 24px;
  font-size: 42px;
}
.partner-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.type-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.type-card h2,
.partner-dashboard h2,
.partner-table-panel h2,
.partner-activity-panel h2 {
  margin: 0 0 10px;
  color: var(--green-900);
  font-size: 22px;
  line-height: 1.15;
}
.tag-list,
.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag-list li,
.check-list li {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-900);
  background: var(--green-100);
  font-size: 13px;
  font-weight: 800;
}
.partner-activity-panel,
.partner-table-panel {
  margin-top: 16px;
}
.activity-score {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--white);
  background: var(--green-900);
  font-size: 13px;
  font-weight: 900;
}
.partner-directory {
  display: grid;
  gap: 10px;
}
.partner-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.partner-row-logo {
  width: 54px;
  aspect-ratio: 1;
  border-radius: 14px;
  font-size: 18px;
}
.partner-row-main h3 {
  margin: 0;
  color: var(--green-900);
  font-size: 18px;
}
.partner-row-main h3 a {
  text-decoration: none;
}
.partner-row-main h3 a:hover {
  text-decoration: underline;
}
.partner-row-main p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.partner-row-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.partner-row-metrics span {
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--muted);
  background: var(--green-100);
  font-size: 12px;
  font-weight: 800;
}
.partner-row-metrics strong {
  color: var(--green-900);
}
.logo-placeholder {
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 28px;
  color: var(--white);
  background: var(--green-700);
  font-size: 42px;
  font-weight: 900;
}
.meta { font-weight: 900; color: var(--green-700) !important; }
.partner-layout { grid-template-columns: 1fr 1fr; }
.qr-placeholder {
  width: 180px;
  aspect-ratio: 1;
  margin: 12px 0;
  background:
    linear-gradient(90deg, var(--green-900) 10px, transparent 10px) 0 0 / 24px 24px,
    linear-gradient(var(--green-900) 10px, transparent 10px) 0 0 / 24px 24px,
    var(--mint);
  border: 12px solid var(--white);
  box-shadow: inset 0 0 0 2px var(--green-800);
}
.text-link { color: var(--green-800); font-weight: 900; }
.support-message { text-align: center; }

.mini-stats { margin-top: 28px; }
.partner-list { grid-template-columns: repeat(4, 1fr); }
.partner-list article { display: grid; gap: 5px; }
.partner-list span { color: var(--muted); }

.prize-hero {
  display: grid;
  grid-template-columns: 1fr .7fr;
  gap: 28px;
  align-items: center;
}
.prize-card {
  background: var(--sky);
  color: var(--green-900);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px clamp(18px, 4vw, 48px);
  color: var(--white);
  background: var(--green-900);
}
.site-footer p { margin: 0; color: rgba(255,255,255,.78); }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; }
.site-footer a { color: var(--white); font-weight: 800; text-decoration: none; }

@media (max-width: 1024px) {
  .join-layout { grid-template-columns: 1fr; }
  .widget-builder { position: static; }
  .hero, .supporter-highlight, .split, .widget-section, .prize-hero, .portal-layout, .portal-lower, .partner-account-layout { grid-template-columns: 1fr; }
  .portal-band { grid-template-columns: repeat(2, 1fr); }
  .steps, .feature-grid, .partner-list { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portal-sidebar { grid-template-columns: repeat(3, 1fr); }
  .partner-dashboard { grid-template-columns: 1fr 1fr; }
  .partner-row { grid-template-columns: 54px minmax(0, 1fr); }
  .partner-row-metrics { justify-content: flex-start; grid-column: 2; }
  .partner-row > .btn { grid-column: 2; width: fit-content; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 73px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { border-radius: 10px; }
  .portal-main { padding-top: 12px; }
  .portal-hero { grid-template-columns: 1fr; padding: 18px; }
  .portal-actions { flex-wrap: wrap; }
  .portal-stats { grid-template-columns: repeat(2, 1fr); }
  .portal-sidebar, .portal-band { grid-template-columns: 1fr; }
  .compact-steps { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; }
  .hero-stats, .stats-grid, .mini-stats, .form-grid, .partner-layout, .ranking, .partner-profile, .partner-switch-form { grid-template-columns: 1fr; }
  .partner-detail-hero, .partner-dashboard { grid-template-columns: 1fr; }
  .partner-logo-large { width: 110px; }
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-placeholder { width: 120px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .site-header { padding-inline: 14px; }
  .brand img { width: 150px; height: 40px; }
  .brand span { font-size: 15px; }
  .portal-hero h1 { font-size: 38px; }
  .portal-stats strong { font-size: 23px; }
  .portal-stats article, .portal-panel, .side-box, .supporter-card, .info-card { padding: 12px; }
  .partner-detail-hero { padding: 16px; }
  .partner-row { grid-template-columns: 44px minmax(0, 1fr); }
  .partner-row-logo { width: 44px; }
  .partner-row-metrics { grid-column: 1 / -1; }
  .partner-row > .btn { grid-column: 1 / -1; width: 100%; }
  .compact-head, .side-box-head { flex-direction: column; gap: 6px; }
  .compact-steps { grid-template-columns: 1fr; }
  .hero-actions, .button-row { flex-direction: column; }
  .btn { width: 100%; }
  .hero-stats article, .steps article, .feature-grid article, .join-form, .widget-builder { padding: 18px; }
  .steps, .feature-grid, .check-group, .partner-list { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .news-card-body { padding: 12px; }
  .news-card p { display: none; }
  .supporter-highlight, .support-message { border-radius: 0; }
}
