:root {
  --bg: #f4efe6;
  --panel: rgba(255, 251, 245, 0.92);
  --panel-strong: #fffaf2;
  --ink: #201d18;
  --muted: #675f54;
  --line: rgba(99, 80, 44, 0.15);
  --accent: #bf4e2f;
  --accent-strong: #8f3117;
  --gold: #d7a94b;
  --success: #2f6d48;
  --danger: #a43c2d;
  --shadow: 0 24px 60px rgba(31, 26, 18, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Segoe UI", sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(215, 169, 75, 0.18),
      transparent 32%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(191, 78, 47, 0.14),
      transparent 28%
    ),
    linear-gradient(180deg, #f8f2e8 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(32, 29, 24, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 29, 24, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  opacity: 0.45;
}

body.auth-screen {
  background:
    radial-gradient(
      circle at top left,
      rgba(215, 169, 75, 0.18),
      transparent 26%
    ),
    radial-gradient(circle at 80% 20%, rgba(47, 109, 72, 0.2), transparent 24%),
    linear-gradient(135deg, #f5efe6 0%, #efe4d5 48%, #f7f3ec 100%);
}

body.admin-screen,
body.live-screen {
  background:
    radial-gradient(
      circle at top left,
      rgba(215, 169, 75, 0.12),
      transparent 20%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(191, 78, 47, 0.12),
      transparent 24%
    ),
    linear-gradient(180deg, #f6f1e8 0%, #efe5d8 100%);
}

a {
  color: var(--accent-strong);
}

.page-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px clamp(18px, 4vw, 52px) 28px;

  .viewer-auction-name {
    margin-top: 12px;
    font-size: 1rem;
  }

  .viewer-auction-name strong {
    color: var(--accent-strong);
  }
}

.page-header-auth,
.page-header-admin,
.page-header-live {
  align-items: flex-start;
}
p#liveConnectionMessage {
  font-size: 1rem;
}
.live-connection-panel {
  min-width: 240px;
  max-width: 320px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(99, 80, 44, 0.12);
  background: rgba(255, 251, 245, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.live-connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.live-connection-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d18a22;
  box-shadow: 0 0 0 0 rgba(209, 138, 34, 0.45);
}

.live-connection-badge.is-live {
  color: #7d1808;
  background: rgba(255, 235, 231, 0.92);
}

.live-connection-badge.is-live .live-connection-dot {
  background: #d92f1f;
  box-shadow: 0 0 0 0 rgba(217, 47, 31, 0.55);
  animation: livePulse 1.6s infinite;
}

.live-connection-badge.is-connecting {
  color: #88550f;
  background: rgba(255, 243, 220, 0.95);
}

.live-connection-badge.is-offline {
  color: #6d231a;
  background: rgba(250, 229, 224, 0.95);
}

.live-connection-badge.is-offline .live-connection-dot {
  background: #a43c2d;
  box-shadow: 0 0 0 0 rgba(164, 60, 45, 0.2);
}

.live-connection-message {
  margin: 12px 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 47, 31, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(217, 47, 31, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 47, 31, 0);
  }
}

/* .header-copy {
  max-width: 760px;
} */

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.page-header h1,
.card h2,
.card h3,
.auth-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.page-header h1 {
  margin-top: 10px;
  font-size: clamp(2.25rem, 4.5vw, 4.4rem);
  line-height: 0.98;
  /* max-width: 12ch; */
}

.page-header p {
  margin: 14px 0 0;
  /* max-width: 62ch; */
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.header-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  width: min(460px, 100%);
}

.mini-stat {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(99, 80, 44, 0.12);
  background: rgba(255, 251, 245, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.mini-stat strong,
.feature-item strong,
.info-chip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.mini-stat span,
.feature-item span,
.info-chip span,
.form-intro,
small {
  color: var(--muted);
  line-height: 1.55;
}

.auth-shell,
.dashboard-layout,
.live-layout {
  position: relative;
  z-index: 1;
  padding: 0 clamp(18px, 4vw, 52px) 42px;
}

.admin-shell {
  position: relative;
  z-index: 1;
  padding: 0 clamp(18px, 4vw, 52px) 42px;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 480px);
  gap: 24px;
  align-items: stretch;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.4fr;
  gap: 18px;
}

.admin-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
}

.live-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(99, 80, 44, 0.12);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--accent),
    rgba(47, 109, 72, 0.85)
  );
}

.hero-card {
  min-height: 220px;
}

.share-card {
  background:
    linear-gradient(
      160deg,
      rgba(255, 250, 242, 0.94),
      rgba(250, 241, 228, 0.88)
    ),
    radial-gradient(
      circle at top right,
      rgba(215, 169, 75, 0.18),
      transparent 30%
    );
}

.auction-card {
  background:
    linear-gradient(160deg, rgba(28, 42, 41, 0.92), rgba(42, 62, 55, 0.88)),
    radial-gradient(
      circle at top right,
      rgba(215, 169, 75, 0.22),
      transparent 28%
    );
  color: #f8f3e8;
}

.auction-card .section-kicker,
.auction-card p,
.auction-card h2,
.auction-card #liveStatus {
  color: inherit;
}

.control-card {
  grid-column: 3;
  grid-row: span 2;
}

section.card.detail-form-card.team-detail-card {
  max-height: 420px;
}

.detail-board-card {
  min-height: 520px;
}

.admin-nav-card {
  margin-bottom: 18px;
}

.admin-nav-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-nav-btn {
  width: auto;
  min-width: 160px;
  flex: 0 0 auto;
}

.admin-nav-btn.is-active {
  background: linear-gradient(135deg, #204d3c 0%, #17382d 100%);
  border-color: rgba(23, 56, 45, 0.2);
}

.admin-screen-panel.hidden {
  display: none !important;
}

.quick-link-group .inline-actions {
  margin-top: 8px;
}

.board-card {
  min-height: 440px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 14px;
}

.card h2 {
  margin-top: 8px;
  font-size: 1.6rem;
}

.card h3 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.feature-card {
  padding: 28px;
}

strong#remainingPlayersCount {
  display: contents;
  color: #4be0cf;
}
.header-copy {
  display: flex;
}
header.page-header.page-header-admin .logo {
  width: 130px;
  height: 130px;
  margin: auto 20px;
}
img.logo-image {
  /* width: 100%; */
  object-fit: contain;
  max-width: 100%;
}
.auth-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item,
.info-chip {
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(99, 80, 44, 0.12);
  background: rgba(255, 255, 255, 0.52);
}

.auth-card {
  min-height: 100%;
}

.auth-panel {
  padding: 18px;
}

.auth-tab-row {
  gap: 10px;
  margin-bottom: 20px;
}

.auth-tabs button.is-active {
  background: linear-gradient(135deg, #204d3c 0%, #17382d 100%);
  border-color: rgba(23, 56, 45, 0.2);
}

.auth-form-block {
  padding: 8px 4px 0;
}

.auth-form-block h2 {
  font-size: 1.8rem;
}

.form-intro {
  margin: 10px 0 18px;
}

.info-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

#liveLink {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  word-break: break-all;
  text-decoration: none;
}

span.live-player-name,
span.live-bid-amount,
span.live-leading-team-name,
span.live-next-allowed-bid {
  font-size: 2.2rem;
  font-weight: 900;
  color: coral;
}

.live-box {
  margin-top: 14px;
  padding: 18px 20px;
  min-height: 124px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  font-size: 2rem;
  line-height: 1.7;
  text-align: center;
}

.live-detail-line {
  display: block;
  margin-bottom: 8px;
}

.live-detail-line:last-child {
  margin-bottom: 0;
}

.player-spotlight {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-direction: column;
}

/* ── Auction card top row (kicker + toggle button) ── */
.auction-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-toggle-btn {
  width: auto;
  min-width: 0;
  padding: 7px 16px;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f5eddf;
  box-shadow: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.view-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.45);
  transform: none;
  box-shadow: none;
}

/* ── Focus split layout ── */
.focus-split {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
}

.focus-image-side {
  flex: 0 0 auto;
}

.focus-player-image {
  width: 240px;
  height: 300px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
  display: block;
}

.focus-details-side {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.focus-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.focus-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 235, 200, 0.65);
}

.focus-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: #f5eddf;
  line-height: 1.2;
  word-break: break-word;
}

.focus-bid-value {
  font-size: 2.4rem;
  color: coral;
}

.focus-next-bid {
  color: var(--gold);
}

body.is-focus-fullscreen {
  overflow: hidden;
}

body.is-focus-fullscreen .page-header,
body.is-focus-fullscreen .live-layout > .board-card {
  display: none;
}

body.is-focus-fullscreen .live-layout {
  display: block;
  padding: 0;
}

body.is-focus-fullscreen .live-layout .auction-card {
  position: fixed;
  inset: 0;
  z-index: 120;
  border-radius: 0;
  border: 0;
  min-height: 100vh;
  padding: clamp(18px, 3vw, 34px);
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

body.is-focus-fullscreen .live-layout .auction-card h2 {
  font-size: clamp(2rem, 4.8vw, 3.8rem);
}

body.is-focus-fullscreen .focus-split {
  flex: 1;
  align-items: stretch;
  margin-top: 20px;
  gap: clamp(20px, 3vw, 36px);
}

body.is-focus-fullscreen .focus-image-side,
body.is-focus-fullscreen .focus-details-side {
  flex: 1;
}

body.is-focus-fullscreen .focus-player-image {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  /* min-height: 420px; */
  max-height: calc(100vh - 180px);
  border-radius: 20px;
}

body.is-focus-fullscreen .focus-details-side {
  justify-content: center;
  gap: 16px;
}

body.is-focus-fullscreen .focus-detail-item {
  padding: 18px 22px;
}

body.is-focus-fullscreen .focus-value {
  font-size: clamp(1.3rem, 2.3vw, 2.2rem);
}

body.is-focus-fullscreen .focus-bid-value {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.player-placeholder-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  object-fit: cover;
}

#currentPlayerLabel {
  margin: 0;
  font-weight: 700;
  font-size: 40px;
}

.share-card .live-box {
  background: rgba(255, 255, 255, 0.66);
}

.row {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.row label {
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: #4d4439;
}

.row-group {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(99, 80, 44, 0.12);
}

.row-group:first-of-type {
  margin-top: 20 px;
  padding-top: 0;
  border-top: 0;
}
button#startRandomBtn {
  height: 100px;
  color: #fff;
  font-size: 2rem;
  background: linear-gradient(135deg, #2bf6b2 0%, #df9e08 100%);
}
button#finalizeBtn {
  background: linear-gradient(135deg, #2bf687 0%, #56df08 100%);
}
.undo-reset {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 7rem;
  margin-top: 20px;
}
input,
select,
button {
  width: 100%;
  border-radius: 14px;
  font: inherit;
}

input,
select {
  padding: 12px 14px;
  border: 1px solid rgba(94, 77, 44, 0.16);
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

input:focus,
select:focus {
  border-color: rgba(191, 78, 47, 0.44);
  box-shadow: 0 0 0 4px rgba(191, 78, 47, 0.12);
}

button {
  padding: 12px 16px;
  border: 1px solid rgba(143, 49, 23, 0.12);
  background: linear-gradient(135deg, #c75735 0%, #9f3a22 100%);
  color: #fff7f2;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
  box-shadow: 0 14px 24px rgba(159, 58, 34, 0.18);
  margin: 10px auto;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(159, 58, 34, 0.22);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button.danger,
.logout-btn {
  background: linear-gradient(135deg, #8d3025 0%, #6d231a 100%);
}

.logout-btn {
  width: auto;
  min-width: 104px;
}

.avatar-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-nav-dropdown {
  display: none;
  position: relative;
}

.mobile-nav-toggle {
  width: 46px;
  min-width: 46px;
  height: 46px;
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(99, 80, 44, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 190px;
  padding: 40px 8px 8px;
  border-radius: 14px;
  border: 1px solid rgba(99, 80, 44, 0.16);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  z-index: 60;
}

.mobile-nav-close-btn {
  margin: 0 !important;

  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(99, 80, 44, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
body.admin-screen .mobile-nav-menu {
  box-shadow: 0px 0px 15px #ffffff75;
}
span.live-dot {
  color: #ec0c0c !important;
}
.mobile-nav-close-btn:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-nav-divider {
  height: 1px;
  margin: 8px 2px;
  background: rgba(99, 80, 44, 0.2);
}

.mobile-nav-live-link {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(99, 80, 44, 0.2);
  color: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  word-break: break-all;
  background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-code-wrap {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(99, 80, 44, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-code-label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.mobile-nav-code-wrap strong {
  font-size: 0.93rem;
  letter-spacing: 0.04em;
}

.mobile-nav-logout-btn {
  margin-top: 8px;
  color: #bf3f2f;
}

.mobile-nav-menu.hidden {
  display: none !important;
}

.mobile-nav-menu-btn {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: none;
}

.mobile-nav-menu-btn + .mobile-nav-menu-btn {
  margin-top: 4px;
}

.mobile-nav-menu-btn:hover {
  transform: none;
  box-shadow: none;
  background: rgba(191, 78, 47, 0.12);
}

.mobile-nav-menu-btn.is-active {
  background: rgba(47, 109, 72, 0.16);
}

.avatar-btn {
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(191, 78, 47, 0.3);
  background: linear-gradient(135deg, #bf4e2f 0%, #8f3117 100%);
  color: #f8f3e8;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
  box-shadow: 0 6px 16px rgba(191, 78, 47, 0.18);
}

.avatar-btn:hover {
  transform: scale(1.08);
  border-color: rgba(191, 78, 47, 0.6);
  box-shadow: 0 8px 20px rgba(191, 78, 47, 0.24);
}

.avatar-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.avatar-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 140px;
  border-radius: 14px;
  border: 1px solid rgba(99, 80, 44, 0.12);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 50;
}

.avatar-menu.hidden {
  display: none !important;
}

.avatar-menu button {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  margin: 0;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.avatar-menu button:hover {
  background-color: rgba(191, 78, 47, 0.08);
  transform: none;
  box-shadow: none;
}

.avatar-menu .logout-btn {
  margin: 0;
  box-shadow: none;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-actions > button {
  flex: 1 1 0;
}

.team-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.team-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.team-actions .icon-btn {
  margin: 0;
}

.team-actions-menu-wrap {
  position: relative;
  flex: 0 0 auto;
}

.team-actions-toggle {
  width: auto;
  min-width: 44px;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(99, 80, 44, 0.18);
  background: linear-gradient(135deg, #f2ead6 0%, #eadcc0 100%);
  color: #4e4639;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: none;
}

.team-actions-toggle:hover {
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, #efe3cc 0%, #e5d2ae 100%);
}

.team-actions-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(99, 80, 44, 0.14);
  background: rgba(255, 251, 245, 0.98);
  box-shadow: 0 10px 24px rgba(31, 26, 18, 0.16);
  z-index: 30;
}

.team-actions-menu-btn {
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.team-actions-menu-btn:hover {
  transform: none;
  box-shadow: none;
  background: rgba(191, 78, 47, 0.1);
}

.team-actions-menu-btn-danger {
  color: #8d3025;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(94, 77, 44, 0.12);
  background: linear-gradient(135deg, #f8efdf 0%, #f2e4cf 100%);
  box-shadow: none;
}
li.player-unsold,
.player-sold {
  margin-left: 10px;
}
button.password-toggle {
  margin: 0 auto;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: #5a5244;
}

.password-toggle.is-visible {
  background: linear-gradient(135deg, #f0dcc7 0%, #e5c6aa 100%);
}

#message,
#authMessage,
#loginError {
  min-height: 28px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--accent-strong);
}

.inline-form-message {
  min-height: 22px;
  margin: 6px 2px 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.inline-form-message.error {
  color: #bf3f2f;
}

.inline-form-message.success {
  color: #2f6a39;
}

#teamsBoard,
#playersBoard {
  max-height: 760px;
  overflow: auto;
  padding-right: 6px;
}

.team-block {
  border: 1px solid rgba(99, 80, 44, 0.12);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  background: linear-gradient(
    160deg,
    rgba(255, 252, 247, 0.95),
    rgba(247, 239, 226, 0.8)
  );
}

div#playersBoard .team-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.team-block strong {
  display: block;
  line-height: 1.5;
}

.team-block ol,
.team-block ul,
ol,
ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.team-block li,
li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.icon-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2ead6 0%, #eadcc0 100%);
  color: var(--ink);
  box-shadow: none;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: #534c3e;
}

.danger-outline {
  background: linear-gradient(135deg, #fff 0%, #fbe5df 100%);
  border-color: rgba(164, 60, 45, 0.25);
}

.danger-outline svg {
  fill: var(--danger);
}

.danger-outline:disabled {
  opacity: 0.45;
}

.player-sold {
  color: var(--success);
  font-weight: 700;
}

.player-unsold {
  color: #fff;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.login-box {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  width: 320px;
}

small code {
  font-family: "Courier New", monospace;
  font-size: 0.92em;
}

/* Inspired admin command-center theme */
body.admin-screen {
  color: #d6ece8;
  background:
    radial-gradient(
      circle at 14% 8%,
      rgba(28, 155, 139, 0.18),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 16%,
      rgba(245, 176, 46, 0.12),
      transparent 28%
    ),
    linear-gradient(160deg, #061016 0%, #040a0f 52%, #03070b 100%);
}

body.admin-screen::before {
  background-image:
    linear-gradient(rgba(52, 112, 106, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 112, 106, 0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.2;
}

body.admin-screen .page-header {
  padding-top: 28px;
  padding-bottom: 18px;
}

body.admin-screen .page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: 0.01em;
  line-height: 1.04;
  color: #9e8952;
}

body.admin-screen .page-header p,
body.admin-screen #coordinatorMeta {
  color: rgba(170, 205, 198, 0.88);
}

body.admin-screen .eyebrow,
body.admin-screen .section-kicker {
  color: #68d8c8;
}

body.admin-screen .avatar-btn {
  border-color: rgba(103, 222, 202, 0.32);
  background: linear-gradient(135deg, #0f3d40 0%, #0b2a35 100%);
  color: #bffdf4;
  box-shadow: 0 0 0 1px rgba(103, 222, 202, 0.2);
}

body.admin-screen .admin-nav-card {
  margin-bottom: 16px;
  border-radius: 16px;
  border-color: rgba(89, 154, 145, 0.35);
  background: linear-gradient(
    180deg,
    rgba(7, 20, 25, 0.96),
    rgba(6, 16, 22, 0.96)
  );
}

body.admin-screen .admin-nav-card::before {
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(91, 220, 201, 0.55),
    rgba(91, 220, 201, 0)
  );
}

body.admin-screen .admin-nav-btn {
  min-width: 130px;
  border: 1px solid rgba(70, 110, 105, 0.3);
  background: rgba(8, 26, 33, 0.78);
  color: #8db6af;
  box-shadow: none;
  margin: 0;
}

body.admin-screen .admin-nav-btn:hover {
  color: #c8f9f1;
  transform: none;
  border-color: rgba(102, 228, 206, 0.45);
  box-shadow: none;
}

body.admin-screen .admin-nav-btn.is-active {
  color: #cffff7;
  border-color: rgba(111, 230, 210, 0.68);
  background: linear-gradient(
    135deg,
    rgba(10, 57, 58, 0.9) 0%,
    rgba(8, 38, 46, 0.95) 100%
  );
}

body.admin-screen .mobile-nav-toggle {
  border-color: rgba(111, 230, 210, 0.4);
  background: linear-gradient(
    135deg,
    rgba(10, 57, 58, 0.86) 0%,
    rgba(8, 38, 46, 0.88) 100%
  );
  color: #bffdf4;
}

body.admin-screen .mobile-nav-toggle:hover {
  transform: none;
  box-shadow: none;
  background: linear-gradient(
    135deg,
    rgba(12, 70, 68, 0.9) 0%,
    rgba(9, 48, 56, 0.9) 100%
  );
}

body.admin-screen .mobile-nav-menu {
  border-color: rgba(70, 129, 122, 0.45);
  background: rgba(8, 21, 28, 0.97);
}

body.admin-screen .mobile-nav-close-btn {
  border-color: rgba(70, 129, 122, 0.4);
  background: rgba(7, 20, 26, 0.92);
  color: #bfe9e3;
}

body.admin-screen .mobile-nav-close-btn:hover {
  background: rgba(18, 44, 50, 0.95);
}

body.admin-screen .mobile-nav-divider {
  background: rgba(70, 129, 122, 0.32);
}

body.admin-screen .mobile-nav-live-link,
body.admin-screen .mobile-nav-code-wrap {
  border-color: rgba(70, 129, 122, 0.34);
  background: rgba(5, 16, 22, 0.66);
  color: #d5efeb;
}

body.admin-screen .mobile-nav-live-link {
  color: #8de8db;
}

body.admin-screen .mobile-nav-code-label {
  color: #7baea8;
}

body.admin-screen .mobile-nav-logout-btn {
  color: #ff9c9c;
}

body.admin-screen .mobile-nav-menu-btn {
  color: #d5efeb;
}

body.admin-screen .mobile-nav-menu-btn:hover {
  background: rgba(75, 206, 186, 0.16);
}

body.admin-screen .mobile-nav-menu-btn.is-active {
  background: rgba(75, 206, 186, 0.22);
}

body.admin-screen .dashboard-layout {
  grid-template-columns: 0.5fr 1.6fr 1fr;
  gap: 16px;
}

body.admin-screen .control-card {
  grid-column: 3;
  grid-row: 1 / span 2;
}

body.admin-screen .card {
  border-radius: 14px;
  border-color: rgba(90, 144, 138, 0.34);
  background: linear-gradient(
    160deg,
    rgba(10, 22, 28, 0.94),
    rgba(8, 18, 24, 0.96)
  );
  box-shadow: 0 18px 40px rgba(2, 6, 10, 0.5);
}

body.admin-screen .card::before {
  height: 2px;
  background: linear-gradient(90deg, #4be0cf, rgba(75, 224, 207, 0.14));
}

body.admin-screen .card h2,
body.admin-screen .card h3,
body.admin-screen .card p,
body.admin-screen .card label,
body.admin-screen .card small,
body.admin-screen .card span,
body.admin-screen .card strong,
body.admin-screen .card li {
  color: #d4e9e6;
}

body.admin-screen .share-card {
  background:
    linear-gradient(160deg, rgba(15, 27, 34, 0.95), rgba(9, 19, 25, 0.98)),
    radial-gradient(
      circle at 100% 0%,
      rgba(73, 201, 182, 0.18),
      transparent 34%
    );
}

body.admin-screen .auction-card {
  background:
    linear-gradient(150deg, rgba(6, 58, 57, 0.96), rgba(8, 36, 44, 0.95)),
    radial-gradient(
      circle at top right,
      rgba(66, 217, 193, 0.26),
      transparent 34%
    );
}

body.admin-screen .control-card {
  background: linear-gradient(
    180deg,
    rgba(20, 25, 33, 0.97),
    rgba(12, 18, 25, 0.97)
  );
}

body.admin-screen #liveLink {
  border: 1px solid rgba(94, 150, 144, 0.3);
  background: rgba(7, 19, 26, 0.95);
  color: #8de8db;
  font-family: "Courier New", monospace;
}

strong#inviteCode {
    background: #6fe6d22b;
    text-align: center;
    padding: 4px;
    margin: 5px auto;
}

body.admin-screen .info-chip {
  border-color: rgba(82, 132, 126, 0.3);
  background: rgba(7, 18, 24, 0.76);
}
.info-chip.remaining.players-chip{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 4px 11px;
  font-size: 1rem;
}
.live-sidebar-logo img {
  width: 65px;
  height: 65px;
}
body.admin-screen .live-box {
  border-color: rgba(67, 192, 177, 0.28);
  background: rgba(6, 17, 23, 0.64);
  text-align: left;
  font-size: 1.28rem;
  line-height: 1.48;
}

body.admin-screen .live-detail-line {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(82, 148, 139, 0.2);
}

body.admin-screen .live-detail-line:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.admin-screen span.live-player-name,
body.admin-screen span.live-bid-amount,
body.admin-screen span.live-leading-team-name,
body.admin-screen span.live-next-allowed-bid {
  font-size: 2rem;
  color: #6cf3df;
}

body.admin-screen span.live-bid-amount.is-empty {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  color: rgba(126, 232, 255, 0.9);
}

body.admin-screen .admin-live-desktop {
  display: none;
}

body.admin-screen .admin-live-mobile {
  display: block;
}
button#placeBidBtn {
  height: 81px;
  font-size: 30px;
  max-width: 300px;
  margin: 38px auto;
}

.team-block ol li span {
  margin-right: 10px;
}
body.admin-screen .admin-live-mobile-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

body.admin-screen .admin-live-mobile-hot {
  color: #7ee8ff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.admin-screen .admin-live-mobile-photo-wrap {
  width: 150px;
  height: 178px;
  margin: 0 auto 12px;
  border: 2px solid rgba(137, 195, 190, 0.25);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(4, 14, 18, 0.8);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.48);
}

body.admin-screen .admin-live-mobile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

body.admin-screen .admin-live-mobile-kicker {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8d6c8;
  font-weight: 800;
}

body.admin-screen .admin-live-mobile-name {
  margin: 8px 0 10px;
  text-align: center;
  font-size: clamp(2rem, 12vw, 2.45rem);
  line-height: 1;
  font-weight: 900;
  color: #f2ebe0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

body.admin-screen .admin-live-mobile-chip-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

body.admin-screen .admin-live-mobile-chip {
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(72, 92, 94, 0.45);
  color: #e7d8ab;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.admin-screen .admin-live-mobile-stats {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}

body.admin-screen .admin-live-mobile-stat-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

body.admin-screen .admin-live-mobile-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #a0cfc8;
}

body.admin-screen .admin-live-mobile-bid {
  font-size: clamp(2rem, 13vw, 2.6rem);
  line-height: 1;
  font-weight: 900;
  color: #bde8d9;
}

body.admin-screen .admin-live-mobile-leading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

body.admin-screen .admin-live-mobile-team-initial {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #f0d693;
  color: #2c2a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 900;
}

body.admin-screen .admin-live-mobile-team-name {
  font-size: clamp(1.2rem, 7.2vw, 5.55rem);
  line-height: 1;
  font-weight: 800;
  color: #f5efe4;
  max-width: 10ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.admin-screen .admin-live-mobile-team-name.is-empty {
  font-size: clamp(0.9rem, 3.2vw, 1.08rem);
  letter-spacing: 0.02em;
  color: rgba(212, 236, 231, 0.92);
  max-width: 11ch;
}

body.admin-screen .admin-live-mobile-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px 10px;
  border-left: 4px solid #84dfff;
  background: rgba(6, 14, 19, 0.78);
  border-radius: 2px;
}

body.admin-screen .admin-live-mobile-bottom-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.admin-screen .admin-live-mobile-value {
  font-size: clamp(1.25rem, 7.4vw, 1.65rem);
  line-height: 1;
  font-weight: 900;
  color: #d6ece5;
}

body.admin-screen .admin-live-mobile-status {
  font-size: clamp(1rem, 6vw, 1.28rem);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  color: #7ee8ff;
}

@media (min-width: 641px) {
  body.admin-screen .live-box {
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
  }
  .live-nav-focus-item.mobile-only {
    display: none;
  }

  body.admin-screen .admin-live-mobile {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    grid-template-areas:
      "photo top"
      "photo kicker"
      "photo name"
      "photo chips"
      "photo stats"
      "bottom bottom";
    column-gap: 18px;
    row-gap: 10px;
    padding: 10px;
    border: 1px solid rgba(37, 170, 148, 0.28);
    border-radius: 12px;
    background: linear-gradient(
      145deg,
      rgba(6, 30, 29, 0.9),
      rgba(7, 37, 31, 0.92)
    );
  }

  body.admin-screen .admin-live-mobile-top {
    grid-area: top;
    margin: 0;
  }

  body.admin-screen .admin-live-mobile-photo-wrap {
    grid-area: photo;
    width: 100%;
    height: 252px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(137, 195, 190, 0.3);
  }

  body.admin-screen .admin-live-mobile-kicker {
    grid-area: kicker;
    text-align: left;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  body.admin-screen .admin-live-mobile-name {
    grid-area: name;
    text-align: left;
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    max-width: 16ch;
  }

  body.admin-screen .admin-live-mobile-chip-row {
    grid-area: chips;
    justify-content: flex-start;
    margin: 0;
  }

  body.admin-screen .admin-live-mobile-stats {
    grid-area: stats;
    margin: 0;
    gap: 10px;
  }

  body.admin-screen .admin-live-mobile-stat-col {
    padding: 10px 12px;
    border: 1px solid rgba(56, 158, 150, 0.22);
    background: rgba(6, 20, 23, 0.5);
    border-radius: 8px;
  }

  body.admin-screen .admin-live-mobile-bid {
    font-size: clamp(2.2rem, 4.8vw, 5.4rem);
  }

  body.admin-screen .admin-live-mobile-team-name {
    max-width: 16ch;
  }

  body.admin-screen .admin-live-mobile-team-name.is-empty {
    font-size: 1rem;
    max-width: 16ch;
  }

  body.admin-screen .admin-live-mobile-bottom {
    grid-area: bottom;
    margin-top: 2px;
    border-radius: 8px;
  }
}

body.admin-screen input,
body.admin-screen select {
  border-color: rgba(86, 140, 133, 0.35);
  background: rgba(6, 17, 23, 0.9);
  color: #def5f1;
}

body.admin-screen input:focus,
body.admin-screen select:focus {
  border-color: rgba(108, 243, 223, 0.68);
  box-shadow: 0 0 0 3px rgba(108, 243, 223, 0.16);
}

body.admin-screen button {
  border-color: rgba(255, 184, 35, 0.34);
  background: linear-gradient(135deg, #f6be2b 0%, #df9e08 100%);
  color: #162028;
  box-shadow: 0 12px 24px rgba(8, 10, 12, 0.42);
  margin: 8px auto;
}

body.admin-screen button:hover {
  box-shadow: 0 14px 28px rgba(5, 6, 8, 0.5);
}

body.admin-screen button.danger,
body.admin-screen .logout-btn {
  border-color: rgba(215, 95, 89, 0.28);
  background: linear-gradient(135deg, #7d2d32 0%, #5a1d22 100%);
  color: #ffdedd;
}

body.admin-screen .team-block {
  border-color: rgba(79, 130, 124, 0.32);
  background: linear-gradient(
    165deg,
    rgba(8, 21, 27, 0.94),
    rgba(7, 17, 22, 0.96)
  );
}

body.admin-screen .icon-btn,
body.admin-screen .team-actions-toggle {
  border-color: rgba(76, 131, 126, 0.36);
  background: linear-gradient(135deg, #11262d 0%, #0c1b23 100%);
  color: #98d1ca;
}

body.admin-screen .icon-btn svg,
body.admin-screen .team-actions-toggle svg {
  fill: #9edfd6;
}

body.admin-screen .team-actions-menu {
  border-color: rgba(70, 129, 122, 0.45);
  background: rgba(8, 21, 28, 0.97);
}

body.admin-screen .team-actions-menu-btn {
  color: #d5efeb;
}

body.admin-screen .team-actions-menu-btn:hover {
  background: rgba(75, 206, 186, 0.16);
}

body.admin-screen .inline-form-message.error {
  color: #ff8683;
}

/* Decorative large logo in admin header */
.big-hero-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 620px;
  max-width: 62vw;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: screen;
  filter: saturate(0.95) contrast(0.98)
    drop-shadow(0 6px 20px rgba(0, 0, 0, 0.18));
}
.big-hero-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* keep header content above the decorative logo */
.page-header {
  position: relative;
  z-index: 2;
}

@media (max-width: 840px) {
  .big-hero-logo {
    display: none;
  }
}

/* On signup/auth pages, keep the logo to the right instead of centered */
.bc-auth-body .big-hero-logo {
  position: absolute;
  top: 8px;
  right: 28px;
  left: auto;
  transform: none;
  width: 420px;
  max-width: 44vw;
  opacity: 0.18;
}

/* Ensure big logo is visible on live-screen and stays fixed */
body.live-screen .big-hero-logo {
  /* fixed default already centers it; keep slightly dimmer on live view */
  opacity: 0.08;
}

/* local logo used inside the focus view (sits above the live-hero-card background) */
.big-hero-logo.focus-local-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  max-width: 72vw;
  opacity: 0.06;
  pointer-events: none;
  z-index: 8; /* behind UI but above live-hero-card background */
  mix-blend-mode: screen;
  filter: saturate(0.9) contrast(0.95);
}

@media (max-width: 1024px) {
  .big-hero-logo.focus-local-logo {
    display: none;
  }
}

/* Hide focus-toggle controls while in fullscreen */
:fullscreen .js-focus-toggle,
:-webkit-full-screen .js-focus-toggle,
:-moz-full-screen .js-focus-toggle,
:-ms-fullscreen .js-focus-toggle {
  display: none !important;
}

/* Also hide the focus command's 'Focus View' tab when the page is fullscreen */
:fullscreen .focus-command-tab,
:-webkit-full-screen .focus-command-tab,
:-moz-full-screen .focus-command-tab,
:-ms-fullscreen .focus-command-tab {
  display: none !important;
}

/* Hide the fullscreen toggle button itself while in fullscreen */
/* (keep fullscreen button visible in fullscreen) */

/* Also hide the Exit Focus button while in fullscreen */
:fullscreen .focus-exit-btn,
:-webkit-full-screen .focus-exit-btn,
:-moz-full-screen .focus-exit-btn,
:-ms-fullscreen .focus-exit-btn {
  display: none !important;
}

/* Fallback: hide focus controls when `is-fullyscreen` class is present on body */
/* hide only the Exit Focus button and focus toggles when in fullscreen */
body.is-fullyscreen .focus-exit-btn,
body.is-fullyscreen .js-focus-toggle,
body.is-fullyscreen .focus-command-tab {
  display: none !important;
}

body.admin-screen .inline-form-message.success {
  color: #7ff3df;
}

body.admin-screen #teamsBoard,
body.admin-screen #playersBoard {
  scrollbar-width: thin;
  scrollbar-color: rgba(77, 185, 171, 0.5) rgba(7, 16, 21, 0.5);
}

body.admin-screen .inline-actions > button {
  margin: 0;
}

@media (max-width: 1100px) {
  .dashboard-layout {
    grid-template-columns: 1fr 1fr;
  }

  .admin-detail-layout {
    grid-template-columns: 1fr;
  }

  .control-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .live-layout {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
  }

  body.admin-screen .dashboard-layout {
    grid-template-columns: 1fr 1fr;
  }

  body.admin-screen .control-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .auth-shell,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .header-badge-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    max-width: none;
  }

  body.admin-screen .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-header,
  .auth-shell,
  .admin-shell,
  .dashboard-layout,
  .live-layout {
    padding-left: 14px;
    padding-right: 14px;
  }
  body.live-screen.is-focus-fullscreen .focus-hero-name {
    display: none;
  }
  nav.live-sidebar-nav {
    display: none;
  }

  .page-header {
    padding-top: 28px;
  }

  .admin-nav-card {
    display: none;
  }
  button#startRandomBtn {
    font-size: 20px;

    margin: 20px auto;
  }
  .undo-reset {
    gap: 1rem;
  }

  button#placeBidBtn {
    max-width: 100%;
  }
  .undo-reset button {
    width: 144px;
    height: 55px;
  }
  button#undoBtn {
    font-size: 15px;
  }
  .mobile-nav-dropdown {
    display: block;
  }

  .page-header-admin {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 10px;
    position: relative;
    z-index: 300;
  }

  .page-header-admin .header-copy {
    min-width: 0;
  }

  .page-header-admin .avatar-dropdown {
    justify-self: end;
    align-self: start;
  }

  .page-header-admin .avatar-btn,
  .page-header-admin .avatar-menu {
    display: none;
  }

  .mobile-nav-menu {
    position: fixed;
    top: 12px;
    right: 14px;
    width: min(280px, calc(100vw - 28px));
    z-index: 9999;
  }
  section.card.hero-card.share-card {
    display: none;
  }
  .card {
    padding: 18px;
    border-radius: 18px;
  }

  body.admin-screen .admin-live-desktop {
    display: none;
  }

  body.admin-screen .admin-live-mobile {
    display: block;
  }

  body.admin-screen .live-box {
    margin-top: 12px;
    padding: 12px 10px 14px;
    text-align: initial;
  }

  .inline-actions {
    flex-direction: column;
  }

  .inline-actions > button,
  .logout-btn,
  .admin-nav-btn {
    width: 100%;
  }

  div#playersBoard .team-block {
    align-items: flex-start;
    flex-direction: column;
  }

  body.is-focus-fullscreen .focus-split {
    flex-direction: column;
  }

  body.is-focus-fullscreen .focus-player-image {
    min-height: 280px;
    max-height: 40vh;
  }
}

/* ═══════════════════════════════════════════════════════════
   LIVE VIEWER — Command-Center Dark Theme
   ═══════════════════════════════════════════════════════════ */

body.live-screen {
  color: #d8f0eb;
  overflow: hidden;
  background: linear-gradient(160deg, #0c1a13 0%, #091410 100%);
}

body.live-screen::before {
  background-image:
    linear-gradient(rgba(30, 180, 150, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 180, 150, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
}

/* ── App Shell ── */
.live-app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Left Sidebar ── */
.live-sidebar {
  flex: 0 0 210px;
  width: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(6, 13, 10, 0.97);
  border-right: 1px solid rgba(30, 160, 130, 0.14);
  padding: 22px 0 20px;
  overflow-y: auto;
}

.live-sidebar-inner {
  flex: 1;
}

.live-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 18px 20px;
  border-bottom: 1px solid rgba(30, 160, 130, 0.1);
  margin-bottom: 6px;
}

.live-sidebar-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  opacity: 0.9;
}

.live-sidebar-logo-text {
  display: flex;
  flex-direction: column;
}

.live-sidebar-brand {
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cce8e2;
  line-height: 1.3;
  word-break: break-word;
}

.live-sidebar-phase {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #4e8e86;
  text-transform: uppercase;
  margin-top: 2px;
}

.live-sidebar-nav {
  padding: 6px 10px 0;
}

.live-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4e8e86;
  cursor: default;
  user-select: none;
  margin-bottom: 2px;
  transition:
    color 0.15s,
    background 0.15s;
}

.live-nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.live-nav-item.is-active {
  background: linear-gradient(
    135deg,
    rgba(22, 110, 90, 0.38),
    rgba(14, 78, 64, 0.28)
  );
  border: 1px solid rgba(40, 195, 162, 0.24);
  color: #28e8c2;
}

.live-nav-focus-item {
  margin: 8px 0 2px;
}

.live-nav-focus-item .view-toggle-btn {
  width: 100%;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.71rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #9ad8cc;
  background: linear-gradient(
    140deg,
    rgba(14, 56, 48, 0.86),
    rgba(11, 40, 34, 0.9)
  );
  border-color: rgba(46, 166, 143, 0.34);
}

.live-nav-focus-item .view-toggle-btn:hover {
  background: linear-gradient(
    140deg,
    rgba(18, 72, 61, 0.9),
    rgba(14, 52, 44, 0.92)
  );
  border-color: rgba(74, 194, 170, 0.48);
}

.live-sidebar-foot {
  padding: 16px 16px 0;
  border-top: 1px solid rgba(30, 160, 130, 0.1);
  margin-top: 20px;
}

body.live-screen .live-connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  font-size: 0.68rem;
  border-radius: 999px;
  background: rgba(14, 32, 26, 0.9);
  border: 1px solid rgba(55, 148, 128, 0.3);
  color: #7abfb8;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.live-screen .live-connection-badge.is-live {
  border-color: rgba(30, 196, 165, 0.5);
  color: #36e8cc;
  background: rgba(10, 46, 40, 0.9);
}

body.live-screen .live-connection-badge.is-live .live-connection-dot {
  background: #d10a0a;
  box-shadow: 0 0 0 0 rgba(30, 220, 180, 0.6);
  animation: livePulse 1.6s infinite;
}

body.live-screen .live-connection-badge.is-connecting .live-connection-dot {
  background: #d8b430;
  box-shadow: none;
}

body.live-screen .live-connection-badge.is-offline {
  color: #f08888;
  border-color: rgba(200, 80, 80, 0.32);
}

body.live-screen .live-connection-badge.is-offline .live-connection-dot {
  background: #e06060;
  box-shadow: none;
  animation: none;
}

body.live-screen .live-connection-message {
  margin: 8px 0 0;
  font-size: 0.7rem;
  color: #3e7870;
  line-height: 1.4;
}

/* ── Main Column ── */
.live-main-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 18px 16px 18px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 180, 150, 0.25) transparent;
}

/* ── Hero Card ── */
.live-hero-card {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(30, 155, 128, 0.22);
  background: linear-gradient(145deg, #0d3228 0%, #0a2720 55%, #081c18 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  flex-shrink: 0;
}

.live-hero-inner {
  display: flex;
  min-height: 310px;
  position: relative;
}

.live-hero-image-wrap {
  flex: 0 0 220px;
  width: 220px;
  background: rgba(8, 28, 22, 0.55);
  border-right: 1px solid rgba(30, 155, 128, 0.16);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.live-hero-player-img {
  width: 100%;
  min-height: 310px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.live-hero-bid-panel {
  flex: 1 1 0;
  padding: 26px 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.live-hero-bid-panel::after {
  content: attr(data-bid-shadow);
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-52%);
  font-size: clamp(8rem, 20vw, 17rem);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(180, 229, 218, 0.08);
  pointer-events: none;
  z-index: 0;
}

.live-hero-bid-top {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 12px;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}

.live-auction-hammer {
  /* margin-left: auto; */
  width: 30px;
  height: 30px;
  color: rgba(186, 241, 226, 0.74);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.live-auction-hammer svg {
  width: 100%;
  height: 100%;
}

.live-bid-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4e8e86;
}

.live-bidding-hot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(30, 200, 160, 0.15);
  border: 1px solid rgba(30, 200, 160, 0.38);
  color: #28e8c2;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-big-bid-num {
  font-size: clamp(3.2rem, 6.5vw, 5.2rem);
  font-weight: 900;
  color: #22e8c0;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 6px 0 10px;
  position: relative;
  z-index: 2;
}

.live-hero-player-name {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #90c8c0;
  position: relative;
  z-index: 2;
}

.live-hero-meta-row {
  display: flex;
  border: 1px solid rgba(30, 155, 128, 0.26);
  border-radius: 10px;
  overflow: hidden;
  max-width: 380px;
  margin: 10px 0 0;
  position: relative;
  z-index: 2;
}

.live-meta-item {
  flex: 1 1 0;
  padding: 11px 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-meta-divider {
  width: 1px;
  background: rgba(30, 155, 128, 0.24);
  flex-shrink: 0;
}

.live-meta-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4e8e86;
}

.live-meta-value {
  font-size: 1rem;
  font-weight: 800;
  color: #cce8e2;
}

.live-leading-team-val {
  color: #28e8c2;
}

.live-next-bid-val {
  color: #e8d48a;
}

.live-hero-focus-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
}

.live-mobile-monitor {
  display: none;
}

/* ── Auction Pool ── */
.live-pool-card {
  margin-top: 14px;
  border-radius: 12px;
  border: 1px solid rgba(30, 155, 128, 0.18);
  background: linear-gradient(155deg, #101e17 0%, #0c1814 100%);
  overflow: hidden;
}

.live-pool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(30, 155, 128, 0.13);
}

.live-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cce8e2;
}

.live-pool-count {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4e8e86;
}

.live-players-list {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 180, 150, 0.28) transparent;
}

.live-player-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(30, 155, 128, 0.09);
  transition: background 0.12s;
}

.live-player-row:last-child {
  border-bottom: 0;
}

.live-player-row:hover {
  background: rgba(30, 155, 128, 0.07);
}

.live-player-rownum {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: #30685e;
  font-variant-numeric: tabular-nums;
  min-width: 30px;
}

.live-player-rowname {
  flex: 1 1 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: #b8dcd6;
}

.live-pool-status {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.live-pool-status.is-unsold {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #6a9e96;
}

.live-pool-status.is-sold {
  background: rgba(30, 200, 160, 0.15);
  border: 1px solid rgba(30, 200, 160, 0.35);
  color: #28e8c2;
}

/* ── Right Column: Leaderboard ── */
.live-right-col {
  flex: 0 0 430px;
  /* flex: 0 0 252px; */
  width: 252px;
  padding: 18px 16px 18px 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 180, 150, 0.2) transparent;
}

.live-leaderboard-card {
  border-radius: 12px;
  border: 1px solid rgba(30, 155, 128, 0.18);
  background: linear-gradient(155deg, #101e17 0%, #0c1814 100%);
  overflow: hidden;
  min-height: calc(100vh - 36px);
}

.live-leaderboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(30, 155, 128, 0.13);
}

.live-lb-icon {
  color: #30685e;
}

.live-teams-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.live-team-card {
  border-radius: 9px;
  border: 1px solid rgba(30, 155, 128, 0.14);
  background: rgba(10, 22, 18, 0.82);
  padding: 11px 13px;
}

.live-team-card.is-leading {
  border-color: rgba(30, 200, 162, 0.6);
  background: linear-gradient(
    150deg,
    rgba(14, 52, 42, 0.92),
    rgba(10, 35, 30, 0.92)
  );
  box-shadow: 0 0 0 1px rgba(30, 200, 162, 0.18);
}

.live-team-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

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

.live-team-rank {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #7ac8bf;
}

.live-team-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #3e7870;
  text-transform: uppercase;
}

.live-team-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #d0e8e4;
  letter-spacing: 0.04em;
}

.live-team-budget-wrap {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.live-budget-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3e7870;
  text-transform: uppercase;
}

.live-budget-val {
  font-size: 0.84rem;
  font-weight: 800;
  color: #22e8c0;
}

.live-maxbid-label {
  margin-top: 4px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3e7870;
  text-transform: uppercase;
}

.live-maxbid-val {
  font-size: 0.76rem;
  font-weight: 800;
  color: #9fe8f1;
}

.live-team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.live-player-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(30, 155, 128, 0.1);
  border: 1px solid rgba(30, 155, 128, 0.2);
  color: #78b8b0;
  font-size: 0.63rem;
  font-weight: 600;
}

.live-player-chip.is-live {
  background: rgba(30, 200, 162, 0.2);
  border-color: rgba(30, 200, 162, 0.55);
  color: #28e8c2;
}

.live-more-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #507870;
}

.live-empty-roster {
  font-size: 0.68rem;
  color: #305a54;
  font-style: italic;
}

.live-empty-msg {
  padding: 14px 16px;
  color: #3e7870;
  font-size: 0.84rem;
}

/* ── New Bid Toast ── */
.live-bid-toast {
  position: fixed;
  bottom: 26px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 11px;
  background: rgba(9, 22, 18, 0.97);
  border: 1px solid rgba(30, 195, 160, 0.3);
  border-left: 4px solid #f0b429;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  max-width: 300px;
  z-index: 200;
  animation: toastSlideIn 0.2s ease;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.live-bid-toast.hidden {
  display: none !important;
}

.live-toast-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(240, 180, 40, 0.16);
  border: 1px solid rgba(240, 180, 40, 0.38);
  color: #f0b429;
  font-weight: 900;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-toast-body {
  flex: 1 1 0;
}

.live-toast-title {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0b429;
  margin-bottom: 2px;
}

.live-toast-msg {
  font-size: 0.8rem;
  color: #90c8c0;
  line-height: 1.4;
}

.live-toast-close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #507870;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.live-toast-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: none;
  box-shadow: none;
}

/* ── Focus Fullscreen overrides for new layout ── */
body.live-screen.is-focus-fullscreen {
  overflow: hidden;
}

body.live-screen.is-focus-fullscreen .live-sidebar,
body.live-screen.is-focus-fullscreen .live-right-col,
body.live-screen.is-focus-fullscreen .live-pool-card {
  display: none;
}

body.live-screen.is-focus-fullscreen .live-app-shell {
  display: block;
  position: fixed;
  inset: 0;
  height: 100vh;
}

body.live-screen.is-focus-fullscreen .live-main-col {
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

body.live-screen.is-focus-fullscreen .live-hero-card {
  position: fixed;
  inset: 0;
  z-index: 120;
  border-radius: 0;
  border: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #050a0d 0%, #071117 62%, #04090c 100%);
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  overflow-y: scroll;
}

body.live-screen.is-focus-fullscreen .focus-view-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

body.live-screen.is-focus-fullscreen .focus-command-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(62, 143, 159, 0.2);
  background: rgba(5, 14, 20, 0.92);
  padding: 0 14px;
}

body.live-screen.is-focus-fullscreen .focus-command-brand {
  color: #8fe2d8;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.live-screen.is-focus-fullscreen .focus-command-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
  color: #6f96a0;
  font-size: 0.78rem;
  font-weight: 700;
}

body.live-screen.is-focus-fullscreen .focus-command-tab {
  opacity: 0.8;
}

body.live-screen.is-focus-fullscreen .focus-command-tab.is-active {
  color: #a3e7f0;
  opacity: 1;
  border-bottom: 1px solid rgba(163, 231, 240, 0.65);
}

body.live-screen.is-focus-fullscreen .focus-command-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

body.live-screen.is-focus-fullscreen .focus-exit-btn {
  width: auto;
  min-width: 130px;
  margin: 0 0 0 auto;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 58, 58, 0.46);
  background: linear-gradient(135deg, #941a1e, #6f0f12);
  color: #ffecec;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  box-shadow: none;
}

body.live-screen.is-focus-fullscreen .focus-fullscreen-btn {
  width: auto;
  /* min-width: 120px; */
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(120, 200, 190, 0.12);
  background: linear-gradient(
    135deg,
    rgba(12, 135, 120, 0.12),
    rgba(10, 90, 80, 0.06)
  );
  color: #bff3ea;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  box-shadow: none;
  cursor: pointer;
}

body.live-screen.is-focus-fullscreen .focus-fullscreen-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(12, 135, 120, 0.18),
    rgba(10, 90, 80, 0.1)
  );
}

/* fullscreen button contains a text label and an icon; show icon only when in fullscreen */
.focus-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.focus-fullscreen-btn .icon {
  display: none;
  line-height: 0;
}
.focus-fullscreen-btn .label {
  display: inline-block;
}

/* when document/body indicates fullscreen, show icon instead of text */
body.is-fullyscreen .focus-fullscreen-btn .label {
  display: none !important;
}
body.is-fullyscreen .focus-fullscreen-btn .icon {
  display: inline-block !important;
}

/* keep icon visually small and centered */
.focus-fullscreen-btn .icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.focus-fullscreen-btn .icon i {
  font-size: 18px;
  width: 18px;
  height: 18px;
  display: inline-block;
  line-height: 1;
}

body.live-screen.is-focus-fullscreen .focus-exit-btn:hover {
  transform: none;
  box-shadow: none;
  background: linear-gradient(135deg, #a72025, #7f1418);
}

body.live-screen.is-focus-fullscreen .focus-split {
  flex: 1;
  align-items: stretch;
  margin-top: 10px;
  gap: 12px;
}

body.live-screen.is-focus-fullscreen .focus-image-side,
body.live-screen.is-focus-fullscreen .focus-details-side {
  flex: 1;
}

body.live-screen.is-focus-fullscreen .focus-image-side {
  flex: 1.5;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(70, 150, 164, 0.15);
  background: #09121a;
}

/* image wrapper: position relative so overlay can be anchored to image bounds */
.focus-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  max-height: calc(100vh - 112px);
  overflow: hidden;
}

body.live-screen.is-focus-fullscreen .focus-player-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  /* object-fit: cover; */
  object-position: center 20%;
}

body.live-screen.is-focus-fullscreen .focus-image-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 70%,
      rgba(10, 160, 146, 0.2),
      transparent 40%
    ),
    linear-gradient(
      180deg,
      rgba(4, 10, 14, 0.15) 0%,
      rgba(4, 10, 14, 0.72) 100%
    );
  pointer-events: none;
}

body.live-screen.is-focus-fullscreen .focus-image-overlay {
  position: absolute;
  left: 18px;
  bottom: 5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  max-width: calc(100% - 36px);
}

body.live-screen.is-focus-fullscreen .focus-player-tag {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(30, 180, 165, 0.34);
  color: #6ff3e0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(8, 41, 44, 0.75);
}

body.live-screen.is-focus-fullscreen .focus-hero-name {
  margin: 0;
  max-width: 18ch;
  color: #f0f6f7;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 6.2vw, 4.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  word-break: break-word;
  pointer-events: none;
}

body.live-screen.is-focus-fullscreen .focus-details-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 360px;
}

body.live-screen.is-focus-fullscreen .focus-detail-item {
  border-radius: 0;
  padding: 12px 14px;
  border: 1px solid rgba(72, 146, 160, 0.2);
  background: rgba(14, 21, 28, 0.92);
}

body.live-screen.is-focus-fullscreen .focus-panel-player .focus-value {
  font-size: 2rem;
}

body.live-screen.is-focus-fullscreen .focus-role-row {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(72, 146, 160, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.live-screen.is-focus-fullscreen .focus-role-value {
  color: #f0d287;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.live-screen.is-focus-fullscreen .focus-panel-bid {
  background: linear-gradient(
    135deg,
    rgba(8, 78, 72, 0.94),
    rgba(6, 56, 63, 0.94)
  );
  border-color: rgba(51, 191, 184, 0.35);
  position: relative;
  overflow: hidden;
}

body.live-screen.is-focus-fullscreen .focus-panel-bid::after {
  content: attr(data-bid-shadow);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(5.8rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: rgba(175, 236, 225, 0.1);
  pointer-events: none;
  z-index: 0;
}

body.live-screen.is-focus-fullscreen .focus-auction-hammer {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  color: rgba(188, 244, 229, 0.76);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

body.live-screen.is-focus-fullscreen .focus-auction-hammer svg {
  width: 100%;
  height: 100%;
}

body.live-screen.is-focus-fullscreen .focus-label {
  color: #6f96a0;
  font-size: 0.65rem;
  position: relative;
  z-index: 2;
}

body.live-screen.is-focus-fullscreen .focus-value {
  color: #d7ecf0;
}

body.live-screen.is-focus-fullscreen .focus-bid-value {
  color: #f4f8f8;
  font-size: clamp(2.8rem, 5.8vw, 4.6rem);
  position: relative;
  z-index: 2;
}

body.live-screen.is-focus-fullscreen .focus-next-bid {
  color: #9de6f2;
  font-size: 2rem;
}

body.live-screen.is-focus-fullscreen .focus-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.live-screen.is-focus-fullscreen .focus-placebid-card {
  border-color: rgba(238, 191, 94, 0.4);
  background: rgba(47, 42, 28, 0.88);
}

body.live-screen.is-focus-fullscreen .focus-placebid-cta {
  color: #f5cb7f;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

body.live-screen.is-focus-fullscreen .focus-feed-card {
  margin-top: 4px;
  border: 1px solid rgba(72, 146, 160, 0.2);
  background: rgba(8, 15, 21, 0.94);
  border-radius: 0;
  overflow: hidden;
}

body.live-screen.is-focus-fullscreen .focus-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(72, 146, 160, 0.2);
}

body.live-screen.is-focus-fullscreen .focus-feed-live-dot {
  color: #74f4de;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

body.live-screen.is-focus-fullscreen .focus-feed-list {
  max-height: 32vh;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(82, 165, 182, 0.3) transparent;
}

body.live-screen.is-focus-fullscreen .focus-feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(72, 146, 160, 0.14);
}

body.live-screen.is-focus-fullscreen .focus-feed-row:last-child {
  border-bottom: 0;
}

body.live-screen.is-focus-fullscreen .focus-feed-row span {
  color: #9ec5cd;
  font-size: 0.86rem;
}

body.live-screen.is-focus-fullscreen .focus-feed-row strong {
  color: #e3f4f7;
  font-size: 0.86rem;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .live-right-col {
    flex: 0 0 218px;
    width: 218px;
  }
}

@media (max-width: 860px) {
  .live-sidebar {
    flex: 0 0 56px;
    width: 56px;
    padding: 16px 0;
  }

  .live-sidebar-logo-text,
  .live-sidebar-phase,
  .live-sidebar-foot p,
  .live-nav-item > *:not(svg) {
    display: none;
  }

  .live-sidebar-logo {
    justify-content: center;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(30, 160, 130, 0.1);
  }

  .live-nav-item {
    justify-content: center;
    padding: 11px;
  }

  .live-nav-item svg {
    width: 18px;
    height: 18px;
  }

  .live-sidebar-foot {
    padding: 12px 8px 0;
    display: flex;
    justify-content: center;
  }

  .live-nav-focus-item {
    margin-top: 6px;
  }

  .live-nav-focus-item .view-toggle-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    font-size: 0;
    letter-spacing: 0;
    border-radius: 10px;
    border-color: rgba(56, 186, 160, 0.45);
  }

  .live-nav-focus-item .view-toggle-btn::before {
    content: "F";
    font-size: 0.78rem;
    font-weight: 800;
    color: #b2efe1;
  }

  .live-sidebar-foot .live-connection-badge {
    padding: 6px;
  }

  .live-sidebar-foot .live-connection-badge span:last-child {
    display: none;
  }
}

@media (max-width: 680px) {
  body.live-screen {
    overflow-y: auto;
  }

  .live-app-shell {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }

  .live-sidebar {
    flex: none;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(30, 160, 130, 0.14);
  }

  .live-sidebar-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
  }

  .live-sidebar-logo {
    border-bottom: 0;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
  }

  .live-sidebar-logo-text {
    display: flex;
  }

  .live-sidebar-nav {
    display: flex;
    padding: 0;
    gap: 10px;
    justify-content: center;
    align-items: center;
  }
  body.live-screen.is-focus-fullscreen .focus-image-overlay {
    bottom: 0 !important;
  }

  .live-nav-focus-item {
    margin: 0;
  }

  .live-nav-focus-item .view-toggle-btn {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 7px 10px;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    border-radius: 9px;
  }

  .live-nav-focus-item .view-toggle-btn::before {
    content: none;
  }

  .live-nav-item {
    padding: 7px 10px;
    font-size: 0;
  }

  .live-nav-item svg {
    width: 17px;
    height: 17px;
  }

  .live-nav-item.is-active svg {
    color: #28e8c2;
  }

  .live-sidebar-foot {
    border-top: 0;
    margin: 0;
    padding: 0;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  body.live-screen .live-connection-badge.is-live {
    border: navajowhite;
    background: transparent;
  }

  .live-sidebar-foot p {
    display: none;
  }

  .live-main-col {
    order: 1;
    flex: none;
    overflow: visible;
    padding: 14px;
  }

  .live-right-col {
    order: 2;
    flex: none;
    width: 100%;
    padding: 0 14px 16px;
  }

  .live-leaderboard-card {
    min-height: auto;
  }

  .live-hero-inner {
    flex-direction: column;
    min-height: 500px;
    /* min-height: auto; */
    align-items: center;
  }

  .live-hero-image-wrap {
    flex: none;
    width: 162px;
    height: 192px;
    margin-top: 18px;
    border-right: 0;
    border-bottom: 0;
    border: 2px solid rgba(137, 195, 190, 0.25);
    border-radius: 2px;
    background: rgba(4, 14, 18, 0.8);
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.48);
  }

  .live-hero-player-img {
    min-height: 192px;
    height: 192px;
    object-position: center top;
  }

  .live-hero-bid-panel {
    width: 100%;
    padding: 14px 14px 16px;
    position: relative;
    align-items: stretch;
  }

  .live-hero-bid-top {
    position: absolute;
    top: 10px;
    right: 14px;
    margin: 0;
  }

  .live-hero-bid-panel::after,
  body.live-screen.is-focus-fullscreen .focus-panel-bid::after {
    display: none;
  }

  .live-bid-label,
  .live-big-bid-num,
  .live-hero-player-name,
  .live-hero-meta-row {
    display: none;
  }

  .live-hero-focus-wrap {
    position: static;
    margin: 10px auto;
    display: flex;
    justify-content: center;
  }

  .live-bidding-hot {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #7ee8ff;
    font-size: 0.74rem;
    letter-spacing: 0.11em;
  }

  .live-mobile-monitor {
    display: block;
    margin-top: 14px;
    text-align: center;
  }

  .live-mobile-kicker {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #a8d6c8;
    font-weight: 800;
  }

  .live-mobile-player-name {
    margin: 8px 0 12px;
    font-size: 2.85rem;
    line-height: 1;
    font-weight: 900;
    color: #f2ebe0;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  .live-mobile-chip-row {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 16px;
  }

  .live-mobile-chip {
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(72, 92, 94, 0.45);
    color: #e7d8ab;
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .live-mobile-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 18px;
    align-items: end;
    text-align: left;
  }

  .live-mobile-stat-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .live-mobile-stat-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a0cfc8;
  }

  .live-mobile-current-bid {
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    color: #bde8d9;
  }

  .live-mobile-leading-wrap {
    align-items: flex-start;
  }

  .live-mobile-leading-team {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .live-mobile-team-initial {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #f0d693;
    color: #2c2a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
  }

  .live-mobile-leading-name {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: #f5efe4;
    max-width: 18ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .live-mobile-bottom-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 12px;
    border-left: 4px solid #84dfff;
    background: rgba(6, 14, 19, 0.78);
    border-radius: 2px;
    text-align: left;
  }

  .live-mobile-bottom-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .live-mobile-next-bid {
    font-size: 1.9rem;
    line-height: 1;
    font-weight: 900;
    color: #d6ece5;
  }

  .live-mobile-status {
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    color: #7ee8ff;
  }

  .live-big-bid-num {
    font-size: clamp(2.5rem, 11vw, 3.8rem);
  }

  .live-hero-meta-row {
    max-width: 100%;
  }

  body.live-screen.is-focus-fullscreen .focus-split {
    flex-direction: column;
  }

  body.live-screen.is-focus-fullscreen .focus-command-tabs {
    display: none;
  }

  body.live-screen.is-focus-fullscreen .focus-exit-btn {
    min-width: 108px;
    padding: 7px 11px;
    font-size: 0.66rem;
  }

  body.live-screen.is-focus-fullscreen .focus-details-side {
    min-width: 0;
  }

  body.live-screen.is-focus-fullscreen .focus-dual-row {
    grid-template-columns: 1fr;
  }

  body.live-screen.is-focus-fullscreen .focus-feed-list {
    max-height: 190px;
  }

  body.live-screen.is-focus-fullscreen .focus-player-image {
    min-height: 260px;
    max-height: 38vh;
  }
}

@media (max-width: 420px) {
  .live-main-col {
    padding: 10px;
  }

  .live-right-col {
    padding: 0 10px 14px;
  }

  .live-hero-card {
    border-radius: 10px;
  }

  .live-hero-image-wrap {
    width: 150px;
    height: 178px;
    margin-top: 14px;
  }

  .live-hero-player-img {
    min-height: 178px;
    height: 178px;
  }

  .live-hero-bid-panel {
    padding: 12px 10px 14px;
  }

  .live-bidding-hot {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .live-mobile-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .live-mobile-player-name {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 12vw, 2.45rem);
  }

  .live-mobile-chip-row {
    gap: 8px;
    margin-bottom: 12px;
  }

  .live-mobile-chip {
    padding: 5px 9px;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
  }

  .live-mobile-stat-row {
    gap: 6px;
    margin-bottom: 12px;
  }

  .live-mobile-stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.09em;
  }

  .live-mobile-current-bid {
    font-size: clamp(2rem, 13vw, 2.6rem);
  }

  .live-mobile-leading-team {
    gap: 7px;
  }

  .live-mobile-team-initial {
    width: 28px;
    height: 28px;
    font-size: 0.86rem;
  }

  .live-mobile-leading-name {
    font-size: clamp(1.2rem, 7.2vw, 1.55rem);
    max-width: 10ch;
  }

  .live-mobile-bottom-strip {
    padding: 12px 10px;
    gap: 6px;
  }

  .live-mobile-next-bid {
    font-size: clamp(1.25rem, 7.4vw, 1.65rem);
  }

  .live-mobile-status {
    font-size: clamp(1rem, 6vw, 1.28rem);
  }
}

/* ═══════════════════════════════════════════════════════════
   Cric Auc — Auth Screen
   ═══════════════════════════════════════════════════════════ */

.bc-panel-main-logo img {
  /* object-fit: initial; */
  /* max-width: 100px; */
  width: 100%;
}
.bc-panel-main-logo {
  width: 250px;
  height: 250px;
}
.bc-panel-main-logo-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
body.bc-auth-body {
  margin: 0;
  min-height: 100vh;
  background: #08100d;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: #d4ece6;
  overflow: hidden;
}

/* Shell */
.bc-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* ── Left Hero Panel ── */
.bc-hero {
  flex: 1 1 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(32px, 5vw, 64px);
  background:
    linear-gradient(
      160deg,
      rgba(6, 22, 16, 0.72) 0%,
      rgba(4, 14, 10, 0.88) 100%
    ),
    radial-gradient(
      ellipse at 30% 60%,
      rgba(18, 120, 90, 0.28) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(10, 60, 46, 0.22) 0%,
      transparent 40%
    ),
    linear-gradient(180deg, #071410 0%, #040c09 100%);
  overflow: hidden;
}

/* Cricket pitch grid overlay */
.bc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 180, 130, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 180, 130, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Subtle arc element mimicking a cricket pitch crease */
.bc-hero::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1.5px solid rgba(30, 180, 130, 0.1);
  pointer-events: none;
}

.bc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.bc-hero-title {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: #9e8952;
  text-transform: uppercase;
}

.bc-hero-desc {
  margin: 0 0 32px;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.7;
  color: rgba(180, 220, 210, 0.75);
  font-style: normal;
}

.bc-accent {
  font-style: normal;
  color: #22d4ae;
}

/* Status badges */
.bc-status-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.bc-status-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 0;
}

.bc-status-badge:first-child {
  padding-left: 0;
}

.bc-status-divider {
  width: 1px;
  height: 36px;
  background: rgba(30, 160, 120, 0.3);
  margin: 0 20px;
}

.bc-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bc-dot-green {
  background: #22d4ae;
  box-shadow: 0 0 8px rgba(34, 212, 174, 0.6);
}

.bc-dot-gold {
  background: #f0c040;
  box-shadow: 0 0 8px rgba(240, 192, 64, 0.55);
}

.bc-status-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(100, 170, 150, 0.7);
  margin-bottom: 2px;
}

.bc-status-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #c8e8e0;
}

/* ── Right Login Panel ── */
.bc-panel {
  flex: 0 0 clamp(340px, 38vw, 480px);
  width: clamp(340px, 38vw, 480px);
  display: flex;
  align-items: stretch;
  background: #0b1612;
  border-left: 1px solid rgba(30, 160, 120, 0.14);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 160, 120, 0.2) transparent;
}

.bc-panel-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 40px);
}

/* Logo */
.bc-panel-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.bc-panel-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #14503e 0%, #0d3429 100%);
  border: 1px solid rgba(34, 212, 174, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bc-panel-logo img {
  width: 100px;
  height: 100px;
  /* width: 38px;
  height: 38px; */
  object-fit: contain;
  width: 100%;
}

.bc-panel-title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(160, 210, 196, 0.7);
}

/* Tabs */
.bc-tab-row {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(30, 160, 120, 0.18);
}

.bc-tab {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  padding: 10px 6px;
  margin: 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: rgba(130, 185, 170, 0.6);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
  transition:
    color 0.16s ease,
    border-color 0.16s ease;
  transform: none !important;
}

.bc-tab:hover {
  color: #9eddd0;
  border-color: rgba(34, 212, 174, 0.35);
  transform: none !important;
  box-shadow: none;
}

.bc-tab.is-active {
  color: #e6f5f0;
  border-bottom-color: #22d4ae;
}

/* Form blocks */
.bc-form-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bc-form-block.hidden {
  display: none !important;
}

.bc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bc-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bc-field-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(120, 180, 165, 0.75);
}

.bc-forgot {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #22d4ae;
  text-decoration: none;
  transition: opacity 0.14s;
}

.bc-forgot:hover {
  opacity: 0.75;
}

/* Input wrapper */
.bc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bc-input-icon {
  position: absolute;
  left: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(100, 175, 158, 0.65);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

.bc-icon-text {
  font-size: 0.9rem;
  font-weight: 700;
}

.bc-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(30, 140, 110, 0.28);
  background: rgba(8, 24, 20, 0.9);
  color: #cce8e0;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.bc-input::placeholder {
  color: rgba(90, 150, 135, 0.5);
}

.bc-input:focus {
  border-color: rgba(34, 212, 174, 0.52);
  box-shadow: 0 0 0 3px rgba(34, 212, 174, 0.1);
}

.bc-input-icon-pad {
  padding-left: 36px;
}

.bc-input-pw-pad {
  padding-right: 42px;
}

/* Password toggle */
.bc-pw-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%) !important;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  margin: 0;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(100, 175, 158, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition:
    color 0.14s,
    background 0.14s;
}

.bc-pw-toggle:hover {
  color: #22d4ae;
  background: rgba(34, 212, 174, 0.08);
  box-shadow: none;
  transform: translateY(-50%) !important;
}

/* Primary button */
.bc-btn-primary {
  width: 100%;
  margin: 6px 0 0;
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid rgba(34, 212, 174, 0.35);
  background: linear-gradient(135deg, #14614e 0%, #0d4337 100%);
  color: #d4f7ef;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.bc-btn-primary:hover {
  background: linear-gradient(135deg, #197060 0%, #104d42 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px) !important;
}

.bc-btn-primary:disabled {
  opacity: 0.5;
  transform: none !important;
  cursor: not-allowed;
}

.bc-otp-send-row {
  gap: 8px;
}

.bc-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(95, 175, 157, 0.28);
  background: rgba(10, 31, 26, 0.92);
  color: #9fe4d6;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: none;
}

.bc-secondary-btn.is-loading::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(159, 228, 214, 0.25);
  border-top-color: #9fe4d6;
  animation: bcSpin 0.7s linear infinite;
}

.bc-secondary-btn:hover {
  background: rgba(14, 42, 35, 0.95);
  box-shadow: none;
  transform: none !important;
}

.bc-secondary-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

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

.bc-field-help {
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(132, 193, 179, 0.72);
}

/* Auth message */
.bc-auth-message {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #22d4ae;
  text-align: center;
}

/* Footer */
.bc-panel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: auto;
  padding-top: 24px;
}

.bc-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(110, 175, 158, 0.6);
  text-decoration: none;
  transition: color 0.14s;
}

.bc-footer-link:hover {
  color: #22d4ae;
}

/* ── Responsive ── */
/* Mobile-only title: hidden on desktop */
.bc-mobile-title {
  display: none;
}

/* Copyright bar: hidden on desktop */
.bc-copyright-bar {
  display: none;
}

/* Join Auction tab — dashed highlight to distinguish it */
#showJoinBtn {
  border: 1.5px dashed rgba(80, 180, 220, 0.55);
  border-radius: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 768px) {
  body.admin-screen {
  
    margin-top: 115px;
}
  header.page-header.page-header-admin {
    box-shadow: 0 0 10px #4be0cfab;
    margin-bottom: 10px;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: radial-gradient(
      circle at 14% 8%,
      rgba(28, 155, 139, 0.18),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 16%,
      rgba(245, 176, 46, 0.12),
      transparent 28%
    ),
    linear-gradient(160deg, #061016 0%, #040a0f 52%, #03070b 100%);
}
  body.admin-screen .page-header {
    padding-top: 10px;
    padding-bottom: 10px;
}
  header.page-header.page-header-admin {
    box-shadow: 0 0 10px #4be0cfab;
    margin-bottom: 10px;
}
  .header-copy span.eyebrow {
    font-size: .6rem;
}
  body.admin-screen .page-header h1 {
    font-size: clamp(1.5rem, 3vw, 2.8rem);
}
 .header-copy p#coordinatorMeta {
    display: none;
}
  .header-copy {
    align-items: center;
  }
  header.page-header.page-header-admin .logo {
    width: 75px;
    height: 75px;
    margin: auto 5px;
  }
  body.live-screen.is-focus-fullscreen .focus-fullscreen-btn {
    padding: 4px 8px;
  }
  .live-hero-focus-wrap {
    display: none;
  }
  body.bc-auth-body {
    overflow-y: auto;
  }

  .bc-shell {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  /* Hide hero entirely on mobile */
  .bc-hero {
    display: none;
  }

  .bc-panel {
    flex: 1;
    width: 100%;
    min-height: 100vh;
    border-left: none;
    border-top: none;
  }

  .bc-panel-inner {
    min-height: 100vh;
  }

  /* Show mobile title */
  .bc-mobile-title {
    display: block;
    text-align: center;
    margin: 0 0 4px;
  }

  .bc-mobile-brand {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: #9e8952;
    letter-spacing: 0.01em;
  }

  /* Copyright bar at very bottom */
  .bc-copyright-bar {
    display: block;
    margin-top: 24px;
    padding: 14px 0;
    text-align: center;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(80, 140, 126, 0.55);
    border-top: 1px solid rgba(30, 160, 120, 0.12);
  }

  .bc-secondary-btn {
    font-size: 0.72rem;
  }

  .bc-field-help {
    font-size: 0.68rem;
  }
}

/* --- New Sidebar Design --- */
button#sidebarShareLinkBtn {
    max-width: 54px;
    margin: 6px auto;
}
body.admin-screen .mobile-nav-menu {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  height: 100vh !important; /* Fallback */
  height: 100dvh !important; /* Fix for mobile browser address bars */
  width: 320px !important;
  overflow-y: auto !important; /* Allow scrolling if content is too tall */
  max-width: 100vw;
  background-color: rgba(8, 21, 28, 0.97) !important;
  color: #d5efeb;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.5) !important;
  border-radius: 0 !important;
  border: none !important;
  border-left: 1px solid rgba(70, 129, 122, 0.45) !important;
  padding: 0 !important;
}

body.admin-screen .mobile-nav-menu.hidden {
  transform: translateX(100%) !important;
  transition: transform 0.3s ease;
}

body.admin-screen .mobile-nav-menu:not(.hidden) {
  transform: translateX(0) !important;
  transition: transform 0.3s ease;
}

/* Override existing media query dropdown styles */
@media (max-width: 640px) {
  body.admin-screen .mobile-nav-menu {
    top: 0 !important;
    right: 0 !important;
    width: 320px !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
  }
}

/* Sidebar Header */
body.admin-screen .sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px;
}

body.admin-screen .sidebar-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #d5efeb;
  margin: 0;
  font-family: inherit;
}

body.admin-screen .mobile-nav-close-btn {
  background: transparent !important;
  border: none !important;
  color: #7baea8 !important;
  font-size: 1.2rem !important;
  cursor: pointer;
  padding: 4px !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
}
body.admin-screen .mobile-nav-close-btn:hover {
  color: #bfe9e3 !important;
  background: transparent !important;
}

/* Sidebar Links */
body.admin-screen .sidebar-links {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
}

body.admin-screen .mobile-nav-menu-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px !important;
  background: transparent !important;
  border: none !important;
  color: #7baea8 !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-align: left;
  border-radius: 4px !important;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  margin: 0 !important;
}

body.admin-screen .mobile-nav-menu-btn i {
  font-size: 1.1rem;
}

body.admin-screen .mobile-nav-menu-btn:hover {
  background: rgba(75, 206, 186, 0.16) !important;
  color: #d5efeb !important;
}

body.admin-screen .mobile-nav-menu-btn.is-active {
  background: rgba(75, 206, 186, 0.22) !important;
  color: #bfe9e3 !important;
  border-left: 3px solid #75e6d0 !important;
  border-radius: 0 4px 4px 0 !important;
}

body.admin-screen .mobile-nav-divider {
  height: 1px;
  background: rgba(70, 129, 122, 0.32) !important;
  margin: 12px 20px !important;
}

/* Access Card */
body.admin-screen .sidebar-access-card {
  margin: auto 20px 20px;
  background: rgba(5, 16, 22, 0.66);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid rgba(70, 129, 122, 0.34);
}

body.admin-screen .access-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #7baea8;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

body.admin-screen .access-field {
  margin-bottom: 12px;
}

body.admin-screen .access-field:last-child {
  margin-bottom: 0;
}

body.admin-screen .access-field label {
  display: block;
  font-size: 0.65rem;
  color: #7baea8;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

body.admin-screen .access-input-wrap,
body.admin-screen .access-code-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 21, 28, 0.97);
  border-radius: 4px;
  padding: 8px 12px;
  border: 1px solid rgba(70, 129, 122, 0.45);
}

body.admin-screen .access-url {
  font-size: 0.8rem;
  color: #8de8db;
  font-family: monospace;
  word-break: break-all;
}

body.admin-screen .access-code-wrap strong {
  font-size: 1rem;
  color: #d5efeb;
  font-family: monospace;
  font-weight: 700;
}

/* Sidebar Profile */
body.admin-screen .sidebar-profile {
  display: flex;
  gap:0 10px;
  align-items: center;
  padding: 16px 20px;
  background: rgba(5, 16, 22, 0.8);
  border-top: 1px solid rgba(70, 129, 122, 0.32);
}

body.admin-screen .profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  background: rgba(75, 206, 186, 0.16);
  border: 1px solid rgba(70, 129, 122, 0.45);
  margin-right: 12px;
}

body.admin-screen .profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.admin-screen .profile-info strong {
  font-size: 0.85rem;
  color: #d5efeb;
  margin-bottom: 2px;
}

body.admin-screen .profile-info span {
  font-size: 0.7rem;
  color: #7baea8;
}

body.admin-screen .profile-logout-btn {
  background: transparent;
  border: 1px solid rgba(70, 129, 122, 0.32);
  color: #ff9c9c;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.admin-screen .profile-logout-btn:hover {
  background: rgba(255, 156, 156, 0.1);
  color: #ffb8b8;
}

body.no-scroll {
  overflow: hidden !important;
}
