.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary {
  color: #03111a;
  background: linear-gradient(135deg, #40c4ff, #6f80ff);
}
.btn-secondary {
  color: #c8d5ff;
  background: rgba(41, 182, 255, 0.1);
  border: 1px solid rgba(41, 182, 255, 0.32);
}
.btn-danger { background: rgba(248, 113, 113, 0.15); border: 1px solid rgba(248, 113, 113, 0.55); }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(148, 163, 184, 0.2);
}
.pill.success { background: rgba(74, 222, 128, 0.16); color: #86efac; }
.pill.warn { background: rgba(251, 191, 36, 0.17); color: #facc15; }
.pill.info { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }

.product-card {
  display: grid;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid rgba(98, 119, 170, 0.35);
  border-radius: 14px;
  padding: 14px;
}
.product-card img {
  height: 140px;
  object-fit: contain;
  background: rgba(14, 20, 36, 0.7);
  border-radius: 10px;
  padding: 8px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.stars { color: #facc15; letter-spacing: 1px; font-size: 14px; }
.price { font-size: 1.2rem; font-weight: 700; }
.small { font-size: 13px; color: var(--text-muted); }

.toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 8px;
  z-index: 80;
}
.toast {
  background: #08101f;
  border: 1px solid #24427a;
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 220px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 18px;
}
.modal {
  width: min(760px, 100%);
  background: #0b1222;
  border: 1px solid #2b3f6f;
  border-radius: 14px;
  padding: 18px;
  max-height: 90vh;
  overflow: auto;
}

.skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, #13203a 25%, #1e3156 38%, #13203a 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); }

.premium-card {
  border: 1px solid rgba(99, 125, 188, 0.42);
  background: linear-gradient(180deg, rgba(18, 27, 47, 0.96), rgba(13, 20, 36, 0.92));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.product-media-wrap {
  position: relative;
}
.product-media-wrap .pill {
  position: absolute;
  left: 10px;
  top: 10px;
}

.price-row,
.cta-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.compact { gap: 6px; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.product-quick-view {
  width: min(900px, 96vw);
  border: 1px solid rgba(99, 125, 188, 0.45);
  background: #090f1d;
  border-radius: 16px;
  color: var(--text);
}
.product-quick-view::backdrop { background: rgba(2, 6, 23, .78); }
.quick-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
}
.quick-shell img {
  width: 100%;
  border-radius: 12px;
  background: rgba(17, 24, 39, .85);
  min-height: 260px;
  object-fit: contain;
}
.quick-close {
  position: absolute;
  right: 16px;
  top: 16px;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gallery-row img {
  border-radius: 10px;
  border: 1px solid rgba(99, 125, 188, 0.45);
  cursor: pointer;
  background: rgba(8, 14, 30, 0.75);
  height: 90px;
  object-fit: contain;
}

.deal-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(8, 14, 30, 0.8);
}

.file-btn input { display: none; }
.admin-deals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}
.admin-deals label { display: grid; gap: 6px; }

@media (max-width: 900px) {
  .quick-shell { grid-template-columns: 1fr; }
}
