:root {
  --bg: #050814;
  --card: rgba(255,255,255,.075);
  --card2: rgba(255,255,255,.12);
  --line: rgba(255,255,255,.14);
  --text: #f7f9ff;
  --muted: #9ea8bd;
  --soft: #eaeaea;
  --blue: #58a6ff;
  --cyan: #39d7ff;
  --green: #36d66b;
  --red: #ff5570;
  --shadow: 0 28px 90px rgba(0,0,0,.55);
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(88,166,255,.20), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(57,215,255,.10), transparent 30%),
    linear-gradient(180deg, #071226 0%, #04060d 58%, #020308 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 78%);
}

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

.page {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 60px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.045));
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 70px rgba(0,0,0,.35);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 27px;
  font-weight: 950;
  background:
    linear-gradient(135deg, #ffffff, #58a6ff 55%, #39d7ff);
  color: #06101e;
  box-shadow:
    0 18px 40px rgba(88,166,255,.22),
    inset 0 0 0 1px rgba(255,255,255,.45);
}

.brand b {
  display: block;
  font-size: 17px;
}

.brand span {
  display: block;
  max-width: 310px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

nav {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a,
.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 17px;
  background: rgba(255,255,255,.075);
  font-weight: 850;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: .18s ease;
}

nav a:hover,
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.13);
}

.nav-main,
.btn-light {
  background: linear-gradient(135deg, #ffffff, #dfeaff);
  color: #08111f;
  border-color: rgba(255,255,255,.55);
}

.btn.full {
  width: 100%;
  text-align: center;
  display: inline-flex;
  justify-content: center;
}

.home-hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 18px;
}

.home-hero-main,
.home-hero-side,
.card-section,
.hello,
.cabinet-card,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(255,255,255,.13), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
}

.home-hero-main {
  padding: 46px;
}

.home-hero-main h1 {
  margin: 10px 0 18px;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -3px;
}

.home-hero-main p {
  max-width: 760px;
  color: #dbe3f4;
  line-height: 1.55;
  font-size: 18px;
}

.kicker,
.section-small {
  text-transform: uppercase;
  color: #b9c6dc;
  font-size: 12px;
  letter-spacing: .8px;
  font-weight: 950;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.note-line,
.muted {
  color: var(--muted);
}

.home-hero-side {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  background: rgba(0,0,0,.18);
}

.metric strong {
  display: block;
  font-size: 38px;
  letter-spacing: -1.4px;
}

.metric span {
  color: var(--muted);
  font-weight: 700;
}

.card-section {
  margin-top: 22px;
  padding: 30px;
}

.card-section h2 {
  margin: 8px 0 20px;
  font-size: 38px;
  letter-spacing: -1.5px;
}

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

.feature,
.plan {
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 0%, rgba(88,166,255,.09), transparent 30%),
    rgba(255,255,255,.052);
  padding: 24px;
}

.badge,
.plan-badge {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255,255,255,.09);
  font-weight: 950;
  font-size: 12px;
}

.feature h3,
.plan h3 {
  margin: 18px 0 10px;
  font-size: 21px;
}

.feature p,
.plan p {
  color: #d4dceb;
  line-height: 1.55;
}

.price {
  font-size: 44px;
  font-weight: 950;
  letter-spacing: -2px;
  margin: 10px 0;
}

.plan.accent {
  background:
    radial-gradient(circle at 20% 0%, rgba(57,215,255,.14), transparent 35%),
    linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.055));
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px;
  margin-top: 10px;
  background: rgba(255,255,255,.05);
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  color: #d2dbea;
  line-height: 1.55;
}

.footer {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.auth-card {
  width: min(520px, 100%);
  margin: 70px auto 0;
  padding: 30px;
}

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

.auth-card p {
  color: #d1dbea;
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 950;
}

input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(0,0,0,.22);
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

input:focus {
  border-color: rgba(88,166,255,.55);
}

.alert {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  padding: 16px;
  margin: 16px 0;
  line-height: 1.45;
}

.alert.danger {
  border-color: rgba(255,85,112,.55);
  background: rgba(255,85,112,.12);
  color: #ffdce2;
}

.hello {
  margin-top: 18px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.hello h1 {
  margin: 6px 0 0;
  font-size: clamp(44px, 5vw, 70px);
  letter-spacing: -2.5px;
}

.hello-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px;
  background: rgba(0,0,0,.18);
}

.mini-card span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 950;
}

.mini-card b {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

.cabinet-card {
  margin-top: 18px;
  padding: 20px;
}

.empty-state,
.extra-box {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 0%, rgba(88,166,255,.12), transparent 32%),
    rgba(255,255,255,.055);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.empty-state h2,
.extra-box h3 {
  margin: 6px 0;
}

.empty-state p,
.extra-box p {
  color: #d4dceb;
  margin: 0;
}

.subscription {
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 8% 0%, rgba(88,166,255,.12), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(57,215,255,.06), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.032));
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: 0 28px 90px rgba(0,0,0,.36);
}

.sub-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.sub-title {
  width: fit-content;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 12px 18px;
  background: rgba(0,0,0,.22);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 950;
}

.sub-title span {
  color: rgba(255,255,255,.70);
  font-size: 14px;
}

.sub-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.chip {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 17px;
  padding: 0 16px;
  font-weight: 900;
  background: rgba(0,0,0,.24);
  display: inline-flex;
  align-items: center;
}

.chip-active {
  color: #dfffe8;
  border-color: rgba(54,214,107,.28);
  background: rgba(54,214,107,.08);
}

.chip-danger {
  color: #ffdce2;
  border-color: rgba(255,85,112,.55);
  background: rgba(255,85,112,.12);
}

.sub-info {
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: rgba(0,0,0,.16);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sub-info > div {
  min-height: 82px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 7px;
}

.sub-info span {
  color: rgba(255,255,255,.58);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 11px;
  font-weight: 950;
}

.sub-info b {
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.green-text {
  color: #45ee86 !important;
}

.red-text {
  color: #ff7187 !important;
}

.sub-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sub-actions form {
  margin: 0;
}

.action-btn {
  width: 100%;
  min-height: 62px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.10), transparent 32%),
    rgba(255,255,255,.065);
  color: #fff;
  cursor: pointer;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  transition: .18s ease;
}

.action-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
}

.action-primary {
  background: linear-gradient(135deg, #ffffff, #dbe9ff);
  color: #07101f;
  border-color: rgba(255,255,255,.70);
}

.action-primary:hover {
  background: linear-gradient(135deg, #ffffff, #eef6ff);
}

.action-btn span {
  font-size: 18px;
  line-height: 1;
}

.ban-note {
  margin-top: 16px;
  border: 1px solid rgba(255,80,105,.55);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,80,105,.18), transparent 40%),
    rgba(255,80,105,.10);
  padding: 18px;
  color: #ffe8ec;
  line-height: 1.45;
}

.ban-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #ff9aac;
  font-weight: 950;
  margin-bottom: 6px;
}

.switch {
  width: 82px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.24);
  padding: 4px;
  cursor: pointer;
}

.switch span {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #8894a8;
  transition: .2s ease;
}

.switch.on span {
  transform: translateX(36px);
  background: var(--green);
  box-shadow: 0 0 24px rgba(54,214,107,.55);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  z-index: 100;
  padding: 20px;
}

.modal.show {
  display: grid;
}

.modal-card {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(88,166,255,.10), transparent 35%),
    #101725;
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin-top: 0;
}

.modal-card p {
  color: #d2dbea;
}

.modal-big {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin: 14px 0;
  font-size: 30px;
  font-weight: 950;
}

@media (max-width: 980px) {
  .home-hero,
  .hello,
  .hello-cards,
  .grid-3,
  .plans,
  .empty-state,
  .extra-box,
  .sub-head {
    grid-template-columns: 1fr;
  }

  .sub-badges {
    justify-content: flex-start;
  }

  .sub-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .sub-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .home-hero-main {
    padding: 30px;
  }

  .home-hero-main h1 {
    font-size: 46px;
  }
}

@media (max-width: 620px) {
  .sub-info {
    grid-template-columns: 1fr;
  }

  .sub-actions {
    grid-template-columns: 1fr;
  }

  .subscription {
    padding: 18px;
    border-radius: 24px;
  }

  .sub-title {
    width: 100%;
    display: grid;
    gap: 4px;
  }

  .brand span {
    max-width: 230px;
  }
}
