/* ============================================================
   AMERICAN LEGION ORANGE POST 132
   Officer Dashboard — css/admin.css
   ============================================================ */

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
.admin-body {
  margin: 0; padding: 0;
  background: #0f1623;
  color: #e8eaf0;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════════════════
   LOGIN
════════════════════════════════════════════════════════════ */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse at 50% 0%, #1a2540 0%, #0f1623 70%);
}
.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: #1a2235;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.admin-login-logo {
  display: flex; align-items: center; gap: 0.875rem;
  margin-bottom: 1.5rem; color: #c9a84c;
}
.admin-login-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.04em; color: #fff; line-height: 1.1;
}
.admin-login-sub {
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px;
}
.admin-login-desc {
  font-size: 0.875rem; color: rgba(255,255,255,0.55);
  margin: 0 0 1.5rem; line-height: 1.6;
}
.admin-login-help {
  font-size: 0.8rem; color: rgba(255,255,255,0.35); text-align: center; margin: 1rem 0 0;
}

/* ════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════ */
.admin-header {
  background: #141c2e;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky; top: 0; z-index: 100;
}
.admin-header-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 1.5rem;
  height: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.admin-header-brand {
  display: flex; align-items: center; gap: 0.625rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.03em; color: #fff;
}
.admin-header-brand svg { color: #c9a84c; flex-shrink: 0; }
.admin-header-right { display: flex; align-items: center; gap: 0.75rem; }
.admin-user-email {
  font-size: 0.8rem; color: rgba(255,255,255,0.4); display: none;
}
@media (min-width: 520px) { .admin-user-email { display: block; } }

/* ════════════════════════════════════════════════════════════
   SECTION NAVIGATION BUTTONS
════════════════════════════════════════════════════════════ */
.admin-section-nav {
  display: flex;
  gap: 0;
  background: #141c2e;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 1.5rem;
  overflow-x: auto;
}
.admin-nav-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255,255,255,0.5);
  font-family: 'Oswald', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.admin-nav-btn:hover { color: rgba(255,255,255,0.8); }
.admin-nav-btn.active {
  color: #c9a84c;
  border-bottom-color: #c9a84c;
}
.admin-nav-icon { font-size: 1.1rem; }
.admin-nav-badge {
  position: absolute;
  top: 0.6rem; right: 0.5rem;
  background: #e05252;
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}

/* ════════════════════════════════════════════════════════════
   MAIN LAYOUT
════════════════════════════════════════════════════════════ */
.admin-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.admin-panel { animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ════════════════════════════════════════════════════════════
   SECTIONS
════════════════════════════════════════════════════════════ */
.admin-section { display: flex; flex-direction: column; gap: 1.25rem; }
.admin-section-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.admin-section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem; font-weight: 600; letter-spacing: 0.03em; color: #fff; margin: 0 0 0.25rem;
}
.admin-section-desc { font-size: 0.85rem; color: rgba(255,255,255,0.45); margin: 0; }

/* ════════════════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════════════════ */
.admin-card {
  background: #1a2235;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1.5rem;
}
.admin-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem; font-weight: 600; color: #fff;
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ════════════════════════════════════════════════════════════
   FORM ELEMENTS
════════════════════════════════════════════════════════════ */
.admin-field { display: flex; flex-direction: column; gap: 0.375rem; flex: 1; min-width: 0; }
.admin-field-sm   { flex: 0 0 80px; min-width: 0; }
.admin-field-grow { flex: 1; min-width: 0; }
.admin-label {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}
.admin-hint    { font-weight: 400; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,0.35); }
.admin-required { color: #e05252; font-weight: 700; }
.admin-input {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  padding: 0.55rem 0.75rem;
  color: #e8eaf0;
  font-size: 0.9375rem;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
.admin-input:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.admin-input::placeholder { color: rgba(255,255,255,0.25); }
.admin-input-emoji { text-align: center; font-size: 1.25rem; padding: 0.45rem 0.5rem; }
.admin-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}
.admin-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.admin-form-row { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 0.875rem; }
.admin-form-row:last-child { margin-bottom: 0; }
.admin-form-actions { display: flex; gap: 0.75rem; align-items: center; padding-top: 0.5rem; flex-wrap: wrap; }

/* ── Toggle switch ───────────────────────────────────────── */
.admin-toggle-wrap { display: flex; align-items: center; gap: 0.625rem; cursor: pointer; padding-top: 0.25rem; user-select: none; }
.admin-toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.admin-toggle {
  position: relative; width: 42px; height: 24px; flex-shrink: 0;
  background: rgba(255,255,255,0.12); border-radius: 12px; transition: background 0.2s;
}
.admin-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.admin-toggle-input:checked ~ .admin-toggle { background: #c9a84c; }
.admin-toggle-input:checked ~ .admin-toggle::after { transform: translateX(18px); }
.admin-toggle-label { font-size: 0.875rem; color: rgba(255,255,255,0.7); }

/* ════════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════════ */
.admin-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  padding: 0.55rem 1.125rem; border-radius: 7px;
  font-family: 'Oswald', sans-serif; font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  white-space: nowrap; text-decoration: none;
}
.admin-btn:active { transform: scale(0.97); }
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.admin-btn-primary { background: #c9a84c; color: #0d1117; }
.admin-btn-primary:hover:not(:disabled) { background: #d9bc6a; }
.admin-btn-ghost { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.1); }
.admin-btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,0.13); }
.admin-btn-danger { background: rgba(224,82,82,0.15); color: #f08080; border: 1px solid rgba(224,82,82,0.25); }
.admin-btn-danger:hover:not(:disabled) { background: rgba(224,82,82,0.28); }
.admin-btn-sm  { padding: 0.35rem 0.75rem; font-size: 0.775rem; }
.admin-btn-full { width: 100%; }

/* Filter buttons */
.admin-filter-btn {
  padding: 0.35rem 0.875rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.admin-filter-btn:hover { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.3); }
.admin-filter-btn.active { background: #c9a84c; color: #0d1117; border-color: #c9a84c; font-weight: 600; }

/* ════════════════════════════════════════════════════════════
   ALERTS
════════════════════════════════════════════════════════════ */
.admin-alert { padding: 0.7rem 1rem; border-radius: 8px; font-size: 0.875rem; line-height: 1.5; }
.admin-alert-error   { background: rgba(224,82,82,0.15);  border: 1px solid rgba(224,82,82,0.3);  color: #f5a0a0; }
.admin-alert-success { background: rgba(76,175,80,0.14);  border: 1px solid rgba(76,175,80,0.28); color: #88d98a; }

/* ════════════════════════════════════════════════════════════
   ANNOUNCEMENT PREVIEW
════════════════════════════════════════════════════════════ */
.admin-announce-preview-wrap { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.admin-announce-preview-label {
  background: rgba(255,255,255,0.05);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.admin-announce-preview-wrap .announcement-bar { border-radius: 0; margin: 0; }

/* ════════════════════════════════════════════════════════════
   EVENTS LIST
════════════════════════════════════════════════════════════ */
.admin-events-list { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-loading { text-align: center; color: rgba(255,255,255,0.35); font-size: 0.9rem; padding: 2.5rem 1rem; }
.admin-empty   { text-align: center; color: rgba(255,255,255,0.4);  font-size: 0.9rem; padding: 2.5rem 1rem; line-height: 1.7; }
.admin-empty strong { color: rgba(255,255,255,0.65); }

.admin-event-card {
  background: #1a2235; border: 1px solid rgba(255,255,255,0.07); border-radius: 10px;
  padding: 1rem 1.25rem; display: flex; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap;
  transition: border-color 0.2s;
}
.admin-event-card:hover { border-color: rgba(255,255,255,0.14); }
.admin-event-card--inactive { opacity: 0.6; }
.admin-event-card--past { border-left: 3px solid rgba(255,255,255,0.1); }
.admin-event-card-main { flex: 1; min-width: 0; }
.admin-event-card-date { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #c9a84c; margin-bottom: 0.25rem; }
.admin-event-card-title { font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 0.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-event-card-meta { display: flex; gap: 0.875rem; flex-wrap: wrap; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.admin-event-cat { background: rgba(255,255,255,0.07); border-radius: 4px; padding: 0.15rem 0.5rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.admin-event-card-desc { margin-top: 0.4rem; font-size: 0.82rem; color: rgba(255,255,255,0.4); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.admin-event-card-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; flex-shrink: 0; }
.admin-event-status { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 4px; }
.admin-event-status--active { background: rgba(76,175,80,0.15); color: #6fcf72; border: 1px solid rgba(76,175,80,0.25); }
.admin-event-status--hidden { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.1); }
.admin-event-form-card { border: 1px solid rgba(201,168,76,0.3); background: #1e2840; }

/* ════════════════════════════════════════════════════════════
   HALL RENTAL MANAGER
════════════════════════════════════════════════════════════ */

/* Two-column layout */
.admin-rentals-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.25rem;
  min-height: 600px;
  align-items: start;
}
@media (max-width: 900px) {
  .admin-rentals-layout { grid-template-columns: 1fr; }
}

/* ── Rental list (left column) ──────────────────────────── */
.admin-rentals-list {
  background: #1a2235;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow-y: auto;
}

.admin-rental-card {
  padding: 1rem 1.125rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: background 0.15s;
}
.admin-rental-card:last-child { border-bottom: none; }
.admin-rental-card:hover    { background: rgba(255,255,255,0.04); }
.admin-rental-card.selected { background: rgba(201,168,76,0.1); border-left: 3px solid #c9a84c; }

.admin-rental-card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.admin-rental-card-name { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600; color: #fff; }
.admin-rental-card-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-bottom: 0.25rem; }
.admin-rental-card-sub  { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

/* Phase pills */
.admin-rental-phase-pill {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5);
}
.phase-inquiry     { background: rgba(100,150,255,0.15); color: #93b4ff; }
.phase-contact     { background: rgba(200,169,76,0.15);  color: #c9a84c; }
.phase-meeting,
.phase-tour        { background: rgba(100,200,150,0.15); color: #6fd4a3; }
.phase-requirements,
.phase-contract    { background: rgba(200,100,200,0.15); color: #d08fd0; }
.phase-payment     { background: rgba(100,200,100,0.15); color: #6fcc6f; }
.phase-event       { background: rgba(255,200,50,0.18);  color: #f0c030; }

/* ── Rental detail (right column) ───────────────────────── */
.admin-rental-detail {
  background: #1a2235;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  min-height: 400px;
}

.admin-rental-detail-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4rem 2rem; height: 100%; min-height: 400px;
  color: rgba(255,255,255,0.3); font-size: 0.9rem; line-height: 1.7;
}

.admin-rental-detail-inner { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.admin-detail-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-detail-name { font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700; color: #fff; margin: 0 0 0.2rem; }
.admin-detail-submitted { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

.admin-detail-block { display: flex; flex-direction: column; gap: 0.75rem; }
.admin-detail-block-title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 0.5rem;
}

/* Info grid */
.admin-detail-grid { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-detail-row { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.admin-detail-label { font-size: 0.8rem; color: rgba(255,255,255,0.45); flex-shrink: 0; min-width: 130px; }
.admin-detail-value { font-size: 0.9rem; color: #e8eaf0; }
.admin-detail-value a { color: #c9a84c; text-decoration: none; }
.admin-detail-value a:hover { text-decoration: underline; }

.admin-detail-message {
  background: rgba(255,255,255,0.04); border-radius: 8px; padding: 0.75rem 1rem;
  font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.65;
  border-left: 3px solid rgba(201,168,76,0.4);
}

/* ── Pipeline / Phase stepper ─────────────────────────── */
.admin-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.admin-pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.6rem 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, transform 0.1s;
  min-width: 72px;
  flex-shrink: 0;
  text-align: center;
}
.admin-pipeline-step:hover { background: rgba(255,255,255,0.07); transform: translateY(-1px); }
.admin-pipeline-step:active { transform: scale(0.96); }

.pipeline-icon {
  font-size: 1.4rem;
  line-height: 1;
  display: block;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  transition: all 0.2s;
}
.pipeline-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
  color: rgba(255,255,255,0.35);
  max-width: 64px;
  transition: color 0.2s;
}

/* Completed step */
.admin-pipeline-step.complete .pipeline-icon {
  background: rgba(201,168,76,0.2);
  border-color: #c9a84c;
}
.admin-pipeline-step.complete .pipeline-label { color: #c9a84c; }

/* Current step */
.admin-pipeline-step.current .pipeline-icon {
  background: #1B3D6D;
  border-color: #4a8ccc;
  box-shadow: 0 0 0 3px rgba(74,140,204,0.25);
}
.admin-pipeline-step.current .pipeline-label { color: #7db8e8; font-weight: 700; }

/* Connector lines */
.pipeline-connector {
  flex: 1; height: 2px; min-width: 8px; max-width: 24px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  transition: background 0.2s;
}
.pipeline-connector.complete { background: #c9a84c; }

/* ── Officer Notes ────────────────────────────────────── */
.admin-rental-notes {
  width: 100%;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.75rem;
  color: #e8eaf0;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.admin-rental-notes:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.admin-rental-notes::placeholder { color: rgba(255,255,255,0.2); }

.admin-notes-status {
  font-size: 0.75rem; font-weight: 500;
}
.admin-notes-status.unsaved { color: rgba(255,255,255,0.4); }
.admin-notes-status.saving  { color: #c9a84c; }
.admin-notes-status.saved   { color: #6fcc6f; }
.admin-notes-status.error   { color: #f08080; }

/* ════════════════════════════════════════════════════════════
   SCREEN-BASED NAVIGATION
════════════════════════════════════════════════════════════ */

/* Base screen wrapper — each #screen-X div */
.admin-screen { display: block; min-height: 100vh; }

/* ── Top bar (used on home + all section screens) ──────── */
.admin-topbar {
  position: sticky; top: 0; z-index: 100;
  background: #141c2e;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  height: 56px;
  display: flex; align-items: center;
  padding: 0 1rem; gap: 0.75rem;
}
.admin-topbar-brand {
  display: flex; align-items: center; gap: 0.625rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.03em; color: #fff;
  flex: 1;
}
.admin-topbar-brand svg { color: #c9a84c; flex-shrink: 0; }
.admin-topbar-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.04em;
  color: #fff; flex: 1; text-align: center;
}
.admin-topbar-right {
  display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
}

/* ← Back button */
.admin-back-btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.4rem 0.75rem; border-radius: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.admin-back-btn:hover { background: rgba(255,255,255,0.13); color: #fff; }
.admin-back-btn:active { transform: scale(0.97); }

/* ════════════════════════════════════════════════════════════
   HOME SCREEN — APP ICON GRID
════════════════════════════════════════════════════════════ */
.admin-home {
  min-height: calc(100vh - 56px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 1.5rem;
  background: radial-gradient(ellipse at 50% 0%, #1a2540 0%, #0f1623 70%);
}
.admin-home-greeting {
  text-align: center;
  margin-bottom: 2.5rem;
}
.admin-home-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem; font-weight: 700; letter-spacing: 0.04em;
  color: #fff; margin: 0 0 0.5rem;
}
.admin-home-sub {
  font-size: 0.9rem; color: rgba(255,255,255,0.45); margin: 0;
}

/* Grid of app-icon buttons */
.admin-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
  max-width: 680px;
}
@media (max-width: 560px) {
  .admin-home-grid { grid-template-columns: 1fr; max-width: 340px; gap: 1rem; }
}

/* Each big tappable card */
.admin-home-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.625rem; padding: 1.75rem 1rem 1.5rem;
  background: #1a2235;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  cursor: pointer; text-align: center;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.admin-home-btn:hover {
  background: #1e2a45;
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.admin-home-btn:active { transform: scale(0.96); }

.admin-home-icon {
  font-size: 2.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  background: rgba(201,168,76,0.12);
  border-radius: 18px;
  border: 1px solid rgba(201,168,76,0.2);
  margin-bottom: 0.25rem;
  transition: background 0.15s;
}
.admin-home-btn:hover .admin-home-icon {
  background: rgba(201,168,76,0.2);
}
.admin-home-label {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.03em;
  color: #fff;
}
.admin-home-desc {
  font-size: 0.775rem; color: rgba(255,255,255,0.4); line-height: 1.5;
}

/* Red badge (unread count) on Hall Rentals button */
.admin-home-badge {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: #e05252; color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ════════════════════════════════════════════════════════════
   PROFILE SCREEN
════════════════════════════════════════════════════════════ */
.admin-profile-info-row {
  display: flex;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-profile-info-row:last-of-type { border-bottom: none; }
.admin-profile-info-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  min-width: 130px;
  padding-top: 0.1rem;
}
.admin-profile-info-value {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
}
.admin-main-narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ════════════════════════════════════════════════════════════
   ORG / POSITION SELECTORS (used in Profile + Officers)
════════════════════════════════════════════════════════════ */
.admin-org-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0;
}
.admin-org-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  user-select: none;
}
.admin-org-item > span.admin-org-name,
.admin-org-item > input[type="checkbox"] {
  display: inline-flex;
  align-items: center;
}
/* Row: checkbox + label side by side */
.admin-org-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  row-gap: 0.4rem;
  align-items: center;
}
.admin-org-item input[type="checkbox"] {
  grid-column: 1; grid-row: 1;
  width: 18px; height: 18px;
  accent-color: #c9a84c;
  cursor: pointer;
  margin: 0;
}
.admin-org-name {
  grid-column: 2; grid-row: 1;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.admin-org-pos-wrap {
  grid-column: 2; grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.admin-org-pos-sel,
.admin-org-pos-txt {
  width: 100%;
}

/* ════════════════════════════════════════════════════════════
   OFFICERS SCREEN
════════════════════════════════════════════════════════════ */

/* Status badges on officer list cards */
.admin-officer-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
}
.admin-officer-badge--admin    { background: rgba(201,168,76,0.2);  color: #c9a84c; }
.admin-officer-badge--active   { background: rgba(76,175,80,0.15);  color: #6fcc6f; }
.admin-officer-badge--inactive { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.35); }

/* Permission checkboxes grid */
.admin-perm-grid {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.25rem 0;
}
.admin-perm-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  user-select: none;
}
.admin-perm-item input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #c9a84c;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-perm-item input[type="checkbox"]:disabled { opacity: 0.5; cursor: not-allowed; }
.admin-perm-item:has(input:disabled) { opacity: 0.6; cursor: default; }

/* ════════════════════════════════════════════════════════════
   LEADERSHIP CHAT
════════════════════════════════════════════════════════════ */
.admin-chat-screen { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.admin-chat-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.admin-chat-header {
  padding: 0.875rem 0 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.admin-chat-channel-name {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.03em;
  color: #fff;
}
.admin-chat-channel-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* Scrollable message feed */
.admin-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.admin-chat-empty {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  margin-top: 3rem;
}

/* Message rows */
.admin-chat-msg {
  display: flex;
  justify-content: flex-start;
}
.admin-chat-msg--mine {
  justify-content: flex-end;
}

/* Bubbles */
.admin-chat-bubble {
  max-width: 72%;
  background: #1e2840;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 0.7rem 1rem;
}
.admin-chat-msg--mine .admin-chat-bubble {
  background: #1f3058;
  border-color: rgba(201,168,76,0.25);
  border-bottom-right-radius: 4px;
}
.admin-chat-msg:not(.admin-chat-msg--mine) .admin-chat-bubble {
  border-bottom-left-radius: 4px;
}

/* Meta line: name + role + time */
.admin-chat-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.admin-chat-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}
.admin-chat-role {
  font-size: 0.75rem;
  color: #c9a84c;
  opacity: 0.85;
}
.admin-chat-time {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-left: auto;
  white-space: nowrap;
}

/* Message body */
.admin-chat-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  word-break: break-word;
}

/* Input row */
.admin-chat-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.875rem 0 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.admin-chat-input {
  flex: 1;
  background: #1a2235;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: #e8eaf0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
  transition: border-color 0.15s;
}
.admin-chat-input:focus {
  outline: none;
  border-color: rgba(201,168,76,0.5);
}
.admin-chat-send-btn { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   CONTACT INQUIRIES
════════════════════════════════════════════════════════════ */

/* Filter tab row */
.admin-inq-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.admin-inq-filter-btn {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.admin-inq-filter-btn.active {
  background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.4);
  color: #c9a84c;
}
.admin-inq-badge {
  background: var(--admin-red, #c0392b);
  color: #fff;
  border-radius: 1rem;
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Inquiry card */
.admin-inq-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.admin-inq-card--new {
  border-left-color: #c9a84c;
  background: rgba(201,168,76,0.06);
}

.admin-inq-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.admin-inq-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-inq-new-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9a84c;
  flex-shrink: 0;
}
.admin-inq-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-inq-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.75rem;
}
.admin-inq-link {
  color: rgba(201,168,76,0.85);
  text-decoration: none;
}
.admin-inq-link:hover { text-decoration: underline; }

.admin-inq-message {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.75rem;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Footer row — toggles + delete */
.admin-inq-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 0.875rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-inq-delete-btn {
  background: rgba(192,57,43,0.15);
  color: #e74c3c;
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.admin-inq-delete-btn:hover { background: rgba(192,57,43,0.3); }

/* Toggle row */
.admin-inq-toggles {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.admin-inq-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}
.admin-inq-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}

/* iOS-style pill toggle */
.admin-toggle-pill {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  flex-shrink: 0;
  outline: none;
}
.admin-toggle-pill:focus-visible {
  box-shadow: 0 0 0 3px rgba(201,168,76,0.4);
}
.admin-toggle-pill.active {
  background: #2ecc71;
  border-color: #27ae60;
}
.admin-toggle-pill--amber.active {
  background: #e67e22;
  border-color: #d35400;
}
.admin-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.admin-toggle-pill.active .admin-toggle-thumb {
  transform: translateX(20px);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .admin-login-card { padding: 2rem 1.5rem; }
  .admin-main { padding: 1.5rem 1rem 3rem; }
  .admin-card { padding: 1.25rem 1rem; }
  .admin-event-card { flex-direction: column; gap: 0.875rem; }
  .admin-event-card-actions { width: 100%; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 0.75rem; }
  .admin-form-row { flex-direction: column; }
  .admin-field-sm { flex: 1; max-width: 120px; }
  .admin-detail-label { min-width: 100px; }
  .admin-section-nav { padding: 0 0.75rem; }
  .admin-nav-btn { padding: 0.875rem 0.875rem; }
  .admin-nav-label { display: none; }
  .admin-nav-icon { font-size: 1.4rem; }

  /* Inquiries adjustments for small phones */
  .admin-inq-card { padding: 1rem; }
  .admin-inq-meta { flex-direction: column; gap: 0.25rem; }

  /* Home screen adjustments for small phones */
  .admin-home { padding: 2rem 1rem; justify-content: flex-start; padding-top: 3rem; }
  .admin-home-title { font-size: 1.6rem; }
  .admin-topbar-title { font-size: 0.875rem; }
  .admin-user-email { display: none; }

  /* Topbar: shrink padding */
  .admin-topbar { padding: 0 0.75rem; }

  /* Applicants adjustments */
  .admin-app-pipeline { flex-wrap: wrap; gap: 0.35rem; }
  .admin-app-pipeline-step { font-size: 0.7rem; padding: 0.3rem 0.6rem; }
}

/* ════════════════════════════════════════════════════════════
   LEGION APPLICANTS
════════════════════════════════════════════════════════════ */

/* Status badge pill */
.admin-app-status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

/* Pipeline steps row */
.admin-app-pipeline {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0.875rem 0 0.75rem;
  overflow-x: auto;
  padding-bottom: 2px;
}
.admin-app-pipeline-step {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1.5px solid var(--step-color, #444);
  background: transparent;
  color: rgba(255,255,255,0.45);
  transition: background 0.15s, color 0.15s, transform 0.1s;
  font-family: inherit;
}
.admin-app-pipeline-step:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.8);
}
.admin-app-pipeline-step.past {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border-color: var(--step-color, #444);
}
.admin-app-pipeline-step.current {
  background: var(--step-color, #444);
  color: #fff;
  border-color: var(--step-color, #444);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.admin-app-pipeline-step.current:active { transform: scale(0.96); }

/* ── Applicant phase pill variants ─────────────────────── */
.phase-appl-new      { background: rgba(41,128,185,0.15);  color: #5dade2; }
.phase-appl-meeting  { background: rgba(230,126,34,0.15);  color: #e67e22; }
.phase-appl-voted    { background: rgba(200,169,81,0.18);  color: #c9a84c; }
.phase-appl-declined { background: rgba(192,57,43,0.15);   color: #e74c3c; }

/* ── Quick-view chips (on compact list card) ────────────── */
.admin-appl-quick-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.4rem; }
.admin-appl-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.35);
}
.admin-appl-chip--yes  { background: rgba(46,204,113,0.15);  color: #2ecc71; }
.admin-appl-chip--warn { background: rgba(230,126,34,0.15);  color: #e67e22; }
.admin-appl-chip--no   { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); }

/* ── Verification & Payment section ────────────────────── */
.admin-detail-block--verify { border-left: 3px solid rgba(200,169,81,0.4); }
.admin-appl-verify-row { display: flex; flex-direction: column; gap: 0.875rem; }
.admin-appl-verify-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
}
.admin-appl-verify-lhs { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; }
.admin-appl-verify-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
}

/* ── DD-214 inline viewer ───────────────────────────────── */
.admin-app-dd214-btn {
  background: rgba(41,128,185,0.15);
  color: #5dade2;
  border: 1px solid rgba(41,128,185,0.35);
  border-radius: 6px;
  padding: 0.35rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.admin-app-dd214-btn:hover { background: rgba(41,128,185,0.28); color: #85c1e9; }
.admin-app-dd214-btn:disabled { opacity: 0.5; cursor: default; }

.admin-app-dd214-viewer {
  margin-top: 0.875rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  background: #1a1a2e;
}
.admin-app-dd214-loading,
.admin-app-dd214-error {
  padding: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}
.admin-app-dd214-error { color: #e87c6e; }
.admin-app-dd214-frame {
  display: block;
  width: 100%;
  height: 700px;
  border: none;
  background: #525659;
}
.admin-app-dd214-imgwrap {
  padding: 1rem;
  text-align: center;
  background: #2a2a3e;
}
.admin-app-dd214-img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Notes textarea */
.admin-app-notes-wrap { margin-top: 0.5rem; }
.admin-app-notes {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 0.825rem;
  font-family: inherit;
  padding: 0.5rem 0.75rem;
  resize: vertical;
  min-height: 54px;
  transition: border-color 0.15s;
}
.admin-app-notes:focus {
  outline: none;
  border-color: rgba(255,255,255,0.25);
}

/* ════════════════════════════════════════════════════════════
   NEW / EDIT MODALS (Applicant & Rental)
════════════════════════════════════════════════════════════ */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 4rem;
  overflow-y: auto;
}
.admin-modal-panel {
  background: #1a2035;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  width: 100%;
  max-width: 700px;
  margin: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.admin-modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.admin-modal-hdr h3 {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e8eaf0;
}
.admin-modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.admin-modal-close:hover { color: #e8eaf0; }
.admin-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}
.admin-modal-ftr {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
}
.admin-modal-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.admin-modal-section-title + .admin-modal-section-title { margin-top: 1.5rem; }

/* Form fields inside modals */
.admin-form-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.admin-form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
}
.admin-form-input {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  color: #e8eaf0;
  font-size: 0.875rem;
  font-family: inherit;
  padding: 0.55rem 0.875rem;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.admin-form-input:focus {
  outline: none;
  border-color: rgba(200,169,81,0.65);
  background: rgba(255,255,255,0.1);
}
.admin-form-input option { background: #1a2035; color: #e8eaf0; }
.admin-form-textarea { min-height: 90px; resize: vertical; }
.admin-form-file {
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 7px;
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  font-family: inherit;
  padding: 0.55rem 0.875rem;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}
.admin-form-file:focus { outline: none; border-color: rgba(200,169,81,0.5); }
.admin-form-dd214-current {
  background: rgba(46,204,113,0.08);
  border: 1px solid rgba(46,204,113,0.2);
  border-radius: 7px;
  padding: 0.6rem 0.875rem;
  font-size: 0.8rem;
  color: #2ecc71;
  margin-bottom: 0.75rem;
}
.admin-form-grid   { display: grid; grid-template-columns: 1fr 1fr;       gap: 0 1rem; }
.admin-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr;   gap: 0 1rem; }
.admin-form-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 0 1rem; }
@media (max-width: 580px) {
  .admin-form-grid,
  .admin-form-grid-3,
  .admin-form-grid-4 { grid-template-columns: 1fr; }
}

/* "+ New" action button (used in section headers) */
.admin-btn-new {
  background: rgba(200,169,81,0.15);
  color: #c8a951;
  border: 1px solid rgba(200,169,81,0.35);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.admin-btn-new:hover {
  background: rgba(200,169,81,0.28);
  color: #e2c06a;
}
