/* ---------- Shop (shop/index.html) – baut auf site.css auf ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav-links a[aria-current="page"] {
  color: var(--gold);
}
.mobile-menu a[aria-current="page"] {
  color: var(--gold);
}

/* Kopfbereich */
.shop-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.shop-hero > .container {
  position: relative;
}
.shop-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(255, 200, 61, 0.16), transparent 70%),
    radial-gradient(40% 70% at 10% 100%, rgba(88, 101, 242, 0.1), transparent 70%);
  /* läuft nach unten weich in die Seite aus */
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.shop-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 13px 13px, rgba(255, 255, 255, 0.06) 0 4px, transparent 4.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(70% 100% at 80% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 100% at 80% 0%, #000, transparent 75%);
}
.shop-hero .ghost {
  top: 58%;
  left: auto;
  right: -0.06em;
}
.shop-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font: italic 800 0.82rem/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s ease;
}
.shop-back:hover {
  color: var(--text);
}
.shop-back .icon {
  transition: transform 0.25s var(--ease);
}
.shop-back:hover .icon {
  transform: translateX(-3px);
}
.shop-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 6.5vw, 4.6rem);
  line-height: 0.95;
}
.shop-hero h1 .line {
  display: block;
}
.shop-hero h1 .gold {
  color: var(--gold);
}

.shop-section {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

/* Highlight-Produkte */
.shop-featured {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.shop-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line));
  border-radius: var(--r-panel);
  background: linear-gradient(135deg, rgba(255, 200, 61, 0.06), transparent 50%), var(--surface);
  box-shadow: 0 30px 80px -40px rgba(255, 200, 61, 0.35);
}
.shop-feature:hover::after {
  opacity: 1;
}
.shop-feature-media {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
  background: var(--bg-alt);
}
.shop-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.shop-feature:hover .shop-feature-img {
  transform: scale(1.04);
}
.shop-feature-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.shop-feature-body h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1;
}
.shop-feature-body h2 a {
  text-decoration: none;
}
.shop-feature-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.shop-feature-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  width: 100%;
  margin-top: auto;
  padding-top: 0.75rem;
}
.shop-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Preis */
.price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
}
.price-now {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text);
  font: italic 900 1.35rem/1 var(--font);
  font-stretch: 108%;
  font-variant-numeric: tabular-nums;
}
.price.is-request .price-now {
  color: var(--muted);
  font-size: 1rem;
}
.price-was {
  color: var(--faint);
  font-size: 0.95rem;
}
.price .label {
  align-self: center;
}
.icon.robux {
  width: 0.8em;
  height: 0.8em;
  color: var(--gold);
}
.shop-feature .price-now,
.pd-price .price-now {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

/* Häkchen-Liste */
.shop-checks {
  display: grid;
  gap: 0.45rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}
.shop-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.shop-checks .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.05rem;
  padding: 4px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
}

/* Werkzeugleiste */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.shop-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: italic 800 0.82rem/1 var(--font);
  font-stretch: 106%;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.shop-chip span {
  min-width: 1.4rem;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  background: var(--surface-hi);
  color: var(--faint);
  font-style: normal;
  font-size: 0.72rem;
  text-align: center;
}
.shop-chip:hover {
  color: var(--text);
  border-color: var(--faint);
}
.shop-chip.is-on {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--gold-ink);
}
.shop-chip.is-on span {
  background: rgba(27, 20, 3, 0.15);
  color: var(--gold-ink);
}
.shop-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.shop-search {
  position: relative;
  display: block;
}
.shop-search .icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  translate: 0 -50%;
  color: var(--faint);
  pointer-events: none;
}
.shop-search input,
.shop-sort select {
  height: 44px;
  border: 2px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--bg-alt);
  color: var(--text);
  font: 500 0.95rem var(--font);
}
.shop-search input {
  width: min(280px, 100%);
  padding: 0 0.9rem 0 2.5rem;
}
.shop-sort select {
  padding: 0 2.2rem 0 0.9rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23b2b0a9'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 14px;
  cursor: pointer;
}
.shop-search input:focus,
.shop-sort select:focus {
  border-color: var(--gold);
  outline: none;
}

/* Produktkarten */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.shop-card {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.25s ease, box-shadow 0.35s var(--ease);
}
.shop-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  box-shadow: 0 24px 50px -28px rgba(255, 200, 61, 0.45);
}
.shop-card:hover::after {
  opacity: 1;
}
.shop-card.is-featured {
  border-color: color-mix(in srgb, var(--gold) 30%, var(--line));
}
.shop-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}
.shop-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  background: var(--bg-alt);
}
.shop-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.shop-card:hover .shop-card-img {
  transform: scale(1.05);
}
.shop-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(120% 90% at 30% 15%, rgba(255, 200, 61, 0.14), transparent 60%), var(--bg-alt);
  color: rgba(255, 200, 61, 0.5);
}
.shop-ph .icon {
  width: 30%;
  height: auto;
  max-width: 96px;
}
.shop-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 0.65rem;
  border-radius: 4px;
  background: var(--gold);
  color: var(--gold-ink);
  font: italic 900 0.74rem/1 var(--font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.shop-badge.b-sale {
  background: #ef4444;
  color: #fff;
}
.shop-badge.b-new {
  background: #3ecf6e;
  color: #06210f;
}
.shop-badge.b-limited {
  background: #8b5cf6;
  color: #fff;
}
.shop-badge.b-hot {
  background: #ef7f35;
  color: #fff;
}
.shop-card-status {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.55rem;
  background: rgba(13, 13, 15, 0.82);
  color: var(--text);
  font: italic 900 0.8rem/1 var(--font);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.shop-card.is-off .shop-card-img {
  filter: grayscale(0.7) brightness(0.75);
}
.shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.2rem 1.25rem;
}
.shop-card-cat {
  color: var(--gold);
  font: italic 800 0.72rem/1.2 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shop-card-name {
  font: italic 900 1.3rem/1.1 var(--font);
  font-stretch: 110%;
  text-transform: uppercase;
}
.shop-card-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.shop-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.85rem;
}
.shop-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font: italic 800 0.78rem/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.shop-card-more .icon-move {
  transition: transform 0.25s var(--ease);
}
.shop-card:hover .shop-card-more {
  color: var(--gold);
}
.shop-card:hover .shop-card-more .icon-move {
  transform: translateX(3px);
}

/* Lade-Platzhalter */
.shop-card.is-skeleton {
  pointer-events: none;
}
.shop-card.is-skeleton .shop-card-media,
.shop-card.is-skeleton .sk {
  background: linear-gradient(90deg, var(--surface-hi), #26262c, var(--surface-hi));
  background-size: 200% 100%;
  animation: shop-sk 1.3s linear infinite;
}
.shop-card.is-skeleton .sk {
  display: block;
  height: 14px;
  border-radius: 4px;
}
.shop-card.is-skeleton .sk.short {
  width: 55%;
}
@keyframes shop-sk {
  to {
    background-position: -200% 0;
  }
}

/* Karten werden nacheinander eingeblendet */
@media (prefers-reduced-motion: no-preference) {
  .shop-grid.is-in .shop-card:not(.is-skeleton) {
    animation: shop-in 0.6s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 60ms);
  }
}
@keyframes shop-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.shop-state {
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.shop-state > .icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
}
.shop-state p {
  max-width: 52ch;
  margin: 0;
}

/* So läuft der Kauf */
.shop-how {
  padding-top: 0;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.how-steps li {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  background: var(--surface);
  counter-increment: step;
}
.how-steps li::before {
  content: "0" counter(step);
  position: absolute;
  right: 1.25rem;
  top: 0.9rem;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.1);
  font: italic 900 3.4rem/1 var(--font);
}
.how-steps li:hover::after {
  opacity: 1;
}
.how-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
}
.how-icon .icon {
  width: 24px;
  height: 24px;
}
.how-steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}
.how-steps p {
  margin: 0;
  color: var(--muted);
}

/* Produkt-Ansicht */
html.has-dialog {
  overflow: hidden;
}
.product-dialog {
  width: min(1080px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
}
.product-dialog::backdrop {
  background: rgba(5, 5, 7, 0.78);
  backdrop-filter: blur(6px);
}
@media (prefers-reduced-motion: no-preference) {
  .product-dialog[open] {
    animation: pd-in 0.45s var(--ease);
  }
  .product-dialog[open]::backdrop {
    animation: pd-fade 0.3s ease;
  }
}
@keyframes pd-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}
@keyframes pd-fade {
  from {
    opacity: 0;
  }
}
.pd-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 12px 12px -52px 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(23, 23, 27, 0.9);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.15s ease, transform 0.2s var(--ease);
}
.pd-close:hover {
  background: var(--surface-hi);
  transform: rotate(90deg);
}
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.pd-gallery {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
}
.pd-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-alt);
}
.pd-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  img.pd-img {
    animation: pd-fade 0.35s ease;
  }
}
.pd-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(13, 13, 15, 0.7);
  color: var(--text);
  cursor: pointer;
  translate: 0 -50%;
  backdrop-filter: blur(6px);
  transition: background-color 0.15s ease;
}
.pd-nav:hover {
  background: rgba(13, 13, 15, 0.92);
}
.pd-prev {
  left: 10px;
}
.pd-next {
  right: 10px;
}
.pd-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 2px;
}
.pd-thumb {
  flex: none;
  width: 76px;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--bg-alt);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-thumb:hover,
.pd-thumb.is-on {
  opacity: 1;
}
.pd-thumb.is-on {
  border-color: var(--gold);
}
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.25rem) 1rem;
}
.pd-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  min-height: 24px;
  padding-right: 48px;
}
.pd-info h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1;
}
.pd-info h3 {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}
.pd-summary {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.pd-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pd-buy {
  flex: 1;
  min-width: 0;
}
.pd-buy span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn.is-off {
  cursor: not-allowed;
  opacity: 0.65;
}
.btn.is-off:hover,
.btn.is-off:active {
  transform: none;
}
.pd-share {
  position: relative;
  width: 52px;
  height: 52px;
}
.pd-share:hover {
  color: var(--text);
  border-color: var(--faint);
}
.shop-flash {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  animation: pd-fade 0.2s ease;
}
.pd-hint {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--discord) 50%, var(--line));
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.12);
  font-size: 0.92rem;
}
.pd-desc {
  color: var(--muted);
}
.pd-desc p {
  margin: 0 0 0.8rem;
}
.pd-desc p:last-child {
  margin: 0;
}
.pd-secure {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.85rem;
}
.pd-secure .icon {
  margin-top: 0.15rem;
  color: var(--muted);
}

@media (max-width: 899px) {
  .shop-feature,
  .pd-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .shop-feature-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .pd-info {
    padding: 0.25rem 1.25rem 1.5rem;
  }
  .how-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .shop-toolbar,
  .shop-tools {
    width: 100%;
  }
  .shop-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .shop-chip {
    flex: none;
  }
  .shop-search {
    flex: 1;
    min-width: 0;
  }
  .shop-sort select {
    max-width: 150px;
  }
  .shop-search input {
    width: 100%;
  }
  .product-dialog {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .pd-gallery {
    padding: 0;
  }
  .pd-stage {
    border-radius: 0;
  }
  .pd-thumbs {
    padding: 0 1rem;
  }
  .shop-feature-actions,
  .shop-feature-actions .btn {
    width: 100%;
  }
}

/* ---------- Sofort-Download & Download-Ansicht ---------- */
.shop-instant {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.12);
  color: #8fbcff;
  font: italic 800 0.72rem/1.2 var(--font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.shop-instant .icon {
  width: 14px;
  height: 14px;
}
.pd-instant {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.dl-dialog {
  width: min(560px, calc(100% - 2rem));
}
.dl-body {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.dl-center {
  justify-items: center;
  text-align: center;
  padding-block: 2.5rem;
}
.dl-center p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
}
.dl-center h2,
.dl-hero h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.05;
}
.dl-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 40px;
}
.dl-hero p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.dl-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(62, 207, 110, 0.14);
  color: #3ecf6e;
}
.dl-icon .icon {
  width: 28px;
  height: 28px;
}
.dl-icon.is-err {
  background: rgba(239, 68, 68, 0.14);
  color: #ff6b6b;
}
@media (prefers-reduced-motion: no-preference) {
  .dl-hero .dl-icon {
    animation: dl-pop 0.6s var(--ease) both;
  }
}
@keyframes dl-pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}
.dl-spin {
  width: 42px;
  height: 42px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: dl-rot 0.8s linear infinite;
}
@keyframes dl-rot {
  to {
    rotate: 360deg;
  }
}
.dl-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-alt);
}
.dl-img {
  flex: none;
  width: 84px;
  height: 63px;
  object-fit: cover;
  border-radius: 8px;
}
.dl-img.shop-ph .icon {
  width: 32px;
}
.dl-info {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
.dl-info b {
  font: italic 900 1.1rem/1.15 var(--font);
  text-transform: uppercase;
}
.dl-file {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.dl-file .icon {
  flex: none;
  color: #8fbcff;
}
.dl-meta {
  color: var(--faint);
  font-size: 0.85rem;
}
.dl-btn {
  width: 100%;
  height: 58px;
  font-size: 1rem;
}
.dl-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.dl-left {
  margin: -0.4rem 0 0;
  text-align: center;
}
.dl-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--text);
  font-size: 0.9rem;
}
.dl-note .icon {
  flex: none;
  margin-top: 0.15rem;
  color: var(--gold);
}
.dl-hash {
  color: var(--faint);
  font-size: 0.82rem;
}
.dl-hash summary {
  cursor: pointer;
}
.dl-hash code {
  display: block;
  margin-top: 0.4rem;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
@media (max-width: 640px) {
  .dl-dialog {
    height: auto;
    max-height: 100dvh;
  }
}.pd-instant .shop-instant {
  justify-self: start;
}


/* ---------- Kundenkonto ---------- */
.nav-account {
  gap: 0.5rem;
  max-width: 220px;
}
.nav-account .acct-name {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-transform: none;
}
.acct-ava,
.acct-ava-lg {
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-hi);
}
.acct-ava {
  width: 22px;
  height: 22px;
}
.acct-ava-lg {
  width: 56px;
  height: 56px;
}
.acct-initial {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.8em;
}
.acct-ava-lg.acct-initial {
  font-size: 1.5rem;
}
.mobile-account {
  margin-bottom: 0.6rem;
}
@media (max-width: 959px) {
  .nav-actions .nav-account {
    display: none;
  }
}
.acct-dialog {
  width: min(600px, calc(100% - 2rem));
}
.acct-body h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.4rem 0 -0.4rem;
  font: italic 900 1rem/1.2 var(--font);
  text-transform: uppercase;
}
.acct-body h3 small {
  font: 400 0.82rem/1.2 var(--font);
  text-transform: none;
  color: var(--faint);
}
.acct-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 40px;
}
.acct-hero h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.1;
}
.acct-hero p {
  display: grid;
  margin: 0.25rem 0 0;
  color: var(--muted);
}
.acct-hero img {
  flex: none;
  border-radius: 10px;
}
.acct-via {
  color: var(--faint);
  font-size: 0.85rem;
}
.acct-providers {
  display: grid;
  gap: 0.6rem;
}
.acct-provider {
  justify-content: center;
  width: 100%;
  height: 52px;
  gap: 0.7rem;
  text-transform: none;
  font-size: 1rem;
}
.acct-google {
  background: #fff;
  color: #1f1f1f;
  border-color: #fff;
}
.acct-google:hover {
  background: #ececec;
}
.acct-google .icon {
  width: 20px;
  height: 20px;
}
.acct-none,
.acct-empty,
.acct-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.acct-hint {
  color: var(--faint);
}
.acct-error {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  color: #ffb4b4;
  font-size: 0.9rem;
}
.acct-error .icon {
  flex: none;
  margin-top: 0.15rem;
}
.acct-notice {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: rgba(35, 165, 90, 0.14);
  color: #9be7b8;
  font-size: 0.9rem;
}
.acct-notice .icon { flex: none; margin-top: 0.15rem; }
/* Kundennummer (zum Kopieren) */
.acct-nr {
  position: relative;
  display: grid;
  justify-items: end;
  margin-left: auto;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  font: inherit;
  cursor: copy;
}
.acct-nr small { color: var(--faint); font-size: 0.72rem; }
.acct-nr b { font-family: ui-monospace, Consolas, monospace; font-size: 0.95rem; letter-spacing: 0.02em; }
.acct-nr:hover { border-color: var(--gold, #ffc83d); }
/* verbundene Anmeldungen */
.acct-logins { display: grid; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.acct-login {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  padding: 0.45rem 0.6rem 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.acct-login .icon, .acct-login .discord-logo { width: 18px; height: 18px; flex: none; }
.acct-login b { flex: 1; font-weight: 600; }
.acct-ok { display: inline-flex; align-items: center; gap: 0.35rem; color: #6ee7a0; font-size: 0.88rem; }
.acct-ok .icon { width: 15px; height: 15px; }
.acct-unlink { margin-left: 0.25rem; }
.acct-unlink.is-danger { color: #ff7a7e; border-color: rgba(255, 122, 126, 0.45); }
/* E-Mail + Passwort */
.acct-or { display: flex; align-items: center; gap: 0.8rem; color: var(--faint); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.acct-tabs button { height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; }
.acct-tabs button:hover { color: var(--text, #fff); }
.acct-tabs button.is-on { background: rgba(255, 255, 255, 0.08); color: var(--text, #fff); }
.acct-form { display: grid; gap: 0.75rem; }
.acct-form-inline { padding: 0.9rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.acct-field { display: grid; gap: 0.35rem; font-size: 0.88rem; font-weight: 600; }
.acct-field small { color: var(--faint); font-weight: 500; }
.acct-field input { width: 100%; height: 46px; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.25); color: inherit; font: inherit; font-size: 1rem; font-weight: 500; }
.acct-field input:focus { outline: none; border-color: var(--gold, #ffc83d); box-shadow: 0 0 0 3px rgba(255, 200, 61, 0.18); }
.acct-pw { position: relative; }
.acct-pw input { padding-right: 2.8rem; }
.acct-eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer; }
.acct-eye:hover, .acct-eye.is-on { color: var(--text, #fff); background: rgba(255, 255, 255, 0.06); }
.acct-eye .icon { width: 18px; height: 18px; }
.acct-pwhint { margin: -0.3rem 0 0; color: var(--faint); font-size: 0.8rem; }
.acct-pwhint.is-ok { color: #6ee7a0; }
.acct-pwhint.is-ok::before { content: "✓ "; }
.acct-check { display: flex; gap: 0.55rem; align-items: flex-start; color: var(--muted); font-size: 0.85rem; line-height: 1.45; cursor: pointer; }
.acct-check input { width: 18px; height: 18px; margin-top: 0.1rem; flex: none; accent-color: var(--gold, #ffc83d); }
.acct-check a { color: var(--gold, #ffc83d); }
.acct-link { justify-self: start; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.acct-link:hover { color: var(--text, #fff); }
.acct-submit { width: 100%; height: 50px; justify-content: center; font-size: 1rem; }
.acct-submit.is-busy { opacity: 0.7; pointer-events: none; }
.acct-form-row { display: flex; gap: 0.5rem; }
.acct-warn { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0 0 0.6rem; padding: 0.7rem 0.9rem; border-radius: 10px; background: rgba(245, 184, 46, 0.12); color: #ffd98a; font-size: 0.88rem; }
.acct-warn > span { flex: 1 1 220px; }
.acct-warn .icon { flex: none; }
.pd-ticket { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.pd-ticket > .icon { flex: none; }
.pd-ticket span { flex: 1 1 220px; }
.pd-ticket .btn { position: relative; font-family: ui-monospace, Consolas, monospace; }
@media (max-width: 560px) {
  .acct-hero { flex-wrap: wrap; }
  .acct-nr { margin-left: 0; justify-items: start; }
}
.acct-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.acct-lic,
.acct-dev {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-alt);
}
.acct-lic-img {
  flex: none;
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
}
.acct-lic-info,
.acct-dev > div {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 0.15rem;
}
.acct-lic-info b,
.acct-dev b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.acct-lic-info span,
.acct-dev span {
  color: var(--faint);
  font-size: 0.85rem;
}
.dl-license.is-todo {
  display: grid;
  grid-template-columns: auto 1fr;
}
.dl-license.is-todo .acct-providers {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
}
@media (max-width: 520px) {
  .acct-lic {
    flex-wrap: wrap;
  }
  .acct-lic .btn {
    width: 100%;
  }
}
/* Konto: Empfehlungslink & Hilfe */
.acct-ref { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-hi, rgba(255,255,255,.03)); }
.acct-ref p { margin: 0; color: var(--ink-2, #b5b5bf); font-size: 14px; }
.acct-ref small { color: var(--ink-3, #8b8b96); font-size: 12.5px; }
.acct-ref-link { display: flex; gap: 8px; }
.acct-ref-in { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong, #333); background: var(--bg, #0d0d0f); color: inherit; font: 13px ui-monospace, monospace; }
.acct-codes { list-style: none; display: grid; gap: 6px; margin: 4px 0 0; padding: 0; }
.acct-codes li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 10px; border: 1px dashed rgba(255, 200, 61, .45); }
.acct-codes li b { color: var(--gold, #ffc83d); font-family: ui-monospace, monospace; letter-spacing: .05em; }
.acct-codes li span { color: var(--ink-3, #8b8b96); font-size: 12.5px; }
.acct-codes li.is-used { opacity: .5; }
.acct-links { display: flex; flex-wrap: wrap; gap: 8px; }
