:root {
  --ink: #151714;
  --ink-soft: #272925;
  --paper: #f4f4ef;
  --white: #ffffff;
  --muted: #74776f;
  --line: #d9dbd3;
  --lime: #c9ff38;
  --coral: #ff6b57;
  --blue: #5ab5e8;
  --yellow: #ffd447;
  --radius: 6px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--header-height);
  padding: 0 clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.22);
  transition: background .25s, color .25s, border .25s;
}
.site-header.is-solid,
.site-header.on-light { background: rgba(244,244,239,.96); color: var(--ink); border-color: var(--line); backdrop-filter: blur(14px); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-size: 15px; font-weight: 800; }
.brand-mark { width: 28px; height: 28px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; padding: 5px; background: var(--lime); }
.brand-mark i { display: block; background: var(--ink); height: 45%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 70%; }
.main-nav { display: flex; align-items: center; height: 100%; gap: 36px; }
.main-nav a { position: relative; display: grid; place-items: center; height: 100%; font-size: 14px; font-weight: 600; color: inherit; opacity: .72; }
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a.is-active::after { content: ""; position: absolute; bottom: -1px; width: 100%; height: 3px; background: var(--lime); }
.header-action { justify-self: end; display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 700; }
.header-action b { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); background: var(--lime); }
.menu-button { display: none; color: inherit; border: 0; background: none; font-size: 24px; }

.view { display: none; min-height: 100vh; }
.view.is-active { display: block; }
.page-view { padding-top: var(--header-height); }
.admin-view { padding-top: 0; background: #eff0ea; }

.hero {
  position: relative;
  min-height: min(88vh, 900px);
  height: 760px;
  color: var(--white);
  overflow: hidden;
  background: #242722 url('/assets/club-fair.jpg') center 45% / cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,14,11,.88) 0%, rgba(12,14,11,.52) 48%, rgba(12,14,11,.18) 100%), linear-gradient(0deg, rgba(12,14,11,.74), transparent 45%); }
.hero-noise { position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(rgba(255,255,255,.7) .55px, transparent .7px); background-size: 5px 5px; mix-blend-mode: soft-light; }
.hero-content { position: relative; z-index: 2; width: min(1280px, calc(100% - 10vw)); margin: 0 auto; padding-top: clamp(170px, 22vh, 220px); }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-family: Arial, sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0; }
.eyebrow span { display: block; width: 28px; height: 3px; background: var(--lime); }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(58px, 8vw, 112px); line-height: .94; font-weight: 900; letter-spacing: 0; }
.hero-copy { margin: 28px 0 0; font-size: clamp(18px, 2vw, 26px); font-weight: 400; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { min-height: 46px; border: 1px solid transparent; border-radius: 2px; padding: 0 20px; display: inline-flex; justify-content: center; align-items: center; gap: 24px; font-size: 13px; font-weight: 800; transition: transform .18s, background .18s, color .18s, border .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.button-primary:hover { background: #d8ff6d; }
.button-ghost { color: var(--white); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.65); }
.button-dark { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-dark:hover { background: #30332e; }
.button-light { color: var(--ink); background: var(--white); border-color: var(--line); }
.button-secondary { color: var(--ink); background: transparent; border-color: #9b9e95; }
.hero-stats { position: absolute; z-index: 2; right: 0; bottom: 0; width: min(54%, 780px); height: 132px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.32); border-left: 1px solid rgba(255,255,255,.32); background: rgba(20,22,19,.64); backdrop-filter: blur(14px); }
.hero-stats div { position: relative; padding: 25px 20px; border-right: 1px solid rgba(255,255,255,.2); }
.hero-stats span { display: block; margin-bottom: 10px; color: rgba(255,255,255,.7); font-size: 11px; }
.hero-stats strong { font: 800 34px/1 Arial, sans-serif; }
.hero-stats em { margin-left: 5px; font-size: 11px; font-style: normal; color: rgba(255,255,255,.65); }
.scroll-cue { position: absolute; z-index: 2; left: 5vw; bottom: 38px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; display: grid; place-items: center; }
.scroll-cue span { width: 1px; height: 16px; background: var(--white); animation: scrollCue 1.8s infinite; }
@keyframes scrollCue { 0%,100% { transform: translateY(-3px); opacity: .45; } 50% { transform: translateY(4px); opacity: 1; } }

.landscape-section, .recent-section { padding: 100px clamp(20px, 5vw, 72px); }
.landscape-section { background: var(--paper); }
.section-heading { max-width: 1380px; margin: 0 auto 46px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-kicker { margin: 0 0 12px; color: #62655e; font: 700 11px/1.3 Arial, sans-serif; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 58px); line-height: 1; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 12px; }
.landscape-grid { max-width: 1380px; margin: auto; display: grid; grid-template-columns: 1.4fr .85fr .9fr; min-height: 430px; border: 1px solid var(--line); }
.landscape-grid article { padding: clamp(24px, 3vw, 44px); }
.category-panel { background: var(--white); }
.pulse-panel { color: var(--white); background: var(--ink); }
.campus-panel { background: #e8e9e2; }
.panel-topline { display: flex; justify-content: space-between; align-items: start; }
.panel-topline p, .panel-label { margin: 0 0 7px; color: var(--muted); font-size: 11px; }
.panel-topline strong { font-size: 20px; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; font: 700 10px Arial, sans-serif; }
.live-indicator i { width: 6px; height: 6px; background: var(--coral); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,107,87,.16); }
.category-visual { display: grid; grid-template-columns: 1.2fr 1fr; gap: 38px; align-items: center; margin-top: 38px; }
.donut { position: relative; aspect-ratio: 1; max-width: 260px; border-radius: 50%; background: conic-gradient(var(--lime) 0 25%, var(--coral) 25% 50%, var(--blue) 50% 75%, var(--yellow) 75%); }
.donut::before { content: ""; position: absolute; inset: 25%; border-radius: 50%; background: var(--white); }
.donut > div { position: absolute; z-index: 1; inset: 0; display: grid; place-content: center; text-align: center; }
.donut strong { font: 900 38px/1 Arial, sans-serif; }
.donut span { margin-top: 6px; color: var(--muted); font-size: 10px; }
.legend { display: grid; gap: 15px; }
.legend-row { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 9px; font-size: 12px; }
.legend-row i { width: 9px; height: 9px; }
.legend-row b { font: 700 12px Arial, sans-serif; }
.panel-label { color: rgba(255,255,255,.55); }
.pulse-score { display: flex; align-items: end; gap: 5px; margin-top: 18px; }
.pulse-score strong { font: 900 76px/.9 Arial, sans-serif; }
.pulse-score span { margin-bottom: 8px; color: rgba(255,255,255,.5); font: 700 12px Arial, sans-serif; }
.pulse-line { height: 138px; display: flex; align-items: end; gap: 7px; margin: 42px 0 26px; border-bottom: 1px solid rgba(255,255,255,.25); }
.pulse-line i { flex: 1; min-width: 3px; background: var(--lime); opacity: .82; }
.pulse-note { margin: 0; color: rgba(255,255,255,.5); font-size: 11px; line-height: 1.75; }
.campus-bars { margin-top: 46px; display: grid; gap: 26px; }
.campus-bar-head { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: 12px; }
.campus-bar-head strong { font-family: Arial, sans-serif; }
.campus-bar-track { height: 8px; background: #ced0c8; overflow: hidden; }
.campus-bar-track i { display: block; height: 100%; background: var(--coral); transform-origin: left; animation: growBar .6s ease both; }
.campus-bar:nth-child(2) i { background: var(--blue); }
.campus-bar:nth-child(3) i { background: var(--yellow); }
.campus-bar:nth-child(4) i { background: var(--ink); }
@keyframes growBar { from { transform: scaleX(0); } }

.recent-section { color: var(--white); background: var(--ink); }
.light-heading .section-kicker { color: rgba(255,255,255,.5); }
.light-heading > a { padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.5); font-size: 12px; }
.recent-list { max-width: 1380px; margin: auto; border-top: 1px solid rgba(255,255,255,.25); }
.recent-row { min-height: 96px; display: grid; grid-template-columns: 55px 1.4fr 1fr 1fr 1fr 1fr auto; align-items: center; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.18); transition: padding .2s, background .2s; }
.recent-row:hover { padding: 0 16px; background: rgba(255,255,255,.05); }
.recent-row .index { color: rgba(255,255,255,.35); font: 700 11px Arial, sans-serif; }
.recent-row strong { font-size: 19px; }
.recent-row span:not(.index):not(.status-dot) { color: rgba(255,255,255,.6); font-size: 12px; }
.recent-row .recruiting { color: var(--lime) !important; }
.recent-row b { font-size: 18px; font-weight: 500; }
.empty-public { padding: 56px 0; text-align: center; color: rgba(255,255,255,.55); }
.home-cta { padding: 68px clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 30px; background: var(--lime); }
.home-cta p { margin: 0 0 10px; font: 800 10px Arial, sans-serif; }
.home-cta h2 { margin: 0; max-width: 900px; font-size: clamp(30px, 4.3vw, 64px); line-height: 1.08; }
.round-arrow { flex: none; width: 94px; height: 94px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-size: 34px; transition: .2s; }
.round-arrow:hover { color: var(--lime); background: var(--ink); transform: rotate(12deg); }

/* Form */
.form-shell { min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: minmax(310px, 35%) 1fr; }
.form-intro { position: sticky; top: var(--header-height); height: calc(100vh - var(--header-height)); padding: 58px clamp(28px, 5vw, 72px); color: var(--white); background: var(--ink); overflow: auto; }
.back-link { display: inline-flex; gap: 12px; align-items: center; margin-bottom: clamp(45px, 8vh, 90px); color: #60635c; font-size: 12px; }
.back-link.light { color: rgba(255,255,255,.68); }
.form-intro .section-kicker { color: rgba(255,255,255,.45); }
.form-intro h1 { margin: 0; font-size: clamp(38px, 4vw, 60px); line-height: 1.05; }
.form-progress-copy { margin-top: 52px; display: flex; justify-content: space-between; align-items: center; }
.form-progress-copy span { color: var(--lime); font: 800 12px Arial, sans-serif; }
.form-progress-copy p { margin: 0; font-size: 12px; color: rgba(255,255,255,.6); }
.progress-track { height: 2px; margin-top: 15px; background: rgba(255,255,255,.18); }
.progress-track i { display: block; width: 33.333%; height: 100%; background: var(--lime); transition: width .3s ease; }
.step-list { margin: 48px 0 0; padding: 0; list-style: none; display: grid; gap: 30px; }
.step-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; opacity: .36; transition: opacity .2s; }
.step-list li.is-active, .step-list li.is-done { opacity: 1; }
.step-list b { padding-top: 3px; font: 800 11px Arial, sans-serif; }
.step-list li.is-active b { color: var(--lime); }
.step-list span { font-size: 14px; font-weight: 700; }
.step-list small { display: block; margin-top: 6px; color: rgba(255,255,255,.48); font-size: 11px; font-weight: 400; }
.club-form { min-width: 0; padding: clamp(48px, 7vw, 88px) clamp(24px, 7vw, 100px) 60px; background: var(--paper); }
.form-step { display: none; max-width: 860px; margin: auto; animation: stepIn .3s ease; }
.form-step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } }
.form-step-heading { margin-bottom: 42px; }
.form-step-heading > span { color: var(--coral); font: 800 10px Arial, sans-serif; }
.form-step-heading h2 { margin: 10px 0 0; font-size: clamp(28px, 3vw, 42px); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.field { min-width: 0; display: grid; align-content: start; gap: 9px; margin: 0; padding: 0; border: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span, .field legend { font-size: 12px; font-weight: 700; }
.field em, .consent em { color: var(--coral); font-style: normal; }
.field input, .field select, .field textarea, .filters input, .filters select, .drawer-panel select {
  width: 100%; min-height: 48px; border: 1px solid #c9cbc3; border-radius: 3px; outline: none; color: var(--ink); background: rgba(255,255,255,.72); padding: 12px 14px; font-size: 13px; transition: border .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px rgba(21,23,20,.08); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,107,87,.1); }
.field-error { min-height: 0; color: #c83d2d; font-size: 10px; }
.field-meta { justify-self: end; margin-top: -28px; margin-right: 12px; color: var(--muted); font-size: 10px; pointer-events: none; }
.field-meta i { font-style: normal; }
.choice-field legend { margin-bottom: 12px; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-grid label { position: relative; cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.choice-grid span { min-height: 38px; display: grid; place-items: center; padding: 0 15px; border: 1px solid #c9cbc3; border-radius: 2px; background: rgba(255,255,255,.55); font-size: 12px; transition: .15s; }
.choice-grid input:checked + span { color: var(--ink); border-color: var(--ink); background: var(--lime); box-shadow: inset 0 0 0 1px var(--ink); }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; line-height: 1.7; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); }
.form-actions { max-width: 860px; margin: 48px auto 0; padding-top: 28px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.form-actions #next-step, .form-actions .submit-button { margin-left: auto; min-width: 144px; }

/* Login */
.login-layout { min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: 1.18fr .82fr; background: var(--white); }
.login-visual { position: relative; min-height: 620px; padding: 52px clamp(30px, 5vw, 76px); display: flex; flex-direction: column; justify-content: space-between; color: var(--white); background: #22251f url('/assets/club-fair.jpg') center / cover no-repeat; }
.login-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,18,15,.9), rgba(16,18,15,.45)), linear-gradient(0deg, rgba(16,18,15,.8), transparent 55%); }
.login-visual > * { position: relative; z-index: 1; }
.login-visual .back-link { margin: 0; }
.login-visual h1 { margin: 0; max-width: 760px; font-size: clamp(42px, 4.4vw, 64px); line-height: 1.1; }
.visual-index { margin: 0; color: rgba(255,255,255,.55); font: 700 10px Arial, sans-serif; }
.login-form { width: min(430px, calc(100% - 56px)); margin: auto; }
.login-heading { margin-bottom: 44px; }
.login-heading > span { color: var(--coral); font-size: 11px; font-weight: 800; }
.login-heading h2 { margin: 10px 0 8px; font-size: 42px; }
.login-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.login-form .field { margin-bottom: 22px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 50px; }
.password-wrap button { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; background: transparent; color: #85887f; }
.login-error { min-height: 18px; margin: -8px 0 8px; color: #c83d2d; font-size: 11px; }
.login-button { width: 100%; min-height: 52px; }
.login-security { margin: 20px 0 0; color: #85887f; font-size: 10px; text-align: center; }
.login-security span { color: var(--lime); -webkit-text-stroke: 1px var(--ink); }

/* Admin */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 20px; display: flex; flex-direction: column; color: var(--white); background: var(--ink); }
.admin-brand { margin: 0 8px; }
.admin-sidebar nav { margin-top: 64px; display: grid; gap: 7px; }
.admin-sidebar nav a, .admin-sidebar nav button { width: 100%; min-height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 3px; color: rgba(255,255,255,.58); background: transparent; font-size: 12px; text-align: left; }
.admin-sidebar nav a.is-active, .admin-sidebar nav button:hover { color: var(--ink); background: var(--lime); }
.admin-sidebar nav span { width: 20px; font-size: 17px; text-align: center; }
.admin-account { margin-top: auto; padding: 16px 8px 0; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid rgba(255,255,255,.18); }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); background: var(--lime); font: 900 13px Arial, sans-serif; }
.admin-account strong, .admin-account small { display: block; }
.admin-account strong { font-size: 11px; }
.admin-account small { margin-top: 4px; color: rgba(255,255,255,.45); font-size: 9px; }
.admin-account button { border: 0; color: rgba(255,255,255,.55); background: transparent; }
.admin-main { min-width: 0; padding: 42px clamp(24px, 4vw, 60px) 60px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: end; }
.admin-topbar p { margin: 0 0 8px; color: var(--muted); font-size: 10px; }
.admin-topbar h1 { margin: 0; font-size: 38px; }
.admin-top-actions { display: flex; gap: 10px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: var(--white); font-size: 18px; }
.icon-button:hover { border-color: var(--ink); }
.demo-banner { margin-top: 26px; min-height: 46px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #493f12; border: 1px solid #e8cf69; background: #fff6c9; font-size: 11px; }
.demo-banner b { margin-right: 8px; }
.demo-banner button { flex: none; border: 0; border-bottom: 1px solid currentColor; background: none; color: inherit; font-size: 11px; }
.admin-metrics { margin: 28px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--white); }
.admin-metrics article { position: relative; min-height: 154px; padding: 24px; border-right: 1px solid var(--line); }
.admin-metrics article:last-child { border-right: 0; }
.admin-metrics article > span { display: block; color: var(--muted); font-size: 11px; }
.admin-metrics strong { display: block; margin: 18px 0 9px; font: 900 36px/1 Arial, sans-serif; }
.admin-metrics small { color: #989b92; font-size: 9px; }
.metric-mark { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); font-style: normal; font-size: 12px; }
.metric-mark.lime { background: var(--lime); }.metric-mark.coral { background: var(--coral); }.metric-mark.blue { background: var(--blue); }.metric-mark.yellow { background: var(--yellow); }
.records-section { border: 1px solid var(--line); background: var(--white); }
.records-heading { min-height: 82px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.records-heading > div { display: flex; align-items: baseline; gap: 12px; }
.records-heading h2 { margin: 0; font-size: 19px; }
.records-heading span { color: var(--muted); font-size: 10px; }
.filters { padding: 14px 22px; display: grid; grid-template-columns: minmax(260px, 1fr) 150px 150px 42px; gap: 10px; border-bottom: 1px solid var(--line); background: #fafaf7; }
.filters label:not(.search-field) { position: relative; }
.filters label:not(.search-field) > span { position: absolute; z-index: 1; top: 8px; left: 12px; color: #9a9d94; font-size: 8px; pointer-events: none; }
.filters select { min-height: 42px; padding: 15px 10px 4px; font-size: 11px; }
.search-field { position: relative; }
.search-field > span { position: absolute; z-index: 1; top: 10px; left: 13px; color: #7c7f77; font-size: 18px; }
.search-field input { min-height: 42px; padding-left: 40px; }
.filter-reset { height: 42px; }
.table-wrap { position: relative; min-height: 300px; overflow-x: auto; }
table { width: 100%; min-width: 900px; border-collapse: collapse; }
th { height: 45px; padding: 0 14px; color: #898c83; background: #fafaf7; font-size: 9px; font-weight: 600; text-align: left; white-space: nowrap; }
td { height: 70px; padding: 10px 14px; border-top: 1px solid #e8e9e3; font-size: 11px; vertical-align: middle; }
tbody tr { transition: background .14s; }
tbody tr:hover { background: #fbfcf6; }
.club-cell { display: flex; align-items: center; gap: 11px; min-width: 180px; }
.club-avatar { flex: none; width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); background: #e7e9e1; font-size: 14px; font-weight: 900; }
.club-cell strong, .club-cell small { display: block; }
.club-cell strong { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.club-cell small { margin-top: 4px; color: #999c93; font-size: 8px; }
.demo-tag { margin-left: 5px; padding: 2px 4px; color: #6b5b10; background: #fff0a5; font-size: 7px; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #9a9d94; }
.status-pill.is-open i, .status-pill.is-approved i { background: #55b86c; }
.status-pill.is-limited i, .status-pill.is-pending i { background: var(--yellow); }
.status-pill.is-closed i, .status-pill.is-more i { background: var(--coral); }
.row-action { width: 32px; height: 32px; border: 0; background: transparent; font-size: 18px; }
.row-action:hover { background: #eff0ea; }
.empty-state { padding: 64px; text-align: center; }
.empty-state span { font-size: 26px; }.empty-state h3 { margin: 12px 0 6px; font-size: 15px; }.empty-state p { margin: 0; color: var(--muted); font-size: 10px; }
.table-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); background: rgba(255,255,255,.92); font-size: 10px; }
.table-loading i { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Drawer and dialogs */
.detail-drawer { position: fixed; z-index: 100; inset: 0; pointer-events: none; visibility: hidden; }
.detail-drawer.is-open { pointer-events: auto; visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; opacity: 0; background: rgba(8,9,8,.52); transition: opacity .25s; }
.detail-drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; width: min(590px, 100%); height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); transform: translateX(100%); transition: transform .3s ease; }
.detail-drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-panel header { min-height: 90px; padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--white); }
.drawer-panel header p { margin: 0 0 6px; color: var(--coral); font: 800 9px Arial, sans-serif; }
.drawer-panel header h2 { margin: 0; font-size: 22px; }
.drawer-content { padding: 26px 28px; overflow: auto; }
.detail-hero { padding: 24px; color: var(--white); background: var(--ink); }
.detail-hero > span { display: inline-block; padding: 4px 7px; color: var(--ink); background: var(--lime); font-size: 8px; font-weight: 800; }
.detail-hero h3 { margin: 14px 0 8px; font-size: 28px; }
.detail-hero p { margin: 0; color: rgba(255,255,255,.64); font-size: 11px; line-height: 1.7; }
.detail-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.detail-section h4 { margin: 0 0 16px; color: #85887f; font-size: 9px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.detail-item span, .detail-item strong { display: block; overflow-wrap: anywhere; }
.detail-item span { margin-bottom: 5px; color: #94978e; font-size: 9px; }
.detail-item strong { font-size: 11px; line-height: 1.6; }
.detail-text { margin: 0; font-size: 11px; line-height: 1.8; white-space: pre-wrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-list span { padding: 5px 8px; border: 1px solid #cdd0c7; background: var(--white); font-size: 9px; }
.drawer-panel footer { min-height: 80px; padding: 14px 28px; display: flex; justify-content: space-between; align-items: end; gap: 14px; border-top: 1px solid var(--line); background: var(--white); }
.drawer-panel footer label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.drawer-panel footer select { min-height: 38px; min-width: 130px; padding: 6px 10px; }
.delete-button { min-height: 40px; color: var(--white); border-color: #c34537; background: #c34537; }
.success-overlay, .confirm-overlay { position: fixed; z-index: 150; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(10,11,9,.72); opacity: 0; visibility: hidden; transition: .2s; }
.success-overlay.is-open, .confirm-overlay.is-open { opacity: 1; visibility: visible; }
.success-dialog, .confirm-dialog { width: min(480px, 100%); padding: 48px; text-align: center; background: var(--white); transform: translateY(10px); transition: transform .2s; }
.is-open .success-dialog, .is-open .confirm-dialog { transform: translateY(0); }
.success-mark { width: 72px; height: 72px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); }
.success-mark span { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font-size: 20px; font-weight: 900; }
.success-dialog > p { margin: 0; color: var(--coral); font: 800 9px Arial, sans-serif; }
.success-dialog h2 { margin: 9px 0; font-size: 34px; }.success-dialog > span { color: var(--muted); font-size: 12px; }
.success-dialog > div:last-child, .confirm-dialog > div { margin-top: 30px; display: flex; justify-content: center; gap: 10px; }
.confirm-dialog { width: min(420px, 100%); padding: 36px; }
.confirm-icon { width: 46px; height: 46px; margin: auto; display: grid; place-items: center; border-radius: 50%; color: #7b6714; background: var(--yellow); font-weight: 900; }
.confirm-dialog h3 { margin: 18px 0 8px; }.confirm-dialog p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.toast-region { position: fixed; z-index: 200; top: 90px; right: 22px; display: grid; gap: 8px; }
.toast { min-width: 260px; max-width: 360px; padding: 13px 16px; display: flex; align-items: center; gap: 10px; color: var(--white); background: var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.18); font-size: 11px; animation: toastIn .22s ease; }
.toast::before { content: "✓"; width: 20px; height: 20px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 50%; font-size: 9px; font-weight: 900; }
.toast.is-error::before { content: "!"; background: var(--coral); }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } }

@media (max-width: 1100px) {
  .hero-stats { width: 70%; }
  .landscape-grid { grid-template-columns: 1fr 1fr; }
  .category-panel { grid-column: 1 / -1; }
  .category-visual { grid-template-columns: 220px 1fr; }
  .admin-metrics { grid-template-columns: repeat(2, 1fr); }
  .admin-metrics article:nth-child(2) { border-right: 0; }
  .admin-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filters { grid-template-columns: 1fr 140px 140px; }
  .filter-reset { display: none; }
}

@media (max-width: 820px) {
  :root { --header-height: 64px; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .main-nav { position: fixed; top: var(--header-height); left: 0; right: 0; height: auto; padding: 10px 20px 18px; display: none; gap: 0; color: var(--ink); background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: grid; }
  .main-nav a { height: 48px; justify-content: start; border-bottom: 1px solid var(--line); }
  .main-nav a.is-active::after { display: none; }
  .header-action { display: none; }
  .menu-button { position: relative; z-index: 2; display: grid; place-items: center end; width: 42px; height: 42px; margin-left: auto; padding: 0; font-size: 0; }
  .menu-button::before { content: ""; width: 21px; height: 2px; color: inherit; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .hero { height: 720px; min-height: 86vh; }
  .hero-content { width: calc(100% - 40px); padding-top: 160px; }
  .hero h1 { font-size: clamp(52px, 15vw, 84px); max-width: 600px; }
  .hero-copy { font-size: 17px; }
  .hero-stats { left: 0; width: 100%; height: 112px; }
  .hero-stats div { padding: 20px 12px; }
  .hero-stats span { font-size: 9px; }.hero-stats strong { font-size: 27px; }
  .scroll-cue { display: none; }
  .landscape-section, .recent-section { padding-top: 72px; padding-bottom: 72px; }
  .recent-row { grid-template-columns: 42px 1.3fr .8fr 1fr auto; }
  .recent-row .campus, .recent-row .member-count { display: none; }
  .form-shell { display: block; }
  .form-intro { position: relative; top: 0; height: auto; padding: 36px 24px 30px; }
  .form-intro .back-link, .step-list { display: none; }
  .form-intro h1 { font-size: 36px; }
  .form-progress-copy { margin-top: 30px; }
  .club-form { padding: 44px 24px 60px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-visual { min-height: 360px; padding: 36px 24px; }
  .login-visual h1 { font-size: clamp(34px, 8vw, 50px); }
  .login-form { margin: 64px auto; }
  .admin-shell { display: block; }
  .admin-sidebar { position: relative; width: 100%; height: 64px; padding: 0 20px; flex-direction: row; align-items: center; }
  .admin-sidebar nav { display: none; }
  .admin-account { margin: 0 0 0 auto; padding: 0; border: 0; }
  .admin-account > span:not(.account-avatar) { display: none; }
  .account-avatar { width: 30px; height: 30px; }
  .admin-main { padding: 28px 20px 44px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand { font-size: 13px; }
  .hero { height: 690px; }
  .hero-content { padding-top: 140px; }
  .hero h1 { max-width: 100%; font-size: clamp(46px, 13vw, 58px); overflow-wrap: anywhere; }
  .hero-actions { align-items: stretch; flex-direction: column; width: min(100%, 300px); }
  .hero-stats { height: 168px; grid-template-columns: repeat(2, 1fr); }
  .hero-stats div { border-bottom: 1px solid rgba(255,255,255,.2); }
  .hero-stats strong { font-size: 25px; }
  .section-heading { align-items: start; flex-direction: column; }
  .landscape-grid { grid-template-columns: 1fr; }
  .category-panel { grid-column: auto; }
  .category-visual { grid-template-columns: 1fr; justify-items: center; }
  .legend { width: 100%; }
  .pulse-score strong { font-size: 62px; }
  .recent-row { min-height: 82px; grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 12px; }
  .recent-row .category { display: none; }
  .recent-row strong { font-size: 15px; }
  .home-cta { align-items: start; flex-direction: column; }
  .round-arrow { width: 66px; height: 66px; font-size: 25px; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .button { flex: 1; }
  .login-visual { min-height: 320px; }.login-visual br { display: none; }
  .login-heading h2 { font-size: 36px; }
  .admin-topbar { align-items: center; }
  .admin-topbar h1 { font-size: 30px; }
  .admin-top-actions .button { width: 42px; overflow: hidden; padding: 0; font-size: 0; gap: 0; }
  .admin-top-actions .button span { font-size: 18px; }
  .demo-banner { align-items: start; flex-direction: column; }
  .admin-metrics { grid-template-columns: 1fr 1fr; }
  .admin-metrics article { min-height: 130px; padding: 20px; }
  .admin-metrics strong { font-size: 30px; }
  .records-heading { align-items: start; flex-direction: column; padding: 18px; gap: 14px; }
  .records-heading .button { width: 100%; }
  .filters { padding: 12px; }
  .success-dialog, .confirm-dialog { padding: 32px 22px; }
  .success-dialog > div:last-child { flex-direction: column; }
  .drawer-panel footer { align-items: stretch; flex-direction: column; }
  .drawer-panel footer .button { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .toast-region { left: 14px; right: 14px; }
  .toast { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
