:root {
  --hz-bg: #050b18;
  --hz-surface: #0a1428;
  --hz-card: #0c1b32;
  --hz-blue: #00bfff;
  --hz-blue-deep: #087bff;
  --hz-red: #ff2d55;
  --hz-purple: #b06bff;
  --hz-text: #f4f7ff;
  --hz-muted: #8ba8cc;
  --hz-border: #173b60;
  --hz-success: #20d99a;
  --hz-danger: #ff405d;
  --hz-radius: 18px;
  --hz-card-border: 1px solid rgba(23, 59, 96, 0.85);
  --hz-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 22px rgba(0, 191, 255, 0.08);
  --hz-float: 0 14px 34px rgba(0, 8, 24, 0.55), 0 0 28px rgba(0, 191, 255, 0.12);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
  font-family: "Vazirmatn", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--hz-bg);
  color: var(--hz-text);
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.hz-app {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(0, 140, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 35%, rgba(255, 45, 85, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 35% at 0% 70%, rgba(0, 191, 255, 0.08), transparent 45%),
    var(--hz-bg);
}

.hz-app::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 191, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 191, 255, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.55;
}

.hz-page-content {
  position: relative;
  z-index: 1;
  padding: calc(14px + var(--safe-t)) 14px;
  padding-bottom: calc(108px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hz-card {
  background: linear-gradient(155deg, rgba(14, 32, 58, 0.92), rgba(6, 12, 26, 0.88));
  border: var(--hz-card-border);
  border-radius: var(--hz-radius);
  box-shadow: var(--hz-float);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hz-card--blue {
  border-color: rgba(0, 191, 255, 0.55);
  box-shadow: var(--hz-float), 0 0 24px rgba(0, 191, 255, 0.16);
}

.hz-card--red {
  border-color: rgba(255, 45, 85, 0.55);
  box-shadow: 0 14px 34px rgba(0, 8, 24, 0.55), 0 0 26px rgba(255, 45, 85, 0.16);
}

.hz-card--purple {
  border-color: rgba(176, 107, 255, 0.55);
  box-shadow: 0 14px 34px rgba(0, 8, 24, 0.55), 0 0 26px rgba(176, 107, 255, 0.16);
}

.hz-card.is-pick,
.server.is-pick {
  transform: translateY(-2px);
  border-color: var(--hz-blue);
  box-shadow: 0 16px 36px rgba(0, 8, 24, 0.5), 0 0 30px rgba(0, 191, 255, 0.28);
}

.hz-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--hz-blue);
  border-radius: 12px;
  background: linear-gradient(135deg, #087bff, #00bfff);
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 123, 255, 0.28);
}

.hz-button--red {
  border-color: var(--hz-red);
  background: linear-gradient(135deg, #d91643, #ff2d55);
  box-shadow: 0 8px 18px rgba(255, 45, 85, 0.28);
}

.hz-button--ghost {
  background: rgba(10, 20, 40, 0.65);
  color: var(--hz-text);
  border-color: var(--hz-border);
  box-shadow: none;
}

.hz-button:disabled { opacity: 0.45; cursor: default; box-shadow: none; }

.hz-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.hz-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.hz-status--online { color: var(--hz-success); }
.hz-status--offline { color: var(--hz-danger); }

.hz-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 11, 24, 0.94);
  border-top: 1px solid var(--hz-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 100;
}

.hz-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 8px 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--hz-muted);
  font-size: 11px;
}

.hz-nav-item[aria-current="page"] {
  color: var(--hz-blue);
  background: rgba(0, 191, 255, 0.1);
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.14);
}

.hz-nav-ico { font-size: 16px; line-height: 1; }

@media (min-width: 600px) {
  .hz-app { border-inline: 1px solid var(--hz-border); }
}

/* —— خرید گیمینگ: شناور —— */
.shop-hero {
  position: relative;
  overflow: hidden;
  padding: 16px;
  min-height: 118px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  animation: floatIn 0.45s ease both;
}

.shop-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% 40%;
  height: 140%;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.28), transparent 60%);
  pointer-events: none;
}

.shop-hero .brand { position: relative; z-index: 1; }
.shop-hero h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: 0.2px; }
.shop-hero h1 span { color: var(--hz-blue); font-weight: 600; font-size: 15px; }
.shop-hero p { margin: 6px 0 0; color: #c7dbf5; font-size: 12px; line-height: 1.7; max-width: 22ch; }

.hero-art {
  position: relative;
  z-index: 1;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 35% 30%, rgba(0, 191, 255, 0.45), transparent 45%),
    linear-gradient(160deg, #12325a, #071018);
  border: 1px solid rgba(0, 191, 255, 0.35);
  box-shadow: 0 0 28px rgba(0, 191, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 42px;
  animation: softFloat 4.5s ease-in-out infinite;
}

.wallet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  animation: floatIn 0.5s ease 0.05s both;
}

.wallet-left { display: flex; gap: 10px; align-items: center; min-width: 0; }
.wallet-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.3);
  color: var(--hz-blue);
  font-size: 18px;
}
.wallet b { display: block; font-size: 15px; }
.wallet small { color: var(--hz-muted); font-size: 11px; }
.wallet-right { display: flex; align-items: center; gap: 8px; }
.wallet-amount { text-align: left; }
.wallet-amount strong { display: block; font-size: 16px; color: var(--hz-blue); text-shadow: 0 0 12px rgba(0, 191, 255, 0.35); }
.wallet-amount small { color: var(--hz-muted); }
.wallet-plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hz-blue);
  background: linear-gradient(135deg, #087bff, #00bfff);
  color: white;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.35);
}

.promo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--hz-radius);
  border: 1px solid rgba(255, 45, 85, 0.45);
  background: linear-gradient(110deg, rgba(80, 8, 28, 0.95), rgba(18, 10, 28, 0.9));
  box-shadow: 0 12px 28px rgba(255, 45, 85, 0.12);
  animation: floatIn 0.55s ease 0.08s both;
}
.promo-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 45, 85, 0.18);
  color: #ff8aa8;
  flex-shrink: 0;
}
.promo p { margin: 0; font-size: 12px; line-height: 1.7; color: #ffd6e0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  margin-top: 4px;
}
.section-head h2 { margin: 0; font-size: 15px; }
.section-head p { margin: 4px 0 0; color: var(--hz-muted); font-size: 11px; }

.servers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.server {
  text-align: right;
  width: 100%;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: floatIn 0.55s ease both;
}
.server .flag { font-size: 24px; }
.server h3 { margin: 0; font-size: 15px; }
.server .ping-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--hz-blue);
  text-shadow: 0 0 14px rgba(0, 191, 255, 0.35);
}
.server small { color: var(--hz-muted); font-size: 11px; }

.plan-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.plan-tabs::-webkit-scrollbar { display: none; }
.plan-tab {
  flex: 0 0 auto;
  border: 1px solid var(--hz-border);
  background: rgba(10, 20, 40, 0.7);
  color: var(--hz-muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
}
.plan-tab.is-on {
  color: white;
  border-color: var(--hz-blue);
  background: rgba(0, 191, 255, 0.16);
  box-shadow: 0 0 16px rgba(0, 191, 255, 0.18);
}

.plan-list { display: flex; flex-direction: column; gap: 12px; }
.plan-float {
  position: relative;
  padding: 14px;
  overflow: hidden;
  animation: floatIn 0.6s ease both;
}
.plan-float::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.plan-float.hz-card--red::before {
  background: radial-gradient(circle, rgba(255, 45, 85, 0.16), transparent 70%);
}
.plan-float.hz-card--purple::before {
  background: radial-gradient(circle, rgba(176, 107, 255, 0.16), transparent 70%);
}
.plan-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  position: relative;
}
.plan-title { display: flex; gap: 10px; align-items: center; min-width: 0; }
.plan-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.28);
}
.hz-card--red .plan-ico {
  background: rgba(255, 45, 85, 0.12);
  border-color: rgba(255, 45, 85, 0.35);
}
.hz-card--purple .plan-ico {
  background: rgba(176, 107, 255, 0.12);
  border-color: rgba(176, 107, 255, 0.35);
}
.plan-title h3 { margin: 0; font-size: 15px; }
.plan-title small { color: var(--hz-muted); font-size: 11px; }
.price-tag {
  text-align: left;
  background: rgba(5, 11, 24, 0.65);
  border: 1px solid var(--hz-border);
  border-radius: 12px;
  padding: 8px 10px;
}
.price-tag b { display: block; font-size: 14px; color: var(--hz-blue); }
.price-tag span { color: var(--hz-muted); font-size: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; position: relative; }
.chip {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(23, 59, 96, 0.9);
  color: #d5e6ff;
}
.buy { width: 100%; position: relative; }

.dev-flag {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 45, 85, 0.12);
  border: 1px solid var(--hz-red);
  color: #ffd0dc;
  font-size: 12px;
}

.meta, label { color: var(--hz-muted); font-size: 12px; }
.meta { line-height: 1.7; margin: 8px 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.linkbox {
  width: 100%;
  margin: 8px 0 0;
  background: rgba(5, 11, 24, 0.85);
  border: 1px solid var(--hz-border);
  border-radius: 12px;
  color: var(--hz-blue);
  font-size: 11px;
  padding: 8px;
  direction: ltr;
  text-align: left;
  word-break: break-all;
  white-space: pre-wrap;
}
.actions { display: flex; gap: 8px; margin-top: 8px; }
.actions button { flex: 1; }
label { display: block; margin: 10px 0 6px; }
input, textarea, select {
  width: 100%;
  background: rgba(5, 11, 24, 0.85);
  border: 1px solid var(--hz-border);
  border-radius: 12px;
  padding: 10px 12px;
}
textarea { min-height: 96px; resize: vertical; }

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  z-index: 120;
  display: grid;
  align-items: end;
  justify-items: center;
}
.sheet[hidden] { display: none; }
.sheet-card {
  width: min(430px, 100%);
  background: linear-gradient(160deg, #10203c, #080f1c);
  border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(16px + var(--safe-b));
  border: 1px solid rgba(0, 191, 255, 0.28);
  box-shadow: 0 -12px 40px rgba(0, 191, 255, 0.12);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + var(--safe-b));
  transform: translateX(-50%);
  width: min(400px, calc(100% - 24px));
  background: rgba(10, 20, 40, 0.96);
  border: 1px solid var(--hz-blue);
  color: var(--hz-text);
  border-radius: 12px;
  padding: 10px 12px;
  z-index: 140;
  font-size: 13px;
  box-shadow: 0 0 22px rgba(0, 191, 255, 0.18);
}
.toast[hidden] { display: none; }
.empty { color: var(--hz-muted); text-align: center; padding: 28px 8px; }
.bar { height: 6px; border-radius: 99px; background: rgba(10, 20, 40, 0.9); overflow: hidden; margin-top: 6px; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--hz-blue-deep), var(--hz-blue)); }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
