/* ALIVO — фирменная компактная шапка */
.home-modern .home-hero h1{
  background-image:linear-gradient(90deg,#6346e8 0%,#a13bd1 52%,#df438f 100%)!important;
  background-clip:text!important;
  -webkit-background-clip:text!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
}

.alivo-tagline{
  color:#7258f6;
  font-size:13px;
  font-weight:700;
  letter-spacing:-.25px;
  white-space:nowrap;
}

@media(max-width:760px){

  body.market-home-view .market-header-inner{
    flex-wrap:nowrap!important;
    gap:12px!important;
    padding:14px 18px!important;
    min-height:0!important;
  }

  body.market-home-view .market-logo{
    flex-shrink:0!important;
  }

  body.market-home-view .alivo-tagline{
    display:block;
    width:auto;
    min-width:0;
    margin:0;
    font-size:clamp(10px,3vw,13px);
    line-height:1.2;
    color:#7258f6;
    font-weight:700;
  }

  /* Поиск близко к шапке */
  body.market-home-view .home-modern .home-hero{
    padding-top:8px!important;
    padding-bottom:4px!important;
    margin-top:5px!important;
  }

  /* Выразительный контур поиска */
  body.market-home-view .home-modern .home-search-shell{
    border:1.5px solid #c9bbff!important;
    border-radius:22px!important;
    box-shadow:0 5px 18px rgba(109,85,237,.10)!important;
  }

  /* Популярные запросы */
  body.market-home-view #smartSearchTags{
    margin-top:7px!important;
  }

  /* Категории ближе к поиску */
  body.market-home-view .home-modern .home-hero + .home-section{
    margin-top:12px!important;
  }
}

/* Kaspi reconciliation inside the existing owner Payments screen. */
.admin-kaspi-page{max-width:1180px;margin:0 auto;padding-bottom:30px}
.admin-kaspi-back,.admin-kaspi-page-head>button{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid #e3e5ed;border-radius:12px;background:#fff;color:#343746;font:inherit;font-weight:750;cursor:pointer}
.admin-kaspi-back{margin:3px 0 14px}
.admin-kaspi-page-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.admin-kaspi-page-head h1{margin:0;font-size:clamp(24px,4vw,34px)}
.admin-kaspi-page-head p{margin:5px 0 0}
.admin-kaspi-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.admin-kaspi-summary>div{display:flex;flex-direction:column;gap:7px;min-width:0;padding:16px;border:1px solid #e8e8f1;border-radius:17px;background:linear-gradient(145deg,#fff,#f9f8ff)}
.admin-kaspi-summary small,.admin-kaspi-order-grid small{color:#85899a;font-size:12px;font-weight:750}
.admin-kaspi-summary b{font-size:22px;color:#292b3a}
.admin-kaspi-panel{padding:18px!important}
.admin-kaspi-section-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}
.admin-kaspi-section-head h2{margin:0}
.admin-kaspi-search{display:flex;align-items:center;gap:8px;width:min(430px,100%);padding:0 12px;border:1px solid #e3e5ed;border-radius:12px;background:#fff;color:#777;font-size:18px}
.admin-kaspi-search input{width:100%;min-height:40px;border:0;outline:0;background:transparent;color:#252737;font:inherit;font-size:13px}
.admin-kaspi-filters{display:flex;gap:8px;overflow:auto;padding:1px 1px 10px;scrollbar-width:thin}
.admin-kaspi-filter{flex:0 0 auto;min-height:36px;padding:0 12px;border:1px solid #e4e5ec;border-radius:999px;background:#fff;color:#626779;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.admin-kaspi-filter.is-active{border-color:#6e59ec;background:#6e59ec;color:#fff}
.admin-kaspi-filter b{margin-left:4px}
.admin-kaspi-order{margin:10px 0;padding:16px;border:1px solid #e7e7f0;border-radius:18px;background:#fff;box-shadow:0 5px 16px rgba(42,39,83,.04)}
.admin-kaspi-order[hidden]{display:none!important}
.admin-kaspi-order-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.admin-kaspi-order-head>div{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.admin-kaspi-order-head>strong{font-size:20px;white-space:nowrap}
.admin-kaspi-order-no{font-weight:900;color:#5145b7}
.admin-kaspi-status{padding:5px 9px;border-radius:999px;background:#f0eff7;color:#5f6271;font-size:11px;font-weight:850}
.admin-kaspi-status.status-reported,.admin-kaspi-status.status-overpaid{background:#fff4de;color:#956514}
.admin-kaspi-status.status-paid{background:#e8f7ed;color:#267449}
.admin-kaspi-status.status-partial{background:#edf4ff;color:#36669c}
.admin-kaspi-status.status-refunded,.admin-kaspi-status.status-cancelled{background:#fff0f0;color:#a84c4c}
.admin-kaspi-order-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:15px 0;padding:13px 0;border-top:1px solid #f0f0f4;border-bottom:1px solid #f0f0f4}
.admin-kaspi-order-grid>div{display:flex;flex-direction:column;gap:4px;min-width:0;overflow-wrap:anywhere}
.admin-kaspi-order-grid b{color:#282a38}
.admin-kaspi-order-grid span{color:#6f7483;font-size:12px}
.admin-kaspi-balance{display:flex;gap:8px 18px;flex-wrap:wrap;color:#6c7180;font-size:12px}
.admin-kaspi-balance b{color:#2d3040}
.admin-kaspi-balance code,.admin-kaspi-transaction code{padding:2px 5px;border-radius:5px;background:#f4f3fa;color:#5449a7;font-size:11px;overflow-wrap:anywhere}
.admin-kaspi-warning{margin-top:12px;padding:10px 12px;border-radius:12px;background:#fff7e8;color:#805c1a;font-size:12px;line-height:1.5}
.admin-kaspi-log{margin-top:12px;border-top:1px solid #eeeef3;padding-top:10px}
.admin-kaspi-log summary,.admin-kaspi-other summary{cursor:pointer;color:#5449b0;font-weight:850}
.admin-kaspi-transaction{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:7px 12px;align-items:center;padding:11px 0;border-bottom:1px solid #f0f0f4;font-size:12px;color:#646a79;overflow-wrap:anywhere}
.admin-kaspi-transaction small{grid-column:1/-1;color:#9296a3}
.admin-kaspi-op-type{padding:4px 8px;border-radius:999px;background:#eaf7ee;color:#2c744a;font-size:10px;font-weight:850}
.admin-kaspi-op-type.is-refund{background:#fff0f0;color:#aa4b4b}
.admin-kaspi-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.admin-kaspi-form{min-width:0;border:1px solid #e9e8f2;border-radius:13px;background:#fafaff}
.admin-kaspi-form summary{padding:11px 12px;cursor:pointer;color:#4f45a8;font-size:12px;font-weight:850}
.admin-kaspi-form>p{margin:0;padding:0 12px 9px;color:#777c8a;font-size:11px;line-height:1.45}
.admin-kaspi-form form{padding:0 12px 12px}
.admin-kaspi-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.admin-kaspi-form-grid label{display:flex;flex-direction:column;gap:5px;color:#636878;font-size:10px;font-weight:800}
.admin-kaspi-form-grid input{box-sizing:border-box;width:100%;min-height:38px;padding:7px 9px;border:1px solid #dedfe8;border-radius:9px;background:#fff;color:#252737;font:inherit;font-size:12px}
.admin-kaspi-submit{width:100%;min-height:38px;margin-top:10px;border:0;border-radius:10px;background:linear-gradient(120deg,#7055ef,#586be9);color:#fff;font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.admin-kaspi-submit:disabled{opacity:.6;cursor:wait}
.admin-kaspi-empty,.admin-kaspi-footnote,.admin-kaspi-other>p{color:#858a98;font-size:12px;line-height:1.5}
.admin-kaspi-empty{padding:28px 10px;text-align:center}
.admin-kaspi-footnote{margin:14px 0 0}
.admin-kaspi-other{margin-top:14px;padding:15px 17px}
@media(max-width:760px){
  .admin-kaspi-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .admin-kaspi-summary>div{padding:12px}
  .admin-kaspi-summary b{font-size:18px}
  .admin-kaspi-section-head{align-items:stretch;flex-direction:column}
  .admin-kaspi-search{box-sizing:border-box;width:100%}
  .admin-kaspi-panel{padding:12px!important}
  .admin-kaspi-order{padding:12px;border-radius:15px}
  .admin-kaspi-order-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .admin-kaspi-order-head>strong{font-size:17px}
  .admin-kaspi-actions{grid-template-columns:1fr}
  .admin-kaspi-transaction{grid-template-columns:1fr;gap:5px}
  .admin-kaspi-transaction small{grid-column:auto}
}

/* ALIVO — compact location and search */
@media(max-width:760px){

  body.market-home-view .home-modern{
    padding-top:0!important;
  }

  body.market-home-view .home-modern .home-hero{
    padding-top:4px!important;
    padding-bottom:4px!important;
  }

  body.market-home-view .home-modern .home-search-shell{
    margin-top:0!important;
  }

  body.market-home-view .alivo-location-compact{
    margin-top:10px!important;
    border-radius:18px!important;
  }

  body.market-home-view .alivo-location-compact > summary{
    display:flex;
    align-items:center;
    padding:12px 16px!important;
    cursor:pointer;
    list-style:none;
  }

  .alivo-location-compact > summary::-webkit-details-marker{
    display:none;
  }

  .alivo-location-compact .home-filter-title{
    font-size:15px;
  }

  .alivo-location-compact .home-filter-subtitle{
    font-size:11px;
  }

  .alivo-location-compact:not([open]) .home-filter-body{
    display:none;
  }

  .alivo-location-compact .home-filter-fields
  .home-filter-field:nth-child(n+2){
    display:none;
  }

  .alivo-location-compact:has(
    #homeRegion option:checked:not([value=""])
  ) .home-filter-field:nth-child(2){
    display:block;
  }

  .alivo-location-compact:has(
    #homeCity option:checked:not([value=""])
  ) .home-filter-field:nth-child(3){
    display:block;
  }
}

/* ALIVO — final compact home refinements */
@media(max-width:760px){

  /* Более заметный фирменный слоган */
  body.market-home-view .alivo-tagline{
    font-size:clamp(12px,3.25vw,15px)!important;
    font-weight:800!important;
    letter-spacing:-.35px!important;
  }

  /* Меньше пространства после местоположения */
  body.market-home-view .alivo-location-compact{
    margin-bottom:6px!important;
  }

  body.market-home-view .alivo-location-compact
  + .home-section{
    margin-top:6px!important;
  }

  /* Счётчик рядом с заголовком */
  body.market-home-view .home-listings-head-right{
    flex-shrink:0;
    margin:0!important;
  }

  body.market-home-view .home-section-head{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:8px!important;
  }

  body.market-home-view .home-count{
    display:inline-flex!important;
    white-space:nowrap;
    padding:6px 9px!important;
    font-size:11px!important;
    border-radius:12px!important;
  }

}

/* ALIVO — меньше расстояние после категорий */
@media(max-width:760px){

  body.market-home-view .home-modern
  .home-section:has(.home-category-grid){
    margin-bottom:0!important;
  }

  body.market-home-view .home-modern
  .home-section:has(.home-category-grid)
  ~ .home-section:has(.home-listings-grid){
    margin-top:8px!important;
  }

}

/* ALIVO — final header and listings polish */
@media(max-width:760px){

  /* Слоган крупнее */
  body.market-home-view .market-header-inner{
    gap:8px!important;
  }

  body.market-home-view .alivo-tagline{
    font-size:clamp(13px,3.6vw,16px)!important;
    font-weight:800!important;
    letter-spacing:-.45px!important;
    white-space:nowrap!important;
  }

  /* Заголовок и счётчик на одной строке */
  body.market-home-view .home-section:has(.home-listings-grid)
  .home-section-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:start!important;
    gap:8px!important;
  }

  body.market-home-view .home-section:has(.home-listings-grid)
  .home-section-title{
    font-size:clamp(18px,4.4vw,24px)!important;
    line-height:1.2!important;
  }

  body.market-home-view .home-section:has(.home-listings-grid)
  .home-listings-head-right{
    display:flex!important;
    align-items:flex-start!important;
    margin:0!important;
    width:auto!important;
  }

  body.market-home-view .home-section:has(.home-listings-grid)
  .home-count{
    display:inline-flex!important;
    width:auto!important;
    white-space:nowrap!important;
    font-size:10px!important;
    padding:6px 8px!important;
  }

}

/* ALIVO: optional manual category navigation */
.listing-editor .alivo-smart-category{margin:12px 0 6px;padding:12px 14px;border:1px solid #dcd4ff;border-radius:13px;background:#f8f6ff;color:#493b83;font-size:13px;font-weight:700;line-height:1.5}
.listing-editor .alivo-smart-category-toggle{margin:0 0 12px;padding:9px 13px;border:1px solid #dcd4ff;border-radius:10px;background:#fff;color:#694bdf;font-weight:750;cursor:pointer}
.listing-editor .category-engine-field.alivo-smart-manual-hidden .category-root-grid,
.listing-editor .category-engine-field.alivo-smart-manual-hidden .category-levels,
.listing-editor .category-engine-field.alivo-smart-manual-hidden .category-breadcrumb{display:none!important}

/* Smart listing form: title -> category -> description, compact header */
.listing-editor .category-engine-field{grid-column:1/-1!important}
.listing-editor .alivo-smart-category{margin:6px 0 8px}
@media(max-width:760px){
  .listing-editor{padding-top:0!important}
  .listing-editor-title{margin-top:2px!important;padding-top:15px!important}
  .listing-editor-subtitle{padding-bottom:13px!important;margin-bottom:10px!important}
  .listing-editor .category-engine-field{padding:13px 16px!important}
}

/* ALIVO smart category: clear status and suggestions, compact mobile editor */
.listing-editor .alivo-smart-category{font-size:13px!important;line-height:1.45!important;margin:8px 0!important}
.listing-editor .alivo-smart-suggestions{display:flex;flex-direction:column;gap:6px;margin:0 0 8px}
.listing-editor .alivo-smart-suggestion{width:100%;text-align:left;border:1px solid #dcd4ff;border-radius:10px;background:#fff;padding:10px 12px;color:#493b83;font-size:12px;font-weight:750}
.listing-editor .category-engine-field.alivo-smart-manual-hidden .category-engine-header{display:none!important}
.listing-editor .category-engine-field.alivo-smart-manual-hidden{padding:12px 14px!important}
.listing-editor .category-engine-field.alivo-smart-manual-hidden .alivo-smart-category-toggle{margin-bottom:0}
@media(max-width:760px){
 .listing-editor>button{margin-bottom:5px!important;min-height:38px!important}
 .listing-editor .listing-editor-title{margin-top:0!important;padding-top:12px!important}
 .listing-editor .listing-editor-subtitle{padding-bottom:11px!important;margin-bottom:8px!important}
 .listing-editor .listing-editor-form{gap:11px!important}
}
/* ALIVO listing detail readability — mobile and desktop */
.listing-page .listing-attribute-label {
  color: #626b7e !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  margin-bottom: 8px !important;
}
.listing-page .listing-attribute-value {
  color: #262b39 !important;
  font-size: 19px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}
.listing-page .listing-attribute-card {
  padding: 15px 16px !important;
  min-width: 0;
}
.listing-page .listing-description {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 96px;
  padding: 19px 20px !important;
  border: 1px solid #ddd8f6 !important;
  border-radius: 18px !important;
  background: linear-gradient(145deg, #ffffff, #f8f7ff) !important;
  box-shadow: 0 7px 22px rgba(74, 61, 138, .055);
  color: #303447 !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
  text-align: left !important;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .listing-page .listing-attribute-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .listing-page .listing-attribute-label { font-size: 14px !important; }
  .listing-page .listing-attribute-value { font-size: 18px !important; }
  .listing-page .listing-attribute-card { padding: 14px 13px !important; }
  .listing-page .listing-description { padding: 17px 18px !important; font-size: 17px !important; }
}

/* ALIVO: compact listing readability */
@media (max-width: 760px) {
  .listing-attribute-card,
  .listing-attribute-item {
    padding: 14px !important;
  }

  .listing-attribute-card .label,
  .listing-attribute-item .label {
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  .listing-attribute-card .value,
  .listing-attribute-item .value {
    font-size: 17px !important;
    line-height: 1.4 !important;
  }

  .listing-description,
  .listing-description-text {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
}

/* ALIVO listing compact typography v2 */
@media (max-width: 760px) {
  .listing-page .listing-attribute-card {
    padding: 12px 13px !important;
  }

  .listing-page .listing-attribute-label {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }

  .listing-page .listing-attribute-value {
    font-size: 16px !important;
    line-height: 1.35 !important;
    font-weight: 750 !important;
  }

  .listing-page .listing-section-title {
    font-size: 23px !important;
  }

  .listing-page .listing-description {
    font-size: 15px !important;
    line-height: 1.55 !important;
    padding: 15px 16px !important;
    min-height: 0 !important;
  }
}
/* ALIVO ACCOUNT CARDS COMPACT v1 — mobile only */
@media (max-width:760px) {
  .account-listings-grid .account-listing-card .account-listing-layout {
    gap:0!important;
    padding:0 0 9px!important;
  }
  .account-listings-grid .account-listing-card .account-listing-info,
  .account-listings-grid .account-listing-card .account-listing-layout > div:last-child {
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    padding:10px 11px 8px!important;
    margin:0!important;
  }
  .account-listings-grid .account-listing-card .account-listing-info > div:first-child {
    gap:4px!important;
    align-items:center!important;
  }
  .account-listings-grid .account-listing-card .account-listing-title {
    flex:1 1 auto!important;
    min-width:0!important;
    font-size:13px!important;
    line-height:1.25!important;
  }
  .account-listings-grid .account-listing-card .account-listing-status {
    flex:0 0 auto!important;
    padding:5px 6px!important;
    font-size:9px!important;
  }
  .account-listings-grid .account-listing-card .account-listing-price {
    margin-top:7px!important;
    font-size:19px!important;
    line-height:1.15!important;
  }
  .account-listings-grid .account-listing-card .account-listing-meta {
    margin-top:6px!important;
    gap:3px 6px!important;
    font-size:11px!important;
    line-height:1.35!important;
  }
  .account-listings-grid .account-listing-card .account-listing-stats {
    margin-top:8px!important;
    gap:5px!important;
  }
  .account-listings-grid .account-listing-card .account-listing-stats > div {
    min-height:28px!important;
    padding:0 7px!important;
    border-radius:9px!important;
    font-size:11px!important;
  }
  .account-listings-grid .account-listing-card .account-listing-actions {
    display:flex!important;
    justify-content:stretch!important;
    align-items:stretch!important;
    flex-wrap:nowrap!important;
    margin-top:8px!important;
    gap:0!important;
  }
  .account-listings-grid .account-listing-card .account-listing-actions .account-listing-promote {
    flex:1 1 100%!important;
    width:100%!important;
    min-height:35px!important;
    padding:0 5px!important;
    border-radius:11px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }
}

/* ALIVO: compact own listings in favorites */
@media (max-width: 760px) {
  .favorites-grid {
    align-items: start !important;
  }

  .favorites-grid > .market-card {
    height: auto !important;
    align-self: start !important;
  }

  .favorites-grid .market-card-body {
    min-height: 0 !important;
    height: auto !important;
    flex: none !important;
  }

  .favorites-grid .market-card-message {
    margin-top: 10px !important;
  }
}

/* ALIVO · Маркетинг и аналитика */
.alivo-marketing{padding-bottom:90px}
.alivo-marketing-heading{display:flex;gap:14px;align-items:flex-start;margin:20px 0}
.alivo-marketing-heading>button{border:1px solid #e5e7eb;background:white;border-radius:12px;padding:10px 14px;font-size:22px;cursor:pointer}
.alivo-marketing-heading h1{font-size:clamp(23px,4vw,30px);margin:4px 0 8px}
.alivo-marketing-heading p{color:#667085;margin:0}
.alivo-marketing-filters{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}
.alivo-marketing-filters label{display:grid;gap:6px;font-size:13px;font-weight:600;color:#475467;flex:1;min-width:140px}
.alivo-marketing-filters select{width:100%;padding:11px;border:1px solid #ddd6fe;border-radius:12px;background:white;color:#241f35;font-size:14px}
.alivo-marketing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.alivo-marketing-tile,.alivo-marketing-panel{background:white;border:1px solid #eae7f1;border-radius:18px;padding:18px;box-shadow:0 4px 18px #33215b08}
.alivo-marketing-tile{display:flex;flex-direction:column;gap:8px;min-width:0}
.alivo-marketing-tile>span{font-size:13px;color:#667085}
.alivo-marketing-tile>strong{font-size:25px;color:#44239c;overflow-wrap:anywhere}
.alivo-marketing-tile>small{font-size:11px;line-height:1.45;color:#667085}
.alivo-marketing-panel{margin-top:18px}
.alivo-marketing-panel h2{font-size:18px;margin:0 0 8px}
.alivo-marketing-chart{display:flex;gap:5px;align-items:flex-end;overflow-x:auto;padding:14px 0 8px;min-height:175px}
.alivo-marketing-column{min-width:22px;flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:10px;color:#667085}
.alivo-marketing-column>div{width:100%;max-width:28px;background:linear-gradient(180deg,#7c4de8,#b7a1f1);border-radius:6px 6px 2px 2px}
.alivo-marketing-column>small{font-size:9px;white-space:nowrap}
.alivo-marketing-sources>div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #eee}
.alivo-marketing-panel code{overflow-wrap:anywhere;font-size:12px}
@media(max-width:800px){.alivo-marketing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.alivo-marketing-tile{padding:14px}.alivo-marketing-tile>strong{font-size:21px}}

/* Marketing v2: long campaign names stay readable on mobile. */
.alivo-marketing-sources>div{gap:12px;align-items:flex-start}
.alivo-marketing-sources>div>span{overflow-wrap:anywhere;min-width:0}
.alivo-marketing-sources>div>b{text-align:right;white-space:normal;flex-shrink:0;font-size:12px}
@media(max-width:600px){.alivo-marketing-sources>div{flex-direction:column;gap:4px}.alivo-marketing-sources>div>b{text-align:left}}

/* ALIVO v3: scoped promotion and marketing campaign controls */
.alivo-promotion-scope{display:grid;gap:8px;margin-top:18px;font-size:14px;font-weight:800;color:#292d38}
.alivo-promotion-scope select,.alivo-campaign-form input,.alivo-campaign-form select,.alivo-campaign-row input{width:100%;min-height:43px;border:1px solid #dfe2eb;border-radius:12px;padding:9px 12px;background:#fff;color:#202124;font:inherit}
.alivo-promotion-scope small{font-size:12px;font-weight:500;color:#747b88;line-height:1.5}
.alivo-campaign-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:16px 0}
.alivo-campaign-form button,.alivo-campaign-row button{min-height:42px;border:0;border-radius:11px;background:#6654d9;color:#fff;font-weight:750;padding:8px 12px}
.alivo-campaign-row{display:grid;gap:7px;border-top:1px solid #e9eaf1;padding:14px 0;font-size:13px}
.alivo-campaign-row small{color:#6b7280}

/* Legal links in account and listing screens should match ALIVO controls. */
.alivo-legal-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:20px 0 8px;padding:13px 16px;border:1px solid #e9e6f6;border-radius:17px;background:linear-gradient(135deg,#fff,#f8f7ff)}
.alivo-legal-links a{display:inline-flex;align-items:center;min-height:32px;color:#5b4bc5;font-size:13px;font-weight:750;text-decoration:none;line-height:1.35}
.alivo-legal-links a:hover,.alivo-legal-links a:focus-visible{color:#4936b5;text-decoration:underline;text-underline-offset:3px}
.alivo-legal-links-compact{gap:4px 12px;margin:12px 0;padding:9px 12px}
.alivo-legal-links-compact a{min-height:28px;font-size:12px}

/* Keep the normal app shell visible while an unverified user is asked to verify. */
@media(max-width:700px){
  body:has(#app > .create-phone-verify-page) nav.mobile-bottom-nav{
    display:grid!important;
    z-index:1200!important;
  }
  body:has(#app > .create-phone-verify-page) #app{
    padding-bottom:calc(125px + env(safe-area-inset-bottom))!important;
  }
}

/* Shared language controls and notifications for web, PWA, and Android. */
.alivo-language-switch{display:inline-flex;align-items:center;gap:5px;padding:4px;border:1px solid #e6e0ff;border-radius:15px;background:#ffffffd9;box-shadow:0 4px 15px rgba(75,62,140,.08)}
.alivo-language-switch button{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:36px;padding:0 9px;border:0;border-radius:11px;background:transparent;color:#626579;font:inherit;font-size:12px;font-weight:850;cursor:pointer;touch-action:manipulation}
.alivo-language-switch button[aria-pressed="true"]{background:#fff;color:#5948c5;box-shadow:0 2px 8px rgba(55,45,120,.10)}
#alivoPushButton{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:13px;background:transparent;color:#5b4bc5;font-size:20px;line-height:1;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#alivoPushButton:focus-visible,.alivo-language-switch button:focus-visible{outline:2px solid #7254f4;outline-offset:2px}
#alivoPushButton:active{transform:scale(.94);background:#f1edff}
#alivoPushButton:disabled{cursor:wait;opacity:.65}
#alivoPushButton[hidden]{display:none!important}
@media(max-width:760px){
  body.market-home-view .market-header-inner{justify-content:flex-start!important;gap:7px!important;padding-right:22px!important;padding-left:18px!important}
  body.market-home-view .market-header-inner .market-logo{font-size:clamp(25px,7vw,31px)!important;flex:0 0 auto!important}
  body.market-home-view .market-header-inner .alivo-tagline{flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;white-space:nowrap!important;overflow-wrap:normal!important;font-size:clamp(13px,3.6vw,16px)!important;line-height:1.15!important;letter-spacing:-.45px!important}
  body.market-home-view .alivo-language-switch{flex:0 0 auto!important;margin-left:auto!important;gap:0!important;padding:2px!important}
  body.market-home-view .alivo-language-switch button{min-width:28px!important;min-height:30px!important;padding:0 4px!important;font-size:10px!important}
  body.market-home-view .alivo-language-switch button[data-alivo-language="kk"]{min-width:34px!important}
  body.market-home-view .alivo-language-switch{position:relative!important;z-index:110!important;isolation:isolate!important;pointer-events:auto!important}
  body.market-home-view .alivo-language-switch button{position:relative!important;z-index:1!important;pointer-events:auto!important}
  body.market-home-view #alivoPushButton{position:relative!important;z-index:2!important;flex:0 0 28px!important;width:28px!important;height:30px!important;min-width:28px!important;min-height:30px!important;margin:0!important;padding:0!important;font-size:16px!important;pointer-events:auto!important;overflow:visible!important}
  body.market-home-view #alivoPushButton::after{content:"";position:absolute;top:50%;left:50%;width:44px;height:44px;transform:translate(-50%,-50%);pointer-events:auto}
}

/* Consistent review presentation for seller, business, and moderation pages. */
.alivo-reviews-section{
  position:relative;
  overflow:hidden;
  margin:16px 0 24px;
  padding:clamp(17px,3vw,25px);
  border:1px solid rgba(119,99,208,.17);
  border-radius:24px;
  background:linear-gradient(145deg,#fff 0%,#fdfcff 66%,#f4f6ff 100%);
  box-shadow:0 12px 34px rgba(46,39,104,.075);
}
.alivo-reviews-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 17px}
.alivo-reviews-head>div:first-child{min-width:0;flex:1 1 auto}
.alivo-reviews-eyebrow{margin:0 0 6px;color:#7560d6;font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.alivo-reviews-head h2{margin:0;color:#25243a;font-size:clamp(19px,2.6vw,25px);line-height:1.2;font-weight:900;letter-spacing:-.45px}
.alivo-reviews-head p{margin:7px 0 0;color:#85899a;font-size:13px;line-height:1.45}
.alivo-review-overview{display:flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:54px;padding:8px 12px;border:1px solid #e8e3fb;border-radius:16px;background:linear-gradient(135deg,#faf8ff,#f4f6ff);white-space:nowrap}
.alivo-review-overview>strong{color:#28253f;font-size:23px;line-height:1;font-weight:950}
.alivo-review-overview>span:last-child{color:#85899a;font-size:11px;font-weight:750}
.alivo-review-stars{display:inline-flex;align-items:center;gap:1px;flex:0 0 auto;color:#c8cbd4;font-size:17px;line-height:1;white-space:nowrap}
.alivo-review-stars .is-selected{color:#edae36}
.alivo-review-stars button{display:inline-flex;align-items:center;justify-content:center;width:29px;height:32px;padding:0;border:0;border-radius:7px;background:transparent;color:#c8cbd4;font:inherit;font-size:27px;line-height:1;cursor:pointer;touch-action:manipulation}
.alivo-review-stars button.is-selected{color:#edae36}
.alivo-profile-review-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 15px}
.alivo-profile-review-actions>button,.alivo-review-purchase button{min-height:40px;padding:0 15px;border:0;border-radius:12px;background:linear-gradient(135deg,#7659ef,#557dea);color:#fff;font:inherit;font-size:13px;font-weight:850;box-shadow:0 6px 16px rgba(100,79,218,.2);cursor:pointer;touch-action:manipulation}
.alivo-profile-review-actions>small{color:#777d8d;font-size:12px;line-height:1.4}
.alivo-review-eligible{display:grid;gap:9px;margin:0 0 15px;padding:14px;border:1px solid #e8e5f4;border-radius:17px;background:#fff}
.alivo-review-eligible>strong{color:#302e43;font-size:14px}
.alivo-review-purchase{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:9px;border-top:1px solid #f0eef6}
.alivo-review-purchase>span{min-width:0;color:#626779;font-size:13px;overflow-wrap:anywhere}
.alivo-review-purchase button{flex:0 0 auto;min-height:35px;padding:0 12px;font-size:12px}
.alivo-review-list{display:grid;gap:12px}
.alivo-review-card{min-width:0;padding:16px 17px;border:1px solid #e9e7f2;border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 5px 17px rgba(43,39,76,.045)}
.alivo-review-card.is-hidden{border-color:#f0dada;background:#fffafa}
.alivo-review-card.is-pending{border-color:#f0e1bb;background:#fffdf7}
.alivo-review-card-top{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;min-width:0}
.alivo-review-card-top>strong{min-width:0;color:#2c2a3d;font-size:15px;font-weight:850;overflow-wrap:anywhere}
.alivo-review-card-top>time{margin-left:auto;color:#969aaa;font-size:11px;font-weight:650;white-space:nowrap}
.alivo-review-card-top .alivo-review-stars{font-size:16px}
.alivo-review-product{display:table;max-width:100%;margin:10px 0 0;padding:5px 9px;border:1px solid #eeecf5;border-radius:999px;background:#f8f7fc;color:#77778d;font-size:11px;font-weight:750;line-height:1.35;overflow-wrap:anywhere}
.alivo-review-card>p{margin:11px 0 0;color:#414354;font-size:14px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
.alivo-review-report{display:inline-flex;align-items:center;min-height:34px;margin:8px 0 0;padding:0 3px;border:0;background:transparent;color:#85899a;font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;touch-action:manipulation}
.alivo-review-report-details{margin:12px 0 0;padding:10px 12px;border:1px solid #eceaf3;border-radius:13px;background:#faf9fd}
.alivo-review-report-details summary{color:#6654c5;font-size:12px;font-weight:850;cursor:pointer}
.alivo-review-report-details ul{display:grid;gap:9px;margin:10px 0 0;padding:0;list-style:none}
.alivo-review-report-details li{padding-top:9px;border-top:1px solid #eceaf3}
.alivo-review-report-details li>div{display:flex;justify-content:space-between;gap:10px;color:#4b4b5c;font-size:12px}
.alivo-review-report-details time{color:#969aaa;font-size:10px;white-space:nowrap}
.alivo-review-report-details li>p{margin:5px 0 0;color:#686b7b;font-size:12px;line-height:1.5}
.alivo-review-moderation{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:13px 0 0;padding-top:11px;border-top:1px solid #f0eef5}
.alivo-review-moderation>span{margin-right:auto;color:#898d9a;font-size:11px;font-weight:750}
.alivo-review-moderation>button{min-height:35px;padding:0 12px;border:1px solid #e4e1f2;border-radius:10px;background:#f7f5ff;color:#5c4ac1;font:inherit;font-size:12px;font-weight:800;cursor:pointer;touch-action:manipulation}
.alivo-review-moderation>button.alivo-review-reject{border-color:#f0dddd;background:#fff7f7;color:#af5050}
.alivo-review-empty{display:grid;justify-items:center;gap:7px;padding:27px 17px;border:1px dashed #ded9ef;border-radius:17px;background:rgba(255,255,255,.66);text-align:center}
.alivo-review-empty>span{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#f0edff;color:#7258e7;font-size:20px}
.alivo-review-empty>strong{color:#39364d;font-size:14px}
.alivo-review-empty>small{max-width:430px;color:#898d9b;font-size:12px;line-height:1.45}
@media(max-width:600px){
  .alivo-reviews-section{margin:13px 0 20px;padding:16px;border-radius:21px}
  .alivo-reviews-head{align-items:flex-start;gap:10px;margin-bottom:14px}
  .alivo-reviews-head h2{font-size:19px;letter-spacing:-.3px}
  .alivo-reviews-head p{font-size:12px}
  .alivo-review-overview{display:grid;grid-template-columns:auto 1fr;justify-items:start;gap:2px 7px;min-height:0;padding:8px 9px;border-radius:14px}
  .alivo-review-overview>strong{grid-row:span 2;font-size:20px;align-self:center}
  .alivo-review-overview .alivo-review-stars{font-size:13px}
  .alivo-review-overview>span:last-child{font-size:10px}
  .alivo-review-card{padding:14px;border-radius:16px}
  .alivo-review-card-top{gap:6px 8px}
  .alivo-review-card-top>strong{font-size:14px}
  .alivo-review-card-top>time{margin-left:0;font-size:10px}
  .alivo-review-card-top .alivo-review-stars{font-size:14px}
  .alivo-review-card>p{font-size:14px}
}
