:root {
  --accent: #2f3a4a;        /* charcoal blue */
  --accent-soft: #e9edf2;   /* very light blue-gray */
  --accent-muted: #6b7280;  /* muted text */
}

body {
  font-family: system-ui, sans-serif;
  background: #f2f2f2;
  margin: 0;
}

.container {
  max-width: 1120px;
  margin: 20px auto;
  padding: 0 14px 40px;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Divider between routine + scoring */
.routine-divider {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0 14px;
}

/* Center the scoring area */
.routine-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

/* Make slider visually tighter */
.routine-score input[type="range"] {
  max-width: 420px;
}

/* ================= SCORING TIMER ================= */

/* Base (idle) */
#scoringTimer {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;

  font-weight: 700;
  font-size: 12px;

  background: #e5e7eb;   /* grey bg */
  color: #6b7280;        /* grey text */

  transition: background 0.2s ease, color 0.2s ease;
}

/* Running (45s → 10s) */
#scoringTimer.running {
  background: #16a34a;   /* green bg */
  color: #ffffff;        /* white text */
}

/* Expiring (last 10s) */
#scoringTimer.expiring {
  background: #dc2626;   /* red bg */
  color: #ffffff;        /* white text */
}

/* Start pulse */
#scoringTimer.pulse-start {
  animation: pulseStart 600ms ease-out;
}



/* Slightly reduce button width on desktop */
@media (min-width: 640px) {
  .routine-score button {
    min-width: 220px;
  }
}


.score-display {
  font-size: 24px;       /* down from ~32 */
  line-height: 1;
  margin-top: 4px;
  margin-bottom: 4px;
}

input[type="range"] { width: 100%; }

input, button {
  padding: 10px;
  font-size: 14px;
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}


button:disabled { opacity: 0.4; }

.btn-secondary {
  background: #e5e7eb;
  color: #111;
}


.grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
}

.hidden { display: none !important; }

.muted {
  color: var(--accent-muted);
  font-size: 13px;
}


/* Auth */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}
@media (min-width: 700px) {
  .auth-actions { justify-content: flex-end; }
}
.auth-status { font-size: 14px; margin-bottom: 4px; }

.auth-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}


.auth-user {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}


.auth-status {
  font-size: 13px;
  color: var(--accent-muted);
}

.auth-actions button {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
}

.auth-gate {
  position: fixed;
  inset: 0;                 /* top:0 right:0 bottom:0 left:0 */
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(3px);

  padding: 24px;
}

.auth-gate-card {
  width: 100%;
  max-width: 420px;

  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.12),
    0 1px 4px rgba(0,0,0,0.06);

  text-align: center;
}

/* ================= JUDGING STATS OVERLAY ================= */

.stats-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(3px);

  padding: 20px;
}

.stats-card {
  width: 100%;
  max-width: 420px;

  background: #fff;
  border-radius: 14px;
  padding: 24px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.12),
    0 1px 4px rgba(0,0,0,0.06);
}


body.auth-locked {
  overflow: hidden;
}

.page-header {
  position: relative;
  padding: 18px 56px 10px; /* equal left/right padding */
  text-align: center;
}

.page-header h1 {
  margin: 0;
}

/* Anchor avatar to header, not viewport */
.user-menu {
  position: absolute;
  top: 18px;
  left: 14px;
  z-index: 1000;
}


.user-menu-dropdown {
  position: absolute;
  top: 44px;
  left: 0;
  min-width: 240px;

  background: #fff;
  border-radius: 14px;
  padding: 10px;

  box-shadow:
    0 20px 40px rgba(0,0,0,0.14),
    0 2px 6px rgba(0,0,0,0.06);

  border: 1px solid #e6e6e6;

  transform-origin: top left;
  animation: menuIn 140ms ease-out;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.user-menu-name {
  padding: 8px 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid #efefef;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #111;
}

.user-menu-link {
  width: 100%;
  text-align: center;

  background: none;
  border: none;

  padding: 8px 10px;
  border-radius: 8px;

  font-size: 13px;
  font-weight: 600;
  color: #111;

  cursor: pointer;
}

.user-menu-link:hover {
  background: #f2f2f2;
}

.user-menu-link.danger {
  color: #b42318;
}

.user-menu-link.danger:hover {
  background: #fdecec;
}


#signOutBtn {
  background: #e5e7eb;
  color: #111;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  position: relative;
}

.user-avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
}

.user-avatar:hover {
  filter: brightness(1.05);
}


/* 2-up page grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: stretch; }
}

.admin-badge {
  margin-top: 8px;
  padding: 4px 10px;

  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;

  font-size: 11px;
  font-weight: 700;
  text-align: center;
}




/* Fan confidence badge */
.fan-confidence {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.fan-confidence { vertical-align: middle; }

/* Meet totals */
.totals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 10px;
}
@media (min-width: 900px) {
  .totals-grid { grid-template-columns: 1fr 1fr; }
}

.totals-block h3 { margin: 6px 0 10px; }

.totals-table-wrap {
  overflow: auto;
}


.totals-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.totals-table th,
.totals-table td {
  border-bottom: 1px solid #efefef;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

.totals-table thead th { background: #fafafa; }
.totals-table .num { text-align: right; }

.totals-total td {
  background: #fafafa;
  border-top: 2px solid #e6e6e6;
}

/* Expandable totals details */
.totals-details-row td { padding: 0; border-bottom: none; }
.totals-details-wrap { padding: 10px 12px 14px; }
.totals-details-title { margin: 4px 0 8px; }
.totals-details-table-wrap {
  overflow: auto;
}

.totals-details-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.totals-details-table th,
.totals-details-table td {
  border-bottom: 1px solid #efefef;
  padding: 8px 10px;
  font-size: 13px;
}
.totals-details-table thead th { background: #fafafa; }
.totals-details-table .num { text-align: right; }

/* Expandable totals rows */
.totals-expandable { cursor: pointer; }
.totals-expandable:hover { background: rgba(0,0,0,0.04); }

/* Leaderboard */
.leaderboard-wrap {
  overflow: auto;
  margin-top: 10px;
}


.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.leaderboard-table th,
.leaderboard-table td {
  border-bottom: 1px solid #efefef;
  padding: 10px;
  text-align: left;
  font-size: 14px;
}

.leaderboard-table thead th { background: #fafafa; }
.leaderboard-table .num { text-align: right; }

.leaderboard-you {
  background: var(--accent-soft);
  font-weight: 700;
}


/* ================= ADMIN ROTATION ACCORDION ================= */

#adminRotations { margin-top: 10px; }

.admin-rotation {
  border-radius: 12px;
  background: #fafafa;
  margin-bottom: 12px;
  overflow: hidden;
}

.admin-rotation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  font-weight: 800;
  font-size: 14px;
  background: #f5f5f5;
  border-bottom: 1px solid #ececec;
}

.admin-rotation-header .muted { font-size: 12px; }

.admin-rotation-header::after {
  content: "▸";
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.admin-rotation.open .admin-rotation-header::after { transform: rotate(90deg); }

.admin-rotation-body { display: none; padding: 10px 12px 12px; }
.admin-rotation.open .admin-rotation-body { display: block; }

.admin-rot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px) {
  .admin-rot-grid { grid-template-columns: 1fr 1fr; }
}

.admin-rot-col {
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}


.admin-rot-col h4 {
  margin: 0 0 8px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.admin-rot-col h4 span { font-weight: 800; }

.admin-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 2px;
}
.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
  background: #fff;
  border: 1px solid #e8e8e8;
  padding: 4px 8px;
  border-radius: 999px;
}
.admin-dot { width: 10px; height: 10px; border-radius: 999px; background: #ddd; }
.admin-dot.open { background: #ffe69c; }
.admin-dot.scored { background: #b7e4c7; }
.admin-dot.expiring { background: #f5c2c7; }

/* Ultra-compact row */
.admin-row {
  display: grid;
  grid-template-columns: 26px 1fr 62px 22px 28px;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
  padding: 5px 6px;
  border-radius: 10px;
  background: #f7f7f7;
  border: 1px solid #f0f0f0;
  font-size: 12px;
}

.admin-slot {
  font-size: 11px;
  color: #666;
  text-align: right;
}

.admin-gymnast {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #d7d7d7;
  background: #fff;
}

.admin-official {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
  font-size: 12px;
  text-align: right;
  border-radius: 8px;
  border: 1px solid #d7d7d7;
  background: #fff;
}

.admin-open { transform: scale(0.9); }

.admin-go {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 12px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* State colors */
.admin-row.open {
  background: #fff3cd;
  border-color: #ffe69c;
}
.admin-row.scored {
  background: #e7f6ec;
  border-color: #b7e4c7;
}
.admin-row.expiring {
  background: #fdecea;
  border-color: #f5c2c7;
}

/* Ensure expiring overrides scored/open visually */
.admin-row.expiring { font-weight: 700; }

.admin-strip-wide {
  flex-wrap: wrap;
}

.admin-live-label {
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  white-space: nowrap;
}

.strip-divider {
  color: #aaa;
  margin: 0 6px;
  font-size: 12px;
}

@media (min-width: 900px) {
  .admin-strip-wide {
    flex-wrap: nowrap;
  }
}


.results-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.result-block {
  text-align: center;
}

.result-block .label {
  font-size: 12px;
  color: var(--accent-muted);
}

.result-block .value {
  font-size: 32px;
  font-weight: 800;
}

.result-block.official .value {
  font-size: 28px;
}

.results-delta {
  text-align: center;
  font-weight: 700;
  margin: 6px 0 10px;
}

.results-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--accent-muted);
}

.results-you {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-weight: 600;
}


/* ================= ROTATION PROGRESS (FAN UI) ================= */
.rotation-progress {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  margin-bottom: 12px; /* 👈 this is the key */
}

.rot-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
}

/* dot */
.rot-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

/* CURRENT rotation (this is the big fix) */
.rot-chip.active {
  background: #16a34a;   /* green */
  color: #fff;
}

.rot-chip.active .dot {
  background: #fff;
}

/* Open but not current */
.rot-chip.open {
  background: #e7f6ec;
  color: #14532d;
}

.rot-chip.open .dot {
  background: #22c55e;
}

/* Future / locked */
.rot-chip.locked {
  opacity: 0.6;
}

/* Completed rotation */
.rot-chip.done {
  background: #e5e7eb;
  color: #6b7280;
}

.rot-chip.done .dot {
  display: none; /* we’ll replace it with a check */
}

.rot-chip.done span {
  font-size: 14px;
  font-weight: 800;
}


/* Keep slider inside card */
#score{ width:100%; max-width:100%; box-sizing:border-box; display:block; }

/* ================= COMPACT ADMIN STRIPS ================= */

/* Admin section wrapper = controls spacing + inset divider line */
.admin-section{
  position: relative;
  margin-top: 0px;      /* space between sections */
  padding-top: 14px;     /* space after divider line */
}

/* Inset divider line (the version you prefer) */
.admin-section::before{
  content:"";
  display:block;
  height: 1px;
  background: #e6e6e6;
  margin: 0 14px 12px;   /* inset left/right, then space below line */
}

/* No divider above the first section (Meet) */
#adminPanel .admin-section:first-of-type{
  margin-top: 0;
  padding-top: 0;
}
#adminPanel .admin-section:first-of-type::before{
  display:none;
}

/* The strip itself (no margins — sections handle spacing) */
.admin-strip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  margin:0;                        /* important */
  border:1px solid #ededed;
  border-radius:12px;
  background:#fafafa;
}

/* Wrap on small screens */
.admin-strip-wide{
  flex-wrap: wrap;
}
@media (min-width: 900px){
  .admin-strip-wide{
    flex-wrap: nowrap;
  }
}

.strip-label{
  font-weight:700;
  font-size:12px;
  color:#555;
  min-width:60px;
}

/* Make admin buttons tighter */
.admin-strip button{
  padding:6px 10px;
  font-size:12px;
}

/* Make admin inputs tighter */
.admin-strip input,
.admin-strip select{
  padding:6px 8px;
  font-size:12px;
  border-radius:8px;
}

/* ================= STICKY LIVE ================= */

/*
  IMPORTANT:
  - Sticky is applied to the SECTION wrapper (your HTML has
    <div class="admin-section admin-live-sticky"> ... )
  - We do NOT add extra borders here (dividers are handled by ::before)
  - We avoid negative margins to prevent "full width lines" and weird offsets
*/
.admin-live-sticky{
  position: sticky;
  top: 12px;            /* small breathing room from top; change to 0 if you want flush */
  z-index: 30;
  background: transparent; /* keep the divider look consistent */
}



/* Prevent the sticky strip from “jumping” due to first/last child spacing */
#adminPanel{
  position: relative;

  
}

.dropped-row {
  opacity: 0.45;
  text-decoration: line-through;
}

/* ================= TOTALS MODE TOGGLE (VISUAL RESET) ================= */

.totals-mode-toggle {
  display: flex;
  gap: 8px;
}

.totals-mode-toggle button {
  all: unset;                 /* ← critical: removes global button styling */
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: #eee;
  color: #111;
  cursor: pointer;
}

.totals-mode-toggle button.active {
  background: #000;
  color: #fff;
}

/* Hide totals toggle on desktop */
@media (min-width: 701px) {
  .totals-mode-toggle {
    display: none;
  }
}

/* Prevent expanded tables from forcing grid wider on desktop */
@media (min-width: 900px) {
  .totals-details-table {
    min-width: 0;
    width: 100%;
  }
}

.stats-mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.stats-mode-toggle button {
  all: unset;
  flex: 1;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: #eee;
  color: #111;
  cursor: pointer;
}

.stats-mode-toggle button.active {
  background: #000;
  color: #fff;
}



/* ================= MOBILE TOTALS (SINGLE SOURCE OF TRUTH) ================= */

@media (max-width: 700px) {

  /* Show toggle */
  .totals-mode-toggle {
    display: flex;
  }

  /* Prevent overflow */
  .totals-table,
  .totals-details-table {
    width: 100%;
    min-width: 0;
  }

  .totals-table-wrap,
  .totals-details-table-wrap {
    overflow-x: hidden;
  }

  /* =================
     MAIN TOTALS TABLE
     ================= */

  /* Hide all score columns */
  .totals-table th[data-k],
  .totals-table td[data-k] {
    display: none;
  }

  /* Always show Event */
  .totals-table th:first-child,
  .totals-table td:first-child {
    display: table-cell;
  }

  /* Show active mode */
  body[data-totals-mode="off"] .totals-table [data-k="off"],
  body[data-totals-mode="fan"] .totals-table [data-k="fan"],
  body[data-totals-mode="you"] .totals-table [data-k="you"] {
    display: table-cell;
  }

  /* =================
     EXPANDED DETAILS
     ================= */

  /* Hide all score columns */
  .totals-details-table th[data-k],
  .totals-details-table td[data-k] {
    display: none;
  }

  /* Always show # and Gymnast */
  .totals-details-table th:nth-child(1),
  .totals-details-table td:nth-child(1),
  .totals-details-table th:nth-child(2),
  .totals-details-table td:nth-child(2) {
    display: table-cell;
  }

  /* Show active mode */
  body[data-totals-mode="off"] .totals-details-table [data-k="off"],
  body[data-totals-mode="fan"] .totals-details-table [data-k="fan"],
  body[data-totals-mode="you"] .totals-details-table [data-k="you"] {
    display: table-cell;
  }

  /* Prevent wrapping */
  .totals-table td.num,
  .totals-details-table td.num {
    white-space: nowrap;
  }
}

.edit-link {
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.edit-link:hover {
  text-decoration: underline;
}

.edit-name-popover {
  margin: 8px 4px 4px;
  padding: 10px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  animation: fadeIn 120ms ease-out;
}

.edit-name-popover input {
  box-sizing: border-box;
  width: 100%;
  padding: 7px 9px;
  font-size: 13px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-bottom: 8px;
}

.edit-name-actions {
  display: flex;
  gap: 8px;
}

.edit-name-actions button {
  flex: 1;
  padding: 6px 0;
  font-size: 12px;
  border-radius: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Make routine card tighter */
.routine-card p {
  margin: 6px 0;
}
/* Routine layout: mobile first */
.routine-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {

  .routine-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
  }

  /* Hide mobile divider on desktop */
  .routine-divider {
    display: none;
  }

  /* Right column (scoring) */
  .routine-score {
    display: flex;
    flex-direction: column;
    align-items: center;      /* ← CENTER everything horizontally */
    text-align: center;       /* ← CENTER text */
    border-left: 1px solid #e5e7eb;
    padding-left: 24px;
  }

  .routine-score input[type="range"] {
    margin: 0 auto;
  }
}

/* Slightly tighter card padding (optional) */
.routine-card {
  padding: 14px;
}

/* ================= DELTA PULSE ================= */
.delta {
  transition: color 0.2s ease;
}

.delta.pulse-up {
  animation: deltaPulseUp 600ms ease-out;
  color: #16a34a; /* green */
}

.delta.pulse-down {
  animation: deltaPulseDown 600ms ease-out;
  color: #dc2626; /* red */
}

@keyframes deltaPulseUp {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes deltaPulseDown {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.routine-meta {
  margin-bottom: 8px;
}

.routine-gymnast {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.routine-sub {
  font-size: 13px;
  color: var(--muted-text, #666);
}

.routine-rotation {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.routine-status {
  font-size: 12px;
  color: var(--muted-text, #666);
  display: flex;
  gap: 6px;
  align-items: center;
}

.routine-card {
  padding: 12px 14px;
}

@media (max-width: 600px) {
  .routine-layout {
    gap: 12px;
  }

  .routine-divider {
    margin: 6px 0;
  }

  .routine-gymnast {
    font-size: 15px;
  }

  .score-display {
    font-size: 22px;
  }
}

/* Tighten submit score button specifically */
#submitScore {
  padding: 8px 12px;
  font-size: 14px;
}

#rotationLabel {
  display: none;
}

@keyframes pulseStart {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ================= TOAST ================= */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  pointer-events: auto;   /* ← CHANGE */
  cursor: pointer;        /* ← ADD */

  background: #111;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);

  z-index: 10001; /* above auth gate + overlays */
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.meet-totals-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-btn{
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}

.summary-btn:hover{
  filter: brightness(1.1);
}

.toast:hover{
  transform: translateX(-50%) translateY(0) scale(1.03);
}