* {
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --card: rgba(16, 16, 18, 0.82);
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --red: #ef2222;
  --red2: #b91414;
  --orange: #ff7a1a;
  --green: #4ade80;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 0%, rgba(239, 34, 34, 0.33), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(255, 122, 26, 0.22), transparent 34%),
    linear-gradient(180deg, #080808 0%, #030303 100%);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 0 36px rgba(239, 34, 34, 0.42);
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a,
.nav-logout {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  padding: 11px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

nav a:hover,
.nav-logout:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.nav-btn {
  color: #fff !important;
  background: rgba(239, 34, 34, 0.16) !important;
  border-color: rgba(239, 34, 34, 0.35) !important;
}

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

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 54px 0 80px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.pills span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero h1,
.page-head h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.93;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero h1 span {
  background: linear-gradient(90deg, #ff3333, #ff7a1a, #ffd0c0);
  -webkit-background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 17px;
  font-weight: 900;
  cursor: pointer;
}

.btn-red {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red2));
  box-shadow: 0 16px 45px rgba(239, 34, 34, 0.22);
}

.btn-dark {
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
}

.full {
  width: 100%;
}

.hero-card,
.auth-card,
.dash-card,
.plan-card,
.server-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.025)),
    var(--card);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.hero-card {
  padding: 34px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(74, 222, 128, 0.12), 0 0 24px rgba(74, 222, 128, 0.9);
  margin-bottom: 24px;
}

.hero-card h3 {
  margin: 0;
  font-size: 34px;
}

.muted {
  color: var(--muted);
}

.speed-box {
  margin: 28px 0;
  border-radius: 24px;
  padding: 22px;
  background: rgba(239, 34, 34, 0.12);
  border: 1px solid rgba(239, 34, 34, 0.24);
}

.speed-box strong {
  display: block;
  font-size: 42px;
}

.speed-box span {
  color: rgba(255, 255, 255, 0.6);
}

.mini-list {
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.74);
}

.section {
  padding: 82px 0;
}

.section-title,
.page-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 42px;
}

.section-title p,
.page-head p {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fecaca;
  background: rgba(239, 34, 34, 0.13);
  border: 1px solid rgba(239, 34, 34, 0.28);
  font-weight: 800;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.page-head {
  padding: 86px 0 32px;
}

.page-head span {
  display: block;
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  padding: 24px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.plan-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.plan-badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(239, 34, 34, 0.14);
  border: 1px solid rgba(239, 34, 34, 0.28);
  color: #fecaca;
  font-size: 12px;
  font-weight: 900;
}

.plan-card h3 {
  margin: 14px 0 0;
  font-size: 25px;
}

.flame {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(239, 34, 34, 0.13);
  font-size: 23px;
}

.price {
  margin: 30px 0 22px;
  font-size: 54px;
  font-weight: 900;
}

.price span {
  margin-left: 4px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.52);
}

.features {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.72);
}

.plan-card .btn {
  margin-top: auto;
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.server-card {
  padding: 26px;
  min-height: 150px;
}

.server-card b {
  display: block;
  font-size: 22px;
  margin-bottom: 12px;
}

.server-card span {
  color: var(--muted);
}

.auth-page {
  min-height: calc(100vh - 92px);
  display: grid;
  place-items: center;
  padding: 40px 0 80px;
}

.auth-card {
  width: min(480px, 100%);
  padding: 34px;
}

.auth-card h1 {
  margin: 0 0 10px;
  font-size: 42px;
}

label {
  display: block;
  margin: 20px 0 8px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

input {
  width: 100%;
  height: 54px;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 18px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

input:focus {
  border-color: rgba(239, 34, 34, 0.65);
  box-shadow: 0 0 0 5px rgba(239, 34, 34, 0.12);
}

.auth-bottom {
  color: var(--muted);
  text-align: center;
  margin: 20px 0 0;
}

.auth-bottom a {
  color: #fecaca;
  font-weight: 900;
}

.msg {
  margin-top: 14px;
  color: #fca5a5;
  white-space: pre-wrap;
}

.msg.ok,
.green {
  color: var(--green);
}

.red {
  color: #fca5a5;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 26px;
}

.dash-card {
  padding: 26px;
}

.dash-card h2 {
  margin: 0 0 20px;
  font-size: 30px;
}

.dash-card h3 {
  margin: 28px 0 12px;
}

.info-row,
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  margin-bottom: 10px;
}

.info-row span,
.history-item span {
  color: var(--muted);
}

.subscription-box {
  min-height: 90px;
  word-break: break-all;
  border-radius: 20px;
  border: 1px solid rgba(239, 34, 34, 0.28);
  background: rgba(239, 34, 34, 0.105);
  padding: 18px;
  margin: 18px 0;
  color: rgba(255, 255, 255, 0.82);
}

.history-box {
  max-width: 820px;
  margin: 0 auto;
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.42);
  text-align: center;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
}

.loader.hidden {
  display: none;
}

.loader-flame {
  width: 92px;
  height: 92px;
  border-radius: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(239,34,34,0.35), rgba(255,122,26,0.18));
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 44px;
  animation: pulse 1s infinite alternate ease-in-out;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  from {
    transform: scale(0.94) rotate(-4deg);
    box-shadow: 0 0 25px rgba(239,34,34,0.25);
  }
  to {
    transform: scale(1.05) rotate(4deg);
    box-shadow: 0 0 55px rgba(239,34,34,0.45);
  }
}

@media (max-width: 980px) {
  .hero,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid,
  .server-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: min(100% - 20px, 1180px);
  }

  nav {
    gap: 4px;
  }

  nav a,
  .nav-logout {
    padding: 9px 10px;
    font-size: 13px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  main {
    width: min(100% - 20px, 1180px);
  }

  .plans-grid,
  .server-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-head h1 {
    font-size: 48px;
  }

  .section {
    padding: 58px 0;
  }
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0 16px;
}

.amount-btn {
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: white;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
}

.amount-btn:hover,
.amount-btn.active {
  border-color: rgba(239, 34, 34, 0.6);
  background: rgba(239, 34, 34, 0.18);
  transform: translateY(-1px);
}

.crypto-box {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(239, 34, 34, 0.105);
  border: 1px solid rgba(239, 34, 34, 0.28);
}

.hidden {
  display: none !important;
}

@media (max-width: 680px) {
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
