:root,
[data-theme="light"] {
  --ink: #0d1b22;
  --ink-soft: #3a4f5a;
  --paper: #f3f6f4;
  --paper-2: #e7eeea;
  --surface: #ffffff;
  --line: #c5d2cb;
  --amber: #e0a010;
  --amber-deep: #b87c00;
  --teal: #1c6b7a;
  --teal-deep: #0e4450;
  --phone: #15242c;
  --on-teal: #eef7f5;
  /* Filled teal panels (band / constructor total) — stay dark even in dark mode */
  --band-from: #0e4450;
  --band-to: #1c6b7a;
  --on-band: #eef7f5;
  --radius: 14px;
  --font: "Sora", system-ui, sans-serif;
  --max: 1080px;
  --hero-glow-a: #9ed0c855;
  --hero-glow-b: #e0a01033;
  --hero-base: #dce8e3;
  --hero-end: #eef2f0;
  /* Solid (not translucent) — avoids two-tone seams over frost/paper */
  --chrome-strip: color-mix(in srgb, var(--paper) 84%, var(--paper-2) 16%);
  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #e7f1ee;
  --ink-soft: #9bb2ab;
  --paper: #0e1519;
  --paper-2: #152025;
  --surface: #18242b;
  --line: #2c3f48;
  --amber: #e8b328;
  --amber-deep: #f0c968;
  --teal: #5aa9b8;
  --teal-deep: #8ecad4;
  --phone: #0a1014;
  --on-teal: #eef7f5;
  --band-from: #0a2a32;
  --band-to: #123f4a;
  --on-band: #d5eef2;
  --hero-glow-a: #1c6b7a40;
  --hero-glow-b: #e0a01022;
  --hero-base: #132028;
  --hero-end: #0e1519;
  --chrome-strip: color-mix(in srgb, var(--paper) 78%, var(--paper-2) 22%);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: clip;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--amber-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  /* Frost lives on ::before — backdrop-filter on this box clips overflowing menus. */
  isolation: isolate;
  background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.75rem 0 0;
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
}

.site-header__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

.brand__logo {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  border-radius: 0.4rem;
}

.brand__text {
  min-width: 0;
  line-height: 1.15;
}

.brand span {
  color: var(--teal);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 0.95rem;
  width: 100%;
  font-size: 0.92rem;
  position: relative;
  isolation: isolate;
  padding: 0.7rem 0 0.75rem;
  margin: 0;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  z-index: -1;
  background: var(--chrome-strip);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

@media (min-width: 880px) {
  .site-header__inner {
    padding: 0.85rem 0 0;
  }

  .site-header__top {
    padding-bottom: 0.75rem;
  }

  .nav {
    gap: 0.85rem 1.1rem;
    padding: 0.75rem 0 0.85rem;
  }
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

.nav__cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none !important;
}

.nav__cta:hover {
  background: var(--teal);
  color: var(--paper) !important;
}

.nav-menu {
  position: relative;
}

.nav-menu:is(:hover, :focus-within, .is-open) {
  z-index: 40;
}

.nav-menu__btn {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1.3;
}

.nav-menu__btn:hover,
.nav-menu.is-open .nav-menu__btn,
.nav-menu:hover .nav-menu__btn {
  color: var(--ink);
  border-color: var(--teal);
}

.nav-menu__list {
  position: absolute;
  top: 100%;
  inset-inline-end: 0;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  /* Transparent top border = visual gap + hover hit area (survives overflow:auto). */
  background: var(--surface);
  background-clip: padding-box;
  border: 1px solid var(--line);
  border-top: 0.45rem solid transparent;
  border-radius: 12px;
  box-shadow: 0 16px 36px -24px #00000088;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 40;
}

.nav-menu__list--langs {
  min-width: 13rem;
  max-height: min(70vh, 22rem);
  overflow: auto;
}

.nav-menu__list--currencies {
  min-width: 16.5rem;
  max-height: min(70vh, 22rem);
  overflow: auto;
}

.nav-menu__item--currency {
  white-space: nowrap;
}

.nav-menu:hover .nav-menu__list,
.nav-menu:focus-within .nav-menu__list,
.nav-menu.is-open .nav-menu__list {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-menu__item {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  text-decoration: none !important;
  cursor: pointer;
}

.nav-menu__item:hover,
.nav-menu__item.is-active {
  background: var(--paper-2);
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--hero-glow-a), transparent 55%),
    radial-gradient(900px 420px at 95% 0%, var(--hero-glow-b), transparent 50%),
    linear-gradient(165deg, var(--hero-base) 0%, var(--paper) 55%, var(--hero-end) 100%);
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn--primary {
  background: var(--amber);
  color: var(--ink) !important;
}

.btn--primary:hover {
  background: #f0b428;
  color: var(--ink) !important;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink) !important;
}

.phone-frame {
  width: min(100%, 280px);
  margin-inline: auto;
  background: var(--phone);
  border-radius: 2rem;
  padding: 0.7rem;
  box-shadow:
    0 24px 50px -28px #0d1b22cc,
    inset 0 0 0 1px #ffffff18;
  animation: float-in 0.9s ease both;
}

.phone-frame__screen {
  aspect-ratio: 9 / 17.5;
  border-radius: 1.45rem;
  overflow: hidden;
  background:
    linear-gradient(160deg, #1c6b7a 0%, #0e4450 40%, #15242c 100%);
  position: relative;
}

.phone-frame__screen::before {
  content: "";
  position: absolute;
  inset: 12% 10% auto;
  height: 38%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #9ed0c866, transparent 65%);
  animation: pulse-soft 4.5s ease-in-out infinite;
}

.phone-frame__pins {
  position: absolute;
  inset: 0;
}

.phone-frame__pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px #e0a01033;
  animation: pin-pop 2.8s ease-in-out infinite;
}

.phone-frame__pin:nth-child(1) { top: 28%; left: 42%; animation-delay: 0s; }
.phone-frame__pin:nth-child(2) { top: 48%; left: 58%; animation-delay: 0.4s; }
.phone-frame__pin:nth-child(3) { top: 62%; left: 34%; animation-delay: 0.8s; }

.phone-frame__label {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1.1rem;
  color: #e8f2ef;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

section {
  padding: 3.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: grid;
  gap: 1rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  transform: translateY(-2px);
}

.feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.shot {
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px dashed color-mix(in srgb, var(--line) 80%, var(--teal));
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

.shot--map {
  background:
    linear-gradient(145deg, #cfe3dd, #9bb8b0 45%, #6f9190);
}

.shot--places {
  background:
    linear-gradient(145deg, #d9e7ef, #7aa3b3 50%, #3f6d7c);
}

.shot--history {
  background:
    linear-gradient(145deg, #efe6d2, #d2b87a 48%, #8f7140);
}

.shot--sos {
  background:
    linear-gradient(145deg, #f0c8c4, #c45b55 50%, #7a2a28);
}

.steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.25rem;
}

.step__n {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--band-to);
  color: var(--on-band);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.band {
  background: linear-gradient(120deg, var(--band-from), var(--band-to));
  color: var(--on-band);
  padding: 3rem 0;
}

.band h2 {
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.band p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
  max-width: 36rem;
}

.band__meta {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.band .btn--primary {
  background: var(--amber);
}

.topic-list {
  display: grid;
  gap: 0.65rem;
}

.topic-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.topic-list a:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.topic-list a span {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
}

.article {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 880px) {
  .article {
    grid-template-columns: 1fr 0.85fr;
    align-items: start;
  }
}

.article__body h1 {
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.article__body p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer {
  border-top: none;
  padding: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
}

.site-footer nav,
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  width: 100%;
  position: relative;
  isolation: isolate;
  padding: 1rem 0 0.9rem;
}

.site-footer__nav::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  z-index: -1;
  background: var(--chrome-strip);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  padding-top: 1rem;
}

.site-footer__brand {
  max-width: 28rem;
}

.site-footer__legal {
  max-width: 28rem;
}

@media (min-width: 720px) {
  .site-footer__meta {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .site-footer__legal {
    text-align: end;
    margin-inline-start: auto;
  }

  .site-footer__contacts {
    justify-content: flex-end;
  }
}

.site-footer a {
  text-decoration: none;
  font-weight: 500;
}

.site-footer__copy {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.site-footer__tagline {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  line-height: 1.4;
  opacity: 0.9;
}

.site-footer__seller {
  font-size: 0.85rem;
  line-height: 1.45;
}

.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.site-footer__contacts a {
  font-weight: 600;
}

.site-footer__telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.site-footer__telegram-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  color: #1b92d1;
}

[data-theme="dark"] .site-footer__telegram-icon {
  color: #4bc9ff;
}

.site-footer__telegram:hover .site-footer__telegram-icon {
  color: #1490c8;
}

[data-theme="dark"] .site-footer__telegram:hover .site-footer__telegram-icon {
  color: #7ad7ff;
}

.legal__effective {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.legal__seller {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--teal) 10%, var(--surface));
  border: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.45;
}

.hero--compact {
  padding: 2.5rem 0 2rem;
}

.hero--compact h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.pricing-card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.pricing-card > p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.pricing-table th {
  font-weight: 500;
  color: var(--ink-soft);
  padding-right: 1rem;
}

.pricing-table td {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.pricing-units {
  background: linear-gradient(165deg, var(--hero-base) 0%, var(--paper) 60%);
}

.unit-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .unit-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 520px) and (max-width: 719px) {
  .unit-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.unit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.unit__price {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
}

.unit__price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.unit__label {
  margin-top: 0.35rem;
  font-weight: 600;
}

.constructor {
  display: grid;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.constructor__main {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
  align-content: start;
}

@media (min-width: 880px) {
  .constructor {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .constructor__total {
    min-height: 100%;
  }
}

.constructor__rows {
  display: grid;
  gap: 0.85rem;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}

.stepper--priced {
  display: grid;
  grid-template-columns: minmax(5.5rem, 1.1fr) minmax(4.5rem, 0.9fr) auto minmax(4.5rem, 0.85fr);
  align-items: center;
  gap: 0.65rem 0.85rem;
  justify-content: stretch;
}

.stepper--priced .stepper__controls {
  justify-self: start;
}

.stepper--priced .stepper__sum {
  justify-self: end;
  font-weight: 700;
  white-space: nowrap;
}

.stepper--priced .stepper__unit {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 550;
  white-space: nowrap;
}

.stepper--history {
  grid-template-columns: minmax(5.5rem, 1.1fr) minmax(5rem, 1fr) minmax(10rem, 1.6fr) minmax(4.5rem, 0.85fr);
}

.checkout-term {
  border: 0;
  margin: 0;
  padding: 0;
}

.checkout-term legend {
  font-weight: 650;
  margin-bottom: 0.55rem;
}

.checkout-term__options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.checkout-term__option {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.checkout-term__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.2;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.checkout-term__option:hover .checkout-term__chip {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
}

.checkout-term__option:has(input:checked) .checkout-term__chip {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 16%, var(--surface));
  color: var(--teal-deep);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--teal) 35%, transparent);
}

.checkout-term__option:has(input:focus-visible) .checkout-term__chip {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .checkout-term__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.checkout-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 0; }
.checkout-history { border: 0; margin: 0; padding: 0; min-width: 0; }
.checkout-history__options { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: flex-end; }
.checkout-history__option {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .85rem;
  cursor: pointer;
}
.checkout-history__option:has(input:checked) {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 14%, var(--surface));
}
.checkout-history__option input { margin: 0; }
.checkout-history-hint {
  margin: .15rem 0 0;
  grid-column: 1 / -1;
}
.constructor__rows .checkout-history-hint {
  margin-top: 0.15rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .stepper--priced,
  .stepper--history {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label sum"
      "unit unit"
      "controls controls";
  }

  .stepper--priced .stepper__label { grid-area: label; }
  .stepper--priced .stepper__unit { grid-area: unit; }
  .stepper--priced .stepper__controls,
  .stepper--priced .checkout-history { grid-area: controls; justify-self: stretch; }
  .stepper--priced .stepper__sum { grid-area: sum; }
  .stepper--priced .checkout-history__options { justify-content: flex-start; }
}

.stepper__label {
  font-weight: 600;
}

.stepper__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stepper__btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.stepper__btn:hover {
  border-color: var(--teal);
  background: var(--surface);
}

.stepper__input {
  width: 3.4rem;
  text-align: center;
  font: inherit;
  font-weight: 700;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nav-menu__btn--lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.lang-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.nav-menu__item--lang {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-menu__btn--signin {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}

.nav-menu__btn--account {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: min(42vw, 12rem);
}

.account-ico {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--ink);
}

.account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.nav-menu--account .nav-menu__list {
  min-width: 17rem;
}

.nav-menu__item--button {
  width: 100%;
}

.auth-wrap {
  max-width: 28rem;
}

.auth-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.auth-field {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  background: var(--paper);
}

.auth-field select,
.auth-field textarea {
  width: 100%;
  max-width: 100%;
}

.auth-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--teal) 45%, transparent);
  border-color: var(--teal);
}

.auth-hint {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.auth-error {
  color: #c0392b;
  font-weight: 500;
  font-size: 0.85rem;
}

.auth-status {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--teal) 16%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  color: var(--ink);
}

.auth-links {
  margin: 0;
  font-size: 0.92rem;
}

.auth-note {
  margin-top: 1rem;
  color: var(--ink-soft);
}

.account-dl {
  margin: 1.25rem 0 0;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 0.85rem;
}

.account-dl dt {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.account-dl dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

@media (max-width: 520px) {
  .account-name {
    max-width: 6.5rem;
  }
}

.nav-menu__btn--theme {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 520px) {
  .nav-menu__btn--theme [data-theme-btn-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .nav-menu__btn--theme {
    padding-inline: 0.55rem;
  }

  .brand {
    font-size: 0.95rem;
  }
}

.nav-menu__btn--theme .theme-ico {
  display: none;
  flex-shrink: 0;
}

html[data-theme-pref='system'] .nav-menu__btn--theme .theme-ico--system,
html[data-theme-pref='light'] .nav-menu__btn--theme .theme-ico--light,
html[data-theme-pref='dark'] .nav-menu__btn--theme .theme-ico--dark {
  display: block;
}

.nav-menu__item--icon {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-menu__label {
  flex: 1;
  white-space: nowrap;
}

.nav-menu__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.42rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
  background: #d97706;
  box-shadow: 0 0 0 1px color-mix(in srgb, #b45309 55%, transparent);
}

.nav-menu__item:hover .nav-menu__badge,
.nav-menu__item.is-active .nav-menu__badge {
  color: #fff;
  background: #ea580c;
}

.feedback-list-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0 0.85rem;
}

.feedback-list-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.auth-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.auth-form__actions .btn {
  width: auto;
  justify-self: start;
}

.feedback-dialog {
  width: min(100% - 2rem, 32rem);
  max-height: min(90vh, 40rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 60px color-mix(in srgb, #000 35%, transparent);
}

.feedback-dialog::backdrop {
  background: color-mix(in srgb, #020617 55%, transparent);
  backdrop-filter: blur(2px);
}

.feedback-dialog__panel {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.feedback-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.feedback-dialog__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.feedback-dialog__close {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.feedback-dialog__close:hover {
  background: color-mix(in srgb, var(--ink) 14%, transparent);
}

.feedback-dialog__form {
  margin-top: 0.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.feedback-back {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
}

.feedback-back a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.feedback-back a:hover {
  text-decoration: underline;
}

.feedback-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.feedback-card {
  display: grid;
  gap: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.15rem 1.2rem;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 6%, transparent);
}

.feedback-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.feedback-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.feedback-card__aside {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: flex-end;
  justify-content: flex-start;
  margin-inline-start: auto;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: end;
}

.feedback-card__id {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.feedback-card__id:hover {
  color: var(--teal);
  text-decoration: underline;
}

.feedback-card__date {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.feedback-card__category {
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal-deep);
}

.feedback-card__body {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.feedback-card__preview {
  color: inherit;
  text-decoration: none;
}

.feedback-card__preview:hover {
  color: var(--teal);
}

.feedback-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.feedback-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.58rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  background: color-mix(in srgb, var(--ink-soft) 14%, transparent);
  color: var(--ink-soft);
}

.feedback-pill--await {
  color: #fff;
  background: #d97706;
  box-shadow: 0 0 0 1px color-mix(in srgb, #b45309 55%, transparent);
}

.feedback-pill--staff {
  color: #fff;
  background: #2563eb;
}

.feedback-pill--closed {
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink-soft) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink-soft) 28%, transparent);
}

.feedback-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.feedback-thumbs--roomy {
  margin-top: 1rem;
}

.feedback-thumbs__item {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.feedback-thumbs__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feedback-thumbs__file {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}

.feedback-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 0.55rem;
}

.feedback-files--roomy {
  margin-top: 1rem;
}

.feedback-thumbs[data-gft-feedback-gallery] .feedback-thumbs__item {
  cursor: zoom-in;
}

.feedback-ticket {
  margin-top: 1.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feedback-ticket__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.feedback-ticket__body {
  margin-top: 0.75rem;
  white-space: pre-wrap;
  line-height: 1.5;
}

.feedback-section-title {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
}

.feedback-thread {
  display: grid;
  gap: 0.85rem;
}

.feedback-ticket--reply {
  margin-top: 0;
}

.feedback-ticket-head {
  display: grid;
  gap: 0.35rem;
}

.feedback-ticket-head .feedback-back {
  margin: 0 0 0.2rem;
}

.feedback-ticket-head__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.feedback-ticket-head h1 {
  margin: 0;
}

.feedback-ticket-head .hero__lead {
  margin: 0;
}

.feedback-close-form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.feedback-reply {
  width: min(100%, 32rem);
  margin-inline: auto;
}

.feedback-reply .feedback-section-title {
  text-align: center;
}

.feedback-reply-form {
  width: 100%;
}

.feedback-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  font-weight: 600;
}

.feedback-pager a {
  color: var(--teal);
  text-decoration: none;
}

.feedback-pager a:hover {
  text-decoration: underline;
}

.feedback-pager__disabled {
  color: var(--ink-soft);
  opacity: 0.55;
}

.menu-ico,
.theme-ico {
  flex-shrink: 0;
  color: currentColor;
}

.nav-menu__item--danger {
  color: #d4534a;
}

.nav-menu__item--danger:hover {
  color: #e56b63;
  background: color-mix(in srgb, #d4534a 12%, var(--paper-2));
}

.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper__input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.constructor__total {
  background: linear-gradient(145deg, var(--band-from), var(--band-to));
  color: var(--on-band);
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.constructor__total-label {
  font-size: 0.92rem;
  opacity: 0.9;
}

.constructor__total-value {
  margin-top: 0.35rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.constructor__suffix {
  font-size: 1rem;
  font-weight: 600;
  margin-left: 0.25rem;
}

.constructor__formula,
.constructor__note {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  opacity: 0.88;
}

.faq {
  margin: 0;
}

.faq__item + .faq__item {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.faq dt {
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.faq dd {
  margin: 0;
  color: var(--ink-soft);
}

.legal {
  padding: 2.5rem 0 3.5rem;
}

.legal__draft {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--amber) 28%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--amber) 55%, var(--line));
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
}

.legal h1 {
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.legal p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

@keyframes pin-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Account billing (Premium) */
.billing-page {
  padding-bottom: 3rem;
}

.billing-tabs__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.billing-tabs__list {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0.3rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.billing-tabs__tab {
  cursor: pointer;
  margin: 0;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.billing-tabs__tab:hover {
  color: var(--ink);
}

#billing-tab-plan:checked ~ .billing-tabs__list label[for="billing-tab-plan"],
#billing-tab-subs:checked ~ .billing-tabs__list label[for="billing-tab-subs"],
#billing-tab-pay:checked ~ .billing-tabs__list label[for="billing-tab-pay"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 12%, transparent);
}

.billing-tabs__panel {
  display: none;
  flex-direction: column;
  gap: 1.15rem;
}

#billing-tab-plan:checked ~ .billing-tabs__panel--plan,
#billing-tab-subs:checked ~ .billing-tabs__panel--subs,
#billing-tab-pay:checked ~ .billing-tabs__panel--pay {
  display: flex;
}

.billing-hero {
  /* Match app Premium status card (Material primaryContainer blue). */
  --billing-hero: #2b5cb7;
  --billing-hero-ink: #163a8a;
  background: color-mix(in srgb, var(--billing-hero) 14%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--billing-hero) 28%, var(--line));
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

[data-theme="dark"] .billing-hero {
  background: var(--billing-hero);
  border-color: color-mix(in srgb, var(--billing-hero) 55%, #0c1424);
  --billing-hero-ink: #ffffff;
}

[data-theme="dark"] .billing-hero__icon {
  background: color-mix(in srgb, #fff 16%, transparent);
  color: #e8eeff;
}

[data-theme="dark"] .billing-hero .billing-stat__label {
  color: color-mix(in srgb, #fff 72%, transparent);
}

.billing-hero__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.billing-hero__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--billing-hero) 18%, transparent);
  color: var(--billing-hero-ink);
}

.billing-hero__copy {
  min-width: 0;
}

.billing-hero__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--billing-hero-ink) 55%, var(--ink-soft));
}

[data-theme="dark"] .billing-hero__eyebrow {
  color: color-mix(in srgb, #fff 72%, transparent);
}

.billing-hero__title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--billing-hero-ink);
}

.billing-hero__until {
  margin: 0.35rem 0 0;
  color: color-mix(in srgb, var(--billing-hero-ink) 45%, var(--ink-soft));
  font-size: 0.95rem;
}

[data-theme="dark"] .billing-hero__until {
  color: color-mix(in srgb, #fff 82%, transparent);
}

.billing-hero__warn {
  margin: 0.9rem 0 0;
  color: #c0392b;
  font-weight: 600;
  font-size: 0.95rem;
}

.billing-quote {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.billing-quote__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.billing-quote__left {
  min-width: 0;
  flex: 1 1 auto;
}

.billing-quote__label {
  font-weight: 500;
  color: var(--ink);
}

.billing-quote__detail {
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.billing-quote__sum {
  flex-shrink: 0;
  font-weight: 600;
  text-align: right;
}

.billing-quote__total {
  margin-top: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  text-align: right;
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--teal-deep);
}

.billing-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.billing-stat {
  text-align: center;
}

.billing-stat__label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}

.billing-stat__value {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--amber-deep);
}

.billing-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.billing-block__title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.billing-sub {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}

.billing-sub__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.billing-sub__summary::-webkit-details-marker {
  display: none;
}

.billing-sub__main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.billing-sub__summary::after {
  content: "";
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  background-color: var(--ink-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") center / 1.15rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") center / 1.15rem no-repeat;
  transition: transform 0.15s ease;
}

.billing-sub[open] .billing-sub__summary::after {
  transform: rotate(180deg);
}

.billing-sub__title {
  font-weight: 650;
}

.billing-sub__meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.billing-sub__quote {
  color: var(--amber-deep);
  font-weight: 650;
}

.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.billing-payments {
  display: grid;
  gap: 0.65rem;
}

.billing-payment {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.billing-payment__title {
  font-weight: 650;
}

.billing-payment__meta {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.billing-payment__invoice {
  display: grid;
  gap: 0.15rem;
  align-content: start;
  font-size: 0.85rem;
}

.billing-payment__invoice-label {
  color: var(--ink-soft);
  font-weight: 600;
}

.billing-payment__invoice-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
}

.billing-sub__body {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .billing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.85rem;
  }

  .billing-tabs__list {
    width: 100%;
  }

  .billing-tabs__tab {
    flex: 1;
    text-align: center;
  }
}

.account-table-wrap {
  margin-top: 0.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.account-table th,
.account-table td {
  padding: 0.85rem 1rem;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.account-table th {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}

.account-table tbody tr:last-child td {
  border-bottom: 0;
}

.account-table__actions {
  width: 4.5rem;
  text-align: center;
}

.account-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  color: var(--teal-deep);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.account-map-btn:hover {
  color: var(--amber-deep);
  background: color-mix(in srgb, var(--amber) 18%, transparent);
}

@media (max-width: 720px) {
  .account-table thead {
    display: none;
  }

  .account-table,
  .account-table tbody,
  .account-table tr,
  .account-table td {
    display: block;
    width: 100%;
  }

  .account-table tr {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .account-table tbody tr:last-child {
    border-bottom: 0;
  }

  .account-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 0;
  }

  .account-table td::before {
    content: attr(data-label);
    flex: 0 1 45%;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .account-table__actions {
    width: auto;
    justify-content: flex-end;
  }
}

