/* ═══════════════════════════════════════════════════════
   WM 2026 TIPPSPIEL — Styles
   ═══════════════════════════════════════════════════════ */

/* ── Auth ── */

.tp-auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 32px 16px;
}

.tp-auth-card {
  width: 100%;
  max-width: 420px;
  padding: 44px 40px;
  border: 1px solid rgba(254, 223, 0, 0.2);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tp-auth-logo { font-size: 2.8rem; text-align: center; margin-bottom: 14px; }

.tp-auth-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.tp-auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
  line-height: 1.5;
}

.tp-form { display: grid; gap: 18px; }

.tp-field { display: grid; gap: 7px; }

.tp-field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: Oswald, sans-serif;
}

.tp-field input,
.tp-field select,
.tp-select {
  height: 46px;
  padding: 0 14px;
  border: 2px solid rgba(254, 223, 0, 0.2);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.tp-field input:focus,
.tp-field select:focus,
.tp-select:focus { border-color: var(--gold); }

.tp-error {
  padding: 10px 14px;
  border: 1px solid rgba(200, 16, 46, 0.4);
  border-radius: 4px;
  background: rgba(200, 16, 46, 0.12);
  color: #ff7070;
  font-size: 0.85rem;
  line-height: 1.5;
}

.tp-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: var(--gold);
  color: var(--fg-on-yellow);
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--warm-gold);
  transition: opacity 0.15s;
}
.tp-btn-primary:hover { opacity: 0.88; }
.tp-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.tp-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border: 2px solid rgba(254, 223, 0, 0.3);
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.tp-btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.tp-auth-toggle {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.tp-link {
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Dashboard ── */

.tp-dashboard {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px 0;
}

.tp-dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tp-logout-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s;
}
.tp-logout-btn:hover { color: #fff; border-color: rgba(255,255,255,0.35); }

.tp-welcome {
  margin-bottom: 26px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.tp-section-title {
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

.tp-groups-list { display: grid; gap: 8px; margin-bottom: 28px; }

.tp-group-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(254, 223, 0, 0.15);
  border-radius: 4px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.tp-group-card:hover {
  border-color: rgba(254, 223, 0, 0.4);
  background: rgba(254, 223, 0, 0.04);
}

.tp-group-card-info { flex: 1; display: grid; gap: 4px; }
.tp-group-card-info strong { font-size: 1rem; color: #ffffff; }
.tp-group-card-info span { font-size: 0.75rem; color: var(--muted); }

.tp-group-card-stats { display: flex; align-items: center; gap: 12px; }
.tp-rank { font-family: Oswald, sans-serif; font-size: 0.85rem; color: var(--gold); }
.tp-points { font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.tp-arrow { color: var(--muted); font-size: 1.4rem; line-height: 1; }

.tp-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 24px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 4px;
  line-height: 1.8;
  font-size: 0.9rem;
}

.tp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Subpage (Erstellen / Beitreten) ── */

.tp-subpage {
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 0;
}

.tp-back {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  margin-bottom: 22px;
  transition: color 0.15s;
}
.tp-back:hover { color: #ffffff; }

.tp-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 26px;
  line-height: 1.6;
}

/* ── Bedingungen-Box ── */

.tp-conditions-box {
  border: 1px solid rgba(254, 223, 0, 0.15);
  border-radius: 4px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.15);
  margin-bottom: 4px;
}

.tp-cond-title {
  font-family: Oswald, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 20px;
}
.tp-cond-title span {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.tp-cond-block {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tp-cond-block:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }

.tp-cond-label {
  font-size: 0.83rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
}

.tp-radio-group { display: grid; gap: 9px; }
.tp-radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  cursor: pointer;
}
.tp-radio-group input[type=radio] {
  accent-color: var(--gold);
  width: 16px; height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.tp-select { width: 100%; }

.tp-pts-grid { display: grid; gap: 10px; }
.tp-pts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tp-pts-row > span {
  flex: 1;
  font-size: 0.87rem;
  color: rgba(255,255,255,0.65);
}

.tp-pts-input { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tp-pts-input input {
  width: 58px;
  height: 38px;
  padding: 0 8px;
  border: 2px solid rgba(254,223,0,0.25);
  border-radius: 4px;
  background: rgba(0,0,0,0.3);
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}
.tp-pts-input > span { font-size: 0.8rem; color: var(--muted); }

.tp-bonus-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tp-toggle-label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.tp-toggle-label input[type=checkbox] {
  accent-color: var(--green);
  width: 17px; height: 17px;
  cursor: pointer;
}

/* ── Code-Input ── */

.tp-code-input {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: Oswald, sans-serif;
  font-size: 1.4rem !important;
  text-align: center;
}

/* ── Gruppen-Ansicht ── */

.tp-group-view {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 0;
}

.tp-gv-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.tp-gv-code {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
  font-family: Oswald, sans-serif;
}
.tp-gv-code strong { color: var(--gold); letter-spacing: 0.12em; }

.tp-invite-banner {
  padding: 18px 20px;
  border: 1px solid rgba(0,154,68,0.4);
  border-radius: 4px;
  background: rgba(0,154,68,0.08);
  margin-bottom: 24px;
}
.tp-invite-banner--quiet {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.tp-invite-banner strong { color: var(--green); display: block; margin-bottom: 6px; }
.tp-invite-banner p { color: var(--muted); font-size: 0.87rem; margin: 0 0 12px; }

.tp-invite-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.tp-invite-url {
  flex: 1;
  padding: 8px 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-family: monospace;
  word-break: break-all;
  min-width: 0;
}
.tp-copy-btn {
  padding: 8px 16px;
  border: 1px solid rgba(254,223,0,0.3);
  border-radius: 4px;
  background: transparent;
  color: var(--gold);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}
.tp-copy-btn:hover { background: rgba(254,223,0,0.08); }

.tp-coming-soon {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed rgba(254,223,0,0.18);
  border-radius: 4px;
}
.tp-cs-icon { font-size: 3.2rem; margin-bottom: 18px; }
.tp-coming-soon h3 { margin-bottom: 10px; }
.tp-coming-soon p { color: var(--muted); line-height: 1.7; font-size: 0.92rem; }

/* ── Ladeindikator ── */

.tp-loading {
  text-align: center;
  padding: 80px;
  color: var(--muted);
  font-size: 1rem;
}

/* ── Mobile ── */

@media (max-width: 760px) {
  .tp-auth-card { padding: 32px 22px; }
  .tp-actions { grid-template-columns: 1fr; }
  .tp-gv-header { flex-direction: column; align-items: flex-start; }
  .tp-gv-code { text-align: left; }
  .tp-pts-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tp-dash-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

.tp-tipping-view {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 0;
}

.tp-tip-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.tp-tip-mode-info {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
  font-family: Oswald, sans-serif;
}

.tp-tipping-cta {
  margin: 24px 0;
}

.tp-tipping-cta .tp-btn-primary {
  width: 100%;
  font-size: 1rem;
  height: 56px;
}

.tp-tip-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tp-tip-tabs::-webkit-scrollbar { display: none; }

.tp-tip-tab {
  flex-shrink: 0;
  padding: 10px 18px;
  border: 2px solid rgba(254, 223, 0, 0.22);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.65);
  font-family: Oswald, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.tp-tip-tab:hover {
  border-color: rgba(254, 223, 0, 0.5);
  color: #ffffff;
}

.tp-tip-tab.active {
  border-color: var(--gold);
  color: var(--fg-on-yellow);
  background: var(--gold);
}

.tp-md-progress {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(254, 223, 0, 0.3);
  border-radius: 3px;
  font-family: Oswald, sans-serif;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tp-tip-list {
  display: grid;
  gap: 12px;
}

.tp-match-tip {
  padding: 16px 20px;
  border: 1px solid rgba(254, 223, 0, 0.18);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  background: var(--panel);
  transition: border-color 0.15s;
}

.tp-match-tip.is-locked {
  border-left-color: rgba(255, 255, 255, 0.2);
  opacity: 0.7;
}

.tp-match-tip-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tp-match-tip-date {
  font-family: Oswald, sans-serif;
  font-size: 0.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tp-match-tip-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.tp-match-tip-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.tp-tip-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.tp-tip-team-home { justify-content: flex-end; text-align: right; }
.tp-tip-team-away { justify-content: flex-start; }

.tp-tip-team .flag-dot {
  width: 24px; height: 24px; font-size: 1rem; flex-shrink: 0;
}

.tp-tip-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-score {
  width: 50px;
  height: 44px;
  padding: 0;
  border: 2px solid rgba(254, 223, 0, 0.3);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.tp-score::-webkit-outer-spin-button,
.tp-score::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.tp-score:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(254, 223, 0, 0.2);
}
.tp-score:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tp-tip-colon {
  color: var(--muted);
  font-family: Oswald, sans-serif;
  font-size: 1.5rem;
}

.tp-tip-status {
  font-size: 0.78rem;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 6px;
}

.tp-tip-status[data-status="saved"]  { color: var(--green); }
.tp-tip-status[data-status="saving"] { color: var(--muted); }
.tp-tip-status[data-status="error"]  { color: #ff7070; }
.tp-tip-status[data-status="locked"] { color: rgba(255,255,255,0.4); }
.tp-tip-status[data-status="empty"]  { color: var(--muted); }

.tp-placeholder {
  text-align: center;
  padding: 60px 30px;
  border: 1px dashed rgba(254, 223, 0, 0.2);
  border-radius: 4px;
}
.tp-placeholder-icon { font-size: 3rem; margin-bottom: 16px; }
.tp-placeholder h3 { margin-bottom: 10px; }
.tp-placeholder p { color: var(--muted); line-height: 1.6; }

@media (max-width: 760px) {
  .tp-tip-header { flex-direction: column; align-items: flex-start; }
  .tp-tip-mode-info { text-align: left; }
  .tp-match-tip-row {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  .tp-tip-team-home, .tp-tip-team-away {
    justify-content: center; text-align: center;
  }
  .tp-tip-inputs { justify-content: center; }
}

/* ── Champion-Tipp ── */
.tp-champion-section { display: grid; gap: 20px; }

.tp-champion-intro {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: rgba(254, 223, 0, 0.05);
}

.tp-champion-current {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 2px solid var(--green);
  border-radius: 4px;
  background: rgba(0, 154, 68, 0.1);
}
.tp-champion-current span {
  font-family: Oswald, sans-serif;
  font-size: 0.78rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tp-champion-current strong {
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.tp-champion-search { display: grid; gap: 7px; }
.tp-champion-search span {
  font-family: Oswald, sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.tp-champion-search input {
  height: 42px;
  padding: 0 14px;
  border: 2px solid rgba(254, 223, 0, 0.25);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}
.tp-champion-search input:focus { border-color: var(--gold); }

.tp-champion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.tp-champion-team {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(254, 223, 0, 0.18);
  border-radius: 4px;
  background: var(--panel);
  color: #fff;
  font-size: 0.88rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.tp-champion-team:hover {
  border-color: rgba(254, 223, 0, 0.5);
  background: rgba(254, 223, 0, 0.05);
}
.tp-champion-team.is-selected {
  border-color: var(--gold);
  background: rgba(254, 223, 0, 0.15);
  font-weight: 700;
}
.tp-champion-team .flag-dot {
  width: 24px; height: 24px; font-size: 1rem; flex-shrink: 0;
}

/* ── Leaderboard ── */
.tp-leaderboard-section { margin: 28px 0; }

.tp-leaderboard-title {
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.tp-leaderboard {
  border: 1px solid rgba(254, 223, 0, 0.18);
  border-radius: 4px;
  background: var(--panel);
  overflow: hidden;
}

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

.tp-lb-table thead th {
  text-align: left;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--gold);
}

.tp-lb-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}
.tp-lb-table tbody tr:last-child td { border-bottom: 0; }
.tp-lb-table tbody tr.is-me { background: rgba(254, 223, 0, 0.06); }

.tp-lb-rank {
  width: 50px;
  text-align: center;
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-weight: 700;
}

.tp-lb-tips, .tp-lb-points {
  text-align: right;
  width: 80px;
}

.tp-lb-points {
  font-family: Oswald, sans-serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
}

.tp-lb-you {
  margin-left: 8px;
  padding: 2px 7px;
  background: var(--gold);
  color: var(--fg-on-yellow);
  border-radius: 2px;
  font-family: Oswald, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 760px) {
  .tp-champion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-lb-table thead th, .tp-lb-table tbody td { padding: 10px 12px; }
}

.tp-day-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(254, 223, 0, 0.25);
  flex-wrap: wrap;
}

.tp-day-header strong {
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tp-day-count {
  font-family: Oswald, sans-serif;
  font-size: 0.75rem;
  color: var(--gold);
  padding: 4px 10px;
  border: 1px solid rgba(254, 223, 0, 0.3);
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tp-md-progress { display: none; }

.tp-ko-intro {
  padding: 14px 18px;
  margin-bottom: 24px;
  border-left: 3px solid var(--gold);
  background: rgba(254, 223, 0, 0.05);
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.tp-ko-intro strong { color: var(--gold); }

.tp-ko-round-section {
  margin-bottom: 28px;
}

.tp-ko-round-title {
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(254, 223, 0, 0.25);
}

.tp-ko-grid {
  display: grid;
  gap: 10px;
}
.tp-ko-grid--r32 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-ko-grid--r16 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-ko-grid--qf  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tp-ko-grid--sf  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-ko-grid--final { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin: 0 auto; }

.tp-ko-match {
  padding: 12px 14px;
  border: 1px solid rgba(254, 223, 0, 0.18);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  background: var(--panel);
  display: grid;
  gap: 6px;
}

.tp-ko-match-head {
  font-family: Oswald, sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.tp-ko-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
}
.tp-ko-slot .flag-dot {
  width: 20px; height: 20px; font-size: 0.85rem; flex-shrink: 0;
}

.tp-ko-slot.tp-ko-empty {
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  font-size: 0.78rem;
}

.tp-ko-vs {
  font-family: Oswald, sans-serif;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 2px 0;
}

@media (max-width: 760px) {
  .tp-ko-grid--r32, .tp-ko-grid--r16, .tp-ko-grid--qf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tp-ko-grid--sf { grid-template-columns: 1fr; }
}

.tp-ko-match.is-locked {
  opacity: 0.65;
  border-left-color: rgba(255, 255, 255, 0.2);
}

.tp-ko-match.tp-ko-pending {
  opacity: 0.5;
  border-left-color: rgba(255, 255, 255, 0.15);
}

.tp-ko-pending-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 4px;
}

.tp-ko-tip-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 6px 0;
}

.tp-ko-team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
}
.tp-ko-team:first-child { justify-content: flex-end; text-align: right; }
.tp-ko-team:last-child  { justify-content: flex-start; }
.tp-ko-team strong { font-weight: 700; color: #ffffff; }
.tp-ko-team .flag-dot { width: 18px; height: 18px; font-size: 0.8rem; flex-shrink: 0; }

.tp-ko-scores {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tp-ko-score {
  width: 36px;
  height: 32px;
  border: 1px solid rgba(254, 223, 0, 0.3);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--gold);
  font-family: Oswald, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.tp-ko-score::-webkit-outer-spin-button,
.tp-ko-score::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tp-ko-score:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(254, 223, 0, 0.2);
}
.tp-ko-score:disabled { opacity: 0.5; cursor: not-allowed; }

.tp-ko-colon {
  color: var(--muted);
  font-family: Oswald, sans-serif;
  font-size: 1rem;
}

.tp-ko-extra-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.tp-ko-outcome,
.tp-ko-winner {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(254, 223, 0, 0.22);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  font-size: 0.78rem;
  outline: none;
  cursor: pointer;
}
.tp-ko-outcome:disabled, .tp-ko-winner:disabled { opacity: 0.5; }

.tp-ko-status {
  margin-top: 6px;
  font-size: 0.72rem;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.tp-ko-status[data-status="saved"]  { color: var(--green); }
.tp-ko-status[data-status="saving"] { color: var(--muted); }
.tp-ko-status[data-status="error"]  { color: #ff7070; }
.tp-ko-status[data-status="locked"] { color: rgba(255, 255, 255, 0.4); }
.tp-ko-status[data-status="empty"]  { color: var(--muted); }

@media (max-width: 760px) {
  .tp-ko-tip-row {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }
  .tp-ko-team:first-child,
  .tp-ko-team:last-child { justify-content: center; text-align: center; }
  .tp-ko-scores { justify-content: center; }
}


/* ═══════════════════════════════════════════════════════
   PREMIUM / FAN-PASS UI
   ═══════════════════════════════════════════════════════ */

/* ── Header-Bereich mit Premium-Badge ── */
.tp-dash-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tp-premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #f5c518 0%, #ffaa00 100%);
  color: #1a1200;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tp-upgrade-teaser {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: transparent;
  border: 1px solid rgba(245, 197, 24, 0.5);
  color: #f5c518;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.tp-upgrade-teaser:hover {
  background: rgba(245, 197, 24, 0.12);
  border-color: #f5c518;
}

/* ── Gesperrter Button ── */
.tp-btn-locked {
  opacity: 0.7;
  background: var(--muted, #666) !important;
  border-color: transparent !important;
  cursor: pointer;
}
.tp-btn-locked:hover {
  opacity: 0.9;
}

/* ── Upgrade-Banner im Dashboard ── */
.tp-upgrade-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(245,197,24,0.1) 0%, rgba(255,170,0,0.06) 100%);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 8px;
}

.tp-upgrade-banner-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-upgrade-banner-content strong {
  color: #f5c518;
  font-size: 0.9rem;
}
.tp-upgrade-banner-content span {
  font-size: 0.78rem;
  color: var(--muted, #aaa);
}

.tp-upgrade-banner-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: 0.82rem;
}

/* ── Upgrade-Overlay & Modal ── */
.tp-upgrade-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  animation: tp-fade-in 0.15s ease;
}

@keyframes tp-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.tp-upgrade-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px 32px;
  background: var(--panel, #0f1e12);
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: 12px;
  text-align: center;
  animation: tp-modal-in 0.2s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

@keyframes tp-modal-in {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.tp-upgrade-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: var(--muted, #aaa);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s;
}
.tp-upgrade-close:hover { color: #fff; }

.tp-upgrade-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.tp-upgrade-modal h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f5c518;
  margin: 0 0 8px;
}

.tp-upgrade-feature {
  font-size: 0.85rem;
  color: var(--muted, #aaa);
  margin: 0 0 6px;
}

.tp-upgrade-sub {
  font-size: 0.9rem;
  color: var(--text, #eee);
  margin: 0 0 20px;
}

.tp-upgrade-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tp-upgrade-list li {
  font-size: 0.88rem;
  color: var(--text, #eee);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tp-upgrade-cta {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f5c518 0%, #e6a500 100%);
  color: #1a1200;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tp-upgrade-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,197,24,0.35);
}
.tp-upgrade-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tp-upgrade-note {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: var(--muted, #888);
}

/* ── Erfolgs-Banner nach Zahlung ── */
.tp-premium-success {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  animation: tp-slide-up 0.3s ease;
}

@keyframes tp-slide-up {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

.tp-premium-success-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1a3a1e 0%, #0d2210 100%);
  border: 1px solid rgba(245,197,24,0.4);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.tp-premium-success-inner span:first-child { font-size: 1.5rem; }
.tp-premium-success-inner strong { color: #f5c518; display: block; }
.tp-premium-success-inner span:not(:first-child) { font-size: 0.82rem; color: #ccc; }
.tp-premium-success-inner button {
  background: none; border: none; color: #888; cursor: pointer; font-size: 1rem;
}

/* ── Theme-Lock-Badge auf Theme-Cards ── */
.theme-card.theme-locked {
  position: relative;
  opacity: 0.72;
}
.theme-lock-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.9rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
  pointer-events: none;
}

/* ── Code-Unlock im Upgrade-Modal ── */
.tp-code-box {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-code-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--muted, #888);
  text-align: center;
}

.tp-code-row {
  display: flex;
  gap: 8px;
}

.tp-code-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 0.9rem;
  font-family: monospace;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color 0.15s;
}

.tp-code-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.tp-code-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.10);
}

.tp-code-btn {
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.tp-code-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.tp-code-error {
  margin: 6px 0 0;
  min-height: 1em;
  font-size: 0.75rem;
  color: #f87171;
  text-align: center;
}
