:root {
  color-scheme: light;
  --page: #f7fafc;
  --surface: #ffffff;
  --surface-strong: #f0f6fb;
  --surface-glass: rgba(255, 255, 255, .72);
  --surface-glass-strong: rgba(255, 255, 255, .86);
  --ink: #101722;
  --ink-soft: #253347;
  --muted: #617083;
  --line: #d9e3ee;
  --line-strong: #c2d1df;
  --blue: #1262f3;
  --cyan: #08bcd4;
  --green: #15966c;
  --orange: #f0782f;
  --yellow: #f1c84b;
  --shadow: 0 22px 70px rgba(28, 47, 73, .14);
  --body-grid-x: rgba(18, 98, 243, .08);
  --body-grid-y: rgba(8, 188, 212, .07);
  --header-bg: rgba(247, 250, 252, .88);
  --nav-bg: rgba(255, 255, 255, .72);
  --nav-hover: #eef6ff;
  --field-bg: #edf5fb;
  --browser-toolbar: #fbfdff;
  --browser-canvas: #f7fafc;
  --address-bg: #f3f7fb;
  --card-bg: rgba(255, 255, 255, .86);
  --popover-bg: #ffffff;
  --modal-bg: #ffffff;
  --drawer-bg: #ffffff;
  --admin-soft: #f8fbfe;
  --sky-a: #bfefff;
  --sky-b: #eaf9ff;
  --sky-c: #d5f8d9;
  --sky-d: #f9f3c9;
  --hero-lead: #425167;
  --browser-overlay: rgba(16, 23, 34, .32);
}

html[data-mode="dark"] {
  color-scheme: dark;
  --page: #070b12;
  --surface: #0f1724;
  --surface-strong: #141f2f;
  --surface-glass: rgba(18, 27, 42, .74);
  --surface-glass-strong: rgba(20, 31, 47, .88);
  --ink: #f4f8ff;
  --ink-soft: #d9e6f5;
  --muted: #9aaac0;
  --line: rgba(169, 194, 221, .18);
  --line-strong: rgba(169, 194, 221, .28);
  --blue: #5b8dff;
  --cyan: #38d4e8;
  --green: #3fce94;
  --orange: #ff9b55;
  --yellow: #ffe08a;
  --shadow: 0 28px 86px rgba(0, 0, 0, .46);
  --body-grid-x: rgba(91, 141, 255, .1);
  --body-grid-y: rgba(56, 212, 232, .075);
  --header-bg: rgba(7, 11, 18, .76);
  --nav-bg: rgba(15, 23, 36, .72);
  --nav-hover: rgba(91, 141, 255, .14);
  --field-bg: rgba(20, 31, 47, .92);
  --browser-toolbar: #111a28;
  --browser-canvas: #0c1320;
  --address-bg: #0b111c;
  --card-bg: rgba(15, 23, 36, .82);
  --popover-bg: #111a28;
  --modal-bg: #101826;
  --drawer-bg: #0f1724;
  --admin-soft: #101a29;
  --sky-a: #091525;
  --sky-b: #0c2639;
  --sky-c: #0b3d3f;
  --sky-d: #123329;
  --hero-lead: #b3c0d1;
  --browser-overlay: rgba(3, 7, 12, .5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--body-grid-x) 1px, transparent 1px),
    linear-gradient(180deg, var(--body-grid-y) 1px, transparent 1px),
    radial-gradient(1200px 720px at 50% -24%, rgba(91, 141, 255, .14), transparent 62%),
    var(--page);
  background-size: 72px 72px;
  transition: background-color .25s ease, color .25s ease;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand img,
.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 38px;
}

.brand span,
.footer-brand span {
  font-size: 20px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--nav-bg);
}

.primary-nav a {
  padding: 10px 12px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}

.primary-nav a:hover {
  background: var(--nav-hover);
  color: var(--blue);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 5px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-glass);
  color: var(--muted);
  font-size: 13px;
}

.language-control select {
  min-width: 112px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--field-bg);
}

.ghost-button,
.theme-toggle,
.avatar-button,
.close-button,
.menu-popover button,
.admin-tabs button {
  border: 0;
  background: transparent;
}

.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.ghost-button:hover,
.avatar-button:hover,
.theme-toggle:hover {
  border-color: var(--blue);
}

.theme-toggle {
  width: 56px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.theme-toggle-track {
  position: relative;
  width: 38px;
  height: 22px;
  display: block;
  border-radius: 999px;
  background: linear-gradient(135deg, #dff4ff, #fff2c8);
  box-shadow: inset 0 0 0 1px rgba(16, 23, 34, .08);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 23, 34, .18);
  transition: transform .24s ease, background .24s ease;
}

.theme-toggle-sun,
.theme-toggle-moon {
  position: absolute;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.theme-toggle-sun {
  left: 7px;
  background: #f1b84b;
  box-shadow: 0 0 0 2px rgba(241, 184, 75, .24);
}

.theme-toggle-moon {
  right: 7px;
  background: #172033;
  box-shadow: inset 3px -1px 0 #d9e6f5;
}

html[data-mode="dark"] .theme-toggle-track {
  background: linear-gradient(135deg, #172033, #0b1320);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

html[data-mode="dark"] .theme-toggle-thumb {
  transform: translateX(16px);
  background: #d9e6f5;
}

.avatar-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 800;
}

.menu-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--popover-bg);
  box-shadow: var(--shadow);
  display: none;
}

.account-menu.is-open .menu-popover {
  display: grid;
}

.menu-popover button {
  width: 100%;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  text-align: left;
}

.menu-popover button:hover {
  background: var(--nav-hover);
  color: var(--blue);
}

.hero-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: 42px;
  padding: 54px 0 38px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 700px;
  font-size: 66px;
  line-height: .97;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--hero-lead);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 32px rgba(18, 98, 243, .22);
}

.secondary-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-product {
  position: relative;
  min-width: 0;
}

.browser-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.browser-toolbar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--browser-toolbar);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-controls span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-controls span:nth-child(1) {
  background: #ff6b57;
}

.window-controls span:nth-child(2) {
  background: var(--yellow);
}

.window-controls span:nth-child(3) {
  background: #32c56a;
}

.address-bar {
  min-width: 0;
  flex: 1;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--address-bg);
  color: var(--muted);
  font-size: 14px;
}

.address-bar img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.address-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-canvas {
  min-height: 540px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(18, 98, 243, .08), rgba(8, 188, 212, .06)),
    var(--browser-canvas);
}

.wallpaper-stage {
  min-height: 504px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .02), var(--browser-overlay)),
    url("vanofi-backdrop.svg") center / cover no-repeat;
}

.search-shell {
  width: min(560px, 100%);
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 8px;
  background: var(--surface-glass-strong);
  box-shadow: 0 18px 48px rgba(22, 37, 53, .2);
  color: var(--ink-soft);
  font-weight: 700;
}

.search-shell img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.quick-actions span {
  min-width: 92px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 8px;
  background: rgba(16, 23, 34, .58);
  color: #fff;
  text-align: center;
  font-weight: 700;
}

.signal-band {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 12px 40px rgba(28, 47, 73, .08);
}

.signal-band div {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.signal-band div:last-child {
  border-right: 0;
}

.signal-band strong {
  font-size: 30px;
}

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

.modes-section {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 0;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 34px;
}

.modes-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: 46px;
  line-height: 1.04;
}

.modes-copy p:not(.eyebrow) {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--hero-lead);
  font-size: 17px;
  line-height: 1.7;
}

.modes-visual {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sky-scene {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .18) 32%, rgba(20, 151, 120, .26) 100%),
    linear-gradient(135deg, var(--sky-a) 0%, var(--sky-b) 36%, var(--sky-c) 72%, var(--sky-d) 100%);
}

.sky-scene::before {
  content: "";
  position: absolute;
  inset: auto -12% -26% -12%;
  height: 52%;
  background:
    linear-gradient(160deg, rgba(20, 150, 105, .68), rgba(22, 116, 211, .26)),
    linear-gradient(90deg, rgba(255, 255, 255, .28), transparent 54%);
  clip-path: polygon(0 42%, 16% 26%, 30% 40%, 45% 20%, 63% 38%, 80% 18%, 100% 36%, 100% 100%, 0 100%);
}

.sky-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .68), transparent 34%),
    linear-gradient(320deg, rgba(18, 98, 243, .18), transparent 42%);
  pointer-events: none;
}

.sun-core {
  position: absolute;
  top: 42px;
  right: 74px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff8c9, #f1b84b);
  box-shadow: 0 0 54px rgba(241, 184, 75, .48);
}

.cloud {
  position: absolute;
  display: block;
  width: 176px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 20px 50px rgba(43, 110, 160, .12);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 72px;
  height: 72px;
  left: 34px;
  bottom: 22px;
}

.cloud::after {
  width: 88px;
  height: 88px;
  right: 28px;
  bottom: 14px;
}

.cloud-one {
  top: 86px;
  left: 40px;
  background: rgba(255, 255, 255, .78);
}

.cloud-two {
  top: 170px;
  right: 22px;
  transform: scale(.78);
  background: rgba(215, 249, 247, .82);
}

.cloud-three {
  top: 252px;
  left: 42%;
  transform: scale(.58);
  background: rgba(223, 250, 230, .8);
}

.mode-card {
  position: absolute;
  z-index: 2;
  width: min(280px, calc(100% - 36px));
  min-height: 176px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  background: var(--surface-glass);
  box-shadow: 0 20px 54px rgba(31, 63, 91, .18);
  backdrop-filter: blur(18px);
}

.energy-card {
  left: 28px;
  bottom: 32px;
}

.performance-card {
  right: 28px;
  top: 128px;
}

.mode-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(21, 150, 108, .12);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.performance-card .mode-kicker {
  background: rgba(18, 98, 243, .12);
  color: var(--blue);
}

.mode-card strong {
  display: block;
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1;
}

.mode-card p {
  margin: 0;
  color: var(--hero-lead);
  line-height: 1.5;
}

.mode-meter {
  height: 10px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 8px;
  background: rgba(21, 150, 108, .16);
}

.mode-meter span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #23b873, #87df92);
}

.speed-lines {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.speed-lines span {
  display: block;
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.speed-lines span:nth-child(1) {
  width: 100%;
}

.speed-lines span:nth-child(2) {
  width: 78%;
}

.speed-lines span:nth-child(3) {
  width: 54%;
}

.section-block,
.download-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.download-copy h2 {
  margin: 0;
  max-width: 780px;
  font-size: 42px;
  line-height: 1.08;
}

.feature-grid,
.download-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

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

.feature-grid article,
.download-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 12px 34px rgba(28, 47, 73, .08);
}

.feature-grid article {
  min-height: 246px;
  padding: 24px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue) 13%, var(--surface));
  color: var(--blue);
  font-weight: 900;
}

.feature-grid h3,
.download-card h3,
.activity-list h3,
.admin-content h3 {
  margin: 20px 0 8px;
  font-size: 22px;
}

.feature-grid p,
.download-copy p,
.download-card p,
.activity-list p,
.admin-content p,
.dashboard-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.feature-grid p,
.download-card p,
.activity-list p,
.admin-content p,
.dashboard-grid p {
  margin: 0;
}

.download-section {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: start;
  gap: 34px;
}

.download-copy p {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.7;
}

.download-grid {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.download-card {
  min-height: 152px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.platform-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--orange) 14%, var(--surface));
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-card.is-ready .platform-chip {
  background: color-mix(in srgb, var(--green) 14%, var(--surface));
  color: var(--green);
}

.download-card h3 {
  margin-top: 14px;
}

.download-card p {
  font-size: 14px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  min-height: 118px;
  margin: 0 auto;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--blue);
}

.site-footer p {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.modal,
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal-backdrop,
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 23, 34, .54);
  backdrop-filter: blur(8px);
}

.modal {
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-card {
  position: relative;
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--modal-bg);
  box-shadow: var(--shadow);
}

.modal-logo {
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: center;
}

.modal-card h2,
.drawer-panel h2 {
  margin: 0 0 22px;
  font-size: 32px;
}

.modal-card form,
.admin-pane {
  display: grid;
  gap: 14px;
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.web-auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: -8px 0 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--admin-soft);
}

.web-auth-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 900;
}

.web-auth-switch button.is-active {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
}

.modal-card label,
.admin-pane label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 800;
}

.modal-card input,
.admin-pane input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--admin-soft);
}

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  font-size: 24px;
}

.close-button:hover {
  background: var(--nav-hover);
  color: var(--blue);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(720px, 100%);
  height: 100%;
  overflow: auto;
  padding: 38px;
  border-left: 1px solid var(--line);
  background: var(--drawer-bg);
  box-shadow: var(--shadow);
}

.account-workspace {
  left: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--blue) 8%, transparent), transparent 38%),
    var(--page);
  box-shadow: none;
}

.account-shell {
  display: grid;
  grid-template-columns: minmax(248px, 290px) minmax(0, 1fr);
  min-height: 100%;
}

.account-sidebar {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 28px 18px 22px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, var(--blue));
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  text-decoration: none;
}

.account-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 30px;
}

.account-identity {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  margin: 42px 0 26px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.account-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
}

.account-identity div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.account-identity strong,
.account-identity span:not(.account-avatar) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-identity strong {
  color: var(--ink);
  font-size: 14px;
}

.account-identity span:not(.account-avatar) {
  color: var(--muted);
  font-size: 12px;
}

.account-nav {
  display: grid;
  gap: 6px;
}

.account-nav button,
.account-signout {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.account-nav button span {
  display: grid;
  width: 20px;
  place-items: center;
  color: var(--muted);
  font-size: 17px;
}

.account-nav button:hover,
.account-nav button.is-active {
  border-color: color-mix(in srgb, var(--blue) 22%, var(--line));
  background: color-mix(in srgb, var(--blue) 11%, var(--surface));
  color: var(--blue);
}

.account-nav button.is-active span {
  color: var(--blue);
}

.account-signout {
  margin-top: auto;
  color: var(--muted);
}

.account-signout:hover {
  background: color-mix(in srgb, #e5484d 10%, var(--surface));
  color: #d83d45;
}

.account-main {
  width: min(1120px, 100%);
  min-height: 100%;
  margin: 0 auto;
  padding: 64px clamp(28px, 5vw, 76px) 72px;
}

.account-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.account-heading h2 {
  margin: 7px 0 10px;
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: 0;
}

.account-heading p:not(.eyebrow),
.account-pane-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.account-pane[hidden] {
  display: none;
}

.account-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 176px;
  padding: 28px 30px;
  border: 1px solid color-mix(in srgb, var(--blue) 26%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--blue) 14%, transparent), transparent 55%),
    color-mix(in srgb, var(--surface) 92%, transparent);
}

.account-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.account-status-card strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
}

.account-status-card p {
  max-width: 550px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.account-status-card .button {
  flex: 0 0 auto;
  min-width: 180px;
  justify-content: center;
}

.account-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 18px;
  margin-top: 18px;
}

.account-detail-block {
  min-height: 210px;
  padding: 24px;
  border-top: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
}

.account-detail-block > span {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
}

.account-detail-block dl {
  display: grid;
  gap: 13px;
  margin: 0;
}

.account-detail-block dl div {
  display: grid;
  grid-template-columns: minmax(120px, .55fr) minmax(0, 1fr);
  gap: 14px;
}

.account-detail-block dt {
  color: var(--muted);
  font-size: 13px;
}

.account-detail-block dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-votes-preview {
  position: relative;
  overflow: hidden;
}

.account-votes-preview::after {
  position: absolute;
  right: -12px;
  bottom: -42px;
  color: color-mix(in srgb, var(--blue) 13%, transparent);
  content: '✓';
  font-size: 150px;
  font-weight: 900;
  line-height: 1;
}

.account-votes-preview strong {
  display: block;
  margin: 6px 0;
  color: var(--ink);
  font-size: 50px;
  line-height: 1;
}

.account-votes-preview p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.text-button {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 850;
}

.account-pane-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.account-pane-heading h3 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 31px;
}

.account-vote-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.account-empty {
  margin: 0;
  padding: 38px 0;
  color: var(--muted);
}

.account-vote-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  min-height: 84px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}

.account-vote-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cyan) 14%, var(--surface));
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.account-vote-copy {
  min-width: 0;
}

.account-vote-copy strong,
.account-vote-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-vote-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.account-vote-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.account-vote-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

.premium-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr);
  gap: 20px;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--orange) 30%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--orange) 15%, transparent), transparent 56%),
    var(--surface);
}

.premium-summary h4 {
  margin: 7px 0 9px;
  color: var(--ink);
  font-size: 27px;
}

.premium-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.premium-summary aside {
  display: grid;
  align-content: center;
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.premium-summary aside span {
  color: var(--muted);
  font-size: 13px;
}

.premium-summary aside strong {
  color: var(--ink);
  font-size: 18px;
}

.premium-summary .button {
  width: fit-content;
  margin-top: 14px;
}

.legal-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.legal-link-grid a {
  display: grid;
  gap: 10px;
  min-height: 165px;
  align-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--ink);
  text-decoration: none;
}

.legal-link-grid a:hover {
  border-color: color-mix(in srgb, var(--blue) 36%, var(--line));
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
}

.legal-link-grid strong {
  font-size: 18px;
}

.legal-link-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.admin-drawer {
  width: min(980px, 100%);
}

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

.dashboard-grid article,
.activity-list,
.admin-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--admin-soft);
}

.dashboard-grid article {
  min-height: 132px;
  padding: 18px;
}

.dashboard-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-grid strong {
  display: block;
  margin: 12px 0 6px;
  font-size: 34px;
}

.activity-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 20px;
}

.activity-list h3 {
  margin-top: 0;
}

.admin-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
}

.admin-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-tabs button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--admin-soft);
  color: var(--ink-soft);
  text-align: left;
  padding: 0 12px;
  font-weight: 800;
}

.admin-tabs button.is-active {
  border-color: color-mix(in srgb, var(--blue) 32%, var(--line));
  background: color-mix(in srgb, var(--blue) 13%, var(--surface));
  color: var(--blue);
}

.admin-content {
  min-height: 390px;
  padding: 22px;
}

.admin-pane {
  display: none;
}

.admin-pane.is-active {
  display: grid;
}

.admin-pane h3 {
  margin-top: 0;
}

.premium-order-panel {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.premium-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.premium-order-head > div {
  display: grid;
  gap: 3px;
}

.premium-order-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.premium-order-head strong {
  color: var(--ink);
  font-size: 17px;
}

.premium-order-head .ghost-button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 12px;
}

.premium-order-list {
  display: grid;
  overflow: auto;
  max-height: 320px;
}

.premium-order-list > p {
  margin: 0;
  padding: 14px 0;
  color: var(--muted);
}

.premium-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.premium-order-row > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.premium-order-row strong,
.premium-order-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-order-row strong {
  color: var(--ink);
  font-size: 13px;
}

.premium-order-row span {
  color: var(--muted);
  font-size: 12px;
}

.premium-order-status {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.premium-order-status.paid {
  background: color-mix(in srgb, var(--green) 15%, var(--surface));
  color: var(--green);
}

.premium-order-status.pending {
  background: color-mix(in srgb, var(--orange) 15%, var(--surface));
  color: var(--orange);
}

.control-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 800;
}

.control-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.premium-admin-shell {
  display: grid;
  gap: 14px;
}

.premium-admin-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--blue) 24%, var(--line));
  border-radius: 8px;
  background:
    radial-gradient(circle at 95% 0%, color-mix(in srgb, var(--cyan) 22%, transparent), transparent 34%),
    var(--surface);
}

.premium-admin-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.premium-admin-card strong {
  color: var(--ink);
  font-size: 24px;
}

.premium-admin-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.premium-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--admin-soft);
}

.premium-admin-form label:first-child,
.premium-admin-form button,
.premium-admin-form .form-message {
  grid-column: 1 / -1;
}

.premium-admin-form select,
.premium-admin-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
}

.premium-admin-check {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.premium-admin-check input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--blue);
}

.language-tags,
.swatch-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.language-tags span {
  min-width: 42px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--blue);
  font-weight: 900;
}

.swatch-row button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 8px;
}

.swatch-row button:nth-child(1) {
  background: var(--blue);
}

.swatch-row button:nth-child(2) {
  background: var(--green);
}

.swatch-row button:nth-child(3) {
  background: var(--orange);
}

.swatch-row button:nth-child(4) {
  background: #172033;
}

.swatch-row button:focus-visible {
  outline: 3px solid rgba(18, 98, 243, .28);
  outline-offset: 2px;
}

html[data-mode="dark"] .browser-window,
html[data-mode="dark"] .feature-grid article,
html[data-mode="dark"] .download-card,
html[data-mode="dark"] .signal-band,
html[data-mode="dark"] .modes-visual {
  box-shadow: 0 28px 88px rgba(0, 0, 0, .34);
}

html[data-mode="dark"] .primary-button {
  box-shadow: 0 16px 44px rgba(91, 141, 255, .22);
}

html[data-mode="dark"] .sky-scene {
  background:
    linear-gradient(180deg, rgba(236, 248, 255, .08), rgba(10, 18, 29, .14) 38%, rgba(20, 151, 120, .18) 100%),
    linear-gradient(135deg, var(--sky-a) 0%, var(--sky-b) 36%, var(--sky-c) 72%, var(--sky-d) 100%);
}

html[data-mode="dark"] .sky-scene::before {
  background:
    linear-gradient(160deg, rgba(32, 190, 137, .38), rgba(91, 141, 255, .22)),
    linear-gradient(90deg, rgba(255, 255, 255, .08), transparent 54%);
}

html[data-mode="dark"] .sky-scene::after {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .12), transparent 34%),
    linear-gradient(320deg, rgba(91, 141, 255, .24), transparent 42%);
}

html[data-mode="dark"] .sun-core {
  background: radial-gradient(circle at 35% 30%, #f3fbff, #9fc4ff 48%, #47638f 100%);
  box-shadow: 0 0 58px rgba(91, 141, 255, .34);
}

html[data-mode="dark"] .cloud,
html[data-mode="dark"] .cloud-one,
html[data-mode="dark"] .cloud-two,
html[data-mode="dark"] .cloud-three {
  background: rgba(189, 221, 241, .24);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

html[data-mode="dark"] .quick-actions span {
  background: rgba(7, 11, 18, .68);
  border-color: rgba(255, 255, 255, .18);
}

html[data-mode="dark"] .modal-backdrop,
html[data-mode="dark"] .drawer-backdrop {
  background: rgba(2, 6, 12, .72);
}

.policy-site-header {
  align-items: center;
}

.policy-site-header .primary-nav {
  flex-wrap: wrap;
}

.policy-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 92px;
}

.policy-hero {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin-bottom: 28px;
}

.policy-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 78px);
  line-height: .96;
}

.policy-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--hero-lead);
  font-size: 19px;
  line-height: 1.7;
}

.policy-date {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-glass);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.pricing-grid,
.policy-layout {
  display: grid;
  gap: 16px;
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.price-card,
.policy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 16px 44px rgba(28, 47, 73, .08);
}

.price-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 220px at 16% 0%, color-mix(in srgb, var(--orange) 22%, transparent), transparent 68%),
    radial-gradient(360px 220px at 96% 10%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 70%);
  opacity: .75;
  pointer-events: none;
}

.price-card > * {
  position: relative;
}

.price-card.is-selected {
  border-color: var(--orange);
  box-shadow: 0 18px 58px color-mix(in srgb, var(--orange) 20%, transparent);
}

.price-badge {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--orange) 16%, var(--surface));
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card h2,
.policy-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.15;
}

.price-line {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.price-line strong {
  color: var(--ink);
  font-size: clamp(46px, 7vw, 72px);
  line-height: .9;
}

.price-line span {
  color: var(--muted);
  font-weight: 800;
}

.price-card p,
.policy-card p,
.policy-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 2px 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  color: var(--ink-soft);
  font-weight: 750;
}

.price-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--green);
  font-weight: 950;
}

.policy-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 24px;
}

.policy-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.policy-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.policy-link-row a,
.legal-note a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.policy-footer {
  padding-top: 28px;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: 28px;
  width: min(1080px, calc(100% - 32px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 70px 0 88px;
  align-items: start;
}

.checkout-intro {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent 60%),
    var(--card-bg);
  box-shadow: var(--shadow);
}

.checkout-intro h1,
.payment-result-shell h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.checkout-intro > p,
.payment-result-shell > p {
  margin: 0;
  color: var(--hero-lead);
  line-height: 1.65;
}

.checkout-plan {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
}

.checkout-plan span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.checkout-plan strong {
  grid-row: span 2;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.checkout-plan em {
  color: var(--ink-soft);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.checkout-assurances {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-assurances li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.checkout-assurances li::before {
  margin-right: 8px;
  color: var(--green);
  content: "✓";
  font-weight: 950;
}

.checkout-workspace {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.checkout-auth,
.checkout-payment,
.checkout-frame-wrap {
  display: grid;
  gap: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 16px 44px rgba(28, 47, 73, .08);
}

.checkout-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.checkout-section-head > div:first-child {
  min-width: 0;
}

.checkout-section-head h2 {
  margin: 5px 0 7px;
  color: var(--ink);
  font-size: 26px;
}

.checkout-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.checkout-step {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.checkout-mode-switch {
  flex: 0 0 auto;
}

.checkout-auth form,
.checkout-payment form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-auth label,
.checkout-payment label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.checkout-auth label,
.checkout-auth button,
.checkout-auth .form-message,
.checkout-address-field,
.checkout-legal-check,
.checkout-payment button,
.checkout-payment .form-message {
  grid-column: 1 / -1;
}

.checkout-auth input,
.checkout-payment input,
.checkout-payment textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  outline: 0;
  background: var(--field-bg);
  color: var(--ink);
}

.checkout-payment textarea {
  resize: vertical;
}

.checkout-auth input:focus,
.checkout-payment input:focus,
.checkout-payment textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent);
}

.checkout-legal-check {
  display: flex !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--muted) !important;
  font-weight: 600 !important;
  line-height: 1.5;
}

.checkout-legal-check input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.checkout-legal-check a {
  color: var(--blue);
  font-weight: 850;
}

.checkout-account-reset {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.checkout-frame-wrap iframe {
  width: 100%;
  min-height: 560px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}

.payment-result-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.payment-result-shell {
  display: grid;
  justify-items: start;
  gap: 18px;
  width: min(580px, 100%);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.payment-result-shell img {
  width: 58px;
  height: 58px;
}

html[data-mode="dark"] .price-card,
html[data-mode="dark"] .policy-card,
html[data-mode="dark"] .checkout-intro,
html[data-mode="dark"] .checkout-auth,
html[data-mode="dark"] .checkout-payment,
html[data-mode="dark"] .checkout-frame-wrap,
html[data-mode="dark"] .payment-result-shell {
  box-shadow: 0 24px 72px rgba(0, 0, 0, .32);
}

@media (max-width: 1020px) {
  .site-header {
    position: static;
    min-height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero-section {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  h1 {
    max-width: 820px;
    font-size: 54px;
  }

  .modes-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .download-grid {
    margin-top: 0;
  }

  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .checkout-intro {
    position: static;
  }
}

@media (max-width: 760px) {
  body {
    background-size: 48px 48px;
  }

  .site-header,
  .hero-section,
  .signal-band,
  .modes-section,
  .section-block,
  .download-section,
  .policy-page,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .brand span {
    font-size: 18px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .language-control {
    flex: 1;
  }

  .language-control select {
    width: 100%;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions .button,
  .download-card .button,
  .modal-card .button {
    width: 100%;
  }

  .browser-toolbar {
    gap: 8px;
    padding: 0 10px;
  }

  .window-controls {
    display: none;
  }

  .browser-canvas {
    min-height: 390px;
    padding: 10px;
  }

  .wallpaper-stage {
    min-height: 370px;
    padding: 18px;
  }

  .search-shell {
    align-items: flex-start;
    flex-direction: column;
    min-height: 116px;
  }

  .quick-actions span {
    min-width: 0;
    flex: 1 1 88px;
  }

  .account-shell,
  .account-detail-grid,
  .premium-summary,
  .legal-link-grid {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    min-height: auto;
    padding: 20px 16px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .account-identity {
    margin: 22px 0 16px;
  }

  .account-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .account-nav button {
    flex: 0 0 auto;
  }

  .account-signout {
    margin-top: 16px;
  }

  .account-main {
    padding: 42px 22px 56px;
  }

  .account-heading,
  .account-status-card,
  .account-pane-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-status-card .button {
    width: 100%;
  }

  .premium-summary aside {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .signal-band,
  .modes-visual,
  .feature-grid,
  .pricing-grid,
  .dashboard-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .checkout-shell {
    width: min(100% - 24px, 1080px);
    padding: 34px 0 62px;
  }

  .checkout-intro,
  .checkout-auth,
  .checkout-payment,
  .checkout-frame-wrap,
  .payment-result-shell {
    padding: 22px;
  }

  .checkout-section-head {
    display: grid;
  }

  .checkout-auth form,
  .checkout-payment form {
    grid-template-columns: 1fr;
  }

  .checkout-payment label,
  .checkout-payment button,
  .checkout-payment .form-message {
    grid-column: 1;
  }

  .checkout-frame-wrap iframe {
    min-height: 620px;
  }

  .signal-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-band div:last-child {
    border-bottom: 0;
  }

  .section-block,
  .download-section {
    padding-top: 66px;
  }

  .section-heading h2,
  .modes-copy h2,
  .download-copy h2 {
    font-size: 32px;
  }

  .modes-section {
    padding-top: 66px;
  }

  .modes-visual {
    padding: 10px;
  }

  .sky-scene {
    min-height: 620px;
  }

  .sun-core {
    top: 34px;
    right: 30px;
    width: 64px;
    height: 64px;
  }

  .cloud-one {
    top: 92px;
    left: -34px;
  }

  .cloud-two {
    top: 206px;
    right: -48px;
  }

  .cloud-three {
    top: 306px;
    left: 34%;
  }

  .mode-card {
    width: calc(100% - 32px);
  }

  .energy-card {
    left: 16px;
    bottom: 28px;
  }

  .performance-card {
    top: 128px;
    right: 16px;
  }

  .download-card {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .drawer-panel {
    padding: 30px 18px;
  }

  .admin-content {
    min-height: 0;
  }
}
