.spt-admin-wrap,
.spt-shortcode-wrap {
  --spt-blue: #103d6e;
  --spt-blue-2: #0a79bf;
  --spt-green: #06a65b;
  --spt-red: #e33c3c;
  --spt-yellow: #ffd447;
  --spt-dark: #071827;
  --spt-border: rgba(13, 49, 85, .12);
  --spt-shadow: 0 18px 45px rgba(9, 32, 55, .12);
  color: var(--spt-dark);
  max-width: 1460px;
}

.spt-admin-wrap * ,
.spt-shortcode-wrap * {
  box-sizing: border-box;
}

.spt-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 190px;
  padding: 34px 38px;
  margin: 22px 0;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 212, 71, .92), transparent 19%),
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, .25), transparent 23%),
    linear-gradient(135deg, #072a4d 0%, #0b76bb 44%, #09a85e 100%);
  box-shadow: var(--spt-shadow);
}

.spt-hero:before {
  content: "";
  position: absolute;
  inset: auto -40px -90px -40px;
  height: 160px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 20px, rgba(255, 255, 255, .03) 20px 40px);
  transform: rotate(-3deg);
}

.spt-hero > * {
  position: relative;
  z-index: 1;
}

.spt-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.spt-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(32px, 5vw, 60px);
  line-height: .96;
  letter-spacing: -.04em;
}

.spt-hero p {
  margin: 0;
  max-width: 660px;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
}

.spt-ball {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 56px;
  box-shadow: inset 0 0 35px rgba(255, 255, 255, .18);
}

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

.spt-stat-card,
.spt-input-card,
.spt-panel {
  border: 1px solid var(--spt-border);
  background: rgba(255, 255, 255, .96);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(7, 24, 39, .07);
}

.spt-stat-card {
  padding: 20px;
}

.spt-stat-card strong {
  display: block;
  color: var(--spt-blue);
  font-size: 34px;
  line-height: 1;
}

.spt-stat-card span {
  display: block;
  margin-top: 7px;
  color: #577083;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.spt-input-grid,
.spt-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.spt-input-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(10, 121, 191, .06), rgba(6, 166, 91, .04)),
    #fff;
}

.spt-input-card h2,
.spt-panel h2 {
  margin: 0;
  color: var(--spt-dark);
  font-size: 23px;
  line-height: 1.15;
}

.spt-input-card p {
  margin: 8px 0 13px;
  color: #5d7384;
}

.spt-input-card textarea {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  border: 1px solid #cfdce6;
  border-radius: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  background: #fbfdff;
  resize: vertical;
}

.spt-input-card textarea:focus,
.spt-partner:focus {
  outline: none;
  border-color: var(--spt-blue-2);
  box-shadow: 0 0 0 3px rgba(10, 121, 191, .16);
}

.spt-primary-button,
.spt-mini-button,
.spt-restore {
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, box-shadow .16s ease;
}

.spt-primary-button {
  margin-top: 12px !important;
  padding: 7px 18px !important;
  background: linear-gradient(135deg, var(--spt-blue-2), var(--spt-green)) !important;
  color: #fff !important;
  box-shadow: 0 9px 18px rgba(10, 121, 191, .24) !important;
}

.spt-mini-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  background: #0d793f;
  color: #fff;
  white-space: nowrap;
}

.spt-mini-button:hover,
.spt-primary-button:hover,
.spt-restore:hover {
  transform: translateY(-1px);
  opacity: .93;
}

.spt-panel {
  overflow: hidden;
  padding: 0;
}

.spt-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 22px 22px 16px;
  border-bottom: 1px solid rgba(13, 49, 85, .08);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(240, 247, 252, .75));
}

.spt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.spt-badge-red { background: var(--spt-red); }
.spt-badge-blue { background: var(--spt-blue-2); }
.spt-badge-green { background: var(--spt-green); }
.spt-badge-yellow { background: var(--spt-yellow); color: #17354f; }
.spt-badge-light { background: #eaf2f8; color: #24435c; }

.spt-groups {
  padding: 16px;
}

.spt-category {
  margin-bottom: 14px;
  border: 1px solid rgba(13, 49, 85, .10);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.spt-category:last-child {
  margin-bottom: 0;
}

.spt-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #f5f9fc;
  border-bottom: 1px solid rgba(13, 49, 85, .08);
}

.spt-category-title strong {
  color: var(--spt-blue);
  font-size: 18px;
  letter-spacing: .06em;
}

.spt-category-title span {
  color: #5b7283;
  font-size: 13px;
  font-weight: 800;
}

.spt-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
}

.spt-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 8px 7px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(10, 121, 191, .28);
  background: linear-gradient(180deg, #fff, #f7fbfe);
}

.spt-chip strong {
  color: var(--spt-blue);
  font-size: 15px;
}

.spt-chip small {
  display: block;
  color: #687d8c;
  margin-top: 1px;
  max-width: 180px;
}

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

.spt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.spt-table th,
.spt-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(13, 49, 85, .08);
  vertical-align: middle;
  text-align: left;
}

.spt-table th {
  color: #526b7e;
  background: #fbfdff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.spt-table tr:last-child td {
  border-bottom: 0;
}

.spt-table td:first-child strong {
  display: inline-flex;
  min-width: 58px;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: #edf7ff;
  color: var(--spt-blue);
}

.spt-partner {
  width: 100%;
  min-width: 160px;
  padding: 8px 10px;
  border: 1px solid #cfdce6;
  border-radius: 12px;
}

.spt-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  white-space: nowrap;
}

.spt-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fde7e7;
  color: #b91c1c;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.spt-muted {
  color: #93a4b0;
}

.spt-empty,
.spt-note {
  margin: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #f5f9fc;
  color: #5c7180;
  font-weight: 700;
}

.spt-archive-panel {
  margin-top: 18px;
}

.spt-done-list {
  padding: 14px 16px 16px;
}

.spt-done-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(13, 49, 85, .08);
}

.spt-done-item:last-child {
  border-bottom: 0;
}

.spt-done-item em {
  color: #60798b;
}

.spt-restore {
  margin-left: auto;
  padding: 7px 10px;
  background: #eef5f9;
  color: #24435c;
}

.spt-is-done {
  opacity: .45;
  transform: scale(.98);
  transition: opacity .16s ease, transform .16s ease;
}

.is-loading {
  opacity: .6;
  pointer-events: none;
}


.spt-lookup-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 18px;
  align-items: center;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid var(--spt-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 4% 10%, rgba(255, 212, 71, .26), transparent 22%),
    linear-gradient(135deg, rgba(10, 121, 191, .08), rgba(6, 166, 91, .08)),
    #fff;
  box-shadow: 0 12px 30px rgba(7, 24, 39, .07);
}

.spt-lookup-card h2 {
  margin: 8px 0 6px;
  color: var(--spt-dark);
  font-size: 26px;
  line-height: 1.1;
}

.spt-lookup-card p {
  margin: 0;
  color: #5d7384;
}

.spt-lookup-form {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.spt-lookup-input {
  width: 100%;
  min-height: 112px;
  padding: 13px 15px;
  border: 1px solid #cfdce6;
  border-radius: 18px;
  background: #fbfdff;
  color: var(--spt-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  resize: vertical;
  text-transform: uppercase;
}

.spt-lookup-input:focus {
  outline: none;
  border-color: var(--spt-blue-2);
  box-shadow: 0 0 0 3px rgba(10, 121, 191, .16);
}

.spt-lookup-result {
  grid-column: 1 / -1;
}

.spt-lookup-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #eef7ff;
  color: #385267;
}

.spt-lookup-summary strong {
  color: var(--spt-blue);
}

.spt-lookup-summary span {
  color: #526b7e;
  font-weight: 700;
}

.spt-lookup-item + .spt-lookup-item {
  margin-top: 14px;
}

.spt-lookup-message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 2px;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid rgba(13, 49, 85, .1);
  background: #f5f9fc;
}

.spt-lookup-message strong {
  font-size: 20px;
  letter-spacing: .02em;
}

.spt-lookup-message p {
  flex: 1 1 260px;
  margin: 0;
  color: #425d70;
}

.spt-lookup-message small {
  flex: 0 0 100%;
  color: #6e8393;
  font-weight: 800;
}

.spt-result-main {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.spt-result-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 7px 11px;
  border-radius: 12px;
  background: #fff;
  color: var(--spt-blue);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(13, 49, 85, .08);
}

.spt-result-player {
  color: #526b7e;
  font-weight: 800;
}

.spt-result-duplicate {
  background: #eaf6ff;
  border-color: rgba(10, 121, 191, .22);
}

.spt-result-duplicate strong {
  color: var(--spt-blue-2);
}

.spt-result-missing {
  background: #fff3f3;
  border-color: rgba(227, 60, 60, .22);
}

.spt-result-missing strong {
  color: var(--spt-red);
}

.spt-result-owned {
  background: #ecfff6;
  border-color: rgba(6, 166, 91, .24);
}

.spt-result-owned strong {
  color: var(--spt-green);
}

.spt-result-error {
  background: #fff6e2;
  border-color: rgba(255, 212, 71, .48);
}

.spt-result-error strong {
  color: #9a6500;
}

@media (max-width: 1100px) {
  .spt-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spt-input-grid,
  .spt-list-grid,
  .spt-lookup-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .spt-hero {
    padding: 24px;
    border-radius: 22px;
  }

  .spt-ball {
    display: none;
  }

  .spt-stats {
    grid-template-columns: 1fr;
  }

  .spt-panel-head,
  .spt-input-card,
  .spt-lookup-card {
    padding: 18px;
  }

  .spt-lookup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .spt-lookup-form .spt-primary-button {
    width: 100%;
  }

  .spt-table th:nth-child(2),
  .spt-table td:nth-child(2) {
    display: none;
  }
}

.spt-trade-requests-panel {
  margin: 0 0 20px;
}

.spt-request-table td {
  vertical-align: top;
}

.spt-delete-request {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fde7e7;
  color: #b91c1c;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.spt-trade-form {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(10, 121, 191, .18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(240, 248, 255, .96));
  box-shadow: 0 12px 25px rgba(7, 24, 39, .07);
}

.spt-trade-head strong {
  display: block;
  color: var(--spt-blue);
  font-size: 22px;
  line-height: 1.15;
}

.spt-trade-head p {
  margin: 6px 0 14px;
  color: #526b7e;
}

.spt-trade-form label {
  display: block;
  margin: 12px 0 7px;
  color: #385267;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.spt-trade-form input[type="text"],
.spt-trade-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #cfdce6;
  border-radius: 14px;
  background: #fff;
  color: var(--spt-dark);
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
}

.spt-trade-form textarea {
  resize: vertical;
  font-weight: 500;
}

.spt-trade-form input:focus,
.spt-trade-form textarea:focus {
  outline: none;
  border-color: var(--spt-blue-2);
  box-shadow: 0 0 0 3px rgba(10, 121, 191, .16);
}

.spt-trade-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 210px;
  overflow: auto;
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed rgba(10, 121, 191, .22);
  border-radius: 16px;
  background: #fbfdff;
}

.spt-trade-option {
  border: 1px solid rgba(13, 49, 85, .10);
  border-radius: 999px;
  background: #fff;
  color: var(--spt-blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 8px 11px;
}

.spt-trade-option:hover,
.spt-trade-option.is-selected {
  background: var(--spt-blue-2);
  color: #fff;
}

.spt-trade-selected {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 14px;
  background: #edf7ff;
  color: #486477;
  font-weight: 700;
}

.spt-trade-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spt-inline-error,
.spt-inline-note {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  font-weight: 800;
}

.spt-inline-error {
  background: #fff3f3;
  color: #b91c1c;
}

.spt-inline-note {
  background: #edf7ff;
  color: var(--spt-blue);
}

.spt-no-trade-results .spt-trade-options:after {
  content: "Keine passenden fehlenden Sticker gefunden.";
  color: #6e8393;
  font-weight: 800;
  padding: 7px;
}

@media (max-width: 700px) {
  .spt-trade-contact-grid {
    grid-template-columns: 1fr;
  }

  .spt-trade-options {
    max-height: 260px;
  }
}

.spt-batch-action {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(240px, 1fr);
  gap: 8px 12px;
  align-items: center;
  margin-top: 8px;
  padding: 12px;
  border: 1px dashed rgba(13, 49, 85, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
}

.spt-batch-action label {
  color: #385267;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.spt-batch-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfdce6;
  border-radius: 14px;
  background: #fff;
  color: var(--spt-dark);
  font-weight: 800;
}

.spt-batch-select:focus {
  outline: none;
  border-color: var(--spt-blue-2);
  box-shadow: 0 0 0 3px rgba(10, 121, 191, .16);
}

.spt-batch-item-result {
  grid-column: 1 / -1;
}

.spt-batch-footer {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: #f5f9fc;
  border: 1px solid rgba(13, 49, 85, .10);
}

.spt-batch-result {
  margin-top: 10px;
}

.spt-is-processed .spt-lookup-message {
  box-shadow: inset 0 0 0 2px rgba(6, 166, 91, .14);
}

.spt-is-processed .spt-batch-select {
  opacity: .7;
}

@media (max-width: 700px) {
  .spt-batch-action {
    grid-template-columns: 1fr;
  }
}
