* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Poppins, sans-serif;
  background: black;
  color: #fff;
}

/* ---------- HEADER ---------- */
.header {
  text-align: center; 
}

.header img {
  height: 300px;
  width: 600px;
}

.telegram {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: -4rem;
  margin-bottom: 2rem;
}

.telegram img {
  width: 160px;
  padding-left: 20px;
}

/* ---------- TABS ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 10px 18px;
  border-radius: 20px;
  background: #1a1f4d;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.tab-btn.active {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
}

/* ---------- GRID ---------- */
.products {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px 60px;
}

.grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 20px;
}

.grid.active {
  display: grid;
}

/* ---------- CARD ---------- */
.card {
  width: 16rem;
  background: #12163a;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-title {
  font-size: 16px;
  line-height: 1.4;
  min-height: 38px;
  text-align: center;
}

/* ---------- BUTTON + PRICE ---------- */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.buy-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
}

.price {
  font-weight: 700;
  font-size: 17px;
  color: #08ff08;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: #12163a;
  width: 90%;
  max-width: 420px;
  padding: 25px;
  border-radius: 10px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
}

.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
}

.modal-btn {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  color: #fff;
  cursor: pointer;
}

.modal-input input {
  width: 350px;
  height: 30px;
}

.qty-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-box input {
  width: 60px;
  text-align: center;
}

.pay-option {
  width: 100%;
  margin: 8px 0;
  padding: 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.wallet-address {
  background: #0b0f2b;
  padding: 10px;
  word-break: break-all;
  border-radius: 6px;
  margin: 10px 0;
}

.back-btn {
  background: none;
  color: #aaa;
  border: none;
  margin-top: 10px;
  cursor: pointer;
}

.copy-btn {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.modal-box {
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-step {
  animation: fadeStep 0.25s ease;
}

@keyframes fadeStep {
  from { opacity: 0; }
  to { opacity: 1; }
}


    @media (max-width: 768px) {
      .card {
  width: 20rem;
  background: #12163a;
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-left: 1.5rem;
}

.header img {
  height: 200px;
  width: 400px;
}

.modal-box {
  background: #12163a;
  width: 90%;
  max-width: 420px;
  padding: 25px;
  border-radius: 10px;
  position: relative;
}
    }