.tips-app {
  background:
    radial-gradient(circle at 16% 12%, rgba(104, 228, 95, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(46, 124, 255, 0.24), transparent 30rem),
    linear-gradient(135deg, #07111f 0%, #101826 48%, #172538 100%);
}

.tips-header {
  margin-bottom: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(104, 228, 95, 0.28);
  border-radius: 999px;
  color: #dfffe0;
  background: rgba(104, 228, 95, 0.12);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.login-shell,
.tips-main {
  width: min(1180px, calc(100% - 40px));
  margin: 46px auto 0;
}

.login-shell {
  min-height: auto;
}

.login-panel,
.panel {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-panel {
  width: min(620px, 100%);
  margin: 24px auto 64px;
  padding: 36px;
}

.login-form,
.admin-form,
.stack-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-form label,
.admin-form label,
.stack-form label {
  display: grid;
  gap: 8px;
  color: #d7e6f7;
  font-weight: 750;
}

.login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(7, 17, 31, 0.78);
  font: inherit;
}

.admin-form input:disabled {
  color: rgba(215, 230, 247, 0.58);
  cursor: not-allowed;
  background: rgba(7, 17, 31, 0.46);
}

.login-form input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.admin-form input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.stack-form input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.table-input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  padding: 4px;
  background-color: rgba(210, 255, 120, 0.92);
  filter: invert(1);
  cursor: pointer;
}

.stack-form input[type="file"] {
  padding: 10px 14px;
  cursor: pointer;
}

.stack-form input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #06101d;
  background: var(--lime);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-form textarea {
  min-height: 132px;
  padding: 14px;
  resize: vertical;
}

.stack-form textarea {
  min-height: 190px;
  padding: 14px;
  resize: vertical;
}

.form-error,
.form-note,
.empty-state {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 750;
}

.form-error {
  color: #ffe8e8;
  background: rgba(255, 80, 80, 0.18);
}

.form-note {
  color: #d9ffd8;
  background: rgba(104, 228, 95, 0.16);
}

.empty-state {
  color: #d7e6f7;
  background: rgba(255,255,255,0.07);
}

.tips-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.tips-title h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.04em;
}

.tips-title .lead {
  margin-top: 16px;
}

.title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.player-title-side {
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 14px;
  min-width: min(360px, 34vw);
}

.player-hero-badge {
  width: clamp(190px, 24vw, 280px);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.player-hero-badge img {
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0.92;
  filter: saturate(0.94) drop-shadow(0 16px 34px rgba(104, 228, 95, 0.18));
}

.player-title-actions {
  justify-content: flex-end;
}

.panel {
  padding: 24px;
  margin-bottom: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0;
  color: var(--text);
}

.panel-head span {
  color: var(--muted);
  font-weight: 800;
}

.panel-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.tournament-nav-panel {
  padding-bottom: 18px;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-subnav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 0 16px;
  color: #d7e6f7;
  background: rgba(7, 17, 31, 0.44);
  font-weight: 900;
  text-decoration: none;
}

.admin-subnav a.active,
.admin-subnav a:hover {
  color: #06101d;
  background: var(--lime);
}

.inner-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.inner-subnav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 0 13px;
  color: #d7e6f7;
  background: rgba(7, 17, 31, 0.38);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.inner-subnav a.active,
.inner-subnav a:hover {
  color: #06101d;
  background: var(--lime);
}

.admin-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form .wide,
.admin-form button {
  grid-column: 1 / -1;
}

.audit-filter-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  margin: 0 0 18px;
}

.audit-filter-form button,
.audit-filter-form .button {
  grid-column: auto;
  min-height: 48px;
}

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tournament-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.42);
}

.tournament-card h2 {
  margin: 14px 0 16px;
  font-size: 1.25rem;
}

.tournament-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.tournament-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tournament-card dt {
  color: var(--muted);
}

.tournament-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

.dashboard-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.dashboard-card:hover,
.dashboard-card.active {
  border-color: rgba(178, 255, 97, 0.46);
  background: rgba(104, 228, 95, 0.1);
  transform: translateY(-2px);
}

.player-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.player-summary h2 {
  margin: 14px 0 8px;
}

.player-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.player-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.player-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.player-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.player-summary dd {
  margin: 0;
  color: var(--text);
  font-weight: 950;
  text-align: right;
}

.my-stat-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 20px;
  border: 1px solid rgba(178, 255, 97, 0.24);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(104, 228, 95, 0.14), rgba(46, 124, 255, 0.1)),
    rgba(7, 17, 31, 0.52);
}

.my-stat-card-title {
  display: grid;
  align-content: center;
  gap: 6px;
}

.my-stat-card-title span {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.my-stat-card-title strong {
  color: var(--text);
  font-size: 1.35rem;
}

.my-stat-card dl {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.my-stat-card dl div {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(7, 17, 31, 0.42);
}

.my-stat-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.my-stat-card dd {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 950;
}

.personal-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.personal-stats-grid article {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(178, 255, 97, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(7, 17, 31, 0.42);
}

.personal-stats-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.personal-stats-grid strong {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats-grid article {
  display: grid;
  gap: 8px;
  min-height: 92px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(7, 17, 31, 0.42);
}

.stats-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.stats-grid strong {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.1;
}

.section-subtitle {
  margin: 22px 0 10px;
  color: var(--text);
}

.compact-stats-table th,
.compact-stats-table td {
  white-space: nowrap;
  text-align: right;
}

.compact-stats-table th:first-child,
.compact-stats-table td:first-child {
  text-align: left;
}

.personal-stat-table {
  width: min(720px, 100%);
}

.personal-stat-table th,
.personal-stat-table td {
  padding: 12px 14px;
}

.personal-stat-table th {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.personal-stat-table td {
  color: var(--text);
  font-weight: 900;
}

.excel-stat-table th,
.excel-stat-table td {
  white-space: nowrap;
  text-align: center;
}

.excel-stat-table tbody th,
.excel-stat-table thead th:first-child {
  color: #06101d;
  background: rgba(255, 223, 167, 0.92);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
}

.excel-stat-table thead th {
  color: #06101d;
  background: rgba(255, 223, 167, 0.92);
  text-transform: none;
  letter-spacing: 0;
}

.compact-summary {
  margin-top: 18px;
}

.money-plus {
  color: #a9ff8b;
  font-weight: 900;
}

.money-minus {
  color: #ffb1b1;
  font-weight: 900;
}

.money-zero {
  color: #ff6f6f;
  font-weight: 900;
}

.match-count-row th,
.match-count-row td {
  color: var(--text);
  background: rgba(255,255,255,0.06);
  font-weight: 950;
}

.team-group-a td { background: rgba(255, 223, 167, 0.16); }
.team-group-b td { background: rgba(190, 231, 183, 0.16); }
.team-group-c td { background: rgba(180, 204, 242, 0.16); }
.team-group-d td { background: rgba(208, 196, 228, 0.16); }
.team-group-e td { background: rgba(143, 194, 119, 0.18); }
.team-group-f td { background: rgba(222, 173, 163, 0.18); }
.team-group-g td { background: rgba(116, 188, 222, 0.14); }
.team-group-h td { background: rgba(240, 214, 108, 0.14); }
.team-group-i td { background: rgba(196, 151, 221, 0.15); }
.team-group-j td { background: rgba(111, 205, 174, 0.14); }
.team-group-k td { background: rgba(232, 139, 126, 0.15); }
.team-group-l td { background: rgba(150, 177, 245, 0.15); }

.chart-panel {
  margin-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
}

.chart-panel h3 {
  margin: 0;
  color: var(--text);
}

.chart-wrap {
  overflow-x: auto;
}

.line-chart {
  display: block;
  min-width: 820px;
  width: 100%;
  height: auto;
}

.chart-grid {
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
}

.chart-axis {
  stroke: rgba(255,255,255,0.22);
  stroke-width: 1.2;
}

.chart-zero {
  stroke: rgba(255,255,255,0.42);
  stroke-width: 1.4;
}

.chart-line {
  fill: none;
  stroke: var(--line-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-label,
.chart-date {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chart-date {
  text-anchor: middle;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 12px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.chart-legend i {
  width: 14px;
  height: 4px;
  border-radius: 999px;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #06101d;
  background: #d2ff78;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-archived {
  color: #d7e6f7;
  background: rgba(255,255,255,0.12);
}

.status-finished {
  color: #07111f;
  background: #8ec5ff;
}

.status-settled {
  color: #06101d;
  background: #9ff36c;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: #d7e6f7;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}

th {
  color: var(--lime);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-link {
  color: var(--lime);
  font-weight: 900;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}

.betting-list,
.played-list {
  display: grid;
  gap: 14px;
}

.bet-card,
.played-match {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.42);
}

.bet-card.locked {
  background: rgba(255,255,255,0.05);
}

.match-meta,
.played-match-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.match-meta time,
.played-match-head time {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.bet-card h3,
.played-match h3 {
  margin: 12px 0 0;
  color: var(--text);
}

.bet-card h3 span {
  color: var(--muted);
  font-size: 0.9rem;
}

.played-match h3 span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin: 0 8px;
  border-radius: 999px;
  padding: 0 12px;
  color: #06101d;
  background: var(--lime);
  font-size: 0.95rem;
  font-weight: 950;
}

.bet-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.bet-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.bet-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(7, 17, 31, 0.78);
  font: inherit;
  font-weight: 950;
  text-align: center;
}

.bet-form > span {
  align-self: center;
  color: var(--muted);
  font-weight: 950;
}

.bet-save-status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.bet-save-status:empty {
  display: none;
}

.bet-form.is-saving {
  opacity: 0.76;
}

.bet-form.is-saved .bet-save-status {
  color: #9ff36c;
}

.bet-form.has-error .bet-save-status {
  color: #ffb0b0;
}

.bet-form.is-dirty .bet-save-status {
  color: #ffd878;
}

.bet-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.prediction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.prediction-chip {
  display: grid;
  gap: 4px;
  min-height: 84px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px;
  color: #d7e6f7;
  background: rgba(255,255,255,0.06);
}

.prediction-chip.outcome-hit {
  border-color: rgba(104, 228, 95, 0.36);
  background: rgba(104, 228, 95, 0.14);
}

.prediction-chip.exact-hit {
  border-color: rgba(178, 255, 97, 0.6);
  background: rgba(104, 228, 95, 0.28);
}

.prediction-chip strong {
  color: var(--text);
}

.prediction-chip span {
  font-size: 1.18rem;
  font-weight: 950;
}

.prediction-chip small {
  color: var(--muted);
  font-weight: 850;
}

.table-input {
  width: 100%;
  min-width: 120px;
  min-height: 38px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(7, 17, 31, 0.78);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.table-input[type="datetime-local"] {
  min-width: 180px;
}

.table-input-small {
  min-width: 78px;
}

.table-input:disabled {
  color: rgba(215, 230, 247, 0.62);
  cursor: not-allowed;
  background: rgba(7, 17, 31, 0.38);
}

.phase-select.phase-playoff {
  color: #06101d;
  background: #9ff36c;
}

.phase-select.phase-final {
  color: #06101d;
  background: #d2ff78;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 150px;
  white-space: normal;
}

.match-save-status {
  display: block;
  margin-top: 6px;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: normal;
}

.result-action-status {
  flex-basis: 100%;
  min-height: 18px;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: normal;
}

.result-action-status .settlement-note:not(:empty) + .result-save-status:not(:empty)::before {
  content: " · ";
}

.result-action-status.has-error,
.match-save-status.has-error {
  color: #ffaaaa;
}

.score-inputs {
  display: grid;
  grid-template-columns: 64px auto 64px;
  gap: 8px;
  align-items: center;
}

.score-inputs span,
.muted-inline {
  color: var(--muted);
  font-weight: 900;
}

.score-input {
  min-width: 64px;
  text-align: center;
}

.results-table td {
  vertical-align: middle;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(178, 255, 97, 0.42);
  border-radius: 999px;
  padding: 0 12px;
  color: #06101d;
  background: var(--lime);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
}

.mini-button.secondary {
  color: #d7e6f7;
  background: rgba(255,255,255,0.1);
}

.mini-button.danger {
  border-color: rgba(255, 110, 110, 0.5);
  color: #ffe8e8;
  background: rgba(255, 80, 80, 0.2);
}

.locked-note {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: rgba(255,255,255,0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.is-hidden {
  display: none !important;
}

.played-match-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.match-detail-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(178, 255, 97, 0.18);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(104, 228, 95, 0.12), rgba(46, 124, 255, 0.08)),
    rgba(7, 17, 31, 0.42);
}

.match-detail-hero h3 {
  margin: 12px 0 6px;
  color: var(--text);
  font-size: 1.45rem;
}

.match-detail-hero h3 span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin: 0 8px;
  border-radius: 999px;
  padding: 0 12px;
  color: #06101d;
  background: var(--lime);
  font-size: 1rem;
  font-weight: 950;
}

.match-detail-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.common-tip-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.audit-table td {
  max-width: 280px;
  vertical-align: top;
  white-space: normal;
}

.playoff-panel {
  border-color: rgba(104, 228, 95, 0.24);
}

.playoff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.playoff-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.42);
}

.playoff-card.final-card {
  border-color: rgba(178, 255, 97, 0.42);
  background:
    linear-gradient(135deg, rgba(104, 228, 95, 0.18), rgba(7, 17, 31, 0.42) 58%),
    rgba(7, 17, 31, 0.42);
}

.playoff-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.playoff-card-head h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.15rem;
}

.playoff-card-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.playoff-card-head span {
  align-self: flex-start;
  min-width: 52px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #06101d;
  background: var(--lime);
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
}

.playoff-form {
  gap: 12px;
  margin-top: 0;
}

.phase-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #d7e6f7;
  background: rgba(255,255,255,0.1);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.phase-playoff {
  color: #06101d;
  background: #9ff36c;
}

.phase-final {
  color: #06101d;
  background: #d2ff78;
}

.playoff-row td {
  background: rgba(104, 228, 95, 0.06);
}

.final-row td {
  background: rgba(178, 255, 97, 0.12);
}

.danger-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.button.danger {
  border-color: rgba(255, 110, 110, 0.46);
  color: #ffe8e8;
  background: rgba(255, 80, 80, 0.18);
}

.button.danger:hover {
  background: rgba(255, 80, 80, 0.26);
}

.compact-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.compact-form button {
  min-height: 48px;
}

.tipari-panel-head {
  align-items: center;
}

.tipari-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tipari-panel-badge img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  opacity: 0.72;
  filter: saturate(0.88) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}

.profile-panel {
  max-width: 820px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-password-box {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.34);
}

.profile-password-box h3 {
  margin: 0;
  color: var(--text);
}

.rules-text {
  margin: 18px 0 20px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #d7e6f7;
  background: rgba(7, 17, 31, 0.36);
  font-weight: 750;
  line-height: 1.7;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.rules-grid article,
.rules-explainer {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(7, 17, 31, 0.38);
}

.rules-grid article {
  padding: 16px;
}

.rules-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
}

.rules-grid strong {
  color: var(--text);
  font-size: 1.08rem;
}

.rules-explainer {
  margin-top: 20px;
  padding: 18px;
  border-color: rgba(104, 228, 95, 0.18);
  background:
    linear-gradient(135deg, rgba(104, 228, 95, 0.1), rgba(7, 17, 31, 0.38) 58%),
    rgba(7, 17, 31, 0.38);
}

.rules-explainer h3 {
  margin: 0 0 12px;
  color: var(--text);
}

.rules-explainer ul {
  margin: 0;
  padding-left: 20px;
  color: #d7e6f7;
  font-weight: 750;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .tips-title,
  .admin-form,
  .audit-filter-form,
  .tournament-grid,
  .playoff-grid,
  .rules-grid,
  .compact-form,
  .player-summary,
  .prediction-grid,
  .common-tip-grid,
  .stats-grid,
  .personal-stats-grid,
  .profile-form-grid,
  .my-stat-card,
  .my-stat-card dl {
    grid-template-columns: 1fr;
  }

  .title-actions {
    justify-content: flex-start;
  }

  .player-title-side {
    justify-items: start;
    min-width: 0;
  }

  .player-hero-badge {
    width: min(260px, 100%);
    justify-content: flex-start;
  }

  .player-hero-badge img {
    max-width: 190px;
    max-height: 110px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bet-form {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .bet-form button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .login-shell,
  .tips-main {
    width: min(100% - 24px, 1180px);
    margin-top: 28px;
  }

  .login-panel,
  .panel {
    padding: 18px;
  }

  .match-meta,
  .played-match-head,
  .match-detail-hero {
    flex-direction: column;
  }

  .played-match-actions {
    justify-items: start;
  }

  .played-match h3 span {
    margin: 8px 0;
  }
}
