/* ═══════════════════════════════════════════════════
   CricManager — Admin CSS
═══════════════════════════════════════════════════ */

:root {
  --nav-h:        60px;
  --sidebar-w:    230px;
  --bg:           #f1f5f9;
  --surface:      #ffffff;
  --border:       #e2e8f0;
  --border-2:     #f1f5f9;
  --text:         #0f172a;
  --text-2:       #475569;
  --text-3:       #94a3b8;
  --primary:      #2563eb;
  --primary-h:    #1d4ed8;
  --primary-soft: #eff6ff;
  --green:        #16a34a;
  --green-soft:   #f0fdf4;
  --orange:       #d97706;
  --orange-soft:  #fffbeb;
  --red:          #dc2626;
  --red-soft:     #fef2f2;
  --teal:         #0891b2;
  --teal-soft:    #f0f9ff;
  --purple:       #7c3aed;
  --purple-soft:  #f5f3ff;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 12px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }

/* ── Top Nav ─────────────────────────────────────── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: #0f172a;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.top-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1rem; color: #fff;
}
.brand-icon { font-size: 1.25rem; color: #fbbf24; }
.top-nav-right { display: flex; align-items: center; gap: 16px; }
.admin-greeting { color: #94a3b8; font-size: 0.8rem; }
.btn-logout {
  display: flex; align-items: center; gap: 6px;
  color: #94a3b8; font-size: 0.8rem; text-decoration: none;
  padding: 6px 12px; border: 1px solid #334155; border-radius: var(--radius-sm);
  transition: color .15s, border-color .15s;
}
.btn-logout:hover { color: #fff; border-color: #64748b; }

/* ── Shell / Sidebar ─────────────────────────────── */
.shell {
  display: flex;
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.sidebar {
  position: fixed; top: var(--nav-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: #0f172a;
  overflow-y: auto;
  padding: 16px 0 32px;
  z-index: 100;
}
.sidebar-section-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #475569;
  padding: 12px 20px 4px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: #94a3b8; font-size: 0.85rem; font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .15s;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.sidebar-link.active { color: #fff; background: rgba(37,99,235,.15); border-left-color: var(--primary); }

/* ── Main Content ────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 32px 28px 48px;
  max-width: calc(100% - var(--sidebar-w));
}

/* ── Flash ───────────────────────────────────────── */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  margin-bottom: 20px; font-size: 0.875rem; font-weight: 500;
}
.flash-success { background: var(--green-soft); color: #15803d; border: 1px solid #bbf7d0; }
.flash-danger  { background: var(--red-soft);   color: #991b1b; border: 1px solid #fecaca; }
.flash-warning { background: var(--orange-soft);color: #92400e; border: 1px solid #fde68a; }

/* ── Page Header ─────────────────────────────────── */
.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; gap: 16px;
}
.page-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.025em; margin: 0; }
.page-sub   { color: var(--text-2); font-size: .85rem; margin: 2px 0 0; }

/* ── Buttons ─────────────────────────────────────── */
.btn-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
  font-size: .875rem; font-weight: 600; text-decoration: none; border: none;
  cursor: pointer; transition: background .15s;
  white-space: nowrap;
}
.btn-action:hover { background: var(--primary-h); color: #fff; }
.btn-action.btn-lg { padding: 11px 24px; font-size: .925rem; }
.btn-action.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-2);
  font-size: .875rem; font-weight: 500; text-decoration: none;
  border: 1px solid var(--border); cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: #94a3b8; color: var(--text); }
.btn-ghost.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-ghost.btn-lg { padding: 11px 20px; font-size: .925rem; }

/* ── Stat Tiles ──────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.bg-blue   { background: #eff6ff; color: var(--primary); }
.bg-green  { background: var(--green-soft);  color: var(--green); }
.bg-orange { background: var(--orange-soft); color: var(--orange); }
.bg-teal   { background: var(--teal-soft);   color: var(--teal); }
.bg-purple { background: var(--purple-soft); color: var(--purple); }
.stat-num { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat-lbl { font-size: .72rem; color: var(--text-2); margin-top: 2px; }

/* ── Panel ───────────────────────────────────────── */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.panel-title { font-size: .9rem; font-weight: 600; }
.panel-link  { font-size: .8rem; color: var(--primary); text-decoration: none; }
.panel-link:hover { text-decoration: underline; }
.panel-body  { padding: 20px; }

/* ── Two-col layout ──────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── List Rows (in panels) ───────────────────────── */
.list-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 13px 20px; border-bottom: 1px solid var(--border-2); gap: 12px;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: #f8fafc; }
.list-row-title { font-size: .875rem; font-weight: 600; }
.list-row-meta  { font-size: .78rem; color: var(--text-2); margin-top: 2px; }
.list-row-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.time-ago { font-size: .75rem; color: var(--text-3); }

/* ── Empty States ────────────────────────────────── */
.empty-state {
  text-align: center; padding: 32px 20px; color: var(--text-3);
}
.empty-state i { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.empty-state p { margin: 0; font-size: .875rem; }
.empty-full {
  text-align: center; padding: 80px 20px; color: var(--text-2);
}
.empty-full i { font-size: 3.5rem; display: block; margin-bottom: 16px; color: var(--text-3); }
.empty-full h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.empty-full p  { margin: 0 0 20px; font-size: .875rem; }

/* ── Badges ──────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-success   { background: #dcfce7; color: #15803d; }
.badge-warning   { background: #fef9c3; color: #a16207; }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-info      { background: #e0f2fe; color: #0369a1; }
.badge-secondary { background: #f1f5f9; color: #475569; }

/* ── Pills ───────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 20px;
  font-size: .72rem; font-weight: 600; white-space: nowrap;
}
.pill-green  { background: #dcfce7; color: #15803d; }
.pill-orange { background: #ffedd5; color: #c2410c; }
.pill-red    { background: #fee2e2; color: #991b1b; }
.pill-blue   { background: #dbeafe; color: #1d4ed8; }
.pill-gray   { background: #f1f5f9; color: #475569; }

/* ── Data Table ──────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.data-table thead th {
  background: #f8fafc; padding: 10px 16px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-2); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border-2); vertical-align: middle; }
.data-table tbody tr:hover { background: #f8fafc; }
.data-table tbody tr:last-child td { border-bottom: none; }
.td-title { font-weight: 600; }
.td-sub   { font-size: .78rem; color: var(--text-2); margin-top: 2px; }
.td-link  { color: var(--primary); text-decoration: none; }
.td-link:hover { text-decoration: underline; }

/* ── Tab Bar ─────────────────────────────────────── */
.tab-bar { display: flex; gap: 4px; border-bottom: 2px solid var(--border); padding-bottom: 0; }
.tab-item {
  padding: 8px 14px; font-size: .85rem; font-weight: 500;
  color: var(--text-2); text-decoration: none; border-radius: 6px 6px 0 0;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab-item:hover { color: var(--text); background: var(--bg); }
.tab-item.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-soft); }
.tab-count { background: var(--border); color: var(--text-2); font-size: .7rem; padding: 1px 6px; border-radius: 20px; }
.tab-count-warning { background: #fef9c3; color: #a16207; }
.tab-count-success { background: #dcfce7; color: #15803d; }
.tab-count-danger  { background: #fee2e2; color: #991b1b; }
.tab-count-info    { background: #e0f2fe; color: #0369a1; }

/* ── Filter Bar ──────────────────────────────────── */
.filter-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.filter-form { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.filter-field { display: flex; flex-direction: column; gap: 4px; }
.filter-label { font-size: .75rem; font-weight: 600; color: var(--text-2); }
.select-input-sm {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-size: .85rem; color: var(--text); outline: none;
  cursor: pointer;
}
.select-input-sm:focus { border-color: var(--primary); }

/* ── Icon Buttons ────────────────────────────────── */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-2); text-decoration: none;
  font-size: .875rem; cursor: pointer; transition: all .15s;
}
.icon-btn:hover { background: var(--surface); border-color: #94a3b8; color: var(--text); }
.icon-btn-danger:hover { background: var(--red-soft); border-color: #fca5a5; color: var(--red); }
.action-btns { display: flex; gap: 4px; }
.dropdown-toggle-sm { width: 24px; height: 24px; font-size: .7rem; }

/* ── Forms ───────────────────────────────────────── */
.form-grid { display: flex; flex-direction: column; gap: 20px; max-width: 900px; }
.form-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.form-section-title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-2);
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: #f8fafc;
  display: flex; align-items: center; gap: 8px;
}
.form-section > .field-group,
.form-section > .form-row-2,
.form-section > .form-row-3 { padding: 20px 20px 0; }
.form-section > .field-group:last-child,
.form-section > .form-row-2:last-child,
.form-section > .form-row-3:last-child { padding-bottom: 20px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: .8rem; font-weight: 600; color: var(--text-2); }
.req  { color: #ef4444; }
.field-hint { font-size: .75rem; color: var(--text-3); margin-top: 2px; }

.text-input, .select-input {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .875rem; font-family: inherit; color: var(--text);
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
  outline: none; width: 100%;
}
.text-input:focus, .select-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
textarea.text-input { resize: vertical; }

.input-prefix-wrap { position: relative; display: flex; }
.input-prefix {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 36px; display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 600; color: var(--text-2);
  background: #f8fafc; border: 1px solid var(--border);
  border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.text-input.has-prefix { padding-left: 44px; }

.form-actions {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 0;
}

/* ── Status Toggle Group ─────────────────────────── */
.status-toggle-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; }
.status-option {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 16px; border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; text-align: center; transition: all .15s;
  background: #f8fafc;
}
.status-option input[type=radio] { display: none; }
.status-option i { font-size: 1.5rem; color: var(--text-3); }
.status-option strong { font-size: .9rem; color: var(--text); }
.status-option .status-desc { font-size: .75rem; color: var(--text-2); line-height: 1.4; }
.status-option:hover { border-color: #94a3b8; background: var(--surface); }
.status-option.selected { border-color: var(--primary); background: var(--primary-soft); }
.status-option.selected i, .status-option.selected strong { color: var(--primary); }

/* ── Login Page ──────────────────────────────────── */
.login-body {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
}
.login-wrap { width: 100%; max-width: 440px; padding: 20px; }
.login-card { background: var(--surface); border-radius: 16px; overflow: hidden; box-shadow: 0 25px 50px rgba(0,0,0,.35); }
.login-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  padding: 40px 32px 32px; text-align: center; color: #fff;
}
.login-logo {
  width: 72px; height: 72px; background: rgba(255,255,255,.08);
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #fbbf24; margin-bottom: 14px;
}
.login-app-name { font-size: 1.4rem; font-weight: 800; margin: 0 0 4px; }
.login-tagline  { color: rgba(255,255,255,.55); font-size: .85rem; margin: 0; }
.login-form-area { padding: 28px 32px 36px; }
.alert-error {
  background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 16px;
}
.alert-warn {
  background: var(--orange-soft); color: #92400e; border: 1px solid #fde68a;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: .875rem; margin-bottom: 16px;
}
.input-icon-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 12px; color: var(--text-3); font-size: 1rem; pointer-events: none; }
.input-icon-wrap .text-input { padding-left: 38px; }
.pw-toggle {
  position: absolute; right: 8px; background: none; border: none;
  color: var(--text-3); cursor: pointer; padding: 4px 6px;
}
.pw-toggle:hover { color: var(--text-2); }
.btn-primary-full {
  width: 100%; padding: 11px; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; border: none;
  font-size: .9rem; font-weight: 600; cursor: pointer; transition: background .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary-full:hover { background: var(--primary-h); }
.login-hint { text-align: center; color: var(--text-3); font-size: .78rem; margin: 16px 0 0; }
.login-hint code { background: #f1f5f9; padding: 2px 5px; border-radius: 4px; }

/* ── Tournament Header Card ─────────────────────── */
.tournament-header-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 0; flex-wrap: wrap;
}
.tour-badge-icon {
  width: 48px; height: 48px; background: var(--orange-soft); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--orange); flex-shrink: 0;
}
.tour-name { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.tour-meta-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--text-2); }
.tournament-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Registration Cards (inbox) ──────────────────── */
.reg-inbox { display: flex; flex-direction: column; gap: 14px; }
.reg-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .15s;
}
.reg-card:hover { box-shadow: var(--shadow-md); }
.reg-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 18px 20px; gap: 16px; flex-wrap: wrap;
}
.reg-card-team { display: flex; align-items: flex-start; gap: 14px; }
.team-avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  color: #fff; font-size: .95rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.team-name { font-size: 1rem; font-weight: 700; }
.team-meta { font-size: .8rem; color: var(--text-2); margin-top: 3px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.reg-card-status-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.status-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Quick action buttons */
.quick-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.qa-btn {
  display: inline-flex; align-items: center;
  padding: 5px 12px; border-radius: var(--radius-sm);
  font-size: .78rem; font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: all .15s; text-decoration: none;
}
.qa-approve { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.qa-approve:hover { background: #16a34a; color: #fff; }
.qa-waitlist { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.qa-waitlist:hover { background: #0284c7; color: #fff; }
.qa-reject { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.qa-reject:hover { background: #dc2626; color: #fff; }
.qa-payment { background: #fef9c3; color: #a16207; border-color: #fde68a; }
.qa-payment:hover { background: #d97706; color: #fff; }
.qa-view { background: var(--bg); color: var(--text-2); border-color: var(--border); }
.qa-view:hover { background: var(--surface); color: var(--text); }

/* Notes bar at bottom of card */
.reg-card-notes {
  padding: 10px 20px;
  border-top: 1px solid var(--border-2);
  background: #f8fafc;
}
.notes-form { display: flex; gap: 8px; }
.notes-input {
  flex: 1; padding: 7px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .8rem; font-family: inherit;
  background: var(--surface); outline: none;
}
.notes-input:focus { border-color: var(--primary); }
.notes-save-btn {
  padding: 7px 14px; background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600; cursor: pointer;
}
.notes-save-btn:hover { background: var(--primary-h); }

/* ── Registration Detail page ────────────────────── */
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.detail-pair {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border-2); font-size: .875rem;
}
.detail-pair:last-child { border-bottom: none; }
.detail-pair span { color: var(--text-2); }
.detail-pair strong { font-weight: 600; }
.control-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 8px; }
.control-group { padding-bottom: 20px; border-bottom: 1px solid var(--border-2); margin-bottom: 20px; }
.control-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.status-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.status-change-btn {
  padding: 6px 14px; border-radius: var(--radius-sm); font-size: .8rem;
  font-weight: 600; cursor: pointer; border: 1px solid var(--border);
  background: var(--bg); color: var(--text-2); transition: all .15s;
}
.status-approved  { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.status-rejected  { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.status-waitlisted{ background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.status-pending   { background: #fef9c3; color: #a16207; border-color: #fde68a; }
.status-verified  { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.status-failed    { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.status-change-btn:hover { filter: brightness(.92); }

/* Captain card */
.captain-card { display: flex; align-items: center; gap: 14px; }
.captain-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.captain-name { font-size: 1rem; font-weight: 700; }
.captain-meta { font-size: .82rem; color: var(--text-2); margin-top: 3px; }
.captain-meta a { color: var(--primary); text-decoration: none; }
.captain-meta a:hover { text-decoration: underline; }

/* Role badges */
.role-badge { display: inline-flex; padding: 3px 9px; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.role-batsman      { background: #dbeafe; color: #1d4ed8; }
.role-bowler       { background: #fef9c3; color: #a16207; }
.role-all-rounder  { background: #d1fae5; color: #065f46; }
.role-wicket-keeper{ background: #f3e8ff; color: #6d28d9; }
.role-other        { background: #f1f5f9; color: #475569; }

/* ── Callouts ────────────────────────────────────── */
.callout-info {
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius);
  padding: 12px 16px; font-size: .875rem; color: #1e40af;
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
}
.callout-info a { color: #1d4ed8; font-weight: 500; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-content { padding: 20px 16px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .status-toggle-group { grid-template-columns: 1fr; }
  .reg-card-top { flex-direction: column; }
  .reg-card-status-col { align-items: flex-start; }
}
