/*
 * UniOne Conference Management System — Design System
 * Palette: Deep navy/royal blue (primary accent) + deep ink neutrals + forest green (minimal accent)
 * Fonts: DM Serif Display (headings) · DM Sans (body/UI)
 * Note: --gold/--gold-bg/--gold-border variable names are kept for compatibility
 *       with existing markup, but now hold blue values (accent color = blue, not gold).
 */

/* ── Design tokens ───────────────────────────────────────── */
:root {
  /* Brand — green now used sparingly, as a minimal accent only */
  --brand:          #1e4d35;   /* deep forest green — small accents only (logo touch, badges) */
  --brand-mid:      #2d6a4f;
  --brand-light:    #e8f4ee;

  /* Ink — new dominant dark tone for nav/hero/footer, replaces green as primary surface */
  --ink:            #171a21;
  --ink-mid:        #23272f;
  --ink-light:      #2f3440;

  --gold:           #1d4ed8;   /* primary accent color across the site (deep royal blue) */
  --gold-bg:        #eef3ff;
  --gold-border:    #93b4f5;

  /* Neutrals — cool grey, zero green */
  --gray-50:        #f9fafb;
  --gray-100:       #f3f4f6;
  --gray-200:       #e5e7eb;
  --gray-300:       #d1d5db;
  --gray-400:       #9ca3af;
  --gray-500:       #6b7280;
  --gray-600:       #4b5563;
  --gray-700:       #374151;
  --gray-900:       #111827;

  /* Text */
  --text-primary:   #1a1f2e;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;

  /* Semantic */
  --success:        #15803d;
  --warning:        #b45309;
  --danger:         #b91c1c;
  --info:           #1d4ed8;

  /* Surfaces */
  --surface:        #ffffff;
  --surface-raised: #ffffff;
  --bg-page:        #f3f4f6;   /* pure neutral grey, no green tint */

  /* Forms */
  --input-border:   #d1d5db;
  --input-focus:    #1e4d35;
  --input-bg:       #ffffff;
  --input-radius:   6px;

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:      0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:      0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.05);

  /* Layout */
  --radius-sm:      4px;
  --radius:         8px;
  --radius-lg:      12px;
  --radius-xl:      16px;
  --boxed-width:    1400px;
}

/* ── Boxed layout ─────────────────────────────────────────── */
body { background: var(--bg-page); }
.site-boxed {
  max-width: var(--boxed-width);
  margin: 24px auto;
  background: #fff;
  border: 1px solid var(--gray-300);
  border-top: none;
  box-shadow: 0 0 40px rgba(0,0,0,.06);
  min-height: calc(100vh - 48px);
  position: relative;
}
@media (max-width: 1430px) {
  .site-boxed { margin: 0 auto; border-left: none; border-right: none; box-shadow: none; min-height: 100vh; }
}
@media (max-width: 991px) {
  .site-boxed .container { padding-left: 20px; padding-right: 20px; }
}

/* ── Reset & base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Headings — DM Serif Display only for editorial sections */
.serif { font-family: 'DM Serif Display', Georgia, serif; }

h1,h2,h3 { font-family: 'DM Serif Display', Georgia, serif; line-height: 1.2; font-weight: 400; }
h4,h5,h6 { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600; }

p { color: var(--text-secondary); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ── Unified form controls ───────────────────────────────── */
.form-control,
.form-select {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .9rem;
  color: var(--text-primary);
  background-color: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--input-radius);
  padding: .5rem .75rem;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
/* suppress browser native dropdown arrow on selects only; we inject our own below.
   NOT applied to date/time inputs — that would hide their native calendar icon. */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
/* keep the native calendar picker icon visible and clickable */
input[type="date"].form-control,
input[type="datetime-local"].form-control,
input[type="time"].form-control,
input[type="month"].form-control {
  appearance: auto;
  -webkit-appearance: auto;
}
input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .7;
}
input[type="date"].form-control::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}
.form-control::placeholder { color: var(--gray-400); }
.form-control:focus,
.form-select:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(30,77,53,.12);
  outline: none;
  background-color: #fff;
}
/* Single custom chevron for selects */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .65rem center;
  background-size: 14px 10px;
  padding-right: 2.25rem;
}
.form-control-sm, .form-select-sm {
  font-size: .82rem;
  padding: .35rem .65rem;
  border-radius: var(--radius-sm);
}
/* .form-select-sm's padding shorthand above resets padding-right to .65rem,
   wiping out the 2.25rem reserved for the chevron and letting long option
   text run under/behind the arrow — restore just the right side. */
.form-select.form-select-sm {
  padding-right: 1.85rem;
}
/* Prevent textarea from inheriting select padding-right */
textarea.form-control { padding-right: .75rem; }

/* ── Custom select dropdown ──────────────────────────────────
   A native <select>'s closed box can be fully restyled (see .form-select
   above), but the open option-list popup is drawn by the OS/browser and
   cannot be styled by CSS in any browser. main.js's initCustomSelects()
   progressively enhances every .form-select: the real <select> stays in
   the DOM (visually hidden, still receives real change events and still
   holds the real value — so existing onchange="", data-autosubmit, and
   getElementById(...).value code keeps working untouched) and a fake
   button + styled list sit next to it, staying in sync both ways. */
.uc-select-wrap { position: relative; }
.uc-select-wrap > select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.uc-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .9rem;
  color: var(--text-primary);
  background-color: var(--input-bg);
  border: 1.5px solid var(--input-border);
  border-radius: var(--input-radius);
  padding: .5rem .75rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.uc-select-wrap.uc-sm > .uc-select-btn {
  font-size: .82rem;
  padding: .35rem .65rem;
  border-radius: var(--radius-sm);
}
.uc-select-btn:hover { border-color: var(--gray-400); }
.uc-select-wrap.open > .uc-select-btn,
.uc-select-btn:focus-visible {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(30,77,53,.12);
  outline: none;
}
.uc-select-wrap.disabled > .uc-select-btn {
  background-color: var(--gray-100);
  color: var(--text-muted);
  cursor: not-allowed;
}
.uc-select-wrap > select.is-invalid ~ .uc-select-btn { border-color: var(--danger); }
.uc-select-wrap > select.is-invalid ~ .uc-select-btn:focus-visible { box-shadow: 0 0 0 3px rgba(185,28,28,.12); }
.uc-select-wrap.uc-native-invalid > .uc-select-btn { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(185,28,28,.12); }
.uc-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-select-placeholder { color: var(--gray-400); }
.uc-select-chevron {
  flex-shrink: 0;
  width: 14px; height: 10px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 14px 10px;
  transition: transform .15s ease;
}
.uc-select-wrap.open .uc-select-chevron { transform: rotate(180deg); }
/* Rendered as a direct child of <body> (a "portal"), positioned in JS from
   the trigger button's getBoundingClientRect() — NOT nested inside
   .uc-select-wrap. Several places this opens from (e.g. abstracts.php's
   filter bar) have an ancestor with overflow-x:auto for horizontal
   scrolling; an absolutely-positioned descendant of THAT ancestor gets
   clipped/reflowed by it no matter what z-index says, which visibly broke
   the surrounding filter card. Living in <body> with position:fixed sidesteps
   every ancestor's overflow/stacking context entirely. */
.uc-select-panel {
  position: fixed;
  min-width: 160px;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  z-index: 1060;
  display: none;
}
.uc-select-panel.open { display: block; }
.uc-select-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .85rem;
  color: var(--text-primary);
  padding: .45rem .65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uc-select-option:hover,
.uc-select-option.uc-active { background: var(--gold-bg); color: var(--gold); }
.uc-select-option.uc-selected { font-weight: 600; }
.uc-select-option.uc-selected::after { content: '\2713'; float: right; margin-left: .5rem; }
.uc-select-option:disabled { color: var(--text-muted); cursor: not-allowed; }
.uc-select-option.uc-disabled-option { color: var(--text-muted); cursor: not-allowed; }
.uc-select-option.uc-disabled-option:hover { background: none; color: var(--text-muted); }
.uc-select-optgroup-label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  padding: .4rem .65rem .2rem;
}
.form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .35rem;
  letter-spacing: .01em;
}
.form-text { font-size: .78rem; color: var(--text-muted); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(30,77,53,.15); border-color: var(--brand); }
textarea.form-control { resize: vertical; min-height: 90px; }

/* Invalid state */
.form-control.is-invalid,
.form-select.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus,
.form-select.is-invalid:focus { box-shadow: 0 0 0 3px rgba(185,28,28,.12); }
.invalid-feedback { font-size: .78rem; color: var(--danger); margin-top: .3rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .01em;
  border-radius: var(--radius);
  padding: .5rem 1.25rem;
  transition: all .18s ease;
  border: 1.5px solid transparent;
  line-height: 1.5;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn-gold {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}
.btn-gold:hover { background: #1739ab; border-color: #1739ab; color: #fff; }

.btn-brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-brand:hover { background: #163826; border-color: #163826; color: #fff; }

/* legacy alias used in PHP templates */
.btn-green { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.btn-green:hover { background: #163826; color: #fff; border-color: #163826; }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-outline-gold.active-filter { background: var(--gold); color: #fff; }

.btn-xs {
  padding: .2rem .45rem;
  font-size: .72rem;
  line-height: 1.4;
  border-radius: var(--radius-sm, .25rem);
}

.btn-outline-brand {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* Bootstrap's default .btn-outline-secondary is plain grey (#6c757d) and
   was never re-themed — used as the neutral "Clear/Cancel" action next to
   brand-colored primary buttons (Filter/Save/etc.) throughout the admin
   filter bars, so it needs to read as part of the same design system
   instead of a leftover default. */
.btn-outline-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--gray-300);
}
.btn-outline-secondary:hover {
  background: var(--gray-50);
  color: var(--text-primary);
  border-color: var(--gray-400);
}
.btn-outline-secondary.disabled,
.btn-outline-secondary:disabled {
  color: var(--text-muted);
  border-color: var(--gray-200);
  background: transparent;
}

.btn-sm { font-size: .8rem; padding: .35rem .9rem; border-radius: var(--radius-sm); }
.btn-lg { font-size: .95rem; padding: .65rem 1.75rem; }

/* ── Scrollbar ───────────────────────────────────────────── */

/* ── TOPBAR (utility strip above the main nav) ──────────────
   Slim dark strip carrying secondary info (conference dates, contact email,
   social links) and secondary account actions (author login/register,
   sponsor portal) — keeps the main nav row focused on primary site
   navigation + the one primary CTA instead of ten competing items at the
   same visual weight. */
.topbar-utility {
  background: var(--gray-50);
  color: var(--text-secondary);
  font-size: .76rem;
  padding: .28rem 0;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-200);
}
.topbar-utility-left,
.topbar-utility-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 0;
}
.topbar-utility a { color: inherit; text-decoration: none; transition: color .15s; }
.topbar-utility-left span,
.topbar-utility-left a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.topbar-utility-left i { font-size: .8rem; opacity: .7; color: var(--gold); }
.topbar-utility a:hover { color: var(--gold); }
.topbar-utility-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }
.topbar-utility-link i { font-size: .78rem; }
.topbar-social {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-200);
  color: var(--text-secondary);
  font-size: .78rem;
}
.topbar-social:hover { background: var(--gold-bg); color: var(--gold); }
@media (max-width: 767px) {
  .topbar-utility-left span:not(:first-child) { display: none; }
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar-public {
  background: #fff !important;
  border-bottom: 1px solid var(--gray-200);
  padding: .6rem 0;
  transition: box-shadow .2s;
}
.navbar-public.shadow { box-shadow: var(--shadow-md) !important; }
.navbar-public .navbar-brand-text {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 400;
}
.navbar-public .navbar-brand-text span {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .65rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.navbar-public .nav-link {
  color: var(--text-secondary) !important;
  font-size: .87rem;
  font-weight: 500;
  padding: .5rem .85rem !important;
  border-radius: 6px;
  transition: all .15s;
  position: relative;
}
.navbar-public .nav-link:hover { color: var(--text-primary) !important; background: var(--gray-50); }
.navbar-public .nav-link.active { color: var(--gold) !important; }
.navbar-public .nav-link.active::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem; bottom: .18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.navbar-public .navbar-toggler { border-color: var(--gray-300); padding: .35rem .55rem; }
.navbar-public .navbar-toggler-icon { filter: none; width: 1.3em; height: 1.3em; }
.navbar-brand img { height: 34px; }
.navbar-icon-btn {
  width: 38px; height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: #fff;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1;
  transition: all .15s;
}
.navbar-icon-btn i {
  display: inline-block;
  line-height: 1;
}
.navbar-icon-btn:hover { border-color: var(--gold-border); color: var(--gold); background: var(--gold-bg); }
.msg-icon-btn { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.msg-icon-btn:hover { background: #1a43ba; border-color: #1a43ba; color: #fff; }
.admin-topbar-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: .62rem;
  padding: .22em .4em;
  min-width: 17px;
  line-height: 1.3;
}
@media (max-width: 991px) {
  .navbar-public .navbar-nav { gap: .15rem !important; }
  .navbar-public .nav-link.active::after { display: none; }
  .navbar-public .nav-link.active { background: var(--gold-bg); }
  .navbar-icon-btn { width: auto; height: auto; border: none; border-radius: 6px; justify-content: flex-start; padding: .5rem .85rem; }
  .navbar-icon-btn:hover { background: var(--gray-50); }
}

/* ── ACCOUNT DROPDOWN (shared) ───────────────────────────────
   One consistent "who's logged in" control, used by both the public site
   header (.account-user-btn, logged-in author) and the admin topbar
   (.admin-user-btn) — a pill with a small initials avatar, name, and caret,
   opening a card-styled menu. Previously each used ad-hoc/default Bootstrap
   styling and looked inconsistent with the rest of the app's rounded,
   card-based design language. */
.account-user-btn,
.admin-user-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  max-width: 190px;
  padding: .3rem .8rem .3rem .3rem !important;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200);
  background: #fff;
  color: var(--text-primary);
  font-size: .85rem;
  font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.account-user-btn:hover,
.admin-user-btn:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
}
.account-user-btn::after,
.admin-user-btn::after {
  margin-left: .15rem;
  opacity: .55;
}
.account-user-avatar,
.admin-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-user-name,
.admin-user-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Compact variant for the slim topbar utility strip */
.account-user-btn-sm {
  max-width: 160px;
  padding: .1rem .6rem .1rem .1rem !important;
  font-size: .76rem;
}
.account-user-btn-sm .account-user-avatar {
  width: 20px;
  height: 20px;
  font-size: .68rem;
}
.topbar-account-dropdown { line-height: 1; position: relative; z-index: 1030; }
.topbar-account-dropdown .dropdown-menu { z-index: 1030; }

/* Card-styled dropdown panel + rows, shared by both account dropdowns above
   (and safe to reuse for any other user-facing dropdown menu). */
.account-dropdown-menu {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: .4rem;
  min-width: 200px;
}
.account-dropdown-menu .dropdown-item {
  border-radius: var(--radius-sm);
  padding: .5rem .7rem;
  font-size: .85rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}
.account-dropdown-menu .dropdown-item:hover,
.account-dropdown-menu .dropdown-item:focus {
  background: var(--gray-50);
  color: var(--text-primary);
}
.account-dropdown-menu .dropdown-item.active {
  background: var(--gold-bg);
  color: var(--gold);
}
.account-dropdown-menu .dropdown-item.text-danger:hover {
  background: #fdeaea;
  color: var(--danger) !important;
}
.account-dropdown-menu .dropdown-divider {
  margin: .3rem .2rem;
  border-color: var(--gray-100);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #fffdf8 0%, var(--gold-bg) 55%, #fef9ec 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 85% 20%, rgba(184,144,42,.10) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 5% 90%, rgba(30,77,53,.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
}
.hero-inner > .container { padding-top: 20px; padding-bottom: 20px; }
.hero-content { position: relative; z-index: 2; }

/* Compact notice ticker strip along the top of the hero */
.hero-ticker {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  z-index: 3;
  overflow: hidden;
}
.hero-ticker .container { padding-top: 8px; padding-bottom: 8px; }
.hero-ticker-badge {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 20px;
  padding: 3px 10px;
}
.hero-ticker-track {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.hero-ticker-scroll {
  display: inline-flex;
  white-space: nowrap;
  animation: hero-ticker-rtl 30s linear infinite;
}
.hero-ticker-track:hover .hero-ticker-scroll { animation-play-state: paused; }
.hero-ticker-group { display: inline-flex; align-items: center; }
@keyframes hero-ticker-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-ticker-item {
  display: inline-block;
  font-size: .82rem;
  color: var(--text-secondary);
  margin-right: 48px;
}
.hero-ticker-item a { color: var(--text-primary); text-decoration: none; }
.hero-ticker-item a:hover { color: var(--gold); text-decoration: underline; }
.hero-ticker-item i { font-size: .75rem; opacity: .85; color: #e2574c; }
.hero-ticker-date {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 1px 8px;
  margin-right: 8px;
}
.hero-eyebrow {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.hero-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--text-primary);
  line-height: 1.12;
  font-weight: 400;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--brand);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: .04em;
}
.hero-badge {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-secondary);
  font-size: .85rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge i { color: var(--gold); }

/* ── SECTION typography ──────────────────────────────────── */
.section-eyebrow {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.section-title { color: var(--text-primary); font-size: 2rem; font-weight: 400; }
.section-divider {
  width: 40px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 10px 0 22px;
}

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, #fffdf8 0%, var(--gold-bg) 100%);
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
}
.page-hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 16px;
  row-gap: 2px;
}
.page-hero h1 {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'DM Sans', system-ui, sans-serif;
  margin: 0;
  order: 1;
}
.page-hero p {
  color: var(--text-muted);
  font-size: .8rem;
  margin: 0;
  order: 3;
  flex-basis: 100%;
}
.page-hero nav[aria-label="breadcrumb"] { order: 2; }
.page-hero .breadcrumb { margin: 0; }
.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a { color: var(--text-muted); font-size: .78rem; text-decoration: none; }
.page-hero .breadcrumb-item.active { color: var(--gold); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: var(--gray-300); }

/* ── CARDS ───────────────────────────────────────────────── */
.card-public {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}
.card-public:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.card-icon-gold { background: var(--gold-bg); color: var(--gold); }
.card-icon-brand { background: var(--brand-light); color: var(--brand); }

/* ── SPEAKER CARDS ───────────────────────────────────────── */
.speaker-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  background: #fff;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.speaker-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.speaker-card .speaker-img { width: 100%; height: 150px; object-fit: cover; display: block; }
.speaker-card .speaker-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-bg);
  color: var(--gold);
  font-size: 3rem;
}
.speaker-card .speaker-body {
  background: #fff;
  color: var(--text-secondary);
  padding: 12px 14px;
  border-top: 1px solid var(--gray-200);
}
.speaker-card .speaker-name { font-size: .88rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.speaker-card .speaker-designation { font-size: .72rem; color: var(--text-secondary); margin-top: 2px; }
.speaker-card .speaker-country { font-size: .7rem; color: var(--text-muted); margin-top: 2px; }

/* ── THEME CARDS ─────────────────────────────────────────── */
.theme-card {
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 18px 20px;
  background: #fff;
  transition: all .2s;
}
.theme-card:hover {
  border-color: var(--gold);
  background: var(--gold-bg);
  box-shadow: var(--shadow-md);
}
.theme-card:hover .theme-num { color: var(--gold); }
.theme-card:hover p { color: var(--text-primary); }
.theme-num {
  font-size: .68rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: 'DM Sans', system-ui, sans-serif;
  margin-bottom: 6px;
}
.theme-card p { color: var(--text-primary); font-size: .88rem; margin: 0; font-weight: 500; }

/* ── TIMELINE ────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--gray-200));
}
.timeline-item { position: relative; margin-bottom: 22px; }
.timeline-dot {
  position: absolute;
  left: -24px; top: 5px;
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--gold-border);
}
.timeline-date { font-size: .72rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.timeline-label { font-weight: 600; color: var(--text-primary); font-size: .9rem; }

/* ── COUNTDOWN ───────────────────────────────────────────── */
.countdown-box {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  text-align: center;
  min-width: 82px;
  box-shadow: var(--shadow-sm);
}
.countdown-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.4rem;
  color: var(--brand);
  line-height: 1;
  font-weight: 400;
}
.countdown-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.countdown-box-sm {
  padding: 8px 4px;
  min-width: 0;
  flex: 1;
  border-radius: var(--radius);
}
.countdown-box-sm .countdown-number { font-size: 1.3rem; }
.countdown-box-sm .countdown-label { font-size: .55rem; letter-spacing: .06em; margin-top: 1px; }

/* ── HERO STRIP (Countdown / Important Dates) ───────────────── */
.hero-strip { position: relative; }

.countdown-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 14px 18px 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.countdown-card-label {
  position: relative;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.countdown-card-label i { font-size: .8rem; }
.countdown-card-grid {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}
.countdown-unit { flex: 1; text-align: center; }
.countdown-unit-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.countdown-unit-label {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-top: 3px;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.countdown-sep {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--gray-300);
  line-height: 1;
  align-self: center;
  margin-top: -8px;
}

.dates-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
}
.dates-card-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.dates-card-label i { font-size: .85rem; }
.dates-list { list-style: none; margin: 0; padding: 0; }
.dates-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.dates-list-item + .dates-list-item { border-top: 1px dashed var(--gray-200); }
.dates-list-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-bg);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
.dates-list-text {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.dates-list-title {
  font-size: .78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dates-list-value {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .countdown-unit-number { font-size: 1.6rem; }
  .countdown-sep { font-size: 1.3rem; padding-bottom: 10px; }
}

/* ── WIZARD STEPS ────────────────────────────────────────── */
.wizard-steps { display: flex; align-items: center; margin-bottom: 2rem; }
.wizard-step { flex: 1; text-align: center; }
.wizard-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  color: var(--gray-400);
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
}
.wizard-step.active   .wizard-step-num { background: var(--brand); border-color: var(--brand); color: #fff; }
.wizard-step.completed .wizard-step-num { background: var(--gold); border-color: var(--gold); color: #fff; }
.wizard-step-label { font-size: .75rem; margin-top: 5px; color: var(--gray-400); font-weight: 500; }
.wizard-step.active .wizard-step-label    { color: var(--brand); font-weight: 600; }
.wizard-step.completed .wizard-step-label { color: var(--gray-500); }
/* A step that the current selection makes not-applicable (e.g. Abstract ID
   for a non-presenting category) — dimmed and struck through rather than
   just hidden, so the visitor understands why the count skipped past it. */
.wizard-step.skipped { opacity: .4; }
.wizard-step.skipped .wizard-step-num { background: var(--gray-100); border-color: var(--gray-200); color: var(--gray-400); }
.wizard-step.skipped .wizard-step-label { text-decoration: line-through; }
.wizard-connector { flex: 1; height: 2px; background: var(--gray-200); margin: 0 4px; position: relative; top: -10px; }
.wizard-connector.done { background: var(--gold); }

/* ── FORM MISC ───────────────────────────────────────────── */
.word-counter { font-size: .75rem; font-weight: 500; }
.word-counter.ok    { color: var(--success); }
.word-counter.over  { color: var(--danger); }
.word-counter.under { color: var(--warning); }

.author-row {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}

.tag-input-wrap {
  border: 1.5px solid var(--input-border);
  border-radius: var(--input-radius);
  padding: 5px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  cursor: text;
  min-height: 42px;
  background: var(--input-bg);
  transition: border-color .15s, box-shadow .15s;
}
.tag-input-wrap:focus-within {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(30,77,53,.12);
}
.tag-badge {
  background: var(--gray-700);
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .75rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tag-remove { cursor: pointer; opacity: .6; }
.tag-remove:hover { opacity: 1; }
.tag-real-input { border: none; outline: none; flex: 1; min-width: 80px; font-size: .88rem; color: var(--text-primary); }

/* ── Rich-text field (title / keywords / abstract text) ─── */
.richtext-toolbar {
  display: flex; gap: 2px; flex-wrap: wrap;
  border: 1.5px solid var(--input-border);
  border-bottom: none;
  border-radius: var(--input-radius) var(--input-radius) 0 0;
  background: var(--gray-50);
  padding: 4px;
}
.richtext-toolbar-btn {
  border: none; background: none; color: var(--text-secondary);
  width: 28px; height: 28px; border-radius: 4px;
  font-size: .8rem; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.richtext-toolbar-btn:hover  { background: var(--gray-200); }
.richtext-toolbar-btn:active,
.richtext-toolbar-btn.active { background: var(--brand-light); color: var(--brand); }
.richtext-toolbar-btn em    { font-style: italic; }
.richtext-toolbar-btn u     { text-decoration: underline; }
.richtext-toolbar-btn s     { text-decoration: line-through; }

.richtext-editor {
  border: 1.5px solid var(--input-border);
  border-radius: 0 0 var(--input-radius) var(--input-radius);
  padding: 8px 12px;
  min-height: 42px;
  background: var(--input-bg);
  font-size: .9rem;
  color: var(--text-primary);
  transition: border-color .15s, box-shadow .15s;
}
.richtext-editor[data-multiline] { min-height: 180px; white-space: pre-wrap; }
.richtext-field:focus-within .richtext-editor { border-color: var(--input-focus); box-shadow: 0 0 0 3px rgba(30,77,53,.12); }
.richtext-editor:empty::before { content: attr(data-placeholder); color: var(--text-muted); }
.richtext-editor.is-invalid { border-color: var(--danger); }

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── SCHEDULE ────────────────────────────────────────────── */
.schedule-type-plenary   { border-left: 3px solid var(--gold); }
.schedule-type-technical { border-left: 3px solid var(--brand); }
.schedule-type-break     { border-left: 3px solid var(--gray-300); background: var(--gray-50); }
.schedule-type-ceremony  { border-left: 3px solid #7c3aed; }
.schedule-type-workshop  { border-left: 3px solid #2563eb; }
.schedule-type-panel     { border-left: 3px solid #ea580c; }

/* Session-type badges — colour matches the timeline row's left-border accent above */
.badge-schedule-plenary   { background: var(--gold-bg);           color: var(--gold); }
.badge-schedule-technical { background: var(--brand-light);       color: var(--brand); }
.badge-schedule-break     { background: var(--gray-200);          color: var(--gray-700); }
.badge-schedule-ceremony  { background: #ede9fe;                  color: #7c3aed; }
.badge-schedule-workshop  { background: #dbeafe;                  color: #2563eb; }
.badge-schedule-panel     { background: #ffedd5;                  color: #ea580c; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--gray-100);
  color: var(--text-secondary);
  border-top: 1px solid var(--gray-200);
}
.footer a { color: var(--text-secondary); text-decoration: none; transition: color .15s; }
.footer a:hover { color: var(--gold); }
.footer .text-muted { color: var(--text-muted) !important; }
.footer-brand {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 400;
}
.footer-divider { border-color: var(--gray-200); }
.social-link {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--gray-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all .15s;
}
.social-link:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ── TOAST ───────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10060; /* above modals/confirm-action-modal so a save-then-toast is never hidden */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.app-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 40px 13px 14px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--success);
  font-size: .85rem;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .22s ease, transform .22s ease;
}
.app-toast.show { opacity: 1; transform: translateY(0); }
.app-toast.hide { opacity: 0; transform: translateY(-12px); }
.app-toast-success { border-left-color: var(--success); }
.app-toast-error,
.app-toast-danger   { border-left-color: var(--danger); }
.app-toast-warning  { border-left-color: var(--warning); }
.app-toast-info     { border-left-color: var(--gold); }
.app-toast-icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 1rem;
}
.app-toast-success .app-toast-icon { color: var(--success); }
.app-toast-error .app-toast-icon,
.app-toast-danger .app-toast-icon  { color: var(--danger); }
.app-toast-warning .app-toast-icon { color: var(--warning); }
.app-toast-info .app-toast-icon    { color: var(--gold); }
.app-toast-body { flex: 1; line-height: 1.4; word-break: break-word; }
.app-toast-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.app-toast-close:hover { background: var(--gray-100, #f3f4f6); color: var(--text-primary); }
.app-toast-progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 100%;
  background: currentColor;
  opacity: .18;
  color: var(--success);
  transform-origin: left;
  animation: app-toast-shrink linear forwards;
}
.app-toast-success .app-toast-progress { color: var(--success); }
.app-toast-error .app-toast-progress,
.app-toast-danger .app-toast-progress  { color: var(--danger); }
.app-toast-warning .app-toast-progress { color: var(--warning); }
.app-toast-info .app-toast-progress    { color: var(--gold); }
@keyframes app-toast-shrink {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
@media (max-width: 480px) {
  #toast-container { top: 12px; max-width: calc(100vw - 24px); }
}

/* ── CONFIRM ACTION MODAL ────────────────────────────────── */
.confirm-action-modal .modal-content { border: none; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.confirm-action-icon {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.confirm-action-icon-danger  { background: #fee2e2; color: var(--danger); }
.confirm-action-icon-primary { background: #dbeafe; color: #1d4ed8; }

/* ── GDPR / COOKIE CONSENT ───────────────────────────────── */
#gdpr-consent {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  max-width: 340px;
  animation: gdprSlideIn .35s ease;
}
#gdpr-consent.gdpr-consent-hide { animation: gdprSlideOut .3s ease forwards; }
@keyframes gdprSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gdprSlideOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}
.gdpr-consent-box {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
}
.gdpr-consent-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gold-bg);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.gdpr-consent-text {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}
.gdpr-consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 480px) {
  #gdpr-consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ── STATUS BADGES ───────────────────────────────────────── */
.badge-pending      { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-under_review { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-accepted     { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-revision     { background: #ffedd5; color: #9a3412; border: 1px solid #fed7aa; }
.badge-rejected     { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-paid         { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-waived       { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-confirmed    { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-cancelled    { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-not_arranged { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-arranged     { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-pending[class], .badge-under_review[class], .badge-accepted[class],
.badge-revision[class], .badge-rejected[class], .badge-paid[class], .badge-waived[class],
.badge-confirmed[class], .badge-cancelled[class], .badge-not_arranged[class], .badge-arranged[class] {
  font-size: .72rem; font-weight: 600; padding: .25em .6em; border-radius: 4px;
}

.decision-choice {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  user-select: none;
}
.decision-choice:hover { background: var(--gray-100); border-color: var(--gray-300); }
.decision-choice.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ── MESSAGES INBOX (split-pane thread view) ─────────────────── */
.msg-inbox {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 75vh;
  min-height: 520px;
  max-height: 820px;
  overflow: hidden;
}
.msg-inbox-list {
  border-right: 1px solid var(--gray-200);
  overflow-y: auto;
  background: var(--gray-50);
}
.msg-inbox-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 1;
}
.msg-thread-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-200);
  transition: background .12s;
}
.msg-thread-item:hover { background: var(--gray-100); }
.msg-thread-item.active {
  background: var(--gold-bg);
  border-left: 3px solid var(--gold);
  padding-left: 13px;
}
.msg-inbox-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}
.msg-thread-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.msg-thread-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 20px;
  background: var(--gray-50);
}
.msg-bubble-wrap { display: flex; margin-bottom: 16px; }
.msg-bubble {
  max-width: 72%;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}
.msg-bubble-in   { background: #fff; border: 1px solid var(--gray-200); }
.msg-bubble-out  { background: var(--brand); color: #fff; }
.msg-bubble-note { background: var(--gold-bg); border: 1px dashed var(--gold); max-width: 90%; }
.msg-bubble-subject { font-weight: 600; font-size: .85rem; margin-bottom: 6px; overflow-wrap: anywhere; }
.msg-bubble-in .msg-bubble-subject,
.msg-bubble-note .msg-bubble-subject { color: var(--text-primary); }
.msg-bubble-text {
  font-size: .87rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
  line-height: 1.55;
}
.msg-thread-reply {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
  background: #fff;
}

@media (max-width: 991px) {
  .msg-inbox { grid-template-columns: 1fr; height: auto; }
  .msg-inbox-list { max-height: 320px; border-right: none; border-bottom: 1px solid var(--gray-200); }
  .msg-inbox-thread { min-height: 480px; }
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════ */

/* Admin brand (in topbar, sidebar removed) */
.admin-brand {
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.admin-brand-logo {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}
.admin-brand-title {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.25;
}
.admin-brand-sub {
  display: block;
  color: var(--text-muted);
  font-size: .68rem;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.admin-topbar-divider {
  width: 1px;
  height: 28px;
  background: var(--gray-200);
}

/* Horizontal menu bar — blue, sits below topbar */
.admin-navbar {
  background: var(--gold);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px 16px;
  height: 42px;
  min-height: 42px;
  position: sticky;
  top: 61px;
  z-index: 99;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.admin-navbar-link {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: .8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.admin-navbar-link i { font-size: .88rem; }
.admin-navbar-link:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.admin-navbar-link.active {
  color: var(--gold);
  background: #fff;
  font-weight: 600;
}
.admin-navbar-badge {
  background: #fff;
  color: var(--gold);
  font-size: .68rem;
  padding: .2em .5em;
}
.admin-navbar-badge-danger { background: #dc3545; color: #fff; }

/* Admin main area */
.admin-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);   /* clean neutral grey */
}
.admin-content {
  flex: 1 0 auto;
}
.admin-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--gray-200);
  background: #fff;
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  height: 61px;
  min-height: 61px;
  max-height: 61px;
  flex-shrink: 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar .page-title {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}
.admin-topbar > div { min-width: 0; }
.admin-topbar .dropdown { min-width: 0; }
.admin-topbar-search {
  align-items: center;
  gap: .5rem;
  width: 260px;
  height: 36px;
  padding: 0 12px;
  font-size: .85rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--text-muted);
  cursor: pointer;
  text-align: left;
}
.admin-topbar-search:hover {
  background: #fff;
  border-color: var(--gray-400);
}
.admin-topbar-search i { font-size: .9rem; flex-shrink: 0; }
.admin-topbar-search span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Global search modal */
.global-search-results {
  max-height: 60vh;
  overflow-y: auto;
}
.global-search-group-label {
  padding: .6rem 1rem .3rem;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.global-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-primary);
  text-decoration: none;
}
.global-search-row:last-child { border-bottom: none; }
.global-search-row:hover { background: var(--gray-50); color: var(--text-primary); }
.admin-topbar .text-muted  { color: var(--text-muted) !important; }
.admin-content { padding: 24px; }

/* Admin cards */
.admin-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

/* ── DASHBOARD ───────────────────────────────────────────── */

/* Greeting bar */
.dash-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
/* Variant that stacks a second row (e.g. stat cards) below the title/buttons row */
.dash-greeting-stack { display: block; }
.dash-greeting-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.dash-greeting-sub {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 0;
}

/* KPI cards */
.dash-kpi {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
}
.dash-kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dash-kpi-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.dash-kpi-body { flex: 1; min-width: 0; }
.dash-kpi-val {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.dash-kpi-lbl {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
  margin-bottom: 4px;
}
.dash-kpi-link {
  position: absolute;
  inset: 0;
}

/* Compact dashboard variants */
.dash-greeting-sm { padding: 14px 20px; }
.dash-greeting-title-sm { font-size: 1.1rem; }
.dash-kpi-sm { padding: 12px 14px; gap: 10px; }
.dash-kpi-icon-sm { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 10px; }
.dash-kpi-val-sm { font-size: 1.5rem; }
.dash-mini-sm { padding: 10px 12px; gap: 8px; }

/* Stat chip row: compact inline pills, evenly distributed, wraps by natural width */
.dash-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-stat {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 6px 14px 6px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  overflow: hidden;
  flex: 1 1 auto;
  min-width: 128px;
}
@media (max-width: 767px) { .dash-stat { flex: 1 1 calc(50% - 3px); min-width: calc(50% - 3px); } }
.dash-stat:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--gray-300); }
.dash-stat-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .74rem;
  flex-shrink: 0;
}
.dash-stat-body {
  min-width: 0;
  line-height: 1.1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}
.dash-stat-val {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  font-family: 'DM Sans', system-ui, sans-serif;
  flex-shrink: 0;
}
.dash-stat-lbl {
  font-size: .68rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Chart cards: fixed uniform canvas height so 3-per-row grids line up */
.dash-chart-card { display: flex; flex-direction: column; }
.dash-chart-canvas-wrap { height: 190px; position: relative; flex: 1; }
.dash-chart-canvas-wrap-sm { height: 95px; position: relative; flex: 1; }
.dash-chart-canvas-wrap-xs { height: 100px; position: relative; flex: 1; overflow: hidden; }

/* Outer dashboard wrapper: greeting + stats + charts + activity, one card */
.dash-outer-card { background: var(--gray-50); }
.dash-chart-card-inner { box-shadow: none; border: 1px solid var(--gray-200); }

/* Fixed header height so every chart card's canvas starts at the same y-position,
   even when cards with different header content (title+legend+range-switch vs.
   plain title+subtitle) end up stacked across different grid rows. */
.dash-chart-card-header { min-height: 40px; margin-bottom: 8px; }

/* Dashboard 2-column layout: charts left, tabbed activity right.
   The tab pane fills whatever height .dash-tab-card ends up with (matched to
   the left column via h-100) — its own scroll area (.dash-tab-scroll) grows
   to absorb all the leftover space, with the pagination bar pinned below it,
   instead of the old fixed max-height that left blank space under a short
   table on a tall card. */
.dash-tab-card { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; }
.dash-tabs { display: flex; gap: 4px; padding: 0 .75rem; border-bottom: 1px solid var(--gray-100, #eee); }
.dash-tab-btn {
  border: none; background: none; cursor: pointer;
  padding: .6rem .9rem; font-size: .82rem; font-weight: 600;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.dash-tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); }
.dash-tab-pane { display: none; }
.dash-tab-pane.active { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dash-tab-scroll { flex: 1; min-height: 0; overflow-y: auto; }

/* Recent Abstracts / Recent Registrations rows link to their detail page */
.dash-row-link { transition: background-color .12s ease; }
.dash-row-link:hover { background-color: var(--gray-50, #f8f9fa); }

/* Compact range switch (7D / 30D / 90D / All) for the trend chart */
.dash-range-switch {
  display: inline-flex;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}
.dash-range-switch button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.dash-range-switch button:hover { color: var(--text-primary); }
.dash-range-switch button.active {
  background: var(--gold);
  color: #fff;
}

/* Delta badges */
.dash-delta {
  font-size: .72rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.dash-delta-up   { color: #16a34a; }
.dash-delta-down { color: #dc3545; }
.dash-delta-flat { color: var(--text-muted); }

/* Mini stat strip */
.dash-mini {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  overflow: hidden;
  height: 100%;
}
.dash-mini:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.dash-mini-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.dash-mini-val {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  font-family: 'DM Sans', system-ui, sans-serif;
}
.dash-mini-lbl {
  font-size: .74rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact inline stat pills — sit in the same bar as list-page filters
   instead of taking a full row of large .dash-mini cards.
   Pills + filter form stay on one row on desktop (min-width:0 on both
   flex children lets them shrink instead of forcing a wrap the moment
   combined content is a pixel too wide); the filter form's own fields
   never wrap individually — if the row is genuinely too narrow it
   scrolls horizontally instead, so the Filter/Clear button never gets
   pushed onto its own line mid-form. Below 991px both stacks vertically
   for touch-friendly full-width fields instead of a cramped scroller. */
.filters-bar-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}
.stat-pills-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.filters-bar-form {
  min-width: 0;
  flex-shrink: 1;
  overflow-x: auto;
  padding-bottom: 2px;
}
@media (max-width: 991px) {
  .filters-bar-row {
    flex-wrap: wrap;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--gray-100);
  }
  .filters-bar-form { flex-wrap: wrap !important; overflow-x: visible; }
  .filters-bar-form > div { width: 100% !important; }
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  text-decoration: none;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.stat-pill:hover { background: var(--gray-100); border-color: var(--gray-300); }
.stat-pill-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  flex-shrink: 0;
}
.stat-pill-val {
  font-size: .88rem;
  font-weight: 700;
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1;
}
.stat-pill-lbl {
  font-size: .74rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  line-height: 1;
}

/* Stat cards — clean, not coloured backgrounds */
.admin-stat {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--gray-200);
  transition: box-shadow .2s;
}
.admin-stat:hover { box-shadow: var(--shadow-md); }
.admin-stat .stat-val {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text-primary);
  line-height: 1.1;
}
.admin-stat .stat-lbl {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}
.admin-stat .stat-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Admin tables */
.admin-card .table-responsive { border-radius: var(--radius-lg); }
.admin-card .table { margin-bottom: 0; font-size: .85rem; border-collapse: separate; border-spacing: 0; }
.admin-card .table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-500);
  font-weight: 600;
  background: var(--gray-50);
  border: none;
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 14px;
  white-space: nowrap;
}
.admin-card .table td {
  padding: 10px 14px;
  vertical-align: middle;
  color: var(--text-primary);
  border: none;
  border-top: 1px solid var(--gray-100);
}

/* Royal-blue table header variant (matches the admin navbar) */
.admin-card .table thead.thead-brand th {
  background: var(--gold);
  color: rgba(255,255,255,.9);
  border-bottom-color: var(--gold);
}
.admin-card .table tbody tr:first-child td { border-top: none; }
.admin-card .table tbody tr:hover { background: var(--gray-50); }

/* Admin form controls match public — already defined above via unified selectors */

/* Admin login page */
.login-page { background: var(--gray-200); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}
.login-brand {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 400;
}

/* ── SETTINGS TABS ───────────────────────────────────────── */
/* Outer bordered panel — tab strip + sub-tabs + content read as one unit */
.settings-panel {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.settings-tabs-wrap {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 20px;
}
.settings-tabs {
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: none;
}
.settings-tabs .nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .9rem .25rem;
  margin: 0 14px 0 0;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: color .15s, border-color .15s;
}
.settings-tabs .nav-link:hover {
  color: var(--text-primary);
}
.settings-tabs .nav-link.active {
  color: var(--gold);
  background: transparent;
  font-weight: 600;
  border-bottom-color: var(--gold);
}

/* ── PUBLIC DASHBOARD TABS (My Account) ─────────────────────── */
/* Same underline style as .settings-tabs, without the admin panel's white
   background/border assumptions — sits directly on the public page. */
.dashboard-tabs {
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-200);
}
.dashboard-tabs .nav-link {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .8rem .25rem;
  margin: 0 20px 0 0;
  border-radius: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: color .15s, border-color .15s;
}
.dashboard-tabs .nav-link:hover {
  color: var(--text-primary);
}
.dashboard-tabs .nav-link.active {
  color: var(--gold);
  background: transparent;
  font-weight: 600;
  border-bottom-color: var(--gold);
}
.dashboard-tab-count {
  background: var(--gray-200);
  color: var(--text-secondary);
  font-size: .68rem;
  font-weight: 600;
  padding: .2em .55em;
  margin-left: .4em;
  vertical-align: 1px;
}
.dashboard-tabs .nav-link.active .dashboard-tab-count {
  background: var(--gold-bg);
  color: var(--gold);
}

/* Sub-tab pills — secondary navigation for merged tabs */
.settings-subtabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.settings-subtab-link {
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: .35rem .9rem;
  text-decoration: none;
  transition: all .15s;
}
.settings-subtab-link:hover {
  color: var(--text-primary);
  border-color: var(--gray-300);
}
.settings-subtab-link.active {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
}

/* Content area inside the bordered panel */
.settings-panel-body {
  padding: 24px;
}

/* Vertical sub-navigation — left rail of section links within a tab */
.settings-vtabs-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.settings-vtabs {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 24px;
}
.settings-vtab-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: .6rem .8rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}
.settings-vtab-link i { font-size: .95rem; width: 18px; text-align: center; flex-shrink: 0; }
.settings-vtab-link:hover {
  color: var(--text-primary);
  background: var(--gray-50);
}
.settings-vtab-link.active {
  color: var(--gold);
  background: var(--gold-bg);
  font-weight: 600;
  border-left-color: var(--gold);
}
.settings-vtabs-content {
  flex: 1;
  min-width: 0;
}
@media (max-width: 767px) {
  .settings-vtabs-layout { flex-direction: column; }
  .settings-vtabs {
    flex: 1 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    width: 100%;
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 12px;
    margin-bottom: 8px;
  }
  .settings-vtab-link { border-left: none; border-bottom: 2px solid transparent; }
  .settings-vtab-link.active { border-left: none; border-bottom-color: var(--gold); }
}

/* settings section headings */
.settings-section-head {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--gray-100);
}

/* detail label (abstract view) */
.detail-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* registration avatar */
.reg-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── ADMIN LIST PAGINATION ───────────────────────────────── */
/* Fixed width (not shrink-to-content) so the dropdown arrow has a real,
   comfortably tappable hit area instead of hugging the "25" text on touch. */
.dash-per-page-select {
  width: 68px;
  min-height: 34px;
  padding-top: .45rem;
  padding-bottom: .45rem;
}
.pagination { gap: 4px; }
.pagination .page-item .page-link {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: .82rem;
  font-weight: 500;
  padding: .4rem .7rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background .15s, border-color .15s, color .15s;
}
.pagination .page-item .page-link:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--text-primary);
}
.pagination .page-item.active .page-link {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.pagination .page-item.disabled .page-link {
  color: var(--text-muted);
  background: var(--gray-50);
  border-color: var(--gray-200);
  pointer-events: none;
}
.pagination .page-link:focus { box-shadow: 0 0 0 3px rgba(29,78,216,.15); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .admin-navbar {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: static;
    box-shadow: none;
    height: auto;
    min-height: 0;
  }
  .admin-navbar.open { display: flex; }
  .admin-navbar-link { width: 100%; }
}
@media (max-width: 768px) {
  .hero-inner > .container { padding-top: 20px; padding-bottom: 20px; }
  .countdown-number { font-size: 1.8rem; }
  .section-title { font-size: 1.6rem; }
  .wizard-step-label { display: none; }
}
