.site-footer {
  flex: 0 0 auto;
  min-height: var(--footer-height);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  background: #fff;
}

.footer-inner {
  width: min(100% - 36px, var(--content-width));
  min-height: var(--footer-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.64rem;
}

.footer-copy strong {
  color: var(--primary-dark);
}

.footer-copy span:not(:last-child)::after,
.footer-copy strong::after {
  content: "•";
  margin-inline-start: 14px;
  color: var(--gold);
}

.footer-clock {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--surface-muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  padding: 18px;
  display: grid;
  place-items: center;
  background: rgba(16, 35, 28, 0.62);
  backdrop-filter: blur(5px);
}

.modal-card {
  position: relative;
  width: min(100%, 560px);
  max-height: min(82vh, 720px);
  padding: 30px;
  overflow: auto;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: modal-enter 0.22s ease-out both;
}

.modal-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 9px;
  border-radius: 50%;
  color: var(--primary);
  background: #eef8f2;
}

.modal-icon svg {
  width: 28px;
  height: 28px;
}

.modal-card h2 {
  margin: 4px 0 9px;
  color: var(--primary-dark);
  font-size: 1.45rem;
}

.modal-card p,
.modal-card li {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.modal-card ul {
  max-height: 230px;
  margin: 12px 0;
  padding: 12px 30px 12px 12px;
  overflow: auto;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.modal-actions button {
  min-width: 120px;
  padding: 8px 15px;
}

.modal-open {
  overflow: hidden;
}

.loading-overlay {
  position: fixed;
  z-index: 260;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: rgba(6, 64, 35, 0.78);
  backdrop-filter: blur(4px);
  font-size: 0.82rem;
  font-weight: 700;
}

.page-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--gold-bright);
}

.view-enter {
  animation: view-enter 0.3s ease-out both;
}

@keyframes card-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modal-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes view-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes value-pop {
  0% { transform: scale(0.86); }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

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