/* ==========================================================================
   EinfachAnto - Punkte-Shop Stylesheet (Clean, Modern & Elegant Dark Design)
   ========================================================================== */

/* Page Layout & Container */
.shop-wrapper {
  padding: 32px 0 80px 0;
  min-height: 80vh;
}

/* Allow footer to show on shop page */
.shop-page .footer {
  display: block !important;
}

/* ==========================================================================
   Hero Section (Clean, subtle & matte)
   ========================================================================== */
.shop-hero {
  position: relative;
  background: linear-gradient(180deg, #16161c 0%, #101014 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.shop-hero-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #f87171;
}

.shop-badge-neutral {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.shop-hero-title {
  font-size: clamp(28px, 3.8vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
}

.shop-hero-title .title-accent {
  color: #ef4444;
}

.shop-hero-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 620px;
  margin: 0;
}

/* Points Display Card in Hero */
.shop-points-card {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 240px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.shop-points-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-points-val {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-points-val .coin-icon {
  font-size: 26px;
}

.shop-points-earn-hint {
  font-size: 12px;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  padding: 0 0 2px 0;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-top: 4px;
}

.shop-points-earn-hint:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ==========================================================================
   Live Preview Section
   ========================================================================== */
.shop-preview-bar {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.shop-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.shop-preview-title {
  font-size: 14.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.shop-preview-tip {
  font-size: 12.5px;
  color: var(--muted);
}

.shop-preview-stage {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.shop-preview-box {
  position: relative;
  flex: 1;
  min-width: 280px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  overflow: hidden;
  min-height: 100px;
  display: flex;
  align-items: center;
}

.shop-preview-banner-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: all 0.3s ease;
  opacity: 0.4;
  pointer-events: none;
}

.shop-preview-profile-layer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
}

.shop-preview-avatar-wrap {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s ease;
}

.shop-preview-avatar-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0d0d12;
}

.shop-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-preview-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: all 0.2s ease;
}

.shop-preview-status {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-preview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-preview-reset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shop-preview-reset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Filter Tabs Bar (Clean & Matte)
   ========================================================================== */
.shop-filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.shop-filter-btn {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shop-filter-btn:hover {
  color: #ffffff;
  background: #1a1a22;
  border-color: rgba(255, 255, 255, 0.15);
}

.shop-filter-btn.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.shop-filter-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

/* ==========================================================================
   Grid & Product Cards (Clean, Sleek Creator Store Look)
   ========================================================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.shop-item-card {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.shop-item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.shop-item-card.equipped {
  border-color: rgba(34, 197, 94, 0.4);
}

.shop-item-card.is-merch {
  background: linear-gradient(180deg, #181820 0%, #121217 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.shop-item-card.is-merch:hover {
  border-color: rgba(239, 68, 68, 0.35);
}

/* Card Header & Badges */
.shop-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.shop-card-type-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-card-type-tag.merch {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.25);
  color: #fca5a5;
}

.shop-card-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.02em;
}

.shop-card-status-badge.active {
  background: #22c55e;
  color: #09090b;
}

.shop-card-status-badge.owned {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.shop-card-status-badge.coming-soon {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

/* Card Media / Thumbnail Area */
.shop-card-media {
  width: 100%;
  height: 170px;
  border-radius: var(--radius-sm);
  background: #0a0a0e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.shop-card-media img {
  max-width: 135px;
  max-height: 135px;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

.shop-item-card:hover .shop-card-media img {
  transform: scale(1.05);
}

/* Micro-Preview Box inside cosmetic cards */
.shop-card-cosmetic-preview {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #0a0a0e;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  position: relative;
  overflow: hidden;
}

/* Card Content Area */
.shop-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.shop-card-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.shop-card-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Card Footer: Price & Actions */
.shop-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shop-card-price {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-card-price .coin {
  font-size: 17px;
}

.shop-card-price .amount {
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
}

.shop-card-price .unit {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.shop-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Clean Buttons */
.shop-btn {
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  height: 35px;
  padding: 0 16px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
  border: none;
  text-decoration: none;
}

.shop-btn-primary {
  background: #dc2626;
  color: #ffffff;
}

.shop-btn-primary:hover:not(:disabled) {
  background: #ef4444;
}

.shop-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-btn-equip {
  background: #22c55e;
  color: #09090b;
}

.shop-btn-equip:hover {
  background: #4ade80;
}

.shop-btn-unequip {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.shop-btn-unequip:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.shop-btn-info {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.shop-btn-info:hover {
  background: rgba(255, 255, 255, 0.14);
}

.shop-btn-preview-trigger {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  width: 35px;
  height: 35px;
  padding: 0;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.shop-btn-preview-trigger:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Modals (Clean, Minimalist Dialog)
   ========================================================================== */
.shop-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.shop-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.shop-modal-card {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.shop-modal-backdrop.active .shop-modal-card {
  transform: scale(1);
}

.shop-modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.shop-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.shop-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.shop-modal-media-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
}

.shop-modal-media-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.shop-modal-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.shop-modal-title-wrap h3 {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.shop-modal-title-wrap p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.shop-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-modal-info-box {
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-modal-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.shop-modal-info-row .label {
  color: var(--muted);
  font-weight: 500;
}

.shop-modal-info-row .val {
  color: #ffffff;
  font-weight: 700;
}

.shop-modal-partnership-note {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #dc2626;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 13.5px;
  color: #f1f5f9;
  line-height: 1.55;
}

.shop-modal-footer {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .shop-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .shop-points-card {
    width: 100%;
  }
  .shop-hero {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
  .shop-preview-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .shop-preview-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .shop-filters-bar {
    overflow-x: auto;
    padding-bottom: 8px;
    flex-wrap: nowrap;
  }
  .shop-filter-btn {
    white-space: nowrap;
  }
}
