/* ==========================================================================
   SEGi Dental Society — Executive Council Roster (`css/team.css`)
   Tier Layouts, Drag-and-Drop Reordering, Rainbow Slider & Objectives
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Header & In-Place Title Editor
   -------------------------------------------------------------------------- */
.page-header {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.page-header-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.page-header-actions .card-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

body.light-theme .page-header-actions .card-ctrl-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: #b45309;
}

.page-header-actions .card-ctrl-btn:hover {
  background: var(--maroon-bright);
  color: #ffffff;
  transform: scale(1.08);
}

.page-header:not(.is-editing) .header-edit-btn { display: flex; }
.page-header:not(.is-editing) .header-save-btn { display: none !important; }
.page-header.is-editing .header-edit-btn { display: none !important; }
.page-header.is-editing .header-save-btn {
  display: flex !important;
  background: var(--gold-accent);
  color: #090a0d;
}

.page-header.is-editing [contenteditable="true"] {
  outline: 1px dashed var(--gold-accent);
  outline-offset: 4px;
  border-radius: 6px;
  background: rgba(212, 154, 55, 0.06);
  cursor: text;
  display: inline-block;
}

.page-header.is-editing h1[contenteditable="true"],
.page-header.is-editing p[contenteditable="true"] {
  display: block;
}

.page-header.is-editing [contenteditable="true"]:focus {
  outline: 2px solid var(--maroon-bright);
  background: rgba(225, 29, 72, 0.08);
}

/* --------------------------------------------------------------------------
   2. Executive Core Objectives Banner & CRUD Actions
   -------------------------------------------------------------------------- */
.objectives-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
  position: relative;
}

.objective-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--maroon-vibrant);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.objective-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-crimson);
}

.objective-card .obj-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-accent);
  opacity: 0.8;
  display: block;
  margin-bottom: 0.4rem;
  width: fit-content;
}

.objective-card h4 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.objective-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.obj-card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.obj-card-actions .card-ctrl-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

body.light-theme .obj-card-actions .card-ctrl-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: #b45309;
}

.obj-card-actions .card-ctrl-btn:hover {
  background: var(--maroon-bright);
  color: #ffffff;
  transform: scale(1.08);
}

.objective-card .card-edit-btn,
.objective-card.is-editing .card-edit-btn {
  display: flex !important;
}
.objective-card:not(.is-editing) .card-save-btn { display: none !important; }
.objective-card.is-editing .card-save-btn {
  display: flex !important;
  background: var(--gold-accent);
  color: #090a0d;
}

.obj-delete-btn {
  display: none !important;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ff6b6b;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

body.light-theme .obj-delete-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: #dc2626;
}

.obj-delete-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: scale(1.08);
}

.objective-card.is-editing .obj-delete-btn {
  display: flex !important;
}

.objective-card.is-editing [contenteditable="true"] {
  outline: 1px dashed var(--gold-accent);
  outline-offset: 2px;
  border-radius: 4px;
  background: rgba(212, 154, 55, 0.08);
  cursor: text;
}

.objective-card.is-editing [contenteditable="true"]:focus {
  outline: 2px solid var(--maroon-bright);
  background: rgba(225, 29, 72, 0.1);
}

.objective-card.hold-charging {
  outline: 2px dashed var(--gold-accent);
  outline-offset: 4px;
}

.objective-card.drag-ready {
  cursor: grab !important;
  animation: dragReadyWiggle 0.3s ease-in-out infinite alternate !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
  z-index: 10;
}

.objective-card.is-dragging {
  opacity: 0.25 !important;
  transform: scale(0.96) !important;
  cursor: grabbing !important;
}

.add-obj-placeholder {
  min-height: 140px;
  border: 2px dashed var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.add-obj-placeholder:hover {
  border-color: var(--gold-accent);
  background: rgba(212, 154, 55, 0.05);
  color: var(--gold-accent);
}

/* --------------------------------------------------------------------------
   3. Council Tier Containers, Drag Handles & Titles
   -------------------------------------------------------------------------- */
.council-tier {
  margin-bottom: 4rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.council-tier.tier-is-dragging {
  opacity: 0.25 !important;
  transform: scale(0.99);
}

.tier-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.tier-title-wrap .tier-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0;
  border-bottom: none;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tier-title-wrap .tier-title[contenteditable="true"] {
  outline: 1px dashed var(--gold-accent, #d49a37);
  outline-offset: 3px;
  background: rgba(212, 154, 55, 0.08);
  cursor: text;
}

.tier-title-wrap .tier-title[contenteditable="true"]:focus {
  outline: 2px solid var(--maroon-bright, #e11d48);
  background: rgba(225, 29, 72, 0.1);
}

.tier-drag-handle {
  cursor: grab;
  color: var(--text-muted);
  font-size: 1.2rem;
  user-select: none;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.tier-drag-handle:hover {
  color: var(--gold-accent);
}

.tier-edit-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  position: static;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

body.light-theme .tier-edit-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: #b45309;
}

.tier-edit-btn:hover {
  background: var(--maroon-bright);
  color: #ffffff;
  transform: scale(1.08);
}

.tier-edit-btn.is-saving {
  background: var(--gold-accent, #d49a37);
  color: #090a0d;
  border-color: #ffffff;
  transform: scale(1.05);
}

.tier-delete-btn {
  display: none !important;
  position: static !important;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ff6b6b;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

body.light-theme .tier-delete-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: #dc2626;
}

.tier-delete-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: scale(1.08);
}

.tier-title-wrap.is-editing .tier-delete-btn {
  display: flex !important;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  min-height: 140px;
  border-radius: var(--radius-lg);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  position: relative;
}

body.is-admin .tier-grid.tier-drag-over {
  border: 2px dashed var(--gold-accent) !important;
  background: rgba(212, 154, 55, 0.05);
}

body.is-admin .tier-grid:empty::after,
body.is-admin .tier-grid:has(.add-card-placeholder:only-child)::after {
  content: "Drop cards here or use '+' to add members";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  pointer-events: none;
}

/* Add New Tier Section Button (Styled seamlessly like a Tier Title) */
.add-tier-action-wrap {
  margin: 3rem 0 5rem;
  display: flex;
  align-items: center;
  position: relative;
}

.add-tier-btn {
  display: flex !important;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px dashed var(--border-subtle) !important;
  border-radius: 0 !important;
  padding: 0.5rem 0.5rem 0.8rem !important;
  color: var(--text-muted) !important;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.add-tier-btn:hover {
  color: var(--gold-accent, #d49a37) !important;
  border-bottom: 1px dashed var(--gold-accent, #d49a37) !important;
  transform: translateX(4px);
}

.add-tier-btn .add-tier-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(212, 154, 55, 0.08);
  border: 1px dashed var(--gold-accent);
  color: var(--gold-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.add-tier-btn:hover .add-tier-icon {
  background: var(--gold-accent);
  color: #090a0d;
  border-style: solid;
  transform: scale(1.1);
}

.add-card-placeholder {
  min-height: 280px;
  border: 2px dashed var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}

body.light-theme .add-card-placeholder {
  background: rgba(0, 0, 0, 0.02);
  border-color: #cbd5e1;
}

.add-card-placeholder .plus-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(212, 154, 55, 0.08);
  border: 1px dashed var(--gold-accent);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.add-card-placeholder:hover {
  border-color: var(--gold-accent);
  background: rgba(212, 154, 55, 0.05);
  color: var(--gold-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.add-card-placeholder:hover .plus-icon {
  background: var(--gold-accent);
  color: #090a0d;
  transform: scale(1.1);
  border-style: solid;
}

/* --------------------------------------------------------------------------
   4. Executive Member Cards & Rainbow Hue Slider
   -------------------------------------------------------------------------- */
.council-card {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease, 
              box-shadow 0.25s ease, 
              opacity 0.2s ease;
}

.council-card:hover {
  transform: translateY(-6px);
  border-color: var(--maroon-vibrant);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px var(--maroon-glow);
}

.council-card.is-highlighted,
.council-card.highlight-card {
  --hue: 38;
  border-color: hsla(var(--hue), 85%, 55%, 0.45) !important;
  background: linear-gradient(180deg, hsla(var(--hue), 80%, 25%, 0.22) 0%, var(--bg-card) 65%) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px hsla(var(--hue), 85%, 50%, 0.28) !important;
}

.council-card.is-highlighted .badge-role,
.council-card.highlight-card .badge-role {
  color: hsl(var(--hue), 90%, 65%) !important;
}

.council-card.is-highlighted .avatar-frame {
  background: linear-gradient(135deg, hsl(var(--hue), 85%, 45%), hsl(calc(var(--hue) + 35), 90%, 60%)) !important;
}

.badge-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-accent);
  margin-bottom: 0.4rem;
}

.council-card h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.council-card .tenure {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Highlight Bar and Rainbow Slider Controls */
.card-highlight-bar {
  display: none !important;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border-subtle);
  width: 100%;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
}

.council-card.is-editing .card-highlight-bar {
  display: flex !important;
}

.highlight-toggle-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  user-select: none;
}

.rainbow-slider-wrap {
  display: none !important;
  align-items: center;
  width: 100%;
  padding: 0 0.5rem;
}

.council-card.is-editing.is-highlighted .rainbow-slider-wrap {
  display: flex !important;
}

.hue-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(to right, 
    hsl(0, 100%, 50%),
    hsl(60, 100%, 50%),
    hsl(120, 100%, 50%),
    hsl(180, 100%, 50%),
    hsl(240, 100%, 50%),
    hsl(300, 100%, 50%),
    hsl(360, 100%, 50%)
  );
  outline: none;
  cursor: pointer;
}

.hue-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #090a0d;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.hue-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #090a0d;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. In-Place Card Editing Toolbar & Icon Toggle
   -------------------------------------------------------------------------- */
.card-delete-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ff6b6b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  z-index: 20;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

body.light-theme .card-delete-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: #dc2626;
}

.card-delete-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
  transform: scale(1.08);
}

.council-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 20;
}

.council-card-actions .card-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

body.light-theme .council-card-actions .card-ctrl-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  color: #b45309;
}

.council-card-actions .card-ctrl-btn:hover {
  background: var(--maroon-bright);
  color: #ffffff;
  transform: scale(1.08);
}

.council-card .card-edit-btn,
.council-card.is-editing .card-edit-btn {
  display: flex !important;
}
.council-card:not(.is-editing) .card-save-btn { display: none !important; }
.council-card.is-editing .card-save-btn {
  display: flex !important;
  background: var(--gold-accent);
  color: #090a0d;
}

.council-card.is-editing [contenteditable="true"] {
  outline: 1px dashed var(--gold-accent);
  outline-offset: 3px;
  border-radius: 4px;
  background: rgba(212, 154, 55, 0.08);
  cursor: text;
}

.council-card.is-editing [contenteditable="true"]:focus {
  outline: 2px solid var(--maroon-bright);
  background: rgba(225, 29, 72, 0.12);
}

.council-card:not(.is-editing) [contenteditable] {
  user-select: text;
}

/* --------------------------------------------------------------------------
   6. Avatar Photo Frames & Restricted Upload Overlays
   -------------------------------------------------------------------------- */
.avatar-frame {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  padding: 4px;
  background: linear-gradient(135deg, var(--maroon-vibrant), var(--gold-accent));
  overflow: hidden;
  position: relative;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.25s ease;
  font-size: 0.75rem;
  color: #ffffff;
  z-index: 3;
  pointer-events: none;
}

body.is-admin .council-card.is-editing .avatar-frame:hover .avatar-upload-overlay {
  opacity: 1;
  pointer-events: auto;
}

.camera-icon {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   7. Card Hold-to-Drag Reordering & Ghost Target States
   -------------------------------------------------------------------------- */
body.is-admin .council-card {
  cursor: grab;
}

body.is-admin .council-card:active {
  cursor: grabbing;
}

@keyframes dragReadyWiggle {
  0%   { transform: translateY(-8px) rotate(-1deg) scale(1.02); }
  100% { transform: translateY(-8px) rotate(1deg) scale(1.02); }
}

.council-card.hold-charging {
  outline: 2px dashed var(--gold-accent);
  outline-offset: 4px;
  transform: scale(0.99);
  transition: transform 0.6s ease;
}

.council-card.drag-ready {
  cursor: grab !important;
  animation: dragReadyWiggle 0.3s ease-in-out infinite alternate !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--maroon-glow) !important;
  border-color: var(--gold-accent) !important;
  z-index: 25;
}

.council-card.is-dragging {
  opacity: 1 !important;
  background: rgba(212, 154, 55, 0.05) !important;
  transform: scale(0.96) !important;
  border: 2px dashed var(--gold-accent, #d49a37) !important;
  cursor: grabbing !important;
  box-shadow: 0 0 24px rgba(212, 154, 55, 0.15) inset !important;
  min-height: 250px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.council-card.is-dragging > * {
  opacity: 0 !important;
  pointer-events: none !important;
}

.council-card.is-dragging::after {
  content: "Placement Target";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-accent, #d49a37);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(212, 154, 55, 0.12);
  border: 1px solid rgba(212, 154, 55, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  animation: ghostTargetPulse 1s ease-in-out infinite alternate;
}

@keyframes ghostTargetPulse {
  0%   { transform: translate(-50%, -50%) scale(0.96); opacity: 0.75; }
  100% { transform: translate(-50%, -50%) scale(1.02); opacity: 1; }
}

/* --------------------------------------------------------------------------
   8. Circular Loading Spinners & Staggered Reveal Animations
   -------------------------------------------------------------------------- */
.section-circular-loader {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 3rem 1rem;
  width: 100%;
}

.spinner-ring {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--maroon-bright, #e11d48);
  border-right-color: var(--gold-accent, #d49a37);
  border-radius: 50%;
  animation: spinRing 0.85s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

body.light-theme .spinner-ring {
  border-color: rgba(0, 0, 0, 0.08);
  border-top-color: var(--maroon-base, #800000);
  border-right-color: var(--gold-accent, #d49a37);
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}

.spinner-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.02em;
}

@keyframes cardPopIn {
  0%   { opacity: 0; transform: translateY(14px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.council-card.progressive-reveal,
.objective-card.progressive-reveal {
  animation: cardPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}