:root {
  --bg: #070912;
  --bg-2: #0d1020;
  --card: rgba(18, 23, 43, 0.82);
  --card-2: rgba(13, 18, 35, 0.92);
  --border: rgba(105, 125, 255, 0.25);
  --text: #f4f7ff;
  --muted: #a7b1d8;
  --blue: #38bdf8;
  --purple: #8b5cf6;
  --pink: #d946ef;
  --green: #22c55e;
  --danger: #ef4444;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 28%),
    linear-gradient(180deg, #050712 0%, #090b16 48%, #05060d 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 18, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.35);
}

.brand span {
  background: linear-gradient(90deg, #ffffff, #65e6ff, #a78bfa);
  -webkit-background-clip: text;
  color: transparent;
  font-size: 22px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  padding: 10px 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  transition: 0.18s ease;
}

.menu a:hover,
.menu a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: 800;
  border-radius: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.18);
  transition: 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(139, 92, 246, 0.28);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.hero {
  padding: 78px 0 36px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero-card {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(21, 27, 52, 0.86), rgba(9, 12, 26, 0.86));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 270px;
  height: 270px;
  right: -90px;
  top: -120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 65%);
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.24);
  color: #aeeaff;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(90deg, #ffffff, #7dd3fc, #a78bfa, #d946ef);
  -webkit-background-clip: text;
  color: transparent;
}

.lead {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ip-box {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ip-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.ip-value {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.hero-logo {
  display: grid;
  place-items: center;
  min-height: 360px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 56%),
    rgba(11, 15, 31, 0.72);
  box-shadow: var(--shadow);
}

.hero-logo img {
  width: min(320px, 80%);
  filter: drop-shadow(0 0 42px rgba(56, 189, 248, 0.28));
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 28px;
}

.section-desc {
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.55;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.news-list {
  display: grid;
  gap: 14px;
}

.news-item {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card-2);
}

.news-date {
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border-style: hidden;
  box-shadow: 0 0 0 1px var(--border);
}

.rank-table th,
.rank-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-table th {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.18);
}

.rank-table td {
  color: var(--muted);
}

.footer {
  margin-top: 40px;
  padding: 28px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(8, 12, 26, 0.95);
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.32);
  box-shadow: var(--shadow);
  transition: 0.2s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shop-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.package {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 29, 56, 0.9), rgba(10, 14, 31, 0.92));
  box-shadow: var(--shadow);
}

.package strong {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
}

.package .price {
  font-size: 20px;
  color: #7dd3fc;
  font-weight: 900;
  margin: 14px 0;
}

.form-box {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card);
  margin-bottom: 20px;
}

.input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  outline: none;
  font-size: 15px;
}

.input:focus {
  border-color: rgba(56, 189, 248, 0.55);
}

label {
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .grid,
  .shop-packages {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .menu {
    justify-content: flex-start;
  }

  .hero-logo {
    min-height: 260px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 22px, 1180px);
  }

  .hero-card {
    padding: 22px;
  }

  .ip-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .menu a {
    padding: 9px 10px;
  }
}

.wallet-hero {
  margin-top: 34px;
}

.wallet-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  margin-top: 26px;
}

.field-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0 0;
}

.wallet-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.wallet-current {
  min-width: 116px;
  padding: 12px 16px;
  border-radius: 18px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.45), rgba(56, 189, 248, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.wallet-range {
  width: 100%;
  height: 12px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.22);
}

.wallet-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  background: #ffffff;
  border: 5px solid var(--blue);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.8);
}

.wallet-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  background: #ffffff;
  border: 5px solid var(--blue);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.8);
}

.range-labels {
  position: relative;
  height: 22px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.range-labels span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.range-labels span:first-child {
  transform: translateX(0);
}

.range-labels span:last-child {
  transform: translateX(-100%);
}

.wallet-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.wallet-summary div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wallet-summary span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.wallet-summary strong {
  display: block;
  color: #ffffff;
  font-size: 18px;
}

.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.quick-amounts button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.16s ease;
}

.quick-amounts button:hover {
  background: rgba(139, 92, 246, 0.28);
  border-color: rgba(139, 92, 246, 0.55);
}

.wallet-pay {
  width: 100%;
  margin-top: 20px;
  font-size: 16px;
}

.wallet-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 14px 0 0;
}

@media (max-width: 900px) {
  .wallet-box {
    grid-template-columns: 1fr;
  }

  .wallet-summary {
    grid-template-columns: 1fr;
  }

  .wallet-top {
    flex-direction: column;
  }

  .wallet-current {
    width: 100%;
  }
}
.shop-list {
  display: grid;
  gap: 14px;
}

.shop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
  background: var(--card-2);
  border: 1px solid var(--border);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.24);
}

.shop-row h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.shop-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.shop-row strong {
  white-space: nowrap;
  font-size: 22px;
  color: #7dd3fc;
}

@media (max-width: 700px) {
  .shop-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.wallet-current {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.wallet-amount-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 58px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  text-align: center !important;
  font-family: inherit !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wallet-amount-input:focus,
.wallet-amount-input:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #ffffff !important;
}

.wallet-amount-input::selection {
  background: rgba(56, 189, 248, 0.35);
  color: #ffffff;
}

.wallet-amount-input::-webkit-outer-spin-button,
.wallet-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}