/* ============================================================
   ICATC — Design System
   Fuentes: Lora (títulos) + DM Sans (cuerpo)
   Colores: Azul #4AA4E5 · Verde #9FCE63 · Oscuro #0B1E2E
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #4AA4E5;
  --blue-d:    #2B7FC4;
  --blue-l:    #EAF4FD;
  --blue-m:    #B8D9F5;
  --green:     #9FCE63;
  --green-d:   #6FA832;
  --green-l:   #F0F8E4;
  --dark:      #0B1E2E;
  --text:      #1A1A1A;
  --text-m:    #4A4A4A;
  --text-s:    #888;
  --border:    #E5E0D8;
  --bg:        #F4F3F0;
  --white:     #fff;
  --font-head: 'Lora', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius:    14px;
  --shadow:    0 2px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.10);
  --nav-h:     64px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── Tipografía ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 500; line-height: 1.25; }
h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(22px, 3.5vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: 17px; }
p  { line-height: 1.75; }

/* ── Eyelet ─────────────────────────────────────────────── */
.eyelet {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.eyelet-green { color: var(--green-d); }

/* ── Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .18s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--blue);    color: #fff; }
.btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74,164,229,.35); }
.btn-secondary { background: var(--green-d); color: #fff; }
.btn-secondary:hover { background: #5a8a28; transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }
.btn-dark      { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #162d42; transform: translateY(-1px); }
.btn-ghost     { background: transparent; color: var(--text-m); }
.btn-ghost:hover { color: var(--blue); }
.btn-sm  { padding: 8px 18px; font-size: 13px; }
.btn-lg  { padding: 15px 36px; font-size: 16px; }
.btn-icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }

/* Nav buttons */
.btn-solid {
  background: var(--blue);
  color: #fff;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
  border: none;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-solid:hover { background: var(--blue-d); }
.btn-ghost-nav {
  background: transparent;
  color: var(--text-m);
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 13.5px;
  cursor: pointer;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  transition: all .15s;
}
.btn-ghost-nav:hover { border-color: var(--blue); color: var(--blue); }

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-blue    { background: var(--blue-l);  color: var(--blue-d); }
.badge-green   { background: var(--green-l); color: var(--green-d); }
.badge-purple  { background: #EEEDFE; color: #3C3489; }
.badge-gray    { background: #F0EDE8; color: var(--text-s); }
.badge-orange  { background: #FEF3E2; color: #854F0B; }
.badge-red     { background: #FDECEC; color: #C03; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img { height: 56px; width: auto; }
/* Language selector */
.nav-lang {
  position: relative; display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--text);
  border: 1px solid var(--border); background: #fff;
  user-select: none; transition: all .15s;
}
.nav-lang:hover { border-color: var(--blue-m); background: var(--blue-l); }
.nav-lang-flag { font-size: 16px; line-height: 1; }
.nav-lang-code { font-size: 12px; font-weight: 600; color: var(--text); }
.nav-lang-drop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg); min-width: 160px; overflow: hidden; z-index: 200;
}
.nav-lang.open .nav-lang-drop { display: block; }
.nav-lang.open .ti-chevron-down { transform: rotate(180deg); }
.nav-lang-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: 13px; cursor: pointer;
  transition: background .1s;
}
.nav-lang-opt:hover { background: var(--bg); }
.nav-lang-opt.active { color: var(--blue); font-weight: 500; }
.nav-lang-opt.soon { opacity: .5; cursor: default; }
.nav-lang-badge {
  margin-left: auto; font-size: 10px; font-weight: 500;
  background: var(--bg); color: var(--text-s);
  padding: 1px 6px; border-radius: 4px;
}
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name { font-size: 12px; font-weight: 500; color: var(--dark); line-height: 1.2; }
.nav-logo-sub  { font-size: 10px; color: var(--text-s); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-m);
  transition: all .15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue); background: var(--blue-l); }
.nav-link.active { color: var(--blue); font-weight: 500; }
.nav-link-vip {
  background: var(--dark);
  color: #fff !important;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}
.nav-link-vip:hover { background: #162d42 !important; }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-mobile-btn {
  display: none;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 20px;
  align-items: center;
  justify-content: center;
}
/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11,30,46,.5);
  backdrop-filter: blur(4px);
}
.nav-drawer.open { display: block; }
.nav-drawer-inner {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--white);
  padding: 20px;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0,0,0,.12);
}
.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 20px;
  color: var(--text-m);
  margin-bottom: 20px;
  margin-left: auto;
}
.nav-drawer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.nav-drawer-link {
  display: block;
  padding: 12px 8px;
  font-size: 15px;
  color: var(--text-m);
  border-bottom: 1px solid var(--border);
  transition: color .15s;
}
.nav-drawer-link:hover { color: var(--blue); }
.nav-drawer-link.active { color: var(--blue); font-weight: 500; }

/* ── Layout helpers ─────────────────────────────────────── */
.page-top    { padding-top: var(--nav-h); }
.container   { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.container-sm{ max-width: 720px;  margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section     { padding: clamp(48px, 8vw, 96px) 0; }
.section-sm  { padding: clamp(32px, 5vw, 56px) 0; }
.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { font-size: 16px; color: var(--text-s); max-width: 560px; margin: 12px auto 0; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-blue   { background: var(--blue-l);  border-color: var(--blue-m); }
.card-green  { background: var(--green-l); border-color: #C5E495; }
.card-dark   { background: var(--dark); color: #fff; border-color: transparent; }

/* ── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-m);
  margin-bottom: 6px;
}
.form-group label .req { color: #C03; margin-left: 2px; }
.form-group label .opt {
  display: inline-block;
  font-size: 10px;
  background: #F0EDE8;
  color: var(--text-s);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle;
  font-weight: 400;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,164,229,.12);
}
.form-control.error { border-color: #E53935; }
.form-control::placeholder { color: #BDBDBD; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12px; color: var(--text-s); margin-top: 5px; line-height: 1.5; }
.form-error-msg {
  display: none;
  background: #FDECEC;
  border: 1px solid #F7C1C1;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #C03;
  margin-top: 10px;
  align-items: center;
  gap: 8px;
}
.form-error-msg.show { display: flex; }

/* Multiselect buttons */
.multi-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.multi-opt {
  padding: 8px 15px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-size: 13px;
  color: var(--text-m);
  background: var(--white);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-body);
}
.multi-opt:hover  { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }
.multi-opt.on     { border-color: var(--blue); background: var(--blue-l); color: var(--blue-d); font-weight: 500; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 11px;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
  background: var(--bg);
  overflow: hidden;
}
.upload-zone:hover  { border-color: var(--blue); background: var(--blue-l); }
.upload-zone.done   { border-color: var(--green-d); background: var(--green-l); border-style: solid; }
.upload-zone label  { display: block; padding: 20px; cursor: pointer; }
.upload-zone input[type=file] { display: none; }
.upload-zone .uz-icon { font-size: 28px; color: var(--text-s); margin-bottom: 6px; display: block; }
.upload-zone.done .uz-icon { color: var(--green-d); }
.upload-zone .uz-title { font-size: 13px; font-weight: 500; color: var(--text-m); }
.upload-zone.done .uz-title { color: var(--green-d); }
.upload-zone .uz-sub { font-size: 11.5px; color: var(--text-s); margin-top: 2px; }
.upload-zone .uz-filename { font-size: 12px; color: var(--green-d); margin-top: 4px; display: none; font-weight: 500; }
.upload-zone.done .uz-filename { display: block; }

/* ── Alerts / Notices ───────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-blue  { background: var(--blue-l);  color: var(--blue-d);  border: 1px solid var(--blue-m); }
.alert-green { background: var(--green-l); color: var(--green-d); border: 1px solid #C5E495; }
.alert-red   { background: #FDECEC; color: #C03; border: 1px solid #F7C1C1; }
.alert-orange{ background: #FEF3E2; color: #854F0B; border: 1px solid #F7DFA0; }
.alert-purple{ background: #EEEDFE; color: #3C3489; border: 1px solid #AFA9EC; }

/* ── Toast ──────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 9px;
  animation: toastIn .3s ease;
}
.toast-ok  { border-left: 3px solid var(--green); }
.toast-err { border-left: 3px solid #E53935; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 56px 0 28px;
  margin-top: auto;
}
.footer-inner  { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.footer-grid   { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand  {}
.footer-logo   { height: 32px; margin-bottom: 14px; }
.footer-brand-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  color: rgba(255,255,255,.6);
  transition: all .15s;
}
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-col h4 { font-size: 12px; font-weight: 500; color: #fff; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); }
.footer-col a  { display: block; font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color .15s; }
.footer-bottom a:hover { color: #fff; }

/* ── Member / Admin sidebar layout ─────────────────────── */
.app-layout { display: flex; min-height: 100vh; padding-top: var(--nav-h); }
.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--dark);
  position: fixed;
  top: var(--nav-h);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
}
.main-content { flex: 1; margin-left: 232px; padding: 28px clamp(16px, 3vw, 36px) 60px; }
.sb-section { font-size: 10px; font-weight: 500; color: rgba(255,255,255,.3); letter-spacing: .1em; text-transform: uppercase; padding: 14px 10px 5px; }
.sb-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 2px;
  text-decoration: none;
  width: 100%;
  border: none;
  background: none;
  font-family: var(--font-body);
  text-align: left;
}
.sb-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sb-link.active { background: var(--blue); color: #fff; }
.sb-link i { font-size: 18px; flex-shrink: 0; width: 22px; }
.sb-badge { margin-left: auto; font-size: 10px; padding: 2px 7px; border-radius: 20px; }
.sb-badge-red  { background: #E53935; color: #fff; }
.sb-badge-gray { background: rgba(255,255,255,.15); color: #fff; }

/* ── Tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  font-size: 11px; font-weight: 500; color: var(--text-s);
  letter-spacing: .07em; text-transform: uppercase;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
  text-align: left; white-space: nowrap; background: #FAFAF8;
}
.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #FAFAF8; }

/* Person cell */
.person-cell { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; flex-shrink: 0;
  font-family: var(--font-head);
  background: var(--blue-l); color: var(--blue-d);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.person-name { font-size: 13.5px; font-weight: 500; }
.person-sub  { font-size: 12px; color: var(--text-s); }

/* ── Nivel select inline ────────────────────────────────── */
.nivel-sel {
  padding: 5px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}
.nivel-sel:focus { border-color: var(--blue); }

/* ── Panel / section cards ──────────────────────────────── */
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title { font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.panel-title i { color: var(--blue); font-size: 18px; }

/* ── Stats grid ─────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-val { font-family: var(--font-head); font-size: 28px; font-weight: 500; margin-bottom: 4px; }
.stat-lbl { font-size: 12.5px; color: var(--text-s); }
.stat-trend { font-size: 11.5px; margin-top: 5px; }
.trend-up { color: var(--green-d); }
.trend-flat { color: var(--text-s); }

/* ── Actions ────────────────────────────────────────────── */
.acts { display: flex; gap: 6px; flex-wrap: nowrap; }
.act {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-m);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
  white-space: nowrap;
  font-family: var(--font-body);
  text-decoration: none;
}
.act:hover      { border-color: var(--blue); color: var(--blue); }
.act-blue       { background: var(--blue-l); border-color: var(--blue-m); color: var(--blue-d); }
.act-blue:hover { background: var(--blue); color: #fff; }
.act-green       { background: var(--green-l); border-color: #C5E495; color: var(--green-d); }
.act-green:hover { background: var(--green-d); color: #fff; border-color: var(--green-d); }
.act-red         { background: #FDECEC; border-color: #F7C1C1; color: #C03; }
.act-red:hover   { background: #C03; color: #fff; }

/* ── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(11,30,46,.6);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  margin: auto;
  overflow: hidden;
  animation: popIn .22s ease;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes popIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
.modal-header {
  background: linear-gradient(135deg, #0B1E2E, #1A5A9A, #4AA4E5);
  padding: 22px 24px 18px;
  position: relative;
}
.modal-header h3 { font-family: var(--font-head); font-size: 20px; font-weight: 500; color: #fff; margin-bottom: 2px; }
.modal-header p  { font-size: 12.5px; color: rgba(255,255,255,.7); }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
}
.modal-body { padding: 22px 24px 24px; }
.modal-submit {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-body);
  transition: background .15s;
  margin-top: 8px;
}
.modal-submit:hover { background: var(--blue-d); }

/* ── Step bar ───────────────────────────────────────────── */
.steps-bar { display: flex; background: rgba(255,255,255,.12); padding: 4px; border-radius: 50px; gap: 2px; margin-top: 14px; }
.step-item { flex: 1; text-align: center; padding: 6px 4px; border-radius: 50px; font-size: 11px; color: rgba(255,255,255,.55); transition: all .2s; cursor: default; }
.step-item.active { background: #fff; color: var(--blue-d); font-weight: 500; }
.step-item.done   { color: rgba(255,255,255,.85); }

/* ── Sign items ─────────────────────────────────────────── */
.sign-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.sign-item:hover { border-color: var(--blue); }
.sign-item.checked { border-color: var(--green-d); background: var(--green-l); }
.sign-cb {
  width: 20px; height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: transparent;
  transition: all .15s;
  margin-top: 1px;
}
.sign-item.checked .sign-cb { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.sign-text { font-size: 13px; color: var(--text-m); line-height: 1.55; }

/* ── Detail panel (slide-in) ────────────────────────────── */
.detail-overlay { display: none; position: fixed; inset: 0; background: rgba(11,30,46,.3); z-index: 299; }
.detail-overlay.open { display: block; }
.detail-panel {
  position: fixed;
  top: 0; right: -480px;
  width: 460px; height: 100vh;
  background: var(--white);
  border-left: 1px solid var(--border);
  z-index: 300;
  overflow-y: auto;
  transition: right .3s ease;
  padding: 24px;
}
.detail-panel.open { right: 0; }
.detail-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 22px; color: var(--text-s); cursor: pointer; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-right .btn-ghost-nav { display: none; }
  .nav-mobile-btn { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; }
  .app-layout { padding-top: var(--nav-h); }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .modal-box { border-radius: 16px; }
}
