/* Light Theme - ELO BALL
 * Unified design system based on /elo page
 * Replaces dark-theme.css for all pages
 */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --border-line: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --delta-up: #16a34a;
  --delta-down: #dc2626;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-modern: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
}

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

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* ==========================================================================
   Beta Banner
   ========================================================================== */

.beta-banner {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 0.6rem 1rem;
}

.beta-banner a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.5rem;
}

.beta-banner a:hover { color: #e2e8f0; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-line);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
}

.logo:hover { text-decoration: none; color: var(--primary-hover); }

.logo-svg {
  height: 28px;
  width: auto;
}

.logo-svg text {
  fill: var(--text-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}

.nav-link:hover {
  background: #f1f5f9;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--primary);
  color: white;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
  max-width: 100%;
  margin: 0;
  padding: 2rem 1.5rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modern);
  padding: 2rem;
}

.card-sm {
  padding: 1.5rem;
}

/* ==========================================================================
   Auth Forms (Login, Register, Password Reset)
   ========================================================================== */

.auth-container {
  max-width: 420px;
  margin: 3rem auto;
}

.auth-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.auth-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.auth-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: all 0.15s;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

.btn-primary {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

.auth-links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.auth-links a {
  color: var(--primary);
  font-weight: 600;
}

.auth-legal {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.auth-legal a { color: var(--primary); }

.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.info-msg {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  color: #075985;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.success-msg {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  color: #166534;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Legal Pages (Terms, Privacy)
   ========================================================================== */

.legal-container {
  max-width: 700px;
  margin: 2rem auto;
}

.legal-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modern);
  padding: 2.5rem;
}

.legal-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
}

.legal-card .updated {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.legal-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-card ul {
  color: var(--text-secondary);
  margin: 0 0 1.25rem 1.5rem;
  line-height: 1.7;
}

.legal-card li {
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   Account Page
   ========================================================================== */

.account-container {
  max-width: 520px;
  margin: 2rem auto;
}

.account-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modern);
  padding: 2rem;
}

.account-card h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.account-promo {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #075985;
  margin-bottom: 1.25rem;
}

.account-email {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-line);
  font-size: 0.9375rem;
}

.status-row .label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-row .value {
  font-weight: 700;
  color: var(--text-primary);
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.account-links {
  margin-top: 1.5rem;
  text-align: center;
}

.account-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-line);
}

.account-legal h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.account-legal p {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ==========================================================================
   Dashboard / Homepage
   ========================================================================== */

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

.page-title {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page-subtitle {
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-size: 0.9375rem;
}

/* Dashboard Grid */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.dash-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modern);
  padding: 1.5rem;
}

.dash-card-full {
  grid-column: span 2;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-line);
}

.dash-card-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

/* Inline info tooltip (dashboard cards) */
.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.4rem;
  border-radius: 50%;
  border: 1px solid var(--border-line);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: none;
  cursor: help;
  vertical-align: middle;
}

.info-tip .tip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 1000;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.35;
  text-transform: none;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

.info-tip:hover .tip-text {
  visibility: visible;
  opacity: 1;
}

/* Data Rows */
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-line);
}

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

.data-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.data-meta {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.data-side {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.data-delta {
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
}

.data-delta.pos { background: #dcfce7; color: var(--delta-up); }
.data-delta.neg { background: #fef2f2; color: var(--delta-down); }

.data-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.injury-watch-scroll {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.injury-section-scroll {
  height: 12rem;
  overflow-y: scroll;
  padding-right: 0.5rem;
  scrollbar-gutter: stable;
  border: 1px solid var(--border-line);
  border-radius: 0.5rem;
  padding-left: 0.5rem;
  background: #f8fafc;
}

.game-counts-scroll {
  max-height: 18rem;
  overflow-y: scroll;
  padding-right: 0.5rem;
  scrollbar-gutter: stable;
}

.stream-board-scroll,
#stream-board .stream-board-scroll {
  height: 30rem; /* fixed viewport to keep stream board scrollable */
  max-height: 30rem;
  overflow-y: scroll !important;
  overflow-x: auto;
  padding-right: 0.5rem;
  scrollbar-gutter: stable;
}

.injury-section-scroll::-webkit-scrollbar,
.game-counts-scroll::-webkit-scrollbar,
.stream-board-scroll::-webkit-scrollbar {
  width: 10px;
}

.injury-section-scroll::-webkit-scrollbar-track,
.game-counts-scroll::-webkit-scrollbar-track,
.stream-board-scroll::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 8px;
}

.injury-section-scroll::-webkit-scrollbar-thumb,
.game-counts-scroll::-webkit-scrollbar-thumb,
.stream-board-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 8px;
}

/* Injury header with timestamp */
.injury-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; margin-bottom: 0.5rem; background: #f8fafc; border: 1px solid var(--border-line); border-radius: 0.25rem; }
.injury-count { font-size: 0.75rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; }
.injury-age { font-size: 0.7rem; font-family: 'JetBrains Mono', monospace; padding: 0.15rem 0.4rem; border-radius: 0.2rem; }
.injury-age.fresh { color: var(--success); background: rgba(16, 185, 129, 0.1); }
.injury-age.stale { color: var(--danger); background: rgba(239, 68, 68, 0.1); }

/* Data update flash animation */
.data-updated { animation: flashUpdate 1s ease; }
@keyframes flashUpdate {
  0% { background: transparent; }
  50% { background: rgba(37, 99, 235, 0.1); }
  100% { background: transparent; }
}

/* Tables */
.board-table {
  width: 100%;
  border-collapse: collapse;
}

.board-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 2px solid var(--border-line);
  background: #f8fafc;
}

.board-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-line);
  font-size: 0.875rem;
}

.board-table tbody tr:hover {
  background: #f8fafc;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Status Indicators */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-green { background: var(--delta-up); }
.status-yellow { background: #eab308; }
.status-red { background: var(--delta-down); }

/* Streaming Board - Expanded Layout */

.stream-table .stream-rank {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
  width: 2.5rem;
  text-align: center;
}

.stream-table .stream-pitcher,
.stream-table .stream-opp {
  min-width: 10rem;
}

.stream-table .stream-pitcher .data-name,
.stream-table .stream-opp .data-name {
  font-size: 0.95rem;
  display: block;
}

.stream-table th,
.stream-table td {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.stream-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 0.15rem;
}

.stream-score-cell {
  text-align: center;
  white-space: nowrap;
}

.stream-score-val {
  font-size: 1.2rem;
  font-weight: 700;
  display: block;
}

.stream-score-green { color: var(--delta-up); }
.stream-score-yellow { color: #ca8a04; }
.stream-score-red { color: var(--delta-down); }

.risk-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.risk-green { background: rgba(22, 163, 74, 0.1); color: var(--delta-up); border: 1px solid var(--delta-up); }
.risk-yellow { background: rgba(234, 179, 8, 0.1); color: #ca8a04; border: 1px solid #eab308; }
.risk-red { background: rgba(220, 38, 38, 0.1); color: var(--delta-down); border: 1px solid var(--delta-down); }

.stream-opp-dir {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-right: 0.3rem;
}

.stream-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 12rem;
}

.stat-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  background: #f1f5f9;
  border: 1px solid var(--border-line);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-radius: 2px;
}

.stat-prior {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
  border-color: #eab308;
  font-style: italic;
}

.stream-kpct {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

@media (max-width: 768px) {
  .stream-table { min-width: unset !important; }
  .stream-table thead { display: none; }
  .stream-table tbody tr {
    display: grid;
    grid-template-columns: 2rem 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-line);
  }
  .stream-table td { padding: 0.25rem; border: none; }
  .stream-rank { grid-row: 1 / 3; align-self: center; }
  .stream-stats { grid-column: 1 / -1; }
  .stream-kpct { grid-column: 1 / -1; text-align: left; }
  .stream-kpct::before { content: 'OPP K% '; font-size: 0.7rem; color: var(--text-secondary); }
}

/* Volume Grid */
.volume-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.volume-col .col-label {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.25rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.volume-col.hi .col-label { background: #dcfce7; color: var(--delta-up); }
.volume-col.lo .col-label { background: #fef2f2; color: var(--delta-down); }
.volume-col .col-label { background: #f1f5f9; color: var(--text-secondary); }

.team-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.team-tag {
  background: #f1f5f9;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 0.25rem;
  border: 1px solid var(--border-line);
}

/* Availability Badges */
.avail-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 0.25rem;
}

.avail-available { background: #dcfce7; color: var(--delta-up); }
.avail-risky { background: #fefce8; color: #a16207; }
.avail-unavailable { background: #fef2f2; color: var(--delta-down); }

/* Launchpad */
.launchpad-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-line);
  gap: 1rem;
}

.lp-index { font-size: 1.125rem; font-weight: 800; }
.lp-high { color: var(--delta-up); }
.lp-low { color: var(--primary); }
.lp-neutral { color: var(--text-secondary); }

.wind-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
}

.wind-out { background: #dcfce7; color: var(--delta-up); }
.wind-in { background: #dbeafe; color: var(--primary); }

/* Edge Cards */
.edge-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--border-line);
}

.edge-card.win { border-color: var(--delta-up); background: rgba(22, 163, 74, 0.05); }
.edge-card.loss { border-color: var(--delta-down); background: rgba(220, 38, 38, 0.05); }

/* Tools Tray */
.tools-tray {
  margin-top: 3rem;
}

.tray-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modern);
  transition: all 0.15s;
}

.tray-header:hover { box-shadow: var(--shadow-lg); }

.tray-header h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tray-content {
  display: none;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: -0.75rem;
  box-shadow: var(--shadow-modern);
}

.tray-content.open { display: block; }

.pane-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-line);
  padding-bottom: 0;
}

.pane-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  font-family: inherit;
}

.pane-tab:hover { color: var(--text-primary); }
.pane-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.tool-pane { display: none; }
.tool-pane.active { display: block; }

/* Terminal Output (for analytics tools) */
.terminal-out {
  background: #1e293b;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  color: #a5f3fc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Team Select */
.team-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-white);
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
}

.team-select:hover { border-color: var(--primary); }
.team-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); outline: none; }

/* Form elements used in dashboard tools */
.dash-input {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-primary);
  width: 100%;
  outline: none;
}

.dash-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dash-btn {
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  width: 100%;
}

.dash-btn:hover { background: var(--primary-hover); }

/* Reset link display */
.reset-link {
  background: #f8fafc;
  border: 1px dashed var(--border-line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  word-break: break-all;
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* Loading State */
.loading-pulse {
  color: var(--text-secondary);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 0.8; }
  100% { opacity: 0.4; }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.empty-state-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-line);
  padding: 1.5rem 1rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 100%;
  margin: 0;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

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

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    gap: 0.125rem;
  }

  .nav-link {
    white-space: nowrap;
    min-height: 2.75rem;
  }

  .dash-grid {
    grid-template-columns: 1fr;
  }

  .dash-card-full {
    grid-column: span 1;
  }

  .volume-grid {
    grid-template-columns: 1fr;
  }

  .auth-card { padding: 1.5rem; }
  .legal-card { padding: 1.5rem; }
}
