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

body {
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #e0e0e0;
  background: #0a0a0a;
}

.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.lang-bar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.lang-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #666;
  background: transparent;
  border: 1px solid #333;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: #fff;
  border-color: #fff;
}

.lang-btn-active {
  color: #0a0a0a;
  background: #fff;
  border-color: #fff;
}

.layout {
  display: flex;
  justify-content: center;
}

.content {
  text-align: center;
  padding: 60px 16px 80px;
}

.title {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 6px;
  color: #ffffff;
}

.subtitle {
  margin-top: 14px;
  color: #666;
  font-size: 16px;
  letter-spacing: 1px;
}

.hidden {
  display: none !important;
}

#timer-box {
  margin-top: 50px;
}

.ring-wrap {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto;
}

.ring-bg,
.ring-fg {
  fill: none;
  stroke-width: 6;
  transform: rotate(-90deg);
  transform-origin: center;
}

.ring-bg {
  stroke: #222;
}

.ring-fg {
  stroke: #ffffff;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s linear;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
}

.plans {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.btn-plan {
  min-width: 240px;
  padding: 28px 32px;
  background: #111;
  border: 1px solid #333;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-plan:hover {
  border-color: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.plan-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
}

.plan-wait {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: #555;
  letter-spacing: 1px;
}

.btn-plan.gold {
  border-color: #444;
}

.btn-plan.gold .plan-title {
  color: #ccc;
}

.btn-plan.gold:hover {
  border-color: #fff;
}

.btn-renew {
  display: block;
  margin: 20px auto 0;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #888;
  background: transparent;
  border: 1px solid #333;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-renew:hover {
  color: #fff;
  border-color: #fff;
}

.hint {
  margin-top: 20px;
  color: #444;
  font-size: 13px;
  letter-spacing: 1px;
}

.error-box {
  margin-top: 30px;
  padding: 16px 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #333;
  color: #999;
  font-size: 14px;
}

.key-value {
  margin: 24px auto 0;
  max-width: 440px;
  padding: 20px 28px;
  font-family: "Courier New", monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  background: #111;
  border: 1px solid #333;
  border-radius: 10px;
  word-break: break-all;
}

.ready {
  margin-top: 40px;
  font-size: 18px;
  color: #fff;
  letter-spacing: 2px;
  font-weight: 600;
}

.btn-copy {
  margin-top: 24px;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: opacity 0.2s ease;
}

.btn-copy:hover {
  opacity: 0.85;
}

.footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #1a1a1a;
  text-align: center;
}

.footer-text {
  color: #333;
  font-size: 12px;
  letter-spacing: 2px;
}

@media (max-width: 600px) {
  .title {
    font-size: 30px;
    letter-spacing: 3px;
  }
  .btn-plan {
    min-width: 200px;
    padding: 22px 24px;
  }
  .plan-title {
    font-size: 17px;
  }
}
