:root {
  --ink: #12253d;
  --muted: #66758a;
  --soft: #f5f7fb;
  --line: #e4e9f1;
  --white: #ffffff;
  --navy: #102b4e;
  --navy-2: #173b68;
  --blue: #2769e8;
  --blue-soft: #eaf1ff;
  --aqua: #1daaa0;
  --aqua-soft: #e7f8f6;
  --gold: #f1a930;
  --gold-soft: #fff4dd;
  --red: #d94b5e;
  --red-soft: #fff0f2;
  --purple: #7259d9;
  --purple-soft: #f0edff;
  --green: #27895d;
  --green-soft: #eaf8f0;
  --shadow-sm: 0 4px 16px rgba(24, 42, 68, 0.07);
  --shadow-lg: 0 24px 60px rgba(19, 39, 67, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--soft);
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(39, 105, 232, 0.24);
  outline-offset: 2px;
}
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 260px;
  flex-direction: column;
  padding: 26px 18px 20px;
  color: #eaf1fb;
  background:
    radial-gradient(circle at 10% 0%, rgba(60, 127, 219, .28), transparent 28%),
    linear-gradient(160deg, #102c50 0%, #0e2746 55%, #0b213c 100%);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark {
  display: grid; width: 42px; height: 42px; place-items: center;
  color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 14px;
  background: linear-gradient(135deg, #3178ee, #28b8ab); box-shadow: 0 8px 22px rgba(22, 146, 179, .25);
}
.brand-mark span { font-size: 18px; }
.brand strong { display: block; font-family: "DM Sans", sans-serif; font-size: 18px; letter-spacing: .1px; }
.brand small { color: #91a8c5; }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.role-switcher { margin: 32px 6px 20px; }
.role-switcher .eyebrow { margin-bottom: 9px; color: #8ea8c7; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(255,255,255,.06); }
.role-button { padding: 8px 6px; color: #a6bad1; border: 0; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 600; }
.role-button.active { color: var(--navy); background: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.13); }
.main-nav { display: flex; flex: 1; flex-direction: column; gap: 4px; overflow-y: auto; }
.nav-section { padding: 13px 12px 6px; color: #6f8cac; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; color: #9fb3cb; border: 0; border-radius: 10px; background: transparent; text-align: left; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: #fff; background: rgba(72, 139, 231, .22); box-shadow: inset 3px 0 #4b92f7; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link span { flex: 1; font-size: 13px; font-weight: 500; }
.nav-badge { display: grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; color: #fff; border-radius: 99px; background: #e75d6c; font-size: 10px; }
.sidebar-note { display: flex; gap: 10px; padding: 13px; color: #a9bdd4; border: 1px solid rgba(255,255,255,.1); border-radius: 13px; background: rgba(255,255,255,.045); }
.sidebar-note .icon { flex: 0 0 18px; color: #54cec0; }
.sidebar-note strong { color: #e9f3ff; font-size: 12px; }
.sidebar-note p { margin: 2px 0 0; font-size: 10px; line-height: 1.45; }

.sidebar-overlay, .drawer-overlay { position: fixed; inset: 0; z-index: 25; visibility: hidden; opacity: 0; background: rgba(9, 21, 38, .46); transition: .2s ease; }
.main-area { width: calc(100% - 260px); min-width: 0; margin-left: 260px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; min-height: 84px; align-items: center; justify-content: space-between; padding: 14px 32px; border-bottom: 1px solid rgba(221,228,238,.9); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-context { margin: 0 0 1px; color: var(--muted); font-size: 11px; }
#page-title { margin: 0; font-family: "DM Sans", sans-serif; font-size: 23px; line-height: 1.15; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { position: relative; display: grid; width: 40px; height: 40px; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.icon-button:hover { color: var(--blue); border-color: #cfdaf0; background: #f8faff; }
.menu-button { display: none; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
.cart-button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 12px; color: var(--navy); border: 1px solid var(--line); border-radius: 11px; background: #fff; font-weight: 600; }
.cart-button b { display: grid; min-width: 20px; height: 20px; place-items: center; color: #fff; border-radius: 99px; background: var(--blue); font-size: 10px; }
.profile { display: flex; align-items: center; gap: 9px; margin-left: 4px; padding-left: 12px; border-left: 1px solid var(--line); }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; border-radius: 12px; background: linear-gradient(135deg, var(--blue), var(--aqua)); font-size: 12px; font-weight: 700; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { color: var(--muted); font-size: 10px; }
.page-content { min-height: calc(100vh - 84px); padding: 28px 32px 46px; }

.hero {
  position: relative; display: grid; grid-template-columns: 1.45fr .8fr; gap: 28px; overflow: hidden;
  padding: 28px 30px; color: #fff; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #173d6e 0%, #215fae 58%, #1da99f 140%);
  box-shadow: 0 18px 42px rgba(26, 74, 128, .16);
}
.hero::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 320px; height: 320px; border: 50px solid rgba(255,255,255,.06); border-radius: 50%; }
.hero::before { content: ""; position: absolute; right: 26%; top: -70px; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero-content, .hero-side { position: relative; z-index: 1; }
.hero .eyebrow { color: #9fded9; }
.hero h2 { max-width: 680px; margin: 7px 0 10px; font-family: "DM Sans", sans-serif; font-size: clamp(25px, 3vw, 36px); line-height: 1.2; }
.hero p { max-width: 650px; margin: 0; color: #d7e5f5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-side { align-self: center; padding: 17px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(6, 26, 50, .23); backdrop-filter: blur(8px); }
.period-line { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 11px; color: #c8d9ec; font-size: 11px; }
.period-line strong { color: #fff; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.15); }
.progress-track span { display: block; width: 64%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #43d2c0, #9ae5dc); }
.period-foot { display: flex; justify-content: space-between; margin-top: 9px; color: #c7d9ed; font-size: 10px; }

.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; font-weight: 600; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 7px 18px rgba(39,105,232,.22); }
.button-primary:hover { background: #195bd3; }
.button-light { color: var(--navy); background: #fff; }
.button-ghost-light { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.button-secondary { color: var(--ink); border-color: var(--line); background: #fff; }
.button-danger-soft { color: var(--red); background: var(--red-soft); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }

.section { margin-top: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-head h2 { margin: 3px 0 0; font-family: "DM Sans", sans-serif; font-size: 21px; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); border: 0; background: transparent; font-size: 12px; font-weight: 600; }
.text-button .icon { width: 16px; height: 16px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.child-card { position: relative; display: flex; min-height: 138px; align-items: center; gap: 15px; padding: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); transition: .18s ease; }
.child-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(24,42,68,.1); }
.child-card.selected { border-color: #75a1ef; box-shadow: 0 0 0 3px rgba(39,105,232,.1); }
.child-avatar { display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; border-radius: 18px; font-family: "DM Sans", sans-serif; font-size: 19px; font-weight: 700; }
.child-blue { color: #245ab4; background: var(--blue-soft); }
.child-aqua { color: #167b75; background: var(--aqua-soft); }
.child-copy strong, .child-copy span { display: block; }
.child-copy strong { font-size: 14px; }
.child-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.selected-check { position: absolute; top: 12px; right: 12px; display: grid; width: 23px; height: 23px; place-items: center; color: #fff; border-radius: 50%; background: var(--blue); }
.selected-check .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.add-child { flex-direction: column; justify-content: center; color: var(--muted); border-style: dashed; background: rgba(255,255,255,.55); box-shadow: none; text-align: center; }
.add-child b { display: grid; width: 34px; height: 34px; place-items: center; color: var(--blue); border-radius: 50%; background: var(--blue-soft); font-size: 21px; }

.step-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.step-item { position: relative; display: flex; min-width: 0; align-items: center; gap: 11px; padding: 17px 18px; }
.step-item:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: 0; width: 1px; height: 32px; transform: translateY(-50%); background: var(--line); }
.step-number { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; color: var(--muted); border-radius: 50%; background: #edf1f6; font-size: 11px; font-weight: 700; }
.step-item.done .step-number { color: #fff; background: var(--green); }
.step-item.current .step-number { color: #fff; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
.step-copy strong, .step-copy span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-copy strong { font-size: 11px; }
.step-copy span { color: var(--muted); font-size: 10px; }

.club-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); transition: .2s ease; }
.club-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(24,42,68,.11); }
.club-visual { position: relative; display: flex; height: 138px; align-items: center; justify-content: center; overflow: hidden; }
.club-visual::before, .club-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.club-visual::before { width: 130px; height: 130px; right: -30px; top: -50px; }
.club-visual::after { width: 80px; height: 80px; left: -30px; bottom: -40px; }
.visual-sport { background: linear-gradient(135deg, #2c75df, #54a8eb); }
.visual-art { background: linear-gradient(135deg, #e46f8d, #f5aa67); }
.visual-stem { background: linear-gradient(135deg, #276d65, #42b6a4); }
.visual-music { background: linear-gradient(135deg, #7054d4, #a783e7); }
.visual-life { background: linear-gradient(135deg, #dd8c2b, #f5c34d); }
.club-symbol { position: relative; z-index: 1; font-size: 43px; filter: drop-shadow(0 7px 14px rgba(0,0,0,.18)); }
.club-status { position: absolute; top: 11px; right: 11px; z-index: 2; padding: 5px 9px; color: #176d56; border-radius: 99px; background: rgba(255,255,255,.92); font-size: 9px; font-weight: 700; }
.club-status.warning { color: #8b5b04; }
.club-status.full { color: #ae3347; }
.club-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.category { color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.club-body h3 { margin: 5px 0 9px; font-family: "DM Sans", sans-serif; font-size: 16px; line-height: 1.25; }
.club-meta { display: grid; gap: 7px; color: var(--muted); font-size: 10px; }
.club-meta span { display: flex; min-width: 0; align-items: center; gap: 7px; }
.club-meta .icon { width: 14px; height: 14px; flex: 0 0 14px; color: #8190a3; }
.capacity { margin-top: 13px; }
.capacity-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.capacity-head strong { color: var(--ink); }
.capacity-track { height: 5px; overflow: hidden; border-radius: 99px; background: #edf1f5; }
.capacity-track span { display: block; height: 100%; border-radius: inherit; background: var(--aqua); }
.capacity-track.warning span { background: var(--gold); }
.capacity-track.full span { background: var(--red); }
.club-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #edf0f4; }
.club-price strong { font-family: "DM Sans", sans-serif; font-size: 14px; }
.club-price small { color: var(--muted); font-size: 9px; }
.club-actions { display: flex; gap: 7px; }
.club-actions .button { min-height: 34px; padding: 0 10px; font-size: 10px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); }
.search-field { position: relative; min-width: 230px; flex: 1; }
.search-field .icon { position: absolute; top: 50%; left: 12px; width: 17px; height: 17px; color: #8795a8; transform: translateY(-50%); }
.search-field input, .select-field { width: 100%; min-height: 40px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe; }
.search-field input { padding: 0 12px 0 38px; }
.select-field { width: auto; min-width: 145px; padding: 0 31px 0 11px; }

.stat-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; }
.stat-icon.blue { color: var(--blue); background: var(--blue-soft); }
.stat-icon.aqua { color: var(--aqua); background: var(--aqua-soft); }
.stat-icon.gold { color: #c67a10; background: var(--gold-soft); }
.stat-icon.red { color: var(--red); background: var(--red-soft); }
.stat-icon .icon { width: 19px; height: 19px; }
.trend { color: var(--green); font-size: 9px; font-weight: 700; }
.stat-card h3 { margin: 14px 0 0; font-family: "DM Sans", sans-serif; font-size: 28px; }
.stat-card p { margin: 1px 0 0; color: var(--muted); font-size: 10px; }

.panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 19px 13px; }
.panel-head h3 { margin: 0; font-family: "DM Sans", sans-serif; font-size: 16px; }
.panel-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.panel-body { padding: 0 19px 18px; }
.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 16px; }
.bar-chart { display: flex; height: 220px; align-items: flex-end; gap: 13px; padding: 18px 2px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0, transparent 43px, #edf0f4 44px); }
.bar-group { display: flex; height: 100%; min-width: 0; flex: 1; flex-direction: column; justify-content: flex-end; text-align: center; }
.bar { width: min(36px, 72%); min-height: 8px; margin: 0 auto; border-radius: 7px 7px 2px 2px; background: linear-gradient(to top, #2769e8, #6ea0f5); }
.bar.gold { background: linear-gradient(to top, #e09a26, #f5c56c); }
.bar-label { height: 34px; padding-top: 6px; color: var(--muted); font-size: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; color: var(--muted); font-size: 9px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--blue); }
.legend i.gold { background: var(--gold); }
.attention-list { display: grid; gap: 9px; }
.attention-item { display: flex; align-items: center; gap: 11px; padding: 11px; border-radius: 11px; background: #f8fafc; }
.attention-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; }
.attention-copy { min-width: 0; flex: 1; }
.attention-copy strong, .attention-copy span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attention-copy strong { font-size: 10px; }
.attention-copy span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.attention-value { font-family: "DM Sans", sans-serif; font-weight: 700; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 11px 13px; color: #77869a; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f8fafc; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 12px 13px; color: #35445a; border-bottom: 1px solid #edf0f4; font-size: 10px; vertical-align: middle; }
.data-table tbody tr:hover { background: #fbfcff; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.student-cell { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.mini-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; color: var(--blue); border-radius: 9px; background: var(--blue-soft); font-size: 9px; font-weight: 700; }
.student-cell strong, .student-cell span { display: block; }
.student-cell strong { color: var(--ink); font-size: 10px; }
.student-cell span { color: var(--muted); font-size: 9px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-green { color: #247a55; background: var(--green-soft); }
.badge-gold { color: #9b6711; background: var(--gold-soft); }
.badge-red { color: #b23a4c; background: var(--red-soft); }
.badge-blue { color: #2b63c4; background: var(--blue-soft); }
.badge-purple { color: #6249c6; background: var(--purple-soft); }
.table-action { padding: 5px 8px; color: var(--blue); border: 1px solid #dce5f4; border-radius: 7px; background: #fff; font-size: 8px; font-weight: 600; }

.application-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.application-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; color: var(--blue); border-radius: 13px; background: var(--blue-soft); }
.application-copy { min-width: 0; flex: 1; }
.application-copy h3 { margin: 0; font-family: "DM Sans", sans-serif; font-size: 13px; }
.application-copy p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.application-meta { text-align: right; }
.application-meta strong { display: block; margin-top: 5px; font-size: 11px; }
.empty-state { padding: 46px 24px; color: var(--muted); text-align: center; }
.empty-icon { display: grid; width: 56px; height: 56px; place-items: center; margin: 0 auto 14px; color: var(--blue); border-radius: 18px; background: var(--blue-soft); }
.empty-state h3 { margin: 0; color: var(--ink); }
.empty-state p { max-width: 420px; margin: 6px auto 17px; font-size: 11px; }

.module-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.module-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.module-number { display: grid; width: 28px; height: 28px; place-items: center; color: var(--blue); border-radius: 9px; background: var(--blue-soft); font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; }
.module-card h3 { margin: 12px 0 5px; font-family: "DM Sans", sans-serif; font-size: 13px; }
.module-card p { margin: 0; color: var(--muted); font-size: 10px; }
.module-card ul { margin: 10px 0 0; padding-left: 17px; color: #526176; font-size: 9px; }
.module-card li + li { margin-top: 4px; }
.flow-line { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.flow-node { display: flex; min-width: 135px; flex: 1; align-items: center; justify-content: center; padding: 13px 10px; border: 1px solid #dce6f5; border-radius: 11px; background: #f8fbff; color: #31557d; font-size: 9px; font-weight: 600; text-align: center; }
.flow-arrow { display: grid; flex: 0 0 21px; place-items: center; color: #9aabc0; }
.flow-arrow .icon { width: 15px; height: 15px; }

.cart-drawer { position: fixed; inset: 0 0 0 auto; z-index: 50; display: flex; width: min(440px, 100%); flex-direction: column; visibility: hidden; transform: translateX(100%); background: #fff; box-shadow: var(--shadow-lg); transition: .25s ease; }
.cart-drawer.open { visibility: visible; transform: translateX(0); }
.drawer-overlay { z-index: 45; }
.drawer-overlay.open, .sidebar-overlay.open { visibility: visible; opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 17px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 3px 0 0; font-family: "DM Sans", sans-serif; font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-footer { padding: 16px 22px 22px; border-top: 1px solid var(--line); background: #fbfcfe; }
.cart-item { position: relative; display: grid; grid-template-columns: 48px 1fr auto; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; }
.cart-item + .cart-item { margin-top: 10px; }
.cart-emoji { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 13px; background: var(--blue-soft); font-size: 24px; }
.cart-copy h3 { margin: 0; font-family: "DM Sans", sans-serif; font-size: 12px; }
.cart-copy p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.cart-copy strong { display: block; margin-top: 7px; font-size: 10px; }
.remove-item { align-self: start; padding: 3px; color: #9aa6b6; border: 0; background: transparent; }
.remove-item .icon { width: 15px; height: 15px; }
.summary-lines { display: grid; gap: 8px; margin-bottom: 13px; }
.summary-line { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.summary-line.total { padding-top: 9px; color: var(--ink); border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.confirm-row { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0; color: #4d5d72; font-size: 9px; }
.confirm-row input { margin-top: 2px; accent-color: var(--blue); }
.drawer-footer .button { width: 100%; }
.inline-alert { display: flex; gap: 9px; margin-bottom: 12px; padding: 10px; color: #8e5e10; border: 1px solid #f5dfb3; border-radius: 10px; background: var(--gold-soft); font-size: 9px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 18px; background: rgba(8, 22, 40, .56); animation: fadeIn .18s ease; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); animation: riseIn .23s ease; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 21px 22px 15px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 2px 0 0; font-family: "DM Sans", sans-serif; font-size: 20px; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 22px 20px; }
.detail-hero { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; padding: 16px; color: #fff; border-radius: 15px; background: linear-gradient(135deg, #1d4f89, #249b96); }
.detail-hero span { font-size: 38px; }
.detail-hero h3 { margin: 0; font-size: 16px; }
.detail-hero p { margin: 3px 0 0; color: #d6ebf2; font-size: 9px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.detail-cell { padding: 11px; border-radius: 10px; background: #f7f9fc; }
.detail-cell span, .detail-cell strong { display: block; }
.detail-cell span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.detail-cell strong { margin-top: 3px; font-size: 10px; }
.success-mark { display: grid; width: 72px; height: 72px; place-items: center; margin: 4px auto 16px; color: #fff; border-radius: 50%; background: linear-gradient(135deg, #25a473, #31c49b); box-shadow: 0 10px 28px rgba(37,164,115,.25); }
.success-mark .icon { width: 34px; height: 34px; stroke-width: 2.3; }
.success-copy { text-align: center; }
.success-copy h2 { margin: 0; font-family: "DM Sans", sans-serif; font-size: 23px; }
.success-copy p { color: var(--muted); font-size: 11px; }
.code-box { margin: 18px 0; padding: 14px; border: 1px dashed #9eb7df; border-radius: 12px; background: #f5f9ff; text-align: center; }
.code-box span { display: block; color: var(--muted); font-size: 9px; }
.code-box strong { display: block; margin-top: 3px; color: var(--blue); font-family: "DM Sans", sans-serif; font-size: 17px; letter-spacing: .06em; }
.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { min-width: 280px; max-width: 360px; padding: 12px 14px; color: #fff; border-radius: 11px; background: #183553; box-shadow: var(--shadow-lg); font-size: 10px; animation: toastIn .22s ease; }
.toast.error { background: #a93d50; }
.toast.success { background: #287d5c; }

.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding: 12px 15px; color: #28547f; border: 1px solid #cfe0f5; border-radius: 12px; background: #eff6ff; font-size: 10px; }
.demo-banner strong { color: #173f69; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.status-tab { padding: 7px 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 9px; font-weight: 600; }
.status-tab.active { color: var(--blue); border-color: #c9daf6; background: var(--blue-soft); }
.kpi-strip { display: flex; flex-wrap: wrap; gap: 15px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.kpi-item { min-width: 120px; flex: 1; }
.kpi-item span, .kpi-item strong { display: block; }
.kpi-item span { color: var(--muted); font-size: 9px; }
.kpi-item strong { margin-top: 2px; font-family: "DM Sans", sans-serif; font-size: 17px; }
.info-note { padding: 14px 16px; color: #43556d; border-left: 4px solid var(--blue); border-radius: 0 11px 11px 0; background: #eff5ff; font-size: 10px; }
.info-note strong { color: var(--navy); }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .module-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); transition: .23s ease; }
  .sidebar.open { transform: translateX(0); }
  .main-area { width: 100%; margin-left: 0; }
  .menu-button { display: grid; }
  .topbar { min-height: 76px; padding: 12px 18px; }
  .page-content { min-height: calc(100vh - 76px); padding: 20px 18px 38px; }
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero-side { max-width: 430px; }
  .profile-copy { display: none; }
  .profile { padding-left: 8px; }
  .step-strip { grid-template-columns: repeat(2, 1fr); }
  .step-item:nth-child(2)::after { display: none; }
  .step-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .module-map { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 13px; }
  .topbar-actions .notification-button, .profile { display: none; }
  .cart-button span { display: none; }
  #page-title { font-size: 19px; }
  .page-content { padding: 16px 13px 34px; }
  .hero { padding: 21px 18px; border-radius: 18px; }
  .hero h2 { font-size: 25px; }
  .grid-4, .grid-3, .grid-2, .module-map { grid-template-columns: 1fr; }
  .step-strip { grid-template-columns: 1fr; }
  .step-item { min-height: 61px; }
  .step-item::after { display: none; }
  .step-item:not(:last-child) { border-bottom: 1px solid var(--line); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .search-field { min-width: 100%; }
  .select-field { flex: 1; min-width: 130px; }
  .club-visual { height: 125px; }
  .application-card { align-items: flex-start; }
  .application-meta { min-width: 92px; }
  .detail-grid { grid-template-columns: 1fr; }
  .demo-banner { align-items: flex-start; flex-direction: column; }
}
