/* =========================
   THEME TOKENS
========================= */
:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: rgba(0,0,0,0.60);
  --card: #ffffff;
  --card2: rgba(0,0,0,0.02);
  --border: rgba(0,0,0,0.10);
  --border2: rgba(0,0,0,0.08);
  --shadow: 0 12px 30px rgba(0,0,0,0.06);
  --accent: #111111;
  --accentText: #ffffff;
}

:root[data-theme="dark"]{
  --bg: #0b0b0f;
  --text: #f4f4f6;
  --muted: rgba(255,255,255,0.60);
  --card: #12121a;
  --card2: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.12);
  --border2: rgba(255,255,255,0.10);
  --shadow: 0 14px 34px rgba(0,0,0,0.45);
  --accent: #ffffff;
  --accentText: #111111;
}

/* базовое применение */
body{
  background: var(--bg);
  color: var(--text);
}


/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body { height: 100%; }
a { text-decoration: none; color: inherit;}
body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

/* ROOT */
#app { min-height: 100vh; }

/* SCREENS */
.screen {
  min-height: 100vh;
  padding: 24px;
}

.screen--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   LOADER
========================= */
#loader {
  background: #000;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease;
  z-index: 1000;
}

#loader.hide {
  opacity: 0;
  pointer-events: none;
}

/* VIDEO */
.loader-video {
  display: block;
  max-width: 90vw;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}

@media (max-width: 768px) {
  .loader-video {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    object-fit: cover;
  }
}

/* =========================
   STAGES
========================= */
.stage {
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.stage--dark {
  background: #000;
  color: #fff;
}

.stage--light {
  background: #ffffff;
  color: #111;
}

/* Intro */
.intro-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(18px, 4vw, 48px);
  gap: 14px;
}

.intro-line {
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.intro-line--slide {
  font-size: clamp(28px, 6vw, 64px);
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .55s ease, transform .55s ease;
}

.intro-line--slide.is-in {
  opacity: 1;
  transform: translateX(0);
}

.intro-line--type {
  font-size: clamp(14px, 3.2vw, 22px);
  opacity: 0.85;
  font-weight: 500;
}

.caret {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s steps(2, end) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* =========================
   APP LAYOUT (WHITE)
========================= */
.topbar {
  height: 64px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brandmark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #111;
  color: #fff;
}

.brandmark img {
  display: block;
  width: 40px;
  height: auto;
}

.brandtext__title {
  font-weight: 700;
  font-size: 14px;
}

.brandtext__sub {
  font-size: 12px;
  opacity: 0.6;
}

.iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.iconbtn i {
  font-size: 16px;
  opacity: 0.85;
}
.topbar__right{
  margin-left: auto; /* ← ВОТ ЭТО ГЛАВНОЕ */
  display: flex;
  align-items: center;
  padding-right: 10px;
}

/* Content */
.content {
  min-height: calc(100vh - 64px - 78px);
  padding: 18px;
}

/* Страницы (вместо прежнего flex-center) */
.content--pages {
  display: block;
}

.page { display: none; }
.page.is-active { display: block; }

.page__wrap {
  width: min(820px, 92vw);
  margin: 0 auto;
}

.page__title {
  font-size: 22px;
  font-weight: 800;
  margin: 10px 0 6px;
  color: #111;
}

.page__sub {
  font-size: 14px;
  color: rgba(0,0,0,0.6);
  margin-bottom: 14px;
}

.card {
  
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  padding: 20px;
}

/* Центровка карточки логина на стартовой странице */
.page[data-page="start"] .page__wrap {
  min-height: calc(100vh - 64px - 78px - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login__hero {
  text-align: center;
  padding: 8px 8px 16px;
}

.login__title {
  font-size: 24px;
  font-weight: 700;
}

.login__sub {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.65;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.field__label {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 6px;
}

.field__input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  outline: none;
}

.field__input:focus {
  border-color: rgba(0,0,0,0.28);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

.btn {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.btn--ghost {
  background: #fff;
  color: #111;
  padding: 10px;
}

/* Bottom bar */
.bottombar {
  height: 78px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 8px 12px;
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.bottombar .tab { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  text-decoration: none;
}

.tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999;
  transition: color 0.2s ease;
}

.tab__icon {
  font-size: 18px;
  line-height: 1;
}

.tab.is-active {
  color: #111;
  font-weight: 600;
}

/* tab может быть <a> или <span> */
.bottombar .tab {
  width: 100%;
  height: 100%;
}

/* disabled вкладки */
.tab.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}


/* =========================
   SOCIAL AUTH
========================= */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 2px;
  color: rgba(0,0,0,0.45);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.10);
}

.auth-divider span { padding: 0 6px; }

.social {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.social__btn {
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  color: #111;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social__btn i {
  font-size: 18px;
  opacity: 0.95;
}

.social__btn:hover {
  filter: brightness(0.98);
}

.auth-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(0,0,0,0.55);
  text-align: center;
}

/* =========================
   DRAWER (BURGER MENU)
========================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  z-index: 900;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 88vw);
  background: #fff;
  color: #111;
  z-index: 950;
  border-left: 1px solid rgba(0,0,0,0.08);
  box-shadow: -18px 0 40px rgba(0,0,0,0.12);
  transform: translateX(102%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.drawer.is-open { transform: translateX(0); }

.drawer__head {
  height: 64px;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.drawer__title {
  font-weight: 700;
  font-size: 14px;
}

.drawer__nav {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer__item {
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  height: 46px;
  width: 100%;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 600;
  color: #111;
}

.drawer__item i {
  width: 18px;
  text-align: center;
  opacity: 0.8;
}

.drawer__item:hover {
  background: rgba(0,0,0,0.03);
}

.drawer__sep {
  height: 1px;
  margin: 10px 4px;
  background: rgba(0,0,0,0.08);
}

/* =========================
   HARD FLICKER / COLOR FLASH
========================= */
.flash-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

.flash-white { background: #fff; }
.flash-black { background: #000; }

.flash-sepia {
  background: #f3e6c8;
  filter: saturate(120%) contrast(105%);
}

.flash-on { opacity: 1; }

.flash-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.08),
    rgba(0,0,0,0.08) 1px,
    rgba(255,255,255,0.04) 2px,
    rgba(255,255,255,0.04) 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
}




 
/* =========================
   SUBSCRIPTION PAGE
========================= */
.w100{ width:100%; }

.sub-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}

.sub-badge{
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
  display:flex;
  align-items:center;
  gap:8px;
  font-size: 12px;
  font-weight: 700;
  color:#111;
  white-space: nowrap;
}

.sub-status{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 16px;
  margin: 10px 0 14px;
}

.sub-status__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

@media (min-width: 820px){
  .sub-status__grid{
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

.stat{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,0.02);
}

.stat__label{
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 700;
}

.stat__value{
  margin-top: 6px;
  font-size: 16px;
  font-weight: 900;
  color:#111;
}

.stat__hint{
  margin-top: 4px;
  font-size: 11px;
  color: rgba(0,0,0,0.55);
}

.sub-status__cta{
  display:flex;
  gap:10px;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Billing toggle */
.billing{
  display:flex;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 6px;
  background: rgba(0,0,0,0.02);
  width: fit-content;
  margin: 6px 0 14px;
}

.billing__seg{
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
  color: rgba(0,0,0,0.65);
}

.billing__seg.is-active{
  background: #111;
  color: #fff;
}

/* Plans grid */
.plans{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 820px){
  .plans{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.plan{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 16px;
  position: relative;
    display: flex;
  flex-direction: column;
  height: 100%;
}

.plan__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.plan__name{
  font-size: 16px;
  font-weight: 900;
  color:#111;
}

.plan__desc{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(0,0,0,0.60);
  font-weight: 600;
}

.plan__price{
  text-align:right;
}

.plan__priceMain{
  font-size: 18px;
  font-weight: 900;
  color:#111;
}

.plan__priceSub{
  margin-top: 2px;
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 700;
}
.btn[disabled]{
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.45);
  border-color: rgba(0,0,0,0.08);
  cursor: not-allowed;
}


.plan:has(button[disabled]){
  opacity: 0.85;
}

.plan__list{
  list-style:none;
  display:flex;
  flex-direction:column;
  flex-grow: 1;
  gap: 8px;
  margin: 14px 0 14px;
  color: rgba(0,0,0,0.78);
  font-size: 13px;
  font-weight: 650;
}

.plan__list i{
  width: 18px;
  text-align:center;
  margin-right: 8px;
  color: #111;
}

/* Highlight recommended plan */
.plan--hot{
  border-color: rgba(0,0,0,0.18);
  transform: translateY(-2px);
}

.plan__tag{
  display:inline-flex;
  align-items:center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
}

/* Info block */
.sub-info{
  width: 100%;
}

.sub-info__title{
  font-weight: 900;
  color:#111;
  margin-bottom: 10px;
}

.sub-info__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 820px){
  .sub-info__grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

.info{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,0.02);
}

.info__h{
  font-weight: 900;
  color:#111;
  font-size: 13px;
}

.info__p{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.65);
  font-weight: 600;
}



/* =========================
   CHATS PAGE
========================= */
.chats-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}

.chats-new{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
}

.qs{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 14px;
  margin: 10px 0 14px;
}

.qs__title{
  font-weight: 900;
  color:#111;
  margin-bottom: 10px;
}

.qs__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 820px){
  .qs__grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

.qs__item{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: rgba(0,0,0,0.02);
  padding: 12px;
  display:flex;
  align-items:center;
  gap: 12px;
  cursor:pointer;
  text-align:left;
}

.qs__item:hover{
  background: rgba(0,0,0,0.03);
}

.qs__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}

.qs__icon i{
  font-size: 18px;
  opacity: 0.95;
}

.qs__text{
  min-width: 0;
  flex: 1;
}

.qs__name{
  font-weight: 900;
  color:#111;
  font-size: 14px;
}

.qs__hint{
  margin-top: 3px;
  font-size: 12px;
  color: rgba(0,0,0,0.60);
  font-weight: 650;
}

.qs__arrow{
  opacity: 0.35;
  flex: 0 0 auto;
}

/* Dialogs */
.dialogs{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 14px;
}

.dialogs__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dialogs__title{
  font-weight: 900;
  color:#111;
}

.search{
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 0 10px;
  flex: 1;
  max-width: 320px;
}

.search i{
  opacity: 0.5;
  font-size: 14px;
}

.search input{
  border:0;
  outline:none;
  background: transparent;
  width: 100%;
  font-size: 13px;
}

.dialog-list{
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.dialog{
  width: 100%;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap: 12px;
  text-align:left;
}

.dialog:hover{
  background: rgba(0,0,0,0.02);
}

.dialog__ava{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:#111;
  color:#fff;
  font-weight: 900;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}

.dialog__ava--dark{
  background: #000;
}

.dialog__body{
  min-width: 0;
  flex: 1;
}

.dialog__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.dialog__name{
  font-weight: 900;
  color:#111;
  font-size: 13px;
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog__time{
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 800;
  flex: 0 0 auto;
}

.dialog__msg{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(0,0,0,0.60);
  font-weight: 650;
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog__badge{
  height: 20px;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background:#111;
  color:#fff;
  font-size: 11px;
  font-weight: 900;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}

.dialog__dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background:#111;
  opacity: 0.6;
  flex: 0 0 auto;
}

.dialog__meta{
  font-size: 11px;
  color: rgba(0,0,0,0.50);
  font-weight: 800;
  flex: 0 0 auto;
}

/* Empty state */
.dialogs-empty{
  margin-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 12px;
  text-align:center;
}

.dialogs-empty__icon{
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(0,0,0,0.06);
  display:grid;
  place-items:center;
  margin: 0 auto 10px;
  color:#111;
}

.dialogs-empty__title{
  font-weight: 900;
  color:#111;
}

.dialogs-empty__text{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.60);
  font-weight: 650;
  max-width: 360px;
  margin-left:auto;
  margin-right:auto;
}



/* =========================
   SHOP PAGE + HISTORY
========================= */
.shop-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.shop-balance{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-balance__item{
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.02);
  border-radius: 14px;
  padding: 8px 10px;
  min-width: 92px;
}

.shop-balance__label{
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 800;
}

.shop-balance__value{
  margin-top: 4px;
  font-size: 16px;
  font-weight: 900;
  color:#111;
}

.shop-block{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 14px;
  margin: 10px 0 14px;
}

.shop-block__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.shop-block__title{
  font-weight: 900;
  color:#111;
}

.shop-block__hint{
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  font-weight: 650;
}

/* Products */
.product-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 820px){
  .product-grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

.product{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background:#fff;
  padding: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product__badge{
  position:absolute;
  top: 12px;
  right: 12px;
  height: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background:#111;
  color:#fff;
  font-size: 11px;
  font-weight: 900;
}

.product__icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  margin-bottom: 10px;
}

.product__icon i{
  font-size: 18px;
  opacity: 0.95;
}

.product__name{
  font-weight: 900;
  color:#111;
  font-size: 14px;
}

.product__desc{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.60);
  font-weight: 650;
  min-height: 34px;
}

.product__price{
  margin-top: auto; 
  font-size: 18px;
  font-weight: 900;
  color:#111;
}
.product .btn,
.product .btn--ghost{
  margin-top: 10px;
  width: 100%;
}
/* Addons */
.addon-grid{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addon{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background: rgba(0,0,0,0.02);
  padding: 12px;

  display: grid;
  grid-template-columns: 1fr auto; /* слева текст, справа цена+кнопка */
  align-items: center;
  gap: 12px;

  /* ВАЖНО: убираем wrap, он и ломал */
  /* flex-wrap: wrap;  <-- УДАЛИ */
}

.addon__left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0; /* чтобы текст нормально обрезался/переносился */
}

.addon__text{
  min-width: 0;
}

.addon__name{
  font-weight: 900;
  color:#111;
  font-size: 13px;
  line-height: 1.15;
}

.addon__desc{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(0,0,0,0.60);
  font-weight: 650;
  line-height: 1.25;

  /* чтобы не было диких переносов по буквам */
  word-break: normal;
  overflow-wrap: anywhere;
}

.addon__right{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  white-space: nowrap; /* цена и кнопка не будут ломаться */
}

.addon__price{
  font-weight: 900;
  color:#111;
}

@media (max-width: 420px){
  .addon{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .addon__right{
    justify-content: space-between;
    margin-top: 8px;
  }

  .addon__right .btn{
    width: auto;
  }
}

/* Checkout */
.checkout{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 14px;
  margin: 10px 0 14px;
}

.checkout__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.checkout__title{
  font-weight: 900;
  color:#111;
}

.checkout__sum{
  font-weight: 900;
  color:#111;
}

.checkout__items{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: rgba(0,0,0,0.02);
  padding: 12px;
  margin-bottom: 10px;
}

.checkout__empty{
  font-size: 12px;
  color: rgba(0,0,0,0.60);
  font-weight: 650;
}

.checkout__note{
  margin-top: 10px;
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 650;
}

/* History */
.history{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 14px;
  margin: 10px 0 24px;
}

.history__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.history__title{
  font-weight: 900;
  color:#111;
}

.history-list{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.history-item{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  background: rgba(0,0,0,0.02);
  padding: 12px;
  display:flex;
  align-items:center;
  gap: 12px;
}

.history-item__icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}

.history-item__icon i{
  font-size: 18px;
  opacity: 0.95;
}

.history-item__body{
  flex: 1;
  min-width: 0;
}

.history-item__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.history-item__name{
  font-weight: 900;
  color:#111;
  font-size: 13px;
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item__sum{
  font-weight: 900;
  color:#111;
  flex: 0 0 auto;
}

.history-item__meta{
  margin-top: 4px;
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 700;
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item__id{
  margin-top: 4px;
  font-size: 11px;
  color: rgba(0,0,0,0.45);
  font-weight: 900;
  flex: 0 0 auto;
}

.history-note{
  margin-top: 10px;
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 650;
}



/* =========================
   PROFILE (Start after auth)
========================= */
.profile{
  display:block;
}

.profile-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}

.profile-user{
  display:flex;
  align-items:center;
  gap: 12px;
}

.profile-ava{
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.profile-name{
  font-weight: 900;
  color:#111;
  font-size: 16px;
}

.profile-sub{
  margin-top: 3px;
  font-size: 12px;
  color: rgba(0,0,0,0.60);
  font-weight: 650;
}

.profile-edit{
  font-weight: 800;
}

/* stats */
.profile-stats{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (min-width: 820px){
  .profile-stats{
    grid-template-columns: repeat(4, minmax(0,1fr));
  }
}

.pstat{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 12px;
}

.pstat__label{
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 800;
}

.pstat__value{
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
  color:#111;
}

.pstat__hint{
  margin-top: 2px;
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 650;
}

/* actions */
.profile-actions{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.action{
  width:100%;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  background: rgba(0,0,0,0.02);
  padding: 12px;
  display:flex;
  align-items:center;
  gap: 12px;
  cursor:pointer;
  text-align:left;
}

.action:hover{
  background: rgba(0,0,0,0.03);
}

.action__icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}

.action__icon i{
  font-size: 18px;
  opacity: 0.95;
}

.action__text{
  min-width:0;
  flex: 1;
}

.action__name{
  font-weight: 900;
  color:#111;
  font-size: 13px;
}

.action__hint{
  margin-top: 3px;
  font-size: 12px;
  color: rgba(0,0,0,0.60);
  font-weight: 650;
}

.action__arrow{
  opacity: 0.35;
  flex: 0 0 auto;
}

/* history */
.profile-history{
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  padding: 14px;
  margin-bottom: 14px;
}

.profile-history__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.profile-history__title{
  font-weight: 900;
  color:#111;
}

.ph-list{
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.ph-item{
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  background: rgba(0,0,0,0.02);
  padding: 12px;
  display:flex;
  align-items:center;
  gap: 12px;
}

.ph-item__icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background:#111;
  color:#fff;
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}

.ph-item__icon i{
  font-size: 18px;
  opacity: 0.95;
}

.ph-item__body{
  min-width:0;
  flex: 1;
}

.ph-item__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

.ph-item__name{
  font-weight: 900;
  color:#111;
  font-size: 13px;
  min-width:0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ph-item__time{
  font-size: 11px;
  color: rgba(0,0,0,0.55);
  font-weight: 800;
  flex: 0 0 auto;
}

.ph-item__meta{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(0,0,0,0.60);
  font-weight: 650;
  min-width:0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* bottom buttons */
.profile-bottom{
  display:flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
}





.plan__price{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.plan__priceMain{
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
  line-height: 1;
}

.plan__num{
  font-size: 18px;
  font-weight: 900;
}

.plan__cur{
  font-size: 18px;
  font-weight: 900;
}




/* =========================
   CHAT (BUBBLES)
========================= */

.chatbox{
  padding: 12px;
}

.chatbox__messages{
  display: flex;
  flex-direction: column;
  gap: 10px;

  /* чтобы чат не раздувал страницу */
  max-height: 62vh;
  overflow: auto;
  padding-right: 6px;
}

.chatbox__empty{
  opacity: .7;
  padding: 6px 2px;
}

/* сообщение */
.msg{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg--assistant{
  align-items: flex-start;
}

.msg--user{
  align-items: flex-end;
}

/* пузырь */
.msg__bubble{
  max-width: min(720px, 78%);
  padding: 5px 12px;
  border-radius: 8px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.msg--assistant .msg__bubble{
  background: var(--card2);
  border: 1px solid var(--border2);
  color: var(--text);
}

.msg--user .msg__bubble{
  background: var(--accent);
  color: var(--accentText);
  border: 1px solid transparent;
}

/* текст */
.msg__text{
  white-space: pre-wrap;
    font-size: 12px;
}

/* мета (время/автор) */
.msg__meta{
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  padding: 0 4px;
}

/* вложения */
.msg__attachments{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.msg__img{
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border2);
}



/* =========================
   HISTORY -> CHAT STYLE
========================= */

.dialog{
  align-items: flex-start; /* чтобы раскрытие не “ломало” сетку */
}

.history-expand{
  width: 100%;
  margin-top: 10px;
}

.history-chat{
  border: 1px solid var(--border2);
  background: var(--card);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* если msg-классы уже добавлял(а) для чата — они переиспользуются.
   если нет — добавь вот эти минимальные (без конфликтов): */

.history-chat .msg{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-chat .msg--assistant{ align-items: flex-start; }
.history-chat .msg--user{ align-items: flex-end; }

.history-chat .msg__bubble{
  max-width: min(720px, 78%);
  padding: 10px 12px;
  border-radius: 16px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.history-chat .msg--assistant .msg__bubble{
  background: var(--card2);
  border: 1px solid var(--border2);
  color: var(--text);
}

.history-chat .msg--user .msg__bubble{
  background: var(--accent);
  color: var(--accentText);
  border: 1px solid transparent;
}

.history-chat .msg__text{
  white-space: pre-wrap;

}

.history-chat .msg__meta{
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  padding: 0 4px;
}


/* COPY BUTTON */
.msg__bubble--copy{
  position: relative;
  padding-top: 10px; /* место под кнопку */
}

.msg__copy{
  position: absolute;
  top: 2px;
  right: 6px;

  width: 26px;
  height: 26px;
  border-radius: 8px;

  border: 1px solid var(--border2);
  background: var(--card);
  color: var(--text);

  display: grid;
  place-items: center;
  cursor: pointer;

  opacity: 0.75;
  transition: opacity .15s ease, background .15s ease;
}

.msg__copy:hover{
  opacity: 1;
  background: var(--card2);
}

.msg__copy i{
  font-size: 13px;
}
.field__labelRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 6px;
}

.cam-btn{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  background: var(--card);
  color: var(--text);
  display:grid;
  place-items:center;
  cursor:pointer;
  opacity: .9;
}

.cam-btn:hover{
  background: var(--card2);
  opacity: 1;
}
.field__labelRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}

.cam-btn{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid var(--border2);
  background:var(--card);
  color:var(--text);
  display:grid;
  place-items:center;
  cursor:pointer;
  opacity:.85;
}

.cam-btn:hover{
  background:var(--card2);
  opacity:1;
}
.cam-btn[disabled],
.cam-btn.is-disabled{
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

input.is-disabled,
input[disabled]{
  opacity: .6;
  cursor: not-allowed;
}
textarea.field__input{
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}
.alert-wrap { margin: 10px 0 14px; }

.alert{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
  position: relative;
}

.alert__icon{ width:22px; flex:0 0 22px; opacity:.95; line-height:1.2; }
.alert__text{ flex:1; font-size:14px; line-height:1.35; opacity:.95; text-align:left; }

.alert__close{
  position:absolute; top:6px; right:10px;
  background: transparent; border:0; color: rgba(255,255,255,.7);
  font-size:18px; cursor:pointer;
}
.alert__close:hover{ color: rgba(255,255,255,.95); }

.alert--error{
  border-color: rgba(245,112,112,.35);
  background: rgba(245,112,112,.10);
}
.alert--success{
  border-color: rgba(112,245,123,.35);
  background: rgba(112,245,123,.10);
}
.alert--info{
  border-color: rgba(120,170,255,.35);
  background: rgba(120,170,255,.10);
}

/* KaTeX display: не ломаем верстку на узких экранах */
.msg__text--rich .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
}






















/* =========================
   DARK THEME FIX (READABLE)
   ВСТАВЬ В КОНЕЦ CSS
========================= */
:root[data-theme="dark"]{
  --bg: #0b0b10;
  --text: #f2f3f7;
  --muted: rgba(242,243,247,0.72);
  --card: #14151d;
  --card2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.14);
  --border2: rgba(255,255,255,0.12);
  --shadow: 0 18px 44px rgba(0,0,0,0.55);
  --accent: #ffffff;
  --accentText: #111111;
}

/* фон/общие */
:root[data-theme="dark"] body{ background: var(--bg); color: var(--text); }

/* хедеры/бары */
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .bottombar,
:root[data-theme="dark"] .drawer{
  background: #0f1016;
  color: var(--text);
  border-color: var(--border2);
}

/* карточки и блоки */
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .sub-status,
:root[data-theme="dark"] .plan,
:root[data-theme="dark"] .dialogs,
:root[data-theme="dark"] .qs,
:root[data-theme="dark"] .shop-block,
:root[data-theme="dark"] .checkout,
:root[data-theme="dark"] .history,
:root[data-theme="dark"] .pstat,
:root[data-theme="dark"] .profile-actions,
:root[data-theme="dark"] .profile-history{
  background: var(--card);
  border-color: var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
}

/* “серые” внутренние блоки */
:root[data-theme="dark"] .stat,
:root[data-theme="dark"] .info,
:root[data-theme="dark"] .qs__item,
:root[data-theme="dark"] .dialog,
:root[data-theme="dark"] .product,
:root[data-theme="dark"] .history-item,
:root[data-theme="dark"] .action,
:root[data-theme="dark"] .ph-item,
:root[data-theme="dark"] .addon{
  background: rgba(255,255,255,0.05);
  border-color: var(--border2);
  color: var(--text);
}

/* ВОТ ЭТО ГЛАВНОЕ: перебиваем все #111 на переменные */
:root[data-theme="dark"] .page__title,
:root[data-theme="dark"] .plan__name,
:root[data-theme="dark"] .plan__priceMain,
:root[data-theme="dark"] .stat__value,
:root[data-theme="dark"] .sub-badge,
:root[data-theme="dark"] .shop-block__title,
:root[data-theme="dark"] .dialogs__title,
:root[data-theme="dark"] .qs__title,
:root[data-theme="dark"] .history__title,
:root[data-theme="dark"] .product__name,
:root[data-theme="dark"] .product__price,
:root[data-theme="dark"] .dialog__name,
:root[data-theme="dark"] .history-item__name,
:root[data-theme="dark"] .history-item__sum,
:root[data-theme="dark"] .profile-name,
:root[data-theme="dark"] .action__name,
:root[data-theme="dark"] .info__h,
:root[data-theme="dark"] .qs__name,
:root[data-theme="dark"] .dialogs-empty__title,
:root[data-theme="dark"] .alert__icon,
:root[data-theme="dark"] .addon__name,
:root[data-theme="dark"] .pstat__value{
  color: var(--text) !important;
}

:root[data-theme="dark"] .page__sub,
:root[data-theme="dark"] .plan__desc,
:root[data-theme="dark"] .product__desc,
:root[data-theme="dark"] .plan__priceSub,
:root[data-theme="dark"] .stat__label,
:root[data-theme="dark"] .stat__hint,
:root[data-theme="dark"] .shop-block__hint,
:root[data-theme="dark"] .dialog__time,
:root[data-theme="dark"] .dialog__msg,
:root[data-theme="dark"] .history-item__meta,
:root[data-theme="dark"] .history-item__id,
:root[data-theme="dark"] .pstat__label,
:root[data-theme="dark"] .action__hint,
:root[data-theme="dark"] .profile-ava,
:root[data-theme="dark"] .profile-sub,
:root[data-theme="dark"] .info__p,
:root[data-theme="dark"] .billing__seg,
:root[data-theme="dark"] .sub-info__title,
:root[data-theme="dark"] .qs__hint,
:root[data-theme="dark"] .dialog__meta,
:root[data-theme="dark"] .history-note,
:root[data-theme="dark"] .dialogs-empty__text,
:root[data-theme="dark"] .alert__text,
:root[data-theme="dark"] .addon__desc,
:root[data-theme="dark"] .addon__price,
:root[data-theme="dark"] .pstat__hint{
  color: var(--muted) !important;
}
:root[data-theme="dark"] .stage--light{
  background: #0f1016 !important;
}

/* кнопки/иконки */
:root[data-theme="dark"] .iconbtn{
  border-color: var(--border2);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

:root[data-theme="dark"] .btn--ghost{
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: var(--border2);
}

:root[data-theme="dark"] .tab{ color: var(--muted); }
:root[data-theme="dark"] .tab.is-active{ color: var(--text); }
/* ===== EXTRA DARK OVERRIDES (MISSING) ===== */

/* списки тарифов */
:root[data-theme="dark"] .plan__list,
:root[data-theme="dark"] .plan__list i{
  color: var(--text) !important;
}
:root[data-theme="dark"] .plan__list{
  color: var(--muted) !important;
}
:root[data-theme="dark"] .plan__list i{
  color: var(--text) !important;
}

/* бейдж активного тарифа (там фон и бордер светлые) */
:root[data-theme="dark"] .sub-badge{
  background: rgba(255,255,255,0.06) !important;
  border-color: var(--border2) !important;
  color: var(--text) !important;
}

/* формы (инпуты логина/поиска) */
:root[data-theme="dark"] .field__input,
:root[data-theme="dark"] .search,
:root[data-theme="dark"] .search input{
  background: rgba(255,255,255,0.05) !important;
  border-color: var(--border2) !important;
  color: var(--text) !important;
}
:root[data-theme="dark"] .field__label{
  color: var(--muted) !important;
}

/* drawer элементы */
:root[data-theme="dark"] .drawer__head{
  border-bottom-color: var(--border2) !important;
}
:root[data-theme="dark"] .drawer__item{
  background: rgba(255,255,255,0.05) !important;
  border-color: var(--border2) !important;
  color: var(--text) !important;
}
:root[data-theme="dark"] .drawer__sep{
  background: var(--border2) !important;
}

/* соц. кнопки и разделитель */
:root[data-theme="dark"] .auth-divider{
  color: var(--muted) !important;
}
:root[data-theme="dark"] .auth-divider::before,
:root[data-theme="dark"] .auth-divider::after{
  background: var(--border2) !important;
}
:root[data-theme="dark"] .social__btn{
  background: rgba(255,255,255,0.05) !important;
  border-color: var(--border2) !important;
  color: var(--text) !important;
}

/* мелочь: ховер в тёмной теме */
:root[data-theme="dark"] .qs__item:hover,
:root[data-theme="dark"] .dialog:hover,
:root[data-theme="dark"] .action:hover{
  background: rgba(255,255,255,0.07) !important;
}

/* иконки в списках/элементах */
:root[data-theme="dark"] .plan__tag,
:root[data-theme="dark"] .dialog__badge,
:root[data-theme="dark"] .product__badge{
  background: rgba(255,255,255,0.10) !important;
  color: var(--text) !important;
}



/* ассистент: пузырь на всю доступную ширину */
.msg--assistant{
  align-items: stretch;
}
.msg--assistant .msg__bubble{
  width: 99%;
  max-width: 99%;
}

/* история (раскрытие) */
.history-chat .msg--assistant{
  align-items: stretch;
}
.history-chat .msg--assistant .msg__bubble{
  width: 100%;
  max-width: 100%;
}
.msg--user .msg__bubble,
.history-chat .msg--user .msg__bubble{
  max-width: 96%;
}
/* promo messages */
.promo-messages{
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.promo-message{
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  border: 1px solid transparent;
}

/* success */
.promo-message--success{
  background: rgba(0, 200, 120, 0.12);
  color: #0f5132;
  border-color: rgba(0, 200, 120, 0.35);
}

/* error */
.promo-message--error{
  background: rgba(220, 53, 69, 0.12);
  color: #842029;
  border-color: rgba(220, 53, 69, 0.35);
}

/* info / warning (на будущее) */
.promo-message--info{
  background: rgba(13, 110, 253, 0.12);
  color: #084298;
  border-color: rgba(13, 110, 253, 0.35);
}
