:root {
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #7c3aed;
  --accent-alt: #4f46e5;
  --muted: #94a3b8;
  --glass: rgba(255, 255, 255, 0.03);
  --text: #e6eef8;
  --qr-bg: #00121a;
  --shadow: rgba(2, 6, 23, 0.6);
  --gradient-bg: linear-gradient(180deg,#071026 0%, #071829 100%);
}
* {
  box-sizing: border-box;
}

body {
  font-family: Inter, Roboto, Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-bg);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.site-header {
  background: transparent;
  padding: 16px 0;
}

.site-header.small {
  padding: 8px 0;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text);
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 24px var(--shadow);
}

.card--narrow {
  max-width: 760px;
  margin: 40px auto;
}

.center-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.slider-wrap {
  margin-top: 12px;
}

.slider-track {
  width: 100%;
  height: 48px;
  background: var(--glass);
  border-radius: 8px;
  position: relative;
}

.slider-knob {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(180deg,#fff,#e6eef8);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  cursor: grab;
}

.slider-msg {
  margin-top: 8px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(90deg,var(--accent),var(--accent-alt));
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 18px;
  padding: 20px 0;
}

.product {
  background: var(--glass);
  padding: 16px;
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.product .media {
  margin-bottom: 15px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(59,130,246,0.12), rgba(99,102,241,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bundle-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
}

.product h3 {
  margin: 12px 0 6px 0;
  font-size: 16px;
}

.meta {
  margin-top: auto;
}

.counts {
  color: var(--muted);
  margin-bottom: 6px;
}

.price {
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.old-price {
  margin-left: 8px;
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 600;
}

.actions {
  margin-top: 10px;
}

.payment-box {
  margin-top: 12px;
  background: var(--glass);
  padding: 12px;
  border-radius: 10px;
}

.qr-wrap {
  width: 200px;
  height: 200px;
  background: var(--qr-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
}

.qr-wrap img {
  max-width: 100%;
  height: auto;
}

.waiting {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
  background: var(--accent);
}

.crypto-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.crypto-btn {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: var(--glass);
  color: var(--muted);
  cursor: pointer;
}

.crypto-btn.active {
  background: linear-gradient(90deg,var(--accent),var(--accent-alt));
  color: white;
}

.mini {
  padding: 6px 8px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: var(--glass);
  color: var(--text);
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.6 }
  50% { transform: scale(1.4); opacity: 1 }
  100% { transform: scale(0.8); opacity: 0.6 }
}

@media (max-width:640px) {
  .card--narrow { margin: 18px }
  .qr-wrap { width: 160px; height: 160px }
}
