/*
 * Court Report — main stylesheet
 * White background / black header / gold accents
 */

@keyframes cr-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes cr-ball-bounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-5px) rotate(-8deg); }
  50% { transform: translateY(0) rotate(0); }
  75% { transform: translateY(-3px) rotate(8deg); }
}

.cr-bounce {
  display: inline-block;
  animation: cr-bounce 1.8s ease-in-out infinite;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cr-black: #0a1628;
  --cr-black-soft: #111f36;
  --cr-header-bg: #030a1a;          /* darker near-black deep blue for the header */
  --cr-dark-panel: #0a1a33;         /* dark calendar background */
  --cr-dark-panel-soft: #142545;    /* lighter inset for day cells */
  --cr-dark-border: rgba(201, 162, 74, 0.18);  /* gold-tinted border on dark */
  --cr-gold: #c9a24a;
  --cr-gold-soft: #e4c36a;
  --cr-gold-bright: #f0d97a;
  --cr-white: #ffffff;
  --cr-bg: #f7f8fa;
  --cr-border: #e6e8ec;
  --cr-text: #0a1628;
  --cr-text-muted: #6b7280;
  --cr-text-light: #9ca3af;
  --cr-green: #16a34a;
  --cr-red: #dc2626;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  background: var(--cr-bg);
  color: var(--cr-text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ========================================================
   League sub-nav (tabs with dropdowns below main header)
   ======================================================== */

.cr-league-nav {
  background: var(--cr-black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 76px;
  z-index: 90;
}

.cr-league-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.cr-league-tab {
  position: relative;
}

.cr-league-tab-button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 4px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cr-league-tab-button:hover { color: var(--cr-gold); }

.cr-league-tab-caret {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Open on hover (desktop) OR when Stimulus toggles the class (mobile) */
.cr-league-tab:hover .cr-league-dropdown,
.cr-league-tab.cr-league-tab-open .cr-league-dropdown {
  display: block;
}

.cr-league-tab:hover .cr-league-tab-button,
.cr-league-tab.cr-league-tab-open .cr-league-tab-button {
  color: var(--cr-gold);
  border-bottom-color: var(--cr-gold);
}

.cr-league-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--cr-black-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 200;
  margin-top: -1px;
}

.cr-league-dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--cr-white);
  text-decoration: none;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

.cr-league-dropdown-item:hover {
  background: rgba(201, 162, 74, 0.12);
  border-left-color: var(--cr-gold);
}

.cr-league-dropdown-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cr-white);
  text-transform: none;
  letter-spacing: 0;
}

.cr-league-dropdown-meta {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 720px) {
  .cr-league-nav { top: 64px; }
  .cr-league-nav-inner { gap: 16px; padding: 0 16px; }
  .cr-league-tab-button { font-size: 0.75rem; padding: 12px 4px; }
  .cr-league-dropdown { min-width: calc(100vw - 32px); left: 0; }
}

/* ========================================================
   Header (Court Report)
   ======================================================== */

.cr-header {
  background: var(--cr-header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.cr-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.cr-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cr-white);
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}

.cr-brand-ball {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--cr-gold), var(--cr-gold-bright));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 3px 14px rgba(201, 168, 76, 0.4);
  overflow: hidden;
  flex-shrink: 0;
}

.cr-brand-ball-inner {
  display: inline-block;
  line-height: 1;
  animation: cr-ball-bounce 1.6s ease-in-out infinite;
}

.cr-brand-text {
  font-family: "Bebas Neue", "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 2.2rem;
  letter-spacing: 5px;
  line-height: 1;
  color: var(--cr-white);
  white-space: nowrap;
}

.cr-brand-gold { color: var(--cr-gold); }

.cr-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.cr-header-pill {
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}

.cr-header-pill:hover {
  border-color: var(--cr-gold);
  color: var(--cr-gold);
}

.cr-header-user {
  padding: 7px 16px;
  border: 1px solid var(--cr-gold);
  border-radius: 999px;
  color: var(--cr-gold);
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
}

.cr-header-signout form,
.cr-header-signout {
  padding: 0;
  margin: 0;
}

button.cr-header-pill {
  font-family: inherit;
  white-space: nowrap;
}

.cr-header-signup {
  background: var(--cr-gold) !important;
  color: var(--cr-black) !important;
  border-color: var(--cr-gold) !important;
  font-weight: 700;
}
.cr-header-signup:hover {
  opacity: 0.9;
}

/* ========================================================
   Main wrapper
   ======================================================== */

.cr-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ========================================================
   Flash messages
   ======================================================== */

.cr-flash {
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.cr-flash-notice {
  background: #e6f4ea;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.cr-flash-alert {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ========================================================
   Page header
   ======================================================== */

.cr-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.cr-page-header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cr-page-title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ========================================================
   Buttons
   ======================================================== */

.cr-btn {
  display: inline-block;
  padding: 10px 18px;
  background: var(--cr-gold);
  color: var(--cr-black);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  font-family: inherit;
}

.cr-btn:hover {
  background: var(--cr-gold-bright);
}

.cr-btn-secondary {
  background: transparent;
  color: var(--cr-text);
  border: 1px solid var(--cr-border);
}

.cr-btn-secondary:hover {
  background: var(--cr-white);
  border-color: var(--cr-gold);
}

.cr-btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

/* ========================================================
   My Teams page
   ======================================================== */

.cr-leagues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cr-league-section {
  margin-bottom: 0;
}

.cr-league-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cr-gold);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cr-border);
}

.cr-team-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 900px) {
  .cr-leagues-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.cr-team-card {
  display: block;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--cr-text);
  transition: all 0.15s;
}

.cr-team-card:hover {
  border-color: var(--cr-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.cr-team-card-league {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--cr-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cr-team-card-name {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.3px;
  color: var(--cr-text);
  margin-bottom: 8px;
  text-transform: uppercase;
  line-height: 1.15;
}

.cr-team-card-meta {
  font-size: 0.78rem;
  color: var(--cr-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cr-team-card-record {
  color: var(--cr-gold);
  font-weight: 900;
  font-size: 0.9rem;
}

.cr-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--cr-text-light);
}

/* ========================================================
   Team Show page
   ======================================================== */

.cr-team-page {
  max-width: 1000px;
  margin: 0 auto;
}

.cr-back-link {
  color: var(--cr-text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: inline-block;
}

.cr-back-link:hover { color: var(--cr-gold); }

.cr-team-hero {
  background: linear-gradient(135deg, var(--cr-black) 0%, var(--cr-black-soft) 100%);
  color: var(--cr-white);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.cr-team-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px),
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
  pointer-events: none;
}

.cr-team-hero-content {
  position: relative;
  z-index: 1;
}

.cr-team-hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cr-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cr-team-hero-name {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--cr-white);
}

.cr-team-hero-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.cr-team-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cr-hero-stat {
  display: flex;
  flex-direction: column;
}

.cr-hero-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--cr-gold);
  letter-spacing: 1px;
}

.cr-hero-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Sub-tabs (Schedule | Roster | Standings) ── */

.cr-subtabs {
  display: flex;
  border-bottom: 1px solid var(--cr-border);
  margin-bottom: 28px;
  gap: 0;
}

.cr-subtab {
  padding: 14px 24px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cr-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.cr-subtab:hover { color: var(--cr-text); }

.cr-subtab-active {
  color: var(--cr-text);
  border-bottom-color: var(--cr-gold);
}

/* ── Two-column schedule layout ── */

.cr-schedule-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 800px) {
  .cr-schedule-layout { grid-template-columns: 1fr; }
}

.cr-results-placeholder {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 12px;
  overflow: hidden;
}

/* ── HOME / AWAY badge ── */

.cr-match-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.cr-match-home {
  background: #dbeafe;
  color: #1d4ed8;
}

.cr-match-away {
  background: var(--cr-bg);
  color: var(--cr-text-muted);
}

/* ── Stat cards ── */

.cr-stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.cr-stat-card {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-top: 3px solid var(--cr-gold);
  border-radius: 10px;
  padding: 18px 20px;
  text-align: center;
}

.cr-stat-card-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--cr-text);
  line-height: 1;
}

.cr-stat-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cr-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── Team sections ── */

.cr-section {
  margin-bottom: 36px;
}

.cr-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cr-text);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cr-border);
}

/* ── Schedule list ── */

.cr-match-list {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 12px;
  overflow: hidden;
}

.cr-match-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--cr-border);
  gap: 20px;
}

.cr-match-row:last-child { border-bottom: none; }

.cr-match-date {
  background: var(--cr-gold);
  color: var(--cr-black);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 64px;
  flex-shrink: 0;
}

.cr-match-date-month {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cr-match-date-day {
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
  margin-top: 2px;
}

.cr-match-info {
  flex: 1;
}

.cr-match-opponent {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cr-text);
}

.cr-match-location {
  font-size: 0.82rem;
  color: var(--cr-text-muted);
  margin-top: 2px;
}

.cr-match-time {
  font-size: 0.82rem;
  color: var(--cr-text-muted);
  font-weight: 600;
}

.cr-match-past .cr-match-date {
  background: var(--cr-bg);
  color: var(--cr-text-muted);
}

/* ── Match card (with availability) ──

   Forced vertical layout:
     [match row]
     [captain actions] (if captain)
     [lineup preview]  (if posted)

   display: flex + flex-direction: column guarantees these three
   sections stack vertically regardless of any stray inherited
   styles. */

.cr-match-card {
  display: flex;
  flex-direction: column;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.cr-match-card:hover {
  border-color: rgba(201, 162, 74, 0.45);
  box-shadow: 0 6px 18px rgba(10, 22, 40, 0.06);
}

.cr-match-card:last-child { margin-bottom: 0; }

/* Top row — date box on the left, opponent/location in the middle
   taking whatever space is left, badge + calendar on the right. */
.cr-match-card .cr-match-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: none;
  min-width: 0;
  flex-wrap: nowrap;
}

.cr-match-card .cr-match-date {
  background: var(--cr-black);
  color: var(--cr-white);
  min-width: 64px;
  padding: 10px 12px;
  border-radius: 10px;
  flex-shrink: 0;
  text-align: center;
}

.cr-match-card .cr-match-date-month {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cr-gold);
}

.cr-match-card .cr-match-date-day {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  margin-top: 3px;
  color: var(--cr-white);
}

.cr-match-card .cr-match-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cr-match-card .cr-match-opponent {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--cr-text);
  overflow-wrap: break-word;
}

.cr-match-card .cr-match-location {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--cr-text-muted);
  overflow-wrap: break-word;
}

.cr-match-card .cr-match-badge {
  font-size: 0.68rem;
  padding: 3px 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.cr-match-card .cr-cal-btn {
  flex-shrink: 0;
}

.cr-match-counts {
  font-size: 0.78rem;
  color: var(--cr-text-muted);
  white-space: nowrap;
  display: flex;
  gap: 8px;
}

.cr-count-in { color: var(--cr-green); }
.cr-count-out { color: var(--cr-red); }
.cr-count-pending { color: var(--cr-text-light); }

/* ── Availability buttons row ── */

.cr-avail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 16px;
  flex-wrap: wrap;
}

.cr-avail-btn {
  padding: 8px 16px;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  background: var(--cr-white);
  color: var(--cr-text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.cr-avail-btn:hover {
  background: var(--cr-bg);
  color: var(--cr-text);
}

.cr-avail-in.avail-btn-active {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.cr-avail-out.avail-btn-active {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.cr-avail-message {
  flex: 1;
  min-width: 140px;
  padding: 8px 14px;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  font-size: 0.84rem;
  color: var(--cr-text);
  background: var(--cr-white);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

.cr-avail-message::placeholder { color: var(--cr-text-light); }
.cr-avail-message:focus { border-color: var(--cr-gold); }

.cr-avail-captain-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cr-gold);
  text-decoration: none;
  white-space: nowrap;
}

.cr-avail-captain-link:hover { text-decoration: underline; }

/* Locked state: selected button gets a bolder look */
.cr-avail-in.avail-btn-locked {
  border-width: 2px;
  font-weight: 800;
  cursor: default;
}

.cr-avail-out.avail-btn-locked {
  border-width: 2px;
  font-weight: 800;
  cursor: default;
}

/* "Saved!" flash indicator */
.cr-saved {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cr-green);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.cr-saved-visible {
  opacity: 1;
}

/* ── Custom confirmation popup ── */

.cr-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 22, 40, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s;
}

.cr-popup-overlay.cr-popup-visible { opacity: 1; }

.cr-popup {
  background: var(--cr-white);
  border-radius: 16px;
  padding: 32px 36px;
  max-width: 320px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.2s;
}

.cr-popup-visible .cr-popup { transform: scale(1); }

.cr-popup-ball {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.cr-popup-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cr-text);
  margin-bottom: 6px;
}

.cr-popup-sub {
  font-size: 0.85rem;
  color: var(--cr-text-muted);
  margin-bottom: 24px;
}

.cr-popup-buttons {
  display: flex;
  gap: 10px;
}

.cr-popup-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s;
}

.cr-popup-cancel {
  background: var(--cr-bg);
  color: var(--cr-text-muted);
}

.cr-popup-cancel:hover {
  background: var(--cr-border);
  color: var(--cr-text);
}

.cr-popup-confirm {
  background: var(--cr-gold);
  color: var(--cr-black);
}

.cr-popup-confirm:hover {
  background: var(--cr-gold-bright);
}

/* ── Roster ── */

.cr-roster {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 12px;
  overflow: hidden;
}

.cr-roster-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--cr-border);
  gap: 12px;
}

.cr-roster-row:last-child { border-bottom: none; }

.cr-roster-row:hover { background: var(--cr-bg); }

.cr-roster-name {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
}

.cr-roster-self {
  color: var(--cr-gold);
  font-weight: 700;
}

.cr-roster-rating {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cr-gold);
  padding: 3px 10px;
  background: rgba(201, 162, 74, 0.1);
  border-radius: 12px;
}

.cr-roster-role {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cr-text);
  background: var(--cr-bg);
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cr-roster-role-captain {
  color: var(--cr-black);
  background: var(--cr-gold);
}

/* ========================================================
   Login page
   ======================================================== */

.cr-login-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.cr-login-card {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.cr-login-card h1 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cr-login-sub {
  color: var(--cr-text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.cr-field {
  text-align: left;
  margin-bottom: 18px;
}

.cr-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cr-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.cr-field input[type="text"],
.cr-field input[type="email"],
.cr-field input[type="password"],
.cr-field select {
  width: 100%;
  padding: 11px 14px;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  color: var(--cr-text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.cr-field input:focus,
.cr-field select:focus { border-color: var(--cr-gold); }

/* Password field with show/hide eye toggle */
.cr-password-wrap {
  position: relative;
}

.cr-password-wrap input[type="password"],
.cr-password-wrap input[type="text"] {
  padding-right: 44px !important;
}

.cr-password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--cr-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}

.cr-password-toggle:hover {
  background: var(--cr-bg);
}

.cr-login-card input[type="submit"] {
  width: 100%;
  padding: 12px;
  background: var(--cr-gold);
  color: var(--cr-black);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.cr-login-card input[type="submit"]:hover { background: var(--cr-gold-bright); }

/* ========================================================
   Auth pages (sign in / sign up) — clean, focused cards
   ======================================================== */

.cr-auth-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 80px;
}

.cr-auth-card {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.cr-auth-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--cr-gold), var(--cr-gold-bright));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 3px 14px rgba(201, 162, 74, 0.35);
  overflow: hidden;
}

.cr-auth-logo-ball {
  display: inline-block;
  line-height: 1;
  animation: cr-ball-bounce 1.6s ease-in-out infinite;
}

.cr-auth-title {
  font-family: "Bebas Neue", "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 2.4rem;
  letter-spacing: 4px;
  line-height: 1;
  color: var(--cr-text);
  margin-bottom: 6px;
}

.cr-auth-sub {
  color: var(--cr-text-muted);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.cr-auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--cr-gold);
  color: var(--cr-black);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.cr-auth-submit:hover { background: var(--cr-gold-bright); }

.cr-auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--cr-text-muted);
}

.cr-auth-switch a {
  color: var(--cr-gold);
  font-weight: 600;
  text-decoration: none;
}

.cr-auth-switch a:hover { text-decoration: underline; }

/* ========================================================
   Admin pages (users index, etc.)
   ======================================================== */

.cr-admin-page {
  max-width: 1000px;
  margin: 0 auto;
}

.cr-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 12px;
  overflow: hidden;
}

.cr-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cr-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--cr-bg);
  border-bottom: 1px solid var(--cr-border);
}

.cr-table td {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--cr-text);
  border-bottom: 1px solid var(--cr-border);
}

.cr-table tr:last-child td { border-bottom: none; }

.cr-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cr-badge-admin  { background: var(--cr-gold); color: var(--cr-black); }
.cr-badge-player { background: var(--cr-bg); color: var(--cr-text-muted); }

/* ========================================================
   Profile page
   ======================================================== */

.cr-profile-page {
  max-width: 1000px;
  margin: 0 auto;
}

.cr-profile-header {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--cr-border);
}

.cr-profile-identity h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.cr-profile-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cr-profile-chip {
  padding: 4px 12px;
  background: var(--cr-bg);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--cr-text-muted);
}

.cr-rating-card {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-top: 3px solid var(--cr-gold);
  border-radius: 12px;
  padding: 18px 22px;
  min-width: 180px;
}

.cr-rating-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cr-text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.cr-rating-card-value {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--cr-gold);
  line-height: 1;
  margin-top: 4px;
}

.cr-rating-card-date {
  font-size: 0.72rem;
  color: var(--cr-text-light);
  margin-top: 4px;
}

/* ========================================================
   Player profile
   ======================================================== */

.cr-player-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--cr-border);
}

.cr-player-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--cr-gold);
  color: var(--cr-black);
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.cr-player-name {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cr-player-you {
  font-size: 0.85rem;
  color: var(--cr-gold);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.cr-player-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--cr-text-muted);
}

.cr-player-rating-chip {
  background: rgba(201, 162, 74, 0.12);
  color: var(--cr-gold);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* ── Clickable year rows (match history) ── */

.cr-year-row {
  border-bottom: 1px solid var(--cr-border);
}

.cr-year-row:last-child { border-bottom: none; }

.cr-year-header {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  gap: 16px;
  transition: background 0.15s;
}

.cr-year-header:hover { background: var(--cr-bg); }

.cr-year-label {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--cr-gold);
  min-width: 56px;
}

.cr-year-summary {
  flex: 1;
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--cr-text-muted);
}

.cr-year-win { color: var(--cr-green); font-weight: 600; }
.cr-year-loss { color: var(--cr-red); font-weight: 600; }
.cr-year-pct { color: var(--cr-text); font-weight: 700; }

.cr-year-caret {
  font-size: 0.75rem;
  color: var(--cr-text-light);
  transition: transform 0.2s;
}

.cr-year-header-open .cr-year-caret {
  transform: rotate(180deg);
}

.cr-year-detail {
  display: none;
  padding: 0 20px 20px;
}

.cr-year-detail-open { display: block; }

.cr-year-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cr-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 14px;
  margin-bottom: 8px;
}

.cr-year-section-label:first-child { margin-top: 0; }

.cr-year-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.cr-year-stat {
  background: var(--cr-bg);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: center;
}

.cr-year-stat-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--cr-text);
}

.cr-year-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cr-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ========================================================
   Enter Results Form
   ======================================================== */

.cr-results-form { max-width: 720px; }

.cr-result-match-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  margin-bottom: 28px;
}

.cr-form-section { margin-bottom: 28px; }

.cr-form-section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cr-gold);
  margin-bottom: 12px;
}

.cr-form-help {
  font-size: 0.85rem;
  color: var(--cr-text-muted);
  margin-bottom: 16px;
}

/* Win / Loss radio toggle */
.cr-result-toggle {
  display: flex;
  gap: 12px;
}

.cr-result-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 2px solid var(--cr-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.2s;
  background: var(--cr-white);
}

.cr-result-option input[type="radio"] { display: none; }

.cr-result-win:has(input:checked) {
  border-color: var(--cr-green);
  background: #f0fdf4;
  color: var(--cr-green);
}

.cr-result-loss:has(input:checked) {
  border-color: var(--cr-red);
  background: #fef2f2;
  color: var(--cr-red);
}

/* Line cards */
.cr-line-card {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.cr-line-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cr-line-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cr-text);
}

.cr-line-result-toggle {
  display: flex;
  gap: 6px;
}

.cr-line-result-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--cr-border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  background: var(--cr-white);
}

.cr-line-result-opt input[type="radio"] { display: none; }

.cr-line-win-opt:has(input:checked) {
  border-color: var(--cr-green);
  background: #f0fdf4;
  color: var(--cr-green);
}

.cr-line-loss-opt:has(input:checked) {
  border-color: var(--cr-red);
  background: #fef2f2;
  color: var(--cr-red);
}

.cr-line-scores {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.cr-set-input label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.cr-input-small {
  width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--cr-border);
  border-radius: 6px;
  font-size: 0.95rem;
  text-align: center;
  background: var(--cr-bg);
}

.cr-input-small:focus {
  outline: none;
  border-color: var(--cr-gold);
  box-shadow: 0 0 0 2px rgba(201, 162, 74, 0.15);
}

.cr-line-players { margin-top: 8px; }

.cr-line-players-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.cr-select {
  width: 100%;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid var(--cr-border);
  border-radius: 6px;
  font-size: 0.9rem;
  background: var(--cr-white);
  margin-bottom: 6px;
}

.cr-select:focus {
  outline: none;
  border-color: var(--cr-gold);
}

.cr-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--cr-border);
}

.cr-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.cr-btn-gold {
  background: var(--cr-gold);
  color: var(--cr-white);
}

.cr-btn-gold:hover { background: var(--cr-gold-soft); }

.cr-btn-outline {
  background: transparent;
  border: 2px solid var(--cr-border);
  color: var(--cr-text-muted);
}

.cr-btn-outline:hover {
  border-color: var(--cr-text-muted);
  color: var(--cr-text);
}

/* Results display on team page */
.cr-result-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.cr-result-badge-win {
  background: #f0fdf4;
  color: var(--cr-green);
  border: 1px solid #bbf7d0;
}

.cr-result-badge-loss {
  background: #fef2f2;
  color: var(--cr-red);
  border: 1px solid #fecaca;
}

.cr-result-score {
  font-size: 0.85rem;
  color: var(--cr-text-muted);
  font-weight: 600;
}

.cr-match-result-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cr-enter-results-link {
  font-size: 0.8rem;
  color: var(--cr-gold);
  font-weight: 600;
  text-decoration: none;
}

.cr-enter-results-link:hover { text-decoration: underline; }

/* ========================================================
   Expandable result cards (<details> + <summary>)
   ======================================================== */
.cr-result-card {
  margin-bottom: 10px;
}

.cr-result-card[open] .cr-result-caret {
  transform: rotate(180deg);
}

.cr-result-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
}

.cr-result-summary::-webkit-details-marker { display: none; }
.cr-result-summary::marker { content: ""; }

.cr-result-caret {
  color: var(--cr-text-muted);
  font-size: 0.9rem;
  margin-left: 6px;
  transition: transform 0.15s ease;
}

.cr-result-detail {
  background: #fafbfc;
  border: 1px solid var(--cr-border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 12px 16px;
  margin-top: -6px;
}

.cr-result-lines {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.cr-result-lines th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--cr-text-muted);
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid var(--cr-border);
}

.cr-result-lines td {
  padding: 8px;
  border-bottom: 1px solid #eef1f5;
  vertical-align: middle;
}

.cr-result-lines tr:last-child td { border-bottom: none; }

.cr-result-line-label {
  font-weight: 700;
  color: var(--cr-gold);
  width: 48px;
}

.cr-result-line-players {
  color: var(--cr-text);
}

.cr-result-line-score {
  font-variant-numeric: tabular-nums;
  color: var(--cr-text-muted);
  white-space: nowrap;
}

.cr-result-detail-empty {
  font-size: 0.85rem;
  color: var(--cr-text-muted);
  margin: 4px 0;
}

.cr-roster-history-link {
  font-size: 0.75rem;
  color: var(--cr-gold);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid var(--cr-border);
  border-radius: 6px;
  white-space: nowrap;
}

.cr-roster-history-link:hover {
  background: rgba(201, 162, 74, 0.08);
  border-color: var(--cr-gold);
}

@media (max-width: 720px) {
  /* Hide the Score column on narrow viewports — it's the 4th column now
     that we've added Opponents. Players + Opponents + Result still fit. */
  .cr-result-lines th:nth-child(4),
  .cr-result-lines td:nth-child(4) {
    display: none;
  }
}

/* ========================================================
   Standings
   ======================================================== */

.cr-standings-own {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--cr-black);
  color: var(--cr-white);
  border-radius: 10px;
  margin-bottom: 8px;
}

.cr-standings-own-name {
  font-weight: 700;
  font-size: 1rem;
}

.cr-standings-own-record {
  display: flex;
  gap: 12px;
  font-weight: 700;
}

.cr-standings-wins { color: var(--cr-green); }
.cr-standings-losses { color: var(--cr-red); }
.cr-standings-pct { color: var(--cr-gold); }

/* ========================================================
   TennisLink-style standings table
   ======================================================== */

.cr-standings-criteria {
  font-size: 0.88rem;
  color: var(--cr-text);
  margin-bottom: 4px;
}

.cr-standings-note {
  font-size: 0.75rem;
  color: var(--cr-text-muted);
  font-style: italic;
  margin-bottom: 14px;
}

/* Horizontal scroll wrapper — lets the 8-column USTA table
   be readable on narrow mobile viewports without squashing. */
.cr-standings-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  background: var(--cr-white);
}

.cr-standings-tbl {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.cr-standings-tbl thead th {
  background: var(--cr-bg);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--cr-text-muted);
  text-align: center;
  padding: 10px 10px;
  border-bottom: 1px solid var(--cr-border);
  line-height: 1.25;
  white-space: nowrap;
}

.cr-standings-tbl tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--cr-border);
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--cr-text);
}

.cr-standings-tbl tbody tr:last-child td { border-bottom: none; }

.cr-standings-tbl .cr-standings-tbl-team {
  text-align: left;
  font-weight: 600;
  color: var(--cr-text);
  padding-left: 18px;
  white-space: nowrap;
}

.cr-standings-tbl .cr-standings-tbl-rank {
  width: 44px;
  color: var(--cr-text-muted);
}

.cr-standings-tbl .cr-standings-tbl-highlight {
  font-weight: 700;
  color: var(--cr-text);
}

.cr-standings-tbl .cr-standings-tbl-self td {
  background: #fdf8ed;
  font-weight: 700;
}

.cr-standings-tbl .cr-standings-tbl-self .cr-standings-tbl-team {
  color: var(--cr-gold);
}

/* Legacy standings table — still used by a few places */
.cr-standings-table {
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  overflow: hidden;
}

.cr-standings-header-row {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--cr-bg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cr-text-muted);
  border-bottom: 1px solid var(--cr-border);
}

.cr-standings-row {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--cr-border);
  font-size: 0.9rem;
}

.cr-standings-row:last-child { border-bottom: none; }

.cr-standings-row-self {
  background: #fdf8ed;
  border-left: 3px solid var(--cr-gold);
  font-weight: 700;
}

.cr-standings-row-self .cr-standings-wins { color: var(--cr-green); }
.cr-standings-row-self .cr-standings-losses { color: var(--cr-red); }

.cr-standings-rank-col {
  width: 32px;
  flex-shrink: 0;
  font-weight: 700;
  color: var(--cr-text-muted);
}

.cr-standings-row-self .cr-standings-rank-col { color: var(--cr-gold); font-weight: 700; }

.cr-standings-team-col {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cr-standings-stat-col {
  width: 48px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 600;
}

.cr-standings-you-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--cr-gold);
  color: var(--cr-white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cr-section-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cr-text-muted);
  margin-bottom: 8px;
}

/* ========================================================
   Captain Dashboard
   ======================================================== */

.cr-captain-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cr-gold);
  margin-bottom: 12px;
}

.cr-captain-match-card {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.cr-captain-match-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cr-border);
}

.cr-captain-match-header .cr-match-info { flex: 1; }

.cr-captain-avail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.cr-captain-avail-group {
  min-width: 0;
}

.cr-captain-avail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  display: inline-block;
}

.cr-captain-label-in { background: #f0fdf4; color: var(--cr-green); }
.cr-captain-label-out { background: #fef2f2; color: var(--cr-red); }
.cr-captain-label-pending { background: var(--cr-bg); color: var(--cr-text-muted); }

.cr-captain-player-row {
  font-size: 0.85rem;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cr-captain-player-msg {
  font-size: 0.75rem;
  color: var(--cr-text-muted);
  font-style: italic;
}

.cr-captain-player-pending { color: var(--cr-text-light); }

.cr-captain-empty {
  font-size: 0.8rem;
  color: var(--cr-text-light);
  font-style: italic;
  padding: 4px 0;
}

/* Captain analytics table */
.cr-captain-analytics-table {
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.cr-captain-analytics-header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--cr-bg);
  border-bottom: 1px solid var(--cr-border);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cr-text-muted);
}

.cr-captain-analytics-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--cr-border);
  font-size: 0.85rem;
}

.cr-captain-analytics-row:last-child { border-bottom: none; }

.cr-captain-col-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-captain-col-stat {
  width: 52px;
  text-align: center;
  flex-shrink: 0;
  font-weight: 600;
}

/* ========================================================
   Landing Page
   ======================================================== */

.cr-landing {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.cr-landing-hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.cr-landing-headline {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--cr-text);
  letter-spacing: -1px;
}

.cr-landing-headline-gold {
  color: var(--cr-gold);
}

.cr-landing-tagline {
  font-size: 1.05rem;
  color: var(--cr-text-muted);
  max-width: 480px;
  margin: 16px auto 0;
  line-height: 1.6;
}

.cr-landing-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.cr-landing-feature {
  text-align: center;
  padding: 24px 16px;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cr-landing-feature:hover {
  border-color: var(--cr-gold);
  box-shadow: 0 4px 12px rgba(201, 162, 74, 0.1);
}

.cr-landing-feature-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.cr-landing-feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cr-text);
  margin-bottom: 6px;
}

.cr-landing-feature-text {
  font-size: 0.8rem;
  color: var(--cr-text-muted);
  line-height: 1.4;
}

.cr-landing-signin {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.cr-landing-signin .cr-login-card {
  max-width: 420px;
  width: 100%;
}

.cr-landing-footer {
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid var(--cr-border);
  color: var(--cr-text-muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .cr-landing-headline { font-size: 2rem; }
  .cr-landing-features { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================
   Coming Soon Card
   ======================================================== */

.cr-coming-soon-card {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.cr-coming-soon-icon { font-size: 2.5rem; margin-bottom: 12px; }

.cr-coming-soon-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cr-text);
  margin-bottom: 12px;
}

.cr-coming-soon-text {
  font-size: 0.85rem;
  color: var(--cr-text-muted);
  line-height: 1.5;
}

.cr-coming-soon-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  text-align: left;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.cr-coming-soon-item {
  font-size: 0.85rem;
  color: var(--cr-text);
  padding: 6px 12px;
  background: var(--cr-bg);
  border-radius: 6px;
  font-weight: 500;
}

.cr-coming-soon-item::before {
  content: "✓ ";
  color: var(--cr-gold);
  font-weight: 700;
}

/* ========================================================
   Lineup Quick Facts (player profile)
   ======================================================== */

.cr-lineup-facts {
  background: linear-gradient(135deg, #fdf8ed 0%, #fffaf0 100%);
  border: 1px solid rgba(201, 162, 74, 0.35);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 24px;
}

.cr-lineup-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.cr-lineup-fact {
  background: var(--cr-white);
  border: 1px solid rgba(201, 162, 74, 0.2);
  border-radius: 10px;
  padding: 12px 14px;
}

.cr-lineup-fact-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--cr-text-muted);
  margin-bottom: 6px;
}

.cr-lineup-fact-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cr-text);
  line-height: 1.2;
}

.cr-lineup-fact-breakdown {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--cr-text-muted);
  line-height: 1.5;
}

.cr-lineup-fact-breakdown strong {
  color: var(--cr-text);
  font-weight: 700;
}

@media (max-width: 720px) {
  .cr-lineup-facts { padding: 14px 16px; }
  .cr-lineup-facts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cr-lineup-fact { padding: 10px 12px; }
  .cr-lineup-fact-value { font-size: 0.92rem; }
}

/* ========================================================
   Team stat charts (Player Stats tab on team show page)
   CSS horizontal bar charts — no JS dependency, data comes
   from @team_charts in teams_controller.
   ======================================================== */

.cr-chart-empty-note {
  text-align: center;
  padding: 14px 18px;
  margin-bottom: 20px;
  background: rgba(201, 162, 74, 0.08);
  border: 1px dashed rgba(201, 162, 74, 0.4);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--cr-text-muted);
}

.cr-chart-top-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.cr-chart-summary-card {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 12px;
  padding: 18px 20px;
}

.cr-chart-summary-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cr-text-muted);
  margin-bottom: 6px;
}

.cr-chart-summary-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--cr-text);
  line-height: 1;
  margin-bottom: 4px;
}

.cr-chart-summary-detail {
  font-size: 0.8rem;
  color: var(--cr-text-muted);
  margin-top: 8px;
}

.cr-chart-split-bar {
  display: flex;
  height: 26px;
  background: var(--cr-bg);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
  position: relative;
}

.cr-chart-split-left,
.cr-chart-split-right {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cr-white);
  transition: width 0.3s ease;
}

.cr-chart-split-left {
  background: linear-gradient(90deg, var(--cr-gold), var(--cr-gold-bright));
  color: var(--cr-black);
}

.cr-chart-split-right {
  flex: 1;
  background: var(--cr-black);
}

.cr-chart-section {
  margin-bottom: 28px;
}

.cr-chart-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--cr-text-muted);
  margin-bottom: 12px;
}

.cr-chart-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cr-bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 70px;
  gap: 12px;
  align-items: center;
}

.cr-bar-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cr-text);
  text-align: right;
}

.cr-bar-label-wide {
  grid-column: 1 / span 1;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
}

.cr-bar-row:has(.cr-bar-label-wide) {
  grid-template-columns: minmax(110px, 30%) 1fr 70px;
}

.cr-bar-track {
  height: 22px;
  background: var(--cr-bg);
  border: 1px solid var(--cr-border);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.cr-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cr-gold), var(--cr-gold-bright));
  border-radius: 6px 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  color: var(--cr-black);
  font-weight: 700;
  font-size: 0.72rem;
  transition: width 0.3s ease;
  min-width: 2px;
}

.cr-bar-fill-navy {
  background: linear-gradient(90deg, var(--cr-black), var(--cr-black-soft));
  color: var(--cr-white);
}

.cr-bar-fill-empty {
  background: var(--cr-bg);
}

.cr-bar-value {
  font-size: 0.78rem;
  color: var(--cr-text-muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 600;
}

.cr-chart-empty-inline {
  padding: 18px;
  background: var(--cr-bg);
  border-radius: 8px;
  color: var(--cr-text-light);
  font-size: 0.82rem;
  text-align: center;
  font-style: italic;
}

.cr-chart-recent {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cr-chart-recent-row {
  display: grid;
  grid-template-columns: 60px 1fr 36px auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 8px;
}

.cr-chart-recent-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cr-text-muted);
  text-transform: uppercase;
}

.cr-chart-recent-opponent {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cr-text);
}

.cr-chart-recent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
}

.cr-chart-recent-win {
  background: #dcfce7;
  color: var(--cr-green);
}

.cr-chart-recent-loss {
  background: #fee2e2;
  color: var(--cr-red);
}

.cr-chart-recent-score {
  font-size: 0.78rem;
  color: var(--cr-text-muted);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .cr-chart-top-row { grid-template-columns: 1fr; }
  .cr-chart-summary-card { padding: 14px 16px; }
  .cr-chart-summary-value { font-size: 1.7rem; }
  .cr-bar-row { grid-template-columns: 34px 1fr 54px; gap: 8px; }
  .cr-bar-label { font-size: 0.75rem; }
  .cr-bar-label-wide { font-size: 0.78rem; }
  .cr-bar-row:has(.cr-bar-label-wide) {
    grid-template-columns: minmax(80px, 32%) 1fr 52px;
  }
  .cr-chart-recent-row { grid-template-columns: 50px 1fr 28px; }
  .cr-chart-recent-score { grid-column: 1 / -1; padding-top: 4px; }
}

/* ========================================================
   Playing Stats (player profile)
   ======================================================== */

.cr-playing-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.cr-playing-stat-card {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}

.cr-playing-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cr-gold);
  line-height: 1.1;
}

.cr-playing-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cr-text-muted);
  margin-top: 4px;
}

.cr-playing-stat-detail {
  font-size: 0.75rem;
  color: var(--cr-text-light);
  margin-top: 2px;
}

.cr-playing-stats-table {
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  overflow: hidden;
}

.cr-playing-stats-header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--cr-bg);
  border-bottom: 1px solid var(--cr-border);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cr-text-muted);
}

.cr-playing-stats-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--cr-border);
  font-size: 0.85rem;
}

.cr-playing-stats-row:last-child { border-bottom: none; }

.cr-ps-col-name { flex: 1; min-width: 0; }
.cr-ps-col-line { width: 48px; text-align: center; flex-shrink: 0; font-weight: 600; }
.cr-ps-col-stat { width: 64px; text-align: center; flex-shrink: 0; }
.cr-ps-col-detail { width: 120px; text-align: right; flex-shrink: 0; color: var(--cr-text-muted); font-size: 0.8rem; }

@media (max-width: 720px) {
  .cr-playing-stats-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   Match card body (captain actions + posted lineup)

   Two layouts:
   - .cr-match-card-body (plain block, stacks naturally) — used
     when only one of the two sections is present.
   - .cr-match-card-body-split (flex row) — used when BOTH the
     captain actions and the lineup preview are rendered, so
     they sit side by side: captain on the left, lineup on the
     right. On mobile it stacks back to a single column.
   ======================================================== */

.cr-match-card-body-split {
  display: flex;
  align-items: flex-start;
}

.cr-match-card-body-split > .cr-match-captain-actions {
  flex: 0 0 170px;
  border-right: 1px solid var(--cr-border);
  background: var(--cr-white);
}

.cr-match-card-body-split > .cr-lineup-preview {
  flex: 1 1 auto;
  min-width: 0;
}

/* Captain actions (Set Lineup / Enter Results) stacked vertically
   within their column. Matches the lineup-preview background so
   the two sides of a split card feel like one continuous surface. */
.cr-match-captain-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px;
  border-top: 1px solid var(--cr-border);
  background: var(--cr-white);
}

.cr-match-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid rgba(201, 162, 74, 0.4);
  border-radius: 8px;
  background: var(--cr-white);
  color: var(--cr-text);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
  text-align: center;
  width: 100%;
}

.cr-match-action-btn:hover {
  background: rgba(201, 162, 74, 0.08);
  border-color: var(--cr-gold);
  transform: translateY(-1px);
}

.cr-match-action-icon {
  font-size: 0.85rem;
  line-height: 1;
}

@media (max-width: 720px) {
  /* On mobile, the split layout falls back to stacked so the
     lineup preview sits below the captain actions and each
     has the full card width. Buttons get a bit more room
     since they're alone on a line. */
  .cr-match-card-body-split {
    flex-direction: column;
  }
  .cr-match-card-body-split > .cr-match-captain-actions {
    flex: 0 0 auto;
    border-right: none;
  }
  .cr-match-captain-actions {
    padding: 12px 16px;
    gap: 8px;
  }
  .cr-match-action-btn {
    padding: 9px 12px;
    font-size: 0.8rem;
  }
}

/* ========================================================
   Lineup Preview (on schedule cards)
   ======================================================== */

.cr-lineup-preview {
  padding: 16px 22px 18px;
  border-top: 1px solid var(--cr-border);
  background: var(--cr-white);
}

.cr-lineup-preview-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cr-gold);
  margin-bottom: 12px;
}

.cr-lineup-preview-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

.cr-lineup-preview-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--cr-bg);
  border-radius: 8px;
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.cr-lineup-preview-line-label {
  font-weight: 700;
  color: var(--cr-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  min-width: 26px;
  flex-shrink: 0;
}

.cr-lineup-preview-player {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cr-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cr-lineup-you {
  font-weight: 700;
  color: var(--cr-gold);
}

.cr-lineup-confirmed { color: var(--cr-green); font-weight: 700; }
.cr-lineup-declined { color: var(--cr-red); font-weight: 700; }

.cr-lineup-confirm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fdf8ed;
  border-radius: 8px;
  margin-top: 8px;
}

/* Lineup builder (captain page) */
.cr-lineup-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cr-lineup-line-card {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  padding: 16px 20px;
}

.cr-lineup-line-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cr-text);
  margin-bottom: 10px;
}

/* ========================================================
   My Week (upcoming matches on home page)
   ======================================================== */

.cr-my-week {
  margin-bottom: 32px;
}

.cr-my-week-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cr-text);
  margin-top: 0;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.cr-my-week-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cr-my-week-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.cr-my-week-card:hover {
  border-color: var(--cr-gold);
  box-shadow: 0 2px 8px rgba(200, 164, 21, 0.1);
}

.cr-my-week-date {
  text-align: center;
  min-width: 40px;
  flex-shrink: 0;
}

.cr-my-week-day-name {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--cr-gold);
  letter-spacing: 0.5px;
}

.cr-my-week-month {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--cr-text-muted);
  letter-spacing: 0.5px;
}

.cr-my-week-day {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cr-text);
  line-height: 1.1;
}

.cr-my-week-info {
  flex: 1;
  min-width: 0;
}

.cr-my-week-league-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--cr-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cr-my-week-team {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cr-text);
  line-height: 1.2;
}

.cr-my-week-opponent {
  font-size: 0.78rem;
  color: var(--cr-text-muted);
}

.cr-my-week-detail {
  font-size: 0.7rem;
  color: var(--cr-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}

.cr-my-week-badge-home {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #eff6ff;
  color: #2563eb;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cr-my-week-badge-away {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--cr-bg);
  color: var(--cr-text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cr-my-week-line-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  background: #1a1a1a;
  color: #c8a415;
  letter-spacing: 0.3px;
}

/* ── Match detail page ── */
.cr-lineup-match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--cr-bg);
  border: 1px solid var(--cr-border);
  border-radius: 10px 10px 0 0;
  border-bottom: 3px solid var(--cr-gold);
}

.cr-lineup-confirm-prompt {
  margin-top: 16px;
  padding: 14px 18px;
  background: #fef9ee;
  border: 1px solid #f0dca0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
}

.cr-lineup-table {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  overflow: hidden;
}

.cr-lineup-table-header {
  display: grid;
  grid-template-columns: 80px 50px 1fr 120px;
  padding: 10px 18px;
  background: var(--cr-bg);
  border-bottom: 2px solid var(--cr-border);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--cr-text-muted);
}

.cr-lineup-table-row {
  display: grid;
  grid-template-columns: 80px 50px 1fr 120px;
  padding: 10px 18px;
  font-size: 0.9rem;
  align-items: center;
}

.cr-lineup-line-group {
  border-bottom: 1px solid var(--cr-border);
}

.cr-lineup-line-group:last-child { border-bottom: none; }

.cr-lineup-table-row:last-child { border-bottom: none; }

.cr-lineup-row-you {
  background: rgba(200, 164, 21, 0.05);
}

.cr-lineup-col-time { color: var(--cr-text); }
.cr-lineup-col-line { color: var(--cr-text); }
.cr-lineup-col-player { color: var(--cr-text); font-weight: 600; }

.cr-lineup-status-confirmed { color: var(--cr-green); font-weight: 600; font-size: 0.82rem; }
.cr-lineup-status-declined { color: var(--cr-red); font-weight: 600; font-size: 0.82rem; }
.cr-lineup-status-pending { color: var(--cr-text-light); font-style: italic; font-size: 0.82rem; }

/* Mobile: stack the lineup table columns so the full lineup is readable on narrow screens */
@media (max-width: 720px) {
  .cr-lineup-match-header {
    flex-wrap: wrap;
    gap: 10px !important;
    padding: 14px !important;
  }
  .cr-lineup-table-header {
    grid-template-columns: 60px 42px 1fr 90px;
    padding: 8px 12px;
    font-size: 0.62rem;
  }
  .cr-lineup-table-row {
    grid-template-columns: 60px 42px 1fr 90px;
    padding: 10px 12px;
    font-size: 0.82rem;
    gap: 4px;
  }
  .cr-lineup-col-player { word-break: break-word; }
  .cr-lineup-status-confirmed,
  .cr-lineup-status-declined,
  .cr-lineup-status-pending {
    font-size: 0.68rem;
  }
  .cr-lineup-confirm-prompt {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* "Set Lineup" button on match detail page — compact on mobile */
  .cr-set-lineup-btn {
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Team show page match cards — slight mobile polish over the
     main desktop rules. Just tightens padding and font sizes,
     keeps the same vertical column structure. */
  .cr-match-card .cr-match-row {
    padding: 14px 16px;
    gap: 12px;
  }
  .cr-match-card .cr-match-date {
    min-width: 54px;
    padding: 8px 10px;
  }
  .cr-match-card .cr-match-date-day {
    font-size: 1.3rem;
  }
  .cr-match-card .cr-match-opponent {
    font-size: 0.95rem;
  }
  .cr-match-card .cr-match-location {
    font-size: 0.75rem;
  }
  .cr-match-card .cr-match-badge {
    font-size: 0.62rem;
    padding: 2px 8px;
  }
  .cr-match-card .cr-cal-btn {
    width: 30px;
    height: 30px;
  }
  .cr-lineup-preview {
    padding: 14px 16px 16px;
  }
  .cr-lineup-preview-line {
    font-size: 0.82rem;
    padding: 7px 10px;
    gap: 10px;
  }
  .cr-lineup-preview-player {
    font-size: 0.82rem;
  }
}

.cr-cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--cr-bg);
  border: 1px solid var(--cr-border);
  color: var(--cr-text-muted);
  text-decoration: none;
  transition: all 0.15s;
  flex-shrink: 0;
}
.cr-cal-btn:hover {
  background: var(--cr-gold);
  color: var(--cr-black);
  border-color: var(--cr-gold);
}

/* ========================================================
   Responsive
   ======================================================== */

@media (max-width: 720px) {
  .cr-header-inner { padding: 10px 12px; gap: 6px; flex-wrap: nowrap; }
  .cr-brand { gap: 8px; min-width: 0; flex-shrink: 1; }
  .cr-brand-text {
    font-size: 1.1rem;
    letter-spacing: 1.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cr-brand-ball { width: 32px; height: 32px; font-size: 0.95rem; border-radius: 7px; }
  .cr-header-right { gap: 6px; flex-shrink: 0; flex-wrap: nowrap; }
  .cr-header-pill,
  button.cr-header-pill {
    padding: 5px 10px;
    font-size: 0.62rem;
    letter-spacing: 0.2px;
    white-space: nowrap !important;
    word-break: keep-all !important;
  }
  /* Hide user name and "My Teams" pill on mobile. Users can still navigate
     via the logo click (which goes to /teams when logged in) or the bottom
     nav bar. Keeps the header uncluttered on narrow viewports. */
  .cr-header-user,
  .cr-header-my-teams { display: none !important; }
  .cr-main { padding: 24px 16px 110px; }
  .cr-page-title { font-size: 1.6rem; }
  .cr-team-hero { padding: 24px; }
  .cr-team-hero-name { font-size: 1.8rem; }
}

/* ========================================================
   Bottom Nav (mobile only) — matches marketing page bnav
   ======================================================== */

.cr-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.97), var(--cr-black));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(201, 162, 74, 0.15);
  padding: 0 0 env(safe-area-inset-bottom);
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.cr-bottom-nav-inner {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  pointer-events: auto;
}

.cr-bnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 4px 10px;
  border: none;
  background: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: rgba(201, 162, 74, 0.2);
  text-decoration: none;
  font-family: inherit;
  pointer-events: auto;
  touch-action: manipulation;
  min-height: 48px;
}

.cr-bnav-btn > * {
  pointer-events: none;
}

.cr-bnav-btn:active { transform: scale(0.92); }

.cr-bnav-active { color: var(--cr-gold); }
.cr-bnav-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cr-gold), transparent);
  border-radius: 0 0 2px 2px;
}

.cr-bnav-icon {
  font-size: 1.4rem;
  line-height: 1;
  filter: grayscale(20%);
  transition: filter 0.2s, transform 0.2s;
}
.cr-bnav-active .cr-bnav-icon {
  filter: grayscale(0%);
  transform: scale(1.1);
}

.cr-bnav-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .cr-bottom-nav { display: block; }

  /* On mobile, the bottom nav already covers Schedule / Standings /
     Roster navigation, so the per-team sub-tabs at the top of the
     team show page are redundant. Hide the sub-tab strip and show
     ALL panels stacked vertically so nothing becomes unreachable
     (Availability / Player Stats / Captain Dashboard still get
     rendered, just one after another down the page). */
  .cr-subtabs { display: none !important; }

  [data-controller="team-tabs"] [data-team-tabs-target="panel"] {
    display: block !important;
    margin-bottom: 28px;
  }

  [data-controller="team-tabs"] [data-team-tabs-target="panel"]:last-of-type {
    margin-bottom: 0;
  }
}

@media (max-width: 380px) {
  .cr-bnav-label { font-size: 0.45rem; }
  .cr-brand-text { font-size: 1.2rem; letter-spacing: 1.5px; }
  .cr-brand-ball { width: 30px; height: 30px; font-size: 0.9rem; }
  .cr-header-pill,
  button.cr-header-pill {
    padding: 4px 8px;
    font-size: 0.58rem;
  }
}

/* ========================================================
   Home page: Coming Up cards + month calendar (two-column)
   ======================================================== */

.cr-home-top {
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(260px, 400px);
  gap: 24px;
  margin: 0 auto 32px;           /* center the grid inside .cr-main */
  max-width: 824px;              /* 2 × 400 + 24 gap — clean balanced panel */
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;              /* safety net so nothing can push wider */
}

.cr-home-left,
.cr-home-right { min-width: 0; }

/* Compact card overrides (smaller than the default .cr-my-week-card) */
.cr-my-week-list-compact { gap: 6px; }

.cr-my-week-card-compact {
  padding: 8px 12px;
  gap: 10px;
}

.cr-my-week-card-compact .cr-my-week-day-name,
.cr-my-week-card-compact .cr-my-week-month {
  font-size: 0.5rem;
}

.cr-my-week-card-compact .cr-my-week-day      { font-size: 1.05rem; }
.cr-my-week-card-compact .cr-my-week-team     { font-size: 0.8rem; }
.cr-my-week-card-compact .cr-my-week-opponent { font-size: 0.72rem; }
.cr-my-week-card-compact .cr-my-week-detail   { font-size: 0.65rem; gap: 5px; }

/* Right rail: stack Google-Cal button above line-position badge */
.cr-my-week-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.cr-my-week-right .cr-cal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--cr-border);
  border-radius: 6px;
  color: var(--cr-text-muted);
  background: var(--cr-white);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.cr-my-week-right .cr-cal-btn:hover {
  border-color: var(--cr-gold);
  color: var(--cr-gold);
}

.cr-coming-up-empty {
  padding: 14px 16px;
  background: var(--cr-white);
  border: 1px dashed var(--cr-border);
  border-radius: 8px;
  color: var(--cr-text-muted);
  font-size: 0.85rem;
}

/* ── "See Full Schedule" button under the Coming Up list ── */
.cr-see-full-schedule-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  color: var(--cr-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cr-see-full-schedule-btn:hover {
  border-color: var(--cr-gold);
  color: var(--cr-gold);
  background: #fffdf5;
}

/* ── Full schedule popup modal ── */
.cr-full-schedule-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cr-full-schedule-modal-panel {
  position: relative;
  background: var(--cr-white);
  border-radius: 14px;
  padding: 22px 22px 18px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.cr-full-schedule-modal-title {
  margin: 0 0 16px;
  padding-right: 36px;   /* leave room for the X button */
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cr-text);
  letter-spacing: 0.3px;
}

.cr-full-schedule-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--cr-border);
  border-radius: 999px;
  background: var(--cr-white);
  color: var(--cr-text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.cr-full-schedule-modal-close:hover {
  border-color: var(--cr-gold);
  color: var(--cr-gold);
  background: #fffdf5;
}

.cr-full-schedule-modal-body {
  overflow-y: auto;
  flex: 1 1 auto;
  padding-right: 4px;    /* breathing room next to the scrollbar */
}

/* ── Dashboard month calendar ── */
.cr-dash-cal {
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-radius: 12px;
  padding: 12px 14px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  max-width: 100%;
  /* Push the calendar panel down so its top edge aligns with the first
     card on the left. The left column starts with "Coming Up" (h2 ~26px
     tall + 12px margin-bottom = 38px), so we match that here. */
  margin: 38px auto 0;
}

.cr-dash-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cr-dash-cal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cr-text);
  margin: 0;
  letter-spacing: 0.3px;
}

.cr-dash-cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--cr-border);
  border-radius: 6px;
  color: var(--cr-text);
  background: var(--cr-white);
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
}

.cr-dash-cal-nav:hover {
  border-color: var(--cr-gold);
  color: var(--cr-gold);
}

.cr-dash-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cr-dash-cal-weekdays span {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--cr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cr-dash-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cr-dash-cal-day {
  position: relative;
  /* Explicit compact height. NO aspect-ratio — that was causing the grid
     to balloon on wide viewports because aspect-ratio made square cells
     as wide as the 1fr column, which pushed the page past the viewport. */
  height: 44px;
  min-width: 0;
  border: 1px solid var(--cr-border);
  border-radius: 6px;
  background: var(--cr-white);
  color: var(--cr-text);
  font: inherit;
  padding: 3px 3px 2px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.05s;
}

.cr-dash-cal-day:hover {
  border-color: var(--cr-gold);
  background: #fffdf5;
}

.cr-dash-cal-day:active {
  transform: scale(0.97);
}

.cr-dash-cal-day-blank {
  border: none;
  background: transparent;
  cursor: default;
  pointer-events: none;
}

.cr-dash-cal-day-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cr-text);
  line-height: 1;
}

.cr-dash-cal-day-today {
  border: 2px solid var(--cr-gold);
  background: #fffdf5;
}

.cr-dash-cal-day-today .cr-dash-cal-day-num {
  color: var(--cr-gold);
}

.cr-dash-cal-day-match {
  background: var(--cr-black);
  color: var(--cr-gold-bright);
  border-color: var(--cr-black);
}

.cr-dash-cal-day-match .cr-dash-cal-day-num {
  color: var(--cr-gold-bright);
}

.cr-dash-cal-day-match:hover {
  background: var(--cr-black-soft);
  border-color: var(--cr-gold);
}

.cr-dash-cal-day-event {
  background: #fffdf5;
  border-color: #f0dca0;
}

.cr-dash-cal-day-dots {
  margin-top: auto;
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  max-width: 100%;
  align-self: center;
  padding-bottom: 2px;
}

.cr-dash-cal-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cr-text-muted);
}

.cr-dash-cal-dot-match    { background: var(--cr-gold); }
.cr-dash-cal-dot-practice { background: #2563eb; }
.cr-dash-cal-dot-clinic   { background: #059669; }
.cr-dash-cal-dot-friendly { background: #d97706; }

.cr-dash-cal-legend {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  font-size: 0.62rem;
  color: var(--cr-text-muted);
  flex-wrap: wrap;
}

.cr-dash-cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Modal ── */
.cr-dash-cal-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.65);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cr-dash-cal-modal-open {
  display: flex;
}

.cr-dash-cal-modal-panel {
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cr-white);
  border: 1px solid var(--cr-border);
  border-top: 4px solid var(--cr-gold);
  border-radius: 12px;
  padding: 20px 22px 24px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cr-dash-cal-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--cr-text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.cr-dash-cal-modal-close:hover { color: var(--cr-text); }

.cr-dash-cal-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cr-text);
  margin: 0 0 14px;
  padding-right: 24px;
}

.cr-dash-cal-modal-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.cr-dash-cal-modal-empty {
  font-size: 0.85rem;
  color: var(--cr-text-muted);
  margin: 0;
}

.cr-dash-cal-item {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  background: var(--cr-white);
  color: var(--cr-text);
  text-decoration: none;
  transition: border-color 0.15s;
}

.cr-dash-cal-item:hover {
  border-color: var(--cr-gold);
}

.cr-dash-cal-item-match {
  border-left: 3px solid var(--cr-gold);
}

.cr-dash-cal-item-practice { border-left: 3px solid #2563eb; }
.cr-dash-cal-item-clinic   { border-left: 3px solid #059669; }
.cr-dash-cal-item-friendly { border-left: 3px solid #d97706; }

.cr-dash-cal-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.cr-dash-cal-item-kind {
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cr-gold);
}

.cr-dash-cal-item-team {
  font-size: 0.62rem;
  color: var(--cr-text-muted);
  font-weight: 600;
}

.cr-dash-cal-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cr-text);
  margin-bottom: 2px;
}

.cr-dash-cal-item-meta {
  font-size: 0.72rem;
  color: var(--cr-text-muted);
}

.cr-dash-cal-item-view {
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cr-gold);
}

/* Add form inside modal */
.cr-dash-cal-modal-add {
  border-top: 1px solid var(--cr-border);
  padding-top: 14px;
  margin-top: 6px;
}

.cr-dash-cal-modal-add-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cr-text-muted);
  margin: 0 0 10px;
}

.cr-dash-cal-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cr-dash-cal-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--cr-text);
}

.cr-dash-cal-form-row > span {
  width: 70px;
  font-weight: 600;
  color: var(--cr-text-muted);
  flex-shrink: 0;
}

.cr-dash-cal-form-row select,
.cr-dash-cal-form-row input[type="text"] {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--cr-border);
  border-radius: 6px;
  font-size: 0.82rem;
  background: var(--cr-white);
  color: var(--cr-text);
  min-width: 0;
}

.cr-dash-cal-form-row select:focus,
.cr-dash-cal-form-row input[type="text"]:focus {
  outline: none;
  border-color: var(--cr-gold);
}

.cr-dash-cal-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.cr-btn-compact {
  padding: 7px 18px;
  font-size: 0.78rem;
}

.cr-dash-cal-modal-captain-note {
  margin-top: 4px;
  padding: 10px 12px;
  background: var(--cr-bg);
  border-radius: 6px;
  color: var(--cr-text-muted);
  font-size: 0.72rem;
  font-style: italic;
}

/* Mobile: stack the left cards on top, calendar underneath */
@media (max-width: 860px) {
  .cr-home-top {
    grid-template-columns: 1fr;
  }

  .cr-dash-cal-day {
    min-height: 30px;
    padding: 3px 2px 2px;
  }

  .cr-dash-cal-day-num { font-size: 0.68rem; }

  .cr-dash-cal-form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cr-dash-cal-form-row > span {
    width: auto;
  }

  .cr-dash-cal-form-row select,
  .cr-dash-cal-form-row input[type="text"] {
    width: 100%;
  }
}

/* ── Admin reset bypass box on login page ── */
.cr-admin-reset-box {
  margin-bottom: 16px;
  padding: 14px 16px;
  background: #fffdf5;
  border: 1px solid #f0dca0;
  border-left: 4px solid var(--cr-gold);
  border-radius: 8px;
}

.cr-admin-reset-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--cr-gold);
  margin-bottom: 4px;
}

.cr-admin-reset-note {
  font-size: 0.78rem;
  color: var(--cr-text);
  margin: 0 0 10px;
}

.cr-admin-reset-btn {
  display: inline-block;
  font-size: 0.85rem;
  padding: 8px 16px;
}
