/* =====================================================================
   CS Alumni Tracking System - theme layer on top of Bootstrap 5
   Palette: teal green, golden yellow, blue, green, orange
   ===================================================================== */

:root {
  --teal:        #0B7A75;
  --teal-deep:   #064E4A;
  --teal-mid:    #109B94;
  --teal-soft:   #E2F1F0;
  --gold:        #E0A526;
  --gold-deep:   #A97612;
  --gold-soft:   #FBF1DA;
  --blue:        #1D5FBF;
  --blue-soft:   #E7EEFB;
  --green:       #2F9E5C;
  --green-soft:  #E6F5EC;
  --orange:      #DC6B34;
  --orange-soft: #FCEBE2;

  --ink:     #0F1F1E;
  --ink-2:   #274240;
  --muted:   #5F716F;
  --line:    #DCE8E6;
  --canvas:  #F4F8F7;
  --surface: #FFFFFF;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 1px 2px rgba(6, 78, 74, .05), 0 10px 30px -18px rgba(6, 78, 74, .35);

  --bs-primary: var(--teal);
  --bs-link-color: var(--blue);
  --bs-link-hover-color: var(--teal-deep);
  --bs-body-color: var(--ink);
  --bs-border-radius: var(--radius-sm);
}

* { -webkit-font-smoothing: antialiased; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .975rem;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, .display-face {
  font-family: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.mono, .stat-value, .batch-year, .year-rail {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow-gold { color: var(--gold-deep); }

a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------------------------ buttons ---------------------------- */

.btn { border-radius: 999px; font-weight: 600; padding: .55rem 1.15rem; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: none; }

.btn-teal { background: var(--teal); color: #fff; border: 1px solid var(--teal); }
.btn-teal:hover, .btn-teal:focus { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

.btn-outline-teal { background: transparent; color: var(--teal-deep); border: 1px solid var(--line); }
.btn-outline-teal:hover { background: var(--teal-soft); color: var(--teal-deep); border-color: var(--teal); }

.btn-gold { background: var(--gold); color: #1F1704; border: 1px solid var(--gold); }
.btn-gold:hover { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); }

.btn-blue { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.btn-blue:hover { background: #16499a; color: #fff; }

.btn-facebook { background: #1877F2; color: #fff; border: none; font-weight: 600; }
.btn-facebook:hover { background: #0f5ecb; color: #fff; }

.btn-danger-soft { background: var(--orange-soft); color: #8f3d13; border: 1px solid #f2cfbc; }
.btn-danger-soft:hover { background: var(--orange); color: #fff; }

.btn-sm { padding: .35rem .8rem; font-size: .85rem; }

/* ------------------------------- cards ----------------------------- */

.card-soft {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-soft .card-head {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.card-soft .card-body { padding: 1.35rem; }

/* -------------------------- statistic tiles ------------------------ */

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-card::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--teal);
}
.stat-card.is-gold::after   { background: var(--gold); }
.stat-card.is-blue::after   { background: var(--blue); }
.stat-card.is-green::after  { background: var(--green); }
.stat-card.is-orange::after { background: var(--orange); }

.stat-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.stat-value { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.stat-note  { font-size: .82rem; color: var(--muted); }
.stat-icon  { position: absolute; right: 1rem; top: 1rem; font-size: 1.05rem; color: var(--teal); opacity: .55; }

/* -------------------------------- pills ---------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
}
.pill-teal   { background: var(--teal-soft);   color: var(--teal-deep); }
.pill-gold   { background: var(--gold-soft);   color: var(--gold-deep); }
.pill-blue   { background: var(--blue-soft);   color: #164a97; }
.pill-green  { background: var(--green-soft);  color: #1c6b3d; }
.pill-orange { background: var(--orange-soft); color: #9a4517; }
.pill-muted  { background: #EDF2F1;            color: var(--muted); }

/* ------------------------------ avatars ---------------------------- */

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; background: var(--teal-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal-deep); font-weight: 700; letter-spacing: .02em;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
  flex: 0 0 auto;
}
.avatar-lg { width: 104px; height: 104px; font-size: 2rem; }
.avatar-xl { width: 132px; height: 132px; font-size: 2.6rem; }

/* -------------------------- signature: batch rail ------------------ */
/* Alumni are read by batch, so the year is the loudest element on the
   page: monospace numerals on a gold rule, the way a registrar's ledger
   separates one graduating class from the next. */

.batch-block { margin-bottom: 2.25rem; }
.batch-head {
  display: flex; align-items: baseline; gap: 1rem;
  padding-bottom: .5rem; margin-bottom: 1rem;
  border-bottom: 2px solid var(--gold);
}
.batch-year { font-size: 2rem; font-weight: 700; color: var(--teal-deep); line-height: 1; }
.batch-meta { font-size: .85rem; color: var(--muted); }
.batch-head .spacer { flex: 1 1 auto; }

.batch-bar-row {
  display: grid; grid-template-columns: 62px 1fr 54px;
  align-items: center; gap: .85rem; padding: .3rem 0;
}
.batch-bar-row .year { font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.batch-bar-track { background: #E9F0EF; border-radius: 999px; height: 14px; overflow: hidden; }
.batch-bar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-mid) 55%, var(--gold) 100%);
  min-width: 6px; transition: width .6s cubic-bezier(.22,.61,.36,1);
}
.batch-bar-row .count { text-align: right; font-weight: 600; color: var(--teal-deep); }
a.batch-bar-row { text-decoration: none; }
a.batch-bar-row:hover .batch-bar-fill { filter: saturate(1.25); }
a.batch-bar-row:hover .year { color: var(--teal); }

@media (prefers-reduced-motion: reduce) {
  .batch-bar-fill { transition: none; }
}

/* ------------------------------ tables ----------------------------- */

.table-clean { --bs-table-bg: transparent; margin: 0; }
.table-clean thead th {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line);
  background: #F8FBFA; white-space: nowrap; padding: .7rem .9rem;
}
.table-clean tbody td { padding: .8rem .9rem; border-bottom: 1px solid #EDF3F2; vertical-align: middle; }
.table-clean tbody tr:hover { background: #F7FBFA; }

/* ------------------------------- forms ----------------------------- */

.form-label { font-weight: 600; font-size: .85rem; color: var(--ink-2); margin-bottom: .3rem; }
.form-control, .form-select {
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  padding: .6rem .8rem; background: #fff; font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,122,117,.15);
}
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(224,165,38,.3); }
.form-hint { font-size: .8rem; color: var(--muted); }

.form-section { border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 1.4rem; }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section-title { display: flex; align-items: center; gap: .55rem; font-size: 1.02rem; margin-bottom: 1rem; }
.form-section-title i { color: var(--teal); }

/* ---------------------------- navigation --------------------------- */

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1030;
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; color: var(--teal-deep); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(140deg, var(--teal) 0%, var(--teal-deep) 70%);
  color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  font-family: "JetBrains Mono", monospace;
}
.brand-text { line-height: 1.1; }
.brand-text small { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; letter-spacing: .04em; }

.topnav .nav-link { color: var(--ink-2); font-weight: 500; border-radius: 999px; padding: .4rem .85rem; }
.topnav .nav-link:hover { background: var(--teal-soft); color: var(--teal-deep); text-decoration: none; }
.topnav .nav-link.active { background: var(--teal); color: #fff; }

/* ------------------------------ landing ---------------------------- */

.hero {
  background:
    radial-gradient(1100px 420px at 88% -12%, rgba(224,165,38,.22), transparent 62%),
    linear-gradient(155deg, var(--teal-deep) 0%, var(--teal) 58%, #0a8a83 100%);
  color: #EAF6F5;
  border-radius: 0 0 34px 34px;
  padding: 4.5rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.03; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 42ch; }
.hero .eyebrow { color: var(--gold); }
.hero-rule { width: 68px; height: 3px; background: var(--gold); border-radius: 2px; margin: 1.1rem 0 1.35rem; }

.year-rail {
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.year-chip {
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px;
  padding: .2rem .7rem; font-size: .82rem; color: rgba(255,255,255,.9);
}
.year-chip strong { color: var(--gold); font-weight: 700; }

.hero-panel {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 1.35rem; backdrop-filter: blur(6px);
}

.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; height: 100%; }
.step-num {
  font-family: "JetBrains Mono", monospace; font-size: .8rem; font-weight: 700;
  color: var(--gold-deep); background: var(--gold-soft);
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; margin-bottom: .85rem;
}

/* --------------------------- admin shell --------------------------- */

.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
  width: 254px; flex: 0 0 254px; background: var(--teal-deep); color: #CFE6E4;
  padding: 1.15rem .85rem; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-side .brand { color: #fff; margin-bottom: 1.4rem; padding: 0 .4rem; }
.admin-side .brand-text small { color: rgba(255,255,255,.6); }
.admin-side .nav-title {
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin: 1.15rem .65rem .4rem; font-family: "JetBrains Mono", monospace;
}
.admin-side a.side-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .7rem; border-radius: 10px; color: #CFE6E4; font-size: .92rem; font-weight: 500;
}
.admin-side a.side-link:hover { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.admin-side a.side-link.active { background: var(--gold); color: #241A03; font-weight: 600; }
.admin-side a.side-link i { width: 18px; text-align: center; }

.admin-main { flex: 1 1 auto; min-width: 0; }
.admin-topbar {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: .8rem 1.5rem; display: flex; align-items: center; gap: 1rem;
  position: sticky; top: 0; z-index: 1020;
}
.admin-content { padding: 1.6rem 1.5rem 3rem; }

@media (max-width: 991.98px) {
  .admin-side {
    position: fixed; left: 0; top: 0; z-index: 1050;
    transform: translateX(-100%); transition: transform .25s ease;
  }
  .admin-side.open { transform: translateX(0); }
  .admin-backdrop { position: fixed; inset: 0; background: rgba(6,78,74,.45); z-index: 1040; }
}

/* ---------------------------- misc bits ---------------------------- */

.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-title h1 { font-size: 1.6rem; margin: 0; }
.page-title p { color: var(--muted); margin: .2rem 0 0; font-size: .92rem; }

.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty-state i { font-size: 1.9rem; color: var(--teal); opacity: .5; display: block; margin-bottom: .75rem; }
.empty-state h3 { font-size: 1.1rem; color: var(--ink); }

.filter-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 1.25rem; }

.alert { border-radius: var(--radius-sm); border: 1px solid transparent; font-size: .92rem; }
.alert-success { background: var(--green-soft); color: #1c6b3d; border-color: #c7e6d4; }
.alert-danger  { background: var(--orange-soft); color: #93400f; border-color: #f3d1c0; }
.alert-warning { background: var(--gold-soft); color: #7d5709; border-color: #eedcb0; }
.alert-info    { background: var(--blue-soft); color: #164a97; border-color: #cddefa; }

.notice-strip {
  background: var(--gold-soft); border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-size: .9rem; color: #6d4c08;
}

.profile-cover {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal) 62%, var(--teal-mid));
  border-radius: var(--radius) var(--radius) 0 0; height: 108px; position: relative;
}
.profile-cover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--gold);
}

.data-row { display: flex; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed #E6EEED; font-size: .93rem; }
.data-row:last-child { border-bottom: 0; }
.data-row dt { flex: 0 0 172px; color: var(--muted); font-weight: 500; margin: 0; }
.data-row dd { margin: 0; color: var(--ink); font-weight: 500; }

.footer { background: var(--teal-deep); color: rgba(255,255,255,.72); padding: 2.5rem 0 2rem; margin-top: 3rem; }
.footer a { color: var(--gold); }
.footer h5 { color: #fff; font-size: .95rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: #1F1704;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 2000; font-weight: 600;
}
.skip-link:focus { left: 0; }

.spinner-teal { color: var(--teal); }
.photo-preview { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }

/* =====================================================================
   Refinement layer — depth, rhythm, and motion.
   Loaded after the base rules so it can raise specificity where needed.
   ===================================================================== */

:root {
  --shadow-xs: 0 1px 2px rgba(6, 78, 74, .06);
  --shadow-sm: 0 2px 4px rgba(6, 78, 74, .05), 0 6px 16px -12px rgba(6, 78, 74, .30);
  --shadow-md: 0 4px 10px -4px rgba(6, 78, 74, .10), 0 18px 40px -24px rgba(6, 78, 74, .38);
  --shadow-lg: 0 10px 24px -8px rgba(6, 78, 74, .14), 0 34px 70px -32px rgba(6, 78, 74, .45);
  --ease: cubic-bezier(.22, .68, .36, 1);
}

body {
  background-image:
    radial-gradient(58rem 30rem at 82% -14%, rgba(16, 155, 148, .10), transparent 62%),
    radial-gradient(44rem 26rem at -8% 4%, rgba(224, 165, 38, .09), transparent 58%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ------------------------------ headings --------------------------- */

h1 { letter-spacing: -.032em; line-height: 1.08; }
h2 { letter-spacing: -.026em; line-height: 1.16; }
.display-face { letter-spacing: -.034em; }

/* --------------------------- top navigation ------------------------ */

.topnav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(220, 232, 230, .9);
}

.topnav .nav-link {
  position: relative;
  border-radius: 999px;
  padding: .45rem .85rem;
  color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.topnav .nav-link:hover { background: var(--teal-soft); color: var(--teal-deep); text-decoration: none; }
.topnav .nav-link.active { color: var(--teal-deep); font-weight: 600; }
.topnav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: .12rem;
  width: 16px; height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--gold);
}

.brand-mark {
  box-shadow: 0 6px 16px -8px rgba(6, 78, 74, .6);
  background-image: linear-gradient(135deg, var(--teal-mid), var(--teal-deep));
}

/* -------------------------------- hero ----------------------------- */

.hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem); }

.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); }

.hero-panel {
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(220, 232, 230, .8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88)),
    linear-gradient(140deg, var(--teal-soft), var(--gold-soft));
}

.hero-rule { background: linear-gradient(90deg, var(--gold), rgba(224, 165, 38, 0)); height: 2px; }

/* -------------------------------- cards ---------------------------- */

.card-soft {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease);
}
a.card-soft:hover,
.card-soft.is-interactive:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(11, 122, 117, .35);
  text-decoration: none;
}

.card-head {
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, rgba(226, 241, 240, .40), transparent);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ----------------------------- stat tiles -------------------------- */

.stat-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: .85;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-value { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em; line-height: 1.05; }
.stat-label { color: var(--muted); font-size: .82rem; }

.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem; height: 2.35rem;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
}

/* --------------------------- batch ledger -------------------------- */

.year-rail {
  border-top: 2px solid var(--gold);
  padding-top: .6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
  align-items: baseline;
}

.year-chip {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: .85rem;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.year-chip:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--ink); text-decoration: none; }
.year-chip .count { color: var(--muted); font-size: .78rem; }

.batch-bar-track { background: var(--teal-soft); border-radius: 999px; overflow: hidden; height: .55rem; }
.batch-bar-fill {
  background: linear-gradient(90deg, var(--teal-deep), var(--teal-mid) 62%, var(--gold));
  border-radius: 999px;
  height: 100%;
  transition: width .5s var(--ease);
}

.batch-block { scroll-margin-top: 5rem; }
.batch-head { border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.batch-year { font-size: 1.05rem; font-weight: 700; color: var(--teal-deep); }

/* -------------------------------- pills ---------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .62rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
}
.pill-teal   { background: var(--teal-soft);   color: var(--teal-deep);  border-color: rgba(11, 122, 117, .22); }
.pill-gold   { background: var(--gold-soft);   color: var(--gold-deep);  border-color: rgba(169, 118, 18, .25); }
.pill-green  { background: var(--green-soft);  color: #1D7443;           border-color: rgba(47, 158, 92, .25); }
.pill-blue   { background: var(--blue-soft);   color: #16499A;           border-color: rgba(29, 95, 191, .22); }
.pill-orange { background: var(--orange-soft); color: #A6420F;           border-color: rgba(220, 107, 52, .25); }
.pill-muted  { background: #EEF3F2;            color: var(--muted);      border-color: var(--line); }

/* -------------------------------- forms ---------------------------- */

.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: .58rem .8rem;
  background: var(--surface);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.form-control:focus, .form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(11, 122, 117, .13);
}
.form-label { font-weight: 600; font-size: .84rem; color: var(--ink-2); margin-bottom: .3rem; }
.form-hint { color: var(--muted); font-size: .78rem; }

.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.form-check-input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(11, 122, 117, .13); }

.filter-bar {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  padding: 1rem;
}

/* ------------------------------- buttons --------------------------- */

.btn {
  transition: transform .14s var(--ease), background .18s var(--ease),
              box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-teal { box-shadow: 0 8px 18px -10px rgba(6, 78, 74, .85); }
.btn-teal:hover { box-shadow: 0 12px 24px -10px rgba(6, 78, 74, .9); }
.btn-gold { box-shadow: 0 8px 18px -10px rgba(169, 118, 18, .8); }
.btn-facebook:hover { background: #1465D8; color: #fff; }

/* -------------------------------- tables --------------------------- */

.table-clean { border-collapse: separate; border-spacing: 0; }
.table-clean thead th {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  background: #F7FAF9;
  border-bottom: 1px solid var(--line);
  padding: .7rem .8rem;
  position: sticky;
  top: 0;
  z-index: 2;
}
.table-clean tbody td { padding: .75rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-clean tbody tr { transition: background .14s var(--ease); }
.table-clean tbody tr:hover { background: rgba(226, 241, 240, .45); }
.table-clean tbody tr:last-child td { border-bottom: 0; }

/* ------------------------------- avatars --------------------------- */

.avatar, .avatar-lg, .avatar-xl {
  object-fit: cover;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal-deep));
  color: #fff;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 0 0 3px #fff, 0 6px 18px -10px rgba(6, 78, 74, .7);
}

/* --------------------------- admin console ------------------------- */

.admin-side {
  background: linear-gradient(180deg, var(--teal-deep), #053B38 62%, #04302E);
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.admin-side .nav-link {
  color: rgba(255, 255, 255, .74);
  border-radius: 10px;
  padding: .5rem .75rem;
  margin-bottom: .15rem;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.admin-side .nav-link:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.admin-side .nav-link.active {
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--gold);
}

.admin-topbar {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.page-title { padding-block: 1.35rem 1.1rem; }
.page-title h1 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: .2rem; }
.page-title p { color: var(--muted); margin-bottom: 0; font-size: .9rem; }

/* ------------------------------- alerts ---------------------------- */

.alert {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left-width: 3px;
  box-shadow: var(--shadow-xs);
  font-size: .9rem;
}
.alert-success { background: var(--green-soft);  border-left-color: var(--green); color: #14532D; }
.alert-danger  { background: var(--orange-soft); border-left-color: var(--orange); color: #7C2D12; }
.alert-warning { background: var(--gold-soft);   border-left-color: var(--gold); color: #713F12; }
.alert-info    { background: var(--teal-soft);   border-left-color: var(--teal); color: var(--teal-deep); }

/* ---------------------------- empty states ------------------------- */

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(226, 241, 240, .35), transparent);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.empty-state i { color: var(--teal); opacity: .55; }

/* ------------------------------- footer ---------------------------- */

.footer {
  background: var(--teal-deep);
  color: rgba(255, 255, 255, .78);
  margin-top: 4rem;
  border-top: 3px solid var(--gold);
}
.footer a { color: rgba(255, 255, 255, .88); }
.footer a:hover { color: #fff; }

/* ------------------------------- misc ------------------------------ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal-deep);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 2000;
}
.skip-link:focus { left: 0; }

.step-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--gold-deep);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .08em;
}
.step-card { border-top: 2px solid var(--line); padding-top: .9rem; transition: border-color .2s var(--ease); }
.step-card:hover { border-top-color: var(--gold); }

.notice-strip {
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--teal-deep), var(--teal));
  color: rgba(255, 255, 255, .92);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.notice-strip h2, .notice-strip h3 { color: #fff; }

::selection { background: var(--gold-soft); color: var(--ink); }

@media (max-width: 767.98px) {
  .hero { padding-block: 2.25rem; }
  .stat-value { font-size: 1.6rem; }
  body { background-attachment: scroll; }
}

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