:root {
  --bg: #f7f7f7;
  --header: #1f1f1f;
  --ink: #222;
  --muted: #8c8c8c;
  --line: #ececec;
  --card: #ffffff;
  --red: #ff5050;
  --red-dark: #e64545;
  --star: #ffae0e;
  --radius: 12px;
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }
.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header - grecharge style */
.site-header {
  background: var(--header);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
}
.logo span { color: var(--red); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}
.main-nav a { color: rgba(255,255,255,0.88); }
.main-nav a:hover,
.main-nav a.active { color: var(--red); }

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2a2a2a;
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 220px;
  color: #aaa;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  width: 100%;
}
.search input::placeholder { color: #888; }
.lang {
  color: #ddd;
  font-size: 13px;
  white-space: nowrap;
}
.login-btn {
  border: 0;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.login-btn:hover { background: var(--red-dark); }
a.login-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.header-auth { display: flex; align-items: center; }
.account-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 160px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: #2a2a2a;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.account-chip span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex: 0 0 auto;
}
.account-logout {
  border: 1px solid #444;
  background: transparent;
  color: #ddd;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.account-logout:hover { border-color: #888; color: #fff; }

/* Auth pages */
.auth-page {
  display: flex;
  justify-content: center;
  padding: 36px 0 64px;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 32px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 26px;
}
.auth-lead {
  margin: 0 0 22px;
  color: #8c8c8c;
  font-size: 14px;
  line-height: 1.5;
}
.auth-form { display: grid; gap: 12px; }
.auth-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  font-size: 13px;
  line-height: 1.5;
}
.auth-switch {
  margin: 18px 0 0;
  text-align: center;
  color: #888;
  font-size: 13px;
}
.auth-switch a { color: var(--red); font-weight: 700; }
.btn-block { width: 100%; border-radius: 10px; padding: 13px 18px; }
.account-orders { margin-top: 8px; }
.account-order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.account-order-row:last-child { border-bottom: 0; }
.account-order-row strong { display: block; color: #222; margin-bottom: 2px; }
.account-order-row span { color: #888; }
.account-order-row em { font-style: normal; font-weight: 800; color: var(--red); display: block; text-align: right; margin-bottom: 4px; }
.account-order-row .badge { float: right; }

/* Hero carousel */
.hero {
  padding: 22px 0 12px;
}
.hero-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 21 / 7;
  min-height: 220px;
}
.hero-track { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}
.hero-nav.prev { left: 12px; }
.hero-nav.next { right: 12px; }
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.45);
  padding: 0;
  cursor: pointer;
}
.hero-dots button.active {
  background: var(--red);
  width: 16px;
  border-radius: 999px;
}

/* Categories */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0 20px;
}
.cat strong {
  font-size: 14px;
  line-height: 1.2;
}
.cat span {
  font-size: 12px;
}
.cat {
  background: #fff;
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  position: relative;
}
.cat-icon.topup {
  background: linear-gradient(145deg, #ff8a80, #ff5050);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.08);
}
.cat-icon.topup::before {
  content: "";
  position: absolute;
  inset: 14px 12px 18px;
  border: 3px solid #fff;
  border-radius: 8px;
}
.cat-icon.topup::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  left: 19px;
  top: 18px;
  box-shadow: 10px 0 0 #fff;
}
.cat-icon.coins {
  background: linear-gradient(145deg, #ffd666, #faad14);
}
.cat-icon.coins::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.25);
}
.cat-icon.keys {
  background: linear-gradient(145deg, #95de64, #52c41a);
}
.cat-icon.keys::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid #fff;
  border-radius: 50%;
  left: 12px;
  top: 14px;
}
.cat-icon.keys::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 3px;
  background: #fff;
  left: 24px;
  top: 22px;
  box-shadow: 0 5px 0 #fff;
}
.cat-icon.social {
  background: linear-gradient(145deg, #b37feb, #722ed1);
}
.cat-icon.social::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  left: 10px;
  top: 14px;
}
.cat-icon.social::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid #fff;
  border-radius: 50%;
  right: 10px;
  bottom: 12px;
  box-shadow: -8px -6px 0 -1px #fff;
}
.cat-icon.subs {
  background: linear-gradient(145deg, #69c0ff, #1890ff);
}
.cat-icon.subs::before {
  content: "";
  position: absolute;
  inset: 12px 14px 12px 14px;
  border: 3px solid #fff;
  border-radius: 4px 4px 8px 8px;
}
.cat-icon.subs::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 8px;
  background: #fff;
  left: 19px;
  top: 10px;
  border-radius: 2px 2px 0 0;
}
.cat-icon.gifts {
  background: linear-gradient(145deg, #ff85c0, #eb2f96);
}
.cat-icon.gifts::before {
  content: "";
  position: absolute;
  inset: 14px 12px 12px;
  border: 3px solid #fff;
  border-radius: 6px;
}
.cat-icon.gifts::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 22px;
  background: #fff;
  left: 22px;
  top: 13px;
  box-shadow: 0 0 0 0 #fff;
  transform: rotate(0deg);
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.event-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  color: #222;
  transition: transform .15s ease, box-shadow .15s ease;
}
.event-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.event-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.event-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-body strong {
  font-size: 14px;
}
.event-body span {
  font-size: 12px;
  color: var(--muted);
}
.cat strong {
  display: block;
  font-size: 15px;
}
.cat span {
  color: var(--muted);
  font-size: 12px;
}

/* Sections */
.section {
  margin-top: 48px;
  padding-top: 12px;
  padding-bottom: 20px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.see-all {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.see-all:hover { color: var(--red); }

/* Product grid - grecharge cards */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}
.goods-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.goods-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.goods-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  overflow: hidden;
}
.goods-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.goods-card:hover .goods-cover img { transform: scale(1.06); }
.badge-off {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 7px;
  border-bottom-right-radius: 10px;
  z-index: 1;
}
.goods-body {
  padding: 10px 10px 12px;
}
.goods-body h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
.star {
  color: var(--star);
  font-weight: 800;
}

/* Hot sale rank */
.hot-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
.hot-banner {
  border-radius: 14px;
  overflow: hidden;
  min-height: 220px;
  background: #111;
}
.hot-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-list {
  background: #fff;
  border-radius: 14px;
  padding: 8px;
}
.rank-item {
  display: grid;
  grid-template-columns: 28px 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
}
.rank-item:hover { background: #fafafa; }
.rank-no {
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.rank-item:nth-child(-n+3) .rank-no { color: var(--red); }
.rank-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.rank-item strong {
  display: block;
  font-size: 13px;
}
.rank-item span {
  color: var(--muted);
  font-size: 12px;
}
.rank-off {
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  background: #1f1f1f;
  color: #bbb;
  padding: 36px 0 24px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.site-footer h4 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
}
.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: #aaa;
}
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 16px;
  color: #777;
}
.site-footer p {
  margin: 0 0 10px;
  line-height: 1.6;
  color: #aaa;
}
.site-footer strong { color: #ddd; font-weight: 700; }
.footer-address {
  margin-top: 8px !important;
  color: #888 !important;
  font-size: 12px;
  line-height: 1.55;
}

/* Legal / content pages */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 0 56px;
}
.legal-page h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
}
.legal-meta {
  margin: 0 0 24px;
  color: #8c8c8c;
  font-size: 13px;
}
.legal-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 28px 32px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 18px;
}
.legal-card h2:first-child { margin-top: 0; }
.legal-card p,
.legal-card li {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}
.legal-card p { margin: 0 0 12px; }
.legal-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--red); }
.legal-card a.btn,
.legal-card a.btn-red {
  color: #fff;
  text-decoration: none;
  display: inline-block;
}
.company-box {
  margin-top: 20px;
  padding: 16px 18px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
}
.company-box p { margin: 0 0 6px; color: #444; }
.company-box p:last-child { margin-bottom: 0; }
.contact-grid {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.contact-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}
.contact-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #222;
}
.contact-item span,
.contact-item a {
  font-size: 14px;
  color: #555;
  line-height: 1.55;
}
.faq-list details {
  border-bottom: 1px solid #f0f0f0;
  padding: 14px 0;
}
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: #222;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p {
  margin: 10px 0 0;
  color: #666;
  font-size: 14px;
  line-height: 1.65;
}

/* Shared page + buttons */
.page { padding: 20px 0 48px; }
.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 800;
  cursor: pointer;
}
.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover { background: var(--red-dark); }
.btn-line {
  background: #fff;
  border: 1px solid #e5e5e5;
  color: var(--ink);
}
.notice {
  margin: 0;
  padding: 12px 14px;
  background: #fff7e6;
  border: 1px solid #ffe7ba;
  border-radius: 10px;
  color: #ad6800;
  font-size: 13px;
}

/* Product / top-up page (grecharge goods layout) */
.product-empty {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}
.product-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.product-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.product-icon {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
}
.product-hero h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-tags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f7f7f7;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #555;
  font-weight: 600;
}
.product-banner {
  width: min(460px, 46%);
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}
.product-main,
.side-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.product-main { padding: 16px 16px 28px; }
.mode-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 14px;
}
.mode-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  margin-bottom: -1px;
}
.mode-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
}
.pack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.pack-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e8e8e8;
  background: #fff;
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: #444;
}
.pack-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.pack-chip.active {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f5;
}
.sku-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sku-grid-dense {
  grid-template-columns: repeat(4, 1fr);
}
.sku-card {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  background: #fff;
  padding: 0 0 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sku-card:hover { border-color: #ffb3b3; }
.sku-card.active {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.sku-badge {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 11px 0 10px 0;
  letter-spacing: .02em;
  max-width: 78%;
  line-height: 1.2;
  text-align: left;
}
.sku-info {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sku-check {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Full-bleed media: flush to top / left / right of the card */
.sku-media {
  display: block;
  width: calc(100% + 2px);
  margin: -1px -1px 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #cdeedc;
}
.sku-card img,
.sku-card .sku-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 38%;
  margin: 0;
  display: block;
  /* Crop source art's built-in soft edges so subject fills the frame */
  transform: scale(1.42);
  transform-origin: center 38%;
}
.sku-card .sku-img-cover {
  object-fit: cover;
  transform: none;
  background: #f5f5f5;
}
.order-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.req { color: var(--red); margin-left: 2px; }
.order-field.has-eye { position: relative; }
.order-field.has-eye input { padding-right: 42px; }
.pwd-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  opacity: .7;
}
.price-tiers {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}
.price-tier {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.price-tier.active {
  border-color: var(--red);
  background: #fff8f8;
}
.price-tier input { margin-top: 4px; accent-color: var(--red); }
.price-tier strong {
  display: block;
  color: var(--red);
  font-size: 18px;
  line-height: 1.2;
}
.price-tier span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.tier-save { color: var(--red) !important; font-weight: 700; }
.trust-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.trust-score strong {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #1b8f3a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.trust-score span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #333;
}
.trust-score em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.sku-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  min-height: 2.4em;
  margin: 10px 8px 4px;
  color: #222;
}
.sku-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 8px;
}
.sku-price em {
  font-style: normal;
  color: var(--red);
  font-weight: 800;
  font-size: 18px;
}
.sku-save {
  background: #ffe8e8;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.sku-card s {
  display: block;
  margin: 2px 8px 0;
  color: #bbb;
  font-size: 12px;
}
.product-extra {
  margin-top: 28px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.product-extra h2 {
  margin: 18px 0 12px;
  font-size: 18px;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.why-grid div {
  background: #fafafa;
  border-radius: 10px;
  padding: 14px;
}
.why-grid strong { display: block; margin-bottom: 6px; font-size: 14px; }
.why-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.faq-item {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 8px;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 700;
  font-size: 14px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.product-side {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 78px;
}
.side-card { padding: 16px; }
.side-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
}
.order-fields { display: grid; gap: 10px; }
.order-field input,
.order-field select {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  background: #fff;
  font-size: 14px;
}
.order-field input:focus,
.order-field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,80,80,.12);
}
.side-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.pay-list { display: grid; gap: 8px; }
.pay-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}
.pay-row.active {
  border-color: var(--red);
  background: #fff8f8;
  box-shadow: inset 0 0 0 1px var(--red);
}
.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f3f3f3;
  font-size: 11px;
  font-weight: 800;
  color: #444;
}
.pay-logo img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 54px;
  object-fit: contain;
}
.pay-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}
.pay-row strong {
  color: var(--red);
  font-size: 14px;
}
.checkout-card .checkout-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 14px;
}
.checkout-total span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.checkout-total strong {
  color: var(--red);
  font-size: 28px;
  line-height: 1;
}
.checkout-total em {
  font-style: normal;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  padding-bottom: 4px;
}
.btn-buy {
  width: 100%;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 16px;
}
.side-note {
  margin: 10px 0 0;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
}
.pay-error {
  display: none;
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.pay-error.is-visible { display: block; }
.payment-result {
  max-width: 560px;
  margin: 40px auto;
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.payment-result h1 { margin: 0 0 12px; font-size: 24px; }
.payment-result p { margin: 0; color: #666; font-size: 14px; line-height: 1.6; }
.payment-result .status-pill {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #f5f5f5;
  color: #666;
}
.payment-result .status-pill.is-paid { background: #f6ffed; color: #389e0d; }
.payment-result .status-pill.is-failed { background: #fff1f0; color: #cf1322; }
.payment-result .status-pill.is-awaiting { background: #fff7e6; color: #d46b08; }
.payment-result .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
/* Order lookup page */
.panel {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.panel-body {
  padding: 20px;
  display: grid;
  gap: 14px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  background: #fff;
}
.field input:focus,
.field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,80,80,.12);
}
.lookup { max-width: 520px; margin: 0 auto; }
.result {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #eee;
  gap: 8px;
}
.result.show { display: grid; }
.result .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.result .row span { color: var(--muted); }
.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f6ffed;
  color: #389e0d;
  font-size: 12px;
  font-weight: 700;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  transition: .2s ease;
  z-index: 80;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Category listing page (grecharge /top-up style) */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 20px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.category-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 48px;
}
.cat-sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  position: sticky;
  top: 78px;
}
.cat-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #222;
  transition: background .15s ease;
}
.cat-side-item:hover { background: #f5f5f5; }
.cat-side-item.active { background: #f0f0f0; font-weight: 700; }
.cat-side-item .cat-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.cat-side-item strong {
  font-size: 14px;
  font-weight: 600;
}
.category-main {
  background: #fff;
  border-radius: 12px;
  padding: 22px 22px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  min-height: 480px;
}
.category-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.category-toolbar h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}
.cat-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.cat-total {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  padding-top: 6px;
}
.sort-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #eee;
  margin: 14px 0 20px;
}
.sort-tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 2px 12px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  margin-bottom: -1px;
}
.sort-tab.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 700;
}
.cat-grid {
  grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1100px) {
  .goods-grid { grid-template-columns: repeat(5, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .hot-layout { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .sku-grid { grid-template-columns: repeat(2, 1fr); }
  .sku-grid-dense { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .goods-grid { grid-template-columns: repeat(4, 1fr); }
  .cats { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 1fr 1fr; }
  .search { min-width: 140px; }
  .lang { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .category-layout { grid-template-columns: 1fr; }
  .cat-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1fr; }
  .product-side { position: static; }
  .product-banner { display: none; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .goods-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-sidebar { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .sku-grid,
  .sku-grid-dense { grid-template-columns: 1fr 1fr; }
}
