:root {
  --bg-0: #071521;
  --bg-1: #0d2435;
  --bg-2: #153952;
  --card: rgba(8, 24, 36, 0.84);
  --card-border: rgba(136, 172, 197, 0.22);
  --text-main: #f0f7fb;
  --text-soft: #a7c0d0;
  --accent: #ff874d;
  --accent-2: #38caa8;
  --danger: #f7a85f;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
}

html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 202, 168, 0.62) rgba(9, 24, 36, 0.6);
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-y: scroll;
  padding-top: 72px;
  color: var(--text-main);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 15%, rgba(56, 202, 168, 0.15), transparent 25%),
    radial-gradient(circle at 87% 10%, rgba(255, 135, 77, 0.16), transparent 25%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1), var(--bg-2));
}

*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

*::-webkit-scrollbar-track {
  background: rgba(9, 24, 36, 0.65);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 202, 168, 0.86), rgba(30, 131, 206, 0.82));
  border-radius: 999px;
  border: 2px solid rgba(7, 21, 33, 0.85);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(72, 221, 186, 0.95), rgba(48, 158, 238, 0.9));
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, black 60%, transparent 94%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 4vw;
  backdrop-filter: blur(12px);
  background: rgba(5, 15, 23, 0.8);
  border-bottom: 1px solid rgba(145, 178, 200, 0.2);
  min-height: 72px;
  height: 72px;
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.68rem;
  border: 1px solid rgba(165, 193, 212, 0.32);
  background: rgba(9, 24, 37, 0.86);
  padding: 0;
  color: var(--text-main);
}

.mobile-menu-line {
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-toggle.is-open .mobile-menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.is-open .mobile-menu-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open .mobile-menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.02rem;
  color: var(--text-main);
  text-decoration: none;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), #ff9b6d);
  color: #21150e;
}

.brand-logo {
  width: 4.2rem;
  height: 4.1rem;
  display: block;
  object-fit: fill;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem 1rem;
  min-width: 0;
}

.site-nav-primary,
.site-nav-secondary {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.72rem;
}

.site-nav-secondary {
  margin-left: auto;
  flex-wrap: nowrap;
}

.site-nav .inline-form {
  margin: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  padding: 0 0.7rem;
  height: 38px;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  border-color: rgba(176, 206, 224, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.cart-badge {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  white-space: nowrap;
}

.cart-badge strong {
  color: var(--accent-2);
  font-weight: 700;
}

.profile-link {
  font-weight: 700;
  min-width: 98px;
  text-align: center;
}

.profile-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-trigger {
  cursor: pointer;
  font: inherit;
  background: transparent;
}

.profile-menu.open .profile-trigger {
  color: var(--text-main);
  border-color: rgba(176, 206, 224, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 170px;
  border: 1px solid rgba(166, 201, 221, 0.32);
  border-radius: 0.72rem;
  background: rgba(9, 24, 37, 0.98);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  padding: 0.35rem;
  display: grid;
  gap: 0.28rem;
  z-index: 70;
}

.profile-menu:not(.open) .profile-dropdown {
  display: none;
}

.profile-dropdown-link,
.profile-dropdown-logout {
  width: 100%;
  text-align: left;
  border-radius: 0.58rem;
  border: 1px solid transparent;
  padding: 0.46rem 0.62rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text-main);
  background: transparent;
  text-decoration: none;
}

.profile-dropdown-link:hover,
.profile-dropdown-link.active,
.profile-dropdown-logout:hover {
  border-color: rgba(176, 206, 224, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.auth-panel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(166, 201, 221, 0.3);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.22rem;
}

.auth-guest-panel {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.auth-link {
  text-decoration: none;
  border-radius: 0.68rem;
  padding: 0.52rem 0.86rem;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  color: var(--text-main);
  transition: filter 140ms ease, transform 140ms ease;
}

.auth-link:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.auth-login {
  color: var(--text-soft);
  border-color: rgba(166, 201, 221, 0.35);
  background: rgba(255, 255, 255, 0.03);
}

.auth-login.active {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.45);
}

.auth-register {
  padding: 0.58rem 0.98rem;
  font-size: 0.96rem;
  background: linear-gradient(145deg, var(--accent), #ff9b6b);
  color: #20130d;
  box-shadow: 0 8px 16px rgba(255, 135, 77, 0.24);
}

.auth-register.active {
  box-shadow: 0 0 0 2px rgba(255, 155, 107, 0.55);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(176, 206, 224, 0.35);
  border-radius: 999px;
  padding: 0.42rem 0.74rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-button {
  padding: 0.52rem 0.76rem;
  font-size: 0.88rem;
}

.auth-action {
  border-radius: 0.68rem;
}

.page-shell {
  width: min(1100px, 92vw);
  margin: 1.4rem auto 2.5rem;
  display: grid;
  gap: 1rem;
}

section {
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  background: var(--card);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr minmax(240px, 0.9fr);
  gap: 1rem;
}

.kicker {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-weight: 700;
}

h1 {
  margin: 0.38rem 0 0.75rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2.35rem);
}

h2 {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.1rem;
}

.lead,
.meta,
.note {
  margin: 0;
  color: var(--text-soft);
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.button,
button:not(.nav-link):not(.profile-dropdown-logout):not(.mobile-menu-toggle),
.inline-link {
  border: none;
  border-radius: 0.62rem;
  padding: 0.62rem 0.86rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button,
button:not(.nav-link):not(.profile-dropdown-logout):not(.mobile-menu-toggle) {
  background: linear-gradient(145deg, var(--accent), #ff986d);
  color: #1e130e;
}

.button.secondary,
button.secondary {
  background: rgba(221, 238, 246, 0.1);
  color: var(--text-main);
  border: 1px solid rgba(221, 238, 246, 0.25);
}

.info-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem;
}

.info-panel ul {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.home-hero {
  grid-template-columns: 1fr;
  border-color: rgba(161, 191, 210, 0.24);
  background: linear-gradient(155deg, rgba(8, 24, 36, 0.95), rgba(13, 36, 52, 0.95));
}

.home-hero-main {
  display: grid;
  gap: 0.72rem;
}

.home-hero-badges {
  margin-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.home-hero-badge {
  margin: 0;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  border: 1px solid rgba(166, 201, 221, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #dcebf4;
  font-size: 0.84rem;
}

.home-hero-side h2 {
  font-size: 1.08rem;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 0.85rem;
}

.home-feature-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.86rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.95rem;
  display: grid;
  gap: 0.55rem;
}

.home-feature-card h2 {
  font-size: 1.03rem;
}

.home-feature-actions {
  margin-top: 0.4rem;
  padding-bottom: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-steps {
  display: grid;
  gap: 0.75rem;
}

.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.home-step {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem;
  display: grid;
  gap: 0.35rem;
}

.section-head {
  display: grid;
  gap: 0.7rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.catalog-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.control-block {
  min-width: min(320px, 100%);
}

.search-row {
  display: grid;
  gap: 0.35rem;
}

.search-input-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.search-input-wrap input {
  width: min(360px, 68vw);
}

.clear-search {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.86rem;
}

.clear-search:hover {
  color: var(--text-main);
}

label {
  color: var(--text-soft);
}

select,
input,
textarea {
  border-radius: 0.6rem;
  border: 1px solid rgba(159, 188, 205, 0.35);
  background: rgba(5, 17, 27, 0.9);
  color: var(--text-main);
  padding: 0.56rem 0.68rem;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.catalog-empty-hint {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  display: none;
}

.catalog-empty-hint.is-visible {
  display: block;
}

.product-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.18);
  padding: 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.product-card.is-hidden {
  display: none;
}

.product-savings-badge {
  margin: 0;
  width: fit-content;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  background: rgba(56, 202, 168, 0.12);
  border: 1px solid rgba(56, 202, 168, 0.26);
  color: #9ff0d6;
  font-size: 0.8rem;
  font-weight: 700;
}

.product-market-price strong {
  color: #dfeff8;
}

.product-card h2 {
  font-size: 1rem;
}

.price {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
}

.price span,
.cart-item-top p span {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 500;
}

.price-label {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.catalog-qty {
  justify-content: flex-start;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.35fr minmax(220px, 0.65fr);
  gap: 0.9rem;
}

.cart-list {
  display: grid;
  gap: 0.75rem;
}

.cart-item {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem;
  display: grid;
  gap: 0.4rem;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cart-item-top p {
  margin: 0;
  color: var(--accent-2);
  font-weight: 700;
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-row button {
  min-width: 2rem;
  padding: 0.46rem 0.58rem;
}

.summary-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.95rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.summary-card p {
  margin: 0;
  color: var(--text-soft);
}

.summary-card strong {
  color: var(--text-main);
}

.checkout-form {
  display: grid;
  gap: 0.45rem;
}

.checkout-form input[aria-invalid="true"],
.checkout-form textarea[aria-invalid="true"] {
  border-color: rgba(247, 168, 95, 0.95);
  box-shadow: 0 0 0 2px rgba(247, 168, 95, 0.22);
}

.checkout-form button {
  width: 100%;
}

.checkout-payment {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.checkout-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-main);
}

.checkout-radio input {
  margin: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #2f83ce;
}

.inline-link {
  width: fit-content;
  background: transparent;
  color: var(--accent-2);
  border: 1px solid rgba(56, 202, 168, 0.35);
  padding: 0.45rem 0.65rem;
}

.subscription-layout,
.plans-grid,
.tariff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 0.9rem;
}

.membership-stage {
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(139, 174, 198, 0.24);
  background: linear-gradient(165deg, rgba(8, 23, 35, 0.94), rgba(13, 36, 52, 0.94));
  display: grid;
  gap: 0.85rem;
}

.membership-banner {
  border-radius: 0.78rem;
  border: 1px solid rgba(165, 193, 212, 0.25);
  background: linear-gradient(140deg, rgba(56, 202, 168, 0.13), rgba(255, 135, 77, 0.12));
  padding: 0.7rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.membership-banner-clean {
  justify-content: flex-start;
}

.membership-banner p {
  margin: 0;
  color: var(--text-soft);
}

.membership-banner strong {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: #d7ecf8;
}

.promo-codes-hint {
  display: grid;
  gap: 0.42rem;
}

.promo-codes-hint span {
  color: #d7ecf8;
  font-weight: 600;
}

.promo-code-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.promo-code-list li {
  border: 1px solid rgba(165, 193, 212, 0.4);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(7, 22, 34, 0.7);
  color: var(--text-soft);
  font-size: 0.84rem;
}

.promo-code-list code {
  color: #f1f8fc;
}

.tariff-card {
  border-radius: 1rem;
  border: 2px solid rgba(170, 198, 216, 0.26);
  background: linear-gradient(165deg, rgba(8, 24, 36, 0.98), rgba(12, 35, 50, 0.98));
  color: var(--text-main);
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}

.tariff-month {
  border-color: rgba(92, 139, 170, 0.5);
}

.tariff-year {
  border-color: rgba(56, 202, 168, 0.78);
  background: linear-gradient(165deg, rgba(8, 27, 39, 0.99), rgba(10, 42, 54, 0.99));
}

.tariff-active {
  box-shadow: 0 0 0 2px rgba(231, 245, 255, 0.32), 0 20px 34px rgba(0, 0, 0, 0.34);
}

.tariff-head {
  border-bottom: 1px solid rgba(165, 193, 212, 0.2);
  padding-bottom: 0.55rem;
}

.tariff-grid-priority {
  grid-template-columns: minmax(300px, 1.16fr) minmax(230px, 0.9fr);
  align-items: stretch;
}

.tariff-featured {
  padding: 1.3rem;
  gap: 0.88rem;
  position: relative;
  box-shadow: 0 26px 42px rgba(0, 0, 0, 0.34);
}

.tariff-featured .tariff-marker {
  font-size: 1.62rem;
}

.tariff-featured .tariff-price {
  font-size: 2.7rem;
}

.tariff-featured .tariff-price-period {
  font-size: 1.2rem;
}

.tariff-marker {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  color: #7ec8ff;
}

.tariff-year .tariff-marker {
  color: #8ff0d3;
}

.tariff-subtitle {
  margin: 0.35rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(167, 192, 208, 0.95);
  font-weight: 700;
  font-size: 0.82rem;
}

.tariff-price {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 2.2rem;
  color: #f1f8fc;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tariff-price-current {
  color: #f1f8fc;
  font-weight: 700;
}

.tariff-price-period {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-soft);
}

.tariff-price-old {
  display: none;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  color: rgba(184, 205, 220, 0.84);
  text-decoration: line-through;
}

.tariff-price.has-discount .tariff-price-old {
  display: inline;
}

.tariff-price.has-discount .tariff-price-current {
  color: #89f0c7;
}

.tariff-ribbon {
  margin: 0;
  width: fit-content;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(56, 202, 168, 0.95), rgba(41, 166, 140, 0.95));
  color: #05261f;
  font-size: 0.78rem;
  font-weight: 700;
}

.tariff-ribbon-strong {
  background: linear-gradient(145deg, rgba(56, 202, 168, 0.98), rgba(38, 182, 149, 0.98));
  color: #04251f;
  font-size: 0.84rem;
}

.tariff-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.32rem;
}

.tariff-note {
  margin: -0.1rem 0 0;
  color: #c8dde9;
  font-size: 0.92rem;
}

.tariff-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.tariff-form label {
  color: var(--text-soft);
  font-weight: 600;
}

.tariff-form input {
  background: rgba(5, 17, 27, 0.92);
  color: var(--text-main);
  border-color: rgba(159, 188, 205, 0.38);
}

.promo-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.promo-apply-btn {
  width: 2.65rem;
  min-width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.62rem;
  border: 1px solid rgba(165, 193, 212, 0.42);
  background: linear-gradient(145deg, rgba(16, 44, 63, 0.98), rgba(10, 30, 46, 0.98));
  color: #d7ecf8;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}

.promo-apply-btn:hover {
  border-color: rgba(126, 200, 255, 0.75);
  color: #ffffff;
}

.promo-inline-msg {
  margin: 0;
  min-height: 1.05rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.promo-inline-msg.promo-msg-ok {
  color: #8eeac6;
}

.promo-inline-msg.promo-msg-error {
  color: #ffb89c;
}

.tariff-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.62rem;
  padding: 0.72rem 1rem;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-weight: 700;
}

.tariff-button-month {
  background: linear-gradient(145deg, #2f83ce, #2267a6);
  color: #f1f9ff;
}

.tariff-button-year {
  background: linear-gradient(145deg, var(--accent), #d97143);
  color: #fff4eb;
}

.tariff-status-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(161, 191, 210, 0.24);
}

.payment-shell {
  display: grid;
  justify-content: center;
}

.payment-card {
  width: min(560px, 100%);
  border: 1px solid rgba(161, 191, 210, 0.28);
  border-radius: 0.92rem;
  background: linear-gradient(165deg, rgba(8, 24, 36, 0.98), rgba(12, 35, 50, 0.98));
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.payment-card .meta {
  margin: 0;
}

.payment-meta,
.payment-total {
  display: grid;
  gap: 0.45rem;
}

.payment-meta p,
.payment-total p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.payment-meta span,
.payment-total span {
  color: var(--text-soft);
}

.payment-old {
  color: rgba(184, 205, 220, 0.84);
  text-decoration: line-through;
}

.payment-new {
  color: #89f0c7;
  font-size: 1.15rem;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.payment-pay-btn {
  min-width: 160px;
  background: linear-gradient(145deg, #2f83ce, #2267a6);
  color: #f1f9ff;
}

.profile-account-card,
.profile-subscription-card {
  border: 1px solid rgba(161, 191, 210, 0.24);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  display: grid;
  gap: 0.52rem;
}

.profile-hero-user {
  margin: 0;
  color: #dbe9f2;
  font-size: 0.96rem;
}

.profile-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.profile-hero-logout {
  margin: 0;
}

.profile-hero-logout button {
  min-width: 180px;
}

.profile-hero-user strong {
  color: var(--accent-2);
  font-family: "Sora", "Segoe UI", sans-serif;
}

.profile-actions {
  margin-top: 0.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 240px));
  gap: 0.6rem;
}

.profile-action-link {
  width: 100%;
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.subscription-days-left {
  color: var(--accent-2);
  font-size: 1.2rem;
}

.subscription-card,
.status-card,
.empty-state,
.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}

.status-card {
  align-content: start;
  align-items: start;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.auth-card {
  width: 100%;
  padding: 1.15rem;
  background: linear-gradient(165deg, rgba(8, 23, 35, 0.95), rgba(12, 35, 48, 0.95));
}

.auth-layout {
  display: grid;
  grid-template-columns: 1.08fr minmax(320px, 0.92fr);
  gap: 0.9rem;
}

.auth-intro {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.82rem;
  padding: 1.1rem;
  background: linear-gradient(155deg, rgba(255, 135, 77, 0.14), rgba(56, 202, 168, 0.06));
  display: grid;
  gap: 0.65rem;
}

.auth-intro h1 {
  margin: 0.2rem 0 0.4rem;
}

.auth-points {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.35rem;
}

.activation-form {
  display: grid;
  gap: 0.5rem;
}

.auth-form {
  display: grid;
  gap: 0.5rem;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.orders-grid {
  display: grid;
  gap: 0.75rem;
}

.order-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.95rem;
  display: grid;
  gap: 0.45rem;
}

.order-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.order-top h2 {
  font-size: 1rem;
}

.order-status {
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.order-status.status-new {
  background: rgba(255, 183, 71, 0.18);
  color: #ffd79a;
}

.order-status.status-accepted {
  background: rgba(78, 173, 255, 0.16);
  color: #9fd7ff;
}

.order-status.status-done {
  background: rgba(56, 202, 168, 0.18);
  color: #b3f0de;
}

.order-items {
  margin-top: 0.1rem;
  display: grid;
  gap: 0.2rem;
}

.order-items p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.order-chat-link {
  margin-top: 0.2rem;
}

.pagination-bar {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.pagination-link {
  min-width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(166, 201, 221, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.pagination-link.arrow {
  font-size: 0.98rem;
}

.pagination-link:hover {
  border-color: rgba(166, 201, 221, 0.46);
  background: rgba(255, 255, 255, 0.07);
}

.pagination-link.active {
  color: #1a130f;
  border-color: transparent;
  background: linear-gradient(145deg, var(--accent), #ff9b6f);
}

.pagination-link.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.courier-order-card {
  gap: 0.6rem;
}

.courier-section {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.55rem;
}

.courier-section > h2 {
  margin: 0;
  font-size: 1.1rem;
  font-family: "Sora", sans-serif;
}

.courier-order-actions {
  margin-top: 0.2rem;
}

.courier-accept-btn {
  background: linear-gradient(145deg, #2f83ce, #2267a6);
  color: #f1f9ff;
}

.status-ok {
  color: var(--accent-2);
  margin: 0;
  font-weight: 700;
}

.status-warn {
  color: var(--danger);
  margin: 0;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flash-stack {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: grid;
  gap: 0.45rem;
  width: min(380px, calc(100vw - 2rem));
  pointer-events: none;
}

.flash-item {
  pointer-events: auto;
  border-radius: 0.7rem;
  padding: 0.62rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  transition: opacity 160ms ease, transform 160ms ease;
}

.flash-item.is-closing {
  opacity: 0;
  transform: translateY(8px);
}

.flash-message {
  margin: 0;
}

.flash-close {
  width: 1.55rem;
  min-width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  line-height: 1;
  padding: 0;
  font-size: 0.95rem;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.flash-close:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.compact-empty {
  margin: 0;
  padding: 0.75rem 0.9rem;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) 1.6fr;
  gap: 0.85rem;
}

.chat-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.chat-thread {
  min-height: 220px;
  max-height: 420px;
  overflow-y: auto;
  display: grid;
  gap: 0.5rem;
  padding-right: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 202, 168, 0.62) rgba(9, 24, 36, 0.6);
}

.chat-message {
  width: fit-content;
  max-width: min(85%, 560px);
  border-radius: 0.72rem;
  border: 1px solid rgba(176, 206, 224, 0.26);
  background: rgba(12, 33, 46, 0.75);
  padding: 0.52rem 0.62rem;
  display: grid;
  gap: 0.2rem;
}

.chat-message.mine {
  margin-left: auto;
  border-color: rgba(255, 135, 77, 0.35);
  background: rgba(255, 135, 77, 0.14);
}

.chat-author {
  margin: 0;
  font-size: 0.78rem;
  color: var(--accent-2);
  font-weight: 700;
}

.chat-text {
  margin: 0;
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-time {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.chat-empty {
  margin-top: 0.2rem;
}

.chat-form {
  display: grid;
  gap: 0.45rem;
}

.chat-form button {
  justify-self: start;
}

.flash-item.success {
  color: var(--accent-2);
  background: rgba(56, 202, 168, 0.1);
}

.flash-item.error {
  color: var(--danger);
  background: rgba(255, 168, 95, 0.08);
}

.assistant-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 118;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
}

.assistant-toggle {
  min-width: 152px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  border: 1px solid rgba(172, 203, 222, 0.32);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(7, 24, 37, 0.96), rgba(15, 46, 66, 0.96));
  color: var(--text-main);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
}

.assistant-toggle-mark {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent), #ff986d);
  color: #1f140e;
  font-size: 0.84rem;
  font-weight: 700;
}

.assistant-panel {
  width: min(420px, calc(100vw - 1.5rem));
  border-radius: 1rem;
  border: 1px solid rgba(170, 204, 223, 0.18);
  background:
    linear-gradient(180deg, rgba(8, 26, 39, 0.98), rgba(12, 33, 47, 0.98)),
    linear-gradient(145deg, rgba(56, 202, 168, 0.08), rgba(255, 135, 77, 0.06));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.assistant-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.assistant-panel-copy h2 {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
}

.assistant-kicker {
  margin: 0;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

.assistant-head-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.assistant-head-btn {
  min-width: auto;
  padding: 0.52rem 0.72rem;
  border-radius: 0.68rem;
  border: 1px solid rgba(177, 207, 224, 0.24);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  box-shadow: none;
}

.assistant-head-btn:hover,
.assistant-toggle:hover,
.assistant-message-link:hover {
  border-color: rgba(177, 207, 224, 0.42);
}

.assistant-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.assistant-thread {
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 0.55rem;
  padding-right: 0.15rem;
}

.assistant-message {
  width: fit-content;
  max-width: min(88%, 320px);
  border-radius: 0.88rem;
  padding: 0.7rem 0.78rem;
  border: 1px solid rgba(170, 204, 223, 0.2);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 0.48rem;
}

.assistant-message-user {
  margin-left: auto;
  border-color: rgba(255, 135, 77, 0.34);
  background: rgba(255, 135, 77, 0.14);
}

.assistant-message-assistant {
  color: var(--text-main);
}

.assistant-message-body {
  white-space: pre-wrap;
  word-break: break-word;
}

.assistant-message-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 0.66rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(166, 201, 221, 0.22);
  background: rgba(56, 202, 168, 0.08);
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
}

.assistant-form {
  display: grid;
  gap: 0.55rem;
}

.assistant-form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}

.assistant-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.assistant-voice-btn {
  border: 1px solid rgba(177, 207, 224, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.assistant-voice-btn.is-recording {
  background: linear-gradient(145deg, var(--accent), #ff986d);
  color: #1f140e;
}

.assistant-send-btn {
  min-width: 130px;
}

.assistant-widget.is-muted .assistant-toggle-mark {
  opacity: 0.8;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .home-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-layout,
  .subscription-layout,
  .plans-grid,
  .tariff-grid,
  .auth-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body {
    padding-top: 64px;
  }

  .site-header {
    height: 64px;
    min-height: 64px;
    padding: 0.7rem 4vw;
  }

  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 1.9rem;
    height: 1.9rem;
  }

  .brand-logo {
    width: 3.45rem;
    height: 3.4rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0.85rem 4vw 1rem;
    background: rgba(6, 18, 28, 0.97);
    border-bottom: 1px solid rgba(145, 178, 200, 0.2);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.26);
    display: grid;
    gap: 0.75rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: opacity 180ms ease, transform 180ms ease, max-height 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: calc(100vh - 64px);
  }

  .site-nav-primary,
  .site-nav-secondary {
    width: 100%;
    display: grid;
    gap: 0.5rem;
  }

  .site-nav-secondary {
    margin-left: 0;
  }

  .nav-link {
    width: 100%;
    height: 44px;
    padding: 0 0.86rem;
    justify-content: flex-start;
    font-size: 0.95rem;
  }

  .cart-badge {
    justify-content: space-between;
    gap: 0.5rem;
  }

  .profile-menu {
    width: 100%;
    display: grid;
  }

  .profile-link {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .profile-dropdown {
    position: static;
    margin-top: 0.3rem;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border-radius: 0.7rem;
    background: rgba(13, 31, 45, 0.96);
  }

  .profile-dropdown-link,
  .profile-dropdown-logout {
    padding: 0.66rem 0.7rem;
    font-size: 0.92rem;
  }

  .auth-panel {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.3rem;
  }

  .auth-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.7rem;
  }

  .page-shell {
    width: 94vw;
    margin: 1rem auto 2rem;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section {
    padding: 1rem;
  }

  .flash-item {
    font-size: 0.88rem;
  }

  .flash-stack {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: 95vw;
    margin: 0.85rem auto 1.6rem;
    gap: 0.75rem;
  }

  .site-header {
    padding: 0.65rem 3.5vw;
  }

  .site-nav {
    padding: 0.75rem 3.5vw 0.9rem;
  }

  section {
    border-radius: 0.86rem;
    padding: 0.9rem;
  }

  h1 {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
    margin: 0.2rem 0 0.6rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .home-feature-grid,
  .home-steps-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .home-hero-badges {
    display: grid;
    gap: 0.45rem;
  }

  .home-feature-card,
  .home-step {
    padding: 0.82rem;
  }

  .home-feature-actions .button,
  .home-feature-actions .inline-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-actions .button,
  .hero-actions .inline-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .catalog-controls {
    align-items: stretch;
    gap: 0.65rem;
  }

  .control-block {
    min-width: 100%;
  }

  .filter-row {
    display: grid;
    align-items: stretch;
    gap: 0.3rem;
  }

  .search-row {
    justify-items: start;
  }

  .search-input-wrap {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
  }

  .search-input-wrap input {
    width: 100%;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .pagination-bar {
    gap: 0.32rem;
  }

  .pagination-link {
    min-width: 1.9rem;
    height: 1.9rem;
  }

  .product-card {
    padding: 0.85rem;
  }

  .price {
    font-size: 1rem;
  }

  .qty-row button {
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .cart-item-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .summary-card .button,
  .summary-card .inline-link,
  .tariff-button,
  .payment-pay-btn,
  .courier-accept-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .error-actions .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .membership-banner {
    padding: 0.65rem 0.72rem;
    gap: 0.6rem;
  }

  .promo-code-list {
    gap: 0.32rem;
  }

  .promo-code-list li {
    font-size: 0.78rem;
  }

  .tariff-grid,
  .plans-grid,
  .subscription-layout {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .chat-layout {
    grid-template-columns: 1fr;
  }

  .chat-thread {
    max-height: 360px;
  }

  .tariff-card {
    padding: 0.85rem;
    gap: 0.6rem;
  }

  .tariff-featured {
    padding: 0.95rem;
  }

  .tariff-marker {
    font-size: 1rem;
  }

  .tariff-price {
    font-size: 1.65rem;
  }

  .tariff-price-period {
    font-size: 1rem;
  }

  .promo-apply-btn {
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2.5rem;
  }

  .status-card,
  .profile-subscription-card,
  .profile-account-card,
  .auth-card,
  .auth-intro,
  .order-card,
  .payment-card {
    padding: 0.85rem;
  }

  .auth-switch {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .order-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .payment-meta p,
  .payment-total p {
    flex-wrap: wrap;
  }

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

  .profile-hero-top {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-hero-logout,
  .profile-hero-logout button {
    width: 100%;
  }

  .assistant-widget {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .assistant-panel {
    width: min(420px, calc(100vw - 1rem));
    max-height: calc(100vh - 94px);
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 60px;
  }

  .site-header {
    height: 60px;
    min-height: 60px;
    padding: 0.5rem 3vw;
  }

  .site-nav {
    top: 60px;
    padding: 0.75rem 3vw 0.9rem;
  }

  .brand {
    font-size: 0.88rem;
  }

  .brand-mark {
    width: 1.75rem;
    height: 1.75rem;
  }

  .brand-logo {
    width: 2.95rem;
    height: 2.9rem;
  }

  .mobile-menu-toggle {
    width: 2.4rem;
    height: 2.4rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .assistant-widget {
    left: 0.5rem;
    right: 0.5rem;
    justify-items: stretch;
  }

  .assistant-toggle {
    justify-self: end;
    min-width: 138px;
  }

  .assistant-panel {
    width: 100%;
    padding: 0.85rem;
  }

  .assistant-panel-head,
  .assistant-form-actions {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }

  .assistant-head-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .assistant-head-btn,
  .assistant-voice-btn,
  .assistant-send-btn {
    width: 100%;
    justify-content: center;
  }

  .assistant-thread {
    min-height: 180px;
    max-height: 300px;
  }

  .assistant-message {
    max-width: 100%;
  }
}
