@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --ink:       #0f1117;
  --ink-2:     #1e2230;
  --ink-3:     #374151;
  --mid:       #6b7280;
  --muted:     #9ca3af;
  --subtle:    #d1d5db;
  --ghost:     #f3f4f6;
  --surface:   #f9fafb;
  --white:     #ffffff;

  --brand:     #1a56db;
  --brand-2:   #1e40af;
  --brand-lt:  #eff6ff;
  --brand-mid: #bfdbfe;

  --green:     #059669;
  --green-lt:  #ecfdf5;
  --green-mid: #a7f3d0;
  --red:       #dc2626;
  --red-lt:    #fef2f2;
  --red-mid:   #fecaca;
  --amber:     #d97706;
  --amber-lt:  #fffbeb;
  --amber-mid: #fde68a;

  --card-bg:   #ffffff;
  --page-bg:   #f4f6f9;
  --sidebar-bg:#0f1117;
  --border:    #e5e7eb;
  --border-2:  #d1d5db;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans:  'DM Sans', sans-serif;
  --font-mono:  'DM Mono', monospace;

  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(15,17,23,0.05);
  --shadow-sm: 0 1px 3px rgba(15,17,23,0.08), 0 1px 2px rgba(15,17,23,0.04);
  --shadow:    0 4px 6px -1px rgba(15,17,23,0.08), 0 2px 4px -2px rgba(15,17,23,0.05);
  --shadow-md: 0 10px 15px -3px rgba(15,17,23,0.08), 0 4px 6px -4px rgba(15,17,23,0.05);
}

html { scroll-behavior: smooth; }

body {
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.scanline { display: none; }

/* ─── LOGIN ──────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}

.login-left {
  background: linear-gradient(150deg, #1a56db 0%, #1e3a8a 55%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.login-left::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.login-brand-icon {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  backdrop-filter: blur(4px);
}

.login-brand-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: white;
}

.login-hero {
  position: relative;
  z-index: 1;
}

.login-hero h2 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 1rem;
  color: white;
}

.login-hero h2 em {
  font-style: italic;
  color: rgba(255,255,255,0.6);
}

.login-hero p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 320px;
}

.login-stats {
  display: flex;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.login-stat-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: white;
  display: block;
}

.login-stat-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.1rem;
  display: block;
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: white;
}

.login-card { width: 100%; max-width: 360px; }

.login-card-header { margin-bottom: 2rem; }

.login-card-header h1 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.login-card-header p { font-size: 0.85rem; color: var(--mid); }

.volt-logo { display: none; }

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 0.4rem;
}

.field-input {
  width: 100%;
  background: white;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 0.68rem 0.9rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 1rem;
}

.field-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.field-input::placeholder { color: var(--muted); }
.field-input.error { border-color: var(--red); }

/* ─── BUTTONS ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--brand);
  color: white;
  border: none;
  padding: 0.7rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--brand-2);
  box-shadow: 0 4px 12px rgba(26,86,219,0.28);
}

.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary.full { width: 100%; }

.btn-ghost, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: white;
  color: var(--ink-3);
  border: 1.5px solid var(--border-2);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover, .btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-lt);
}

.btn-ghost.active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-lt);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: white;
  color: var(--red);
  border: 1.5px solid var(--red-mid);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: all 0.15s;
}

.btn-danger:hover { background: var(--red-lt); border-color: var(--red); }

.btn-sm { padding: 0.38rem 0.7rem !important; font-size: 0.775rem !important; }

/* ─── ALERTS ────────────────────────────────────────── */
.alert-error {
  background: var(--red-lt);
  border: 1px solid var(--red-mid);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.9rem;
  color: var(--red);
  font-size: 0.825rem;
  margin-top: 0.5rem;
}

.alert-success {
  background: var(--green-lt);
  border: 1px solid var(--green-mid);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.9rem;
  color: var(--green);
  font-size: 0.825rem;
  margin-bottom: 1rem;
}

.login-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.25rem;
  line-height: 1.7;
}

.login-note a { color: var(--brand); text-decoration: none; }
.login-note a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .login-right { min-height: 100vh; }
}

/* ─── APP SHELL ─────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 1.4rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sidebar-logo .logo-icon {
  width: 30px;
  height: 30px;
  background: var(--brand);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sidebar-logo h2 {
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.01em;
}

.logo-sub {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem;
}

.nav-section-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 0.5rem 0.4rem;
  display: block;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.52rem 0.75rem;
  color: rgba(255,255,255,0.48);
  font-size: 0.84rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: all 0.12s;
  margin-bottom: 1px;
}

.nav-item:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.07);
}

.nav-item.active {
  color: white;
  background: rgba(26,86,219,0.35);
  font-weight: 500;
}

.nav-separator {
    height: 1px;
    background: var(--border); /* Or a muted color */
    margin: 10px 15px;
    opacity: 0.3;
}

.nav-icon { font-size: 0.8rem; opacity: 0.65; flex-shrink: 0; }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { opacity: 1; }

.sidebar-user {
  padding: 0.9rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.12);
}

.user-avatar-placeholder {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(26,86,219,0.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; color: white; font-weight: 600; flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { display: block; font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; font-size: 0.62rem; color: rgba(255,255,255,0.3); }

.logout-btn { color: rgba(255,255,255,0.25); text-decoration: none; font-size: 0.95rem; transition: color 0.15s; padding: 0.2rem; }
.logout-btn:hover { color: var(--red); }

/* ─── MAIN CONTENT ──────────────────────────────────── */
.main-content {
  flex: 1;
  padding: 2rem 2.5rem;
  min-width: 0;
}

.page-header {
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-transform: none;
}

/* ─── STAT CARDS ────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.stat-card::before { display: none; }

.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.stat-value {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-value.orange { color: var(--amber); }
.stat-value.red    { color: var(--red); }
.stat-value.blue   { color: var(--brand); }
.stat-value.green  { color: var(--green); }

.stat-sub { font-size: 0.73rem; color: var(--muted); margin-top: 0.3rem; }

.stat-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  margin-top: 0.45rem;
}

.badge-green  { background: var(--green-lt);  color: var(--green); }
.badge-orange { background: var(--amber-lt);  color: var(--amber); }
.badge-red    { background: var(--red-lt);    color: var(--red); }
.badge-blue   { background: var(--brand-lt);  color: var(--brand); }

/* ─── VAULT BAR ─────────────────────────────────────── */
.vault-bar-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
}

.vault-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.vault-bar-title { font-size: 0.875rem; font-weight: 600; color: var(--ink); }

.vault-bar-track {
  height: 10px;
  background: var(--ghost);
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  border: none;
  gap: 2px;
}

.vault-bar-reserve  { background: var(--green);  height: 100%; transition: width 0.6s cubic-bezier(.4,0,.2,1); }
.vault-bar-loaned   { background: var(--amber);  height: 100%; transition: width 0.6s cubic-bezier(.4,0,.2,1); }
.vault-bar-loanable { background: var(--brand);  height: 100%; transition: width 0.6s cubic-bezier(.4,0,.2,1); }
.vault-bar-label    { display: none; }

.vault-legend { display: flex; gap: 1.5rem; margin-top: 0.85rem; flex-wrap: wrap; }

.legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.775rem; color: var(--ink-3); }

.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-dot.reserve  { background: var(--green); }
.legend-dot.loanable { background: var(--brand); }
.legend-dot.loaned   { background: var(--amber); }

/* ─── TABLES ─────────────────────────────────────────── */
.table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.table-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.table-title { font-size: 0.875rem; font-weight: 600; color: var(--ink); }

.data-table { width: 100%; border-collapse: collapse; }

.data-table th {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--mid);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  text-align: left;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid var(--ghost);
  font-size: 0.845rem;
  color: var(--ink-3);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface); }
.data-table .mono { font-family: var(--font-mono); font-size: 0.78rem; }
.data-table .amount { font-weight: 600; font-size: 0.875rem; }
.data-table .amount.green  { color: var(--green); }
.data-table .amount.orange { color: var(--amber); }
.data-table .amount.red    { color: var(--red); }

.empty-state { padding: 3.5rem 2rem; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ─── STATUS PILLS ──────────────────────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

.status-active   { background: var(--green-lt);  color: var(--green); }
.status-partial  { background: var(--amber-lt);  color: var(--amber); }
.status-overdue  { background: var(--red-lt);    color: var(--red); }
.status-paid     { background: var(--brand-lt);  color: var(--brand); }
.status-forgiven { background: var(--ghost);     color: var(--mid); }

/* ─── FORMS ─────────────────────────────────────────── */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-xs);
  max-width: 640px;
}

.form-card::before { display: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group.full { grid-column: 1/-1; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 0.38rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: white;
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 0.62rem 0.85rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 0.72rem; color: var(--mid); margin-top: 0.3rem; }
.form-actions { display: flex; gap: 0.6rem; margin-top: 1.4rem; align-items: center; flex-wrap: wrap; }
select.form-select option { background: white; color: var(--ink); }

/* ─── DETAIL CARD ───────────────────────────────────── */
.detail-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-xs);
  margin-bottom: 1.25rem;
}

.detail-card::before { display: none; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 1.2rem; }

.detail-item-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.28rem;
}

.detail-item-value { font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.detail-item-value.green  { color: var(--green); }
.detail-item-value.orange { color: var(--amber); }
.detail-item-value.red    { color: var(--red); }

/* ─── PROGRESS BAR ──────────────────────────────────── */
.progress-track { height: 5px; background: var(--ghost); border-radius: 99px; overflow: hidden; margin-top: 0.45rem; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 99px; transition: width 0.4s ease; }
.progress-fill.orange { background: var(--amber); }
.progress-fill.red    { background: var(--red); }

/* ─── PAYMENT SCHEDULE ──────────────────────────────── */
.schedule-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }

.schedule-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: border-color 0.15s;
}

.schedule-item.paid    { opacity: 0.5; background: var(--ghost); }
.schedule-item.overdue { border-color: var(--red-mid); background: var(--red-lt); }

.schedule-date   { font-size: 0.775rem; color: var(--mid); margin-top: 0.1rem; }
.schedule-amount { font-size: 0.9rem; font-weight: 600; color: var(--ink); }

/* ─── MISC ───────────────────────────────────────────── */
.section-title { font-size: 0.875rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.text-muted { color: var(--mid); font-size: 0.8rem; }
.text-mono  { font-family: var(--font-mono); }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.flex-gap     { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

.note-text {
  font-size: 0.82rem;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.9rem;
  line-height: 1.7;
}

.note-text strong { color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }

/* ─── PLAYER LOOKUP ─────────────────────────────────── */
.player-lookup { display: flex; gap: 0.5rem; align-items: flex-end; }
.player-lookup .form-input { flex: 1; }

.player-info-box {
  background: var(--brand-lt);
  border: 1px solid var(--brand-mid);
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.player-info-box img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--brand-mid); }

/* ─── REMINDERS ─────────────────────────────────────── */
.reminder-row {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.15s;
  margin-bottom: 0.6rem;
}

.reminder-row:hover { box-shadow: var(--shadow-sm); }
.reminder-row.sent  { opacity: 0.55; }

.reminder-name   { font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.reminder-detail { font-size: 0.75rem; color: var(--mid); margin-top: 0.15rem; }

/* ─── COPY LINK ─────────────────────────────────────── */
.copy-link {
  font-size: 0.775rem;
  color: var(--brand);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.copy-link:hover { color: var(--brand-2); }

.page-header-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.flash-msg { transition: opacity 0.4s ease; }

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main-content { padding: 1.25rem 1.25rem; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .data-table th, .data-table td { padding: 0.6rem 0.75rem; }
}
