
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #071225;
  --panel: #0d1b32;
  --panel2: #112541;
  --blue: #258cff;
  --cyan: #58c5ff;
  --white: #f5f8ff;
  --muted: #91a7c4;
  --border: rgba(110,170,255,.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  padding-bottom: 100px;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.top-header {
  height: 76px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7,18,37,.97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(15px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-logo {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  object-fit: contain;
}

.brand-text h2 {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand-text h2 span,
.page-heading h1 span,
.hero h1 span,
.modal-content h2 span {
  color: var(--cyan);
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 4px;
}

.country {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 30px;
  background: var(--panel2);
  font-size: 12px;
  font-weight: 700;
}

.country span:first-child {
  font-size: 18px;
}

.main-container {
  max-width: 950px;
  margin: auto;
  padding: 22px 16px;
  min-height: 70vh;
}

.page {
  display: none;
  animation: appear .3s ease;
}

.page.active {
  display: block;
}

@keyframes appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 410px;
  padding: 42px 24px;
  border-radius: 22px;
  background: linear-gradient(135deg,#102e57,#09172e 65%,#102b4d);
  border: 1px solid var(--border);
}

.hero-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: #147aff;
  filter: blur(110px);
  opacity: .24;
  right: -70px;
  top: 30px;
}

.hero-tag, .eyebrow {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.hero h1 {
  position: relative;
  margin-top: 28px;
  font-size: clamp(32px,8vw,55px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -2px;
}

.hero p {
  color: #b3c4dd;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.8;
  margin: 18px 0 25px;
}

.primary-btn {
  border: none;
  background: linear-gradient(110deg,#1677ee,#38baff);
  color: white;
  border-radius: 10px;
  padding: 15px 19px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .6px;
  box-shadow: 0 8px 25px rgba(24,130,255,.2);
}

.primary-btn:active, .buy-btn:active {
  transform: scale(.97);
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 35px;
  font-size: 9px;
  color: #9dbbe0;
  font-weight: 700;
}

.home-info {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin-top: 16px;
}

.info-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-icon {
  font-size: 22px;
}

.info-card b, .info-card small {
  display: block;
}

.info-card b {
  font-size: 11px;
}

.info-card small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}

.home-action {
  text-align: center;
  margin-top: 35px;
  padding: 25px 15px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
}

.home-action h3 {
  font-size: 15px;
}

.home-action p {
  color: var(--muted);
  font-size: 11px;
  margin: 10px 0 18px;
}

.outline-btn {
  padding: 12px 20px;
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--blue);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
    }

/* PAGE HEADING */
.page-heading {
  margin: 12px 0 25px;
}

.page-heading h1 {
  font-size: 25px;
  font-weight: 900;
  margin-top: 10px;
}

.page-heading p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 9px;
  line-height: 1.7;
}

/* FILTER */
.category-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 5px;
}

.filter-btn {
  flex-shrink: 0;
  padding: 10px 15px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 9px;
  font-weight: 800;
}

.filter-btn.active {
  background: #153b69;
  color: white;
  border-color: var(--blue);
}

/* PRODUCT */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}

.product-image {
  height: 135px;
  position: relative;
  background: #12243c;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-label {
  position: absolute;
  top: 9px;
  left: 9px;
  background: #1684ff;
  color: white;
  font-size: 8px;
  font-weight: 900;
  padding: 6px 9px;
  border-radius: 5px;
}

.product-info {
  padding: 12px;
}

.product-info h3 {
  font-size: 13px;
  font-weight: 800;
}

.product-info p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

.price-area {
  min-height: 48px;
  margin-top: 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.price-area del {
  font-size: 10px;
  color: #8293a8;
}

.price-area strong {
  color: var(--cyan);
  font-size: 17px;
  font-weight: 900;
}

.price-area .ask-price {
  color: #ffce75;
  font-size: 12px;
}

.buy-btn {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(100deg,#1269d5,#278fff);
  color: white;
  padding: 12px 5px;
  font-size: 9px;
  font-weight: 900;
}

.ask-btn {
  background: #18314f;
  border: 1px solid #33577d;
  color: #b8d9ff;
}

/* ORDER FORM */
.order-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 17px;
  border-radius: 16px;
}

.selected-product {
  padding: 16px;
  border-radius: 12px;
  background: #10294a;
  margin-bottom: 22px;
}

.selected-product span,
.payment-product span {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.selected-product h3 {
  font-size: 15px;
  margin: 10px 0;
}

.selected-product strong {
  color: var(--cyan);
  font-size: 22px;
}

#orderForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#orderForm label {
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
}

#orderForm input,
#orderForm textarea {
  width: 100%;
  background: #08162a;
  border: 1px solid #243c5d;
  outline: none;
  color: white;
  border-radius: 9px;
  padding: 13px;
  font-size: 12px;
}

#orderForm input:focus,
#orderForm textarea:focus {
  border-color: var(--blue);
}

#orderForm input::placeholder,
#orderForm textarea::placeholder {
  color: #7086a2;
}

#orderForm textarea {
  resize: vertical;
}

.full-btn {
  width: 100%;
  margin-top: 15px;
}

.back-btn {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 9px;
  padding: 13px;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 800;
}

/* HOW TO ORDER */
.how-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.how-item > b {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
}

.how-item h3 {
  font-size: 13px;
}

.how-item p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
  line-height: 1.5;
}

/* CONTACT */
.contact-card {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 20px;
}

.contact-icon {
  font-size: 42px;
  color: var(--cyan);
}

.contact-card h3 {
  margin-top: 12px;
  font-size: 16px;
}

.contact-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  }

/* PAYMENT POPUP */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,5,15,.88);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 15px;
  overflow-y: auto;
}

.modal.show {
  display: flex;
  animation: appear .2s ease;
}

.modal-content {
  width: 100%;
  max-width: 410px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  background: #0c1b31;
  border: 1px solid #315783;
  border-radius: 19px;
  padding: 23px 17px;
  text-align: center;
}

.close-modal {
  position: absolute;
  right: 14px;
  top: 12px;
  border: none;
  background: #1b304b;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 21px;
}

.modal-content h2 {
  font-size: 21px;
  margin: 12px 0 18px;
}

.payment-product {
  background: #132b49;
  border-radius: 11px;
  padding: 15px;
  text-align: left;
}

.payment-product h3 {
  font-size: 13px;
  margin: 10px 0;
}

.payment-product strong {
  color: var(--cyan);
  font-size: 23px;
}

.qr-container {
  background: white;
  border-radius: 13px;
  padding: 12px;
  width: min(240px,80%);
  margin: 20px auto 10px;
}

.qr-container img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.qr-caption {
  color: var(--cyan);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .5px;
}

.payment-warning {
  margin-top: 14px;
  background: #382d17;
  border: 1px solid #806329;
  color: #ffe0a0;
  padding: 10px;
  border-radius: 8px;
  font-size: 10px;
  line-height: 1.6;
}

/* BOTTOM NAVIGATION */
.bottom-nav {
  position: fixed;
  z-index: 100;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 72px;
  padding: 8px 5px calc(8px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(8,20,39,.97);
  border-top: 1px solid #284567;
  backdrop-filter: blur(15px);
}

.nav-item {
  flex: 1;
  background: transparent;
  border: 0;
  color: #849ab6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 52px;
}

.nav-item span {
  font-size: 22px;
  line-height: 1;
}

.nav-item small {
  font-size: 9px;
  font-weight: 700;
}

.nav-item.active {
  color: var(--cyan);
}

.nav-item.active span {
  filter: drop-shadow(0 0 7px #258cff);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px 10px 15px;
  color: var(--muted);
  font-size: 10px;
}

.footer small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 6px;
}

/* RESPONSIVE */
@media (min-width: 650px) {
  .product-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px;
  }

  .product-image {
    height: 175px;
  }

  .main-container {
    padding: 35px 25px;
  }

  .hero {
    padding: 65px 50px;
  }

  .home-info {
    gap: 18px;
  }
}

@media (max-width: 360px) {
  .product-grid {
    gap: 8px;
  }

  .product-info {
    padding: 9px;
  }

  .product-info h3 {
    font-size: 11px;
  }

  .buy-btn {
    font-size: 8px;
  }

  .brand-text h2 {
    font-size: 14px;
  }
}

