:root {
  --ink: #172337;
  --muted: #7788a4;
  --line: #dfe7f3;
  --panel: rgba(255, 255, 255, 0.92);
  --mint: linear-gradient(135deg, #fff7df 0%, #fff0c7 100%);
  --green: #ff6b00;
  --warm-panel: #fff0d2;
  --fundraising-badge: #f6a313;
  --fundraising-line: #e99b0d;
  --interest: #4c54df;
  --interest-panel: #4c54df;
  --interest-hero: linear-gradient(135deg, #f4f2ff 0%, #ecebff 100%);
  --interest-line: #5b5ff0;
  --status-open: #0fb45b;
  --status-closed: #8c98a7;
  --blue: #465ad8;
  --navy: #182238;
  --danger: #d65454;

  /* Dark public theme */
  --bg-dark: #0b0c10;
  --ink-inverse: #f5f7fc;
  --body-inverse: #d7dce8;
  --muted-dark: #98a2b8;
  --line-dark: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gold: #f6a313;
  --gold-soft: #ffc95e;
  --gold-grad: linear-gradient(135deg, #ffc95e 0%, #ff8a00 100%);
  --danger-dark: #ff8f8f;
}

* {
  box-sizing: border-box;
}

/* 사이트 전체(공개 페이지 + LP Deal Hub)가 하나의 다크 테마를 공유한다. */
html {
  background: var(--bg-dark);
  color-scheme: dark;
}

body {
  margin: 0;
  color: var(--ink-inverse);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: transparent;
  min-height: 100vh;
}

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

button {
  border: 0;
  cursor: pointer;
}

/* ---------- Public dark site ---------- */

.public-site {
  min-height: 100vh;
  color: var(--ink-inverse);
  background:
    radial-gradient(ellipse 900px 480px at 50% -80px, rgba(246, 163, 19, 0.14), transparent 70%),
    radial-gradient(ellipse 700px 420px at 12% 88%, rgba(246, 163, 19, 0.05), transparent 70%),
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 96px),
    var(--bg-dark);
}

.public-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1180px, calc(100vw - 32px));
  margin: 14px auto 0;
  padding: 10px 12px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(15, 16, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.public-brand {
  padding: 0;
  background: transparent;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.public-nav button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-dark);
  font-weight: 700;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease;
}

.public-nav button:hover {
  color: var(--ink-inverse);
}

.public-nav button.active {
  background: rgba(246, 163, 19, 0.14);
  color: var(--gold-soft);
}

.public-nav button.nav-cta {
  margin-left: 6px;
  background: var(--gold-grad);
  color: #1c1204;
  font-weight: 800;
}

.public-nav button.nav-cta:hover {
  color: #1c1204;
  filter: brightness(1.06);
}

/* Hero */

.home-hero {
  width: min(980px, calc(100vw - 36px));
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 72px 0 24px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  margin-bottom: 26px;
  font-size: 15px;
  letter-spacing: 0.28em;
}

.home-hero h1 {
  margin: 0;
  color: var(--ink-inverse);
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-copy {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted-dark);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.hero-actions.left {
  justify-content: flex-start;
}

.cta-primary,
.cta-ghost {
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
}

.cta-primary {
  background: var(--gold-grad);
  color: #1c1204;
  box-shadow: 0 14px 44px rgba(255, 138, 0, 0.28);
  transition: filter 140ms ease, transform 140ms ease;
}

.cta-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.cta-ghost {
  background: var(--glass);
  color: var(--ink-inverse);
  border: 1px solid var(--line-dark);
  transition: background 140ms ease;
}

.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.scroll-cue {
  margin: 64px 0 0;
  color: rgba(255, 255, 255, 0.32);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "↓";
  display: block;
  margin-top: 8px;
  font-size: 16px;
  letter-spacing: 0;
}

/* Shared public layout widths */

.page-hero,
.home-section,
.members-body,
.member-grid,
.about-layout,
.year-section,
.benefit-list,
.contact-box-wrap,
.finale,
.public-footer {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
}

/* Shared page hero (all subpages use the same title system) */

.page-hero {
  padding: 96px 0 40px;
}

.page-hero h1 {
  margin: 0;
  color: var(--ink-inverse);
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.page-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted-dark);
  font-size: 18px;
  line-height: 1.7;
}

/* Home scroll sections */

.home-section {
  padding: 76px 0;
  border-top: 1px solid var(--line-dark);
}

.home-section .eyebrow {
  margin-bottom: 14px;
}

.home-section h2 {
  margin: 0;
  color: var(--ink-inverse);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.home-section-copy {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted-dark);
  font-size: 17px;
  line-height: 1.75;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.stat {
  min-width: 190px;
  padding: 22px 26px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: var(--glass-grad);
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: 32px;
  letter-spacing: -0.01em;
}

.stat span {
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 700;
}

.link-more {
  display: inline-block;
  margin-top: 30px;
  padding: 0;
  background: transparent;
  color: var(--gold-soft);
  font-weight: 800;
  font-size: 16px;
}

.tier-rows {
  margin-top: 28px;
}

.tier-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-dark);
}

.tier-row span {
  color: var(--gold-soft);
  font-size: 22px;
  font-weight: 800;
}

.tier-row p {
  margin: 0;
  color: var(--body-inverse);
  font-size: 17px;
  line-height: 1.6;
}

.finale {
  padding: 150px 0 130px;
  text-align: center;
}

.finale p {
  max-width: 940px;
  margin: 0 auto;
  color: var(--ink-inverse);
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  font-weight: 800;
}

/* What We Are */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 48px;
  align-items: center;
  padding: 24px 0 90px;
}

.about-copy p {
  margin: 0 0 24px;
  color: var(--body-inverse);
  font-size: 19px;
  line-height: 1.8;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-logo {
  min-height: 400px;
  display: grid;
  place-items: center;
  padding: 32px;
  border: 1px solid var(--line-dark);
  border-radius: 26px;
  background:
    radial-gradient(ellipse 420px 320px at 50% 40%, rgba(246, 163, 19, 0.12), transparent 70%),
    var(--glass-grad);
}

.about-logo img {
  width: min(340px, 82%);
  height: auto;
  filter: invert(1) brightness(1.05);
}

/* Members */

.members-body {
  padding: 8px 0 90px;
}

.members-body .stat-row {
  margin: 8px 0 30px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.member-card {
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: var(--glass-grad);
}

.member-card h2 {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 18px;
}

.member-card p {
  margin: 0;
  color: var(--body-inverse);
  font-size: 16px;
  line-height: 1.65;
}

/* Portfolio */

.year-section {
  padding: 14px 0 46px;
}

.year-label {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gold-soft);
  font-size: 28px;
  font-weight: 800;
}

.year-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-dark);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.project-tile {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 12px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: var(--glass-grad);
  transition: border-color 140ms ease, transform 140ms ease;
}

.project-tile:hover {
  border-color: rgba(246, 163, 19, 0.4);
  transform: translateY(-2px);
}

.project-tile h3 {
  margin: 0;
  color: var(--ink-inverse);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.project-logo-box {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.project-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-initial {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--gold-grad);
  color: #1c1204;
  font-size: 22px;
  font-weight: 900;
}

.project-logo-box.logo-missing .project-logo {
  display: none;
}

.project-logo-box.logo-missing .project-initial {
  display: grid;
}

/* What Partners Get */

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 0 40px;
}

.benefit-card {
  padding: 26px 28px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: var(--glass-grad);
}

.benefit-card span {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.benefit-card p {
  margin: 10px 0 0;
  color: var(--body-inverse);
  font-size: 16.5px;
  line-height: 1.65;
}

.contact-box {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 90px;
  padding: 40px;
  border: 1px solid rgba(246, 163, 19, 0.35);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(246, 163, 19, 0.13) 0%, rgba(255, 138, 0, 0.04) 100%);
}

.contact-box h2 {
  margin: 0 0 6px;
  color: var(--ink-inverse);
  font-size: 28px;
}

.contact-note {
  margin: 0 0 26px;
  color: var(--muted-dark);
}

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

.contact-rows > div {
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: rgba(11, 12, 16, 0.45);
}

.contact-rows span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-rows strong {
  color: var(--ink-inverse);
  font-size: 17px;
}

/* Footer */

.public-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 46px;
  border-top: 1px solid var(--line-dark);
  color: var(--muted-dark);
  font-weight: 700;
}

.public-footer button {
  padding: 0;
  background: transparent;
  color: var(--gold-soft);
  font-weight: 800;
}

/* ---------- Protected app (dark, matches public site) ---------- */

.shell {
  min-height: 100vh;
  color: var(--ink-inverse);
  background:
    radial-gradient(ellipse 900px 480px at 50% -80px, rgba(246, 163, 19, 0.12), transparent 70%),
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 96px),
    var(--bg-dark);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  width: min(1180px, calc(100vw - 32px));
  margin: 14px auto 0;
  padding: 10px 12px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(15, 16, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 154px;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-logo.on-dark {
  filter: invert(1) brightness(1.05);
}

.public-header .brand-logo {
  width: 128px;
}

.login-card .brand-logo {
  width: 168px;
}

.tabs {
  display: flex;
  gap: 4px;
}

.tab {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted-dark);
  background: transparent;
  font-weight: 700;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease;
}

.tab:hover {
  color: var(--ink-inverse);
}

.tab.active {
  color: var(--gold-soft);
  background: rgba(246, 163, 19, 0.14);
}

.tab.admin-tab {
  color: #a3a8ff;
}

.tab.admin-tab:hover {
  color: #c9ccff;
}

.tab.admin-tab.active {
  color: #c9ccff;
  background: rgba(91, 95, 240, 0.2);
}

.account {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-dark);
  font-size: 13px;
}

.ghost,
.primary,
.danger {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.ghost {
  background: var(--glass);
  color: var(--ink-inverse);
  border: 1px solid var(--line-dark);
}

.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.primary {
  background: var(--gold-grad);
  color: #1c1204;
}

.primary:hover {
  filter: brightness(1.06);
}

.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.danger {
  background: rgba(226, 75, 74, 0.16);
  color: var(--danger-dark);
  border: 1px solid rgba(226, 75, 74, 0.35);
}

.content {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

/* ---------- Login (dark) ---------- */

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink-inverse);
  background:
    radial-gradient(ellipse 780px 460px at 50% -60px, rgba(246, 163, 19, 0.13), transparent 70%),
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 96px),
    var(--bg-dark);
}

.login-card {
  display: grid;
  grid-template-columns: minmax(330px, 360px) minmax(300px, max-content);
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(880px, 100%);
  padding: 40px 48px 40px 72px;
  background: var(--glass-grad);
  border: 1px solid var(--line-dark);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.login-copy {
  min-width: 0;
  width: 360px;
  align-self: center;
  transform: translateX(18px);
}

.login-card h1 {
  margin: 20px 0 10px;
  color: var(--ink-inverse);
  font-size: 34px;
  letter-spacing: -0.01em;
}

.login-card p {
  margin: 0 0 24px;
  color: var(--muted-dark);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: normal;
}

.login-card p.error {
  margin: 0 0 18px;
  color: var(--danger-dark);
}

.login-card .cta-primary {
  width: 100%;
}

.login-card .hint {
  margin-top: 18px;
  font-size: 13px;
}

.login-visual {
  display: grid;
  place-items: center;
  transform: translateX(-18px);
}

.login-visual img {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.auth-login-page {
  grid-template-rows: 104px minmax(0, 1fr) 76px;
  place-items: stretch;
  padding: 0 64px;
}

.login-brand {
  display: flex;
  align-items: center;
}

.login-brand .brand-logo {
  width: 178px;
}

.auth-login-page .auth-login-card {
  position: relative;
  place-self: center;
  display: flex;
  width: min(700px, calc(100vw - 128px));
  min-height: 446px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 157, 29, 0.035), transparent 34%),
    #111217;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.auth-login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #ff9d1d;
}

.auth-login-card .login-copy {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 84px 58px;
  text-align: center;
  transform: none;
}

.login-accent {
  width: 42px;
  height: 4px;
  margin-bottom: 26px;
  border-radius: 2px;
  background: #ff9d1d;
}

.auth-login-card h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 760;
}

.auth-login-card .login-lead {
  margin: 18px 0 36px;
  color: #b7bac6;
  font-size: 19px;
  line-height: 1.7;
}

.google-login-button {
  width: min(100%, 520px);
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid #eceef3;
  border-radius: 6px;
  color: #121318;
  background: #fff;
  font-size: 17px;
  font-weight: 700;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.google-login-button:hover {
  background: #f6f7fa;
  border-color: #fff;
  transform: translateY(-1px);
}

.google-login-button:focus-visible {
  outline: 3px solid rgba(255, 157, 29, 0.45);
  outline-offset: 3px;
}

.google-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: transparent;
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 43%, #fbbc05 0 66%, #ea4335 0 86%, #4285f4 0);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.google-arrow {
  color: #5f626b;
  font-size: 21px;
  text-align: right;
}

.auth-login-card .login-access-note {
  width: min(100%, 520px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
  color: #999eae;
  font-size: 14px;
  line-height: 1.65;
}

.login-lock {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
  border: 1px solid #777b89;
  border-radius: 5px;
}

.login-lock::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -7px;
  width: 8px;
  height: 8px;
  border: 1px solid #777b89;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #5f626c;
  font-size: 12px;
}

/* ---------- Forms and app panels (light) ---------- */

.login-card form,
.admin-form,
.apply-form {
  display: grid;
  gap: 14px;
}

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

.field span {
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-inverse);
  padding: 12px 13px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(152, 162, 184, 0.6);
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(246, 163, 19, 0.55);
  box-shadow: 0 0 0 3px rgba(246, 163, 19, 0.16);
}

.hint,
.empty {
  color: var(--muted-dark);
  line-height: 1.6;
}

.error {
  color: var(--danger-dark);
  font-weight: 700;
}

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

.section-head h1 {
  margin: 0 0 6px;
  color: var(--ink-inverse);
  font-size: 28px;
}

.section-head p {
  margin: 0;
  color: var(--muted-dark);
}

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

.deal-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.deal-list-tabs {
  display: inline-flex;
  width: max-content;
  padding: 4px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.deal-list-tabs button {
  min-height: 34px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--muted-dark);
  font-weight: 800;
}

.deal-list-tabs button.active {
  background: var(--gold-grad);
  color: #1c1204;
}

.deal-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
  align-items: end;
  gap: 12px;
}

.deal-filters.search-only {
  grid-template-columns: minmax(220px, 1fr) auto;
}

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

.filter-field span {
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 700;
}

.deal-result-count {
  margin: 0;
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 700;
}

.deal-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  transition: transform 160ms ease, border-color 160ms ease;
}

.deal-card:hover {
  transform: translateY(-2px);
  border-color: rgba(246, 163, 19, 0.35);
}

.deal-card.closed {
  opacity: 0.62;
}

.deal-card.upcoming {
  opacity: 0.82;
}

.deal-card.closed:hover,
.deal-card.upcoming:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12);
}

.deal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
}

.deal-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  color: inherit;
}

.deal-logo-box {
  position: relative;
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.deal-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-logo-box > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  color: #1c1204;
  font-size: 20px;
  font-weight: 900;
}

.deal-logo-box.lg {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.deal-logo-box.lg > span {
  font-size: 28px;
}

.deal-name {
  min-width: 0;
}

.deal-name h2 {
  margin: 0 0 6px;
  color: var(--ink-inverse);
  font-size: 19px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deal-label-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-dark);
}

.tag.fundraising {
  background: rgba(246, 163, 19, 0.14);
  color: var(--gold-soft);
}

.tag.interest-gathering {
  background: rgba(91, 95, 240, 0.2);
  color: #a3a8ff;
}

.participation-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(226, 75, 74, 0.16);
  color: #ff8f8f;
  font-size: 12px;
  font-weight: 900;
}

.deal-state {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3ddc8e;
  font-size: 13px;
  font-weight: 800;
}

.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.open {
  color: #3ddc8e;
}

.status-pill.upcoming {
  color: #a3a8ff;
}

.status-pill.closed {
  color: var(--status-closed);
}

.cta-small {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gold-grad);
  color: #1c1204;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: filter 140ms ease;
}

.cta-small:hover {
  filter: brightness(1.06);
}

.cta-small.muted {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  color: var(--muted-dark);
}

.deal-key {
  padding: 18px 22px;
  border-top: 1px solid var(--line-dark);
}

.deal-key strong {
  display: block;
  margin-top: 6px;
  color: var(--ink-inverse);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.capacity-block {
  display: grid;
  gap: 10px;
  padding: 0 22px 18px;
}

.capacity-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.capacity-line .meta-label {
  margin-bottom: 0;
}

.capacity-line strong {
  color: var(--ink-inverse);
  font-size: 14px;
  text-align: right;
}

.capacity-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.capacity-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f6a313 0%, #ffe4a3 100%);
  transition: width 180ms ease;
}

.deal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line-dark);
}

.deal-card-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 22px 16px;
}

.detail-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  min-height: 164px;
  padding: 24px 28px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-identity > div {
  min-width: 0;
}

.detail-identity .detail-title {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

.badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--fundraising-badge);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.badge.closed {
  background: var(--status-closed);
  color: #fff;
}

.badge.open {
  background: var(--status-open);
  color: #fff;
}

.badge.upcoming {
  background: rgba(91, 95, 240, 0.82);
  color: #fff;
}

.meta-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 700;
}

.meta-value {
  color: var(--ink-inverse);
  font-size: 14px;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  gap: 28px;
}

.deal-detail-main {
  display: grid;
  gap: 22px;
}

.detail-panel,
.admin-panel,
.table-panel {
  padding: 26px;
  background: var(--glass-grad);
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.detail-panel h2,
.admin-panel h2,
.admin-panel h3,
.table-panel h2 {
  color: var(--ink-inverse);
}

.detail-title {
  margin: 10px 0 8px;
  color: var(--ink-inverse);
  font-size: 30px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
  gap: 18px;
}

.manager {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.manager strong {
  color: var(--ink-inverse);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--body-inverse);
  font-weight: 800;
  font-size: 13px;
}

.detail-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.detail-section,
.detail-capacity-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-capacity-card {
  align-self: stretch;
  min-height: 164px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.detail-section h2,
.detail-capacity-card h2 {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink-inverse);
  font-size: 18px;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.detail-section-head h2 {
  border-bottom: 0;
}

.detail-info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
}

.detail-info-row {
  display: grid;
  gap: 7px;
  padding: 16px 20px;
  background: rgba(18, 20, 27, 0.96);
}

.detail-info-row:last-child {
  border-bottom: 0;
}

.detail-info-row strong {
  color: var(--ink-inverse);
  font-size: 15px;
  line-height: 1.45;
}

.detail-section .capacity-block,
.detail-capacity-card .capacity-block {
  padding: 20px;
}

.detail-capacity-card .capacity-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.description-box {
  white-space: pre-wrap;
  min-height: 220px;
  padding: 22px 20px;
  background: rgba(11, 12, 16, 0.34);
  color: var(--body-inverse);
  line-height: 1.7;
}

.description-section .description-box {
  border: 0;
  border-radius: 0;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.admin-page {
  display: grid;
  gap: 18px;
}

.admin-breadcrumb {
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 800;
}

.admin-section-head {
  margin-bottom: 0;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-subnav-item {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--body-inverse);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 800;
  white-space: nowrap;
}

.admin-subnav-item:hover,
.admin-subnav-item.active {
  color: #c9ccff;
  background: rgba(91, 95, 240, 0.2);
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-menu-card {
  display: grid;
  gap: 12px;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  text-align: left;
  color: var(--body-inverse);
  background: var(--glass-grad);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.admin-menu-card:hover {
  border-color: rgba(201, 204, 255, 0.48);
  transform: translateY(-1px);
}

.admin-menu-card span {
  color: #c9ccff;
  font-size: 13px;
  font-weight: 900;
}

.admin-menu-card strong {
  color: var(--ink-inverse);
  font-size: 22px;
}

.admin-menu-card small {
  color: var(--muted-dark);
  font-size: 14px;
  line-height: 1.5;
}

.admin-page-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
}

.stack-panel {
  margin-top: 24px;
}

.row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  color: var(--body-inverse);
  font-size: 14px;
  vertical-align: top;
}

.table td strong {
  color: var(--ink-inverse);
}

.table th {
  color: var(--muted-dark);
  font-size: 12px;
}

.wallet-cell,
.note-cell {
  max-width: 260px;
  overflow-wrap: anywhere;
}

.link-button {
  padding: 0;
  color: var(--gold-soft);
  background: transparent;
  font-weight: 800;
}

.link-button.danger-link {
  color: var(--danger-dark);
}

/* Notices */

.notice-list {
  display: grid;
  gap: 18px;
}

.notice-form-panel {
  margin-bottom: 24px;
}

.notice-card {
  padding: 26px;
  background: var(--glass-grad);
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.notice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.notice-head h2 {
  margin: 0 0 6px;
  color: var(--ink-inverse);
  font-size: 21px;
}

.notice-meta {
  margin: 0;
  color: var(--muted-dark);
  font-size: 13px;
  font-weight: 700;
}

.notice-body {
  white-space: pre-wrap;
  margin: 16px 0 20px;
  line-height: 1.7;
  color: var(--body-inverse);
}

.reply-block {
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 12px;
}

.reply-item {
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.reply-item p {
  margin: 6px 0 0;
  line-height: 1.6;
  color: var(--body-inverse);
  overflow-wrap: anywhere;
}

.reply-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.reply-meta strong {
  color: var(--ink-inverse);
}

.reply-meta span {
  color: var(--muted-dark);
}

.reply-form {
  display: flex;
  gap: 10px;
}

.reply-form input {
  flex: 1;
}

/* My Page and read-only rows */

.mypage-panel {
  max-width: 520px;
}

.me-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dark);
}

.me-value {
  color: var(--ink-inverse);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.submitted-application {
  display: grid;
}

.nickname-form {
  margin-top: 12px;
}

.member-edit-form {
  margin: 12px 0 16px;
  padding: 16px;
  border: 1px solid rgba(246, 163, 19, 0.4);
  border-radius: 14px;
  background: rgba(246, 163, 19, 0.08);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  background: rgba(20, 22, 30, 0.96);
  color: #fff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

@media (max-width: 860px) {
  .public-header {
    top: 10px;
    width: calc(100vw - 20px);
    padding: 8px 10px 8px 16px;
  }

  .public-header .brand-logo {
    width: 104px;
  }

  .public-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .public-nav button {
    padding: 0 11px;
    font-size: 14px;
  }

  .public-nav button.nav-cta {
    display: none;
  }

  .home-hero {
    min-height: auto;
    padding: 72px 0 24px;
  }

  .home-hero h1 {
    font-size: clamp(34px, 8.6vw, 46px);
  }

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

  .scroll-cue {
    margin-top: 44px;
  }

  .page-hero {
    padding: 64px 0 28px;
  }

  .page-hero h1 {
    font-size: clamp(40px, 11vw, 56px);
  }

  .home-section {
    padding: 52px 0;
  }

  .member-grid,
  .benefit-list,
  .contact-rows,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-layout {
    gap: 28px;
    padding-bottom: 64px;
  }

  .about-logo {
    min-height: 280px;
    order: -1;
  }

  .tier-row {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .finale {
    padding: 96px 0 84px;
  }

  .contact-box {
    padding: 28px 22px;
  }

  .topbar {
    top: 10px;
    width: calc(100vw - 20px);
    align-items: stretch;
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    border-radius: 22px;
  }

  .tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .account {
    justify-content: space-between;
  }

  .deal-grid,
  .admin-grid,
  .admin-dashboard-grid,
  .form-grid,
  .deal-filters,
  .detail-hero,
  .detail-section-grid,
  .detail-info-list,
  .detail-meta {
    grid-template-columns: 1fr;
  }

  .admin-subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .deal-list-tabs {
    width: 100%;
  }

  .deal-list-tabs button {
    flex: 1;
  }

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

  .deal-card-top {
    flex-wrap: wrap;
  }

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .content {
    padding-top: 28px;
  }

  .login-card {
    grid-template-columns: 1fr;
    width: min(460px, 100%);
    padding: 32px 28px;
    gap: 24px;
  }

  .login-copy {
    width: auto;
    transform: none;
  }

  .login-visual {
    order: -1;
    transform: none;
  }

  .login-visual img {
    width: min(100%, 260px);
  }

  .auth-login-page {
    grid-template-rows: 84px minmax(0, 1fr) 54px;
    padding: 0 20px;
  }

  .login-brand .brand-logo {
    width: 154px;
  }

  .auth-login-page .auth-login-card {
    width: 100%;
    min-height: 0;
    padding: 0;
    gap: 0;
  }

  .auth-login-card .login-copy {
    width: 100%;
    padding: 48px 32px;
  }

  .auth-login-card h1 {
    font-size: 40px;
  }

  .auth-login-card .login-lead {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .auth-login-card .login-copy {
    padding: 42px 22px;
  }

  .auth-login-card h1 {
    font-size: 36px;
  }

  .google-login-button {
    grid-template-columns: 26px minmax(0, 1fr) 20px;
    gap: 8px;
    padding: 0 14px;
    font-size: 15px;
  }

  .auth-login-card .login-access-note {
    max-width: 280px;
  }
}
