@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap");
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

body {
  margin: 0;
}

main {
  display: block;
}

hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */
}

pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

button,
input {
  /* 1 */
  overflow: visible;
}

button,
select {
  /* 1 */
  text-transform: none;
}

button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type=checkbox],
[type=radio] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

[type=search] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Inter-Bold.woff2") format("woff2");
}
:root {
  --wrapper-width: 100%;
  --container-width: 1320px;
  --container--sm: 800px;
  --container-padding-lg: 40px;
  --container-padding-md: 24px;
  --container-padding-sm: 16px;
  --font-default: "Inter", sans-serif;
  --fz-body: 1rem;
  --fz-text-large: clamp(1.5rem, 0.563rem + 4.17vw, 4rem);
  --fw-text-large: 700;
  --lh-text-large: 1.2;
  --text-muted: #8a8d94;
  --fz-h1: clamp(1.5rem, 0.938rem + 2.5vw, 3rem);
  --fw-h1: 700;
  --lh-h1: 1.15;
  --fz-h2: clamp(1.5rem, 1.031rem + 2.08vw, 2.75rem);
  --fw-h2: 700;
  --lh-h2: 1.2;
  --fz-h3: clamp(1.25rem, 0.969rem + 1.25vw, 2rem);
  --fw-h3: 600;
  --lh-h3: 1.4;
  --fz-h4: 24px;
  --fw-h4: 600;
  --lh-h4: 1.4;
  --fz-h5: 18px;
  --fw-h5: 600;
  --lh-h5: 1.5;
  --fz-h6: 16px;
  --fw-h6: 600;
  --lh-h6: 1.5;
  --fw-strong: 600;
  --black-color: #000;
  --white-color: #fff;
  --gray-light-color: #f1f2f4;
  --body-bg-color: #e8fcfa;
  --bg-gray-color: var(--gray-light-color);
  --dark-color: #1c2122;
  --main-color: #2ab199;
  --main-gradient: linear-gradient(90deg, #44b6a9 0%, #44b678 100%);
  --accent-color: #2ab199;
  --title-color: #212124;
  --text-color: #373739;
  --text-gray-color: #75757d;
  --text-danger-color: var(--danger-color);
  --icon-gray-color: #b8b9c0;
  --input-bg-color: #f1f2f4;
  --input-placeholder-color: #818189;
  --danger-color: #e03939;
  --danger-bg-color: #fffafa;
  --line-dark-color: rgba(0, 0, 0, 0.12);
  --line-light-color: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 4px 10px 0 rgba(38, 50, 56, 0.08);
  --shadow-md: 0 10px 20px 0 rgba(38, 50, 56, 0.08);
  --shadow-lg: 0 18px 30px 0 rgba(38, 50, 56, 0.08);
  --shadow-xl: 0 24px 40px 0 rgba(38, 50, 56, 0.08);
  --br-8: 8px;
  --br-12: 12px;
  --br-16: 16px;
  --br-24: 24px;
  --br-32: 32px;
  --br-48: 48px;
  --br-56: 56px;
  --br-64: 64px;
  --pd-24: 24px;
  --pd-32: 32px;
  --pd-48: 48px;
  --pd-64: 64px;
  --account-nav-width: 320px;
  --animation-fade: fade 0.3s ease-in-out;
  --bg: #f7f6f3;
  --bg-deep: #f1efea;
  --surface: #ffffff;
  --surface-2: #fafaf7;
  --line: rgba(15, 23, 42, 0.07);
  --line-strong: rgba(15, 23, 42, 0.11);
  --text: #0f172a;
  --text-dim: #4a5568;
  --text-muted: #8a8d94;
  --cyan: #0099d6;
  --cyan-deep: #007aac;
  --cyan-soft: rgba(0, 153, 214, 0.08);
  --emerald: #0fb085;
  --emerald-deep: #0c8e6c;
  --emerald-soft: rgba(15, 176, 133, 0.08);
  --grad: linear-gradient(135deg, #0099d6 0%, #0fb085 100%);
  --grad-text: linear-gradient(135deg, #007aac 0%, #0c8e6c 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow:
      0 1px 2px rgba(15, 23, 42, 0.03), 0 4px 12px -4px rgba(15, 23, 42, 0.05);
  --shadow-lg:
      0 1px 2px rgba(15, 23, 42, 0.03), 0 6px 18px -8px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --header-h: 0px;
}
@media (max-width: 992px) {
  :root {
    --header-h: 58px;
  }
}
@media (max-width: 480px) {
  :root {
    --account-nav-width: 280px;
    --header-h: 66px;
  }
}

.title-lg,
.title-h1,
.title-h2,
.title-h3,
.title-h4,
.title-h5,
.title-h6 {
  color: var(--title-color);
}

.title-lg,
.title-h1,
.title-h2 {
  font-family: var(--font-accent);
}

.title-h3,
.title-h4,
.title-h5,
.title-h6 {
  font-family: var(--font-default);
}

.title-lg {
  font-size: var(--fz-text-large);
  font-weight: var(--fw-text-large);
  line-height: var(--lh-text-large);
}
@media (max-width: 640px) {
  .title-lg {
    line-height: 1.4;
  }
}

.title-h1 {
  font-size: var(--fz-h1);
  font-weight: var(--fw-h1);
  line-height: var(--lh-h1);
}
@media (max-width: 640px) {
  .title-h1 {
    line-height: 1.4;
  }
}

.title-h2 {
  font-size: var(--fz-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
}
@media (max-width: 640px) {
  .title-h2 {
    line-height: 1.4;
  }
}

.title-h3 {
  font-size: var(--fz-h3);
  font-weight: var(--fw-h3);
  line-height: var(--lh-h3);
}
@media (max-width: 640px) {
  .title-h3 {
    font-weight: 700;
    line-height: 1.4;
  }
}

.title-h4 {
  font-size: var(--fz-h4);
  font-weight: var(--fw-h4);
  line-height: var(--lh-h4);
}

.title-h5 {
  font-size: var(--fz-h5);
  font-weight: var(--fw-h5);
  line-height: var(--lh-h5);
}

.title-h6 {
  font-size: var(--fz-h6);
  font-weight: var(--fw-h6);
  line-height: var(--lh-h6);
}

.text-20 {
  font-size: 20px;
}
@media (max-width: 480px) {
  .text-20 {
    font-size: 16px;
  }
}

.text-18 {
  font-size: 18px;
}
@media (max-width: 480px) {
  .text-18 {
    font-size: 16px;
  }
}

.text-16 {
  font-size: 16px;
}
@media (max-width: 480px) {
  .text-16 {
    font-size: 16px;
  }
}

.text-14 {
  font-size: 14px;
}

.text-12 {
  font-size: 12px;
}

.text-10 {
  font-size: 10px;
}

.text-indent-20:not(:last-child) {
  margin-bottom: 20px;
}

.text-indent-18:not(:last-child) {
  margin-bottom: 18px;
}

.text-indent-16:not(:last-child) {
  margin-bottom: 16px;
}

.text-indent-14:not(:last-child) {
  margin-bottom: 14px;
}

.text-indent-12:not(:last-child) {
  margin-bottom: 12px;
}

.text-accent {
  color: var(--accent-color);
}

.text-gray {
  color: var(--text-gray-color);
}

.text-white {
  color: var(--text-gray-color);
}

/* ------------------- Default -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*::before, *::after {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "SF Pro Text", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

.page__body.lock-scroll {
  overflow: hidden;
}

.page__wrapper {
  width: 100%;
  max-width: var(--wrapper-width);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.page__main {
  position: relative;
  display: flex;
  height: 100vh;
  padding: 14px;
  gap: 14px;
}
@media (max-width: 992px) {
  .page__main {
    padding: 0;
    gap: 0;
    height: calc(100dvh - var(--header-h));
  }
}

.footer {
  margin-top: auto;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding-lg);
}
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--container-padding-md);
  }
}
@media (max-width: 767px) {
  .container {
    padding: 0 var(--container-padding-sm);
  }
}

img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
img.is-block {
  display: block;
}

a {
  cursor: pointer;
  font-size: inherit;
  color: inherit;
  transition: all 0.2s ease-in-out;
}
a:hover {
  text-decoration: none;
}

input,
button,
textarea,
select {
  font-family: var(--font-default);
}

[type=button],
[type=reset],
[type=submit],
button {
  -webkit-appearance: button;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  background-color: none;
  font-size: inherit;
}

button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  border-radius: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  outline: none;
  color: inherit;
}
input::placeholder {
  color: #666;
}

strong,
.strong {
  font-weight: var(--fw-strong);
}

.list-reset {
  list-style: none;
}

.text-accent {
  color: var(--accent-color);
}

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

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.hidden {
  display: none !important;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* ------------------- LIBS -------------------- */
.splide {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.splide__arrow {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease-in-out;
  opacity: 0.8;
}
.splide__arrow:hover {
  background: var(--main-color);
  opacity: 1;
}
.splide__arrow:hover svg {
  fill: #fff;
}
.splide__arrow svg {
  fill: var(--main-color);
  width: 18px;
  height: 18px;
  transition: fill 0.3s ease-in-out;
}
.splide__arrow--prev {
  left: -80px;
}
.splide__arrow--next {
  right: -80px;
  background: var(--main-color);
}
.splide__arrow--next svg {
  fill: #fff;
}

.splide__pagination {
  position: inherit;
  bottom: inherit;
  left: inherit;
  right: inherit;
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 8px;
}

.splide__pagination__page {
  background: rgba(0, 0, 0, 0.12);
  opacity: 1;
}
.splide__pagination__page.is-active {
  background: var(--main-color);
}

/* ------------------- COMPONENTS -------------------- */
/* =================== margin */
.m-center {
  margin: 0 auto;
}

/* margin-top */
.mt-0 {
  margin-top: 0px !important;
}

.mt-4 {
  margin-top: 4px !important;
}

.mt-8 {
  margin-top: 8px !important;
}

.mt-16 {
  margin-top: 16px !important;
}

.mt-24 {
  margin-top: 24px !important;
}

.mt-32 {
  margin-top: 32px !important;
}

.mt-48 {
  margin-top: 48px !important;
}

.mt-64 {
  margin-top: 64px !important;
}

/* margin-left */
.ml-0 {
  margin-left: 0px !important;
}

.ml-4 {
  margin-left: 4px !important;
}

.ml-8 {
  margin-left: 8px !important;
}

.ml-16 {
  margin-left: 16px !important;
}

.ml-24 {
  margin-left: 24px !important;
}

.ml-32 {
  margin-left: 32px !important;
}

.ml-48 {
  margin-left: 48px !important;
}

.ml-64 {
  margin-left: 64px !important;
}

/* margin-right */
.mr-0 {
  margin-right: 0px !important;
}

.mr-4 {
  margin-right: 4px !important;
}

.mr-8 {
  margin-right: 8px !important;
}

.mr-16 {
  margin-right: 16px !important;
}

.mr-24 {
  margin-right: 24px !important;
}

.mr-32 {
  margin-right: 32px !important;
}

.mr-48 {
  margin-right: 48px !important;
}

.mr-64 {
  margin-right: 64px !important;
}

/* margin-bottom */
.mb-0 {
  margin-bottom: 0px !important;
}

.mb-4 {
  margin-bottom: 4px !important;
}

.mb-8 {
  margin-bottom: 8px !important;
}

.mb-16 {
  margin-bottom: 16px !important;
}

.mb-24 {
  margin-bottom: 24px !important;
}

.mb-32 {
  margin-bottom: 32px !important;
}

.mb-48 {
  margin-bottom: 48px !important;
}

.mb-64 {
  margin-bottom: 64px !important;
}

/* =================== Padding =================== */
/* padding-all */
.p-0 {
  padding: 0px !important;
}

.p-4 {
  padding: 4px !important;
}

.p-8 {
  padding: 8px !important;
}

.p-16 {
  padding: 16px !important;
}

.p-24 {
  padding: 16px !important;
}

.p-32 {
  padding: 16px !important;
}

.p-48 {
  padding: 16px !important;
}

.p-64 {
  padding: 16px !important;
}

/* padding-top */
.pt-0 {
  padding-top: 0px !important;
}

.pt-4 {
  padding-top: 4px !important;
}

.pt-8 {
  padding-top: 8px !important;
}

.pt-16 {
  padding-top: 16px !important;
}

.pt-24 {
  padding-top: 24px !important;
}

.pt-32 {
  padding-top: 32px !important;
}

.pt-48 {
  padding-top: 48px !important;
}

.pt-64 {
  padding-top: 64px !important;
}

/* padding-left */
.pl-0 {
  padding-left: 0px !important;
}

.pl-4 {
  padding-left: 4px !important;
}

.pl-8 {
  padding-left: 8px !important;
}

.pl-16 {
  padding-left: 16px !important;
}

.pl-24 {
  padding-left: 24px !important;
}

.pl-32 {
  padding-left: 32px !important;
}

.pl-48 {
  padding-left: 48px !important;
}

.pl-64 {
  padding-left: 64px !important;
}

/* padding-right */
.pr-0 {
  padding-right: 0px !important;
}

.pr-4 {
  padding-right: 4px !important;
}

.pr-8 {
  padding-right: 8px !important;
}

.pr-16 {
  padding-right: 16px !important;
}

.pr-24 {
  padding-right: 24px !important;
}

.pr-32 {
  padding-right: 32px !important;
}

.pr-48 {
  padding-right: 48px !important;
}

.pr-64 {
  padding-right: 64px !important;
}

/* padding-bottom */
.pb-0 {
  padding-bottom: 0px !important;
}

.pb-4 {
  padding-bottom: 4px !important;
}

.pb-8 {
  padding-bottom: 8px !important;
}

.pb-16 {
  padding-bottom: 16px !important;
}

.pb-24 {
  padding-bottom: 24px !important;
}

.pb-32 {
  padding-bottom: 32px !important;
}

.pb-48 {
  padding-bottom: 48px !important;
}

.pb-64 {
  padding-bottom: 64px !important;
}

/* ------------------- SECTION SPACES -------------------- */
.section {
  padding: var(--section-padding);
}
.section__heding {
  width: 100%;
  max-width: 1008px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: clamp(1.5rem, 0.591rem + 4.55vw, 4rem);
}
.section__title {
  margin-bottom: 1rem;
}
@media (max-width: 767px) {
  .section__title br {
    display: none;
  }
}
@media (max-width: 600px) {
  .section__title {
    font-weight: 700;
  }
}
.section__descr {
  font-size: clamp(1rem, 0.75rem + 0.67vw, 1.25rem);
}

.bg-home {
  background: var(--body-bg-color);
}

.bg-lk {
  background: var(--bg-gray-color);
}

.section {
  padding: clamp(3rem, 1.727rem + 6.36vw, 6.5rem) 0;
  overflow: hidden;
}

.section-heading {
  margin-bottom: clamp(2rem, 1.143rem + 3.81vw, 4rem);
}
.section-heading.is-center {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  margin-bottom: clamp(2rem, 1.143rem + 3.81vw, 4rem);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 0.857rem + 2.86vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}
@media (max-width: 640px) {
  .section-title {
    line-height: 1.4;
  }
}

#btnScrollTop {
  cursor: pointer;
  display: inline-block;
  width: 48px;
  height: 48px;
  color: #fff;
  background-color: var(--main-color);
  border-radius: 12px;
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease-in;
}
#btnScrollTop.show {
  opacity: 0.8;
  visibility: visible;
  pointer-events: all;
}
#btnScrollTop.show:hover {
  opacity: 1;
}
#btnScrollTop::before {
  content: "";
  flex-shrink: 0;
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='m10.598 5.013 8.154 8.281c.33.33.33.865 0 1.195l-.499.5a.844.844 0 0 1-1.195 0L10 7.796 2.942 14.98a.844.844 0 0 1-1.195 0l-.5-.499a.844.844 0 0 1 0-1.195l8.155-8.281a.85.85 0 0 1 1.196.007Z' fill='%23fff'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
#btnScrollTop:hover {
  opacity: 1;
}
@media (max-width: 599px) {
  #btnScrollTop {
    right: 16px;
    bottom: 16px;
  }
}

.btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  background-color: none;
  font-size: inherit;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  color: #fff;
  background: var(--main-gradient);
  border-radius: 16px;
  font-family: var(--font-default);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition: all 0.35s ease-in-out;
}
@media (max-width: 480px) {
  .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    border-radius: 12px;
  }
}
.btn:hover {
  opacity: 0.8;
  transform: scale(1.02);
}
@media (max-width: 1024px) {
  .btn:hover {
    transform: none;
  }
}
.btn.disabled {
  opacity: 0.5;
  cursor: default;
}
.btn--outline {
  background: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}
.btn--outline:hover {
  opacity: 1;
  background: var(--main-color);
  color: #fff;
  border-color: transparent;
}

.btn-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 48px;
}
@media (max-width: 480px) {
  .btn-wrapper {
    margin-top: 32px;
  }
}

.btn-group {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-group .btn {
  width: auto;
  min-width: inherit;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .btn-group {
    flex-direction: column;
  }
  .btn-group .btn {
    width: 100%;
  }
}

.btn-burger {
  cursor: pointer;
  width: 26px;
  height: 26px;
  background-color: transparent;
  outline: none;
  border: none;
  position: relative;
  transition: all 0.4s ease-in-out;
}
.btn-burger__line {
  width: 100%;
  height: 2px;
  background-color: #333;
  border-radius: 100px;
  position: absolute;
  top: 50%;
  left: 0;
  transition: background-color 0.2s ease-in-out;
}
.btn-burger__line::before, .btn-burger__line::after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: #333;
  border-radius: 100px;
  position: absolute;
  left: 0;
  opacity: 1;
  transition: transform 0.2s ease-in-out;
}
.btn-burger__line::before {
  top: -8px;
}
.btn-burger__line::after {
  bottom: -8px;
}
.btn-burger.active .btn-burger__line {
  background: transparent;
}
.btn-burger.active .btn-burger__line::before {
  top: 20%;
  transform: rotate(45deg);
}
.btn-burger.active .btn-burger__line::after {
  top: 0;
  bottom: 50%;
  transform: rotate(-45deg);
}

.payment-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 24px;
  text-align: center;
}
@media (max-width: 480px) {
  .payment-status {
    padding: 24px;
  }
}
.payment-status__icon {
  flex-shrink: 0;
  display: inline-block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  margin-bottom: 8px;
}
@media (max-width: 393px) {
  .payment-status__icon {
    width: 48px;
    height: 48px;
  }
}
.payment-status__title {
  padding: 0 !important;
}
@media (max-width: 393px) {
  .payment-status__title {
    padding: 20px;
  }
}
.payment-status__btn {
  width: 100%;
}

.payment {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 24px;
  text-align: center;
}
@media (max-width: 480px) {
  .payment {
    padding: 24px;
  }
}
.payment__title {
  padding: 0 !important;
}
@media (max-width: 393px) {
  .payment__title {
    padding: 20px;
  }
}
.payment__btn {
  width: 100%;
}
.payment__price {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 16px;
  border-radius: 16px;
  border: 2px solid var(--main-color);
  margin-bottom: 16px;
  text-align: left;
}
.payment__price-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment__price-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.payment__icon {
  flex-shrink: 0;
  display: inline-block;
  width: 20px;
  height: 20px;
}
.payment__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.payment__price-sm {
  color: var(--text-gray-color);
  font-size: 14px;
  font-weight: 400;
}
.payment .check__label {
  text-align: left;
}
.payment__security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background-color: #e8fcfa;
  border-radius: 10px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}
.payment__security__icon {
  flex-shrink: 0;
  display: inline-block;
  width: 20px;
  height: 20px;
}
.payment__logos {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}
.payment__logos img {
  flex-shrink: 0;
}

@media (max-width: 393px) {
  .payment__price {
    border-radius: 12px;
  }
}
.msg-error {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--danger-color);
  background-color: #fbf3f1;
  border: 1px dashed var(--danger-color);
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  margin-top: 24px;
  display: none;
  animation: var(--animation-fade);
}
.msg-error.show {
  display: flex;
}
.msg-error__icon {
  flex-shrink: 0;
  display: inline-block;
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBpZD0iYjNlYWVjZjkiIGNsaXAtcGF0aD0idXJsKCM4MTdkYTEyMSkiPgogICAgPHBhdGggaWQ9ImU5YzZiNGQyIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwIDBDNC40OCAwIDAgNC40OCAwIDEwQzAgMTUuNTIgNC40OCAyMCAxMCAyMEMxNS41MiAyMCAyMCAxNS41MiAyMCAxMEMyMCA0LjQ4IDE1LjUyIDAgMTAgMFpNMTAgMTVDOS40NSAxNSA5IDE0LjU1IDkgMTRWMTBDOSA5LjQ1IDkuNDUgOSAxMCA5QzEwLjU1IDkgMTEgOS40NSAxMSAxMFYxNEMxMSAxNC41NSAxMC41NSAxNSAxMCAxNVpNMTEgN0g5VjVIMTFWN1oiIGZpbGw9IiNFMDM5MzkiPjwvcGF0aD4KICA8L2c+CiAgPGRlZnM+CiAgICA8Y2xpcFBhdGggaWQ9IjgxN2RhMTIxIj4KICAgICAgPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiBmaWxsPSJ3aGl0ZSI+PC9yZWN0PgogICAgPC9jbGlwUGF0aD4KICA8L2RlZnM+Cjwvc3ZnPg==") no-repeat center;
  background-size: cover;
}
@media (max-width: 393px) {
  .msg-error {
    border-radius: 12px;
  }
}

.code-block {
  position: relative;
  background-color: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  position: relative;
  font-family: "Fira Code", "Courier New", monospace;
  margin: 1em 0;
  max-width: 100%;
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background-color: transparent;
}

.code-block pre code {
  white-space: pre-wrap;
  word-break: break-word;
  color: #2d2d2d;
  font-size: 0.95em;
}

.copy-btn {
  position: absolute;
  top: -32px;
  right: 0;
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: #f0f0f0;
}

:not(pre) > code[class*=language-],
pre[class*=language-] {
  background: none !important;
}

pre[class*=language-] {
  margin: 0 !important;
  padding: 24px;
}

.navbar {
  padding: 22px 16px;
  gap: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
  height: calc(100vh - 32px);
  width: 64px;
  transition: width 0.2s ease;
  flex: none;
}
.navbar .navbar-head {
  padding: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.navbar .navbar-head__brand {
  justify-content: center;
}
.navbar .navbar-head__brand-text {
  display: none;
}
.navbar .navbar-head__collapse-btn {
  display: none;
}
.navbar .navbar__new-chat-btn {
  padding: 10px 6px;
  justify-content: center;
}
.navbar .navbar__new-chat-btn__label {
  margin-left: 0;
  max-width: 0;
  opacity: 0;
}
.navbar .navbar__new-chat-btn__shortcut {
  max-width: 0;
  opacity: 0;
}
.navbar .navbar-footer {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
  gap: 0;
}
.navbar .navbar-footer__info {
  display: none;
}
.navbar .navbar__tg {
  padding: 10px 4px;
  justify-content: center;
  gap: 0;
}
.navbar .navbar__tg-text, .navbar .navbar__tg-chevron {
  display: none;
}
.navbar .chat-history {
  margin: 0;
  padding: 2px 0;
}
.navbar .chat-history__group-label {
  display: none;
}
.navbar .chat-history__empty {
  padding: 16px 0;
}
.navbar .chat-history__empty-title, .navbar .chat-history__empty-sub {
  display: none;
}
.navbar .chat-history__list {
  gap: 4px;
}
.navbar .chat-history__list__item {
  padding: 6px;
  justify-content: center;
}
.navbar .chat-history__list__item.active {
  border-color: transparent;
  box-shadow: none;
}
.navbar .chat-history__list__item-title {
  display: none;
}
.navbar .chat-history__list__item-tail {
  display: none;
}
.navbar.active {
  width: 260px;
  overflow: hidden;
}
.navbar.active .navbar-head {
  padding: 0 4px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.navbar.active .navbar-head__brand {
  justify-content: unset;
}
.navbar.active .navbar-head__brand-text {
  display: block;
}
.navbar.active .navbar-head__collapse-btn {
  display: grid;
}
.navbar.active .navbar__new-chat-btn {
  padding: 12px 14px;
}
.navbar.active .navbar__new-chat-btn__label {
  margin-left: 10px;
  max-width: 160px;
  opacity: 1;
}
.navbar.active .navbar__new-chat-btn__shortcut {
  max-width: 50px;
  opacity: 1;
}
.navbar.active .navbar-footer {
  justify-content: unset;
  padding-left: 8px;
  padding-right: 8px;
  gap: 11px;
}
.navbar.active .navbar-footer__info {
  display: flex;
}
.navbar.active .navbar__tg {
  padding: 10px 12px;
  justify-content: unset;
  gap: 10px;
}
.navbar.active .navbar__tg-text {
  display: flex;
}
.navbar.active .navbar__tg-chevron {
  display: grid;
}
.navbar.active .chat-history__group-label {
  display: flex;
}
.navbar.active .chat-history__empty {
  padding: 32px 18px;
}
.navbar.active .chat-history__empty-title, .navbar.active .chat-history__empty-sub {
  display: block;
}
.navbar.active .chat-history__list {
  gap: 12px;
}
.navbar.active .chat-history__list__item {
  padding: 7px 9px;
  justify-content: unset;
}
.navbar.active .chat-history__list__item-title {
  display: block;
}
.navbar.active .chat-history__list__item-tail {
  display: flex;
}

.navbar__expand-tab {
  position: absolute;
  top: 22px;
  right: -12px;
  transform: none;
  width: 20px;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: none;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 0 6px rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  z-index: 10;
}
.navbar__expand-tab:hover {
  color: var(--text);
  background: var(--surface-1, #f8fafc);
}

@media (max-width: 992px) {
  .navbar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    height: calc(100dvh - var(--header-h));
    width: 80%;
    max-width: 320px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 0;
    z-index: 300;
    overflow-y: auto;
  }
  .navbar .navbar-head {
    padding: 0 4px;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .navbar .navbar-head__brand {
    justify-content: unset;
  }
  .navbar .navbar-head__brand-text {
    display: block;
  }
  .navbar .navbar-head__collapse-btn {
    display: none !important;
  }
  .navbar .navbar__new-chat-btn {
    padding: 12px 14px;
  }
  .navbar .navbar__new-chat-btn__label {
    margin-left: 10px;
    max-width: 160px;
    opacity: 1;
  }
  .navbar .navbar__new-chat-btn__shortcut {
    max-width: 50px;
    opacity: 1;
  }
  .navbar .navbar-footer {
    justify-content: unset;
    padding-left: 8px;
    padding-right: 8px;
    gap: 11px;
  }
  .navbar .navbar-footer__info {
    display: flex;
  }
  .navbar .navbar__tg {
    padding: 10px 12px;
    justify-content: unset;
    gap: 10px;
  }
  .navbar .navbar__tg-text {
    display: flex;
  }
  .navbar .navbar__tg-chevron {
    display: grid;
  }
  .navbar .chat-history__group-label {
    display: flex;
  }
  .navbar .chat-history__empty {
    padding: 32px 18px;
  }
  .navbar .chat-history__empty-title, .navbar .chat-history__empty-sub {
    display: block;
  }
  .navbar .chat-history__list {
    gap: 12px;
  }
  .navbar .chat-history__list__item {
    padding: 7px 9px;
    justify-content: unset;
  }
  .navbar .chat-history__list__item-title {
    display: block;
  }
  .navbar .chat-history__list__item-tail {
    display: flex;
  }
  .navbar .navbar__expand-tab {
    display: none;
  }
  .navbar .navbar__credits {
    display: flex;
  }
  .navbar.mobile-active {
    transform: translateX(0);
  }
}
.navbar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
}
.navbar-head__brand {
  flex: 1;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}
.navbar-head__brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--text);
  display: grid;
  place-items: center;
  flex: none;
}
.navbar-head__brand-text {
  line-height: 1.15;
}
.navbar-head__brand-text-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.navbar-head__brand-text-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}
.navbar-head__collapse-btn {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.navbar-head__collapse-btn:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
}

.navbar__new-chat-btn {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  padding: 12px 14px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease, padding 0.2s ease;
  letter-spacing: -0.01em;
}
.navbar__new-chat-btn__icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.navbar__new-chat-btn__label {
  margin-left: 10px;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.2s ease, opacity 0.15s ease, margin-left 0.2s ease;
}
.navbar__new-chat-btn__shortcut {
  margin-left: auto;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.2s ease, opacity 0.15s ease;
}
.navbar__new-chat-btn:hover {
  text-decoration: none;
  opacity: 0.7;
}

.navbar-footer {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 8px 0;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.navbar-footer:hover .navbar-footer__name {
  text-decoration: underline;
}
.navbar-footer__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8a55a, #b97c5a);
  flex: none;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
  position: relative;
}
.navbar-footer__avatar::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid var(--surface-2);
}
.navbar-footer__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.navbar-footer__name {
  font-size: 13px;
  font-weight: 500;
}
.navbar-footer__plan {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}
.navbar-footer__actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.navbar__tg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3aa7ec, #2f8fd8);
  color: #fff;
  text-decoration: none;
  flex: none;
  transition: background 0.15s ease;
}
.navbar__tg:hover {
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #2f9ae0, #2680c6);
}
.navbar__tg-icon {
  display: block;
  width: 24px;
  height: 24px;
  color: #fff;
  flex: none;
}
.navbar__tg-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.navbar__tg-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.navbar__tg-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar__tg-sub {
  font-size: 11px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.navbar__tg-chevron {
  display: grid;
  place-items: center;
  margin-left: auto;
  width: 12px;
  height: 12px;
  color: rgba(255, 255, 255, 0.9);
  flex: none;
}
.navbar__tg-chevron svg {
  width: 100%;
  height: 100%;
  display: block;
}

.navbar__ideas {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 158, 102, 0.12), rgba(232, 74, 46, 0.06) 50%, rgba(168, 85, 247, 0.09));
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.navbar__ideas:hover {
  text-decoration: none;
}
.navbar__ideas .spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  color: #e84a6e;
  flex: none;
}
.navbar__ideas .spark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.navbar__credits {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-1, #f8fafc);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.navbar__credits:hover {
  text-decoration: none;
  border-color: var(--text-muted);
}
.navbar__credits-spark {
  display: grid;
  place-items: center;
  color: #d8a55a;
  flex: none;
}
.navbar__credits-amount {
  font-variant-numeric: tabular-nums;
}
.navbar__credits-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
}
.navbar__credits-plus {
  margin-left: auto;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex: none;
}

.model-av {
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-family: "Geist Mono", monospace;
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(135deg, #64748b, #475569);
}
.model-av--rounded {
  border-radius: 8px;
}
.model-av--yandex, .model-av--yandexgpt {
  background: linear-gradient(135deg, #ff0000, #c2185b);
}
.model-av--yandex-tts {
  background: linear-gradient(135deg, #ff0000, #c2185b);
}
.model-av--qwen, .model-av--openrouter {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}
.model-av--kling {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.model-av--seedance {
  background: linear-gradient(135deg, #ff5e62, #ff9966);
}
.model-av--nanobanana {
  background: linear-gradient(135deg, #ffd84d, #f59e0b);
  color: #4a2c00;
}
.model-av--support {
  background: linear-gradient(135deg, #2ab199, #1f8a78);
}
.model-av--gpt {
  background: linear-gradient(135deg, #10a37f, #0a8061);
}
.model-av--claude {
  background: linear-gradient(135deg, #d97757, #b8593a);
}
.model-av--midj {
  background: linear-gradient(135deg, #2c2c2e, #4a4a4d);
}
.model-av--veo {
  background: linear-gradient(135deg, #4285f4, #34a8f4);
}
.model-av--runway {
  background: linear-gradient(135deg, #00c2ff, #12d6a0);
}
.model-av--dalle {
  background: linear-gradient(135deg, #ffb84d, #ff7eb6);
}
.model-av--sora {
  background: linear-gradient(135deg, #1e1e1e, #4a4a4a);
}

.workspace {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  height: calc(100vh - 28px);
  min-height: 0;
  flex-grow: 1;
}
@media (max-width: 992px) {
  .workspace {
    height: calc(100dvh - var(--header-h));
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

.ws-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
@media (max-width: 992px) {
  .ws-top {
    display: none;
  }
}

.ws-spacer {
  flex: 1;
}

.ws-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 11px;
}
.cr-topbar .ws-tabs {
  flex: 1 1 0;
  min-width: 0;
}
@media (max-width: 640px) {
  .cr-topbar .ws-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .cr-topbar .ws-tabs::-webkit-scrollbar {
    display: none;
  }
}

.ws-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-mode-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  color: var(--text-dim);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile-nav {
  display: flex;
  flex: none;
  padding: 14px 26px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.profile-nav::-webkit-scrollbar {
  display: none;
}
@media (max-width: 992px) {
  .profile-nav {
    padding: 14px 16px 0;
  }
}

.tab {
  display: flex;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 9px;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: transparent;
  font-family: inherit;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
}
.tab:hover {
  color: var(--text);
}
.tab.active {
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.tab.tab-recipes {
  position: relative;
}
.tab.tab-recipes .spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  color: #e84a6e;
  flex: none;
}
.tab.tab-recipes .spark svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tab.tab-recipes:hover .spark svg {
  transform: rotate(20deg);
}
.tab.tab-recipes.active {
  background: linear-gradient(135deg, rgba(255, 158, 102, 0.1) 0%, rgba(232, 74, 46, 0.06) 50%, rgba(168, 85, 247, 0.08) 100%);
  box-shadow: 0 1px 0 rgba(232, 74, 46, 0.05), 0 4px 12px -6px rgba(232, 74, 46, 0.18);
}

.credit-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 12px;
  background: linear-gradient(180deg, #ffffff, #f6f4ef);
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 22px -10px rgba(15, 23, 42, 0.18);
}
.credit-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 14px 28px -10px rgba(15, 23, 42, 0.22), 0 0 0 4px rgba(217, 119, 87, 0.1);
}
.credit-pill .cp-glow {
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, transparent, rgba(217, 119, 87, 0.35), transparent 40%, rgba(99, 102, 241, 0.25), transparent 70%);
  opacity: 0.55;
  filter: blur(6px);
  z-index: -1;
  animation: cpGlowSpin 6s linear infinite;
}
.credit-pill .cp-spark {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d97757;
  filter: drop-shadow(0 0 4px rgba(217, 119, 87, 0.45));
}
.credit-pill .cp-amount {
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
.credit-pill .cp-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.credit-pill .cp-plus {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  margin-left: 2px;
  transition: transform 0.2s ease;
}
.credit-pill:hover .cp-plus {
  transform: rotate(90deg);
}
.credit-pill.bump .cp-amount {
  animation: cpBump 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes cpGlowSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cpBump {
  0% {
    transform: scale(1);
    color: var(--text);
  }
  40% {
    transform: scale(1.12);
    color: var(--danger-color);
  }
  100% {
    transform: scale(1);
    color: var(--text);
  }
}
.ws-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 32px 140px;
  position: relative;
}
.ws-body::-webkit-scrollbar {
  width: 8px;
}
.ws-body::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 4px;
}
.ws-body.ws-body--chat {
  align-items: stretch;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.ws-body.ws-body--profile {
  padding: 26px 32px 60px;
}
@media (max-width: 992px) {
  .ws-body.ws-body--profile {
    padding: 20px 16px 40px;
  }
}

.ws-messages {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px 32px 0;
}
.ws-messages::-webkit-scrollbar {
  width: 8px;
}
.ws-messages::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 4px;
}

.ws-body--chat .composer-wrap {
  flex: none;
  padding: 16px 32px 20px;
}

.empty-wrap {
  width: 100%;
  max-width: 740px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.greeting .live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  flex: none;
}
.greeting b {
  color: var(--text);
  font-weight: 500;
}

.headline {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-align: center;
  margin: 0 0 14px;
  color: var(--text);
}
.headline .grad-text {
  color: var(--text);
  font-style: italic;
  font-weight: 500;
}

.subhead {
  text-align: center;
  color: var(--text-dim);
  font-size: 15.5px;
  margin: 0 0 36px;
  max-width: 480px;
}

.composer-wrap {
  width: 100%;
  position: relative;
}

.composer {
  width: 100%;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.composer:focus-within {
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(15, 23, 42, 0.1);
}

.i2v-drop {
  margin: 6px 16px 0;
  padding: 14px;
  border: 1.5px dashed rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  transition: all 0.18s ease;
}
.i2v-drop.dragover {
  border-color: var(--text);
  background: rgba(15, 23, 42, 0.04);
}

.i2v-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.i2v-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  flex: none;
}

.i2v-meta {
  flex: 1;
  min-width: 0;
}

.i2v-fname {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.i2v-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.i2v-act {
  padding: 4px 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.i2v-act:hover {
  border-color: var(--text);
}
.i2v-act.danger {
  color: var(--danger-color);
}
.i2v-act.danger:hover {
  border-color: var(--danger-color);
  background: rgba(177, 70, 43, 0.04);
}

.attach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 16px 0;
}

.attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 260px;
  padding: 4px 6px 4px 4px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  color: var(--text);
}
.attach-chip__thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
}
.attach-chip__icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.attach-chip__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.attach-chip__size {
  flex: none;
  color: rgba(15, 23, 42, 0.5);
}
.attach-chip__remove {
  flex: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 11px;
  color: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  padding: 0 2px;
}
.attach-chip__remove:hover {
  color: var(--text);
}

.msg-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.msg-doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 280px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
}
.msg-doc-chip__icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 9px;
  font-weight: 700;
}
.msg-doc-chip__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.msg-doc-chip__size {
  flex: none;
  color: rgba(15, 23, 42, 0.5);
}
.msg-doc-chip:hover {
  border-color: var(--text);
}

.composer-input {
  padding: 14px 20px 12px;
  max-height: 200px;
  overflow-y: auto;
}

.composer-input .ce {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.55;
  min-height: 52px;
  letter-spacing: -0.01em;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.composer-input .ce:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}

.composer-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 12px 16px;
}
.composer-foot .grow {
  flex: 1;
}

.gen-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gen-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px 10px 12px;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 0.15s ease;
  letter-spacing: -0.005em;
}
.gen-btn:hover {
  background: #1a2233;
}
.gen-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.gen-btn .arrow {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: #fff;
}
.gen-btn .kbd {
  margin-left: 4px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}
@media (max-width: 720px) {
  .gen-btn .kbd {
    display: none;
  }
}

.attach-wrap {
  position: relative;
}

.attach-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.attach-btn:hover {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.2);
}
.attach-btn--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.attach-btn--disabled:hover {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.12);
}

.attach-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--text);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15), 0 12px 32px -8px rgba(15, 23, 42, 0.25);
  z-index: 50;
}
.attach-tooltip__msg {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.85;
}
.attach-tooltip__alts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.attach-tooltip__model {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease;
}
.attach-tooltip__model:hover {
  background: rgba(255, 255, 255, 0.2);
}

.attach-drop-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 16px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
}
.attach-drop-error__msg {
  flex: 1;
  font-size: 12.5px;
  color: #dc2626;
  line-height: 1.5;
}
.attach-drop-error__alts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.attach-drop-error__model {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(220, 38, 38, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  font: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s ease;
}
.attach-drop-error__model:hover {
  background: rgba(239, 68, 68, 0.15);
}
.attach-drop-error__close {
  flex: none;
  padding: 0;
  background: none;
  border: none;
  font-size: 13px;
  color: #dc2626;
  opacity: 0.6;
  cursor: pointer;
  line-height: 1;
  align-self: center;
}
.attach-drop-error__close:hover {
  opacity: 1;
}
.attach-drop-error__content {
  flex: 1;
}

.gen-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
  width: 100%;
}
.gen-feed:empty {
  display: none;
}

.gen-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 8px 24px -10px rgba(15, 23, 42, 0.1);
  opacity: 0;
  transform: translateY(8px) scale(0.992);
  animation: genCardIn 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .gen-card {
    grid-template-columns: 1fr;
  }
}

@keyframes genCardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 600px at 12% -10%, rgba(255, 230, 200, 0.35), transparent 60%), radial-gradient(900px 600px at 100% 110%, rgba(220, 240, 232, 0.45), transparent 60%);
}

@keyframes msg-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.msg-row-user {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}

.msg-user-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  width: 100%;
}

.msg-fail-label {
  font-size: 12px;
  font-weight: 600;
  color: #d32f2f;
  line-height: 1.2;
}

.msg-bubble-user {
  background: rgba(15, 23, 42, 0.07);
  border-radius: 18px 18px 4px 18px;
  padding: 10px 16px;
  max-width: 72%;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}
.msg-bubble-user--failed {
  background: #fdecea;
  border: 1px solid #f5b5b0;
  color: #b71c1c;
}
.msg-bubble-user ul, .msg-bubble-user ol {
  padding-left: 20px;
  margin: 4px 0;
}
.msg-bubble-user li {
  margin: 2px 0;
}
.msg-bubble-user code {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.msg-row-ai {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 85%;
  margin-bottom: 4px;
}
.msg-row-ai .model-av {
  margin-top: 2px;
}

.msg-body-ai {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.msg-time {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  animation: msg-time-in 0.3s ease-out both;
}
.msg-time--right {
  text-align: right;
}

@keyframes msg-time-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.msg-audio-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  max-width: 340px;
}
.msg-audio-card audio {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  margin: 0;
}

.msg-audio-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  align-self: flex-start;
  transition: all 0.18s ease;
}
.msg-audio-dl:hover {
  color: var(--text, #0b1220);
  border-color: rgba(15, 23, 42, 0.22);
}

.msg-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
  padding-top: 4px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.msg-text p {
  margin: 0 0 8px;
}
.msg-text p:last-child {
  margin: 0;
}
.msg-text ul,
.msg-text ol {
  padding-left: 22px;
  margin: 0 0 8px;
}
.msg-text code {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}
.msg-text pre {
  background: rgba(15, 23, 42, 0.05);
  padding: 12px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 0 0 8px;
}
.msg-text pre code {
  background: none;
  padding: 0;
}

.msg-typing {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.typing-dots {
  display: flex;
  gap: 5px;
  padding-top: 10px;
}
.typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) {
  animation-delay: 0.18s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes dot-bounce {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
.msg-skeleton {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  flex: 1;
}
.msg-skeleton__row-user {
  display: flex;
  justify-content: flex-end;
}
.msg-skeleton__row-ai {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.msg-skeleton__bubble {
  height: 36px;
  width: 42%;
  border-radius: 18px 18px 4px 18px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: msg-shimmer 1.4s ease-in-out infinite;
}
.msg-skeleton__bubble--sm {
  width: 28%;
}
.msg-skeleton__av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: msg-shimmer 1.4s ease-in-out infinite;
}
.msg-skeleton__lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding-top: 6px;
}
.msg-skeleton__line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: msg-shimmer 1.4s ease-in-out infinite;
}
.msg-skeleton__line--short {
  width: 55%;
}

.credit-error-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fce4ec;
  border: 1px solid #f48fb1;
  margin: 12px 32px;
}
.credit-error-banner__msg {
  flex: 1;
  font-size: 13px;
  color: #880e4f;
  line-height: 1.4;
}
.credit-error-banner__btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #e91e63;
  border: 1px solid #e91e63;
  border-radius: 8px;
  padding: 4px 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.credit-error-banner__btn:hover {
  background: #c2185b;
  border-color: #c2185b;
}
.credit-error-banner__alt {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #c2185b;
  background: transparent;
  border: 1px solid #f48fb1;
  border-radius: 8px;
  padding: 4px 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.credit-error-banner__alt:hover {
  background: rgba(233, 30, 99, 0.08);
  border-color: #e91e63;
  color: #ad1457;
}
.credit-error-banner__close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #ad1457;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.credit-error-banner__close:hover {
  opacity: 1;
}
@media (max-width: 640px) {
  .credit-error-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 12px 16px;
    padding: 12px 14px;
  }
  .credit-error-banner__msg {
    padding-right: 22px;
  }
  .credit-error-banner__btn, .credit-error-banner__alt {
    width: 100%;
    padding: 8px 12px;
    text-align: center;
    white-space: normal;
  }
  .credit-error-banner__close {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 4px;
  }
}

@keyframes thinking-shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
.thinking-block {
  margin-bottom: 8px;
}
.thinking-block[open] .thinking-content {
  display: block;
}

.thinking-summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 25px;
  user-select: none;
  list-style: none;
  opacity: 0.75;
}
.thinking-summary::before {
  content: "▸";
  font-size: 25px;
  font-style: normal;
  transition: transform 0.2s ease;
}
details[open] .thinking-summary::before {
  transform: rotate(90deg);
}
.thinking-summary::-webkit-details-marker {
  display: none;
}
.thinking-summary--loading {
  background: linear-gradient(90deg, var(--text-dim) 25%, var(--primary, #6366f1) 50%, var(--text-dim) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
  animation: thinking-shimmer 1.6s linear infinite;
}
.thinking-summary--loading::before {
  -webkit-text-fill-color: var(--text-dim);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.thinking-content {
  display: none;
  margin-top: 6px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-dim);
  word-break: break-word;
}
.thinking-content h1, .thinking-content h2, .thinking-content h3, .thinking-content h4, .thinking-content h5, .thinking-content h6 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 8px 0 2px;
}
.thinking-content p {
  margin: 4px 0;
}
.thinking-content ul, .thinking-content ol {
  margin: 4px 0;
  padding-left: 18px;
}
.thinking-content li {
  margin: 2px 0;
}
.thinking-content strong {
  color: var(--text);
}
.thinking-content code {
  font-family: monospace;
  font-size: 11.5px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
}

.ws-body .tariff-wrap {
  margin-inline: auto;
  margin-block: 0;
  max-width: 600px;
  padding: 40px 48px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 992px) {
  .ws-body .tariff-wrap {
    padding: 24px 20px;
  }
}
.ws-body .account__body,
.ws-body .account__body-content {
  width: 100%;
}

.sub-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.sub-active-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}
.sub-active-badge.is-cancelled {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-dim);
}
.sub-active-badge.is-cancelled .sub-active-badge__dot {
  background: var(--text-muted);
}

.profile-tab-head {
  margin-bottom: 20px;
}

.profile-tab-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile-tab-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}

.profile-tab-loading {
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.mode-wrap {
  position: relative;
}

.mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: -0.005em;
  flex: none;
}
.mode-btn--open {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}
.mode-btn__chev {
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .mode-btn {
    height: 34px;
    padding: 0 9px;
  }
  .mode-btn__label {
    display: none;
  }
}

.mode-menu {
  width: 250px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 20px 48px -16px rgba(15, 23, 42, 0.28);
  padding: 6px;
  z-index: 60;
}
.mode-menu__sep {
  height: 1px;
  background: rgba(15, 23, 42, 0.06);
  margin: 5px 8px;
}
.mode-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 9px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.mode-menu__item:hover {
  background: rgba(15, 23, 42, 0.045);
}
.mode-menu__item-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  flex: none;
}
.mode-menu__item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: block;
}
.mode-menu__item-sub {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}
.mode-menu__item-check {
  margin-left: auto;
  color: var(--text);
  flex: none;
}

.gear-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  flex: none;
}
.gear-btn .dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d97757;
  border: 2px solid #fff;
}

.chat-settings {
  padding: 22px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  width: 320px;
  flex-shrink: 0;
  height: calc(100vh - 28px);
}
.chat-settings__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.chat-settings__head__title {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.chat-settings__head__sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.chat-settings__head__preset {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}
.chat-settings__head__preset:hover {
  color: var(--text);
  background: #fff;
}
.chat-settings__body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding: 0 4px 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.chat-settings__body::-webkit-scrollbar {
  width: 6px;
}
.chat-settings__body::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 3px;
}
.chat-settings__accordion {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease;
  flex-shrink: 0;
}
.chat-settings__accordion[open] {
  border-color: var(--line-strong);
}
.chat-settings__accordion[open] .chat-settings__accordion__heading-chevron {
  transform: rotate(180deg);
}
.chat-settings__accordion__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.chat-settings__accordion__heading::-webkit-details-marker {
  display: none;
}
.chat-settings__accordion__heading-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--line);
  flex: none;
}
.chat-settings__accordion__heading-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.chat-settings__accordion__heading-accent {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}
.chat-settings__accordion__heading-chevron {
  color: var(--text-muted);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  flex: none;
}
.chat-settings__accordion__body {
  padding: 4px 14px 16px;
}
.chat-settings--chat-mode .chat-settings__accordion--chat-hide {
  display: none !important;
}
.chat-settings--image-mode .chat-settings__accordion--image-hide {
  display: none !important;
}
.chat-settings--video-mode .chat-settings__accordion--video-hide {
  display: none !important;
}
.chat-settings__provider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.chat-settings__provider-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.chat-settings__provider-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.15);
}
.chat-settings__provider-card--on {
  border-color: var(--text);
  background: var(--surface);
}
.chat-settings__provider-card--full {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
}
.chat-settings__provider-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 38px;
  min-width: 0;
}
.chat-settings__provider-card--full .chat-settings__provider-card__top {
  flex: 1;
  padding-right: 42px;
}
.chat-settings__provider-card__logo {
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.chat-settings__provider-card__name {
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.chat-settings__provider-card__meta {
  font-size: 11px;
  color: var(--text-muted);
}
.chat-settings__provider-card__info-btn {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.05);
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}
.chat-settings__provider-card__info-btn:active {
  transform: translateY(-50%) scale(0.94);
}
.chat-settings__provider-card__info-btn:hover {
  background: var(--text);
  color: #fff;
}
.chat-settings__provider-card--on .chat-settings__provider-card__info-btn {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
}
.chat-settings__model-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-settings__model-card {
  position: relative;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chat-settings__model-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.15);
}
.chat-settings__model-card--on {
  border-color: var(--text);
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 24px -10px rgba(15, 23, 42, 0.15);
}
.chat-settings__model-card[data-tier=fast] .chat-settings__model-card__desc {
  color: var(--text-muted);
}
.chat-settings__model-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.chat-settings__model-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.chat-settings__model-card__rec {
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chat-settings__model-card--on .chat-settings__model-card__rec {
  background: var(--text);
  color: #fff;
}
.chat-settings__model-card__check {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  color: transparent;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.chat-settings__model-card--on .chat-settings__model-card__check {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.chat-settings__model-card__desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 10px;
}
.chat-settings__model-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.chat-settings__model-card__tag {
  font-size: 10.5px;
  font-weight: 500;
  padding: 2.5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  color: var(--text-dim);
}
.chat-settings__model-card__stats {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}
.chat-settings__model-card--on .chat-settings__model-card__stats {
  border-top-color: rgba(15, 23, 42, 0.09);
}
.chat-settings__model-card--on .chat-settings__model-card__stat {
  color: var(--text-dim);
}
.chat-settings__model-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chat-settings__model-card__stat svg {
  opacity: 0.7;
}
.chat-settings__model-card__stat--res {
  margin-left: auto;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  color: var(--text-dim);
  font-weight: 500;
}
.chat-settings__model-card--on .chat-settings__model-card__stat--res {
  background: rgba(15, 23, 42, 0.07);
  color: var(--text);
}
.chat-settings__seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.05);
  gap: 2px;
}
.chat-settings__seg__btn {
  border: none;
  background: transparent;
  padding: 8px 4px;
  border-radius: 8px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-settings__seg__btn:hover {
  color: var(--text);
}
.chat-settings__seg__btn--on {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 10px -3px rgba(15, 23, 42, 0.12);
}
.chat-settings__cost {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.chat-settings__cost__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
}
.chat-settings__cost__label {
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.chat-settings__cost__value {
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.chat-settings__cost__eta {
  margin-left: auto;
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
}
.chat-settings__cost__eta b {
  color: var(--text);
  font-weight: 500;
}
.chat-settings__cost__skel {
  display: inline-block;
  height: 13px;
  border-radius: 6px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: costShimmer 1.3s ease-in-out infinite;
}
.chat-settings__cost__fadeIn {
  animation: costFadeIn 0.22s ease forwards;
}
.chat-settings--chat-mode .chat-settings__cost .chat-settings__eta {
  display: none;
}
@keyframes costShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
@keyframes costFadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chat-settings__aspect-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.chat-settings__aspect {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 64px;
  padding: 8px 4px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.chat-settings__aspect:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.chat-settings__aspect--on {
  border-color: var(--text);
  background: var(--surface);
}
.chat-settings__aspect--hot {
  border-color: var(--line-strong);
  background: var(--surface);
}
.chat-settings__aspect__box {
  border: 1.5px solid var(--text-muted);
  border-radius: 3px;
}
.chat-settings__aspect--on .chat-settings__aspect__box {
  border-color: var(--text);
}
.chat-settings__aspect__ratio {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
}
.chat-settings__aspect--on .chat-settings__aspect__ratio {
  color: var(--text);
}

.model-pop {
  position: fixed;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 30px 70px -16px rgba(15, 23, 42, 0.28);
  padding: 22px;
  opacity: 0;
  transform: translateY(6px) scale(0.97);
  pointer-events: none;
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.model-pop.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: popFloat 6s ease-in-out infinite alternate;
}

@keyframes popFloat {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-2px) scale(1);
  }
}
.pop-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.pop-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex: none;
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Geist Mono", monospace;
  font-weight: 600;
  font-size: 15px;
}
.pop-logo.kling {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.pop-logo.seedance {
  background: linear-gradient(135deg, #ff5e62, #ff9966);
}
.pop-logo.nanobanana {
  background: linear-gradient(135deg, #ffd84d, #f59e0b);
  color: #4a2c00;
}
.pop-logo.yandex {
  background: linear-gradient(135deg, #ff0000, #c2185b);
}
.pop-logo.qwen {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.pop-title-wrap {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}

.pop-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.pop-tag {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.pop-close {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.pop-close:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text);
}

.pop-tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  background: rgba(15, 23, 42, 0.035);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.pop-tagline .ic {
  font-size: 15px;
}

.pop-section {
  margin-bottom: 18px;
}
.pop-section:last-child {
  margin-bottom: 0;
}

.pop-h {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.pop-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pop-list .item {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.pop-list .item .b {
  color: var(--emerald);
  flex: none;
  font-weight: 600;
  width: 12px;
}
.pop-list .item.warn .b {
  color: #d97706;
}
.pop-list .item.use .b {
  color: var(--text-muted);
}

.pop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pop-tag-chip {
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.005em;
}

.pop-rec {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}
.pop-rec b {
  color: var(--text);
  font-weight: 500;
}
.pop-rec .star {
  color: #d97706;
  flex: none;
}

.ratio-tip {
  position: fixed;
  z-index: 220;
  width: 248px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -6px rgba(15, 23, 42, 0.16), 0 24px 48px -16px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(4px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ratio-tip.open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ratio-tip .rt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.ratio-tip .rt-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.ratio-tip .rt-ratio {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 2px 6px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 5px;
}
.ratio-tip .rt-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.ratio-tip .rt-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
  margin-bottom: 6px;
}
.ratio-tip .rt-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ratio-tip .rt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px 4px 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
}
.ratio-tip .rt-chip svg {
  flex: none;
  color: rgba(15, 23, 42, 0.55);
}
.ratio-tip .rt-prosCons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.ratio-tip .rt-prosCons .rt-sub {
  margin-bottom: 4px;
}
.ratio-tip .rt-pcItem {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text);
  margin-top: 3px;
}
.ratio-tip .rt-pcItem.good .rt-pcDot {
  background: rgba(16, 129, 85, 0.12);
  color: #0c7a4f;
}
.ratio-tip .rt-pcItem.bad .rt-pcDot {
  background: rgba(180, 83, 9, 0.12);
  color: #b45309;
}
.ratio-tip .rt-pcDot {
  flex: none;
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  margin-top: 1px;
}

.model-tip {
  width: 288px;
}

.chat-settings__model-card--hot {
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-1px);
}

@media (max-width: 992px) {
  .chat-settings {
    position: fixed;
    top: var(--header-h);
    right: 0;
    height: calc(100dvh - var(--header-h));
    width: 80%;
    max-width: 380px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 0;
    z-index: 300;
    overflow-y: auto;
  }
  .chat-settings.mobile-open {
    transform: translateX(0);
  }
}
.chat-settings__voice-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 4px;
}

.chat-settings__voice-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-settings__voice-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}
.chat-settings__voice-btn:hover {
  border-color: rgba(15, 23, 42, 0.22);
  color: var(--text);
}
.chat-settings__voice-btn--on {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.chat-settings__voice-play {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.16s ease;
}
.chat-settings__voice-play:hover {
  border-color: rgba(15, 23, 42, 0.22);
  color: var(--text);
}
.chat-settings__voice-play--active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.gpf {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gpf-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gpf-label {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.gpf-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.05);
  gap: 2px;
}
.gpf-seg__btn {
  border: none;
  background: transparent;
  padding: 8px 4px;
  border-radius: 8px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gpf-seg__btn:hover {
  color: var(--text);
}
.gpf-seg__btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.gpf-seg__btn--on {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 10px -3px rgba(15, 23, 42, 0.12);
}

.gpf-aspects {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.gpf-asp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 48px;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gpf-asp:hover {
  border-color: var(--line-strong);
}
.gpf-asp:disabled {
  opacity: 0.5;
  cursor: default;
}
.gpf-asp--on {
  border-color: var(--text);
  background: var(--surface-2);
}
.gpf-asp__box {
  border: 1.5px solid var(--text-muted);
  border-radius: 3px;
  flex: none;
}
.gpf-asp--on .gpf-asp__box {
  border-color: var(--text);
}
.gpf-asp__ratio {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
}
.gpf-asp--on .gpf-asp__ratio {
  color: var(--text);
}

.gpf-voices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gpf-voice {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.gpf-voice:hover {
  border-color: var(--line-strong);
  color: var(--text);
}
.gpf-voice:disabled {
  opacity: 0.5;
  cursor: default;
}
.gpf-voice--on {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.gpf-cost {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.gpf-cost__icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  flex: none;
}
.gpf-cost__label {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.gpf-cost__value {
  display: block;
  margin-top: 2px;
  font-family: "Geist Mono", monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.gpf-cost__eta {
  margin-left: auto;
  text-align: right;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
}
.gpf-cost__eta b {
  color: var(--text);
  font-weight: 500;
}

.gen-settings-pop {
  position: absolute;
  left: 12px;
  bottom: calc(100% + 10px);
  width: 380px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 24px 60px -20px rgba(15, 23, 42, 0.25);
  z-index: 70;
  overflow: hidden;
}
.gen-settings-pop__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.gen-settings-pop__title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.gen-settings-pop__sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}
.gen-settings-pop__close {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
  transition: all 0.15s ease;
}
.gen-settings-pop__close:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text);
}
.gen-settings-pop__body {
  padding: 16px 18px;
  max-height: min(60vh, 520px);
  overflow-y: auto;
}
.gen-settings-pop__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.gen-settings-pop__saved {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--emerald);
}
.gen-settings-pop__ok {
  margin-left: auto;
  padding: 9px 18px;
  border-radius: 10px;
  border: none;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.gen-settings-pop__ok:hover {
  opacity: 0.88;
}
@media (max-width: 640px) {
  .gen-settings-pop {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    border-radius: 20px 20px 0 0;
  }
}

.gpf-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease;
}
.gpf-select:hover {
  border-color: rgba(15, 23, 42, 0.2);
}
.gpf-select--open {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}
.gpf-select:disabled {
  opacity: 0.55;
  cursor: default;
}
.gpf-select__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gpf-select__chev {
  color: var(--text-muted);
  flex: none;
}

.gpf-select-menu {
  z-index: 80;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 20px 48px -16px rgba(15, 23, 42, 0.28);
  padding: 5px;
  max-height: 280px;
  overflow-y: auto;
}
.gpf-select-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.gpf-select-menu__item:hover {
  background: rgba(15, 23, 42, 0.045);
}
.gpf-select-menu__item svg {
  flex: none;
}
.gpf-select-menu__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prop-card {
  flex: none;
  max-width: 460px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.11);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 8px 24px -10px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}
.prop-card--superseded {
  background: var(--surface-2);
}
.prop-card--superseded .prop-card__title {
  color: var(--text-muted);
}
.prop-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.prop-card__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.prop-card__body {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 13px 16px;
  transition: opacity 0.15s ease;
}
.prop-card__body--dimmed {
  opacity: 0.55;
  pointer-events: none;
}
.prop-card__prompt-label {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.prop-card__prompt {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  resize: vertical;
}
.prop-card__prompt:disabled {
  color: var(--text-dim);
}
.prop-card__ref {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.prop-card__ref-thumb {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.06);
}
.prop-card__ref-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.prop-card__ref-hint {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--text-muted);
}
.prop-card__ref-remove {
  flex: none;
  margin-left: auto;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.prop-card__ref-remove:hover {
  background: rgba(15, 23, 42, 0.12);
  color: var(--text);
}
.prop-card__ref-restore {
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
}
.prop-card__ref-restore:hover {
  color: var(--text);
}
.prop-card__note {
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 16px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-muted);
  background: var(--surface-2);
}
.prop-card__note--danger {
  background: #fdecea;
  border: 1px solid #f5b5b0;
  color: #b71c1c;
}
.prop-card__note--danger a {
  color: inherit;
  text-decoration: underline;
}
.prop-card__body + .prop-card__note {
  margin-top: 0;
}
.prop-card__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 2px 16px 15px;
}
.prop-card__btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.prop-card__btn:hover {
  opacity: 0.88;
}
.prop-card__btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.prop-card__btn--pink {
  background: #e91e63;
}
.prop-card__btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.prop-card__link {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}
.prop-card__link:hover {
  color: var(--text-dim);
}
.prop-card__badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.prop-card__badge--run {
  background: rgba(15, 176, 133, 0.12);
  color: #0c8e6c;
}
.prop-card__badge--old {
  background: rgba(15, 23, 42, 0.06);
  color: #8a8d94;
}
.prop-card__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 13px 16px;
}
.prop-card__chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.045);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-dim);
}

.msg-img-card {
  position: relative;
  width: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.msg-img-card--user {
  border-radius: 14px 14px 4px 14px;
}
.msg-img-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg-img-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}
.msg-img-card__img--blur {
  filter: blur(12px);
  transform: scale(1.1);
}
.msg-img-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.03) 100%);
  animation: imgPlaceholderPulse 1.6s ease-in-out infinite;
}
.msg-img-card__loader-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
}
.msg-img-card__hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0);
  color: #fff;
  opacity: 0;
  transition: all 0.18s ease;
}
.msg-img-card__thumb:hover .msg-img-card__hover-overlay {
  background: rgba(15, 23, 42, 0.28);
  opacity: 1;
}
.msg-img-card__thumb:hover .msg-img-card__img:not(.msg-img-card__img--blur) {
  transform: scale(1.04);
}
.msg-img-card__dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  text-decoration: none;
  background: var(--surface);
  transition: all 0.15s ease;
}
.msg-img-card__dl:hover {
  color: var(--text);
  background: var(--surface-2);
}
.msg-img-card--processing .msg-img-card__dl {
  display: none;
}
.msg-img-card--error .msg-img-card__thumb {
  cursor: default;
}
.msg-img-card--error .msg-img-card__placeholder {
  animation: none;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.07) 0%, rgba(239, 68, 68, 0.03) 100%);
}

.msg-img-error {
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(239, 68, 68, 0.14);
  background: rgba(239, 68, 68, 0.03);
}

.msg-img-error__title {
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  line-height: 1.4;
}

.msg-img-error__reason {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-dim, #64748b);
}

.msg-img-spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: msgImgSpin 0.75s linear infinite;
}

@keyframes msgImgSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes imgPlaceholderPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: lightboxIn 0.18s ease;
}
.img-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  cursor: default;
}
.img-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.img-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.img-lightbox__dl {
  position: absolute;
  top: 20px;
  right: 68px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: background 0.15s ease;
}
.img-lightbox__dl:hover {
  background: rgba(255, 255, 255, 0.22);
}

@keyframes lightboxIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 480px) {
  .msg-row-ai--video {
    max-width: 100%;
  }
}

.gen-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 8px 24px -10px rgba(15, 23, 42, 0.1);
  opacity: 0;
  transform: translateY(8px) scale(0.992);
  animation: genCardIn 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  position: relative;
  overflow: hidden;
}
.gen-card--no-animate {
  animation: none;
  opacity: 1;
  transform: none;
}
@media (max-width: 720px) {
  .gen-card {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .gen-card {
    border-radius: 14px;
    padding: 12px;
    gap: 12px;
  }
}

.gc-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #eef0f4, #e6e9ef);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.gc-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(99, 102, 241, 0.18), transparent 55%), radial-gradient(circle at 75% 80%, rgba(236, 72, 153, 0.16), transparent 55%), radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.12), transparent 60%);
  animation: gcHueShift 6s ease-in-out infinite alternate;
}
.gc-thumb__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gen-card.done .gc-thumb::before {
  display: none;
}

.gc-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: gcShimmerSweep 1.8s linear infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.gen-card.done .gc-shimmer {
  display: none;
}

.gc-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.gen-card.done .gc-play {
  opacity: 1;
}

.gc-play-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  color: var(--text);
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.3);
  transition: transform 0.2s ease;
}

.gc-play:hover .gc-play-btn {
  transform: scale(1.06);
}

.gc-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.gc-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.gc-mode .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0fb085;
  box-shadow: 0 0 8px #0fb085;
  animation: gcPulse 1.4s ease-in-out infinite;
}

.gen-card.done .gc-mode .pulse {
  animation: none;
}

.gc-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.gc-prompt {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-dim, #475569);
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gc-prompt:empty {
  display: none;
}

.gc-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
  margin-top: 14px;
  min-height: 18px;
  overflow: hidden;
}
.gc-stage .stage-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc-stage .spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: gcSpin 0.7s linear infinite;
  flex: none;
}
.gc-stage .gc-eta {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-family: "Geist Mono", monospace;
}

.gc-progress {
  margin-top: 8px;
  height: 4px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.gc-progress .bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, #0f172a, #475569 60%, #0f172a);
  background-size: 200% 100%;
  border-radius: 999px;
  animation: gcBarGradient 2.2s linear infinite;
}

.gen-card.done .gc-stage,
.gen-card.done .gc-progress {
  display: none;
}

.gc-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease 0.1s, max-height 0.35s ease;
}
@media (max-width: 480px) {
  .gc-actions {
    flex-direction: column;
    gap: 6px;
    max-height: 0;
  }
}

.gen-card.done .gc-actions {
  opacity: 1;
  max-height: 60px;
}
@media (max-width: 480px) {
  .gen-card.done .gc-actions {
    max-height: 120px;
  }
}

.gc-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  border-radius: 9px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.gc-act:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}
.gc-act.primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.gc-act.primary:hover {
  background: #1a2233;
}
@media (max-width: 480px) {
  .gc-act {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
  }
  .gc-act:hover {
    transform: none;
  }
}

.gen-card--error .gc-thumb::before {
  background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.2), transparent 60%);
  animation: none;
}

.gc-error-text {
  font-size: 12px;
  line-height: 1.5;
  color: #dc2626;
  margin-top: 14px;
  padding: 8px 10px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.14);
  border-radius: 8px;
}

.gen-card.just-done {
  animation: gcCardFinishGlow 1.8s ease-out;
}

.img-lightbox__video {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  cursor: default;
  display: block;
}
@media (max-width: 480px) {
  .img-lightbox__video {
    max-width: 100%;
    max-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}

@keyframes genCardIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes gcCardFinishGlow {
  0% {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 8px 24px -10px rgba(15, 23, 42, 0.1), 0 0 0 0 rgba(99, 102, 241, 0);
    transform: scale(1);
  }
  18% {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 14px 36px -8px rgba(15, 23, 42, 0.18), 0 0 0 4px rgba(99, 102, 241, 0.18), 0 0 32px 0 rgba(99, 102, 241, 0.25);
    transform: scale(1.006);
  }
  100% {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 8px 24px -10px rgba(15, 23, 42, 0.1), 0 0 0 0 rgba(99, 102, 241, 0);
    transform: scale(1);
  }
}
@keyframes gcShimmerSweep {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
@keyframes gcHueShift {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(40deg);
  }
}
@keyframes gcPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}
@keyframes gcSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes gcBarGradient {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.msg-rating {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg-rating__row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.msg-rating__btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.msg-rating__btn svg {
  width: 15px;
  height: 15px;
  display: block;
}
.msg-rating__btn:hover {
  background: rgba(15, 23, 42, 0.05);
}
.msg-rating__btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 1px;
}
.msg-rating__btn.is-on-up {
  color: var(--accent-color);
  background: rgba(42, 177, 153, 0.11);
  border-color: rgba(42, 177, 153, 0.3);
}
.msg-rating__btn.is-on-down {
  color: #e11d48;
  background: rgba(225, 29, 72, 0.09);
  border-color: rgba(225, 29, 72, 0.26);
}
.msg-rating__thanks {
  font-size: 11px;
  color: var(--accent-color);
  margin-left: 4px;
}
.msg-rating__note {
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.24);
  border-radius: 12px;
  padding: 10px 11px 9px;
  max-width: 420px;
}
.msg-rating__ta {
  width: 100%;
  min-height: 56px;
  resize: vertical;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
}
.msg-rating__ta:focus-visible {
  outline: 2px solid rgba(225, 29, 72, 0.4);
  border-color: transparent;
}
.msg-rating__note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.msg-rating__hint {
  font-size: 11px;
  color: var(--text-muted);
}
.msg-rating__actions {
  display: flex;
  gap: 6px;
  flex: none;
}
.msg-rating__mini {
  font: inherit;
  font-size: 12px;
  border-radius: 8px;
  padding: 5px 11px;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: transparent;
  color: var(--text-color);
}
.msg-rating__mini--go {
  background: #232323;
  border-color: #232323;
  color: #fff;
}
.msg-rating--legacy {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .msg-rating__btn {
    width: 32px;
    height: 32px;
  }
  .msg-rating__btn svg {
    width: 17px;
    height: 17px;
  }
  .msg-rating__note {
    max-width: none;
  }
  .msg-rating__hint {
    display: none;
  }
}
.msg-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.msg-rating.msg-rating--legacy {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
}
.msg-rating.msg-rating--legacy .msg-rating__row,
.msg-rating.msg-rating--legacy .msg-rating__note-foot,
.msg-rating.msg-rating--legacy .msg-rating__actions {
  display: flex;
  grid-template-columns: none;
}
.msg-rating.msg-rating--legacy .msg-rating__row {
  gap: 4px;
}
.msg-rating.msg-rating--legacy .msg-rating__note-foot {
  gap: 10px;
}
.msg-rating.msg-rating--legacy .msg-rating__actions {
  gap: 6px;
}
.msg-rating.msg-rating--legacy .msg-rating__note {
  display: block;
  grid-template-columns: none;
  padding: 10px 11px 9px;
  border: 1px solid rgba(225, 29, 72, 0.24) !important;
}

.chat-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}
.chat-loading__img {
  flex-shrink: 0;
  margin-bottom: 10px;
}
.voice-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 680px) {
  .voice-flex {
    width: 100%;
  }
}

.btn-voice {
  flex-shrink: 0;
  cursor: pointer;
  display: inline-block;
  width: 48px;
  height: 48px;
  background: url("/images/icons/btn-play.svg") no-repeat center;
  background-size: cover;
  transition: all 0.15s ease-in-out;
}
.btn-voice.is-pause {
  background: url("/images/icons/btn-pause.svg") no-repeat center;
}

.chat-scroll-btn {
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  color: var(--title-color);
  border-radius: 50%;
  background: var(--white-color);
  border: 1.5px solid var(--line-dark-color);
  transition: all 0.3s ease-in-out;
  position: absolute;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.chat-scroll-btn.show {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.chat-scroll-btn svg {
  flex-shrink: 0;
  display: inline-block;
  width: 24px;
  height: 24px;
  transition: color 0.3s ease-in-out;
}
.chat-scroll-btn:hover {
  border-color: transparent;
  background-color: var(--dark-color);
}
.chat-scroll-btn:hover svg {
  color: var(--white-color);
}
@media (max-width: 480px) {
  .chat-scroll-btn {
    left: inherit;
    right: 0;
    transform: none;
  }
}

#clearChat {
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  border-radius: 8px;
  border: 1px solid var(--line-dark-color);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 12px;
  margin-left: auto;
  margin-top: 12px;
  transition: all 0.3s ease-in-out;
  display: none;
  animation: var(--animation-fade);
}
#clearChat:hover {
  border-color: var(--danger-color);
}
#clearChat.show {
  display: flex;
}

audio {
  margin-top: 16px;
  background-color: none;
  background-color: #f0f0f0;
  border-radius: 12px;
}

.audio-download, .image-download {
  text-decoration: none;
  cursor: pointer;
  top: -18px;
  left: 8px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 54px;
  color: var(--text-color);
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--line-dark-color);
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease-in;
}
.audio-download svg, .image-download svg {
  color: var(--main-color);
  flex-shrink: 0;
  display: inline-block;
  width: 16px;
  height: 16px;
  transition: color 0.2s ease-in-out;
}
.audio-download:hover, .image-download:hover {
  color: var(--white-color);
  background: var(--main-color);
  border-color: transparent;
}
.audio-download:hover svg, .image-download:hover svg {
  color: var(--white-color);
}

.image-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 2px dashed #ccc;
  padding: 16px;
  padding-bottom: 24px;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.image-upload__icon {
  display: inline-block;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}
.image-upload:hover {
  border-color: var(--main-color);
  background-color: rgba(42, 177, 153, 0.05);
}
.image-upload:hover .image-upload__btn {
  color: #fff;
  background: var(--main-color);
}
.image-upload__text {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-gray-color);
}
.image-upload__btn {
  padding: 8px 16px;
  border: none;
  background-color: var(--gray-light-color);
  color: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.image-upload__btn:hover {
  color: #fff;
  background: var(--main-color);
}
.image-upload__input {
  display: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.promts-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: auto;
  margin-bottom: 24px;
}
.promts-tabs__btn {
  flex-shrink: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  background: #1c2122;
  border-radius: 8px;
  padding: 8px 16px;
  transition: all 0.3s ease-in-out;
}
.promts-tabs__btn:hover, .promts-tabs__btn.active {
  background: var(--main-color);
}
@media (max-width: 599px) {
  .promts-tabs {
    overflow-y: auto;
    flex-wrap: nowrap;
  }
}

.check {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.1s ease-in-out;
  position: relative;
}
.check:not(:last-child) {
  margin-bottom: 16px;
}
.check.check-error .check__box {
  border-color: var(--danger-color);
}
.check__input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: none;
}
.check__input:checked + .check__box {
  background: var(--main-color) url("data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%3Cg%20id%3D%226544ec245ff593c3f84690fc9087dbf8%22%3E%0A%20%20%20%20%3Cpath%20id%3D%220445b5d937d516bb263a415b821229b3%22%20d%3D%22M6.20441%2012.012L2.5644%208.37197C2.34572%208.15328%202.34572%207.79871%202.5644%207.58001L3.35634%206.78805C3.57503%206.56934%203.92962%206.56934%204.14831%206.78805L6.60039%209.2401L11.8525%203.98805C12.0712%203.76936%2012.4257%203.76936%2012.6444%203.98805L13.4364%204.78001C13.6551%204.99869%2013.6551%205.35327%2013.4364%205.57197L6.99637%2012.012C6.77766%2012.2307%206.42309%2012.2307%206.20441%2012.012V12.012Z%22%20fill%3D%22white%22%3E%3C%2Fpath%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E") no-repeat center;
  background-size: 16px 16px;
  border: 2px solid transparent;
}
.check__box {
  flex-shrink: 0;
  cursor: pointer;
  display: block;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border: 2px solid var(--main-color);
  border-radius: 4px;
  position: absolute;
  position: relative;
}
.check__box.error-check {
  background-color: var(--danger-bg-color);
  border-color: var(--danger-color);
}
.check__label {
  color: rgba(0, 0, 0, 0.3);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}
.check__link {
  cursor: pointer;
  text-decoration: underline;
}
.check__link:hover {
  text-decoration: none;
  color: var(--main-color);
}
.check.is-error .check__box {
  background: var(--danger-bg-color);
  border-color: var(--danger-color);
}

/* ------------------- Custom Select -------------------- */
.select {
  position: relative;
  width: 100%;
  height: 56px;
}
.select__flex {
  display: flex;
  align-items: center;
  gap: 8px;
}
.select__label {
  display: block;
  color: rgb(104, 112, 130);
  box-sizing: border-box;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease 0s;
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.select__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  color: var(--color-title);
  background-color: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 0 16px;
  padding-right: 15px;
  transition: border-color 0.2s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
  position: relative;
}
.select__trigger:hover {
  border-color: var(--main-color);
}
.select__trigger.disabled {
  cursor: default;
  background: #f2f4f7;
}
.select__trigger::after {
  content: "";
  position: absolute;
  top: 53%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  right: 15px;
  width: 1.125rem;
  height: 1.125rem;
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHZpZXdCb3g9IjAgMCAxOSAxOSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBpZD0iOTM2OTgwZjciPgogICAgPHBhdGggaWQ9IjRkMWM0OTZiIiBkPSJNNSA3LjI1TDkuNSAxMS43NUwxNCA3LjI1IiBzdHJva2U9IiM0RjRGNEYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48L3BhdGg+CiAgPC9nPgo8L3N2Zz4=);
  background-size: contain;
  background-repeat: no-repeat;
  transition: all 0.4s ease-in-out;
}
.select__trigger.disabled {
  background-color: #f2f4f7;
}
.select__selected {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-color);
}
.select__options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 0;
  overflow-y: auto;
  list-style: none;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #f2f4f7;
  box-shadow: 0px 16px 32px rgba(77, 83, 103, 0.16);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fade 0.3s ease-in-out;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
}
.select__options::-webkit-scrollbar {
  width: 4px;
}
.select__options::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 6px;
}
.select__option {
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  padding: 12px 15px;
  transition: background-color 0.25s ease-in-out;
  position: relative;
}
.select__option:hover {
  background-color: #f5f5f5;
}
.select__option.selected {
  background-color: var(--main-color);
  color: #fff;
  font-weight: 500;
  position: relative;
}
.select__option.selected::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBpZD0iMGE3MzcxYzciIGNsaXAtcGF0aD0idXJsKCM4NTFiMjdmOSkiPgogICAgPHBhdGggaWQ9Ijc5YzU4NTkyIiBkPSJNMTkuNjg3NSAxMEMxOS42ODc1IDE1LjM1MDMgMTUuMzUwMyAxOS42ODc1IDEwIDE5LjY4NzVDNC42NDk3MyAxOS42ODc1IDAuMzEyNSAxNS4zNTAzIDAuMzEyNSAxMEMwLjMxMjUgNC42NDk3MyA0LjY0OTczIDAuMzEyNSAxMCAwLjMxMjVDMTUuMzUwMyAwLjMxMjUgMTkuNjg3NSA0LjY0OTczIDE5LjY4NzUgMTBaTTguODc5NDUgMTUuMTI5NUwxNi4wNjcgNy45NDE5NUMxNi4zMTEgNy42OTc4OSAxNi4zMTEgNy4zMDIxNSAxNi4wNjcgNy4wNTgwOUwxNS4xODMxIDYuMTc0MjJDMTQuOTM5IDUuOTMwMTIgMTQuNTQzMyA1LjkzMDEyIDE0LjI5OTIgNi4xNzQyMkw4LjQzNzUgMTIuMDM1OUw1LjcwMDgyIDkuMjk5MThDNS40NTY3NiA5LjA1NTEyIDUuMDYxMDIgOS4wNTUxMiA0LjgxNjkxIDkuMjk5MThMMy45MzMwNSAxMC4xODNDMy42ODg5OCAxMC40MjcxIDMuNjg4OTggMTAuODIyOSAzLjkzMzA1IDExLjA2NjlMNy45OTU1NSAxNS4xMjk0QzguMjM5NjUgMTUuMzczNSA4LjYzNTM1IDE1LjM3MzUgOC44Nzk0NSAxNS4xMjk1WiIgZmlsbD0id2hpdGUiPjwvcGF0aD4KICA8L2c+CiAgPGRlZnM+CiAgICA8Y2xpcFBhdGggaWQ9Ijg1MWIyN2Y5Ij4KICAgICAgPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiBmaWxsPSJ3aGl0ZSI+PC9yZWN0PgogICAgPC9jbGlwUGF0aD4KICA8L2RlZnM+Cjwvc3ZnPg==") no-repeat center;
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translate(-50%, -50%);
}
.select.open {
  position: relative;
}
.select.open .select__label {
  cursor: default;
  top: 0;
  left: 15px;
  transition: top 0.2s;
  background: #fff;
  color: #6c757d;
  font-weight: 400;
  font-size: 14px;
  padding: 0 5px;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.select.open .select__trigger {
  border-color: var(--main-color);
}
.select.open .select__trigger::after {
  transform: rotateX(180deg) translateY(50%);
}
.select.open .select__options {
  max-height: 200px;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
:root {
  --input-width: 100%;
  --input-height: 56px;
  --input-border: 1px solid transparent;
  --input-bg: var(--input-bg-color);
  --input-placeholder: var(--input-placeholder-color);
  --input-color: var(--text-color);
  --input-br: 10px;
  --input-fz: 16px;
  --input-fw: 400;
  --input-lh: 1.5px;
  --input-padding: 0 20px;
}

.form, .payment-status, .payment {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.form.hide, .hide.payment-status, .hide.payment {
  display: none;
}
.form.fixed, .fixed.payment-status, .fixed.payment {
  max-width: 480px;
  padding: 48px;
  border-radius: 24px;
}
.form__header, .payment-status__header, .payment__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  text-align: center;
}
.form__title, .payment-status__title, .payment__title {
  color: var(--title-color);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}
.form__description, .payment-status__description, .payment__description {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 400;
}
.form__item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 16px;
}
.form__item.is-error {
  margin-bottom: 16px;
}
.form__input, .form-profile__input {
  flex-shrink: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  border: none;
  background-clip: padding-box;
  display: block;
  width: var(--input-width);
  height: var(--input-height);
  color: var(--input-color);
  background-color: var(--input-bg);
  border: var(--input-border);
  border-radius: var(--input-br);
  padding: var(--input-padding);
  padding-top: 12px;
  font-size: var(--input-fz);
  font-weight: var(--input-fw);
  line-height: var(--input-lh);
  transition: all 0.15s ease-in-out;
}
.form__input::placeholder, .form-profile__input::placeholder {
  color: var(--input-placeholder);
}
.form__input:focus, .form-profile__input:focus {
  background: #fff;
  border-color: var(--main-color);
}
.form__input.disabled, .disabled.form-profile__input {
  cursor: default;
  background: #f2f4f7;
}
.form__label {
  color: var(--input-placeholder);
  font-size: 16px;
  line-height: 1.5;
  position: absolute;
  top: 16px;
  left: 20px;
  transition: top 0.3s, font-size 0.3s;
  pointer-events: none;
}
.form__btn {
  width: 100%;
  min-width: 100%;
}
.form__footer {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  margin-top: 20px;
}

.input-error {
  background: var(--danger-bg-color);
  border-color: var(--danger-color);
  padding-right: 40px;
}

.error-icon {
  flex-shrink: 0;
  display: inline-block;
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBpZD0iYjNlYWVjZjkiIGNsaXAtcGF0aD0idXJsKCM4MTdkYTEyMSkiPgogICAgPHBhdGggaWQ9ImU5YzZiNGQyIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwIDBDNC40OCAwIDAgNC40OCAwIDEwQzAgMTUuNTIgNC40OCAyMCAxMCAyMEMxNS41MiAyMCAyMCAxNS41MiAyMCAxMEMyMCA0LjQ4IDE1LjUyIDAgMTAgMFpNMTAgMTVDOS40NSAxNSA5IDE0LjU1IDkgMTRWMTBDOSA5LjQ1IDkuNDUgOSAxMCA5QzEwLjU1IDkgMTEgOS40NSAxMSAxMFYxNEMxMSAxNC41NSAxMC41NSAxNSAxMCAxNVpNMTEgN0g5VjVIMTFWN1oiIGZpbGw9IiNFMDM5MzkiPjwvcGF0aD4KICA8L2c+CiAgPGRlZnM+CiAgICA8Y2xpcFBhdGggaWQ9IjgxN2RhMTIxIj4KICAgICAgPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiBmaWxsPSJ3aGl0ZSI+PC9yZWN0PgogICAgPC9jbGlwUGF0aD4KICA8L2RlZnM+Cjwvc3ZnPg==") no-repeat center;
  background-size: cover;
  position: absolute;
  top: 20px;
  right: 16px;
  display: none;
  animation: 0.15s ease-in-out;
}
.error-icon.show {
  display: inline-block;
}

.error-msg {
  flex-shrink: 0;
  display: none;
  color: var(--danger-color);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  margin-top: 6px;
  animation: 0.15s ease-in-out;
}
.error-msg.show {
  display: block;
}

.form__input:focus ~ .form__label, .form-profile__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label,
.form-profile__input:not(:placeholder-shown) ~ .form__label {
  top: 6px;
  font-size: 12px;
  color: var(--text-color);
}

@media (max-width: 480px) {
  .form.fixed, .fixed.payment-status, .fixed.payment {
    padding: 32px;
    padding-top: 24px;
    border-radius: 24px;
  }
  .form__title, .payment-status__title, .payment__title {
    font-size: 24px;
  }
  .form__label {
    font-size: 15px;
  }
}
@media (max-width: 393px) {
  .form.fixed, .fixed.payment-status, .fixed.payment {
    padding: 20px;
    padding-bottom: 24px;
    border-radius: 16px;
  }
  .form__item {
    border-radius: 8px;
    margin-bottom: 16px;
  }
  .form__label {
    top: 16px;
    left: 16px;
  }
  .form__input, .form-profile__input {
    height: 52px;
    padding: 0 16px;
    padding-top: 16px;
  }
}
.form-profile {
  width: 100%;
  background-color: var(--white-color);
  padding: 32px;
  border-radius: 24px;
}
.form-profile__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.form-profile__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-profile__label {
  display: inline-block;
  color: var(--title-color);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
.form-profile__input {
  border: none;
  padding: 0 16px !important;
  color: var(--input-placeholder);
}
.form-profile__input::placeholder {
  color: var(--input-placeholder);
}
.form-profile__input:focus {
  background: var(--input-bg-color);
  border: none;
}
.form-profile__footer {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1023px) {
  .form-profile {
    max-width: 480px;
    margin: 0 auto;
  }
  .form-profile__body {
    grid-template-columns: 1fr;
  }
  .form-profile__footer {
    justify-content: flex-start;
  }
  .form-profile__btn {
    width: 100%;
  }
}
@media (max-width: 393px) {
  .form-profile {
    padding: 24px;
  }
}
.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--input-placeholder-color, #94a3b8);
  display: flex;
  align-items: center;
  line-height: 0;
}
.password-toggle:hover {
  color: var(--text-color, #1e293b);
}
.password-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

.form-profile__input--password {
  padding-right: 44px !important;
}

.modal {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  pointer-events: none;
  z-index: 999;
}
.modal__overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  padding: 20px 8px;
}
.modal__close {
  cursor: pointer;
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDE0IDE0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48ZyB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIC0yODEgLTM0ODEpIj48ZyB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIDEwMCAzMzc4KSI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgMSAxNzYgOTgpIj48cG9seWdvbiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0ibm9uZSIgcG9pbnRzPSIwLDAgMjQsMCAyNCwyNCAwLDI0Ij48L3BvbHlnb24+PHBhdGggZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2U9Im5vbmUiIGQ9Ik0xOC4zIDUuNzFjLS4zOS0uMzktMS4wMi0uMzktMS40MSAwbC00Ljg5IDQuODggLTQuODktNC44OWMtLjM5LS4zOS0xLjAyLS4zOS0xLjQxIDAgLS4zOS4zOS0uMzkgMS4wMiAwIDEuNDFsNC44OSA0Ljg5IC00Ljg5IDQuODljLS4zOS4zOS0uMzkgMS4wMiAwIDEuNDEgLjM5LjM5IDEuMDIuMzkgMS40MSAwbDQuODktNC44OSA0Ljg5IDQuODljLjM5LjM5IDEuMDIuMzkgMS40MSAwIC4zOS0uMzkuMzktMS4wMiAwLTEuNDFsLTQuODktNC44OSA0Ljg5LTQuODljLjM4LS4zOC4zOC0xLjAyIDAtMS40WiI+PC9wYXRoPjwvZz48L2c+PC9nPjwvc3ZnPg==");
  background-size: cover;
  position: absolute;
  top: 24px;
  right: 24px;
  opacity: 0.3;
  transition: all 0.3s ease-in-out;
}
.modal__close:hover {
  background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDE0IDE0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj48ZyB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIC0yODEgLTM0ODEpIj48ZyB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIDEwMCAzMzc4KSI+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMSAwIDAgMSAxNzYgOTgpIj48cG9seWdvbiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHN0cm9rZT0ibm9uZSIgcG9pbnRzPSIwLDAgMjQsMCAyNCwyNCAwLDI0Ij48L3BvbHlnb24+PHBhdGggZmlsbD0iI0ZGMzM0QyIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2U9Im5vbmUiIGQ9Ik0xOC4zIDUuNzFjLS4zOS0uMzktMS4wMi0uMzktMS40MSAwbC00Ljg5IDQuODggLTQuODktNC44OWMtLjM5LS4zOS0xLjAyLS4zOS0xLjQxIDAgLS4zOS4zOS0uMzkgMS4wMiAwIDEuNDFsNC44OSA0Ljg5IC00Ljg5IDQuODljLS4zOS4zOS0uMzkgMS4wMiAwIDEuNDEgLjM5LjM5IDEuMDIuMzkgMS40MSAwbDQuODktNC44OSA0Ljg5IDQuODljLjM5LjM5IDEuMDIuMzkgMS40MSAwIC4zOS0uMzkuMzktMS4wMiAwLTEuNDFsLTQuODktNC44OSA0Ljg5LTQuODljLjM4LS4zOC4zOC0xLjAyIDAtMS40WiI+PC9wYXRoPjwvZz48L2c+PC9nPjwvc3ZnPg==");
  opacity: 1;
}
.modal__content {
  width: 100%;
  max-height: 100%;
  max-width: 480px;
  margin: auto;
  overflow: auto;
  overflow-y: auto;
  background-color: #fff;
  padding: 32px;
  border-radius: 24px;
  text-align: center;
  transform: scale(0.8);
  position: relative;
  transition: transform 0.3s ease-in-out;
}
.modal__header {
  margin-bottom: 32px;
}
.modal__icon {
  flex-shrink: 0;
  display: inline-block;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}
@media (max-width: 480px) {
  .modal__icon {
    width: 64px;
    height: 64px;
  }
}
.modal__title {
  color: var(--title-color);
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 0.5rem + 5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}
.modal__descr {
  color: var(--text-gray);
  font-size: 18px;
}
.modal__btn {
  width: 100%;
  min-width: inherit;
  box-shadow: none;
}
.modal__privacy {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.modal.active .modal__content {
  transform: scale(1);
}

@media (max-width: 480px) {
  .modal__close {
    top: 16px;
    right: 16px;
  }
  .modal__content {
    border-radius: 16px;
    padding: 24px 16px;
  }
  .modal__title {
    font-size: 24px;
    margin-bottom: 8px;
  }
}
.modal-registration .modal__overlay {
  backdrop-filter: none;
}
.modal-registration .modal__content {
  padding: 48px;
}
@media (max-width: 480px) {
  .modal-registration .modal__content {
    padding: 24px;
  }
}
.modal-registration .payment {
  padding: 0;
}
.modal-registration.is-image .modal__content {
  background: #1c2122 !important;
  max-width: 1000px;
  padding: 0 !important;
  overflow-x: hidden;
}
.modal-registration.is-image .payment__title {
  color: var(--white-color);
}
.modal-registration.is-image .payment__description,
.modal-registration.is-image .payment__price-sm {
  color: rgba(255, 255, 255, 0.7);
}
.modal-registration.is-image .payment__price-text {
  color: var(--white-color);
}
.modal-registration.is-image .payment__security {
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.04);
}
.modal-registration__grid {
  width: 100%;
  display: flex;
  align-items: center;
}
.modal-registration__grid-left {
  display: flex;
  height: 100%;
  background-color: #fff;
}
.modal-registration__grid .payment {
  width: 100%;
  height: 100%;
  background: none;
  padding: 48px;
  background: none;
  border-radius: 0;
}
.modal-registration__img {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  margin: 0 auto;
}
.modal-registration__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1023px) {
  .modal-registration.is-image .modal__content {
    max-width: 480px;
  }
  .modal-registration__grid {
    flex-direction: column;
  }
  .modal-registration__img {
    display: none;
  }
}
@media (max-width: 800px) {
  .modal-registration__grid .payment {
    padding: 32px;
  }
}
@media (max-width: 480px) {
  .modal-registration__grid .payment {
    padding: 24px;
  }
}
/* ------------------- BLOCKS -------------------- */
/* ─── Unlock body scroll when credits page is mounted ─── */
body:has(.credits-page) {
  overflow: auto;
}

/* ─── Credits page — scoped variables ─── */
.credits-page,
.credits-scope {
  --cr-bg: #fafaf9;
  --cr-surface: #ffffff;
  --cr-text: #0b1220;
  --cr-text-dim: #334155;
  --cr-text-muted: #64748b;
  --cr-line: rgba(15, 23, 42, 0.1);
  --cr-line-strong: rgba(15, 23, 42, 0.18);
  --cr-navy: #0b1220;
  --cr-navy-2: #1e293b;
  --cr-indigo: #6366f1;
  --cr-pink: #ec4899;
  --cr-emerald: #10b981;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--cr-text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

.credits-page {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  z-index: 2;
  background: var(--cr-bg);
}

.credits-scope {
  width: 100%;
}

/* ─── Ambient background ─── */
.credits-ambient {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 1100px 700px at 18% 8%, rgba(99, 102, 241, 0.1), transparent 60%), radial-gradient(ellipse 800px 600px at 88% 0%, rgba(236, 72, 153, 0.07), transparent 55%), radial-gradient(ellipse 900px 700px at 60% 110%, rgba(14, 165, 233, 0.06), transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: crAmbientShift 28s ease-in-out infinite alternate;
}

@keyframes crAmbientShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-3%, 2%, 0) scale(1.05);
  }
}
/* ─── Floating particles ─── */
.credits-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.credits-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  /* stylelint-disable-next-line */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.cr-pt {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.4);
  opacity: 0;
  animation: crPtDrift linear infinite;
}
.cr-pt.pink {
  background: rgba(236, 72, 153, 0.35);
  box-shadow: 0 0 6px rgba(236, 72, 153, 0.4);
}
.cr-pt.cyan {
  background: rgba(14, 165, 233, 0.35);
  box-shadow: 0 0 6px rgba(14, 165, 233, 0.4);
}

@keyframes crPtDrift {
  0% {
    transform: translateY(20vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-110vh) translateX(40px);
    opacity: 0;
  }
}
/* ─── Topbar ─── */
.cr-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 18px -14px rgba(15, 23, 42, 0.18);
}
@media (max-width: 640px) {
  .cr-topbar {
    padding: 10px 14px;
    gap: 8px;
  }
}

.cr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cr-text);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  padding: 6px 4px;
  flex: none;
}
@media (max-width: 640px) {
  .cr-brand {
    font-size: 0;
    gap: 0;
    padding: 4px;
  }
  .cr-brand .cr-brand-logo {
    font-size: 13px;
  }
}

.cr-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0f172a, #334155);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 10px -3px rgba(15, 23, 42, 0.4);
  flex: none;
}

.cr-brand-sep {
  width: 1px;
  height: 22px;
  background: var(--cr-line);
  margin: 0 2px;
}
@media (max-width: 640px) {
  .cr-brand-sep {
    display: none;
  }
}

.cr-nav-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
}

.cr-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--cr-text-dim);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
  letter-spacing: -0.005em;
}
.cr-nav-tab:hover {
  color: var(--cr-text);
  background: rgba(255, 255, 255, 0.6);
}
.cr-nav-tab.active {
  background: #fff;
  color: var(--cr-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 6px 14px -4px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.cr-nav-tab svg {
  flex: none;
  opacity: 0.95;
}
.cr-nav-tab .cr-lock {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cr-text-muted);
  margin-left: 2px;
  opacity: 0.5;
}

.cr-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.cr-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--cr-text);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.cr-start-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.3);
}

/* ─── Credit pill ─── */
.cr-credit-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e293b, #0b1220);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 2px rgba(15, 23, 42, 0.22), 0 14px 36px -12px rgba(99, 102, 241, 0.65), 0 0 0 1px rgba(99, 102, 241, 0.22);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  isolation: isolate;
  overflow: hidden;
}
.cr-credit-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 2px 4px rgba(15, 23, 42, 0.25), 0 16px 36px -10px rgba(99, 102, 241, 0.72), 0 0 0 1px rgba(99, 102, 241, 0.32);
}
.cr-credit-pill:hover .cr-pill-plus {
  transform: rotate(90deg) scale(1.06);
}

.cr-pill-glow {
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(99, 102, 241, 0.55) 60deg, transparent 130deg, transparent 240deg, rgba(236, 72, 153, 0.45) 310deg, transparent 360deg);
  animation: crPillSpin 7s linear infinite;
  opacity: 0.7;
  z-index: -1;
  filter: blur(16px);
}

@keyframes crPillSpin {
  to {
    transform: rotate(360deg);
  }
}
.cr-credit-pill::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e293b, #0b1220);
  z-index: -1;
}

.cr-pill-spark {
  display: inline-flex;
  color: #c7d2fe;
  filter: drop-shadow(0 0 5px rgba(165, 180, 252, 0.7));
}

.cr-pill-amount {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  color: #fff;
}

.cr-pill-label {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  font-size: 11.5px;
  margin-left: -3px;
  letter-spacing: 0.01em;
}

.cr-pill-plus {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
  box-shadow: 0 4px 10px -2px rgba(99, 102, 241, 0.6);
  transition: transform 0.2s ease;
}

/* ─── Avatar ─── */
.cr-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8a55a, #b97c5a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 4px 10px -3px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease;
  text-decoration: none;
}
.cr-avatar:hover {
  transform: scale(1.05);
}

/* ─── Hero ─── */
.cr-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 32px 14px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cr-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.cr-live {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cr-indigo);
  box-shadow: 0 0 8px var(--cr-indigo);
  animation: crLivePulse 2.2s ease-in-out infinite;
}

@keyframes crLivePulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
.cr-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.04;
}

.cr-hero-grad {
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cr-hero p {
  margin: 0 auto;
  max-width: 600px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--cr-text-dim);
  font-weight: 450;
}

.cr-lede-row {
  margin: 22px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--cr-text-dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.cr-lede-row .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cr-text-muted);
  opacity: 0.55;
}
.cr-lede-row b {
  color: var(--cr-text);
  font-weight: 600;
}

/* ─── Pricing grid ─── */
.cr-pricing {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 32px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  position: relative;
  z-index: 2;
}

/* Сетка внутри вкладки ЛК: полей меньше, чем на полноэкранной странице */
.credits-scope .cr-pricing {
  padding: 0;
}

/* ─── Plan card ─── */
.cr-plan {
  position: relative;
  background: var(--cr-surface);
  border: 1px solid var(--cr-line);
  border-radius: 22px;
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.25s ease, box-shadow 0.3s ease;
  isolation: isolate;
  animation: crPlanIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.cr-plan:nth-child(1) {
  animation-delay: 0.05s;
}
.cr-plan:nth-child(2) {
  animation-delay: 0.12s;
}
.cr-plan:nth-child(3) {
  animation-delay: 0.19s;
}
.cr-plan:hover {
  transform: translateY(-4px) scale(1.005);
  border-color: var(--cr-line-strong);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 30px 70px -22px rgba(15, 23, 42, 0.22);
}
.cr-plan.popular {
  border-color: transparent;
  background: linear-gradient(var(--cr-surface), var(--cr-surface)) padding-box, linear-gradient(135deg, #6366f1, #a78bfa 35%, #ec4899 70%, #6366f1) border-box;
  background-size: auto, 220% 220%;
  background-position: 0 0, 0% 50%;
  animation: crPlanIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both, crBorderShimmer 14s ease-in-out infinite alternate;
  border: 1.5px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 44px -10px rgba(99, 102, 241, 0.28);
}
.cr-plan.popular:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 30px 70px -12px rgba(99, 102, 241, 0.32);
}
.cr-plan.popular::before {
  content: "";
  position: absolute;
  inset: -40px -30px -30px -30px;
  background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(99, 102, 241, 0.1), transparent 70%), radial-gradient(ellipse 50% 50% at 70% 80%, rgba(236, 72, 153, 0.06), transparent 70%);
  filter: blur(20px);
  z-index: -2;
  pointer-events: none;
  animation: crAmbientBreathe 9s ease-in-out infinite alternate;
}
.cr-plan.popular .cr-plan-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.12));
  color: var(--cr-indigo);
}
.cr-plan.popular .cr-estimates {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.045), rgba(236, 72, 153, 0.035));
}
.cr-plan.popular .cr-plan-cta {
  background: var(--cr-text);
  color: #fff;
  border-color: var(--cr-text);
}
.cr-plan.popular .cr-plan-cta:hover {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border-color: transparent;
  box-shadow: 0 14px 30px -6px rgba(99, 102, 241, 0.55);
}

@keyframes crPlanIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes crBorderShimmer {
  0% {
    background-position: 0 0, 0% 50%;
  }
  100% {
    background-position: 0 0, 100% 50%;
  }
}
@keyframes crAmbientBreathe {
  0% {
    opacity: 0.7;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1.02);
  }
}
.cr-plan-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.cr-plan-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.05);
  color: var(--cr-text);
}

.cr-plan-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.cr-badge {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cr-badge.popular {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.4);
}
.cr-badge.save {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.cr-plan-credits {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.cr-plan-credits .num {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.cr-plan-credits .unit {
  font-size: 14px;
  color: var(--cr-text-muted);
  font-weight: 500;
}

.cr-estimates {
  margin: 18px 0 22px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.025);
  border-radius: 14px;
}

.cr-est-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--cr-text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cr-est-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--cr-text);
}
.cr-est-row + .cr-est-row {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.cr-est-logo {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.cr-est-logo.nano {
  background: linear-gradient(135deg, #ffd84d, #f59e0b);
  color: #4a2c00;
}
.cr-est-logo.kling {
  background: linear-gradient(135deg, #1e293b, #475569);
}
.cr-est-logo.seedance {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.cr-est-num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--cr-text);
}

.cr-est-name {
  color: var(--cr-text-dim);
  font-weight: 500;
}

.cr-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}
.cr-plan-price .amount {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cr-plan-price .cur {
  color: var(--cr-text-muted);
  font-size: 15px;
  font-weight: 500;
}
.cr-plan-price .old {
  margin-left: 4px;
  color: var(--cr-text-muted);
  font-size: 13px;
  text-decoration: line-through;
}

.cr-plan-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--cr-text);
  background: #fff;
  color: var(--cr-text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.cr-plan-cta:hover:not(:disabled) {
  background: var(--cr-text);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.35);
}
.cr-plan-cta:hover:not(:disabled) svg {
  transform: translateX(3px);
}
.cr-plan-cta:disabled {
  pointer-events: none;
  opacity: 0.85;
}
.cr-plan-cta svg {
  transition: transform 0.2s ease;
}

.cr-plan-foot {
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--cr-text-muted);
  text-align: center;
  font-family: "Geist Mono", monospace;
}

/* ─── Continue bar ─── */
.cr-continue-bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4px 32px 18px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.cr-continue-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 10px 14px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e293b, #0b1220);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 2px rgba(15, 23, 42, 0.2), 0 18px 40px -14px rgba(99, 102, 241, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.18);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
  isolation: isolate;
  overflow: hidden;
}
.cr-continue-cta::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(99, 102, 241, 0.55) 60deg, transparent 130deg, transparent 240deg, rgba(236, 72, 153, 0.45) 310deg, transparent 360deg);
  animation: crPillSpin 9s linear infinite;
  opacity: 0.65;
  z-index: -2;
  filter: blur(18px);
}
.cr-continue-cta::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e293b, #0b1220);
  z-index: -1;
}
.cr-continue-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 4px rgba(15, 23, 42, 0.25), 0 24px 50px -14px rgba(99, 102, 241, 0.75), 0 0 0 1px rgba(99, 102, 241, 0.34);
}
.cr-continue-cta:hover .cr-continue-arrow {
  transform: translateX(3px) scale(1.05);
}

.cr-continue-arrow {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.55);
  transition: transform 0.25s ease;
}

/* ─── Trust row ─── */
.cr-trust {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 32px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--cr-text-muted);
  font-size: 12.5px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.cr-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cr-trust-item svg {
  color: var(--cr-text-dim);
}

/* ─── FAQ ─── */
.cr-faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 80px;
  position: relative;
  z-index: 2;
}
.cr-faq h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px;
  letter-spacing: -0.018em;
}
.cr-faq details {
  border-bottom: 1px solid var(--cr-line);
  padding: 18px 4px;
}
.cr-faq details:last-child {
  border-bottom: none;
}
.cr-faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cr-faq summary::-webkit-details-marker {
  display: none;
}
.cr-faq summary::after {
  content: "+";
  color: var(--cr-text-muted);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.cr-faq details[open] summary::after {
  transform: rotate(45deg);
}
.cr-faq p {
  margin: 12px 0 0;
  color: var(--cr-text-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* ─── Success overlay ─── */
.cr-success-veil {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.cr-success-veil.on {
  opacity: 1;
  pointer-events: auto;
}
.cr-success-veil.on .cr-success-card {
  transform: scale(1) translateY(0);
}

.cr-success-card {
  width: min(90vw, 380px);
  background: #fff;
  border-radius: 22px;
  padding: 32px 28px 26px;
  text-align: center;
  transform: scale(0.94) translateY(8px);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  box-shadow: 0 30px 80px -10px rgba(15, 23, 42, 0.4);
}

.cr-success-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 30px -6px rgba(16, 185, 129, 0.5);
  animation: crSuccessPop 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes crSuccessPop {
  0% {
    transform: scale(0.3) rotate(-30deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.15) rotate(5deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
  }
}
.cr-success-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.cr-success-sub {
  font-size: 13.5px;
  color: var(--cr-text-dim);
  margin-bottom: 22px;
}

.cr-success-added {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
  font-variant-numeric: tabular-nums;
}

.cr-success-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--cr-text);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.cr-success-go:hover {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(99, 102, 241, 0.5);
}

/* ─── Spinner ─── */
@keyframes crSpin {
  to {
    transform: rotate(360deg);
  }
}
.cr-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: crSpin 0.7s linear infinite;
  display: inline-block;
}
.cr-spinner--lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
  margin-bottom: 18px;
  color: #6366f1;
}

/* ─── Modal (confirm / processing / error) ─── */
.cr-modal-veil {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 180;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.cr-modal-veil.on {
  opacity: 1;
  pointer-events: auto;
}
.cr-modal-veil.on .cr-modal-card {
  transform: scale(1) translateY(0);
}

.cr-modal-card {
  width: min(90vw, 400px);
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 70px -10px rgba(15, 23, 42, 0.38);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.cr-modal-card--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 26px 32px;
}

.cr-modal-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--cr-text);
}
.cr-modal-title--error {
  color: #dc2626;
}

.cr-modal-body {
  font-size: 14px;
  color: var(--cr-text-dim);
  line-height: 1.5;
  margin-bottom: 22px;
}
.cr-modal-body--muted {
  color: var(--cr-text-muted);
  font-size: 13px;
}
.cr-modal-body strong {
  color: var(--cr-text);
  font-weight: 600;
}

.cr-modal-actions {
  display: flex;
  gap: 10px;
}

.cr-modal-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 16px;
  border-radius: 11px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  transition: all 0.18s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cr-modal-btn--primary {
  background: var(--cr-navy, #0b1220);
  color: #fff;
}
.cr-modal-btn--primary:hover {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(99, 102, 241, 0.5);
}
.cr-modal-btn--ghost {
  background: rgba(15, 23, 42, 0.06);
  color: var(--cr-text-dim);
  border: 1px solid rgba(15, 23, 42, 0.1);
}
.cr-modal-btn--ghost:hover {
  background: rgba(15, 23, 42, 0.1);
  color: var(--cr-text);
}

/* ─── Billing modals: варианты, которых не было у пакетов ─── */
.cr-modal-actions--stacked {
  flex-direction: column;
}

.cr-modal-btn--outline {
  border: 1px solid var(--cr-text);
  background: #fff;
  color: var(--cr-text);
}

.cr-modal-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(15, 23, 42, 0.08);
  border-top-color: var(--cr-indigo);
  margin-bottom: 18px;
  animation: crSpin 0.9s linear infinite;
}

.cr-modal-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .cr-pricing {
    grid-template-columns: 1fr;
  }
  .cr-nav-tabs {
    display: none;
  }
  .cr-hero {
    padding-top: 32px;
  }
}
/* ─── Карточка тарифа (переиспользует .cr-plan) ─── */
.cr-plan-period {
  font-size: 12.5px;
  color: var(--cr-text-muted);
}

.cr-features {
  margin: 18px 0 22px;
  padding: 16px;
  background: rgba(15, 23, 42, 0.025);
  border-radius: 14px;
}
.cr-plan.popular .cr-features {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.045), rgba(236, 72, 153, 0.035));
}

.cr-features-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--cr-text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cr-feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--cr-text);
}
.cr-feature-row + .cr-feature-row {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
}
.cr-feature-row svg {
  flex: none;
  color: var(--cr-emerald);
}
.cr-plan.popular .cr-feature-row svg {
  color: var(--cr-indigo);
}

.cr-plan-terms {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--cr-text-muted);
  text-align: center;
}

/* Одиночная карточка: не растягиваем на всю ширину сетки */
.cr-pricing--single {
  max-width: 420px;
  margin-inline: auto;
}

.activation-veil {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.activation-card {
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.activation-card__icon {
  font-size: 40px;
  line-height: 1;
}
.activation-card__title {
  margin: 14px 0 8px;
  font-size: 22px;
}
.activation-card__text {
  margin: 0 0 20px;
  font-size: 14px;
  color: #555;
}
.activation-card__btn {
  width: 100%;
}
.activation-card__error {
  margin: 12px 0 0;
  font-size: 13px;
  color: #e54d42;
}
.activation-card__security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: #777;
}
.activation-card__logos {
  margin-top: 12px;
}
.activation-card__logos img {
  max-width: 100%;
  height: auto;
}

.activation-offer {
  max-width: 460px;
  padding: 44px 36px 32px;
}
.activation-offer__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #1c2122;
}
.activation-offer__subtitle {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #457be7;
}
.activation-offer .activation-card__btn {
  background: #457be7;
}
.activation-offer__timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.activation-offer__timer-num {
  position: relative;
  display: inline-flex;
  justify-content: center;
  box-sizing: border-box;
  width: 72px;
  height: 72px;
  padding-top: 18px;
  border: 2px dashed #457be7;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: #1c2122;
}
.activation-offer__timer-num::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: rgba(0, 0, 0, 0.7);
}
.activation-offer__timer-num.is-hours {
  border-color: transparent;
  background: #1c2122;
  color: #fff;
}
.activation-offer__timer-num.is-hours::after {
  content: "часы";
  color: #fff;
}
.activation-offer__timer-num.is-minutes::after {
  content: "мин.";
}
.activation-offer__timer-num.is-seconds::after {
  content: "сек.";
}
.activation-offer__timer-dots {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
  color: #1c2122;
}
.activation-offer__note {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.4);
}
.activation-offer__consent {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.4);
}
.activation-offer__consent a {
  color: inherit;
  text-decoration: underline;
}
@media (max-width: 480px) {
  .activation-offer {
    padding: 36px 24px 28px;
  }
  .activation-offer__title {
    font-size: 24px;
  }
  .activation-offer__subtitle {
    font-size: 17px;
  }
  .activation-offer__timer-num {
    width: 64px;
    height: 64px;
    padding-top: 13px;
    font-size: 24px;
  }
}

.reg-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: #f1f3f6;
}
.reg-success__card {
  width: 100%;
  max-width: 560px;
  padding: 56px 64px;
  text-align: center;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.06);
}
.reg-success__title {
  margin: 0 0 24px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}
.reg-success__text {
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.55;
  color: #555;
}
.reg-success__btn {
  width: 100%;
}

@media (max-width: 560px) {
  .reg-success__card {
    padding: 40px 24px;
  }
  .reg-success__title {
    font-size: 26px;
  }
}
/* ═══════════════════════════════════════════════════════════
   KEYFRAMES (prefixed to avoid global collisions)
   ═══════════════════════════════════════════════════════════ */
@keyframes ideas-sweep {
  0% {
    transform: translateX(-110%);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(110%);
    opacity: 0;
  }
}
@keyframes ideas-drift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-60px) translateX(8px);
    opacity: 0;
  }
}
@keyframes ideas-ppulse {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.4);
  }
}
/* ═══════════════════════════════════════════════════════════
   IDEAS LIST PAGE
   ═══════════════════════════════════════════════════════════ */
.ideas-page {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #fafaf7;
  --line: rgba(15, 23, 42, 0.07);
  --line-strong: rgba(15, 23, 42, 0.11);
  --text: #0f172a;
  --text-dim: #4a5568;
  --text-muted: #8a8d94;
  --accent: #e84a2e;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.18);
  height: 100vh;
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
.ideas-page button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}
.ideas-page a {
  color: inherit;
  text-decoration: none;
}
.ideas-page svg {
  display: block;
}
.ideas-page .root {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 28px 80px;
}
@media (max-width: 640px) {
  .ideas-page .root {
    padding: 12px 16px 60px;
  }
}
.ideas-page {
  /* ── Hero ── */
}
.ideas-page .hero {
  margin: 4px 0 14px;
}
.ideas-page .hero h1 {
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.024em;
  font-weight: 500;
  margin: 0;
  color: var(--text);
}
@media (max-width: 640px) {
  .ideas-page .hero h1 {
    font-size: 22px;
  }
}
.ideas-page .hero h1 .it {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
}
.ideas-page .hero p {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 4px 0 0;
  max-width: 56ch;
}
.ideas-page {
  /* ── Categories ── */
}
.ideas-page .cats {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.ideas-page .cats::-webkit-scrollbar {
  display: none;
}
.ideas-page .cat {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  font-size: 12px;
  color: var(--text-dim);
  transition: all 0.15s ease;
}
.ideas-page .cat:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
}
.ideas-page .cat.on {
  background: var(--text);
  color: #fff;
}
.ideas-page .cat .count {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  margin-left: 4px;
  opacity: 0.55;
}
.ideas-page {
  /* ── Recipe Grid ── */
}
.ideas-page .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 14px;
}
@media (max-width: 1100px) {
  .ideas-page .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 820px) {
  .ideas-page .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .ideas-page .grid {
    grid-template-columns: 1fr;
  }
}
.ideas-page .card-trigger {
  display: block;
  cursor: pointer;
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ideas-page .card-trigger:hover {
  transform: translateY(-3px);
}
.ideas-page .card-trigger .poster {
  aspect-ratio: 3/4;
  border-radius: 14px;
  box-shadow: var(--shadow-sm), 0 8px 18px -12px rgba(15, 23, 42, 0.18);
  margin-bottom: 9px;
}
.ideas-page .card-trigger .ttl {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.25;
}
.ideas-page .card-trigger .ttl-text {
  flex: 1;
  min-width: 0;
}
.ideas-page .card-trigger .ttl .mstack {
  flex: none;
}
.ideas-page .card-trigger .row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.ideas-page .card-trigger .row > * {
  white-space: nowrap;
  flex: none;
}
.ideas-page .card-trigger .row .diff {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-dim);
  font-weight: 500;
}
.ideas-page .card-trigger .row .credits {
  color: var(--text);
}
.ideas-page .card-trigger .row .remix {
  margin-left: auto;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-family: "Geist", sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.ideas-page .card-trigger:hover .row .remix {
  background: var(--accent);
}
.ideas-page {
  /* ── Poster System ── */
}
.ideas-page .poster {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
  border-radius: inherit;
}
.ideas-page .poster .bg {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
  transition: transform 2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ideas-page .poster .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
  object-fit: cover;
}
.ideas-page .poster .sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
  transform: translateX(-100%);
  opacity: 0;
}
.ideas-page .poster .motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ideas-page .poster .motes i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: ideas-drift 3.6s ease-in-out infinite;
}
.ideas-page .poster .motes i:nth-child(1) {
  left: 18%;
  top: 78%;
  animation-delay: 0s;
}
.ideas-page .poster .motes i:nth-child(2) {
  left: 38%;
  top: 88%;
  animation-delay: 0.4s;
  animation-duration: 4.2s;
  width: 3px;
  height: 3px;
}
.ideas-page .poster .motes i:nth-child(3) {
  left: 62%;
  top: 82%;
  animation-delay: 0.8s;
  animation-duration: 4.8s;
}
.ideas-page .poster .motes i:nth-child(4) {
  left: 80%;
  top: 72%;
  animation-delay: 1.2s;
  animation-duration: 3.8s;
  width: 3px;
  height: 3px;
}
.ideas-page .poster .motes i:nth-child(5) {
  left: 50%;
  top: 92%;
  animation-delay: 1.6s;
  animation-duration: 5s;
  width: 2.5px;
  height: 2.5px;
}
.ideas-page .poster .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.ideas-page .poster .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.32) 100%);
}
.ideas-page .poster .glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  font-size: 84px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  mix-blend-mode: screen;
}
.ideas-page .poster .glyph.dark {
  color: rgba(15, 23, 42, 0.55);
  mix-blend-mode: multiply;
}
.ideas-page .poster .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ideas-page .poster .pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
}
.ideas-page .poster .duration {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ideas-page .poster .trend {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 9.5px;
  font-weight: 600;
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ideas-page .poster .trend .flame {
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
}
.ideas-page .poster .save {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.18);
}
.ideas-page .poster .save.on {
  background: var(--text);
  color: #fff;
  opacity: 1;
  transform: translateY(0);
}
.ideas-page .poster .vbadge {
  position: absolute;
  display: inline-flex;
  align-items: center;
}
.ideas-page {
  /* Poster hover interactions */
}
.ideas-page .card-trigger:hover .poster .bg {
  transform: scale(1.08);
}
.ideas-page .card-trigger:hover .poster .scene {
  transform: scale(1.06) translateY(-2%);
}
.ideas-page .card-trigger:hover .poster .sweep {
  animation: ideas-sweep 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}
.ideas-page .card-trigger:hover .poster .motes {
  opacity: 0.8;
}
.ideas-page .card-trigger:hover .poster .save {
  opacity: 1;
  transform: translateY(0);
}
.ideas-page .card-trigger:hover .poster .play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.ideas-page .card-trigger:hover .poster .pulse {
  animation: ideas-ppulse 1.8s ease-out infinite;
  transform: translate(-50%, -50%);
}
.ideas-page {
  /* Video scene controls */
}
.ideas-page video.scene {
  pointer-events: none;
}
.ideas-page video.scene::-webkit-media-controls,
.ideas-page video.scene::-webkit-media-controls-enclosure,
.ideas-page video.scene::-webkit-media-controls-panel,
.ideas-page video.scene::-webkit-media-controls-play-button,
.ideas-page video.scene::-webkit-media-controls-timeline,
.ideas-page video.scene::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.ideas-page {
  /* Slideshow scene */
}
.ideas-page .scene-slideshow {
  position: absolute;
  inset: 0;
  background: #efeeea;
  overflow: hidden;
}
.ideas-page .scene-slideshow .slide-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.ideas-page .scene-slideshow .slide-frame.on {
  opacity: 1;
}
.ideas-page .card-trigger:hover .scene-slideshow {
  transform: scale(1.06) translateY(-2%);
}
.ideas-page {
  /* ── Gradient Palettes ── */
}
.ideas-page .bg-pixar {
  background: radial-gradient(120% 80% at 30% 20%, #ffd0a5 0%, #ff7e5f 45%, #a0173e 100%);
}
.ideas-page .bg-dubai {
  background: linear-gradient(160deg, #0f172a 0%, #1f2a44 35%, #b07f2f 75%, #f4d58d 100%);
}
.ideas-page .bg-anime {
  background: radial-gradient(120% 90% at 70% 20%, #fb923c 0%, #ec4899 40%, #8b5cf6 100%);
}
.ideas-page .bg-cat {
  background: linear-gradient(135deg, #a7f3d0 0%, #fecaca 50%, #fbcfe8 100%);
}
.ideas-page .bg-fashion {
  background: linear-gradient(180deg, #e5e7eb 0%, #9ca3af 40%, #1f2937 100%);
}
.ideas-page .bg-product {
  background: radial-gradient(120% 80% at 20% 80%, #10d9c4 0%, #1e40af 50%, #0f172a 100%);
}
.ideas-page .bg-glam {
  background: linear-gradient(135deg, #f5d0fe 0%, #e879f9 45%, #a21caf 100%);
}
.ideas-page .bg-dusk {
  background: linear-gradient(160deg, #fde68a 0%, #f97316 40%, #7c3aed 100%);
}
.ideas-page .bg-city {
  background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 50%, #38bdf8 100%);
}
.ideas-page .bg-mint {
  background: linear-gradient(135deg, #d1fae5 0%, #34d399 50%, #059669 100%);
}
.ideas-page .bg-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 50%, #92400e 100%);
}
.ideas-page .bg-dark {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #0f172a 100%);
}
.ideas-page .bg-clay {
  background: linear-gradient(135deg, #fef2f2 0%, #fca5a5 45%, #dc2626 100%);
}
.ideas-page .bg-lux {
  background: linear-gradient(160deg, #1c1917 0%, #44403c 40%, #d4af37 100%);
}
.ideas-page .bg-meme {
  background: linear-gradient(135deg, #fef9c3 0%, #fde047 45%, #ca8a04 100%);
}
.ideas-page {
  /* ── Model Dots ── */
}
.ideas-page .mdot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  border: 1.5px solid var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}
.ideas-page .mdot.nanobanana {
  background: linear-gradient(135deg, #ffd84d, #f59e0b);
  color: #4a2c00;
}
.ideas-page .mdot.kling {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.ideas-page .mdot.seedance {
  background: linear-gradient(135deg, #ff5e62, #ff9966);
}
.ideas-page .mstack {
  display: inline-flex;
}
.ideas-page .mstack .mdot + .mdot {
  margin-left: -7px;
}

/* ═══════════════════════════════════════════════════════════
   IDEAS DETAIL / RECIPE PAGE
   ═══════════════════════════════════════════════════════════ */
.ideas-recipe-page {
  --bg: #fcfbf8;
  --surface: #ffffff;
  --surface-2: #f5f3ee;
  --line: rgba(15, 23, 42, 0.06);
  --line-strong: rgba(15, 23, 42, 0.12);
  --text: #0f172a;
  --text-dim: #475569;
  --text-muted: #94a3b8;
  --accent: #e84a2e;
  --accent-soft: rgba(232, 74, 46, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 60px -16px rgba(15, 23, 42, 0.14);
  height: 100vh;
  overflow-y: auto;
  /* ── Header ── */
}
.ideas-recipe-page .rx-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(252, 251, 248, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 11px 28px;
}
.ideas-recipe-page .rx-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px 7px 9px;
  border-radius: 9px;
  color: var(--text-dim);
  font-size: 13px;
  white-space: nowrap;
  flex: none;
}
.ideas-recipe-page .rx-back:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
}
.ideas-recipe-page .rx-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}
.ideas-recipe-page .rx-title > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.ideas-recipe-page .rx-title .meta {
  color: var(--text-muted);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.ideas-recipe-page .rx-tabs {
  display: flex;
  align-items: center;
}
.ideas-recipe-page .rx-jump {
  margin-left: auto;
  display: flex;
  gap: 4px;
  padding: 3px;
  background: rgba(15, 23, 42, 0.045);
  border-radius: 9px;
  flex: none;
  white-space: nowrap;
}
.ideas-recipe-page .rx-jump button {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: "Geist Mono", monospace;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.ideas-recipe-page .rx-jump button:hover {
  color: var(--text);
}
.ideas-recipe-page .rx-jump button.on {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.ideas-recipe-page .rx-jump button.done {
  color: var(--text);
}
.ideas-recipe-page .rx-jump button.done::before {
  content: "✓";
  margin-right: 4px;
  color: #10b981;
  font-family: "Geist", sans-serif;
}
.ideas-recipe-page {
  /* ── Main content ── */
}
.ideas-recipe-page .rx-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 28px 80px;
}
.ideas-recipe-page {
  /* ── Hero ── */
}
.ideas-recipe-page .rx-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  margin-bottom: 44px;
  align-items: start;
}
@media (max-width: 1080px) {
  .ideas-recipe-page .rx-hero {
    grid-template-columns: 1fr;
  }
}
.ideas-recipe-page .rx-hero .preview {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
}
.ideas-recipe-page .rx-hero .preview .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ideas-recipe-page .rx-hero .preview .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.ideas-recipe-page .rx-hero .preview:hover .play {
  transform: translate(-50%, -50%) scale(1.06);
}
.ideas-recipe-page .rx-hero .preview .dur {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ideas-recipe-page .rx-hero .info {
  padding: 6px 0;
}
.ideas-recipe-page .rx-hero .info .tag {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}
.ideas-recipe-page .rx-hero .info .tag .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 74, 46, 0.18);
}
.ideas-recipe-page .rx-hero .info h1 {
  font-size: 36px;
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin: 0 0 10px;
}
.ideas-recipe-page .rx-hero .info h1 .it {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
}
.ideas-recipe-page .rx-hero .info .blurb {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 46ch;
}
.ideas-recipe-page .rx-hero .info .specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 22px;
}
@media (max-width: 640px) {
  .ideas-recipe-page .rx-hero .info .specs {
    grid-template-columns: repeat(2, 1fr);
  }
}
.ideas-recipe-page .rx-hero .info .specs .spec {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.ideas-recipe-page .rx-hero .info .specs .spec .k {
  font-family: "Geist Mono", monospace;
  font-size: 9.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ideas-recipe-page .rx-hero .info .specs .spec .v {
  font-size: 13px;
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: -0.01em;
}
.ideas-recipe-page .rx-hero .info .start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 12px 16px;
  border-radius: 11px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.15s ease;
}
.ideas-recipe-page .rx-hero .info .start:hover {
  transform: translateY(-1px);
}
.ideas-recipe-page {
  /* ── Section Heading ── */
}
.ideas-recipe-page .rx-section-h {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 20px;
}
.ideas-recipe-page .rx-section-h h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin: 0;
}
.ideas-recipe-page .rx-section-h .meta {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ideas-recipe-page {
  /* ── Steps ── */
}
.ideas-recipe-page .rx-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ideas-recipe-page .tstep {
  position: relative;
  padding: 24px 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  transition: border-color 0.2s ease;
  scroll-margin-top: 80px;
}
.ideas-recipe-page .tstep:hover {
  border-color: var(--line-strong);
}
.ideas-recipe-page .tstep.done {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.025), var(--surface));
}
.ideas-recipe-page .tstep.done .num {
  color: #10b981;
}
.ideas-recipe-page .tstep.done .mark-done {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #0e8f60;
}
.ideas-recipe-page .tstep {
  /* Numbered marker */
}
.ideas-recipe-page .tstep .num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2px;
}
.ideas-recipe-page .tstep .num {
  font-family: "Instrument Serif", serif;
  font-size: 38px;
  font-style: italic;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.ideas-recipe-page .tstep .num-line {
  flex: 1;
  width: 1.5px;
  background: var(--line);
  margin-top: 12px;
  min-height: 14px;
}
.ideas-recipe-page .tstep:last-child .num-line {
  display: none;
}
.ideas-recipe-page .tstep .body {
  min-width: 0;
}
.ideas-recipe-page .tstep h4 {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ideas-recipe-page .tstep h4 .done-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #0e8f60;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ideas-recipe-page .tstep .desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 64ch;
}
.ideas-recipe-page .tstep {
  /* Model row */
}
.ideas-recipe-page .tstep .model-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 14px 10px 10px;
  background: var(--surface-2);
  border-radius: 10px;
  flex-wrap: wrap;
}
.ideas-recipe-page .tstep .model-row .mdot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
  flex: none;
}
.ideas-recipe-page .tstep .model-row .mname {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.ideas-recipe-page .tstep .model-row .mmeta {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ideas-recipe-page .tstep .model-row .sep {
  width: 1px;
  height: 18px;
  background: var(--line-strong);
  margin: 0 4px;
}
.ideas-recipe-page .tstep .model-row .quick-set {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ideas-recipe-page .tstep .model-row .quick-set b {
  color: var(--text);
  font-weight: 600;
  font-family: "Geist", sans-serif;
  letter-spacing: -0.01em;
  margin-left: 3px;
}
.ideas-recipe-page .tstep {
  /* Instructions */
}
.ideas-recipe-page .tstep .instructions {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: tut;
}
.ideas-recipe-page .tstep .instructions li {
  counter-increment: tut;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}
.ideas-recipe-page .tstep .instructions li::before {
  content: counter(tut);
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}
.ideas-recipe-page .tstep .instructions li b {
  color: var(--text);
  font-weight: 500;
}
.ideas-recipe-page .tstep .instructions li kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--text);
  font-weight: 500;
  margin: 0 1px;
}
.ideas-recipe-page .tstep {
  /* Prompt block */
}
.ideas-recipe-page .tstep .prompt-block {
  position: relative;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}
.ideas-recipe-page .tstep .prompt-block .pb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 9px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.ideas-recipe-page .tstep .prompt-block .pb-label {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ideas-recipe-page .tstep .prompt-block .pb-label .ico {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.ideas-recipe-page .tstep .prompt-block .copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.ideas-recipe-page .tstep .prompt-block .copy:hover {
  background: #1a2233;
}
.ideas-recipe-page .tstep .prompt-block.copied .copy {
  background: #10b981;
  color: #fff;
}
.ideas-recipe-page .tstep .prompt-block.copy-fail .copy {
  background: #b91c1c;
  color: #fff;
}
.ideas-recipe-page .tstep .prompt-block.copied .copy .lbl::after {
  content: "Скопировано";
}
.ideas-recipe-page .tstep .prompt-block.copy-fail .copy .lbl::after {
  content: "Выдели и Cmd+C";
}
.ideas-recipe-page .tstep .prompt-block:not(.copied):not(.copy-fail) .copy .lbl::after {
  content: "Скопировать prompt";
}
.ideas-recipe-page .tstep .prompt-block .pb-body {
  padding: 16px 18px;
  font-family: "Geist Mono", monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
}
.ideas-recipe-page .tstep {
  /* Actions row */
}
.ideas-recipe-page .tstep .actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.ideas-recipe-page .tstep .open-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px 11px 12px;
  border-radius: 11px;
  background: var(--text);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.15s ease;
}
.ideas-recipe-page .tstep .open-btn:hover {
  transform: translateY(-1px);
}
.ideas-recipe-page .tstep .open-btn .mdot {
  width: 22px;
  height: 22px;
  border-color: rgba(255, 255, 255, 0.18);
}
.ideas-recipe-page .tstep .open-btn.dl {
  background: linear-gradient(135deg, #ff9966 0%, #e84a6e 60%, #a855f7 100%);
  color: #fff;
  text-decoration: none;
}
.ideas-recipe-page .tstep .open-btn.dl:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.ideas-recipe-page .tstep .next-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.ideas-recipe-page .tstep .next-btn:hover {
  border-color: var(--text);
}
.ideas-recipe-page .tstep .mark-done {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.15s ease;
}
.ideas-recipe-page .tstep .mark-done:hover {
  color: var(--text);
  border-color: var(--text-muted);
}
.ideas-recipe-page .tstep {
  /* Tip */
}
.ideas-recipe-page .tstep .tip {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(232, 74, 46, 0.06);
  border: 1px solid rgba(232, 74, 46, 0.18);
  font-size: 12.5px;
  color: var(--text-dim);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.5;
}
.ideas-recipe-page .tstep .tip .ico {
  flex: none;
  color: var(--accent);
  margin-top: 1px;
}
.ideas-recipe-page .tstep .tip b {
  color: var(--text);
  font-weight: 500;
}
.ideas-recipe-page .tstep {
  /* Example photos */
}
.ideas-recipe-page .tstep .examples {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.ideas-recipe-page .tstep .examples .ex-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ideas-recipe-page .tstep .examples .ex-head .lbl {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.ideas-recipe-page .tstep .examples .ex-head .hint {
  font-family: "Geist", sans-serif;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: -0.005em;
  text-transform: none;
}
.ideas-recipe-page .tstep .examples .ex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ideas-recipe-page .tstep .examples .ex-thumb {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ideas-recipe-page .tstep .examples .ex-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(15, 23, 42, 0.22);
}
.ideas-recipe-page .tstep .examples .ex-thumb:hover .dl-ico {
  opacity: 1;
  transform: translateY(0);
}
.ideas-recipe-page .tstep .examples .ex-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.ideas-recipe-page .tstep .examples .ex-thumb .dl-ico {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(2px);
  transition: all 0.2s ease;
}
@media (max-width: 640px) {
  .ideas-recipe-page .tstep {
    grid-template-columns: 1fr;
  }
  .ideas-recipe-page .tstep .num-col {
    display: none;
  }
}
.ideas-recipe-page .tstep {
  /* Result step */
}
.ideas-recipe-page .tstep.result {
  background: linear-gradient(135deg, rgba(255, 158, 77, 0.06) 0%, rgba(232, 74, 46, 0.04) 100%);
  border-color: rgba(232, 74, 46, 0.18);
  grid-template-columns: 56px 1fr 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 1080px) {
  .ideas-recipe-page .tstep.result {
    grid-template-columns: 56px 1fr;
  }
  .ideas-recipe-page .tstep.result .result-preview {
    grid-column: 2/3;
    max-width: 240px;
  }
  .ideas-recipe-page .tstep.result .body {
    grid-column: 2/3;
  }
}
@media (max-width: 640px) {
  .ideas-recipe-page .tstep.result {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .ideas-recipe-page .tstep.result .result-preview {
    grid-column: auto;
    max-width: 100%;
  }
  .ideas-recipe-page .tstep.result .body {
    grid-column: auto;
  }
}
.ideas-recipe-page .tstep.result .num {
  color: var(--accent);
}
.ideas-recipe-page .tstep.result .result-preview {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  box-shadow: var(--shadow-md);
  align-self: stretch;
}
.ideas-recipe-page .tstep.result .result-preview .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ideas-recipe-page .tstep.result .result-preview .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.ideas-recipe-page .tstep.result .result-preview:hover .play {
  transform: translate(-50%, -50%) scale(1.06);
}
.ideas-recipe-page .tstep.result .result-preview .dur {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.ideas-recipe-page .tstep.result h4 {
  font-size: 22px;
}
.ideas-recipe-page .tstep.result .desc {
  margin-bottom: 18px;
}
.ideas-recipe-page .tstep.result .result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ideas-recipe-page .tstep.result .ra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s ease;
}
.ideas-recipe-page .tstep.result .ra:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}
.ideas-recipe-page .tstep.result .ra.primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.ideas-recipe-page .tstep.result .ra.primary:hover {
  background: #1a2233;
}
.ideas-recipe-page .tstep.result .ra.social {
  grid-column: 1/-1;
  background: linear-gradient(135deg, #ff0050, #6c12c3);
  color: #fff;
  border-color: transparent;
}
.ideas-recipe-page .tstep.result {
  /* download row */
}
.ideas-recipe-page .tstep.result .download-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ideas-recipe-page {
  /* ── Gradient Palettes (mirrored for detail page) ── */
}
.ideas-recipe-page .bg-pixar {
  background: radial-gradient(120% 80% at 30% 20%, #ffd0a5 0%, #ff7e5f 45%, #a0173e 100%);
}
.ideas-recipe-page .bg-dubai {
  background: linear-gradient(160deg, #0f172a 0%, #1f2a44 35%, #b07f2f 75%, #f4d58d 100%);
}
.ideas-recipe-page .bg-anime {
  background: radial-gradient(120% 90% at 70% 20%, #fb923c 0%, #ec4899 40%, #8b5cf6 100%);
}
.ideas-recipe-page .bg-cat {
  background: linear-gradient(135deg, #a7f3d0 0%, #fecaca 50%, #fbcfe8 100%);
}
.ideas-recipe-page .bg-fashion {
  background: linear-gradient(180deg, #e5e7eb 0%, #9ca3af 40%, #1f2937 100%);
}
.ideas-recipe-page .bg-product {
  background: radial-gradient(120% 80% at 20% 80%, #10d9c4 0%, #1e40af 50%, #0f172a 100%);
}
.ideas-recipe-page .bg-glam {
  background: linear-gradient(135deg, #f5d0fe 0%, #e879f9 45%, #a21caf 100%);
}
.ideas-recipe-page .bg-dusk {
  background: linear-gradient(160deg, #fde68a 0%, #f97316 40%, #7c3aed 100%);
}
.ideas-recipe-page .bg-city {
  background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 50%, #38bdf8 100%);
}
.ideas-recipe-page .bg-mint {
  background: linear-gradient(135deg, #d1fae5 0%, #34d399 50%, #059669 100%);
}
.ideas-recipe-page .bg-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 50%, #92400e 100%);
}
.ideas-recipe-page .bg-dark {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #0f172a 100%);
}
.ideas-recipe-page .bg-clay {
  background: linear-gradient(135deg, #fef2f2 0%, #fca5a5 45%, #dc2626 100%);
}
.ideas-recipe-page .bg-lux {
  background: linear-gradient(160deg, #1c1917 0%, #44403c 40%, #d4af37 100%);
}
.ideas-recipe-page .bg-meme {
  background: linear-gradient(135deg, #fef9c3 0%, #fde047 45%, #ca8a04 100%);
}
.ideas-recipe-page {
  /* ── Model Dots ── */
}
.ideas-recipe-page .mdot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  border: 1.5px solid var(--surface);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
}
.ideas-recipe-page .mdot.nanobanana {
  background: linear-gradient(135deg, #ffd84d, #f59e0b);
  color: #4a2c00;
}
.ideas-recipe-page .mdot.kling {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}
.ideas-recipe-page .mdot.seedance {
  background: linear-gradient(135deg, #ff5e62, #ff9966);
}
.ideas-recipe-page .mstack {
  display: inline-flex;
}
.ideas-recipe-page .mstack .mdot + .mdot {
  margin-left: -7px;
}
.ideas-recipe-page {
  /* ── Poster System (for cards within detail page) ── */
}
.ideas-recipe-page .poster {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  isolation: isolate;
  border-radius: inherit;
}
.ideas-recipe-page .poster .bg {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
  transition: transform 2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ideas-recipe-page .poster .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
  object-fit: cover;
}
.ideas-recipe-page .poster .sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%);
  transform: translateX(-100%);
  opacity: 0;
}
.ideas-recipe-page .poster .motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ideas-recipe-page .poster .motes i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: ideas-drift 3.6s ease-in-out infinite;
}
.ideas-recipe-page .poster .motes i:nth-child(1) {
  left: 18%;
  top: 78%;
  animation-delay: 0s;
}
.ideas-recipe-page .poster .motes i:nth-child(2) {
  left: 38%;
  top: 88%;
  animation-delay: 0.4s;
  animation-duration: 4.2s;
  width: 3px;
  height: 3px;
}
.ideas-recipe-page .poster .motes i:nth-child(3) {
  left: 62%;
  top: 82%;
  animation-delay: 0.8s;
  animation-duration: 4.8s;
}
.ideas-recipe-page .poster .motes i:nth-child(4) {
  left: 80%;
  top: 72%;
  animation-delay: 1.2s;
  animation-duration: 3.8s;
  width: 3px;
  height: 3px;
}
.ideas-recipe-page .poster .motes i:nth-child(5) {
  left: 50%;
  top: 92%;
  animation-delay: 1.6s;
  animation-duration: 5s;
  width: 2.5px;
  height: 2.5px;
}
.ideas-recipe-page .poster .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}
.ideas-recipe-page .poster .vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.32) 100%);
}
.ideas-recipe-page .poster .glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  font-size: 84px;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  mix-blend-mode: screen;
}
.ideas-recipe-page .poster .glyph.dark {
  color: rgba(15, 23, 42, 0.55);
  mix-blend-mode: multiply;
}
.ideas-recipe-page .poster .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.88);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.4);
  transition: all 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ideas-recipe-page .poster .pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
}
.ideas-recipe-page .poster .duration {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ideas-recipe-page .poster .trend {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 9.5px;
  font-weight: 600;
  padding: 4px 8px 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ideas-recipe-page .poster .trend .flame {
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
}
.ideas-recipe-page .poster .save {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.18);
}
.ideas-recipe-page .poster .save.on {
  background: var(--text);
  color: #fff;
  opacity: 1;
  transform: translateY(0);
}
.ideas-recipe-page .card-trigger:hover .poster .bg {
  transform: scale(1.08);
}
.ideas-recipe-page .card-trigger:hover .poster .scene {
  transform: scale(1.06) translateY(-2%);
}
.ideas-recipe-page .card-trigger:hover .poster .sweep {
  animation: ideas-sweep 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards;
}
.ideas-recipe-page .card-trigger:hover .poster .motes {
  opacity: 0.8;
}
.ideas-recipe-page .card-trigger:hover .poster .save {
  opacity: 1;
  transform: translateY(0);
}
.ideas-recipe-page .card-trigger:hover .poster .play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.ideas-recipe-page .card-trigger:hover .poster .pulse {
  animation: ideas-ppulse 1.8s ease-out infinite;
  transform: translate(-50%, -50%);
}
.ideas-recipe-page {
  /* ── Hero preview and result preview — scene WITHOUT .poster wrapper ── */
}
.ideas-recipe-page .rx-hero .preview,
.ideas-recipe-page .tstep.result .result-preview {
  position: relative;
  overflow: hidden;
}
.ideas-recipe-page .rx-hero .preview .bg,
.ideas-recipe-page .tstep.result .result-preview .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ideas-recipe-page .rx-hero .preview .scene,
.ideas-recipe-page .tstep.result .result-preview .scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ideas-recipe-page .rx-hero .preview .scene svg,
.ideas-recipe-page .tstep.result .result-preview .scene svg {
  width: 100%;
  height: 100%;
}
.ideas-recipe-page .rx-hero .preview .scene video,
.ideas-recipe-page .tstep.result .result-preview .scene video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: none;
  animation: fade 0.3s ease-in-out;
}
.nav-overlay.active {
  display: block;
}

.text-accent {
  background: linear-gradient(90deg, #764bf3 0%, #b96770 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: rgba(0, 0, 0, 0);
}

.text-accent {
  color: #e841bb;
}

.header {
  padding: 12px 0;
  position: relative;
}
.header--account {
  display: none;
  background: var(--white-color);
}
@media (max-width: 992px) {
  .header--account {
    display: block;
  }
}
.header--account .logo {
  display: none;
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.header__btns {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__btn {
  width: inherit !important;
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 14px;
}
.header__btn--login {
  color: var(--text-color);
}
.header .btn--outline {
  color: var(--text-color);
}
.header .btn--outline:hover {
  color: var(--white-color);
}
.header__burger {
  flex-shrink: 0;
  display: none;
  z-index: 100;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--title-color);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.logo span {
  color: var(--main-color);
}

a.logo {
  cursor: pointer;
  text-decoration: none;
}

.nav {
  z-index: 0;
}

.menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.menu__link {
  color: var(--title-color);
  font-size: 16px;
  text-decoration: none;
  position: relative;
}
.menu__link::after {
  content: "";
  width: 0;
  height: 1px;
  background: var(--main-color);
  position: absolute;
  bottom: -6px;
  left: 0;
  transition: width 0.3s ease-in-out;
}
.menu__link:hover::after {
  width: 100%;
}
.menu__link.active {
  cursor: default;
}
.menu__link.active::after {
  width: 100%;
}

@media (max-width: 1024px) {
  .header__right {
    gap: 24px;
  }
  .header__login--mob {
    display: flex;
    width: 100%;
  }
  .header__burger {
    display: inline-block;
    z-index: 20;
  }
  .header__nav {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 280px;
    height: 100dvh;
    padding: 24px 0;
    background: #fff;
    transition: left 0.3s ease-in-out;
    z-index: 20;
  }
  .header__nav .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .header__nav .menu li {
    width: 100%;
    display: flex;
    align-items: center;
  }
  .header__nav .menu__link {
    display: flex;
    width: 100%;
    font-size: 17px;
    font-weight: 400;
    border-right: 3px solid transparent;
    padding: 16px 24px;
    transition: all 0.3s ease-in-out;
  }
  .header__nav .menu__link:hover, .header__nav .menu__link.active {
    color: #fff;
    background: var(--main-color);
  }
  .header__nav .menu__link::after {
    display: none;
  }
  .header__nav.active {
    left: 0;
  }
  .header__nav-login {
    display: block;
    padding: 0 24px;
  }
}
@media (max-width: 480px) {
  .header {
    padding: 16px 0;
    z-index: 400;
  }
  .header__right {
    gap: 16px;
  }
  .logo {
    font-size: 20px;
  }
  .logo__icon {
    width: 48px;
    height: 48px;
  }
  .header__login {
    display: none;
  }
  .header__login--mob {
    display: flex;
  }
}
@media (max-width: 393px) {
  .header__nav {
    max-width: 100%;
  }
  .nav-overlay {
    display: none;
  }
  .header__nav-login {
    position: absolute;
    bottom: 32px;
    left: 0;
  }
  .header__burger.active .btn-burger__line::before,
  .header__burger.active .btn-burger__line::after {
    background: var(--main-color);
  }
}
.header__gear-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line, #e2e8f0);
  background: transparent;
  color: var(--text-muted, #94a3b8);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.header__gear-btn:hover, .header__gear-btn.active {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text, #0f172a);
}

.ws-tab-pill {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}

.ws-tab-pill__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line, #e2e8f0);
  background: var(--surface, #fff);
  color: var(--text, #0f172a);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ws-tab-pill__btn .spark {
  display: inline-flex;
  align-items: center;
  width: 13px;
  height: 13px;
  flex: none;
}
.ws-tab-pill__btn:hover {
  border-color: rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.03);
}
.ws-tab-pill__btn.open {
  border-color: rgba(15, 23, 42, 0.2);
  background: rgba(15, 23, 42, 0.04);
}
.ws-tab-pill__btn.open .ws-tab-pill__chevron {
  transform: rotate(180deg);
}

.ws-tab-pill__chevron {
  flex: none;
  color: var(--text-muted, #94a3b8);
  transition: transform 0.18s ease;
  margin-left: 2px;
}

.ws-tab-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 12px 28px -8px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  z-index: 200;
  animation: wsDropIn 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ws-tab-dropdown .ws-tabs {
  flex-direction: column;
  gap: 0;
  padding: 4px;
  background: transparent;
  border-radius: 0;
}
.ws-tab-dropdown .ws-tabs .tab {
  width: 100%;
  border-radius: 9px;
  justify-content: flex-start;
}
.ws-tab-dropdown .ws-tabs .tab:not(:last-child) {
  border-bottom: none;
}
.ws-tab-dropdown .ws-tabs .tab.active {
  background: rgba(15, 23, 42, 0.06);
  box-shadow: none;
}

@keyframes wsDropIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
.header-support {
  position: relative;
}
.header-support__btn {
  -webkit-appearance: button;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  background-color: none;
  font-size: inherit;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  background-size: 20px 20px;
  transition: all 0.3s ease-in-out;
}
.header-support__btn svg {
  color: var(--main-color);
  transition: color 0.3s ease-in-out;
}
.header-support__btn:hover, .header-support__btn.active {
  color: #fff;
  background: var(--main-color);
}
.header-support__btn:hover svg, .header-support__btn.active svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  color: var(--white-color);
  flex-shrink: 0;
}
.header-support__dropdown {
  min-width: 220px;
  padding-top: 4px;
  position: absolute;
  top: 100%;
  right: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s ease-in-out;
  z-index: 10;
}
.header-support__dropdown.active {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}
.header-support__dropdown-options {
  width: 100%;
  list-style: none;
  display: flex;
  flex-direction: column;
  background-color: var(--white-color);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.header-support__dropdown-option {
  cursor: pointer;
  text-decoration: none !important;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-color);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 16px 16px;
  transition: all 0.3s ease-in-out;
}
.header-support__dropdown-option:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.header-support__dropdown-option:hover {
  color: var(--main-color);
}
.header-support__dropdown-option img {
  flex-shrink: 0;
  display: inline-block;
  width: 18px;
  height: 18px;
}

@media (max-width: 599px) {
  .header__btn--rega {
    display: none;
  }
  .header__btn--login {
    padding: 0 20px;
  }
  .header-support__btn span {
    display: none;
  }
  .header-support__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0 !important;
    width: 48px !important;
    height: 48px !important;
  }
  .header-support__btn svg {
    color: var(--main-color);
  }
  .header-support__btn:hover svg, .header-support__btn.active svg {
    color: #fff;
  }
}
@media (max-width: 359px) {
  .header-support__dropdown {
    min-width: 200px;
  }
  .header-support__dropdown-option {
    font-size: 14px;
  }
}
.support-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
@media (max-width: 992px) {
  .support-topbar {
    padding: 11px 16px;
    gap: 10px;
  }
}

.support-top-subject {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-back {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.support-back:hover {
  color: var(--text);
}

.support-body {
  align-items: stretch;
  padding: 24px 32px 40px;
  gap: 16px;
}
@media (max-width: 992px) {
  .support-body {
    padding: 16px;
  }
}

.support-empty {
  color: var(--text-dim);
  text-align: center;
  padding: 32px 0;
}

.support-error {
  color: var(--danger-color, #b1462b);
  font-size: 13px;
  padding: 4px 0;
}

.support-new {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl, 16px);
  background: var(--surface-2, #f8fafc);
}
.support-new__subject {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong, rgba(15, 23, 42, 0.14));
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.support-new__subject:focus {
  outline: none;
  border-color: rgba(15, 23, 42, 0.28);
}

.support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.support-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.support-list__item:hover {
  background: rgba(15, 23, 42, 0.03);
  border-color: var(--line-strong, rgba(15, 23, 42, 0.14));
}
.support-list__subject {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.support-list__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-list__meta {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.support-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.support-status--waiting {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.support-status--answered {
  background: rgba(42, 177, 153, 0.14);
  color: #1f8a78;
}
.support-status--closed {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
}

.msg-bubble-support {
  background: #fff;
  border: 1px solid var(--line-strong, rgba(15, 23, 42, 0.14));
  border-radius: 18px 18px 18px 4px;
  padding: 10px 16px;
  max-width: 72%;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}
.msg-bubble-support p {
  margin: 0 0 8px;
}
.msg-bubble-support p:last-child {
  margin: 0;
}
.msg-bubble-support ul,
.msg-bubble-support ol {
  padding-left: 20px;
  margin: 4px 0;
}
.msg-bubble-support li {
  margin: 2px 0;
}
.msg-bubble-support code {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
}
.msg-bubble-support--pending {
  color: var(--text-dim);
  font-style: italic;
  border-style: dashed;
  box-shadow: none;
  background: var(--surface-2, #f8fafc);
}

.support-badge,
.navbar__support-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.support-msg-att {
  display: flex;
  margin: 2px 0 8px;
}
.support-msg-att--ai {
  justify-content: flex-start;
  padding-left: 40px;
}
.support-msg-att--user {
  justify-content: flex-end;
}

.support-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 72%;
}
.support-attachments__image img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 10px;
  display: block;
  border: 1px solid var(--line);
}
.support-attachments__file {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  word-break: break-all;
}
.support-attachments__file:hover {
  text-decoration: underline;
}

.support-attach-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px 0;
}

.support-attach-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.05);
  font-size: 12px;
  color: var(--text-dim);
}
.support-attach-chip__rm {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1;
}
.support-attach-chip__rm:hover {
  color: var(--text);
}

.navbar__support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
}
.navbar__support:hover {
  background: rgba(15, 23, 42, 0.05);
}
.navbar__support.active {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  font-weight: 600;
}
.navbar__support-label {
  font-weight: 500;
}

.footer {
  background: #fff;
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.4;
}
.footer a {
  color: inherit;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
  color: var(--main-color);
}
.footer__top {
  padding: 32px 0;
}
.footer__top-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0px;
  font-size: 15px;
  line-height: 1.3;
}
.footer__list li {
  margin-bottom: 8px;
}
.footer__title {
  color: var(--title-color);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
@media (max-width: 480px) {
  .footer__title {
    font-size: 16px;
  }
}
.footer__bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  padding: 16px 0;
  color: rgba(0, 0, 0, 0.6);
}
.footer__bottom-container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.footer__payments img {
  flex-shrink: 0;
}
.footer__unsubscribe {
  cursor: pointer;
}
.footer__unsubscribe:hover {
  color: var(--main-color);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .footer__top-container {
    gap: 24px;
  }
}
@media (max-width: 992px) {
  .footer__top-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer__list {
    width: 100%;
  }
}
@media (max-width: 800px) {
  .footer__bottom-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
}
@media (max-width: 599px) {
  .footer__top {
    padding: 24px 0;
  }
  .footer__top-container {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .footer__bottom-container {
    text-align: center;
    gap: 12px;
  }
}
@media (max-width: 393px) {
  .footer__list {
    font-size: 13px;
  }
}
.hero {
  padding-top: 32px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.hero::after {
  display: block;
  content: "";
  width: 1600px;
  height: 570px;
  background: url("img/linies-bg.svg") no-repeat center;
  background-size: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.hero__content {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__title {
  margin-bottom: 14px;
}
.hero__descr {
  color: #373739;
  font-size: 16px;
}
.hero__descr-bottom {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 48px;
  text-align: center;
}
.hero .btn-wrapper {
  margin-top: 32px;
}
.hero__features {
  width: 100%;
  max-width: 1008px;
  margin: 0 auto;
  margin-top: 72px;
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.hero__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  box-shadow: 0 0 56px 0 rgba(46, 66, 64, 0.08);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.2s ease-in-out;
}
.hero__item:hover {
  transform: scale(1.05);
}
@media (max-width: 1024px) {
  .hero__item:hover {
    transform: none;
  }
}
.hero__item-img, .hero__item-video {
  flex-shrink: 0;
  width: 100%;
  display: inline-block;
  border-radius: 24px;
  margin-bottom: 16px;
  aspect-ratio: 3/2;
}
.hero__item-img {
  overflow: hidden;
}
.hero__item-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__item-video {
  border-radius: 16px;
  position: relative;
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
.hero__item-video:hover .play-btn {
  opacity: 0;
}
.hero__item-video video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.hero__item-video .play-btn {
  display: inline-block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.4) url("img/play.svg") no-repeat center;
  background-size: 48px 48px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.25s ease-in-out;
  opacity: 1;
}
.hero__item h3 {
  color: var(--title-color);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero__item h3 span {
  color: var(--main-color);
}
.hero__item p {
  color: #7e7e7e;
  font-size: 15px;
  font-weight: 400;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 56px 0 rgba(46, 66, 64, 0.08);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.2s ease-in-out;
}
.features__item:hover {
  background: #fff;
  transform: scale(1.05);
}
@media (max-width: 1024px) {
  .features__item:hover {
    transform: none;
  }
}
.features__icon {
  flex-shrink: 0;
  display: inline-block;
  margin-bottom: 16px;
}
.features__text {
  color: var(--title-color);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .hero__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .hero__grid {
    gap: 24px;
  }
  .hero__item {
    padding: 24px;
  }
  .features {
    gap: 24px;
  }
  .features__item {
    padding: 24px;
  }
  .features__text br {
    display: none;
  }
}
@media (max-width: 800px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .hero__grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }
}
@media (max-width: 599px) {
  .hero::after {
    display: none;
  }
  .hero__title {
    margin-bottom: 0;
  }
  .hero__descr {
    display: none;
  }
  .hero__features {
    margin-top: 48px;
  }
  .features {
    gap: 16px;
  }
  .features__item {
    background: #fff;
    box-shadow: none;
  }
  .features__text {
    font-size: 15px;
    font-weight: 500;
  }
}
@media (max-width: 480px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 0;
  }
  .hero__descr {
    font-size: 16px;
  }
  .hero__item-img {
    border-radius: 16px;
  }
  .features {
    gap: 10px;
  }
  .features__item {
    padding: 16px;
    border-radius: 16px;
  }
  .features__icon {
    width: 56px;
    height: 56px;
  }
  .features__text {
    font-size: 14px;
  }
}
.reviews {
  background: var(--bg-body);
  overflow: hidden;
}

.rev-item {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-radius: var(--br-24);
  padding: var(--pd-32);
  position: relative;
}
.rev-item__rating {
  flex-shrink: 0;
  position: absolute;
  top: 24px;
  right: 24px;
}
.rev-item__text {
  justify-content: flex-start;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}
.rev-item__user {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rev-item__user-ava {
  flex-shrink: 0;
  border-radius: 16px;
}
.rev-item__user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rev-item__user-name {
  color: var(--title-color);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.rev-item__user-city {
  color: var(--text-gray-color);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 480px) {
  .rev-item {
    border-radius: 16px;
    padding: 24px;
    gap: 16px;
  }
  .rev-item__rating {
    position: inherit;
    top: inherit;
    right: inherit;
  }
}
@media (max-width: 393px) {
  .rev-item__user-ava {
    width: 56px;
    height: 56px;
    border-radius: 50%;
  }
  .rev-item__text {
    font-size: 14px;
  }
}
.chat-result {
  position: relative;
  z-index: 0;
}
.chat-result-title, .chat-loading__title {
  color: var(--title-color);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}
.chat-result p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.chat-result p:not(:last-child) {
  margin-bottom: 1em;
}

.gpt-entry {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  background-color: #fff;
  border-radius: 16px;
}
.gpt-entry__user {
  margin-left: 20%;
  width: 80%;
}
.gpt-entry .time_sent {
  font-size: 12px;
  opacity: 0.7;
}
.gpt-entry__assistant {
  margin-right: 20%;
  width: 80%;
}
.gpt-entry ul,
.gpt-entry ol {
  padding-left: 40px !important;
}
.gpt-entry img {
  width: 60%;
  margin-top: 12px;
  border-radius: 24px !important;
}
@media (max-width: 1200px) {
  .gpt-entry img {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .gpt-entry img {
    border-radius: 12px !important;
  }
}
.gpt-entry:not(:last-child) {
  margin-bottom: 16px;
}
@media (max-width: 480px) {
  .gpt-entry {
    padding: 16px;
    gap: 16px;
  }
  .gpt-entry p {
    font-size: 14px;
  }
}
.gpt-entry div {
  padding-bottom: 16px;
}
.gpt-entry div:not(:last-child) {
  padding-top: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.gpt-entry strong {
  margin-bottom: 8px;
}
.gpt-entry.loading {
  border-color: #ffdc09;
}
.gpt-entry.error {
  background-color: var(--danger-bg-color);
  border-color: var(--danger-color);
}
.gpt-entry--images {
  gap: 16px;
}
.gpt-entry--images div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border: none !important;
}
.gpt-entry--images div:not(:last-child) {
  margin-bottom: 0;
  padding: 0;
}
@media (max-width: 1200px) {
  .gpt-entry--images div {
    grid-template-columns: 1fr;
  }
}
.gpt-entry--images img {
  width: 100%;
  margin-top: 0;
}
.gpt-entry--images .image-download {
  width: 49%;
  margin-left: auto;
  position: relative;
  top: 0 !important;
  left: 0 !important;
  margin-top: 8px;
}
@media (max-width: 1200px) {
  .gpt-entry--images .image-download {
    width: 100%;
  }
}

.image-download {
  background-color: var(--main-color);
  border: none;
  color: var(--white-color);
  top: 0;
  left: 0;
  margin-top: 24px;
}
.image-download svg {
  color: var(--white-color);
}
.image-download:hover {
  border: none;
  opacity: 0.8;
}
@media (max-width: 1200px) {
  .image-download {
    width: 100%;
  }
}

.chat__image-preview {
  width: 100%;
  display: flex;
}

.chat__image-preview img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  border: 0.0938rem solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.2), 0 0.125rem 0.25rem -0.125rem rgba(0, 0, 0, 0.2);
  margin: 5px;
}

/* ------------------- PAGES STYLES -------------------- */
.form-section {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.form-section::after {
  display: block;
  content: "";
  width: 1600px;
  height: 570px;
  background: url("img/linies-bg.svg") no-repeat center;
  background-size: cover;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}
@media (max-width: 640px) {
  .form-section::after {
    display: none;
  }
}

.form-login {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px;
  background-color: #fff;
  border-radius: 32px;
  animation: var(--animation-fade);
}
.form-login .form__link {
  cursor: pointer;
  text-decoration: none;
  color: var(--main-color);
  font-weight: 500;
}
.form-login .form__link:hover {
  text-decoration: underline;
}
.form-login .password-text {
  text-align: center;
  margin-top: 24px;
  color: rgba(0, 0, 0, 0.6);
  font-size: 15px;
  font-weight: 400;
}
.form-login .password-text .form__link {
  display: inline-block;
  cursor: pointer;
  color: var(--main-color);
}
.form-login .password-text .form__link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .form-section {
    padding: 32px 0;
  }
  .form-login {
    padding: 24px;
    border-radius: 24px;
  }
}
.page__main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(900px 600px at 12% -10%, rgba(255, 230, 200, 0.35), transparent 60%), radial-gradient(900px 600px at 100% 110%, rgba(220, 240, 232, 0.45), transparent 60%);
}

.account {
  overflow: hidden;
  width: 100%;
}
.account .container {
  max-width: 100%;
  padding: 0;
}
.account__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (max-width: 30rem) {
  .account__header {
    margin-bottom: 2rem;
  }
}
.account__header .account__title {
  margin-bottom: 0;
}
.account__header.flex-sb {
  justify-content: space-between;
  margin-bottom: 16px;
}
.account__header.flex-sb .select-voice {
  width: 17.5rem;
  height: 3rem;
}
@media (max-width: 680px) {
  .account__header.flex-sb {
    flex-direction: column;
    align-items: flex-start;
  }
  .account__header.flex-sb .select-voice {
    width: 100%;
  }
}
.account__text-description {
  width: 100%;
  max-width: 800px;
}
.account .link-back {
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.account .link-back svg {
  flex-shrink: 0;
  display: inline-block;
  width: 2rem;
  height: 2rem;
}
.account__wrapper {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}
.account__grid {
  display: flex;
  gap: 14px;
}
.account__grid.is-workspace {
  height: 100vh;
  height: 100dvh;
  gap: 14px;
  grid-template-rows: 1fr;
}
@media (max-width: 992px) {
  .account__grid.is-workspace {
    padding: 0;
    gap: 0;
    height: calc(100dvh - var(--header-h));
  }
}
.account__grid.with-settings {
  grid-template-columns: auto minmax(0, 1fr) 328px;
}
.account__logo {
  align-self: center;
}
.account__menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.account__menu-item {
  width: 100%;
  display: flex;
}
.account__menu-link {
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 0.75rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.07);
  border: 0.0625rem solid transparent;
  border-radius: 6.25rem;
  transition: all 0.3s ease-in-out;
}
.account__menu-link:hover, .account__menu-link.active {
  color: #fff;
  background-color: transparent;
  border-color: var(--main-color);
}
.account__menu-link.active {
  cursor: default;
}
.account__menu-link.active .account__menu-icon {
  opacity: 1;
}
.account .new-chat-item img {
  opacity: 1;
}
.account__menu-icon {
  flex-shrink: 0;
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  opacity: 0.7;
}
.account__exit {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease-in-out;
  background-color: var(--main-color);
  color: var(--white-color);
  border-color: transparent;
}
.account__exit:hover {
  opacity: 0.6;
}
.account__account {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  padding-bottom: 0;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  transition: all 0.3s ease-in-out;
}
.account__account img {
  flex-shrink: 0;
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
}
.account__account:hover, .account__account.active {
  color: var(--main-color);
}
.account__account.active {
  cursor: default;
}
.account__body {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 48px;
  padding-left: 32px;
  padding-right: 32px;
  padding-bottom: 11rem;
}
.account__body--image {
  padding-bottom: 16.75rem;
}
.account__title {
  color: var(--title-color);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 24px;
}
.account__promts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 1440px) {
  .account__promts {
    grid-template-columns: repeat(2, 1fr);
  }
}
.account__promts-item {
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
  background-color: var(--white-color);
  border-radius: 16px;
  padding: 16px;
  border: 0.0938rem solid transparent;
  transition: all 0.3s ease-in-out;
}
.account__promts-item:hover {
  border: 0.0938rem solid var(--main-color);
}
@media (max-width: 64rem) {
  .account__promts-item:hover {
    transform: none;
  }
}
.account__promts-icon {
  flex-shrink: 0;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBpZD0iYWUyMDU4ZWMiPgogICAgPGcgaWQ9IjIxY2ZiNTMzIj4KICAgICAgPHBhdGggaWQ9ImM4Y2Q0MjAwIiBkPSJNNS42MjU1OSAxOS4yMzc2QzUuNDAwNTkgMTkuMjM3NiA1LjE3NTU5IDE5LjE2MjYgNS4wMjU1OSAxOC45NzUxQzQuNjg4MDkgMTguNjM3NiA0LjY4ODA5IDE4LjExMjYgNS4wMjU1OSAxNy43NzUxTDE2LjM4ODEgNi40MTI1N0g3LjMxMzA5QzYuODYzMDkgNi40MTI1NyA2LjQ4ODA5IDYuMDM3NTcgNi40ODgwOSA1LjU4NzU3QzYuNDg4MDkgNS4xMzc1NyA2Ljg2MzA5IDQuNzYyNTcgNy4zMTMwOSA0Ljc2MjU3SDE4LjM3NTZDMTguODI1NiA0Ljc2MjU3IDE5LjIwMDYgNS4xMzc1NyAxOS4yMDA2IDUuNTg3NTdWMTYuNzI1MUMxOS4yMDA2IDE3LjE3NTEgMTguODI1NiAxNy41NTAxIDE4LjM3NTYgMTcuNTUwMUMxNy45MjU2IDE3LjU1MDEgMTcuNTUwNiAxNy4xNzUxIDE3LjU1MDYgMTYuNzI1MVY3LjY4NzU3TDYuMjI1NTkgMTkuMDEyNkM2LjA3NTU5IDE5LjE2MjYgNS44NTA1OSAxOS4yMzc2IDUuNjI1NTkgMTkuMjM3NloiIGZpbGw9IiMzNzM3MzkiPjwvcGF0aD4KICAgIDwvZz4KICA8L2c+Cjwvc3ZnPg==") no-repeat center;
  background-size: cover;
  transform: rotate(90deg);
}
.account__promts-text {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 400;
}

.chat-history {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 -4px;
  padding: 8px;
  scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}
.chat-history__group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-history__group-label {
  display: flex;
  justify-content: space-between;
}
.chat-history__group-label__text {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 6px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.chat-history__group-label__cnt {
  margin-left: auto;
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
}
.chat-history__empty {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  text-align: center;
}
.chat-history__empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.chat-history__empty-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.chat-history__empty-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 200px;
}
.chat-history__actions-menu {
  position: absolute;
  top: 0px;
  z-index: 100;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 36px -10px rgba(15, 23, 42, 0.22);
  padding: 5px;
  display: flex;
  flex-direction: column;
  transform: translateY(-4px) scale(0.97);
  transition: opacity 0.12s ease, transform 0.12s ease;
  transform-origin: top right;
}
.chat-history__actions-menu .ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}
.chat-history__actions-menu .ctx-item:hover {
  background: rgba(15, 23, 42, 0.05);
}
.chat-history__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 18px;
}
.chat-history__list__item {
  display: flex;
  cursor: pointer;
  position: relative;
  padding: 7px 9px;
  gap: 9px;
  border-radius: 8px;
  align-items: center;
  border: 1px solid transparent;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.chat-history__list__item.active {
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.chat-history__list__item:hover {
  background: rgba(15, 23, 42, 0.035);
}
.chat-history__list__item:hover .chat-history__list__item__actions {
  opacity: 1 !important;
}
.chat-history__list__item:hover .chat-history__list__item-time {
  opacity: 0 !important;
}
.chat-history__list__item-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: -0.005em;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.chat-history__list__item-tail {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  position: relative;
  min-width: 28px;
  justify-content: flex-end;
}
.chat-history__list__item-time {
  font-family: "Geist Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  transition: opacity 0.15s ease;
}
.chat-history__list__item__actions {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.chat-history__list__item__actions:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text);
}
.chat-history__list__item__delete {
  cursor: pointer;
  height: 100%;
  background: #000;
  color: var(--danger-color);
  padding: 0 10px;
  position: absolute;
  top: 50%;
  right: -100%;
  transform: translateY(-50%);
  transition: right 0.3s ease-in-out;
}
.chat-history__list__item__delete svg {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.chat {
  width: 100%;
}
.chat__item {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: calc(100% - 25rem);
  height: 7rem;
  display: flex;
  gap: 1.5rem;
  background: var(--white-color);
  border: 0.0938rem solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.2), 0 0.125rem 0.25rem -0.125rem rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease-in-out;
  z-index: 10;
}
.chat__item:hover {
  border-color: var(--main-color);
}
@media (max-width: 480px) {
  .chat__item {
    bottom: 1rem;
    gap: 16px !important;
  }
}
.chat__item--image {
  height: 204px;
  padding: 4px;
}
.chat__textarea {
  resize: none;
  outline: none;
  border: none;
  width: 100%;
  height: 100%;
  background-color: none;
  border-radius: 1rem;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  padding: 1rem 1.5rem;
  padding-right: 0;
  transition: all 0.2s ease-in-out;
}
.chat__textarea::placeholder {
  color: var(--input-placeholder);
}
.chat__item-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.chat__characters {
  color: var(--text-gray-color);
}
.chat__btn {
  flex-shrink: 0;
  display: inline-block;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--dark-color) url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBpZD0iY2RjODg3ZGQiIGNsaXAtcGF0aD0idXJsKCNhZjVmY2VkMCkiPgogICAgPGcgaWQ9IjMxNGVmZjBlIj4KICAgICAgPGcgaWQ9ImVkOTJlZDY5Ij4KICAgICAgICA8ZyBpZD0iMGJlZjAzYTEiPgogICAgICAgICAgPGcgaWQ9Ijc2MzA1NThjIj4KICAgICAgICAgICAgPGcgaWQ9IjRlNTg4OTY4Ij4KICAgICAgICAgICAgICA8cGF0aCBpZD0iNTI1N2JiNjgiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCA4TDEuNDEgOS40MUw3IDMuODNWMTZIOVYzLjgzTDE0LjU4IDkuNDJMMTYgOEw4IDBMMCA4WiIgZmlsbD0id2hpdGUiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgICAgPC9nPgogICAgPC9nPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iYWY1ZmNlZDAiPgogICAgICA8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIj48L3JlY3Q+CiAgICA8L2NsaXBQYXRoPgogIDwvZGVmcz4KPC9zdmc+") no-repeat center;
  background-size: 1.125rem 1.125rem;
  transition: opacity 0.3s ease-in-out;
  position: relative;
  right: 0.75rem;
  top: 0.75rem;
  transition: background 0.3s ease-in-out;
}
.chat__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chat__btn:hover {
  background: var(--main-color) url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBpZD0iY2RjODg3ZGQiIGNsaXAtcGF0aD0idXJsKCNhZjVmY2VkMCkiPgogICAgPGcgaWQ9IjMxNGVmZjBlIj4KICAgICAgPGcgaWQ9ImVkOTJlZDY5Ij4KICAgICAgICA8ZyBpZD0iMGJlZjAzYTEiPgogICAgICAgICAgPGcgaWQ9Ijc2MzA1NThjIj4KICAgICAgICAgICAgPGcgaWQ9IjRlNTg4OTY4Ij4KICAgICAgICAgICAgICA8cGF0aCBpZD0iNTI1N2JiNjgiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMCA4TDEuNDEgOS40MUw3IDMuODNWMTZIOVYzLjgzTDE0LjU4IDkuNDJMMTYgOEw4IDBMMCA4WiIgZmlsbD0id2hpdGUiPjwvcGF0aD4KICAgICAgICAgICAgPC9nPgogICAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgICAgPC9nPgogICAgPC9nPgogIDwvZz4KICA8ZGVmcz4KICAgIDxjbGlwUGF0aCBpZD0iYWY1ZmNlZDAiPgogICAgICA8cmVjdCB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9IndoaXRlIj48L3JlY3Q+CiAgICA8L2NsaXBQYXRoPgogIDwvZGVmcz4KPC9zdmc+") no-repeat center;
}
@media (max-width: 992px) {
  .account__burger {
    display: inline-block;
  }
  .account__wrapper {
    display: block;
    min-height: inherit;
    height: inherit;
  }
  .account__grid {
    display: block;
    padding-top: 32px;
  }
  .account__wrapper,
  .account > .container {
    height: 100%;
    min-height: 0;
  }
  .account__body {
    padding-top: 0;
    overflow: inherit;
    padding-bottom: 9rem;
  }
  .chat__item {
    width: calc(100% - 3rem);
  }
  .account__promts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .account__title {
    margin-bottom: 2rem;
  }
  .account__promts {
    gap: 0.5rem;
  }
  .account__promts-item {
    padding: 1rem;
    border-radius: 1rem;
  }
}
@media (max-width: 480px) {
  .account .container {
    padding: 0;
  }
  .account__body {
    gap: 2rem;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 100px;
  }
  .account__title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .account__promts {
    grid-template-columns: 1fr;
  }
  .account__promts-item {
    border-radius: 8px;
    padding: 12px;
  }
  .account__promts-icon {
    display: none;
  }
  .chat-result-title, .chat-loading__title {
    font-size: 1.25rem;
  }
  .chat__item {
    gap: 1.5rem;
    height: 100px;
    border-radius: 12px;
  }
  .chat__btn {
    width: 40px;
    height: 40px;
  }
  .chat__characters {
    display: none;
  }
  .chat__textarea {
    font-size: 1rem;
    padding: 1rem;
  }
  .chat__item {
    width: calc(100% - 2rem);
    right: 1rem;
  }
}
.ws-page-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.profile-wrap {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.profile-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.profile-section__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  flex: 1;
}
.profile-section__body {
  padding: 20px 24px;
}
.profile-section__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.profile-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  flex: none;
}
.profile-edit-btn:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text);
  border-color: var(--line-strong);
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .profile-fields {
    grid-template-columns: 1fr;
  }
}

.profile-error {
  font-size: 13px;
  color: var(--danger-color);
  margin-bottom: 12px;
}

.profile-sub-link {
  display: block;
  margin: 8px auto 0;
  padding: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.profile-sub-link:hover {
  color: var(--text);
}

.profile-balance-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(217, 119, 87, 0.08);
  border: 1px solid rgba(217, 119, 87, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
}

.profile-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.profile-links li {
  border-bottom: 1px solid var(--line);
}
.profile-links li:last-child {
  border-bottom: none;
}
.profile-links a {
  display: block;
  padding: 12px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.profile-links a:hover {
  color: var(--text);
}

.profile-tx {
  display: flex;
  flex-direction: column;
}
.profile-tx__header {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  gap: 12px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.profile-tx__row {
  display: grid;
  grid-template-columns: 100px 1fr 80px;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.profile-tx__row:last-child {
  border-bottom: none;
}
.profile-tx__date {
  color: var(--text-muted);
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  white-space: nowrap;
}
.profile-tx__label {
  color: var(--text-dim);
  font-weight: 500;
}
.profile-tx__amount {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.profile-tx__amount.is-income {
  color: var(--emerald);
}
.profile-tx__amount.is-expense {
  color: var(--danger-color);
}

.profile-tx-empty {
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 0;
}

.mobile-backdrop {
  display: none;
}
@media (max-width: 992px) {
  .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 299;
    pointer-events: none;
    transition: background 0.3s ease;
  }
  .mobile-backdrop.active {
    background: rgba(0, 0, 0, 0.4);
    pointer-events: auto;
  }
}

.instruction {
  width: 100%;
  background: var(--white-color);
  padding: 48px;
  border-radius: 24px;
}
.instruction__block:not(:last-child) {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-dark-color);
}
.instruction h2,
.instruction h3,
.instruction h4,
.instruction h5,
.instruction h6 {
  color: var(--title-color);
  font-weight: 600;
}
.instruction h3 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 16px;
}
.instruction h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.instruction h5 {
  font-size: 16px;
}
.instruction strong {
  color: var(--title-color);
}
.instruction p {
  margin-bottom: 2em;
}
.instruction ul,
.instruction ol {
  margin-left: 2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.instruction a:hover {
  color: var(--main-color);
  text-decoration: underline;
}

@media (max-width: 800px) {
  .instruction {
    padding: 32px;
  }
  .instruction h3 {
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  .instruction {
    border-radius: 16px;
    padding: 24px;
  }
  .instruction h3 {
    font-size: 20px;
  }
  .instruction h4 {
    font-size: 16px;
  }
  .instruction p {
    margin-bottom: 1em;
  }
}
/* ─── 404 / Not Found Page ─── */
.nf-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.nf-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 80px;
  position: relative;
  z-index: 2;
}

.nf-container {
  text-align: center;
  max-width: 560px;
  width: 100%;
  animation: nfFadeUp 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes nfFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ─── Eyebrow badge ─── */
.nf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.09);
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.nf-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 8px #dc2626;
  animation: nfPulse 2s ease-in-out infinite;
}

@keyframes nfPulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
/* ─── 404 Number ─── */
.nf-number {
  font-size: clamp(80px, 17vw, 148px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 28px;
  font-family: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--cr-text, #0b1220);
}

.nf-number-grad {
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Terminal block ─── */
.nf-terminal {
  background: #0b1220;
  border-radius: 14px;
  text-align: left;
  margin: 0 auto 24px;
  max-width: 480px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 28px 60px -18px rgba(99, 102, 241, 0.38);
  overflow: hidden;
}

.nf-term-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nf-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.nf-dot--red {
  background: #ff5f57;
}
.nf-dot--yellow {
  background: #febc2e;
}
.nf-dot--green {
  background: #28c840;
}

.nf-term-label {
  margin-left: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", monospace;
  letter-spacing: 0.01em;
}

.nf-term-body {
  padding: 16px 20px 20px;
  font-family: "Geist Mono", "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.75;
  min-height: 110px;
}

.nf-tl {
  animation: nfLineIn 0.22s ease both;
}
.nf-tl--cmd {
  color: rgba(255, 255, 255, 0.8);
}
.nf-tl--err {
  color: #f87171;
}
.nf-tl--ok {
  color: #86efac;
}

@keyframes nfLineIn {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.nf-cursor {
  display: inline-block;
  color: #818cf8;
  animation: nfBlink 1s step-end infinite;
  font-size: 15px;
  line-height: 1;
  vertical-align: text-bottom;
  margin-left: 1px;
}

@keyframes nfBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
/* ─── Hint text ─── */
.nf-hint {
  font-size: 13.5px;
  color: var(--cr-text-muted, #64748b);
  margin-bottom: 32px;
}

.nf-code {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ─── Action buttons ─── */
.nf-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nf-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e293b, #0b1220);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 1px 2px rgba(15, 23, 42, 0.2), 0 16px 40px -12px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.18);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease;
  isolation: isolate;
  overflow: hidden;
}
.nf-btn-primary::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(99, 102, 241, 0.5) 60deg, transparent 130deg, transparent 240deg, rgba(236, 72, 153, 0.4) 310deg, transparent 360deg);
  animation: crPillSpin 9s linear infinite;
  opacity: 0.6;
  z-index: -2;
  filter: blur(18px);
}
.nf-btn-primary::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1e293b, #0b1220);
  z-index: -1;
}
.nf-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 4px rgba(15, 23, 42, 0.24), 0 22px 48px -12px rgba(99, 102, 241, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.32);
}

.nf-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--cr-text-dim, #334155);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  transition: all 0.2s ease;
}
.nf-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.1);
  color: var(--cr-text, #0b1220);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.18);
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .nf-term-body {
    padding: 14px 16px 18px;
    font-size: 12px;
  }
  .nf-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .nf-actions .nf-btn-primary,
  .nf-actions .nf-btn-ghost {
    justify-content: center;
  }
}
.bg-home {
  background: var(--body-bg-color);
}

.form-section::after {
  display: block;
  content: "";
  width: 1600px;
  height: 570px;
  background: url("/images/svg/linies-bg.svg") no-repeat center;
  background-size: cover;
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  z-index: -1;
}

.form__title,
.payment-status__title,
.payment__title {
  color: var(--title-color);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.questions__container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.questions {
  padding: clamp(3rem, 2.68rem + 1.6vw, 4rem) 0;
}

.questions__title {
  color: var(--color-dark);
  font-size: clamp(1.75rem, 1.289rem + 1.05vw, 2rem);
  line-height: 1.1;
  margin-bottom: clamp(1.5rem, 1.25rem + 1.11vw, 2rem);
}

.questions__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.suspend-text,
.title-text {
  text-align: center;
}

.questions__question {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.questions__answer {
  font-size: 18px;
  line-height: 1.5;
}

.sub-Info {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.8;
}

.tariff-wrap {
  max-width: 600px;
  margin: auto;
  background: var(--white-color);
  padding: 48px;
  border-radius: 24px;
  width: 100%;
}

.tariff-wrap .tariff-text {
  margin-bottom: 5px;
}

.access__btn {
  border-radius: 10px;
  padding: 10px;
  font-size: 15px;
  line-height: 100%;
  font-weight: 500;
  color: #fff;
  transition: 0.3s all;
  white-space: nowrap;
  height: 50px;
  width: 100%;
  margin: 20px 0;
}

.suspend-access__btn {
  margin-right: 30px;
  background: transparent;
  color: var(--main-color);
}

.btns {
  display: flex;
  justify-content: center;
}

.stop-access__btn,
.suspend-access__btn {
  font-size: 14px;
}

.tariff {
  padding: 26px;
  border-radius: 10px;
  border: 1px solid #dedede;
  background: #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
}

.tariff-premium {
  font-size: 18px;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
}

.tariff-status {
  display: flex;
  align-items: center;
  justify-content: right;
}

.tariff-premium img {
  margin-right: 16px;
}

.tariff-status .data {
  font-size: 13px;
  opacity: 0.4;
  display: inline-block;
  margin-right: 20px;
}

.tariff-status .status-btn {
  padding: 5.5px 10px;
  border: 1px solid rgba(34, 34, 34, 0.1019607843);
  border-radius: 4px;
  background: transparent;
}

.tariff-info {
  position: relative;
  border: 1px solid #dedede;
  border-radius: 10px;
  overflow: hidden;
  padding: 21px 0 23px 26px;
  margin: 10px 0 20px;
}

.tariff-info__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.tariff-info__text {
  position: relative;
  z-index: 3;
  font-size: 18px;
  font-weight: 500;
}

.sub-Info {
  margin: 10px 0;
}

.btn {
  width: 100%;
}

.access .tariff-info {
  margin: 0;
}

.access .tariff {
  margin: 10px 0;
}

.access .tariff-premium {
  font-size: 15px;
}

.access .tariff-text {
  font-size: 13px;
  opacity: 0.4;
}

.access .btn {
  margin: 20px 0;
}

.btns button {
  background: transparent;
  color: var(--main-color);
}

.btns button:first-child {
  margin-right: 30px;
}

.btns button:last-child {
  color: rgba(0, 0, 0, 0.2666666667);
  margin-right: 0;
}

.btns button:last-child:hover {
  color: #000;
}

.tariff-suspend {
  display: flex;
  align-items: center;
  justify-content: center;
}

.suspend .tariff-suspend .clock {
  margin-right: 20px;
}

.suspend .tariff-suspend .suspend-text {
  font-size: 24px;
  font-weight: 500;
  line-height: 100%;
  margin: 0;
}

.suspend .tariff-suspend .suspend-text span {
  color: var(--main-color);
}

.suspend .tariff {
  margin: 20px 0 40px;
  padding: 23px 20px 20px;
}

.suspend .tariff .suspend-title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 9px;
}

.suspend .tariff .suspend-title span {
  color: var(--main-color);
  font-weight: 700;
}

.suspend .tariff .suspend-subtitle {
  font-size: 13px;
  line-height: 19px;
  opacity: 0.4;
}

.suspend .suspend-btns {
  display: flex;
  justify-content: space-between;
}

.suspend .suspend-btns .btn {
  width: 49%;
}

.suspend .suspend-access__btn {
  margin-top: 20px;
}

.btn.suspend__btn {
  border-radius: 10px;
  padding: 10px;
  font-size: 15px;
  line-height: 100%;
  font-weight: 500;
  color: #fff;
  transition: 0.3s all;
  white-space: nowrap;
  height: 50px;
}

.suspend .stop-access__btn {
  color: rgba(0, 0, 0, 0.2666666667);
  margin-top: 20px;
  background: transparent;
}

.suspend .stop-access__btn:hover {
  color: #000;
}

.emotions-title {
  font-size: 24px;
  font-weight: 500;
  color: #222;
  line-height: 100%;
  margin-top: 20px;
}

.emotions-list {
  padding: 20px 0;
  align-items: center;
  justify-content: center;
  display: flex;
}

.emotions-list img {
  margin-right: 22px;
}

.emotions-list img:last-child {
  margin-right: 0;
}

.emotions .leave-access {
  padding: 11px;
  border-radius: 10px;
  background: #f5f5f5;
  border: 1px solid #dedede;
  margin: 20px 0;
  align-items: center;
  justify-content: center;
  display: flex;
}

.emotions .leave-access span {
  font-weight: 500;
  opacity: 0.4;
  display: inline-block;
  margin-right: 16px;
}

.emotions .leave-access .switch {
  cursor: pointer;
  display: block;
}

.emotions .leave-access .switch input {
  display: none;
}

.emotions .leave-access .switch span {
  width: 50px;
  height: 28px;
  border-radius: 30px;
  display: block;
  background: #c1c1c1;
  position: relative;
  transition: 0.3s all;
  opacity: 1;
}

.emotions .leave-access .switch span::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.3s all;
}

.emotions .leave-access .switch input:checked ~ span {
  background: var(--main-color);
}

.emotions .leave-access .switch input:checked ~ span::before {
  left: 24px;
}

.win-prizes-title {
  font-size: 24px;
  line-height: 100%;
  font-weight: 500;
  color: #222;
}

.win-prizes-text {
  font-weight: 500;
  color: rgba(0, 0, 0, 0.2666666667);
  margin: 20px 0;
}

.win-prizes .try-luck {
  padding: 20px 0;
}

.win-prizes .try-luck-drum {
  width: 100%;
  height: 225px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.win-prizes .try-luck-drum img {
  width: 426px;
  object-fit: contain;
}

.win-prizes .try-luck .btn {
  margin-top: -1px;
}

.win-prizes .no-thanks__btn {
  background: transparent;
  color: #000;
  opacity: 0.4;
}

.win-prizes .no-thanks__btn:hover {
  opacity: 1;
}

@media (max-width: 800px) {
  .container {
    padding: 0 24px;
  }
  .tariff-wrap {
    padding: 8px;
  }
}
:root {
  --adm-bg: #fafaf9;
  --adm-surface: #ffffff;
  --adm-text: #0f172a;
  --adm-text-dim: #475569;
  --adm-text-muted: #94a3b8;
  --adm-line: rgba(15, 23, 42, 0.07);
  --adm-line-strong: rgba(15, 23, 42, 0.14);
  --adm-indigo: #6366f1;
  --adm-emerald: #10b981;
  --adm-amber: #d97757;
  --adm-rose: #e11d48;
}
.adm-app {
  display: grid;
  grid-template-columns: 232px 1fr;
  height: 100vh;
  overflow: hidden;
  background: var(--adm-bg);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--adm-text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
.adm-app * {
  box-sizing: border-box;
}
.adm-sidebar {
  background: #fff;
  border-right: 1px solid var(--adm-line);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.adm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--adm-line);
}
.adm-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0f172a, #334155);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.adm-brand-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.adm-brand-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.adm-brand-sub {
  font-size: 10.5px;
  color: var(--adm-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}
.adm-nav-section {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--adm-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 8px 6px;
}
.adm-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6.5px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--adm-text-dim);
  text-decoration: none;
  transition: all 0.15s ease;
}
.adm-nav-link svg {
  opacity: 0.75;
  flex: none;
}
.adm-nav-link:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--adm-text);
}
.adm-nav-link.is-active {
  background: var(--adm-text);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.35);
}
.adm-nav-link.is-active svg {
  opacity: 1;
}
.adm-nav-link__count {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--adm-text-dim);
  font-family: "Geist Mono", monospace;
}
.adm-nav-link.is-active .adm-nav-link__count {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.adm-sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--adm-line);
}
.adm-health {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.06);
  font-size: 11.5px;
  color: var(--adm-emerald);
}
.adm-health__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--adm-emerald);
  box-shadow: 0 0 8px var(--adm-emerald);
  animation: adm-pulse 2s ease-in-out infinite;
  flex: none;
}
.adm-health__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.adm-health__label {
  font-weight: 600;
  color: #047857;
}
.adm-health__meta {
  font-size: 10px;
  color: #059669;
  opacity: 0.7;
}
@keyframes adm-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
.adm-main {
  min-width: 0;
  overflow-y: auto;
  height: 100vh;
}
.adm-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--adm-line);
}
.adm-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}
.adm-search__input {
  width: 100%;
  padding: 9px 60px 9px 34px;
  border-radius: 10px;
  border: 1px solid var(--adm-line);
  background: #fff;
  font: inherit;
  font-family: "Geist", sans-serif;
  font-size: 13px;
  color: var(--adm-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.adm-search__input::placeholder {
  color: var(--adm-text-muted);
}
.adm-search__input:focus {
  border-color: var(--adm-line-strong);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.04);
}
.adm-search__icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--adm-text-muted);
  pointer-events: none;
}
.adm-search__kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10.5px;
  font-family: "Geist Mono", monospace;
  color: var(--adm-text-muted);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--adm-line);
  background: rgba(15, 23, 42, 0.02);
}
.adm-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.adm-tb-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--adm-line);
  font-size: 12px;
  color: var(--adm-text-dim);
}
.adm-tb-stat b {
  color: var(--adm-text);
  font-weight: 600;
  font-family: "Geist Mono", monospace;
}
.adm-tb-stat__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--adm-emerald);
  box-shadow: 0 0 5px var(--adm-emerald);
  animation: adm-pulse 2s ease-in-out infinite;
}
.adm-tb-icon {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--adm-line);
  color: var(--adm-text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}
.adm-tb-icon:hover {
  border-color: var(--adm-line-strong);
  color: var(--adm-text);
}
.adm-tb-icon__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--adm-rose);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.adm-tb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8a55a, #b97c5a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 4px 10px -3px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}
.adm-page {
  padding: 16px 24px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.adm-page-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.adm-page-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.adm-page-head__crumb {
  font-size: 11px;
  color: var(--adm-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
  font-weight: 500;
}
.adm-page-head__meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font: inherit;
  font-family: "Geist", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--adm-line);
  background: #fff;
  color: var(--adm-text);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.adm-btn:hover {
  border-color: var(--adm-line-strong);
}
.adm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.adm-btn--primary {
  background: var(--adm-text);
  color: #fff;
  border-color: var(--adm-text);
}
.adm-btn--primary:hover {
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.35);
}
.adm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  min-width: 84px;
  justify-content: center;
}
.adm-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.adm-pill--online {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}
.adm-pill--online::before {
  background: var(--adm-emerald);
  box-shadow: 0 0 5px var(--adm-emerald);
}
.adm-pill--degraded {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.adm-pill--degraded::before {
  background: #d97706;
}
.adm-pill--offline {
  background: rgba(148, 163, 184, 0.18);
  color: var(--adm-text-dim);
}
.adm-pill--offline::before {
  background: var(--adm-text-muted);
}
.adm-toggle {
  display: inline-block;
  position: relative;
  width: 32px;
  height: 18px;
  background: rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
  flex: none;
}
.adm-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}
.adm-toggle--on {
  background: var(--adm-text);
}
.adm-toggle--on .adm-toggle__knob {
  transform: translateX(14px);
}
@media (max-width: 760px) {
  .adm-app {
    grid-template-columns: 1fr;
  }
  .adm-sidebar {
    display: none;
  }
}.adm-timepick {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
}
.adm-timepick button {
  padding: 5px 12px;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--adm-text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
}
.adm-timepick button.is-active {
  background: #fff;
  color: var(--adm-text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}
.adm-timepick button:hover:not(.is-active) {
  color: var(--adm-text);
}

.adm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .adm-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.adm-stat {
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: 14px;
  padding: 16px 18px;
  background-image: radial-gradient(circle at top right, var(--accent, transparent), transparent 70%);
}
.adm-stat__lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--adm-text-muted);
  margin-bottom: 6px;
}
.adm-stat__val {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-family: "Geist Mono", monospace;
  line-height: 1.1;
  margin-bottom: 6px;
}
.adm-stat__unit {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.7;
}
.adm-stat__delta {
  font-size: 11.5px;
  font-weight: 500;
}
.adm-stat__delta--up {
  color: var(--adm-emerald);
}
.adm-stat__delta--down {
  color: var(--adm-rose);
}
.adm-stat__delta--neutral {
  color: var(--adm-text-muted);
}

.adm-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .adm-two-col {
    grid-template-columns: 1fr;
  }
}

.adm-an-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.adm-an-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.adm-an-card__head h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.adm-an-card__meta {
  font-size: 11.5px;
  color: var(--adm-text-muted);
}

.adm-cohort {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-family: "Geist Mono", monospace;
  overflow-x: auto;
}
.adm-cohort__header, .adm-cohort__row {
  display: grid;
  grid-template-columns: 110px 48px repeat(var(--cohort-cols, 8), 1fr);
  gap: 4px;
  align-items: center;
}
.adm-cohort__header {
  color: var(--adm-text-muted);
  text-align: center;
  padding-bottom: 2px;
}
.adm-cohort__week-label {
  color: var(--adm-text-dim);
  padding: 6px 0;
}
.adm-cohort__cell {
  border-radius: 4px;
  padding: 6px 0;
  text-align: center;
  font-weight: 500;
  min-width: 32px;
}
.adm-cohort__cell--cnt {
  color: var(--adm-text-muted);
  font-weight: 400;
}

.adm-rank {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adm-rank-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.adm-rank-row__name {
  color: var(--adm-text-dim);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-rank-row__bar {
  height: 6px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.adm-rank-row__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bar-c1, #6366f1), var(--bar-c2, #8b5cf6));
}
.adm-rank-row__val {
  font-family: "Geist Mono", monospace;
  font-weight: 500;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
  color: var(--adm-text-muted);
}
.adm-rank-row__val b {
  font-weight: 600;
  color: var(--adm-text-dim);
}

.adm-funnel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 12.5px;
}
.adm-funnel__step-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.adm-funnel__step-head span:last-child {
  font-family: "Geist Mono", monospace;
  color: var(--adm-text-dim);
}
.adm-funnel__step-head span:last-child b {
  color: var(--adm-text);
}
.adm-funnel__bar {
  height: 22px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), rgba(236, 72, 153, 0.18));
  border-radius: 6px;
  min-width: 2px;
}

.adm-an-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.adm-an-tbl thead tr {
  border-bottom: 1px solid var(--adm-line);
}
.adm-an-tbl th {
  padding: 8px 10px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: var(--adm-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.adm-an-tbl th:first-child {
  text-align: left;
}
.adm-an-tbl tbody tr {
  border-bottom: 1px solid var(--adm-line);
}
.adm-an-tbl tbody tr:last-child {
  border-bottom: none;
}
.adm-an-tbl td {
  padding: 7px 10px;
  text-align: right;
  font-family: "Geist Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text-dim);
}
.adm-an-tbl td:first-child {
  text-align: left;
  font-family: inherit;
  font-variant-numeric: normal;
  color: var(--adm-text-muted);
}

@keyframes adm-skel-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.adm-skel {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.06) 25%, rgba(15, 23, 42, 0.12) 37%, rgba(15, 23, 42, 0.06) 63%);
  background-size: 200% 100%;
  animation: adm-skel-shimmer 1.4s ease-in-out infinite;
}

.adm-skel-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adm-panel-error {
  color: var(--adm-rose);
  font-size: 13px;
  padding: 16px 0;
}.adm-bill-kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 1280px) {
  .adm-bill-kpis {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .adm-bill-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

.adm-bill-chart {
  width: 100%;
  height: 220px;
}

.adm-bill-pnl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  font-size: 12.5px;
}
@media (max-width: 900px) {
  .adm-bill-pnl {
    grid-template-columns: repeat(2, 1fr);
  }
}
.adm-bill-pnl__label {
  font-size: 10.5px;
  color: var(--adm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.adm-bill-pnl__value {
  font-size: 18px;
  font-weight: 600;
  margin-top: 4px;
  font-family: "Geist Mono", monospace;
}
.adm-bill-pnl__value--positive {
  color: #047857;
}
.adm-bill-pnl__value--negative {
  color: var(--adm-rose);
}
.adm-bill-pnl__sub {
  font-size: 11px;
  color: var(--adm-text-muted);
  margin-top: 2px;
}
.adm-bill-pnl__net {
  padding-left: 20px;
  border-left: 1px solid var(--adm-line);
}

.adm-bill-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.adm-bill-tbl th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--adm-text-muted);
  border-bottom: 1px solid var(--adm-line);
  white-space: nowrap;
}
.adm-bill-tbl th.num, .adm-bill-tbl td.num {
  text-align: right;
  font-family: "Geist Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.adm-bill-tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--adm-line);
  color: var(--adm-text-dim);
}
.adm-bill-tbl tbody tr:last-child td {
  border-bottom: none;
}
.adm-bill-tbl .adm-bill-sort {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--adm-text-muted);
  transition: color 0.12s ease;
}
.adm-bill-tbl .adm-bill-sort:hover {
  color: var(--adm-text);
}
.adm-bill-tbl .adm-bill-sort.is-active {
  color: var(--adm-text);
}
.adm-bill-tbl .adm-bill-sort__caret {
  font-size: 11px;
}
.adm-bill-tbl tfoot td {
  padding: 10px 12px;
  font-size: 11px;
  color: var(--adm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(15, 23, 42, 0.02);
}

.adm-bill-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: "Geist Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.adm-bill-badge--high {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}
.adm-bill-badge--med {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}
.adm-bill-badge--low {
  background: rgba(225, 29, 72, 0.1);
  color: #be123c;
}

.adm-bill-pkg-row {
  display: grid;
  grid-template-columns: 10px 1fr 48px 80px;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  padding: 4px 0;
}
.adm-bill-pkg-row__dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex: none;
}
.adm-bill-pkg-row__pct {
  font-family: "Geist Mono", monospace;
  color: var(--adm-text-dim);
  text-align: right;
}
.adm-bill-pkg-row__rev {
  font-family: "Geist Mono", monospace;
  color: var(--adm-text-muted);
  font-size: 11px;
  text-align: right;
}

.adm-bill-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 10px;
  font-size: 12px;
  color: #92400e;
  margin-bottom: 16px;
}

.adm-bill-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex: none;
  background: rgba(99, 102, 241, 0.15);
  color: #6366f1;
}

.adm-bill-userlink {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: opacity 0.15s ease;
}
.adm-bill-userlink:hover {
  opacity: 0.7;
}
.adm-ch-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.adm-ch-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}
.adm-ch-search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--adm-text-muted);
  pointer-events: none;
}
.adm-ch-search__input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: 10px;
  border: 1px solid var(--adm-line);
  background: #fff;
  font: inherit;
  font-family: "Geist", sans-serif;
  font-size: 13px;
  color: var(--adm-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.adm-ch-search__input::placeholder {
  color: var(--adm-text-muted);
}
.adm-ch-search__input:focus {
  border-color: var(--adm-line-strong);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.04);
}

.adm-ch-date {
  display: flex;
  align-items: center;
  gap: 4px;
}
.adm-ch-date__sep {
  font-size: 11px;
  color: var(--adm-text-muted);
}
.adm-ch-date input[type=date] {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--adm-line);
  background: #fff;
  font: inherit;
  font-family: "Geist", sans-serif;
  font-size: 12.5px;
  color: var(--adm-text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.adm-ch-date input[type=date]:focus {
  border-color: var(--adm-line-strong);
}

.adm-ch-select {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--adm-line);
  background: #fff;
  font: inherit;
  font-family: "Geist", sans-serif;
  font-size: 12.5px;
  color: var(--adm-text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
  min-width: 140px;
}
.adm-ch-select:focus {
  border-color: var(--adm-line-strong);
}

.adm-ch-wrap {
  background: #fff;
  border: 1px solid var(--adm-line);
  border-radius: 16px;
  overflow: hidden;
}

.adm-ch-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.adm-ch-tbl thead tr {
  border-bottom: 1px solid var(--adm-line);
}
.adm-ch-tbl th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--adm-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.adm-ch-tbl tbody tr {
  border-bottom: 1px solid var(--adm-line);
  cursor: pointer;
  transition: background 0.1s ease;
}
.adm-ch-tbl tbody tr:last-child {
  border-bottom: none;
}
.adm-ch-tbl tbody tr:hover {
  background: rgba(15, 23, 42, 0.025);
}
.adm-ch-tbl tbody tr.is-selected {
  background: rgba(99, 102, 241, 0.05);
}
.adm-ch-tbl td {
  padding: 12px 14px;
  vertical-align: middle;
}

.adm-ch-user {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.adm-ch-user__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--adm-text);
}
.adm-ch-user__email {
  font-size: 11.5px;
  color: var(--adm-text-muted);
}
.adm-ch-user--link {
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.15s ease;
  width: fit-content;
}
.adm-ch-user--link:hover .adm-ch-user__name {
  color: var(--adm-indigo, #6366f1);
  text-decoration: underline;
}

.adm-ch-title {
  font-size: 13px;
  color: var(--adm-text);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adm-ch-model {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  white-space: nowrap;
}

.adm-ch-muted {
  color: var(--adm-text-muted);
  font-size: 12.5px;
}

.adm-ch-num {
  font-family: "Geist Mono", monospace;
  font-size: 12.5px;
  color: var(--adm-text);
  font-variant-numeric: tabular-nums;
}

.adm-ch-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--adm-text-muted);
  font-size: 14px;
}

.adm-ch-paging {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--adm-line);
  font-size: 12px;
  color: var(--adm-text-muted);
}

.adm-ch-paging-ctrl {
  display: flex;
  align-items: center;
  gap: 4px;
}
.adm-ch-paging-ctrl button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--adm-line);
  background: #fff;
  color: var(--adm-text-dim);
  cursor: pointer;
  transition: all 0.1s ease;
}
.adm-ch-paging-ctrl button:hover:not(:disabled) {
  border-color: var(--adm-line-strong);
  color: var(--adm-text);
}
.adm-ch-paging-ctrl button--active {
  background: var(--adm-text);
  color: #fff;
  border-color: var(--adm-text);
}
.adm-ch-paging-ctrl button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.adm-ch-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(2px);
  animation: adm-ch-fade-in 0.2s ease;
}

.adm-ch-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  width: 520px;
  max-width: 100vw;
  background: #fff;
  border-left: 1px solid var(--adm-line);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.12);
  animation: adm-ch-drawer-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes adm-ch-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes adm-ch-drawer-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.adm-ch-drawer-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--adm-line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  flex: none;
}
.adm-ch-drawer-head__info {
  flex: 1;
  min-width: 0;
}
.adm-ch-drawer-head__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-text);
  line-height: 1.3;
  word-break: break-word;
}
.adm-ch-drawer-head__meta {
  font-size: 11.5px;
  color: var(--adm-text-muted);
  margin-top: 2px;
}
.adm-ch-drawer-head__close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  flex: none;
  margin-top: 1px;
}
.adm-ch-drawer-head__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--adm-text);
}

.adm-ch-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adm-ch-messages--embedded {
  flex: none;
  max-height: 460px;
  padding: 4px 0 0;
  margin-top: 8px;
}

.adm-ch-atts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.adm-ch-att {
  display: block;
  max-width: 220px;
  border-radius: 10px;
  overflow: hidden;
}
.adm-ch-att--image {
  line-height: 0;
  cursor: zoom-in;
}
.adm-ch-att__img {
  max-width: 220px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.adm-ch-att--video {
  width: 240px;
  max-width: 100%;
  border-radius: 10px;
}
.adm-ch-att--audio {
  width: 240px;
  max-width: 100%;
}

.adm-ch-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 88%;
}
.adm-ch-msg--user {
  align-self: flex-end;
  align-items: flex-end;
}
.adm-ch-msg--assistant, .adm-ch-msg--system {
  align-self: flex-start;
  align-items: flex-start;
}
.adm-ch-msg__role {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adm-text-muted);
  padding: 0 2px;
}
.adm-ch-msg__bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}
.adm-ch-msg--user .adm-ch-msg__bubble {
  background: var(--adm-text);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.adm-ch-msg--assistant .adm-ch-msg__bubble, .adm-ch-msg--system .adm-ch-msg__bubble {
  background: rgba(15, 23, 42, 0.05);
  color: var(--adm-text);
  border-bottom-left-radius: 4px;
}
.adm-ch-msg__time {
  font-size: 10.5px;
  color: var(--adm-text-muted);
  padding: 0 2px;
}

.adm-ch-msg__bubble h1, .adm-ch-msg__bubble h2, .adm-ch-msg__bubble h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0 4px;
}
.adm-ch-msg__bubble h1:first-child, .adm-ch-msg__bubble h2:first-child, .adm-ch-msg__bubble h3:first-child {
  margin-top: 0;
}
.adm-ch-msg__bubble ul, .adm-ch-msg__bubble ol {
  margin: 4px 0;
  padding-left: 20px;
}
.adm-ch-msg__bubble li {
  margin: 2px 0;
}
.adm-ch-msg__bubble strong {
  font-weight: 600;
}
.adm-ch-msg__bubble code {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
}

.adm-ch-msg--assistant .adm-ch-msg__bubble code,
.adm-ch-msg--system .adm-ch-msg__bubble code {
  background: rgba(15, 23, 42, 0.07);
}

.adm-ch-msg--user .adm-ch-msg__bubble code {
  background: rgba(255, 255, 255, 0.2);
}

.adm-ch-think {
  margin-bottom: 8px;
}
.adm-ch-think[open] .adm-ch-think__content {
  display: block;
}
.adm-ch-think__summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  font-size: 12px;
  font-style: italic;
  color: var(--adm-text-muted);
  cursor: pointer;
  line-height: 22px;
  user-select: none;
  list-style: none;
}
.adm-ch-think__summary::before {
  content: "▸";
  font-size: 20px;
  font-style: normal;
  transition: transform 0.2s ease;
}
.adm-ch-think__summary::-webkit-details-marker {
  display: none;
}
.adm-ch-think[open] .adm-ch-think__summary::before {
  transform: rotate(90deg);
}
.adm-ch-think__content {
  display: none;
  margin-top: 6px;
  padding-left: 12px;
  border-left: 2px solid var(--adm-line-strong);
  font-size: 12px;
  line-height: 1.6;
  color: var(--adm-text-muted);
  word-break: break-word;
}
.adm-ch-think__content h1, .adm-ch-think__content h2, .adm-ch-think__content h3 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--adm-text-dim);
  margin: 8px 0 2px;
}
.adm-ch-think__content ul, .adm-ch-think__content ol {
  margin: 4px 0;
  padding-left: 18px;
}
.adm-ch-think__content li {
  margin: 2px 0;
}
.adm-ch-think__content strong {
  color: var(--adm-text);
}
.adm-ch-think__content code {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.06);
  padding: 1px 4px;
  border-radius: 3px;
}

.adm-ch-msg-loading {
  padding: 60px 24px;
  text-align: center;
  color: var(--adm-text-muted);
  font-size: 13px;
}.adm-gen-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .adm-gen-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.adm-gen-stat {
  background: #fff;
  border: 1px solid var(--adm-line);
  border-radius: 14px;
  padding: 16px 20px;
}
.adm-gen-stat__lbl {
  font-size: 11px;
  color: var(--adm-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}
.adm-gen-stat__val {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  line-height: 1.1;
  font-family: "Geist Mono", monospace;
}
.adm-gen-stat__sub {
  font-size: 11.5px;
  color: var(--adm-text-muted);
  margin-top: 4px;
}
.adm-gen-stat__sub--up {
  color: #047857;
}
.adm-gen-stat__sub--down {
  color: var(--adm-rose);
}

.adm-gen-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.adm-gen-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 340px;
}
.adm-gen-search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--adm-text-muted);
  pointer-events: none;
}
.adm-gen-search__input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: 10px;
  border: 1px solid var(--adm-line);
  background: #fff;
  font: inherit;
  font-family: "Geist", sans-serif;
  font-size: 13px;
  color: var(--adm-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.adm-gen-search__input::placeholder {
  color: var(--adm-text-muted);
}
.adm-gen-search__input:focus {
  border-color: var(--adm-line-strong);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.04);
}

.adm-gen-userid {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--adm-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.adm-gen-userid:focus-within {
  border-color: var(--adm-line-strong);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.04);
}
.adm-gen-userid__prefix {
  padding: 0 8px 0 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--adm-text-muted);
  letter-spacing: 0.04em;
  border-right: 1px solid var(--adm-line);
  line-height: 32px;
  user-select: none;
}
.adm-gen-userid__input {
  width: 72px;
  padding: 0 8px;
  font-size: 13px;
  font-family: "Geist Mono", monospace;
  color: var(--adm-text);
  line-height: 32px;
  background: transparent;
  border: none;
  outline: none;
}
.adm-gen-userid__input::placeholder {
  color: var(--adm-text-muted);
  font-family: "Geist", sans-serif;
  font-size: 12px;
}
.adm-gen-userid__clear {
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-text-muted);
  cursor: pointer;
  border-left: 1px solid var(--adm-line);
  align-self: stretch;
  transition: color 0.15s, background 0.15s;
}
.adm-gen-userid__clear:hover {
  color: var(--adm-text);
  background: rgba(15, 23, 42, 0.04);
}

.adm-gen-chip-divider {
  width: 1px;
  height: 20px;
  background: var(--adm-line-strong);
  flex: none;
  align-self: center;
  margin: 0 2px;
}

.adm-gen-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--adm-line);
  background: #fff;
  color: var(--adm-text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.adm-gen-chip:hover {
  border-color: var(--adm-line-strong);
  color: var(--adm-text);
}
.adm-gen-chip--active {
  background: var(--adm-text);
  color: #fff;
  border-color: var(--adm-text);
}

.adm-gen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.adm-gen-card {
  background: #fff;
  border: 1px solid var(--adm-line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
  animation: adm-gen-fade-in 0.3s ease both;
}
.adm-gen-card:hover {
  border-color: var(--adm-line-strong);
  box-shadow: 0 8px 24px -10px rgba(15, 23, 42, 0.14);
}
.adm-gen-card--error {
  opacity: 0.75;
}
.adm-gen-card--processing {
  opacity: 0.6;
}

@keyframes adm-gen-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.adm-gen-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #334155, #0f172a);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-gen-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adm-gen-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.28);
}
.adm-gen-play svg {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.adm-gen-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
}
.adm-gen-badge--error {
  background: rgba(225, 29, 72, 0.8);
}
.adm-gen-badge--processing {
  background: rgba(245, 158, 11, 0.75);
}
.adm-gen-badge--fallback {
  left: auto;
  right: 8px;
  background: rgba(245, 158, 11, 0.85);
}

.adm-gen-res {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  font-family: "Geist Mono", monospace;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  padding: 2px 6px;
  border-radius: 5px;
}

.adm-gen-info {
  padding: 12px 14px;
}

.adm-gen-prompt {
  font-size: 12.5px;
  color: var(--adm-text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 36px;
}

.adm-gen-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.adm-gen-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.adm-gen-avatar--indigo {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.adm-gen-avatar--amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.adm-gen-avatar--emerald {
  background: linear-gradient(135deg, #10b981, #059669);
}
.adm-gen-avatar--violet {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.adm-gen-avatar--cyan {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.adm-gen-avatar--pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
}
.adm-gen-avatar--rose {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}
.adm-gen-avatar--slate {
  background: linear-gradient(135deg, #64748b, #475569);
}

.adm-gen-username {
  font-size: 11px;
  color: var(--adm-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

.adm-gen-dot {
  color: var(--adm-text-muted);
  font-size: 10px;
}

.adm-gen-model-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.adm-gen-model-logo--kling {
  background: linear-gradient(135deg, #1e293b, #475569);
}
.adm-gen-model-logo--nanobana {
  background: linear-gradient(135deg, #ffd84d, #f59e0b);
  color: #4a2c00;
}
.adm-gen-model-logo--seedance {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}
.adm-gen-model-logo--yandexgpt {
  background: linear-gradient(135deg, #fc3f1d, #c43219);
}
.adm-gen-model-logo--default {
  background: linear-gradient(135deg, #334155, #64748b);
}

.adm-gen-model-name {
  font-size: 10.5px;
  color: var(--adm-text-muted);
  white-space: nowrap;
}

.adm-gen-cost {
  margin-left: auto;
  font-size: 10.5px;
  font-family: "Geist Mono", monospace;
  color: var(--adm-text-dim);
  white-space: nowrap;
}

.adm-gen-time {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 10.5px;
  font-family: "Geist Mono", monospace;
  color: var(--adm-text-muted);
  white-space: nowrap;
}
.adm-gen-time svg {
  flex: none;
  opacity: 0.7;
}

.adm-gen-audio-icon {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 36px;
}

.adm-gen-audio-player {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 36px;
  outline: none;
}
.adm-gen-audio-player::-webkit-media-controls-panel {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
}

.adm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
  animation: adm-gen-fade-in 0.18s ease;
}
.adm-lightbox__img {
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  cursor: default;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.adm-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.adm-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.adm-gen-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.adm-gen-thumb__img:hover {
  transform: scale(1.03);
}

.adm-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(2px);
  animation: adm-gen-fade-in 0.2s ease;
}

.adm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  border-left: 1px solid var(--adm-line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.12);
  animation: adm-drawer-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes adm-drawer-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.adm-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--adm-line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.adm-drawer-head__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--adm-text);
}
.adm-drawer-head__close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.adm-drawer-head__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--adm-text);
}

.adm-drawer-media {
  background: #0f172a;
}
.adm-drawer-media__img {
  width: 100%;
  display: block;
  max-height: 280px;
  object-fit: contain;
  cursor: zoom-in;
}
.adm-drawer-media__video {
  width: 100%;
  display: block;
  max-height: 280px;
  background: #000;
}
.adm-drawer-media__audio-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px 24px;
  color: rgba(255, 255, 255, 0.5);
}
.adm-drawer-media__audio-wrap audio {
  width: 100%;
}

.adm-drawer-section {
  padding: 18px 20px 4px;
  border-bottom: 1px solid var(--adm-line);
}
.adm-drawer-section:last-child {
  border-bottom: none;
}
.adm-drawer-section__title {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--adm-text-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.adm-drawer-section__count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.07);
  color: var(--adm-text-muted);
  font-size: 10px;
  letter-spacing: 0;
}

.adm-drawer-prompt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--adm-text);
  margin: 0 0 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.adm-drawer-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 14px;
}

.adm-drawer-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--adm-line);
}
.adm-drawer-row:first-child {
  border-top: none;
}
.adm-drawer-row__lbl {
  font-size: 12px;
  color: var(--adm-text-muted);
  flex: none;
}
.adm-drawer-row__val {
  font-size: 12.5px;
  color: var(--adm-text);
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.adm-drawer-userlink {
  color: var(--adm-indigo, #6366f1);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.adm-drawer-userlink:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.adm-drawer-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
}
.adm-drawer-status--success {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}
.adm-drawer-status--error {
  background: rgba(225, 29, 72, 0.08);
  color: var(--adm-rose);
}

.adm-gen-empty {
  grid-column: 1/-1;
  padding: 60px 24px;
  text-align: center;
  color: var(--adm-text-muted);
  font-size: 14px;
}

.adm-gen-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}.adm-pricing-fx {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--adm-line);
  font-size: 12px;
  color: var(--adm-text-dim);
}
.adm-pricing-fx__lbl {
  color: var(--adm-text-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.adm-pricing-fx__val {
  font-family: "Geist Mono", monospace;
  font-weight: 600;
  color: var(--adm-text);
  font-variant-numeric: tabular-nums;
}
.adm-pricing-fx__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--adm-emerald);
  box-shadow: 0 0 6px var(--adm-emerald);
}

.adm-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid var(--adm-line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.adm-kpi__cell {
  padding: 18px 22px;
  border-right: 1px solid var(--adm-line);
}
.adm-kpi__cell:last-child {
  border-right: none;
}
.adm-kpi__lbl {
  font-size: 11px;
  color: var(--adm-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}
.adm-kpi__val {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  line-height: 1.05;
}
.adm-kpi__unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--adm-text-muted);
  margin-left: 2px;
}
.adm-kpi__sub {
  font-size: 11.5px;
  color: var(--adm-text-dim);
  margin-top: 4px;
}
.adm-kpi__sub--up {
  color: #047857;
}

.adm-pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 1080px) {
  .adm-pricing-layout {
    grid-template-columns: 1fr;
  }
}

.adm-pricing-side {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.adm-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 4px 14px;
}
.adm-eyebrow h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.adm-eyebrow__sub {
  font-size: 12px;
  color: var(--adm-text-muted);
}
.adm-eyebrow__right {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--adm-text-muted);
}

.adm-models {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adm-model {
  background: #fff;
  border: 1px solid var(--adm-line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.2s ease;
}
.adm-model:hover {
  border-color: var(--adm-line-strong);
}
.adm-model--open {
  border-color: var(--adm-line-strong);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 14px 40px -20px rgba(15, 23, 42, 0.18);
}
.adm-model--off {
  opacity: 0.6;
}

.adm-model-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto auto auto auto;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
}
@media (max-width: 920px) {
  .adm-model-row {
    grid-template-columns: auto 1fr auto auto auto;
    gap: 14px;
  }
  .adm-model-row .adm-model-col--cost,
  .adm-model-row .adm-model-col--margin {
    display: none;
  }
}
.adm-model-row--provider {
  grid-template-columns: auto 1fr auto auto auto;
}
@media (max-width: 920px) {
  .adm-model-row--provider {
    grid-template-columns: auto 1fr auto auto auto;
  }
}

.adm-model-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.adm-model-logo--nano {
  background: linear-gradient(135deg, #ffd84d, #f59e0b);
  color: #4a2c00;
}
.adm-model-logo--kling {
  background: linear-gradient(135deg, #1e293b, #475569);
}
.adm-model-logo--seedance {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}
.adm-model-logo--yandex {
  background: linear-gradient(135deg, #fc3f1d, #c43219);
}
.adm-model-logo--default {
  background: linear-gradient(135deg, #334155, #64748b);
}

.adm-model-id__name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.adm-model-id__prov {
  font-size: 12px;
  color: var(--adm-text-muted);
  margin-top: 3px;
}

.adm-model-col {
  text-align: right;
  min-width: 88px;
}
.adm-model-col__lbl {
  font-size: 10.5px;
  color: var(--adm-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}
.adm-model-col__val {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.012em;
  margin-top: 3px;
  font-family: "Geist Mono", monospace;
}
.adm-model-col__val--pos {
  color: #047857;
}
.adm-model-col__alt {
  font-family: "Geist Mono", monospace;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--adm-text-muted);
  margin-left: 4px;
}

.adm-model-chevron {
  color: var(--adm-text-muted);
  transition: transform 0.25s ease, color 0.15s ease;
}
.adm-model--open .adm-model-chevron {
  transform: rotate(180deg);
  color: var(--adm-text);
}
.adm-model-row:hover .adm-model-chevron {
  color: var(--adm-text);
}

.adm-model-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.adm-model--open .adm-model-expand {
  grid-template-rows: 1fr;
}
.adm-model-expand__inner {
  overflow: hidden;
  min-height: 0;
}
.adm-model-expand__body {
  padding: 4px 22px 22px;
  border-top: 1px dashed var(--adm-line);
}

.adm-preset-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 0 10px;
}
.adm-preset-eyebrow h4 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--adm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.adm-preset-eyebrow__ct {
  font-size: 11.5px;
  color: var(--adm-text-muted);
}

.adm-preset-table {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  column-gap: 20px;
  align-items: center;
}

.adm-preset-model-head {
  grid-column: 1/-1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0 6px;
  border-top: 1px solid var(--adm-line);
}
.adm-preset-model-head--sep {
  margin-top: 4px;
}
.adm-preset-model-head:first-of-type, .adm-preset-model-head:not(.adm-preset-model-head--sep) {
  border-top: none;
  padding-top: 6px;
}
.adm-preset-model-head__name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--adm-text);
}
.adm-preset-model-head__stats {
  font-size: 11.5px;
  color: var(--adm-text-muted);
  font-family: "Geist Mono", monospace;
}

.adm-stat--pos {
  color: #047857;
}

.adm-stat--neg {
  color: #be123c;
}

.adm-model-id__stats {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
}

.adm-pth {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--adm-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: right;
  padding: 10px 0 8px;
  border-bottom: 1px solid var(--adm-line);
}
.adm-pth:first-child {
  text-align: left;
}
.adm-pth--r {
  text-align: right;
}

.adm-prow {
  padding: 11px 0;
  display: flex;
  align-items: center;
}
.adm-prow--r {
  justify-content: flex-end;
}
.adm-prow--sep {
  border-top: 1px solid var(--adm-line);
}
.adm-prow__name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--adm-text);
}
.adm-prow__rub {
  font-size: 14px;
  font-weight: 500;
  font-family: "Geist Mono", monospace;
  font-variant-numeric: tabular-nums;
  color: var(--adm-text-dim);
}

.adm-preset-dims {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--adm-text-dim);
  font-family: "Geist Mono", monospace;
}
.adm-preset-dims__tag {
  padding: 2px 8px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 6px;
}

.adm-preset-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  justify-content: flex-end;
}
.adm-preset-price__input {
  width: 64px;
}
.adm-preset-price__input--usd {
  width: 96px;
}
.adm-preset-price__input {
  padding: 3px 6px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  font-family: "Geist", sans-serif;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  color: var(--adm-text);
  outline: none;
  text-align: right;
  transition: all 0.15s ease;
}
.adm-preset-price__input:hover {
  background: rgba(15, 23, 42, 0.04);
}
.adm-preset-price__input:focus {
  background: #fff;
  border-color: var(--adm-text);
}
.adm-preset-price__unit {
  font-size: 11.5px;
  color: var(--adm-text-muted);
  font-weight: 500;
}

.adm-sumcard {
  background: #fff;
  border: 1px solid var(--adm-line);
  border-radius: 14px;
  padding: 18px 20px;
}
.adm-sumcard__title {
  font-size: 11px;
  color: var(--adm-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}
.adm-sumcard__row {
  padding: 14px 0;
  border-top: 1px solid var(--adm-line);
}
.adm-sumcard__row:first-of-type {
  border-top: none;
  padding-top: 0;
}
.adm-sumcard__row:last-of-type {
  padding-bottom: 0;
}
.adm-sumcard__lbl {
  font-size: 12px;
  color: var(--adm-text-muted);
}
.adm-sumcard__val {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-top: 5px;
  line-height: 1.1;
}
.adm-sumcard__val--pos {
  color: #047857;
}
.adm-sumcard__unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--adm-text-muted);
  margin-left: 2px;
}
.adm-sumcard__sub {
  font-size: 11px;
  color: var(--adm-text-muted);
  margin-top: 4px;
}

.adm-pricing-foot {
  margin-top: 22px;
  font-size: 11.5px;
  color: var(--adm-text-muted);
  line-height: 1.5;
}

.adm-creds {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.adm-creds__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--adm-line);
}
.adm-creds__row:first-of-type {
  border-top: none;
  padding-top: 0;
}
.adm-creds__lbl {
  font-size: 12px;
  color: var(--adm-text-muted);
}
.adm-creds__input {
  width: 100%;
  border: 1px solid var(--adm-line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: #f8fafc;
  color: var(--adm-text);
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.adm-creds__input:focus {
  border-color: var(--adm-accent, #6366f1);
  background: #fff;
}
.adm-creds__input::-webkit-inner-spin-button, .adm-creds__input::-webkit-outer-spin-button {
  opacity: 1;
}
.adm-creds__btn {
  margin-top: 14px;
  width: 100%;
  padding: 9px 0;
  border-radius: 9px;
  border: none;
  background: var(--adm-accent, #6366f1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.adm-creds__btn:hover:not(:disabled) {
  opacity: 0.88;
}
.adm-creds__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.adm-toast {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  animation: adm-toast-in 0.2s ease;
}
.adm-toast--success {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.adm-toast--success::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--adm-emerald);
  box-shadow: 0 0 6px var(--adm-emerald);
}

@keyframes adm-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}.adm-rt-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.adm-rt-date {
  font: inherit;
  font-size: 12px;
  color: var(--adm-text-dim);
  border: 1px solid var(--adm-line);
  border-radius: 9px;
  background: var(--adm-surface);
  padding: 5px 10px;
}

.adm-rt-dash {
  color: var(--adm-text-muted);
  font-size: 12px;
}

.adm-rt-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.adm-rt-select {
  font: inherit;
  font-size: 12px;
  color: var(--adm-text-dim);
  border: 1px solid var(--adm-line);
  border-radius: 9px;
  background: var(--adm-surface);
  padding: 6px 10px;
}

.adm-rt-toolbar__meta {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--adm-text-muted);
}

.adm-rt-link {
  color: var(--adm-indigo);
  text-decoration: none;
  border-bottom: 1px solid rgba(99, 102, 241, 0.28);
}
.adm-rt-link:hover {
  border-bottom-color: var(--adm-indigo);
}

.adm-rt-tbl-wrap {
  overflow-x: auto;
}

.adm-rt-tbl {
  border-collapse: collapse;
  width: 100%;
  min-width: 900px;
  font-size: 12.5px;
}
.adm-rt-tbl th {
  text-align: left;
  font-weight: 500;
  color: var(--adm-text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--adm-line);
  white-space: nowrap;
}
.adm-rt-tbl td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  vertical-align: top;
  color: var(--adm-text-dim);
}
.adm-rt-tbl tr:last-child td {
  border-bottom: 0;
}

.adm-rt-vote {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-weight: 500;
}
.adm-rt-vote--like {
  color: #0f9d6e;
}
.adm-rt-vote--dislike {
  color: var(--adm-rose);
}

.adm-rt-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--adm-text-dim);
  white-space: nowrap;
}

.adm-rt-mono {
  font-family: "Geist Mono", monospace;
  font-size: 11.5px;
}

.adm-rt-snip,
.adm-rt-cmt {
  max-width: 260px;
  color: var(--adm-text);
}

.adm-rt-nowrap {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.adm-rt-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--adm-text-dim);
}.adm-usr-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.adm-usr-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}
.adm-usr-search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--adm-text-muted);
  pointer-events: none;
}
.adm-usr-search__input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: 10px;
  border: 1px solid var(--adm-line);
  background: #fff;
  font: inherit;
  font-family: "Geist", sans-serif;
  font-size: 13px;
  color: var(--adm-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.adm-usr-search__input::placeholder {
  color: var(--adm-text-muted);
}
.adm-usr-search__input:focus {
  border-color: var(--adm-line-strong);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.04);
}

.adm-usr-date {
  display: flex;
  align-items: center;
  gap: 4px;
}
.adm-usr-date__sep {
  font-size: 11px;
  color: var(--adm-text-muted);
}
.adm-usr-date input[type=date] {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--adm-line);
  background: #fff;
  font: inherit;
  font-family: "Geist", sans-serif;
  font-size: 12.5px;
  color: var(--adm-text);
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.adm-usr-date input[type=date]:focus {
  border-color: var(--adm-line-strong);
}

.adm-usr-chip-divider {
  width: 1px;
  height: 20px;
  background: var(--adm-line-strong);
  flex: none;
  align-self: center;
  margin: 0 2px;
}

.adm-usr-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--adm-line);
  background: #fff;
  color: var(--adm-text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.adm-usr-chip:hover {
  border-color: var(--adm-line-strong);
  color: var(--adm-text);
}
.adm-usr-chip--active {
  background: var(--adm-text);
  color: #fff;
  border-color: var(--adm-text);
}

.adm-usr-th-sort {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.adm-usr-th-sort:hover {
  color: var(--adm-text-dim);
}

.adm-usr-sort-ic {
  margin-left: 5px;
  vertical-align: middle;
  color: var(--adm-text-muted);
  flex: none;
}
.adm-usr-sort-ic--active {
  color: var(--adm-text);
}

.adm-usr-wrap {
  background: #fff;
  border: 1px solid var(--adm-line);
  border-radius: 16px;
  overflow: hidden;
}

.adm-usr-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.adm-usr-tbl thead tr {
  border-bottom: 1px solid var(--adm-line);
}
.adm-usr-tbl th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--adm-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.adm-usr-tbl tbody tr {
  border-bottom: 1px solid var(--adm-line);
  cursor: pointer;
  transition: background 0.1s ease;
}
.adm-usr-tbl tbody tr:last-child {
  border-bottom: none;
}
.adm-usr-tbl tbody tr:hover {
  background: rgba(15, 23, 42, 0.025);
}
.adm-usr-tbl td {
  padding: 12px 14px;
  vertical-align: middle;
}

.adm-usr-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-usr-av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.adm-usr-av--indigo {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.adm-usr-av--amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.adm-usr-av--emerald {
  background: linear-gradient(135deg, #10b981, #059669);
}
.adm-usr-av--violet {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.adm-usr-av--cyan {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.adm-usr-av--pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
}
.adm-usr-av--rose {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}
.adm-usr-av--slate {
  background: linear-gradient(135deg, #64748b, #475569);
}

.adm-usr-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--adm-text);
  line-height: 1.2;
}

.adm-usr-email {
  font-size: 11.5px;
  color: var(--adm-text-muted);
  margin-top: 1px;
}

.adm-usr-muted {
  color: var(--adm-text-muted);
  font-size: 12.5px;
}

.adm-usr-num {
  font-family: "Geist Mono", monospace;
  font-size: 12.5px;
  color: var(--adm-text);
  font-variant-numeric: tabular-nums;
}

.adm-usr-provider {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--adm-text-dim);
  white-space: nowrap;
}

.adm-usr-plogo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.adm-usr-plogo--kling {
  background: linear-gradient(135deg, #1e293b, #475569);
}
.adm-usr-plogo--nanobana {
  background: linear-gradient(135deg, #ffd84d, #f59e0b);
  color: #4a2c00;
}
.adm-usr-plogo--seedance {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
}
.adm-usr-plogo--yandexgpt {
  background: linear-gradient(135deg, #fc3f1d, #c43219);
}
.adm-usr-plogo--default {
  background: linear-gradient(135deg, #334155, #64748b);
}

.adm-usr-sub {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.adm-usr-sub::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
}
.adm-usr-sub--active {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}
.adm-usr-sub--active::before {
  background: #10b981;
}
.adm-usr-sub--cancelled {
  background: rgba(148, 163, 184, 0.15);
  color: var(--adm-text-dim);
}
.adm-usr-sub--cancelled::before {
  background: #94a3b8;
}
.adm-usr-sub--failed {
  background: rgba(225, 29, 72, 0.08);
  color: var(--adm-rose);
}
.adm-usr-sub--failed::before {
  background: var(--adm-rose);
}
.adm-usr-sub--none {
  background: rgba(15, 23, 42, 0.04);
  color: var(--adm-text-muted);
}
.adm-usr-sub--none::before {
  background: var(--adm-text-muted);
}

.adm-usr-paging {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--adm-line);
  font-size: 12px;
  color: var(--adm-text-muted);
}

.adm-usr-paging-ctrl {
  display: flex;
  align-items: center;
  gap: 4px;
}
.adm-usr-paging-ctrl button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--adm-line);
  background: #fff;
  color: var(--adm-text-dim);
  cursor: pointer;
  transition: all 0.1s ease;
}
.adm-usr-paging-ctrl button:hover:not(:disabled) {
  border-color: var(--adm-line-strong);
  color: var(--adm-text);
}
.adm-usr-paging-ctrl button--active {
  background: var(--adm-text);
  color: #fff;
  border-color: var(--adm-text);
}
.adm-usr-paging-ctrl button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.adm-usr-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--adm-text-muted);
  font-size: 14px;
}

.adm-usr-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(2px);
  animation: adm-usr-fade-in 0.2s ease;
}

.adm-usr-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 201;
  width: 440px;
  max-width: 100vw;
  background: #fff;
  border-left: 1px solid var(--adm-line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.12);
  animation: adm-usr-drawer-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes adm-usr-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes adm-usr-drawer-in {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.adm-usr-drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--adm-line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.adm-usr-drawer-head__info {
  flex: 1;
  min-width: 0;
}
.adm-usr-drawer-head__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--adm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-usr-drawer-head__meta {
  font-size: 11.5px;
  color: var(--adm-text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-usr-drawer-head__close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--adm-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  flex: none;
}
.adm-usr-drawer-head__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--adm-text);
}

.adm-usr-drawer-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex: none;
}
.adm-usr-drawer-av--indigo {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}
.adm-usr-drawer-av--amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.adm-usr-drawer-av--emerald {
  background: linear-gradient(135deg, #10b981, #059669);
}
.adm-usr-drawer-av--violet {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.adm-usr-drawer-av--cyan {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.adm-usr-drawer-av--pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
}
.adm-usr-drawer-av--rose {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
}
.adm-usr-drawer-av--slate {
  background: linear-gradient(135deg, #64748b, #475569);
}

.adm-usr-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--adm-line);
}

.adm-usr-tile {
  padding: 13px 14px;
  border-radius: 12px;
}
.adm-usr-tile--indigo {
  background: rgba(99, 102, 241, 0.06);
}
.adm-usr-tile--green {
  background: rgba(16, 185, 129, 0.06);
}
.adm-usr-tile--amber {
  background: rgba(217, 119, 87, 0.08);
}
.adm-usr-tile--violet {
  background: rgba(139, 92, 246, 0.06);
}
.adm-usr-tile--cyan {
  background: rgba(6, 182, 212, 0.06);
}
.adm-usr-tile--rose {
  background: rgba(244, 63, 94, 0.07);
}
.adm-usr-tile__lbl {
  font-size: 10.5px;
  color: var(--adm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.adm-usr-tile__val {
  font-size: 19px;
  font-weight: 600;
  font-family: "Geist Mono", monospace;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  line-height: 1.1;
  color: var(--adm-text);
  letter-spacing: -0.02em;
}
.adm-usr-tile__sub {
  font-size: 11px;
  margin-top: 3px;
}
.adm-usr-tile__sub--indigo {
  color: #4338ca;
}
.adm-usr-tile__sub--green {
  color: #047857;
}
.adm-usr-tile__sub--amber {
  color: #b45309;
}
.adm-usr-tile__sub--violet {
  color: #7c3aed;
}
.adm-usr-tile__sub--cyan {
  color: #0891b2;
}
.adm-usr-tile__sub--rose {
  color: #e11d48;
}

.adm-usr-activity {
  padding: 16px 20px;
  border-bottom: 1px solid var(--adm-line);
}
.adm-usr-activity__head {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.adm-usr-activity__head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--adm-text);
}
.adm-usr-activity__bars {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 2px;
  align-items: end;
  height: 60px;
}
.adm-usr-activity__bar {
  background: linear-gradient(180deg, #6366f1, #a5b4fc);
  border-radius: 2px 2px 1px 1px;
  min-height: 2px;
  transition: opacity 0.15s ease;
}
.adm-usr-activity__bar:hover {
  opacity: 0.7;
}

.adm-usr-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--adm-line);
}
.adm-usr-section:last-child {
  border-bottom: none;
}
.adm-usr-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--adm-text);
}

.adm-usr-section--tabs {
  padding-top: 0;
}

.adm-usr-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--adm-line);
  margin-bottom: 12px;
}

.adm-usr-tab {
  padding: 10px 16px;
  font: inherit;
  font-family: "Geist", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--adm-text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.adm-usr-tab:hover {
  color: var(--adm-text);
}
.adm-usr-tab--active {
  color: var(--adm-text);
  border-bottom-color: var(--adm-text);
}

.adm-usr-pay-status {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1px 6px;
  border-radius: 5px;
  vertical-align: middle;
}
.adm-usr-pay-status--success {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}
.adm-usr-pay-status--declined {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}
.adm-usr-pay-status--error {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.adm-usr-tx {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
}

.adm-usr-tx-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--adm-line);
}
.adm-usr-tx-row:last-child {
  border-bottom: none;
}
.adm-usr-tx-row__desc {
  color: var(--adm-text);
}
.adm-usr-tx-row__amount {
  font-family: "Geist Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.adm-usr-tx-row__amount--in {
  color: #047857;
}
.adm-usr-tx-row__amount--out {
  color: var(--adm-rose);
}
.adm-usr-tx-row__date {
  color: var(--adm-text-muted);
  font-size: 11.5px;
}

.adm-usr-info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 12.5px;
}
.adm-usr-info__lbl {
  color: var(--adm-text-muted);
  white-space: nowrap;
}
.adm-usr-info__val {
  color: var(--adm-text);
  font-weight: 500;
  word-break: break-all;
}

.adm-usr-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--adm-line);
}

.adm-usr-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--adm-line);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--adm-text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.adm-usr-link:hover {
  border-color: var(--adm-line-strong);
  background: var(--adm-bg);
}
.adm-usr-link svg {
  flex: none;
  color: var(--adm-text-muted);
}