/* =========================================================
   COBEG Solo User Dashboard
   Fully scoped. No body/global element styling.
========================================================= */

.cobeg-solo-shell {
  --solo-bg: #f5f7fb;
  --solo-surface: #ffffff;
  --solo-surface-2: #f8fafc;
  --solo-text: #101322;
  --solo-muted: #6b7280;
  --solo-border: rgba(15, 23, 42, 0.1);
  --solo-border-strong: rgba(15, 23, 42, 0.16);
  --solo-primary: #4f46e5;
  --solo-primary-2: #7c3aed;
  --solo-success: #16a34a;
  --solo-warning: #d97706;
  --solo-danger: #dc2626;
  --solo-radius-xl: 28px;
  --solo-radius-lg: 22px;
  --solo-radius-md: 16px;
  --solo-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  width: min(1180px, calc(100% - 28px));
  margin: 24px auto 48px;
  color: var(--solo-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cobeg-solo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 26px;
  border: 1px solid var(--solo-border);
  border-radius: var(--solo-radius-xl);
  background:
    radial-gradient(circle at 5% 10%, rgba(79, 70, 229, 0.14), transparent 32%),
    radial-gradient(circle at 95% 0%, rgba(124, 58, 237, 0.12), transparent 32%),
    var(--solo-surface);
  box-shadow: var(--solo-shadow);
}

.cobeg-solo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.09);
  color: var(--solo-primary);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cobeg-solo-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.cobeg-solo-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--solo-muted);
  font-size: 15px;
  line-height: 1.7;
}

.cobeg-solo-hero-stat {
  min-width: 180px;
  padding: 18px;
  border: 1px solid var(--solo-border);
  border-radius: var(--solo-radius-lg);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px);
  text-align: right;
}

.cobeg-solo-hero-stat strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.cobeg-solo-hero-stat span {
  color: var(--solo-muted);
  font-size: 13px;
  font-weight: 700;
}

.cobeg-solo-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.cobeg-solo-tab {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--solo-border);
  border-radius: var(--solo-radius-lg);
  background: var(--solo-surface);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cobeg-solo-tab:hover,
.cobeg-solo-tab.is-active {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, .32);
  box-shadow: 0 14px 34px rgba(79, 70, 229, .13);
}

.cobeg-solo-tab strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.cobeg-solo-tab span {
  display: block;
  color: var(--solo-muted);
  font-size: 12px;
  line-height: 1.45;
}

.cobeg-solo-panel {
  border: 1px solid var(--solo-border);
  border-radius: var(--solo-radius-xl);
  background: var(--solo-surface);
  box-shadow: var(--solo-shadow);
  overflow: hidden;
}

.cobeg-solo-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  border-bottom: 1px solid var(--solo-border);
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.cobeg-solo-panel-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.cobeg-solo-panel-head p {
  margin: 0;
  color: var(--solo-muted);
  line-height: 1.6;
}

.cobeg-solo-live-search {
  min-width: 260px;
}

.cobeg-solo-live-search input,
.cobeg-solo-filters input,
.cobeg-solo-filters select,
.cobeg-solo-score-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--solo-border);
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  color: var(--solo-text);
  font: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cobeg-solo-live-search input:focus,
.cobeg-solo-filters input:focus,
.cobeg-solo-filters select:focus,
.cobeg-solo-score-form input:focus {
  border-color: rgba(79, 70, 229, .6);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .11);
}

.cobeg-solo-filters {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr minmax(180px, 1.3fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px 22px;
  border-bottom: 1px solid var(--solo-border);
  background: var(--solo-surface-2);
}

.cobeg-solo-filters label,
.cobeg-solo-live-search label {
  display: grid;
  gap: 7px;
  color: var(--solo-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cobeg-solo-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.cobeg-solo-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.cobeg-solo-btn-primary {
  background: linear-gradient(135deg, var(--solo-primary), var(--solo-primary-2));
  color: #fff;
  box-shadow: 0 14px 28px rgba(79, 70, 229, .22);
}

.cobeg-solo-list {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.cobeg-solo-match-card {
  border: 1px solid var(--solo-border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .82), #fff 55%),
    var(--solo-surface);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.cobeg-solo-match-card[hidden] {
  display: none !important;
}

.cobeg-solo-match-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px 0;
}

.cobeg-solo-match-title {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.cobeg-solo-fixture-no {
  color: var(--solo-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.cobeg-solo-match-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cobeg-solo-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.cobeg-solo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--solo-border);
  border-radius: 999px;
  background: #fff;
  color: var(--solo-muted);
  font-size: 12px;
  font-weight: 900;
}

.cobeg-solo-badge-approved {
  color: var(--solo-success);
  background: rgba(22, 163, 74, .08);
  border-color: rgba(22, 163, 74, .18);
}

.cobeg-solo-badge-submitted {
  color: var(--solo-primary);
  background: rgba(79, 70, 229, .08);
  border-color: rgba(79, 70, 229, .18);
}

.cobeg-solo-badge-pending {
  color: var(--solo-warning);
  background: rgba(217, 119, 6, .08);
  border-color: rgba(217, 119, 6, .18);
}

.cobeg-solo-match-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  padding: 16px 18px;
}

.cobeg-solo-team-card {
  display: flex;
  min-width: 0;
  align-items: center;
  border: 1px solid var(--solo-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  padding: 13px;
}

.cobeg-solo-player {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.cobeg-solo-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(79, 70, 229, .16), rgba(124, 58, 237, .16));
  color: var(--solo-primary);
  font-weight: 1000;
  flex: none;
}

.cobeg-solo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cobeg-solo-player-copy {
  min-width: 0;
}

.cobeg-solo-player-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: -0.015em;
}

.cobeg-solo-player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 4px;
  color: var(--solo-muted);
  font-size: 12px;
  font-weight: 750;
}

.cobeg-solo-player-meta a {
  color: var(--solo-primary);
  text-decoration: none;
  font-weight: 900;
}

.cobeg-solo-scoreboard {
  min-height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-radius: 22px;
  background: #101322;
  color: #fff;
  text-align: center;
}

.cobeg-solo-scoreboard strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.cobeg-solo-scoreboard small,
.cobeg-solo-vs {
  color: rgba(255, 255, 255, .66);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cobeg-solo-match-footer {
  padding: 0 18px 16px;
}

.cobeg-solo-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--solo-muted);
  font-size: 12px;
  font-weight: 800;
}

.cobeg-solo-match-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--solo-surface-2);
}

.cobeg-solo-score-panel {
  border-top: 1px solid var(--solo-border);
  background: var(--solo-surface-2);
}

.cobeg-solo-score-panel summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 950;
  color: var(--solo-text);
}

.cobeg-solo-score-form {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.cobeg-solo-score-head,
.cobeg-solo-score-row {
  display: grid;
  grid-template-columns: 1fr 92px 20px 92px;
  gap: 10px;
  align-items: center;
}

.cobeg-solo-score-head {
  color: var(--solo-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cobeg-solo-score-head span:first-child {
  grid-column: 2;
  text-align: center;
}

.cobeg-solo-score-head span:last-child {
  grid-column: 4;
  text-align: center;
}

.cobeg-solo-score-label {
  font-weight: 900;
}

.cobeg-solo-score-label em {
  margin-left: 7px;
  color: var(--solo-primary);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.cobeg-solo-score-sep {
  text-align: center;
  color: var(--solo-muted);
  font-weight: 1000;
}

.cobeg-solo-notice {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: var(--solo-radius-md);
  border: 1px solid var(--solo-border);
  background: var(--solo-surface);
  font-weight: 850;
}

.cobeg-solo-notice-success,
.cobeg-solo-inline-success {
  color: var(--solo-success);
  background: rgba(22, 163, 74, .08);
  border-color: rgba(22, 163, 74, .18);
}

.cobeg-solo-notice-error,
.cobeg-solo-inline-warning {
  color: var(--solo-danger);
  background: rgba(220, 38, 38, .07);
  border-color: rgba(220, 38, 38, .18);
}

.cobeg-solo-inline-warning,
.cobeg-solo-inline-success {
  margin: 0 18px 18px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 14px;
  font-weight: 850;
}

.cobeg-solo-empty {
  margin: 18px;
  padding: 34px 20px;
  text-align: center;
  border: 1px dashed var(--solo-border-strong);
  border-radius: 24px;
  background: var(--solo-surface-2);
}

.cobeg-solo-empty-icon {
  font-size: 36px;
}

.cobeg-solo-empty h3 {
  margin: 10px 0 6px;
  letter-spacing: -0.03em;
}

.cobeg-solo-empty p {
  margin: 0;
  color: var(--solo-muted);
}

.cobeg-solo-error-card {
  padding: 22px;
  border: 1px solid rgba(220, 38, 38, .18);
  border-radius: 24px;
  background: rgba(220, 38, 38, .06);
  color: var(--solo-danger);
  font-weight: 850;
}

@media (max-width: 860px) {
  .cobeg-solo-shell {
    width: min(100% - 20px, 1180px);
  }

  .cobeg-solo-hero,
  .cobeg-solo-panel-head,
  .cobeg-solo-match-topline {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cobeg-solo-hero-stat {
    text-align: left;
  }

  .cobeg-solo-tabs,
  .cobeg-solo-filters {
    grid-template-columns: 1fr;
  }

  .cobeg-solo-live-search {
    min-width: 0;
  }

  .cobeg-solo-match-body {
    grid-template-columns: 1fr;
  }

  .cobeg-solo-scoreboard {
    min-height: 76px;
    order: 2;
  }

  .cobeg-solo-team-card:first-child {
    order: 1;
  }

  .cobeg-solo-team-card:last-child {
    order: 3;
  }

  .cobeg-solo-score-head,
  .cobeg-solo-score-row {
    grid-template-columns: minmax(0, 1fr) 76px 14px 76px;
  }
}

@media (max-width: 520px) {
  .cobeg-solo-hero,
  .cobeg-solo-panel-head,
  .cobeg-solo-filters,
  .cobeg-solo-list {
    padding: 14px;
  }

  .cobeg-solo-match-topline,
  .cobeg-solo-match-body,
  .cobeg-solo-match-footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cobeg-solo-player {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .cobeg-solo-avatar {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .cobeg-solo-score-form {
    padding-left: 12px;
    padding-right: 12px;
  }

  .cobeg-solo-score-row {
    grid-template-columns: 1fr 64px 10px 64px;
    gap: 7px;
  }
}
