:root {
  --bg: #08080a;
  --surface: #0f0f14;
  --surface-hover: #15151c;
  --border: #1c1c24;
  --border-focus: #ff8c00;
  --orange: #ff8c00;
  --orange-glow: rgba(255, 140, 0, 0.25);
  --text: #f0f0f3;
  --text-dim: #7f7f90;
  --text-sub: #505060;
  --green: #22c55e;
  --red: #ef4444;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font);
}

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

a:hover {
  text-decoration: none;
}

body {
  background: radial-gradient(circle at 50% -50px, rgba(255, 140, 0, 0.14), transparent 50%), #08080a;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.orange { color: var(--orange); }
.green { color: var(--green); }
.font-mono { font-family: var(--mono); }
.w-100 { width: 100%; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 2rem;
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.brand:visited {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  text-decoration: none !important;
  color: #ffffff !important;
}

.logo-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-shadow: 0 0 16px rgba(255, 140, 0, 0.2);
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 8px rgba(255, 140, 0, 0.45));
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff !important;
}

.nav-menu {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: #fff;
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.user-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
}

.btn {
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  padding: 0.45rem 1rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--orange);
  color: #000;
  font-weight: 700;
}
.btn-primary:hover {
  background: #ffa024;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: #2e2e3a;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
}
.btn-ghost:hover {
  color: #fff;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 0.45rem;
  border-radius: 6px;
}
.btn-icon:hover {
  color: #fff;
}

.btn-lg {
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
}

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  width: 100%;
  flex: 1;
}

.page {
  display: none;
}
.page.active {
  display: block;
}

.hero {
  text-align: center;
  max-width: 720px;
  margin: 2rem auto 4rem auto;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--orange);
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero-header {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem;
}
.feature-box:hover {
  border-color: rgba(255, 140, 0, 0.35);
}

.feature-icon {
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 1rem;
}

.feature-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.page-title {
  margin-bottom: 2rem;
}
.page-title h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.page-title p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.redeem-box {
  background: var(--surface);
  border: 1px solid rgba(255, 140, 0, 0.3);
  border-radius: 10px;
  padding: 1.6rem;
  margin-bottom: 2.5rem;
}

.redeem-info {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.redeem-icon {
  font-size: 1.4rem;
  color: var(--orange);
  background: rgba(255, 140, 0, 0.1);
  padding: 0.8rem;
  border-radius: 8px;
}

.redeem-info h3 {
  font-size: 1.15rem;
}
.redeem-info p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
}

.input-row {
  display: flex;
  gap: 0.75rem;
}

.input-row input {
  flex: 1;
  background: #050507;
  border: 1px solid var(--border);
  padding: 0.65rem 1rem;
  border-radius: 6px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.9rem;
}
.input-row input:focus {
  border-color: var(--orange);
  outline: none;
}

.lock-notice {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem;
}
.lock-notice a {
  color: #fff;
  font-weight: 700;
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-hot {
  border-color: rgba(255, 140, 0, 0.5);
}

.hot-badge {
  position: absolute;
  top: -10px;
  right: 18px;
  background: var(--orange);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.card-tier {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 600;
}

.card-price {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0.4rem 0 1.5rem 0;
}
.card-price span {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 400;
}

.perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex: 1;
}

.perks li {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.perks li i {
  color: var(--orange);
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.update-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem;
}

.update-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.badge {
  background: rgba(255, 140, 0, 0.1);
  color: var(--orange);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.date {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.update-card h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.update-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.stat-title {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 600;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0.25rem 0;
}

.stat-detail {
  font-size: 0.78rem;
  color: var(--text-sub);
}

.download-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dl-left {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.dl-icon {
  font-size: 2rem;
  color: var(--orange);
  background: rgba(255, 140, 0, 0.1);
  padding: 1rem;
  border-radius: 10px;
}

.dl-left h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.dl-left p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.status-ok {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}

.settings-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  max-width: 500px;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  background: #050507;
  border: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
}
.field input:focus {
  border-color: var(--orange);
  outline: none;
}

.input-lock {
  color: var(--text-dim) !important;
  cursor: not-allowed;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-bg.open {
  display: flex;
}

.modal-card {
  background: #0c0c10;
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 380px;
  width: 100%;
  padding: 2rem;
  position: relative;
}

.modal-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-top {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.modal-top h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.modal-top p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.modal-switch {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.modal-switch a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  margin-left: 0.25rem;
}

.error-text {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.6rem;
  border-radius: 6px;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: #14141c;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  font-size: 0.88rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.toast-success { border-color: var(--green); }
.toast-danger { border-color: var(--red); }

.product-cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.plan-select-wrap {
  margin-bottom: 1.25rem;
}

.plan-select {
  width: 100%;
  background: #09090d;
  color: #fff;
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.plan-select:focus,
.plan-select:hover {
  border-color: var(--orange);
}

.docs-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.doc-card:hover {
  border-color: rgba(255, 140, 0, 0.4);
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.doc-fn {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.doc-badge {
  background: rgba(255, 140, 0, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 140, 0, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.doc-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.doc-code {
  background: #050507;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.6;
}

.doc-code code {
  color: inherit;
  font-family: inherit;
}

.loading-box,
.no-updates {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .product-cards-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-header { font-size: 2.3rem; }
  .feature-grid, .product-cards, .stats-grid { grid-template-columns: 1fr; }
  .download-box { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .input-row { flex-direction: column; }
  .nav-menu { display: none; }
}
