:root {
  --bg: #0e0d0e;
  --panel: #111113;
  --panel-2: #151518;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f5;
  --muted: #8b8b94;
  --muted-2: #71717a;
  --accent: #e81c5a;
  --accent-2: #ef5182;
  --green: #3aa246;
  --violet: #787acf;
  --danger: #cc342f;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.account-sidebar::-webkit-scrollbar,
.list-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  scrollbar-width: none;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: 0; }

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(1120px, calc(100% - 32px));
  height: 62px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 13, 14, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transform: translateY(1px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(245, 245, 247, 0.58);
  font-size: 14px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}
.nav-link:hover { transform: translateY(-1px); }
.nav-link:active { transform: translateY(0) scale(.97); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-pill {
  width: 53px;
  height: 28px;
  border-radius: 999px;
  color: rgba(245, 245, 247, 0.72);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.pill-btn, .primary-cta, .secondary-cta, .soft-btn, .danger-btn, .download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.pill-btn:hover, .primary-cta:hover, .secondary-cta:hover, .soft-btn:hover, .danger-btn:hover, .download-button:hover {
  transform: translateY(-1px);
}
.pill-btn:active, .primary-cta:active, .secondary-cta:active, .soft-btn:active, .danger-btn:active, .download-button:active {
  transform: translateY(0) scale(.98);
}

.pill-muted, .secondary-cta, .soft-btn {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.pill-primary, .primary-cta, .download-button {
  border: 1px solid rgba(232, 28, 90, 0.48);
  color: #fff;
  background: var(--accent);
}

.danger-btn {
  border: 1px solid rgba(204, 52, 47, 0.3);
  color: #ff6b67;
  background: rgba(204, 52, 47, 0.12);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.menu-toggle:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }
.menu-toggle:active { transform: scale(.96); }

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .18s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 88px;
  left: 16px;
  right: 16px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(14, 13, 14, .94);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-10px) scale(.98);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.2,.8,.2,1);
}

.mobile-menu.active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.mobile-menu a {
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(245,245,247,.75);
  transform: translateX(-4px);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.mobile-menu.active a { transform: translateX(0); }
.mobile-menu a:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(3px); }

.page { display: none; }
.page.active { display: block; animation: pageIn .22s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-shell {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  padding: 140px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(232, 28, 90, .24), transparent 42%),
    linear-gradient(180deg, #111014 0%, var(--bg) 75%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
  text-align: center;
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero-content p {
  max-width: 720px;
  margin: 28px auto 0;
  color: rgba(245,245,247,.62);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.dark-section {
  width: 100%;
  padding: 70px 24px 24px;
  text-align: center;
  background: var(--bg);
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.section-title span {
  color: transparent;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
}
.section-subtitle {
  max-width: 650px;
  margin: 18px auto 0;
  color: rgba(245,245,247,.58);
  font-size: 17px;
  line-height: 1.6;
}

.product-grid-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: min(720px, calc(100% - 32px));
  margin: 56px auto 0;
  padding-bottom: 80px;
}
.home-prod-card {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  transition: transform .2s ease;
}
.home-prod-card:hover { transform: translateY(-4px); }
.home-prod-card.violet { background: radial-gradient(circle at center, var(--violet), transparent 90%), linear-gradient(135deg, #5c54aa, #544aa0); }
.home-prod-card.rose { background: radial-gradient(circle at center, var(--accent-2), transparent 90%), linear-gradient(135deg, #e92561, #e92460); }
.home-prod-card.green { background: radial-gradient(circle at center, var(--green), transparent 90%), linear-gradient(135deg, #2b7a36, #297635); }
.home-prod-card.is-soon {
  cursor: default;
  filter: saturate(.92);
}
.home-prod-card.is-soon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.12));
  pointer-events: none;
}
.home-prod-card strong {
  font-size: 40px;
  line-height: 1.05;
  text-align: center;
}
.home-prod-card p {
  margin: 0;
  max-width: 220px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.card-badge {
  position: absolute;
  top: 0;
  z-index: 2;
  padding: 6px 16px;
  color: #fff;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  font-size: 12px;
}
.card-badge.price { left: 0; border-radius: 0 0 999px 0; }
.card-badge.term { right: 0; display: inline-flex; align-items: center; gap: 6px; border-radius: 0 0 0 999px; }
.card-badge img { width: 16px; height: 16px; }
.card-bottom {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(12px);
  font-size: 12px;
  transition: bottom .22s ease;
}
.home-prod-card:hover .card-bottom { bottom: 18px; }

.compare-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 60px 0 120px;
}
.compare-copy h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.compare-copy p {
  color: rgba(245,245,247,.58);
  line-height: 1.65;
  margin: 22px 0 28px;
}
.compare-copy .primary-cta {
  margin-top: 32px;
}
.before-after {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #0f0f11;
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.compare-after {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  transform: translateX(-1px);
  background: rgba(255,255,255,.86);
  box-shadow: 0 0 24px rgba(232,28,90,.55);
  pointer-events: none;
}
.compare-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px;
  background: rgba(14,13,14,.78);
  backdrop-filter: blur(10px);
}
.compare-divider::after {
  content: "< >";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}
.compare-label {
  position: absolute;
  top: 16px;
  z-index: 3;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 650;
  pointer-events: none;
}
.before-label { left: 16px; }
.after-label { right: 16px; }

.inner-page, .account-root {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 130px 0 120px;
}

#page-download > .inner-page,
#page-faq > .inner-page {
  max-width: 1100px;
  width: calc(100% - 32px);
  margin-left: auto;
  margin-right: auto;
  padding-top: 150px;
}
.page-heading { max-width: 760px; margin-bottom: 34px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 700;
}
.page-heading h1, .account-header h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
}
.page-heading p {
  color: rgba(245,245,247,.6);
  font-size: 18px;
  line-height: 1.6;
}
.download-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(232,28,90,.16), rgba(255,255,255,.035));
}
.download-panel h2 { max-width: 650px; margin: 18px 0 8px; font-size: 34px; }
.download-panel p { max-width: 680px; color: rgba(245,245,247,.6); line-height: 1.6; }
.version-chip {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(232,28,90,.12);
  border: 1px solid rgba(232,28,90,.3);
  font-size: 13px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.info-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.info-grid h3 { margin: 0 0 10px; }
.info-grid p { margin: 0; color: rgba(245,245,247,.58); line-height: 1.55; }

.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-weight: 650;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
}
.faq-content p {
  margin: 0;
  padding: 0 20px 18px;
  color: rgba(245,245,247,.62);
  line-height: 1.6;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.account-sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.acc-nav-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted-2);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.acc-nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(232,28,90,.18), rgba(232,28,90,.04));
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity .22s ease, transform .22s ease;
}
.acc-nav-btn.active {
  color: var(--accent);
  background: rgba(232,28,90,.1);
}
.acc-nav-btn.active::before { opacity: 1; transform: translateX(0); }
.acc-nav-btn:hover { color: #fff; transform: translateX(3px); }
.acc-nav-btn:active { transform: scale(.98); }
.account-content { flex: 1; min-width: 0; }
.acc-tab { display: none; }
.acc-tab.active {
  display: block;
  animation: tabReveal .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes tabReveal {
  from { opacity: 0; transform: translateY(10px) scale(.99); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.account-card, .list-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}
.profile-topline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.avatar-box {
  position: relative;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel-2);
  cursor: pointer;
}
.avatar-box img { width: 100%; height: 100%; object-fit: cover; }
.avatar-box input { display: none; }
.profile-topline h2 { margin: 0 0 6px; font-size: 28px; }
.profile-topline p { margin: 0; color: var(--muted); }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.field-grid div {
  padding: 12px 16px;
  border: 1px solid #1f1f23;
  border-radius: 12px;
  background: #101012;
}
.field-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}
.field-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #e4e4e7;
  font-size: 14px;
}
.security-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(232,28,90,.18);
  border-radius: 16px;
  background: rgba(232,28,90,.07);
}
.security-panel h3 {
  margin: 0 0 5px;
  font-size: 16px;
}
.security-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-row h2 { margin: 0 0 4px; }
.section-row p { margin: 0; color: var(--muted); }
.friends-mode-tabs {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 260px;
  margin: 0 0 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}
.friends-mode-tabs::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: rgba(232,28,90,.16);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.friends-mode-tabs.requests-active::before {
  transform: translateX(100%);
}
.friends-mode-tab {
  position: relative;
  z-index: 1;
  height: 36px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  transition: color .18s ease, transform .18s ease;
}
.friends-mode-tab.active { color: #fff; }
.friends-mode-tab:hover { color: #fff; transform: translateY(-1px); }
.friends-panel { display: none; }
.friends-panel.active {
  display: block;
  animation: tabReveal .24s cubic-bezier(.2,.8,.2,1);
}
.minor-title { margin: 20px 0 10px; color: #e4e4e7; font-size: 16px; }
.empty-state, .config-placeholder {
  padding: 18px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  text-align: center;
}
.config-item, .friend-item, .request-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.config-item + .config-item, .friend-item + .friend-item, .request-item + .request-item { margin-top: 8px; }
.config-item-name, .friend-name { color: var(--text); font-weight: 650; }
.config-item-date, .friend-game-status { color: var(--muted); font-size: 13px; }
.friend-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 68px;
  padding: 12px 14px;
}
.friend-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.friend-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
}
.friend-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}
.friend-subline {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}
.friend-game-status {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.config-item-actions, .request-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.config-item-actions button, .request-actions button, .friend-unfriend-btn {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.065);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.config-item-actions button:hover, .request-actions button:hover, .friend-unfriend-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.1);
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
}
.config-item-actions button:active, .request-actions button:active, .friend-unfriend-btn:active { transform: scale(.97); }
.config-apply-btn {
  color: #fff !important;
  border-color: rgba(232,28,90,.36) !important;
  background: rgba(232,28,90,.18) !important;
}
.config-dl-btn {
  color: #d9dcff !important;
  border-color: rgba(120,122,207,.34) !important;
  background: rgba(120,122,207,.16) !important;
}
.config-del-btn, .friend-unfriend-btn, .request-reject-btn {
  color: #ffaaa6 !important;
  border-color: rgba(204,52,47,.3) !important;
  background: rgba(204,52,47,.12) !important;
}
.request-accept-btn {
  color: #9df0a6 !important;
  border-color: rgba(58,162,70,.34) !important;
  background: rgba(58,162,70,.14) !important;
}
.friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(255,255,255,.06);
  animation: avatar-in .25s ease;
}
@keyframes avatar-in { from { opacity: 0; } to { opacity: 1; } }
.friend-status {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--muted-2);
  flex: 0 0 auto;
}
.friend-status-online { background: #47d16c; }
.friend-status-offline { background: #55555d; }

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 34px;
  color: rgba(245,245,247,.62);
}
.site-footer strong { color: var(--text); }
.site-footer p { margin: 8px 0 0; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-glow {
  position: relative;
  height: 0;
  pointer-events: none;
}
.footer-glow::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 140%;
  height: 260px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 100%, rgba(232,28,90,.42), transparent 70%);
  filter: blur(22px);
  opacity: .35;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(12px);
  opacity: 1;
  pointer-events: auto;
  transition: opacity .22s ease, backdrop-filter .22s ease;
}
.modal-overlay.hidden {
  display: grid;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
}
.modal-box {
  position: relative;
  width: min(430px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #111113;
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
}
.modal-overlay.hidden .modal-box {
  transform: translateY(14px) scale(.96);
  opacity: 0;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 28px;
}
.modal-box h2 { margin: 0 0 8px; }
.modal-box p { margin: 0 0 18px; color: var(--muted); }
.modal-box input {
  width: 100%;
  height: 46px;
  margin-top: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #0f0f11;
  outline: none;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.notification-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100% - 36px));
}
.notification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(17,17,19,.94);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
.notification.success { border-color: rgba(58,162,70,.38); }
.notification.error { border-color: rgba(204,52,47,.42); }
.notification-close { cursor: pointer; color: var(--muted); font-size: 20px; }
.notification-icon, .notification-bar { display: none; }

.auth-page {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  background: var(--bg);
}
.auth-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 80px;
  background:
    radial-gradient(circle at 50% 35%, rgba(232,28,90,.28), transparent 38%),
    linear-gradient(180deg, #111014, var(--bg));
}
.auth-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-panel {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(54px, 10vh, 96px) 36px 36px;
  border-left: 1px solid var(--line);
  background: rgba(17,17,19,.72);
}
.auth-page #auth-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.auth-fields {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-right: 8px;
}
.auth-fields::-webkit-scrollbar {
  width: 4px;
}
.auth-fields::-webkit-scrollbar-track {
  background: transparent;
}
.auth-fields::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.12);
  border-radius: 4px;
}
.auth-logo-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 34px; font-weight: 800; font-size: 22px; }
.auth-logo-link img { width: 38px; height: 38px; }
.auth-back { color: var(--muted); font-size: 14px; }
.auth-title { margin: 18px 0 8px; font-size: 36px; }
.auth-subtitle { margin: 0 0 8px; font-size: 26px; }
.auth-description {
  height: 50px;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.55;
  transition: opacity .18s ease;
}
.auth-description.compact {
  height: auto;
  min-height: 0;
}
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}
.auth-tabs::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: rgba(232,28,90,.18);
  box-shadow: 0 10px 30px rgba(232,28,90,.12);
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.auth-tabs.register-active::before { transform: translateX(100%); }
.auth-tab {
  position: relative;
  z-index: 1;
  padding: 10px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: color .2s ease, transform .18s ease;
}
.auth-tab:hover { color: #fff; transform: translateY(-1px); }
.auth-tab:active { transform: scale(.97); }
.auth-tab.active { color: #fff; background: transparent; }
.auth-form.switching .auth-fields { animation: authFieldsIn .22s ease; }
@keyframes authFieldsIn {
  from { opacity: .55; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-label { color: #a1a1aa; font-size: 14px; }
.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #0f0f11;
  outline: none;
}
.auth-input:focus { border-color: rgba(232,28,90,.45); }
.auth-code-wrapper { display: flex; gap: 8px; }
.auth-code-wrapper .auth-input { flex: 1; }
.auth-tg-btn {
  display: grid;
  place-items: center;
  width: 48px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #2aabee, #1d77d3);
  box-shadow: 0 12px 28px rgba(36,129,204,.18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.auth-tg-btn svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  transform: translateX(-1px);
}
.auth-tg-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 16px 34px rgba(36,129,204,.26);
}
.auth-tg-btn:active { transform: scale(.96); }
.auth-tg-hint { display: grid; gap: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.auth-btn { width: 100%; height: 48px; margin-top: 6px; border-radius: 999px; color: #fff; background: var(--accent); cursor: pointer; font-weight: 700; }
.auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  width: fit-content;
}
.auth-remember input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.check-visual {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 5px;
  transition: border-color .18s ease, background .18s ease;
}
.check-visual::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity .15s ease;
}
.auth-remember input:checked + .check-visual {
  border-color: var(--accent);
  background: var(--accent);
}
.auth-remember input:checked + .check-visual::after {
  opacity: 1;
}
.auth-remember:hover .check-visual {
  border-color: rgba(255,255,255,.32);
}
.auth-forgot, .auth-bottom {
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.auth-bottom {
  margin-top: 20px;
  text-align: left;
}
.auth-bottom-link { color: var(--accent-2); margin-left: 6px; }
.auth-forgot-panel {
  display: none;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  animation: tabReveal .24s cubic-bezier(.2,.8,.2,1);
}
.auth-forgot-panel.active { display: block; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .header-actions { display: flex; margin-left: auto; margin-right: 8px; }
  #header-auth-btn { display: none; }
  .menu-toggle { display: block; }
  .hero-shell { min-height: 650px; }
  .compare-section, .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { height: 100vh; border-left: 0; }
  .download-panel, .account-header, .account-layout { flex-direction: column; align-items: stretch; }
  .account-sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
  .acc-nav-btn { white-space: nowrap; text-align: center; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { top: 12px; width: calc(100% - 20px); }
  .hero-shell { padding-left: 16px; padding-right: 16px; }
  .hero-actions, .modal-actions { flex-direction: column; }
  .primary-cta, .secondary-cta, .soft-btn, .danger-btn, .download-button { width: 100%; }
  .security-panel { flex-direction: column; align-items: stretch; }
  .product-grid-section { width: calc(100% - 24px); }
  .home-prod-card { width: 100%; }
  .before-after { aspect-ratio: 4 / 5; }
  .field-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .auth-panel { padding: 26px 18px; }
}
